/* ============================================================
   Sri Sathya Sai Sanjeevani OPD — Design System v3.0
   Brand: Maroon #7B1D2E · Gold #C49A2A · Dark Sidebar
   ============================================================ */

:root {
  /* ── Primary (Maroon / Burgundy) ── */
  --primary:        #7B1D2E;
  --primary-dark:   #551220;
  --primary-mid:    #6A1826;
  --primary-light:  #9E2A40;
  --primary-pale:   #F3EAEC;
  --primary-pale2:  #FDF8F8;

  /* ── Accent (Gold) ── */
  --accent:         #C49A2A;
  --accent-light:   #DFB840;
  --accent-pale:    #FFF8E7;

  /* ── Status ── */
  --success:        #1A7A4F;
  --success-bg:     rgba(26,122,79,.08);
  --danger:         #C0202E;
  --danger-bg:      rgba(192,32,46,.08);
  --warning:        #B5740A;
  --warning-bg:     rgba(181,116,10,.08);
  --info:           #1867A3;
  --info-bg:        rgba(24,103,163,.08);

  /* ── Surfaces ── */
  --bg:             #F2EDED;
  --surface:        #FFFFFF;
  --surface-2:      #FAF7F7;
  --border:         #E3D7D9;
  --border-light:   #EDE6E7;

  /* ── Text ── */
  --text:           #1A0E10;
  --text-muted:     #6E5E62;
  --text-light:     #A89499;

  /* ── Layout ── */
  --sidebar-w:      240px;
  --topnav-h:       58px;

  /* ── Sidebar ── */
  --sb-bg1:            #140910;
  --sb-bg2:            #1B0D13;
  --sb-text:           rgba(255,255,255,.76);
  --sb-hover:          rgba(255,255,255,.07);
  --sb-active-bg:      rgba(196,154,42,.14);
  --sb-active-text:    #EBC84A;
  --sb-active-border:  #C49A2A;
  --sb-section:        rgba(196,154,42,.55);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(123,29,46,.08),  0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 5px 20px rgba(123,29,46,.12), 0 2px 5px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 44px rgba(123,29,46,.16), 0 4px 10px rgba(0,0,0,.08);

  /* ── Radius ── */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* ── Transitions ── */
  --t-fast: .14s ease;
  --t-base: .22s ease;

  /* ── Legacy aliases — keep older inline styles / PHP working ── */
  --hospital-primary:      #7B1D2E;
  --hospital-primary-dark: #551220;
  --hospital-secondary:    #1A7A4F;
  --hospital-accent:       #C49A2A;
  --hospital-danger:       #C0202E;
  --hospital-success:      #1A7A4F;
  --hospital-bg:           #F2EDED;
  --sidebar-width:         240px;
  --sidebar-bg:            #140910;
  --sidebar-text:          rgba(255,255,255,.76);
  --sidebar-hover-bg:      rgba(255,255,255,.07);
  --sidebar-active-bg:     rgba(196,154,42,.14);
  --topnav-height:         58px;
  /* keep old names used in admin/doctor pages */
  --secondary:      #1A7A4F;
  --secondary-dark: #105C39;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: .875rem;
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a           { text-decoration: none; color: inherit; }
a:hover     { text-decoration: none; }

/* Custom thin scrollbar */
::-webkit-scrollbar             { width: 5px; height: 5px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: rgba(123,29,46,.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(123,29,46,.32); }

/* ============================================================
   COLOUR UTILITY CLASSES
   ============================================================ */
.bg-hospital-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%) !important;
}
.bg-hospital-secondary { background-color: var(--success) !important; }
.bg-abdm               { background-color: var(--success) !important; }
.text-hospital-primary { color: var(--primary) !important; }

.btn-hospital-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(123,29,46,.30);
  transition: all var(--t-base);
}
.btn-hospital-primary:hover,
.btn-hospital-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(123,29,46,.42);
  transform: translateY(-1px);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.main-wrapper { min-height: calc(100vh - var(--topnav-h)); }
.main-content { min-height: calc(100vh - var(--topnav-h) - 44px); padding-bottom: 28px; }
.main-content.full-width { width: 100%; }

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.navbar {
  height: var(--topnav-h);
  background: linear-gradient(110deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%) !important;
  box-shadow: 0 2px 22px rgba(85,18,32,.45);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--accent) 20%,
    var(--accent-light) 50%, var(--accent) 80%, transparent 100%);
  opacity: .7;
}

.brand-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.07), 0 2px 8px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
}
.brand-logo img { width: 26px; height: 26px; object-fit: contain; }

