/* =====================================================================
   BANK SAMPAH DIGITAL — Design System
   Clean, slim, dominan hijau & putih
   ===================================================================== */

:root {
  /* Skala hijau */
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  /* Netral */
  --white: #ffffff;
  --gray-50:  #fafafa;
  --gray-100: #f4f5f4;
  --gray-200: #e8eae8;
  --gray-300: #d4d8d4;
  --gray-400: #9ca39c;
  --gray-500: #6b736b;
  --gray-600: #4b524b;
  --gray-700: #343934;
  --gray-900: #191c19;

  /* Semantik */
  --danger:  #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info:    #0891b2;

  /* Token */
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(20, 83, 45, .04);
  --shadow-sm: 0 1px 3px rgba(20, 83, 45, .07), 0 1px 2px rgba(20, 83, 45, .04);
  --shadow-md: 0 4px 12px rgba(20, 83, 45, .08);
  --shadow-lg: 0 12px 32px rgba(20, 83, 45, .12);
  --border: 1px solid var(--gray-200);
  --sidebar-w: 244px;
  --header-h: 60px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SFMono-Regular', 'JetBrains Mono', Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -.015em;
}
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

p { margin: 0 0 12px; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform .22s ease;
}

.sidebar__brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: var(--border);
}
.sidebar__logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
}
.sidebar__name {
  font-weight: 650; font-size: 14px; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__role {
  font-size: 11px; color: var(--green-600); font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em;
}

.sidebar__nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.nav__label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gray-400);
  padding: 12px 10px 6px;
}
.nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8.5px 11px; margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--gray-600); font-size: 13.5px; font-weight: 500;
  transition: background .14s, color .14s;
}
.nav__item:hover { background: var(--green-50); color: var(--green-800); }
.nav__item.is-active {
  background: var(--green-600); color: var(--white);
  box-shadow: var(--shadow-xs);
}
.nav__item.is-active:hover { background: var(--green-700); color: var(--white); }
.nav__item svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.8; }

