:root {
  --primary: #206754;
  --primary-dark: #154538;
  --primary-light: #e6f2ef;
  --primary-soft: #eef6f4;
  --success: #16a34a;
  --success-light: #e7f8ee;
  --info: #2563eb;
  --info-light: #eaf1fe;
  --warning: #d97706;
  --warning-light: #fef3e2;
  --danger: #dc2626;
  --danger-light: #fdecec;
  --muted: #6b7280;
  --muted-light: #9aa3ad;
  --bg: #f3f5f4;
  --card-bg: #ffffff;
  --text: #1a2320;
  --border: #e7ebe9;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 3px rgba(20, 30, 25, .06);
  --shadow-md: 0 4px 14px rgba(20, 30, 25, .08);
  --shadow-lg: 0 10px 28px rgba(20, 30, 25, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- Auth (login) ---------- */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 45%, var(--bg) 45%);
}

.auth-logo {
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.auth-logo .icon {
  font-size: 34px;
  width: 68px; height: 68px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.auth-logo h1 { font-size: 21px; margin: 4px 0 0; font-weight: 800; letter-spacing: -.2px; }
.auth-logo p { margin: 3px 0 0; font-size: 13px; opacity: .8; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); letter-spacing: .1px; }

.form-control {
  width: 100%;
  padding: 12.5px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  font-family: inherit;
  background: #fbfbfb;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}
textarea.form-control { resize: vertical; font-family: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13.5px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .1s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 3px 10px rgba(32,103,84,.28);
}
.btn-primary:hover { filter: brightness(1.05); }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error   { background: var(--danger-light); color: var(--danger); border-color: #f8d3d3; }
.alert-success { background: var(--success-light); color: var(--success); border-color: #c9edd6; }

/* ---------- Badges status ---------- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .1px; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-muted   { background: #f0f2f1; color: var(--muted); }

/* ---------- App header (dashboard) ---------- */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 40px;
  border-radius: 0 0 28px 28px;
  position: relative;
}
.app-header .greet { font-size: 13px; opacity: .8; }
.app-header .name  { font-size: 19px; font-weight: 800; margin-top: 2px; letter-spacing: -.2px; }
.app-header .role  { font-size: 12px; opacity: .85; margin-top: 6px; }

.app-content { padding: 16px; padding-bottom: 94px; flex: 1; }
.app-content.pull-up { margin-top: -26px; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: sticky;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
  text-decoration: none;
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 12px;
  transition: color .15s ease, background .15s ease;
}
.bottom-nav a.active { color: var(--primary); background: var(--primary-soft); }
.bottom-nav a .ic { font-size: 19px; }
.bottom-nav a.disabled { opacity: .3; }

/* ---------- Sub-page header (dengan tombol back) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 20px;
  border-radius: 0 0 24px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header a.back {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: 11px;
  flex-shrink: 0;
}
.page-header h1 { font-size: 16.5px; margin: 0; font-weight: 800; letter-spacing: -.1px; }

/* ---------- Search bar ---------- */
.search-bar {
  display: flex;
  gap: 8px;
  margin: 16px 0 14px;
}
.search-bar input {
  flex: 1;
  padding: 11.5px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.search-bar button {
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- List card (item baris: pelanggan/kendaraan/produk/dll) ---------- */
.list-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.list-card:active { transform: scale(.985); box-shadow: var(--shadow-sm); }
.list-card .thumb {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  overflow: hidden;
}
.list-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-card .body { flex: 1; min-width: 0; }
.list-card .title { font-weight: 700; font-size: 14px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-card .subtitle { font-size: 12px; color: var(--muted); margin: 0; }
.list-card .trailing { font-size: 11.5px; color: var(--muted); text-align: right; flex-shrink: 0; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state .ic {
  font-size: 30px;
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  border-radius: 20px;
}
.empty-state p { font-size: 13px; margin: 0; }

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  bottom: 88px;
  right: calc(50% - 240px + 20px);
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 300;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(32,103,84,.38);
  transition: transform .12s ease;
}
.fab:active { transform: scale(.94); }
@media (max-width: 480px) {
  .fab { right: 20px; }
}

/* ---------- Form helpers ---------- */
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--primary-soft); }
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar-upload .preview {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-upload .preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Combobox: input pencarian + saran (dipakai form Pembelian) ---------- */
.combo-wrap { position: relative; }
.combo-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
}
.combo-suggestions.open { display: block; }
.combo-suggestions .opt {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.combo-suggestions .opt:last-child { border-bottom: none; }
.combo-suggestions .opt:hover,
.combo-suggestions .opt.active { background: var(--primary-soft); }
.combo-suggestions .empty { padding: 10px 12px; font-size: 12px; color: var(--muted); }

/* ---------- Stat cards (Dashboard) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
}
.stat-card .ic { font-size: 18px; margin-bottom: 6px; }
.stat-card .val { font-size: 19px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
.stat-card .lbl { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.stat-card.wide { grid-column: span 2; }
.stat-card.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(32,103,84,.28);
}
.stat-card.hero .lbl { color: rgba(255,255,255,.75); }

.section-title {
  font-weight: 800;
  font-size: 13.5px;
  margin: 20px 0 10px;
  color: var(--text);
  letter-spacing: -.1px;
}

.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.quick-menu a {
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 4px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.quick-menu a:active { transform: scale(.95); }
.quick-menu .ic {
  font-size: 19px;
  width: 38px; height: 38px;
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  border-radius: 12px;
}
.quick-menu .lbl { font-size: 11px; font-weight: 700; }

.alert-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--danger);
  box-shadow: var(--shadow-sm);
}

/* ---------- POS: grid produk ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 74px;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.product-card .thumb {
  width: 100%; height: 74px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  overflow: hidden;
  margin-bottom: 8px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .name { font-size: 12px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; min-height: 31px; }
.product-card .price { font-size: 13px; font-weight: 800; color: var(--primary); margin: 0 0 8px; }
.product-card .stock { font-size: 10.5px; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.product-card button {
  width: 100%;
  padding: 8px;
  border-radius: 9px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .1s ease;
}
.product-card button:active { transform: scale(.95); }

/* ---------- POS: cart bar (sticky, di atas bottom-nav) + preview item ---------- */
.cart-bar-wrap {
  position: sticky;
  bottom: 64px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 6;
}
.cart-preview {
  display: none;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 14px rgba(0,0,0,.10);
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-bar-wrap.expanded .cart-preview { display: block; }
.cart-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
}
.cart-preview-row:last-child { border-bottom: none; }
.cart-preview-row .nm { flex: 1; }
.cart-preview-row .qty { color: var(--muted); font-weight: 600; }
.cart-preview-row .sub { font-weight: 700; white-space: nowrap; }

.cart-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 13px 18px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.14);
}
.cart-bar-wrap.expanded .cart-bar { border-radius: 0 0 16px 16px; }
.cart-bar-toggle {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  opacity: .9;
  cursor: pointer;
  padding: 4px 0;
}
.cart-bar-total { color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; }

/* ---------- POS: baris item keranjang ---------- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info .n { font-size: 13.5px; font-weight: 700; margin: 0; }
.cart-item .info .p { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-control button {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.qty-control input {
  width: 32px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  background: transparent;
}

/* ---------- Invoice ---------- */
.invoice-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.invoice-box .center { text-align: center; }
.invoice-box hr { border: none; border-top: 1px dashed #d7dbd9; margin: 12px 0; }
.invoice-box table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.invoice-box table td { padding: 4px 0; vertical-align: top; }
.invoice-box .totals td { padding: 3px 0; }
.invoice-box .totals .label { color: var(--muted); }
.invoice-box .grand { font-weight: 800; font-size: 15.5px; }

@media print {
  .bottom-nav, .page-header, .net-status, .no-print, .alert { display: none !important; }
  .app-shell { max-width: 100%; }
  .app-content { padding: 0; }
}

/* ---------- Indikator koneksi (PWA, Phase 9) ---------- */
.net-status {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 8px;
  z-index: 999;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.net-status.online { color: var(--success); }
.net-status.offline { color: var(--danger); }

/* =====================================================================
   RESPONSIVE - TABLET & DESKTOP
   Diterapkan lewat body.has-shell-nav (halaman dengan bottom-nav, yaitu
   semua halaman APP — bukan halaman login) supaya login tetap sebagai
   kartu terpusat sederhana di layar berapa pun.
   ===================================================================== */

@media (min-width: 768px) {
  body.has-shell-nav .app-shell { max-width: 760px; }
  body.has-shell-nav .product-grid { grid-template-columns: repeat(3, 1fr); }
  body.has-shell-nav .quick-menu { grid-template-columns: repeat(4, 1fr); }
  body.has-shell-nav .report-menu { grid-template-columns: repeat(3, 1fr); }
  body.has-shell-nav .stat-grid { grid-template-columns: repeat(4, 1fr); }
  body.has-shell-nav .stat-card.wide { grid-column: span 4; }
  body.has-shell-nav .cart-bar-wrap,
  body.has-shell-nav .bottom-nav { max-width: 760px; }
}

@media (min-width: 1024px) {
  body.has-shell-nav {
    background: #e7eae8;
  }

  body.has-shell-nav .app-shell {
    max-width: 1180px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "nav header"
      "nav content";
    box-shadow: var(--shadow-lg);
  }

  body.has-shell-nav .page-header,
  body.has-shell-nav .app-header {
    grid-area: header;
    border-radius: 0;
  }

  body.has-shell-nav .app-content {
    grid-area: content;
    padding: 26px 36px 48px;
    position: relative;
  }

  /* Bottom-nav menjadi sidebar kiri permanen */
  body.has-shell-nav .bottom-nav {
    grid-area: nav;
    position: sticky;
    top: 0;
    height: 100vh;
    width: auto;
    max-width: none;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 28px 14px;
    background: #fff;
    border-top: none;
    border-right: 1px solid var(--border);
    backdrop-filter: none;
  }
  body.has-shell-nav .bottom-nav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    font-size: 13.5px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  body.has-shell-nav .bottom-nav a .ic { font-size: 19px; }

  body.has-shell-nav .product-grid { grid-template-columns: repeat(4, 1fr); }
  body.has-shell-nav .quick-menu { grid-template-columns: repeat(5, 1fr); }
  body.has-shell-nav .report-menu { grid-template-columns: repeat(4, 1fr); }
  body.has-shell-nav .stat-grid { grid-template-columns: repeat(4, 1fr); }

  body.has-shell-nav .fab { position: fixed; bottom: 32px; right: 32px; }

  body.has-shell-nav .cart-bar-wrap {
    max-width: 100%;
    position: sticky;
    bottom: 20px;
  }
  body.has-shell-nav .cart-bar,
  body.has-shell-nav .cart-bar-wrap.expanded .cart-bar,
  body.has-shell-nav .cart-preview {
    border-radius: var(--radius-md);
  }
  body.has-shell-nav .cart-bar-wrap.expanded .cart-preview { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  body.has-shell-nav .cart-bar-wrap.expanded .cart-bar { border-radius: 0 0 var(--radius-md) var(--radius-md); }

  /* Form & card tidak perlu melar penuh di layar sangat lebar */
  body.has-shell-nav .card > form,
  body.has-shell-nav .invoice-box { max-width: 640px; }
}

@media (min-width: 1280px) {
  body.has-shell-nav .app-shell { max-width: 1280px; }
}

/* ---------- Reports ---------- */
.report-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-menu a {
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.report-menu a:active { transform: scale(.96); }
.report-menu .ic {
  font-size: 20px;
  width: 40px; height: 40px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  border-radius: 12px;
}
.report-menu .lbl { font-size: 12.5px; font-weight: 700; line-height: 1.3; }

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.summary-row .box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.summary-row .box .v { font-size: 15.5px; font-weight: 800; }
.summary-row .box .l { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.report-table th, .report-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.report-table th {
  background: var(--primary-soft);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--primary-dark);
}
.report-table tr:last-child td { border-bottom: none; }
.report-table td.num { text-align: right; font-weight: 600; }
.report-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