.navbar .nav-link {
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
  padding: 6px 10px;
  color: rgba(255,255,255,.85) !important;
}
.navbar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff !important; }

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 178px;
}
.dropdown-item {
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: .83rem;
  font-weight: 500;
  transition: background var(--t-fast);
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.dropdown-item:hover             { background: var(--primary-pale); color: var(--primary); }
.dropdown-item.text-danger       { color: var(--danger); }
.dropdown-item.text-danger:hover { background: var(--danger-bg); color: var(--danger); }
.dropdown-divider                { border-color: var(--border-light); margin: 4px 0; }
.dropdown-item-text              { font-size: .75rem; color: var(--text-muted); padding: 5px 12px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: calc(100vh - var(--topnav-h));
  background: linear-gradient(175deg, var(--sb-bg1) 0%, #1E0C15 60%, var(--sb-bg2) 100%);
  flex-shrink: 0;
  position: sticky;
  top: var(--topnav-h);
  height: calc(100vh - var(--topnav-h));
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--t-base);
  z-index: 900;
  border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar::-webkit-scrollbar       { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(196,154,42,.2); border-radius: 2px; }
.sidebar-inner { display: flex; flex-direction: column; min-height: 100%; padding-bottom: 8px; }

/* Gold accent strip */
.sidebar-gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #C49A2A, #DFB840, #C49A2A, transparent);
  opacity: .5;
  margin: 0 14px 4px;
}

/* Dept context badge */
.sidebar-dept-badge {
  margin: 8px 10px 2px;
  background: rgba(196,154,42,.1);
  border: 1px solid rgba(196,154,42,.2);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: .72rem;
  color: var(--accent-light);
  display: flex; align-items: center; gap: 7px;
  letter-spacing: .2px;
}

/* Section headings */
.sidebar-section {
  font-size: .58rem;
  letter-spacing: 2.5px;
  color: var(--sb-section);
  text-transform: uppercase;
  padding: 18px 16px 5px;
  font-weight: 700;
}
.sidebar-subsection {
  font-size: .58rem;
  letter-spacing: 1.8px;
  color: rgba(196,154,42,.72);
  text-transform: uppercase;
  padding: 14px 12px 4px 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 4px;
}
.sidebar-subsection::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1px;
  background: rgba(196,154,42,.5);
  flex-shrink: 0;
}

