:root {
  --navy: #0f2547;
  --navy-dark: #0a1a33;
  --navy-light: #1a3a6b;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #d1fae5;
  --bg-soft: #f0f4f8;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;
  --border-soft: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(15,37,71,.06);
  --shadow-md: 0 4px 12px rgba(15,37,71,.08);
  --shadow-lg: 0 8px 24px rgba(15,37,71,.12);
  --shadow-xl: 0 16px 40px rgba(15,37,71,.16);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* ═══ Sistem Tipografi - Lebih Kecil ═══ */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', 'Consolas', monospace;

  --text-2xs:   .625rem;   /* 10px */
  --text-xs:    .6875rem;   /* 11px */
  --text-sm:    .75rem;     /* 12px */
  --text-base:  .8125rem;   /* 13px */
  --text-md:    .875rem;    /* 14px */
  --text-lg:    .9375rem;   /* 15px */
  --text-xl:    1.0625rem;  /* 17px */
  --text-2xl:   1.1875rem;  /* 19px */
  --text-3xl:   1.375rem;   /* 22px */

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  --leading-tight:  1.2;
  --leading-normal: 1.4;
  --leading-relaxed:1.55;
  --tracking-tight: -.008em;
  --tracking-normal:.01em;
  --tracking-wide:  .03em;
  --tracking-wider: .06em;

  --transition-fast: .12s ease;
  --transition-base: .2s ease;
  --transition-slow: .3s ease;
}

* {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

body {
  background: var(--bg-soft);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
}

/* ---------- Scrollbar Custom ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------- Navbar ---------- */
.app-navbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: .45rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  z-index: 1030;
  font-size: var(--text-xs);
}
.app-navbar .navbar-brand {
  color: #fff;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}
.text-brand-accent { 
  color: var(--emerald); 
  text-shadow: 0 0 20px rgba(16,185,129,.3);
}
.btn-toggle-sidebar {
  color: #fff;
  border: none;
  background: transparent;
  font-size: var(--text-md);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.btn-toggle-sidebar:hover { background: rgba(255,255,255,.1); }
.user-pill {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.1);
  padding: .3rem .85rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}
.user-pill:hover { 
  background: rgba(255,255,255,.18); 
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* ---------- Layout ---------- */
.app-wrapper { min-height: calc(100vh - 52px); }
.app-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  min-height: calc(100vh - 52px);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-sm);
}
.sidebar-inner { 
  padding: .75rem .5rem; 
  position: sticky; 
  top: 60px; 
}
.sidebar-heading {
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  margin: 1rem .6rem .35rem;
  font-weight: var(--weight-semibold);
  line-height: 1;
}
.sidebar-nav .nav-link {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  margin-bottom: 1px;
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-nav .nav-link i {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.sidebar-nav .nav-link:hover {
  background: var(--emerald-light);
  color: var(--emerald-dark);
}
.sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  font-weight: var(--weight-semibold);
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}

.app-content {
  padding: 1rem 1.25rem;
  max-width: 100%;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    z-index: 1040;
    top: 52px;
    left: 0;
    height: calc(100vh - 52px);
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .app-sidebar.show { transform: translateX(0); }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 52px 0 0 0;
    background: rgba(0,0,0,.4);
    z-index: 1035;
    backdrop-filter: blur(2px);
  }
}

/* ---------- Cards & Stats ---------- */
.stat-card {
  border: none;
  border-radius: var(--radius);
  color: #fff;
  padding: .9rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.stat-card .stat-icon {
  position: absolute;
  right: 10px; top: 10px;
  font-size: 2rem;
  opacity: .15;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: .1rem;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  position: relative;
}
.stat-card .stat-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  opacity: .85;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  position: relative;
}