.sidebar__footer { padding: 12px; border-top: var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 7px; border-radius: var(--radius-sm);
}
.user-chip img, .user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-weight: 600; font-size: 12px;
  flex-shrink: 0; object-fit: cover;
}
.user-chip__meta { min-width: 0; flex: 1; }
.user-chip__name {
  font-size: 12.5px; font-weight: 600; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-chip__mail {
  font-size: 11px; color: var(--gray-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__title { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.topbar__spacer { flex: 1; }

.content { padding: 22px; max-width: 1400px; width: 100%; }

.page-head {
  display: flex; align-items: flex-start; gap: 14px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.page-head__text { flex: 1; min-width: 200px; }
.page-head__sub { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card__head {
  padding: 14px 18px;
  border-bottom: var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card__title { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.card__body { padding: 18px; }
.card__foot { padding: 12px 18px; border-top: var(--border); background: var(--gray-50); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.grid-sidebar { grid-template-columns: 1fr 320px; }

/* ---------- Stat ---------- */
.stat {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: 3px; background: var(--green-500);
}
.stat--accent { background: linear-gradient(135deg, var(--green-600), var(--green-700)); border-color: transparent; }
.stat--accent .stat__label { color: var(--green-100); }
.stat--accent .stat__value { color: var(--white); }
.stat--accent .stat__hint  { color: var(--green-200); }
.stat--accent::before { background: var(--green-300); }

.stat__label {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-400);
}
.stat__value {
  font-size: 24px; font-weight: 700; color: var(--gray-900);
  letter-spacing: -.02em; margin-top: 4px; line-height: 1.2;
}
.stat__hint { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.table th {
  text-align: left; font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--gray-500);
  padding: 10px 14px;
  border-bottom: var(--border);
  background: var(--gray-50);
  white-space: nowrap;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table tbody tr:hover { background: var(--green-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table__empty {
  text-align: center; padding: 40px 20px; color: var(--gray-400);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2.5px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  background: var(--gray-100); color: var(--gray-600);
  white-space: nowrap;
}
.badge--green  { background: var(--green-100); color: var(--green-800); }
.badge--solid  { background: var(--green-600); color: var(--white); }
.badge--gray   { background: var(--gray-100);  color: var(--gray-600); }
.badge--red    { background: var(--danger-bg); color: var(--danger); }
.badge--amber  { background: var(--warning-bg); color: var(--warning); }
.badge--dot::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

/* Level member */
.lvl-basic    { background: var(--gray-100);  color: var(--gray-600); }
.lvl-silver   { background: #eef2f6; color: #475569; }
.lvl-gold     { background: #fef6e0; color: #a16207; }
.lvl-platinum { background: var(--green-100); color: var(--green-800); }

/* Jenis sampah */
.wt-organik   { background: var(--green-100); color: var(--green-800); }
.wt-anorganik { background: #e0f2fe; color: #0369a1; }
.wt-b3        { background: var(--danger-bg); color: var(--danger); }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8.5px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .14s, border-color .14s, transform .06s, box-shadow .14s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; stroke-width: 2; }

.btn--primary {
  background: var(--green-600); color: var(--white);
  box-shadow: var(--shadow-xs);
}
.btn--primary:hover { background: var(--green-700); color: var(--white); }

.btn--outline {
  background: var(--white); color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn--outline:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }

.btn--ghost { background: transparent; color: var(--gray-600); }
.btn--ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn--danger { background: var(--white); color: var(--danger); border-color: #fecaca; }
.btn--danger:hover { background: var(--danger-bg); }

.btn--sm { padding: 5.5px 11px; font-size: 12.5px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-group { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.field { margin-bottom: 15px; }
.field__label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 5px;
}
.field__label .req { color: var(--danger); }
.field__hint { font-size: 11.5px; color: var(--gray-400); margin-top: 4px; }

.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13.5px; color: var(--gray-900);
  background: var(--white);
  transition: border-color .14s, box-shadow .14s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.input::placeholder { color: var(--gray-400); }
.textarea { resize: vertical; min-height: 78px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b736b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .input-group__addon {
  display: grid; place-items: center;
  padding: 0 12px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px; font-weight: 600; color: var(--gray-500);
}

.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green-600); }

/* Pilihan jenis sampah sebagai kartu radio */
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card__box {
  display: block; text-align: center;
  padding: 12px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  transition: all .14s; cursor: pointer;
}
.radio-card input:checked + .radio-card__box {
  border-color: var(--green-600);
  background: var(--green-50);
  color: var(--green-800);
  box-shadow: 0 0 0 3px var(--green-100);
}
.radio-card__icon { font-size: 20px; display: block; margin-bottom: 3px; }

.filter-bar {
  display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 16px;
}
.filter-bar .field { margin-bottom: 0; }

/* ---------- Alert ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert--success { background: var(--green-50); border-color: var(--green-200); color: var(--green-800); }
.alert--error   { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.alert--warn    { background: var(--warning-bg); border-color: #fde68a; color: var(--warning); }
.alert--info    { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Login ---------- */
.auth {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 500px at 15% -10%, var(--green-100), transparent 60%),
    radial-gradient(800px 400px at 90% 110%, var(--green-50), transparent 55%),
    var(--white);
}
.auth__card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
  text-align: center;
}
.auth__mark {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: grid; place-items: center;
  color: var(--white); font-size: 24px;
  box-shadow: var(--shadow-md);
}
.auth__title { font-size: 20px; margin-bottom: 5px; }
.auth__sub { font-size: 13.5px; color: var(--gray-500); margin-bottom: 24px; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-google:hover {
  border-color: var(--green-500); background: var(--green-50);
  color: var(--gray-900); box-shadow: var(--shadow-sm);
}
.auth__foot { margin-top: 22px; font-size: 12px; color: var(--gray-400); line-height: 1.65; }

/* ---------- Scanner ---------- */
.scanner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-900);
  aspect-ratio: 4/3;
}
.scanner video, .scanner canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner__frame {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.scanner__box {
  width: 58%; aspect-ratio: 1;
  border: 2.5px solid rgba(255,255,255,.85);
  border-radius: 14px;
  box-shadow: 0 0 0 2000px rgba(0,0,0,.42);
  position: relative;
}
.scanner__box::after {
  content: ''; position: absolute; left: 6%; right: 6%; top: 50%;
  height: 2px; background: var(--green-400);
  box-shadow: 0 0 10px var(--green-400);
  animation: scanline 2.2s ease-in-out infinite;
}
@keyframes scanline {
  0%, 100% { top: 8%; opacity: .9; }
  50%      { top: 92%; opacity: .9; }
}
.scanner__idle {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gray-300); text-align: center; padding: 20px;
  background: var(--gray-900);
}

/* ---------- Search results ---------- */
.result-list { max-height: 380px; overflow-y: auto; }
.result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .12s;
  text-decoration: none; color: inherit;
}
.result-item:hover { background: var(--green-50); }
.result-item:last-child { border-bottom: 0; }
.result-item__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.result-item__body { flex: 1; min-width: 0; }
.result-item__name { font-size: 13.5px; font-weight: 600; color: var(--gray-900); }
.result-item__meta { font-size: 11.5px; color: var(--gray-500); }

/* ---------- QR card (siap cetak) ---------- */
.qr-page { padding: 30px; display: grid; place-items: center; min-height: 100vh; background: var(--gray-100); }
.qr-card {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: var(--border);
}
.qr-card__head {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 11px;
}
.qr-card__head img { width: 34px; height: 34px; border-radius: 8px; background: var(--white); object-fit: contain; }
.qr-card__brand { font-size: 14px; font-weight: 700; line-height: 1.3; }
.qr-card__tag { font-size: 11px; opacity: .85; }
.qr-card__body { padding: 22px 20px; text-align: center; }
.qr-card__qr {
  width: 200px; height: 200px; margin: 0 auto 14px;
  padding: 10px; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
}
.qr-card__qr canvas, .qr-card__qr img { width: 100%; height: 100%; }
.qr-card__id {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: .09em; color: var(--green-800);
  background: var(--green-50); border-radius: var(--radius-sm);
  padding: 7px 12px; display: inline-block; margin-bottom: 10px;
}
.qr-card__name { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.qr-card__meta { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.qr-card__foot {
  border-top: 1px dashed var(--gray-300);
  padding: 11px 20px; text-align: center;
  font-size: 10.5px; color: var(--gray-400);
}

/* ---------- Chart ---------- */
.chart { width: 100%; height: 220px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.chart-legend__item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray-600); }
.chart-legend__dot { width: 9px; height: 9px; border-radius: 3px; }

/* Bar sederhana untuk komposisi */
.meter { height: 7px; border-radius: 4px; background: var(--gray-100); overflow: hidden; display: flex; }
.meter__seg { height: 100%; }

/* ---------- Utilities ---------- */
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; }
.muted { color: var(--gray-500); }
.small { font-size: 12px; }
.bold  { font-weight: 600; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.flex-1 { flex: 1; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 11px; border-radius: var(--radius-sm);
  border: var(--border); background: var(--white);
  font-size: 13px; color: var(--gray-600);
}
.pagination .is-current { background: var(--green-600); color: var(--white); border-color: var(--green-600); font-weight: 600; }

.divider { height: 1px; background: var(--gray-200); margin: 16px 0; border: 0; }

.empty {
  text-align: center; padding: 44px 20px; color: var(--gray-400);
}
.empty__icon { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.empty__title { font-size: 14px; font-weight: 600; color: var(--gray-600); margin-bottom: 4px; }

.repeater__row {
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px;
}
.repeater__row .input { flex: 1; }

.sidebar-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-5, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; }
  .content { padding: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35;
  }
}

@media (max-width: 560px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  h1 { font-size: 19px; }
  .stat__value { font-size: 21px; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .no-print, .btn { display: none !important; }
  .main { margin-left: 0; }
  body { background: var(--white); }
  .qr-page { padding: 0; background: var(--white); min-height: auto; }
  .qr-card { box-shadow: none; border: 1.5px solid var(--gray-300); }
  .card { box-shadow: none; border: 1px solid var(--gray-300); break-inside: avoid; }
}