/* Nav links */
.sidebar .nav-link {
  color: var(--sb-text);
  padding: 8px 11px;
  margin: 1px 8px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 9px;
  font-size: .825rem;
  font-weight: 500;
  transition: all var(--t-fast);
  border-left: 2px solid transparent;
}
.sidebar .nav-link:hover {
  background: var(--sb-hover);
  color: #fff;
  border-left-color: rgba(196,154,42,.45);
}
.sidebar .nav-link.active {
  background: var(--sb-active-bg);
  color: var(--sb-active-text);
  border-left-color: var(--sb-active-border);
  font-weight: 600;
}
.sidebar .nav-link svg        { flex-shrink: 0; opacity: .8; }
.sidebar .nav-link:hover svg  { opacity: 1; }
.sidebar .nav-link.active svg { opacity: 1; }

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.15);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 899;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: box-shadow var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 13px 18px;
  font-weight: 600;
  font-size: .85rem;
}
.card-header.bg-hospital-primary { border-bottom: none !important; }
.card-body   { padding: 18px; }
.card-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border-light);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.stat-card-primary::before   { background: linear-gradient(90deg, var(--primary-dark), var(--primary-light)); }
.stat-card-warning::before   { background: linear-gradient(90deg, var(--warning), var(--accent)); }
.stat-card-success::before   { background: linear-gradient(90deg, var(--success), #2ED47A); }
.stat-card-info::before      { background: linear-gradient(90deg, var(--info), #3A9FD8); }
.stat-card-secondary::before { background: linear-gradient(90deg, #5D6D7E, #95A5A6); }
.stat-card-purple::before    { background: linear-gradient(90deg, #6C3483, #A569BD); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-card-primary   .stat-icon { background: var(--primary-pale);  color: var(--primary); }
.stat-card-warning   .stat-icon { background: var(--warning-bg);    color: var(--warning); }
.stat-card-success   .stat-icon { background: var(--success-bg);    color: var(--success); }
.stat-card-info      .stat-icon { background: var(--info-bg);       color: var(--info); }
.stat-card-secondary .stat-icon { background: rgba(108,117,125,.1); color: #6c757d; }
.stat-card-purple    .stat-icon { background: rgba(108,52,131,.1);  color: #6C3483; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -1.5px;
}
.stat-label {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

/* ============================================================
   TABLES
   ============================================================ */
.table { font-size: .83rem; color: var(--text); }
.table > thead > tr > th {
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
  padding: 11px 14px;
  white-space: nowrap;
}
.table > tbody > tr > td {
  padding: 10px 14px;
  vertical-align: middle;
  border-color: var(--border-light);
}
.table-hover > tbody > tr:hover > td { background: var(--primary-pale2); }
.table-responsive { border-radius: var(--r); overflow: hidden; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-weight: 600;
  letter-spacing: .3px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: .72rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: .875rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123,29,46,.11);
  background: var(--surface);
  color: var(--text);
}
.form-control::placeholder { color: var(--text-light); }
.form-label {
  font-weight: 600;
  font-size: .8rem;
  color: var(--text);
  margin-bottom: 5px;
}
.input-group-text {
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}
.form-check-input:checked  { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus    { box-shadow: 0 0 0 3px rgba(123,29,46,.12); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  letter-spacing: .2px;
}
.btn-sm { font-size: .8rem; }
.btn-xs { padding: 2px 8px; font-size: .72rem; border-radius: var(--r-xs); font-weight: 600; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border: none;
  box-shadow: 0 2px 8px rgba(123,29,46,.26);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 16px rgba(123,29,46,.38);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline-primary { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline-info    { border: 1.5px solid var(--info);    color: var(--info); }
.btn-outline-info:hover { background: var(--info); color: #fff; }
.btn-outline-success { border: 1.5px solid var(--success); color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: #fff; }
.btn-outline-danger  { border: 1.5px solid var(--danger);  color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
  border-radius: var(--r);
  border: none;
  border-left: 4px solid;
  font-size: .85rem;
  padding: 12px 16px;
}
.alert-success { border-left-color: var(--success); background: var(--success-bg); color: #0C4A2C; }
.alert-danger  { border-left-color: var(--danger);  background: var(--danger-bg);  color: #7A1520; }
.alert-warning { border-left-color: var(--warning); background: var(--warning-bg); color: #6B440A; }
.alert-info    { border-left-color: var(--info);    background: var(--info-bg);    color: #0D3D6B; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
}
.page-header-title    { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 0; }
.page-header-subtitle { font-size: .76rem; color: var(--text-muted); margin: 2px 0 0; }

/* ============================================================
   TOKEN SLIP
   ============================================================ */
.token-slip        { border-radius: var(--r-lg); overflow: hidden; }
.dashed-line       { border: none; border-top: 2px dashed var(--border); margin: 12px 0; }
.token-slip-footer { border-top: 1px dashed var(--border); }
.token-patient-info{ color: var(--text); }
.token-badge-num   { font-family: 'Courier New', monospace; font-weight: 700; }

/* ============================================================
   PATIENT SEARCH DROPDOWN
   ============================================================ */
.search-dropdown {
  position: absolute;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
}
.search-item:hover      { background: var(--primary-pale); }
.search-item:last-child { border-bottom: none; }
.selected-patient-card {
  background: var(--success-bg);
  border: 1.5px solid rgba(26,122,79,.22);
  border-radius: var(--r);
  padding: 12px;
  font-size: .85rem;
}

/* ============================================================
   PATIENT AVATAR / BANNER
   ============================================================ */
.patient-banner { border-left: 4px solid var(--primary) !important; }
.patient-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(123,29,46,.25);
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.dept-dot            { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 2px; }
.bg-primary-light    { background: var(--primary-pale); }
.form-control-xs,
.form-select-xs      { height: 28px; padding: .2rem .4rem; font-size: .8rem; border-radius: var(--r-xs); }
.abdm-status-linked  { color: var(--success); }
.abdm-status-pending { color: var(--warning); }
.icon-xs { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.icon-lg { width: 32px; height: 32px; display: inline-block; }
.avatar-xs { width: 24px; height: 24px; }
.avatar-sm { width: 32px; height: 32px; }
.queue-position-badge { margin-top: 8px; }
.dept-queue-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
}

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-pale); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(123,29,46,.11); }

/* ============================================================
   LIST GROUP
   ============================================================ */
.list-group-item-action:hover { background: var(--primary-pale2); color: var(--text); }
.list-group-item-action:focus { background: var(--primary-pale);  color: var(--primary); }
.list-group-item.active       { background: var(--primary); border-color: var(--primary); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--border-light); padding: 16px 20px; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 12px 20px; background: var(--surface-2); }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress { border-radius: 20px; background: var(--border-light); }
.progress-bar { background: linear-gradient(90deg, var(--primary-dark), var(--primary-light)); border-radius: 20px; }

/* ============================================================
   NAV TABS & PILLS
   ============================================================ */
.nav-tabs .nav-link        { color: var(--text-muted); border-radius: var(--r-sm) var(--r-sm) 0 0; font-weight: 500; }
.nav-tabs .nav-link:hover  { color: var(--primary); background: var(--primary-pale); }
.nav-tabs .nav-link.active { color: var(--primary); font-weight: 700; border-bottom-color: transparent; }
.nav-pills .nav-link       { color: var(--text-muted); font-weight: 500; border-radius: var(--r-sm); }
.nav-pills .nav-link:hover  { background: var(--primary-pale); color: var(--primary); }
.nav-pills .nav-link.active { background: var(--primary); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
  font-size: .74rem;
  background: var(--surface);
  border-top: 1px solid var(--border-light) !important;
  color: var(--text-muted);
  box-shadow: 0 -2px 8px rgba(0,0,0,.04);
  padding: 9px 18px;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    top: var(--topnav-h);
    left: 0;
    height: calc(100vh - var(--topnav-h));
    transform: translateX(-100%);
    z-index: 900;
    box-shadow: none;
  }
  .sidebar.open          { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  .sidebar-overlay.open  { display: block; }
  .main-content          { padding: 12px !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .no-print, .navbar, .sidebar, .sidebar-overlay, .app-footer,
  .alert-dismissible .btn-close { display: none !important; }
  .main-wrapper { display: block; }
  .main-content { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  .token-slip { break-inside: avoid; max-width: 80mm; margin: 0 auto; }
  .token-slip-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