.bg-grad-emerald { 
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
}
.bg-grad-navy { 
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2547 100%); 
}
.bg-grad-amber { 
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
}
.bg-grad-violet { 
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); 
}
.bg-grad-rose {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--bg-card);
  transition: box-shadow var(--transition-fast);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: .65rem 1rem;
  line-height: var(--leading-tight);
  border-radius: var(--radius) var(--radius) 0 0 !important;
  color: var(--text-primary);
}
.card-body {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  padding: .85rem 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  letter-spacing: var(--tracking-normal);
  transition: all var(--transition-fast);
  line-height: var(--leading-tight);
}
.btn-sm {
  font-size: var(--text-2xs);
  padding: .3rem .65rem;
}
.btn-lg {
  font-size: var(--text-sm);
  padding: .55rem 1.25rem;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, var(--emerald-dark), #047857);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,.4);
  transform: translateY(-1px);
}
.btn-emerald:active {
  transform: translateY(0);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,37,71,.3);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,37,71,.4);
  transform: translateY(-1px);
}
.btn-navy:active {
  transform: translateY(0);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover,
.btn-outline-navy.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Selaraskan tombol outline-primary bawaan Bootstrap (dipakai untuk aksi
   Edit/Cetak di berbagai halaman) dengan warna navy khas aplikasi, bukan
   biru default Bootstrap. */
.btn-outline-primary {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,37,71,.25);
}

.btn-light {
  background: var(--bg-soft);
  border-color: var(--border-light);
  color: var(--text-secondary);
}
.btn-light:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-outline-secondary {
  border-color: var(--border-light);
  color: var(--text-secondary);
  font-size: var(--text-2xs);
  padding: .25rem .5rem;
}
.btn-outline-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* ---------- Form ---------- */
.form-control,
.form-select {
  font-size: var(--text-xs);
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  line-height: var(--leading-normal);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin-bottom: .3rem;
}

/* ---------- Tables ---------- */
.table {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  margin-bottom: 0;
}
.table thead th {
  background: var(--bg-soft);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  border-bottom-width: 1px;
  padding: .55rem .7rem;
  line-height: 1;
  white-space: nowrap;
}
.table tbody td {
  padding: .55rem .7rem;
  vertical-align: middle;
  color: var(--text-secondary);
  border-bottom-color: var(--border-soft);
}
.table tbody tr:hover {
  background: rgba(16,185,129,.03);
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(241,245,249,.5);
}

/* ---------- Login ---------- */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #14304f 50%, var(--emerald-dark) 120%);
  padding: 1rem;
}
.login-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}
.login-side {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--navy) 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.login-side::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}
.login-side h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  position: relative;
}
.login-side p {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  opacity: .85;
  position: relative;
}

/* ---------- POS Kasir ---------- */
#posTab .nav-link {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: none;
  transition: all var(--transition-fast);
}
#posTab .nav-link.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,37,71,.25);
}
#posTab .nav-link:not(.active):hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.menu-card {
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald);
}
.menu-card .menu-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: .1rem;
}
.menu-card .menu-price {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--emerald-dark);
  line-height: 1;
}
.menu-card .menu-img {
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald-light), #ecfdf5);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1.5rem;
  color: var(--emerald-dark);
  transition: background var(--transition-fast);
}
.menu-card:hover .menu-img {
  background: linear-gradient(135deg, #a7f3d0, var(--emerald-light));
}

.wahana-card { 
  cursor: pointer; 
  border-radius: var(--radius);
  overflow: hidden;
}
.wahana-card:hover { 
  border-color: #8b5cf6 !important;
  box-shadow: 0 4px 16px rgba(139,92,246,.2);
}
.wahana-card .menu-img {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important;
  color: #6d28d9;
}

.cart-panel { 
  position: sticky; 
  top: 64px; 
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.cart-panel .card-header {
  font-size: var(--text-sm);
  padding: .55rem .85rem;
}
.cart-item {
  border-bottom: 1px dashed var(--border-light);
  padding: .5rem 0;
  font-size: var(--text-xs);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item .item-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}
.cart-item .item-price {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--emerald-dark);
}
.qty-box {
  width: 50px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: .3rem;
}

.category-pill {
  border-radius: 50px;
  padding: .3rem .85rem;
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  letter-spacing: var(--tracking-normal);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  border-color: var(--border-light);
}
.category-pill.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  font-weight: var(--weight-semibold);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(15,37,71,.2);
}
.category-pill:not(.active):hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(15,37,71,.04);
}

