/* Sinar Abadi Meubel — Sistem Keuangan
   Warna dari logo: oranye #F7A11F, hitam, putih. Oranye = aksen brand (bukan warna peringatan).
   Hijau = laba/naik, merah = rugi/terlambat, kuning-kecokelatan = perlu perhatian. */

@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #1C1A17;
  --ink-2: #3B3833;
  --muted: #6E6A62;
  --faint: #9A968D;
  --line: #E5E3DE;
  --line-2: #D5D2CB;
  --canvas: #F2F2F0;
  --paper: #FFFFFF;
  --brand: #F7A11F;
  --brand-hover: #E8920F;
  --brand-ink: #9A5800;
  --brand-soft: #FEF2DF;
  --pos: #1E7A4C;
  --pos-soft: #E2F2E9;
  --neg: #BF3329;
  --neg-soft: #FBE6E3;
  --warn: #77590A;
  --warn-soft: #FFF5C9;
  --info: #2B5B8C;
  --info-soft: #E5EEF8;
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .06), 0 8px 24px rgba(28, 26, 23, .06);
  --side: 252px;
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- Shell ---------------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink); color: #EDEBE6;
  display: flex; flex-direction: column; z-index: 30; overflow-y: auto;
}
.sidebar .brand { padding: 22px 20px 16px; }
.sidebar .brand img { width: 100%; max-width: 190px; display: block; }
.nav { padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav .group { color: #8D887F; font-size: 12px; font-weight: 600; margin: 14px 10px 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-md); color: #E4E1DA; font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: #2A2723; text-decoration: none; }
.nav a.active { background: var(--brand); color: var(--ink); font-weight: 700; }
.nav a.active svg { stroke: var(--ink); }
.nav svg { width: 20px; height: 20px; stroke: #B9B4AA; flex: none; }
.sidebar .me { margin-top: auto; padding: 14px 20px 20px; border-top: 1px solid #2E2B27; font-size: 13px; }
.sidebar .me b { display: block; color: #fff; font-size: 14px; }
.sidebar .me button { margin-top: 10px; }

.main { margin-left: var(--side); min-height: 100vh; }
.topbar { display: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.bottomnav { display: none; }
.fab { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 280px; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  .main { margin-left: 0; padding-bottom: 78px; }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 12px 0 8px;
    background: var(--ink); color: #fff; padding-top: env(safe-area-inset-top);
  }
  .topbar .title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar img { width: 30px; height: 30px; }
  .topbar button { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
  .topbar svg { stroke: #fff; width: 22px; height: 22px; }
  .page { padding: 18px 14px 96px; }
  h1 { font-size: 22px; }
  .page-head { margin-bottom: 16px; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--paper);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); height: calc(64px + env(safe-area-inset-bottom));
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav svg { width: 22px; height: 22px; stroke: var(--muted); }
  .bottomnav a.active { color: var(--ink); }
  .bottomnav a.active svg { stroke: var(--ink); }
  .bottomnav a.active .pill { background: var(--brand-soft); }
  .bottomnav .pill { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 26; width: 56px; height: 56px;
    border-radius: 18px; background: var(--brand); border: 0; box-shadow: 0 6px 18px rgba(154, 88, 0, .35);
  }
  .fab svg { width: 26px; height: 26px; stroke: var(--ink); stroke-width: 2.5; }
}

/* Status koneksi */
.netbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 32px; font-size: 13.5px; background: var(--info-soft); color: #1F4366; border-bottom: 1px solid #D3E1F0; }
.netbar.off { background: #2B2824; color: #F3F1EC; border-color: #2B2824; }
.netbar.off a { color: var(--brand); }
.netbar.warn { background: var(--warn-soft); color: var(--warn); }
.netbar.err { background: var(--neg-soft); color: #8A231B; }
.netbar a { font-weight: 700; }
.dot-net { width: 9px; height: 9px; border-radius: 50%; background: var(--info); flex: none; }
.netbar.off .dot-net { background: var(--brand); }
.netbar.sync .dot-net { animation: pulse 1s infinite alternate; }
.netbar.err .dot-net { background: var(--neg); }
.netbar.warn .dot-net { background: #D6A400; }
@keyframes pulse { to { opacity: .25; } }
@media (max-width: 900px) { .netbar { padding: 8px 14px; } }
@media (prefers-reduced-motion: reduce) { .netbar.sync .dot-net { animation: none; } }

/* ---------------- Komponen dasar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important; color: var(--ink);
}
.btn:hover { background: #F7F6F3; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark svg { stroke: #fff; }
.btn.dark:hover { background: #33302B; }
.btn.danger { color: var(--neg); border-color: #EBC2BD; }
.btn.danger:hover { background: var(--neg-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 50px; font-size: 16px; padding: 0 22px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); font-size: 15px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247, 161, 31, .25); }
.input.money { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.textarea { min-height: 80px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6A62' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.lg { gap: 22px; }
.spacer { flex: 1; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel.pad { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 16px 20px; }
@media (max-width: 560px) { .panel.pad { padding: 16px; } .panel-head, .panel-body { padding-left: 16px; padding-right: 16px; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #EEEDEA; color: var(--ink-2); white-space: nowrap; }
.badge.pos { background: var(--pos-soft); color: var(--pos); }
.badge.neg { background: var(--neg-soft); color: var(--neg); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge.dark { background: var(--ink); color: #fff; }

.seg { display: inline-flex; background: #E8E7E3; border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); min-height: 34px; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; font-size: 14.5px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--brand); text-decoration: none; }

.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-soft); color: #1F4366; font-size: 14px; align-items: flex-start; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.neg { background: var(--neg-soft); color: #8A231B; }
.notice.pos { background: var(--pos-soft); color: #155A37; }
.notice .icon { margin-top: 1px; }

.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

.skeleton { height: 120px; border-radius: var(--r-lg); background: linear-gradient(90deg, #ECEBE8 0%, #F5F4F2 50%, #ECEBE8 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .sidebar { transition: none; } }

/* ---------------- Tabel & daftar ---------------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFAF8; position: sticky; top: 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #EFEEEA; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FBFAF7; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--ink); background: #FAFAF8; }
.tbl .sub { display: block; font-size: 12.5px; color: var(--muted); }

.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #EFEEEA; color: inherit; text-decoration: none !important; }
.li:last-child { border-bottom: 0; }
a.li:hover, .li.click:hover { background: #FBFAF7; cursor: pointer; }
.li .main-col { flex: 1; min-width: 0; }
.li .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.li .amt .s { font-weight: 500; }

/* Tabel jadi daftar di HP */
@media (max-width: 700px) {
  .tbl.stackable thead { display: none; }
  .tbl.stackable, .tbl.stackable tbody, .tbl.stackable tfoot, .tbl.stackable tr, .tbl.stackable td { display: block; width: 100%; }
  .tbl.stackable tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tbl.stackable td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.stackable td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; font-weight: 500; }
  .tbl.stackable td.lead { font-weight: 700; font-size: 15px; display: block; text-align: left; }
  .tbl.stackable td.lead::before { content: none; }
  .tbl.stackable tfoot tr { background: #FAFAF8; }
}

/* ---------------- KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
a.kpi { color: var(--ink); text-decoration: none; display: block; }
a.kpi:hover { border-color: var(--line-2); }
a.kpi.hero { color: #fff; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .d { font-size: 12.5px; margin-top: 4px; color: var(--muted); }
.kpi .d .up { color: var(--pos); font-weight: 700; }
.kpi .d .down { color: var(--neg); font-weight: 700; }
.kpi.hero { background: var(--ink); color: #fff; border-color: var(--ink); grid-column: span 2; position: relative; overflow: hidden; }
.kpi.hero .l { color: #B9B4AA; }
.kpi.hero .v { font-size: 34px; }
.kpi.hero .d { color: #B9B4AA; }
.kpi.hero .d .up { color: #7FD7A6; }
.kpi.hero .d .down { color: #FF9C93; }
.kpi.hero::after { content: ''; position: absolute; right: -30px; top: -10px; width: 150px; height: 150px; background: url('/img/mark.svg') no-repeat center / contain; opacity: .12; }
@media (max-width: 1100px) { .kpis, .kpis.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpi .v { font-size: 19px; } .kpi.hero .v { font-size: 28px; } .kpi { padding: 14px; } }

.health { display: flex; flex-direction: column; }
.health .h { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EFEEEA; }
.health .h:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); }
.dot.good { background: var(--pos); }
.dot.warn { background: #D6A400; }
.dot.bad { background: var(--neg); }

.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .dash.side-first > :last-child { order: -1; } }
.dash > *, .stack > *, .grid > * { min-width: 0; }

.alert-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #EFEEEA; align-items: center; }
.alert-item:last-child { border-bottom: 0; }
.alert-item .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert-item .ic.warn { background: var(--warn-soft); color: var(--warn); }
.alert-item .ic.neg { background: var(--neg-soft); color: var(--neg); }
.alert-item .ic.info { background: var(--info-soft); color: var(--info); }

/* ---------------- Formulir transaksi ---------------- */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: #FCFCFB; display: grid; grid-template-columns: minmax(0, 1fr) 90px 150px 130px 40px; gap: 10px; align-items: end; }
.line-card .name { font-weight: 700; }
.line-card.buy { grid-template-columns: minmax(0, 1fr) 90px 170px 40px; }
@media (max-width: 760px) { .line-card, .line-card.buy { grid-template-columns: 1fr 1fr; } .line-card .full { grid-column: 1 / -1; } }
.totals { display: flex; flex-direction: column; gap: 6px; }
.totals .r { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.totals .r.big { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--canvas) 70%, rgba(242, 242, 240, 0)); padding: 14px 0 6px; margin-top: 8px; display: flex; gap: 10px; justify-content: flex-end; z-index: 5; }
@media (max-width: 900px) { .sticky-actions { bottom: calc(64px + env(safe-area-inset-bottom)); } .sticky-actions .btn { flex: 1; } }

.picker { position: relative; }
.picker .menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; z-index: 40; }
.picker .opt { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #F1F0EC; display: flex; justify-content: space-between; gap: 10px; }
.picker .opt:hover, .picker .opt.hl { background: var(--brand-soft); }
.picker .opt .s { font-size: 12.5px; color: var(--muted); }

/* ---------------- Modal / bottom sheet ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 18, 15, .5); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--paper); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 18px 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-body { padding: 6px 20px 16px; overflow-y: auto; }
.modal-foot { padding: 12px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .overlay { place-items: end stretch; padding: 0; }
  .modal, .modal.wide { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-foot .btn { flex: 1; }
}

.toasts { position: fixed; top: 16px; right: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.toast.err { background: var(--neg); }
@media (max-width: 900px) { .toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; left: 16px; max-width: none; } }

/* ---------------- Login ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.auth .art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art img { width: min(380px, 80%); }
.auth .art h2 { font-size: 30px; font-weight: 800; max-width: 440px; line-height: 1.15; }
.auth .art p { color: #B9B4AA; max-width: 420px; margin-top: 12px; }
.auth .art .stripe { position: absolute; right: -80px; bottom: -60px; width: 360px; height: 360px; background: url('/img/mark.svg') no-repeat center / contain; opacity: .14; }
.auth .form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth .form > div { width: min(400px, 100%); }
.auth .form h1 { margin-bottom: 6px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth .art { padding: 28px 22px 26px; min-height: 0; }
  .auth .art img { width: 220px; }
  .auth .art h2 { font-size: 22px; margin-top: 18px; }
  .auth .art p { display: none; }
  .auth .art .stripe { width: 200px; height: 200px; right: -60px; bottom: -70px; }
}
.code-box { font-size: 22px; font-weight: 800; letter-spacing: .08em; background: var(--brand-soft); border: 2px dashed var(--brand); border-radius: 12px; padding: 14px; text-align: center; font-variant-numeric: tabular-nums; user-select: all; word-break: break-all; }

/* ---------------- Laporan keuangan (gaya laporan tahunan) ---------------- */
.report { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 40px 40px; }
.report .rh { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 3px solid var(--ink); margin-bottom: 8px; }
.report .rh .co { font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.report .rh h2 { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }
.report .rh .per { color: var(--muted); margin-top: 6px; }
.report .rh img { height: 64px; }
.stmt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stmt th { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; padding: 12px 0 8px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stmt th:first-child { text-align: left; padding-left: 0; }
.stmt td { padding: 7px 0 7px 18px; text-align: right; white-space: nowrap; font-size: 14.5px; }
.stmt td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.stmt td.prev { color: var(--muted); }
.stmt td.note { color: var(--faint); font-size: 12.5px; text-align: center; width: 54px; }
.stmt tr.sec td { padding-top: 22px; font-weight: 800; font-size: 13px; color: var(--brand-ink); }
.stmt tr.sub td:first-child { font-weight: 700; }
.stmt tr.sub td { border-top: 1px solid var(--ink); font-weight: 700; }
.stmt tr.total td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 800; font-size: 16px; padding-top: 10px; padding-bottom: 10px; }
.stmt tr.ind1 td:first-child { padding-left: 16px; }
.stmt tr.ind2 td:first-child { padding-left: 32px; color: var(--ink-2); }
.stmt tr.link { cursor: pointer; }
.stmt tr.link:hover td:first-child { color: var(--brand-ink); text-decoration: underline; }
.stmt tr.highlight td { background: #FBF6EC; }
.report .foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check-ok { display: inline-flex; gap: 6px; align-items: center; color: var(--pos); font-weight: 600; }
.check-bad { display: inline-flex; gap: 6px; align-items: center; color: var(--neg); font-weight: 700; }
@media (max-width: 700px) {
  .report { padding: 20px 16px 24px; border-radius: 14px; }
  .report .rh h2 { font-size: 21px; }
  .report .rh img { display: none; }
  .stmt td, .stmt th { padding-left: 10px; font-size: 13.5px; }
  .stmt td.prev, .stmt th.prev, .stmt td.note, .stmt th.note { display: none; }
  .stmt tr.ind2 td:first-child { padding-left: 16px; }
}

.report-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.report-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none !important; }
.report-card:hover { border-color: var(--brand); }
.report-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.report-card b { display: block; }
.report-card span { font-size: 13px; color: var(--muted); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 140px; }
@media (max-width: 560px) { .filters .field { flex: 1 1 140px; } }

.perm-group { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.perm-group h4 { padding: 10px 14px; background: #FAFAF8; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--r-md) var(--r-md) 0 0; }
.perm-group .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; padding: 12px 14px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.timeline { display: flex; flex-direction: column; }
.timeline .ev { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.timeline .ev:last-child { border-bottom: 0; }
.timeline .ev .dot { margin-top: 5px; }

.receipt-preview { background: #EDECE8; padding: 16px; border-radius: 12px; display: flex; justify-content: center; overflow-x: auto; }

/* ---------------- Cetak ---------------- */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .bottomnav, .fab, .no-print, .filters, .page-head .actions, .toasts, .netbar { display: none !important; }
  .print-only { display: block !important; }
  .main { margin: 0; padding: 0; }
  .page { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; }
  .panel { border: 0; }
  .stmt td.prev, .stmt th.prev, .stmt td.note, .stmt th.note { display: table-cell !important; }
  a { color: inherit; }
}

.route-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.route-pick .btn { justify-content: center; }

.sup-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #FCFCFB; }
.sup-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); overflow: hidden; max-height: 320px; overflow-y: auto; }
.sup-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font: inherit; cursor: pointer; }
.sup-opt:hover, .sup-opt:focus { background: var(--brand-soft); outline: none; }
.sup-opt.new { background: var(--brand-soft); }
.term-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.term-chips .btn { justify-content: center; min-height: 48px; }
.acc-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.acc-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.acc-chip.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

.lease-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.lease-chips .btn { justify-content: center; min-height: 46px; }
.region-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand-soft); }
.urgent-panel { border-color: var(--brand); }
.urgent-panel .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.ug-sec { border-top: 1px solid var(--line); }
.ug-title { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 14px; background: var(--canvas); }
.ug-title.neg b { color: var(--neg, #B42318); } .ug-title.pos b { color: var(--pos); } .ug-title.warn b { color: var(--brand-ink); }
.ug-title span { color: var(--muted); font-size: 13px; }
.ug-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ug-main { flex: 1 1 220px; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; }
.ug-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ug-orders { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 13px; }
/* Pilihan kategori pengeluaran */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-tile { border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); padding: 12px 6px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: inherit; min-height: 48px; }
.cat-tile:hover, .cat-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.cat-tile.muted { font-weight: 500; color: var(--muted, #6b6b6b); }
.cat-list { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.cat-back { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #F7F6F3; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; color: inherit; }
.cat-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px 14px; font: inherit; cursor: pointer; color: inherit; }
.cat-item:last-child { border-bottom: 0; }
.cat-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: var(--r-md); padding: 10px 12px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.edc-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: #FCFCFB; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-grid .btn { flex-direction: column; min-height: 52px; line-height: 1.2; }
.edc-sum { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-ink, #B4690E); text-decoration: underline; cursor: pointer; font: inherit; align-self: flex-start; }
.similar { border: 1px solid var(--warn-soft); background: #FFFBF3; border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.similar-opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; font: inherit; color: inherit; cursor: pointer; text-align: left; border-top: 1px solid var(--line); }
.similar-opt:first-of-type { border-top: 0; }
.similar-opt .small { color: var(--brand-ink, #B4690E); font-weight: 600; }
.search-row { display: flex; gap: 8px; align-items: flex-start; }
.search-row > :first-child { flex: 1; min-width: 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; color: inherit; min-height: 36px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #1B1611; font-weight: 600; }
.cat-item.other { color: var(--ink-2); font-style: italic; background: #FAFAF8; }
/* Order ke supplier */
.order-tbl .sec-row td { background: #F7F6F3; padding-top: 12px; padding-bottom: 8px; }
.order-tbl .sec-prio { color: #B4690E; letter-spacing: .04em; }
.order-tbl .sec-low { color: var(--warn); letter-spacing: .04em; }
.order-tbl .sec-add { color: var(--ink-2); letter-spacing: .04em; }
.order-tbl tr.off td { opacity: .5; }
.order-tbl .input { min-height: 38px; }
.warn-t { color: var(--warn); }
.wa-preview { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: #F3FBF4; border: 1px solid #CDE8D1; border-radius: var(--r-md); padding: 12px 14px; margin: 0; max-height: 360px; overflow: auto; }
@media (max-width: 760px) { .order-tbl .sec-row td { display: block; } .order-tbl .sec-row td::before { content: none !important; } }
.order-tbl .select.need { border-color: var(--warn); }
.ug-more, .cash-more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: #FAFAF8; padding: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand-ink, #B4690E); cursor: pointer; }
.cash-list { display: flex; flex-direction: column; }
.cash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.cash-row:first-child { border-top: 0; }
.cash-row:hover { background: #FAFAF8; }
.cash-row .cr-name { min-width: 0; }
.cash-row.total { background: #F7F6F3; font-weight: 600; }
.sup-products { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 10px 12px; background: #FCFCFB; }
.chip.chip-warn { border-color: #F2C27A; background: #FFF7EA; }
.order-tbl .o-m { display: none; }
@media (max-width: 760px) {
  .order-tbl.stackable tr { display: grid; grid-template-columns: 90px 1fr; gap: 6px 8px; }
  .order-tbl.stackable td.lead { grid-column: 1 / -1; }
  .order-tbl.stackable td.o-no, .order-tbl.stackable td.o-d { display: none; }
  .order-tbl.stackable td.o-in { display: block; padding: 0; }
  .order-tbl.stackable td.o-in::before { content: none; }
  .order-tbl .o-m { display: inline; font-weight: 400; }
}
.order-bar { position: sticky; top: 56px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--canvas); padding: 6px 0; }
.order-bar .input { flex: 1 1 220px; min-height: 40px; }
.order-tbl td { padding-top: 6px; padding-bottom: 6px; }
.order-tbl .input { min-height: 36px; }
@media (min-width: 761px) { .order-bar { top: 0; } }
/* Diskon setelah total belanja (form penjualan) */
.disc-box { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 8px; }
.disc-row { display: grid; grid-template-columns: auto auto minmax(0, 170px) 1fr; gap: 8px; align-items: center; }
.disc-row .seg button { min-width: 44px; }
.disc-row .num { text-align: right; }
@media (max-width: 480px) { .disc-row { grid-template-columns: auto auto minmax(0, 1fr); } .disc-row > .num { grid-column: 1 / -1; } }
/* Order ke supplier — baris ramping */
.order-tbl td { padding: 4px 10px; vertical-align: middle; }
.order-tbl th { padding: 7px 10px; }
.order-tbl .input { min-height: 32px; height: 32px; padding: 4px 8px; font-size: 14px; }
.order-tbl .o-no { width: 36px; color: var(--muted); font-size: 12.5px; }
.order-tbl .o-st { width: 56px; }
.order-tbl .o-qty { width: 84px; }
.order-tbl .o-col { width: 150px; }
.order-tbl .o-cat { width: 150px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.order-tbl td.o-name { max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.order-tbl .o-nm { font-weight: 600; }
.order-tbl .o-sku { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .order-tbl.stackable tr { grid-template-columns: 76px 1fr; gap: 4px 8px; padding: 8px 10px; }
  .order-tbl.stackable td.o-name { max-width: none; white-space: normal; padding: 0; }
  .order-tbl .o-m { font-size: 12px; color: var(--muted); }
  .order-tbl .input { min-height: 34px; height: 34px; }
}
/* Program promo */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #D6D3CC; border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--pos, #1E7A4C); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .6; }
.promo-li { align-items: center; }
.promo-li .main-col { color: inherit; text-decoration: none; min-width: 0; }
.promo-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); padding: 12px; font: inherit; cursor: pointer; color: inherit; text-decoration: none; }
.tpl:hover { border-color: var(--brand); }
.tpl-ic { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.chip-x { border: 0; background: transparent; margin-left: 6px; font-size: 16px; line-height: 1; cursor: pointer; color: inherit; padding: 0; }
.target-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: #FCFCFB; }
.bundle-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 40px; gap: 8px; align-items: center; }
.grid.g-buy { grid-template-columns: minmax(0, 1fr) 110px; align-items: end; }
.promo-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #FFF4E0; color: #8A4B00; border-radius: 999px; padding: 2px 4px 2px 8px; margin: 4px 6px 0 0; }
.promo-tag button { border: 0; background: transparent; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 4px; }
.promo-note { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; background: #FFF8EC; border: 1px dashed #F2C27A; border-radius: var(--r-md); padding: 8px 10px; }
.line-card .span { grid-column: 1 / -1; }
/* Membership */
.member-card { border: 1px solid #F2C27A; background: #FFFBF3; border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 10px; }
.mp-bal { font-size: 22px; font-weight: 800; line-height: 1.2; }
.mp-rewards { display: grid; gap: 6px; }
.mp-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.mp-r.off { opacity: .55; }
.reward-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px dashed #F2C27A; background: #FFF8EC; border-radius: var(--r-md); padding: 8px 12px; font-size: 14px; }
/* Laba & Ekspansi */
.alloc { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: #FCFCFB; }
.alloc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 10px; align-items: center; }
.alloc-row > b { text-align: right; padding-right: 12px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 170px) auto auto; gap: 6px; align-items: center; }
.scen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scen { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: grid; gap: 6px; }
.scen.scen-main { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft, #FDEBC8); }
.scen { align-content: start; }
.plan-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(540px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 760px) { .plan-cols { grid-template-columns: 1fr; } }
.kv3 { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kv3 span { color: var(--muted); }
.kv3 b { text-align: right; }
@media (max-width: 760px) { .scen-grid { grid-template-columns: 1fr; } .alloc-row { grid-template-columns: 1fr; } .item-row { grid-template-columns: minmax(0, 1fr) 130px auto; } .item-row { grid-template-columns: minmax(0, 1fr) 120px auto auto; } }

/* 108 Segmen pelanggan */
.seg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg-card { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.seg-card:hover { border-color: var(--ink); }
.seg-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