/* ---------- Modal ---------- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-xs);
}
.modal-header {
  border-bottom: 1px solid var(--border-soft);
  padding: .75rem 1rem;
}
.modal-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.modal-body {
  padding: 1rem;
}
.modal-footer {
  border-top: 1px solid var(--border-soft);
  padding: .65rem 1rem;
}
.btn-close {
  width: 24px;
  height: 24px;
  padding: 0;
  opacity: .5;
}

/* ---------- Badges ---------- */
.badge {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  padding: .2rem .5rem;
  border-radius: 6px;
  letter-spacing: var(--tracking-normal);
}
.badge-role-admin    { background: var(--navy); }
.badge-role-kasir    { background: var(--emerald); }
.badge-role-operator { background: #8b5cf6; }
.badge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  line-height: 1;
}
.badge-aktif {
  background: var(--emerald-light);
  color: var(--emerald-dark);
}
.badge-nonaktif {
  background: #fee2e2;
  color: #dc2626;
}
.badge-status-aktif     { background: var(--emerald); color: #fff; }
.badge-status-digunakan { background: #94a3b8; color: #fff; }
.badge-status-expired   { background: #f43f5e; color: #fff; }

/* ---------- Alerts ---------- */
.alert {
  font-size: var(--text-xs);
  padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  border: none;
  line-height: var(--leading-normal);
}
.alert-success {
  background: var(--emerald-light);
  color: var(--emerald-dark);
}
.alert-danger {
  background: #fee2e2;
  color: #dc2626;
}
.alert-warning {
  background: #fef3c7;
  color: #d97706;
}
.alert-info {
  background: #dbeafe;
  color: #2563eb;
}

/* ---------- Pagination ---------- */
.pagination {
  gap: 3px;
}
.page-link {
  font-size: var(--text-xs);
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.page-link:hover {
  background: var(--bg-soft);
  border-color: var(--border-light);
  color: var(--text-primary);
}
.page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- Print ---------- */
.print-only { display: none; }
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; font-size: 11px; }
}

/* ---------- Struk ---------- */
.struk-box {
  width: 280px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  background: #fff;
  padding: 12px;
  border: 1px dashed #ddd;
  border-radius: var(--radius-sm);
}
.struk-box .struk-title {
  font-size: 13px;
  font-weight: var(--weight-bold);
  text-align: center;
}
.struk-box .struk-total {
  font-size: 14px;
  font-weight: var(--weight-extrabold);
}
.struk-box hr { 
  border-top: 1px dashed #333; 
  margin: 4px 0;
}

/* ---------- Tiket ---------- */
.ticket-box {
  width: 300px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.ticket-header {
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  color: #fff;
  padding: .85rem;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  position: relative;
  overflow: hidden;
}
.ticket-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
}
.ticket-body {
  padding: .85rem;
  text-align: center;
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
}
.ticket-perforation { 
  border-top: 2px dashed var(--border-light); 
  position: relative;
}
.ticket-perforation::before,
.ticket-perforation::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--bg-soft);
  border-radius: 50%;
}
.ticket-perforation::before { left: -8px; }
.ticket-perforation::after { right: -8px; }

/* ---------- Toast / Notification ---------- */
.toast-container {
  z-index: 9999;
}
.toast {
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: none;
  padding: .65rem 1rem;
}

/* ---------- Dropdown ---------- */
.dropdown-menu {
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
}
.dropdown-item {
  font-size: var(--text-xs);
  padding: .45rem .75rem;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.dropdown-item:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

/* ---------- Page Header ---------- */
.page-header {
  margin-bottom: 1rem;
}
.page-header h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: .1rem;
  line-height: var(--leading-tight);
}
.page-header p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.5rem;
  opacity: .4;
  margin-bottom: .75rem;
  display: block;
}
.empty-state p {
  font-size: var(--text-xs);
  margin-bottom: 0;
}

/* ---------- Misc ---------- */
.text-success { color: var(--emerald-dark) !important; }
.text-primary { color: var(--navy) !important; }

.login-scan-box { 
  max-width: 420px; 
  margin: 0 auto; 
}

.divider-text {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: var(--text-2xs);
  margin: 1rem 0;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 767.98px) {
  .app-content {
    padding: .75rem;
  }
  .stat-card {
    padding: .75rem .85rem;
  }
  .stat-card h3 {
    font-size: var(--text-lg);
  }
  .menu-card .menu-img {
    height: 60px;
  }
  .card-body {
    padding: .65rem .75rem;
  }
}

@media (max-width: 575.98px) {
  .app-sidebar {
    width: 200px;
    min-width: 200px;
  }
  .login-card {
    border-radius: var(--radius-lg);
  }
  .login-side {
    padding: 1.5rem 1.25rem;
  }
}