/* VALTIRE — tampilan gaya mobile banking (2.4)
   Palet: hijau pala tua (merek), kuning kunyit (aksi utama / tombol Kasir), kertas abu kehijauan.
   Tata letak: HP = header + navigasi bawah dengan tombol Kasir di tengah; desktop = rel menu kiri + konten.
   Mode gelap: ikut sistem, atau pilihan di Akun → Tampilan (data-theme). */
:root {
  --bg: #e9eeed;
  --surface: #ffffff;
  --surface-2: #f4f7f6;
  --sunk: #f1f4f3;
  --line: #dbe2e0;
  --line-2: #e8edec;
  --fg: #13201f;
  --fg-2: #33433f;
  --muted: #5d6d6a;
  --faint: #8d9b98;
  --brand: #0b3b30;
  --brand-2: #134e40;
  --brand-3: #1d6b57;
  --brand-soft: #e1eee9;
  --on-brand: #f1f7f6;
  --accent: #e4a23c;
  --accent-ink: #8a5a00;
  --on-accent: #1e1503;
  --ok: #1d7f4f; --ok-soft: #e1f3e8;
  --warn: #9a6200; --warn-soft: #fff1d6;
  --bad: #b8382b; --bad-soft: #fbe5e1;
  --info: #1f5f9e; --info-soft: #e2edf8;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(11,59,48,.06), 0 10px 28px -14px rgba(11,59,48,.28);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rail: 252px;
  /* nama lama (≤ 2.3) tetap dipakai beberapa halaman & kasir */
  --ink: var(--fg); --ink-2: var(--fg-2); --paper: var(--bg);
  --jade: var(--brand-3); --jade-ink: var(--brand-2); --jade-soft: var(--brand-soft);
  --crema: var(--warn); --crema-soft: var(--warn-soft);
  --brick: var(--bad); --brick-soft: var(--bad-soft);
  --sky: var(--info); --sky-soft: var(--info-soft);
  --side: var(--rail);
  color-scheme: light;
}
/* Tema: tanpa atribut = ikut sistem; data-theme="light"/"dark" = pilihan pengguna (Akun → Tampilan). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1212; --surface: #111c1c; --surface-2: #162323; --sunk: #142020; --line: #243433; --line-2: #1c2b2a;
    --fg: #e3edeb; --fg-2: #c3d2cf; --muted: #93a6a2; --faint: #6f827f;
    --brand: #0c2b24; --brand-2: #184a3e; --brand-3: #2a7d68; --brand-soft: #15302a; --on-brand: #e7f2f0;
    --accent: #eaae4c; --accent-ink: #f5c464; --on-accent: #1e1503;
    --ok: #4cc488; --ok-soft: #12301f; --warn: #f0b04a; --warn-soft: #33270d; --bad: #f07466; --bad-soft: #3a1714; --info: #74b2f2; --info-soft: #122a40;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0a1212; --surface: #111c1c; --surface-2: #162323; --sunk: #142020; --line: #243433; --line-2: #1c2b2a;
    --fg: #e3edeb; --fg-2: #c3d2cf; --muted: #93a6a2; --faint: #6f827f;
    --brand: #0c2b24; --brand-2: #184a3e; --brand-3: #2a7d68; --brand-soft: #15302a; --on-brand: #e7f2f0;
    --accent: #eaae4c; --accent-ink: #f5c464; --on-accent: #1e1503;
    --ok: #4cc488; --ok-soft: #12301f; --warn: #f0b04a; --warn-soft: #33270d; --bad: #f07466; --bad-soft: #3a1714; --info: #74b2f2; --info-soft: #122a40;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14.5px/1.5 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-3); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
code { font: 12.5px var(--mono); background: var(--sunk); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .grow { flex: 1; min-width: 0; }
.num, .r { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }
.boot { display: grid; place-items: center; height: 100vh; }
.mono, input.mono { font-family: var(--mono); letter-spacing: .04em; }

/* ---------- status ---------- */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand-3); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 48px 0; justify-content: center; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--fg); font-size: 15px; margin-bottom: 4px; }
.empty p { max-width: 420px; margin: 0 auto 14px; }
.empty.big { padding: 80px 16px; }
.error-box { background: var(--bad-soft); color: var(--bad); padding: 16px; border-radius: var(--radius); }
.error-box b { display: block; margin-bottom: 4px; } .error-box .btn { margin-top: 10px; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s, transform .08s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-3); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn:not(.primary):not(.danger).busy::after { border-color: var(--line); border-top-color: var(--brand-3); }
.danger-text { color: var(--bad) !important; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--line-2); color: var(--fg); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand-3); font-weight: 700; cursor: pointer; }

/* ---------- kerangka ---------- */
.shell { min-height: 100vh; }
.rail { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 16px; background: var(--brand); color: var(--on-brand); }
.topbar .icon-btn { color: var(--on-brand); background: rgba(255,255,255,.08); }
.topbar .icon-btn:hover { background: rgba(255,255,255,.16); }
.top-biz { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.top-biz b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-biz small { display: block; font-size: 12px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-mark { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; flex: none; }
.biz-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.plan-chip { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--on-brand); white-space: nowrap; }
.plan-chip.trial { background: var(--accent); color: var(--on-accent); }
.banner { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }
.banner span { flex: 1; }
.banner.danger { background: var(--bad-soft); color: var(--bad); }
.banner.warn, .banner.trial { background: var(--warn-soft); color: var(--warn); }
.view { padding: 16px 16px calc(110px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 1180px; margin: 0 auto; outline: none; }
.view.flush { padding-top: 0; }

/* navigasi bawah gaya m-banking */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -20px rgba(0,0,0,.4); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; text-decoration: none !important; min-height: 50px; justify-content: center; }
.tab .ic { width: 23px; height: 23px; }
.tab.on { color: var(--brand-3); }
.tab.fab .fab-ic { width: 58px; height: 58px; margin-top: -30px; border-radius: 19px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; border: 4px solid var(--surface); box-shadow: 0 8px 18px -6px rgba(242,165,22,.6); }
.tab.fab .fab-ic .ic { width: 26px; height: 26px; }
.tab.fab.on { color: var(--accent-ink); }

/* desktop: rel menu kiri */
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); }
  .rail-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--brand); color: var(--on-brand); }
  .rail-head b { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-head small { font-size: 12px; opacity: .78; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail nav { flex: 1; overflow-y: auto; padding: 10px; }
  .nav-label { font-size: 11.5px; font-weight: 800; color: var(--faint); padding: 12px 10px 4px; text-transform: uppercase; letter-spacing: .06em; }
  .nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: var(--fg-2); font-weight: 600; }
  .nav-link:hover { background: var(--surface-2); text-decoration: none; }
  .nav-link.on { background: var(--brand-soft); color: var(--brand-3); }
  .nav-link .ic { width: 19px; height: 19px; }
  .rail-foot { padding: 12px; border-top: 1px solid var(--line); }
  .tabbar { display: none; }
  .topbar { padding: 12px 24px; }
  .topbar .top-biz.mobile-only { display: none; }
  .topbar-title { font-weight: 800; font-size: 17px; flex: 1; }
  .view { padding: 22px 28px 64px; }
  .banner { margin: 16px 28px 0; }
}
@media (max-width: 1023px) { .topbar-title, .desktop-only { display: none !important; } }

/* ---------- kepala halaman, tab, toolbar ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 3px; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--fg); }
.tabs a.on { background: var(--brand-2); border-color: var(--brand-2); color: var(--on-brand); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar select, .toolbar input:not([type=checkbox]) { height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 12px; min-width: 0; }
.search { position: relative; flex: 1; min-width: 180px; }
.search .ic { position: absolute; left: 12px; top: 11px; color: var(--faint); width: 19px; height: 19px; }
.search input { width: 100%; padding-left: 38px !important; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.range span { color: var(--faint); }
.count { color: var(--muted); font-size: 13px; margin-left: auto; }

/* ---------- panel, angka ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel + .panel, .panel + .grid, .grid + .panel, .table-wrap + .panel, .panel + .table-wrap, .grid + .grid { margin-top: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.panel-head h3 { font-size: 15px; font-weight: 800; }
.panel-head h3 .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; color: var(--brand-3); }
.panel-head p { color: var(--muted); font-size: 12.5px; }
.panel-body { padding: 14px 16px 16px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side-r { grid-template-columns: minmax(0, 1fr) 340px; }
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ledger > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.ledger small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.ledger b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.ledger em { font-style: normal; font-size: 12px; color: var(--muted); }
.ledger em.up { color: var(--ok); } .ledger em.down { color: var(--bad); }
.hero-figure { font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.list li:first-child { border-top: 0; }
.list small { display: block; color: var(--muted); font-size: 12px; }
.meter { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand-3); border-radius: 99px; }
.meter.warn i { background: var(--accent); } .meter.over i { background: var(--bad); }
.bars { display: block; overflow: visible; }
vlt-bars { width: 100%; }
.bars .bar { fill: var(--brand-3); opacity: .35; } .bars .bar.last { fill: var(--accent); opacity: 1; }
.bars .grid-line { stroke: var(--line); stroke-width: 1; }
.bars text { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel .table-wrap { border: 0; border-radius: 0; border-top: 1px solid var(--line-2); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); padding: 11px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl td b { font-weight: 700; }
.tbl td small, .sub { display: block; color: var(--muted); font-size: 12px; }
.tbl tfoot td { font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--line); }
.tbl input, .tbl select { height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 8px; background: var(--surface); width: 100%; min-width: 70px; }
.tbl .tight { width: 1%; white-space: nowrap; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--fg-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--sunk); }

/* ---------- daftar gaya mutasi rekening ---------- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rowi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; text-decoration: none !important; font-weight: 400; }
.rowi:first-child { border-top: 0; }
a.rowi:hover, button.rowi:hover { background: var(--surface-2); cursor: pointer; }
.rowi .av { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-3); flex: none; }
.rowi .av.in { background: var(--ok-soft); color: var(--ok); } .rowi .av.out { background: var(--bad-soft); color: var(--bad); } .rowi .av.wr { background: var(--warn-soft); color: var(--warn); }
.rowi .av .ic { width: 19px; height: 19px; }
.rowi .mid { flex: 1; min-width: 0; }
.rowi .mid b { display: block; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.rowi .mid small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowi .end { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.rowi .end b { display: block; font-size: 14px; }
.rowi .end small { color: var(--muted); font-size: 12px; display: block; }
.day-sep { padding: 7px 14px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; border-top: 1px solid var(--line-2); }
.rows .day-sep:first-child { border-top: 0; }

/* ---------- beranda ---------- */
.hero { margin: -16px -16px 0; padding: 18px 16px 70px; background: var(--brand); color: var(--on-brand);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.hero h1 { font-size: 20px; font-weight: 800; }
.hero p { opacity: .8; font-size: 13px; }
.balance { position: relative; margin: -54px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; }
.balance .lbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.balance .big { display: flex; align-items: center; gap: 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.balance .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.balance .split small { display: block; color: var(--muted); font-size: 12px; }
.balance .split b { font-size: 15px; font-variant-numeric: tabular-nums; }
.acc-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.acc-strip::-webkit-scrollbar { display: none; }
.acc-strip div { flex: none; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; min-width: 130px; }
.acc-strip small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.acc-strip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; margin: 18px 0 6px; }
.qa a, .qa button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 2px; border-radius: 14px; border: 0; background: none; color: var(--fg); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; text-decoration: none !important; cursor: pointer; position: relative; }
.qa .qi { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand-3); }
.qa .qi .ic { width: 24px; height: 24px; }
.qa a:active .qi { transform: scale(.94); }
.qa .cnt { position: absolute; top: 0; right: calc(50% - 34px); min-width: 19px; height: 19px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
@media (min-width: 700px) { .qa { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hero { margin: -22px -28px 0; padding: 24px 28px 74px; } }
.sec { margin-top: 20px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.sh h2 { font-size: 15.5px; font-weight: 800; }
.task { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 13.5px; text-decoration: none !important; }
.task.info { background: var(--info-soft); color: var(--info); } .task.bad { background: var(--bad-soft); color: var(--bad); }
.task span { flex: 1; }
.stack { display: grid; gap: 8px; }
.eye { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 8px; cursor: pointer; display: inline-grid; }

/* ---------- semua menu ---------- */
.menu-group { margin-bottom: 18px; }
.menu-group h3 { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px 2px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; }
@media (min-width: 700px) { .menu-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- formulir ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--fg-2); }
.field .req { color: var(--bad); font-style: normal; margin-left: 2px; }
.field small { color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea, .input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 0 12px; transition: border-color .12s, box-shadow .12s; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(29,106,104,.18); background: var(--surface); }
.field input[readonly] { opacity: .75; }
.affix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.affix:focus-within { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(29,106,104,.18); }
.affix span { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.affix input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; background: transparent !important; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.check input { margin-top: 2px; accent-color: var(--brand-3); width: 18px; height: 18px; flex: none; }
.check b { display: block; font-weight: 700; } .check small { color: var(--muted); font-size: 12px; }
.check.inline { border: 0; padding: 6px 0 0; font-size: 13px; }
.form-section { padding-top: 8px; border-top: 1px solid var(--line-2); margin-top: 4px; }
.form-grid > .form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section b { font-size: 13.5px; } .form-section p { color: var(--muted); font-size: 12.5px; }
.image-field { display: flex; gap: 14px; align-items: center; }
.image-field img, .image-field .ph { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: var(--sunk); display: grid; place-items: center; color: var(--faint); flex: none; }
.image-field small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.lines { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px 96px 110px 36px; gap: 6px; align-items: center; padding: 8px; border-top: 1px solid var(--line-2); }
.line-row:first-child { border-top: 0; }
.line-row select, .line-row input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--surface-2); width: 100%; min-width: 0; }
.line-row .rm { width: 36px; height: 40px; border: 0; border-radius: 10px; background: var(--bad-soft); color: var(--bad); cursor: pointer; display: grid; place-items: center; }
.line-row .stock-hint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: -2px; }
@media (max-width: 640px) { .line-row { grid-template-columns: 1fr 1fr 36px; } .line-row select { grid-column: 1 / -1; } }
.lines-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--surface-2); border-top: 1px solid var(--line); gap: 8px; flex-wrap: wrap; }
.total-box { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; font-variant-numeric: tabular-nums; }
.total-box .big { font-size: 19px; font-weight: 800; }

/* ---------- overlay: lembar bawah (HP) / panel samping (desktop) ---------- */
body.has-overlay { overflow: hidden; }
.overlay { position: fixed; inset: 0; z-index: 100; }
.overlay-bg { position: absolute; inset: 0; background: rgba(5, 20, 20, .45); opacity: 0; transition: opacity .18s; }
.overlay.in .overlay-bg { opacity: 1; }
.drawer, .modal { position: absolute; display: flex; flex-direction: column; background: var(--surface); left: 0; right: 0; bottom: 0; max-height: 94vh; border-radius: 22px 22px 0 0; transform: translateY(28px); opacity: 0; transition: transform .2s ease, opacity .2s ease; box-shadow: 0 -20px 50px -30px rgba(0,0,0,.6); }
.overlay.in .drawer, .overlay.in .modal { transform: none; opacity: 1; }
.drawer::before, .modal::before { content: ""; width: 42px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; flex: none; }
@media (min-width: 760px) {
  .drawer { left: auto; top: 0; width: min(580px, 100%); max-height: none; border-radius: 0; transform: translateX(24px); }
  .drawer.wide { width: min(880px, 100%); }
  .modal { left: 50%; right: auto; top: 12vh; bottom: auto; width: min(480px, calc(100% - 32px)); max-height: 80vh; border-radius: 20px; transform: translate(-50%, 10px); }
  .modal.wide { width: min(720px, calc(100% - 32px)); }
  .overlay.in .modal { transform: translate(-50%, 0); }
  .drawer::before, .modal::before { display: none; }
}
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 18px 12px; border-bottom: 1px solid var(--line-2); }
.ov-head h2 { font-size: 18px; font-weight: 800; }
.ov-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ov-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.ov-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.ov-foot .btn.primary, .ov-foot .btn.accent { flex: 1 1 auto; }
@media (min-width: 760px) { .ov-foot .btn.primary, .ov-foot .btn.accent { flex: 0 0 auto; } }
.lead { color: var(--fg-2); margin-bottom: 12px; }
.ov-section { margin-top: 18px; }
.ov-section > h4 { margin: 0 0 8px; font-size: 13.5px; }

/* PIN pad otorisasi */
.pinpad { display: grid; justify-items: center; gap: 14px; padding: 4px 0 6px; }
.pin-dots { display: flex; gap: 14px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand-3); }
.pin-dots i.f { background: var(--brand-3); }
.pin-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.pin-keys button { height: 60px; border-radius: 18px; border: 0; background: var(--surface-2); font-size: 23px; font-weight: 700; cursor: pointer; color: var(--fg); }
.pin-keys button:active { background: var(--line); }
.pin-keys .e { background: transparent; }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- kasir ---------- */
.pos-layout { display: grid; gap: 14px; }
.pos-layout > * { min-width: 0; }
@media (min-width: 1024px) { .pos-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .pos-cart { position: sticky; top: 76px; } .cartbar { display: none !important; } }
@media (max-width: 1023px) { .pos-cart { display: none; } }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.prod { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; min-width: 0; }
.prod:hover { border-color: var(--brand-3); }
.prod small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod b { font-size: 13.5px; line-height: 1.3; min-height: 35px; }
.prod .price { font-weight: 800; font-variant-numeric: tabular-nums; }
.prod.out { opacity: .5; }
.cartbar { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 35; padding: 0 12px; pointer-events: none; }
.cartbar button { pointer-events: auto; width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 16px; background: var(--brand-2); color: var(--on-brand); padding: 13px 16px; font-weight: 800; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); cursor: pointer; }
.cartbar .n { background: var(--accent); color: var(--on-accent); border-radius: 9px; padding: 1px 8px; font-size: 12.5px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cart-line b { font-size: 13.5px; }
.cart-line select { height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); padding: 0 6px; max-width: 100%; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.stepper input { width: 56px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.paychips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--fg-2); }
.chip:hover { border-color: var(--brand-3); }
.chip.on { background: var(--brand-2); border-color: var(--brand-2); color: var(--on-brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.receipt { font: 12.5px/1.55 var(--mono); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; white-space: pre; overflow-x: auto; color: var(--fg); }
.shift-gate { max-width: 440px; margin: 20px auto; }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--fg); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; animation: tin .18s ease; }
.toast-err { background: var(--bad); color: #fff; } .toast-warn { background: var(--accent); color: var(--on-accent); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- halaman masuk ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { background: var(--brand); color: var(--on-brand); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.auth-art .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.auth-art h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 800; max-width: 15ch; letter-spacing: -.02em; }
.auth-art p { max-width: 44ch; opacity: .82; margin-top: 14px; font-size: 15px; }
.mini-bal { background: var(--surface); color: var(--fg); border-radius: 20px; padding: 16px; max-width: 340px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.mini-bal small { color: var(--muted); font-weight: 700; font-size: 12px; }
.mini-bal b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-bal div { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 26px; font-weight: 800; }
.auth-card > p { color: var(--muted); margin: 6px 0 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn.primary { height: 50px; font-size: 15.5px; }
.auth-switch { margin-top: 18px; color: var(--muted); text-align: center; }
.auth-msg { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.pw { position: relative; } .pw input { padding-right: 46px; }
.pw button { position: absolute; right: 2px; top: 2px; }
.auth-shell.solo { grid-template-columns: 1fr; background: var(--bg); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { padding: 28px 20px 24px; } .auth-art .mini-bal, .auth-art .art-copy p { display: none; } .auth-art h2 { font-size: 24px; } }

/* ---------- komponen lain ---------- */
.biz-list { display: grid; gap: 6px; margin-bottom: 12px; }
.biz-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; width: 100%; }
.biz-row div { flex: 1; } .biz-row small { display: block; color: var(--muted); font-size: 12px; }
.biz-row.current { background: var(--brand-soft); border-color: transparent; cursor: default; }
.perm-table td:first-child { min-width: 240px; }
.perm-table input { width: 18px !important; height: 18px !important; min-width: 0 !important; accent-color: var(--brand-3); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.plan.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan h3 { font-size: 16px; } .plan .price { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 13px; }
.plan .btn { margin-top: auto; }
.callout { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.rcode { font: 700 clamp(20px, 5vw, 26px)/1.2 var(--mono); letter-spacing: .08em; text-align: center; padding: 18px 12px; border: 2px dashed var(--brand-3); border-radius: 14px; background: var(--brand-soft); color: var(--brand-3); user-select: all; word-break: break-all; }
.rc-tips { margin: 14px 0 0; padding-left: 18px; color: var(--fg-2); font-size: 13px; display: grid; gap: 4px; }
.pay-due { border-color: var(--accent); background: var(--warn-soft); }
.pay-due-main { display: flex; gap: 18px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.pay-due-main > div:first-child { min-width: 0; flex: 1 1 300px; }
.pay-amount { font-size: 15px; margin: 4px 0 6px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pay-amount b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-left: 4px; }
.pay-due-act { display: flex; gap: 8px; flex-wrap: wrap; }
.num-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.steps-line { display: flex; gap: 4px; margin: 4px 0 14px; }
.steps-line i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps-line i.d { background: var(--brand-3); }
.statement td { padding: 8px 12px; }
.statement tr.t td { font-weight: 800; border-top: 1px solid var(--line); }
.statement tr.g td { font-weight: 800; font-size: 16px; background: var(--surface-2); }

/* notifikasi */
.notif-pop { position: fixed; right: 12px; top: 64px; width: min(400px, calc(100vw - 24px)); max-height: min(72vh, 560px); overflow: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 60; }
.notif-pop header { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); }
.notif-pop ul { list-style: none; margin: 0; padding: 6px; }
.n-item { display: flex; gap: 10px; padding: 10px 8px; border-radius: 12px; color: var(--fg); font-weight: 400; }
.n-item:hover { background: var(--surface-2); text-decoration: none; }
.n-item b { display: block; font-size: 13.5px; }
.n-item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 1px; }
.n-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); }
.n-item.warn .n-ic { background: var(--warn-soft); color: var(--warn); }
.n-item.bad .n-ic { background: var(--bad-soft); color: var(--bad); }
.n-empty { text-align: center; padding: 26px 18px 30px; color: var(--muted); }
.n-empty b { display: block; color: var(--fg); margin: 6px 0 2px; }
.dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 800 10.5px/17px var(--font); font-style: normal; text-align: center; }
.dot.hot { background: var(--bad); color: #fff; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) { .grid.three { grid-template-columns: 1fr 1fr; } .grid.side-r { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  body { font-size: 15px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 21px; }
  .page-actions { width: 100%; } .page-actions > .btn { flex: 1 1 auto; }
  .field input, .field select, .field textarea, .input, .toolbar select, .toolbar input:not([type=checkbox]) { font-size: 16px; }
  .hero-figure { font-size: 30px; }
}
/* tabel menjadi kartu di HP */
@media (max-width: 640px) {
  .table-wrap:has(.tbl:not(.statement)) { overflow: visible; background: transparent; border: 0; }
  .tbl:not(.statement) thead { display: none; }
  .tbl:not(.statement), .tbl:not(.statement) tbody, .tbl:not(.statement) tfoot, .tbl:not(.statement) tr, .tbl:not(.statement) td { display: block; width: 100%; }
  .tbl:not(.statement) tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  .panel .tbl:not(.statement) tr { border-width: 0 0 1px; border-radius: 0; margin: 0; }
  .tbl:not(.statement) td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 4px 0; border: 0 !important; text-align: right; }
  .tbl:not(.statement) td::before { content: attr(data-label); flex: none; max-width: 48%; text-align: left; color: var(--muted); font-size: 13px; font-weight: 700; }
  .tbl:not(.statement) td[data-label=""]::before { content: none; }
  .tbl:not(.statement) td[data-label=""] { justify-content: flex-end; }
  .tbl:not(.statement) td:first-child { justify-content: flex-start; text-align: left; font-size: 15px; font-weight: 700; padding-top: 0; }
  .tbl:not(.statement) td:first-child::before { content: none; }
  .tbl:not(.statement) td:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .rail, .topbar, .tabbar, .banner, .page-actions, .toolbar, .tabs, .cartbar { display: none !important; } .shell { display: block; } .view { padding: 0; } body { background: #fff; } }

/* Pilihan tema */
.theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-seg button { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.theme-seg button:hover { border-color: var(--brand-3); }
.theme-seg button.on { border-color: var(--brand-3); background: var(--brand-soft); color: var(--fg); box-shadow: inset 0 0 0 1px var(--brand-3); }
.theme-seg .sw { width: 100%; max-width: 72px; aspect-ratio: 16 / 10; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: 30% 1fr; }
.theme-seg .sw.l { background: #e9eeed; } .theme-seg .sw.l::before { content: ""; background: #0b3b30; }
.theme-seg .sw.d { background: #0a1212; } .theme-seg .sw.d::before { content: ""; background: #0c2b24; }
.theme-seg .sw.a { background: linear-gradient(135deg, #e9eeed 50%, #0a1212 50%); } .theme-seg .sw.a::before { content: ""; background: linear-gradient(135deg, #0b3b30 50%, #0c2b24 50%); }
.auth-theme { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 40; background: var(--surface); border: 1px solid var(--line); color: var(--fg-2); }

/* Merek VALTIRE */
.auth-art .brand-logo { height: 30px; width: auto; display: block; }
.brand-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--on-brand); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.rail-brand { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 0 2px; opacity: .75; font-size: 11.5px; color: var(--muted); }
.rail-brand .ic { width: 16px; height: 16px; color: var(--fg); }

/* ---------- khusus kedai ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.steps li a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; color: var(--fg); font-weight: 600; }
.steps li a:hover { background: var(--surface-2); text-decoration: none; }
.steps .dot { position: static; min-width: 0; padding: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: none; color: inherit; display: grid; place-items: center; flex: none; }
.steps .done .dot { background: var(--brand-3); border-color: var(--brand-3); color: #fff; }
.steps .done .dot .ic { width: 12px; height: 12px; }
.steps .done span { color: var(--muted); text-decoration: line-through; }
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.bubble { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; max-width: 88%; }
.bubble.me { align-self: flex-end; background: var(--brand-2); color: var(--on-brand); border-color: var(--brand-2); }
.receipt-preview { background: #fff; color: #111; border: 1px solid var(--line); padding: 14px; font: 12px/1.45 "Courier New", monospace; margin: 0 auto; }
.receipt-preview .c { text-align: center; } .receipt-preview .row { display: flex; justify-content: space-between; gap: 6px; } .receipt-preview hr { border: 0; border-top: 1px dashed #999; }
.warn-text { color: var(--warn); }
@media (max-width: 560px) { .range { width: 100%; } .range input[type=date] { flex: 1 1 0; min-width: 0; } .range select { flex: 1 1 100%; } }

/* menu digital */
.dm-top { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.dm-qr { width: 200px; flex: none; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: inset 0 -6px 0 var(--a); }
.dm-qr svg { display: block; width: 100%; height: auto; }
.dm-info { flex: 1 1 260px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.dm-url { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.dm-url span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dm-stats { display: flex; gap: 22px; }
.dm-stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dm-stats small { color: var(--muted); font-size: 12px; }
.dm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { cursor: pointer; position: relative; }
.swatches input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.swatches i { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.swatches input:checked + i { outline: 3px solid var(--fg); outline-offset: 2px; }
.swatches input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .dm-qr { width: 100%; max-width: 260px; margin: 0 auto; } }

/* halaman masuk: struk contoh di sisi merek */
.auth-art .mini-bal { transform: rotate(-3deg); }
.mini-bal .mb-head { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 0 0 6px; }
.mini-bal .mb-head span { font-size: 11.5px; font-weight: 800; color: var(--accent-ink); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; }
/* semua menu: tombol keluar */
.menu-foot { display: grid; gap: 10px; margin-top: 6px; }
.offline-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--bad); color: #fff; white-space: nowrap; }
.offline-pill .ic { width: 14px; height: 14px; }

/* ---------- 2.5: member & kartu stempel ---------- */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.accent-ink { color: var(--accent-ink); }
.stamp-dots { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.stamp-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); }
.stamp-dots i.on { background: var(--accent); border-color: var(--accent); }
.stamp-dots.big { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 340px; }
.stamp-dots.big i { width: auto; height: auto; aspect-ratio: 1; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: var(--faint); }
.stamp-dots.big i.on { border: 2.5px solid var(--accent-ink); background: var(--warn-soft); color: var(--accent-ink); }
.stamp-dots.big i:nth-child(odd).on .ic { transform: rotate(-8deg); } .stamp-dots.big i:nth-child(even).on .ic { transform: rotate(7deg); }
.stamp-dots.big .ic { width: 52%; height: 52%; }
.stamp-dots.big i:last-child:not(.on) { border-style: solid; border-color: var(--accent); color: var(--accent-ink); }
.stamp-card { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.sc-head small { display: block; color: var(--muted); font-size: 12.5px; }
.sc-head b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sc-ready { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 13px; }
.sc-ready .ic { width: 16px; height: 16px; }
.sc-left { color: var(--muted); font-size: 13px; }
.stamp-off { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; border-color: var(--accent); background: var(--warn-soft); }
.stamp-off p { margin: 2px 0 0; color: var(--fg-2); font-size: 13.5px; }
.stamp-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding: 2px; }
@media (max-width: 640px) { .stamp-off { flex-direction: column; align-items: flex-start; } }

/* ---------- 2.6: aset, pinjaman, modal & investor ---------- */
.meter { display: block; margin-top: 6px; min-width: 70px; }
.meter.wide { width: 120px; }
td.r .meter { margin-left: auto; width: 90px; }
.dep-bar { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.dep-bar i { display: block; height: 100%; background: repeating-linear-gradient(135deg, var(--accent) 0 8px, #eeb453 8px 16px); }
.warn-text { color: var(--warn); font-weight: 700; }
.field.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
.field.inline > span { margin: 0; }
.inv-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 170px; padding: 6px 16px 0; }
.inv-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.inv-bar i { width: 100%; max-width: 46px; min-height: 2px; border-radius: 8px 8px 2px 2px; background: var(--brand-3); }
.inv-bar i.neg { background: var(--bad); opacity: .8; }
.inv-bar .v { font-size: 11px; font-weight: 700; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-bar .v.neg { color: var(--bad); }
.inv-bar small { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .inv-bar .v { font-size: 9.5px; } .inv-bars { gap: 6px; padding: 6px 8px 0; } }
.statement tr.sec td { padding-top: 16px; color: var(--hutan, var(--brand)); font-size: 13px; }
.statement tr.sum td { border-top: 1px solid var(--line); }
.statement tr.total td { border-top: 2px solid var(--fg); font-size: 15.5px; background: var(--surface-2); }
.statement td small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.grid > .panel + .panel, .grid > .grid + .panel { margin-top: 0; }
.statement td.r { white-space: nowrap; }

/* ===== 2.7: varian, ojek online, promo, segmen member ===== */
.chips .chip { cursor: default; padding: 4px 10px; font-size: 12.5px; }
.chips .chip:hover { border-color: var(--line); }
.chips .chip em { font-style: normal; color: var(--muted); font-weight: 600; }
.chips .chip i { font-style: normal; color: var(--accent); font-size: 9px; vertical-align: 2px; }

.opt-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); }
.opt-row + .opt-row { margin-top: 8px; }
.opt-row > input, .opt-row .affix input { width: 100%; min-width: 0; }
.opt-rec { grid-column: 1 / -1; display: grid; gap: 6px; }
.opt-rec:empty { display: none; }
.rec-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 6px; align-items: center; padding-left: 12px; border-left: 2px solid var(--line); }
.rec-row select, .rec-row input { width: 100%; min-width: 0; }
.opt-rec .link-btn { justify-self: start; }

.chan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.chan-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chan-card.on { border-color: var(--brand-3); box-shadow: inset 4px 0 0 var(--brand-3); }
.chan-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.chan-card dt { color: var(--muted); }
.chan-card dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.chan-card dd.neg { color: var(--bad); }
.chan-card .btn { align-self: flex-start; margin-top: auto; }
.chan-card.add { align-items: center; justify-content: center; border-style: dashed; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; min-height: 150px; }
.chan-card.add:hover { border-color: var(--brand-3); color: var(--brand-3); }
.chan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chan-top b { font-size: 16px; }
.price-grid input.pg { width: 110px; text-align: right; font-variant-numeric: tabular-nums; padding: 6px 8px; }
.price-grid input.pg::placeholder { color: var(--faint); }

.code-pill { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; border: 1px dashed var(--accent); background: var(--warn-soft); color: var(--accent-ink); cursor: copy; }
.day-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pick label { position: relative; cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span { display: inline-block; min-width: 46px; text-align: center; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); background: var(--surface); }
.day-pick input:checked + span { background: var(--brand-2); border-color: var(--brand-2); color: var(--on-brand); }
.day-pick input:focus-visible + span { outline: 2px solid var(--brand-3); outline-offset: 2px; }

.seg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin-bottom: 16px; }
.seg-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; }
.seg-card b { font-size: 22px; font-variant-numeric: tabular-nums; }
.seg-card span { font-weight: 700; font-size: 13.5px; }
.seg-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.seg-card:hover { border-color: var(--brand-3); }
.seg-card.on { background: var(--brand-2); border-color: var(--brand-2); color: var(--on-brand); }
.seg-card.on small { color: var(--on-brand); opacity: .8; }
.seg-preview { background: #dcf8c6; color: #111b21; border-radius: 10px 10px 10px 2px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; line-height: 1.45; max-width: 420px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.seg-preview:empty { display: none; }
@media (max-width: 560px) {
  .opt-row { grid-template-columns: 1fr 110px auto; }
  .rec-row { grid-template-columns: 1fr 80px auto; }
}
.opt-row > input, .rec-row select, .rec-row input { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; font: inherit; color: inherit; }
.opt-row > input:focus, .rec-row select:focus, .rec-row input:focus { outline: none; border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(29,106,104,.18); }
.opt-row .affix { background: var(--surface); height: 40px; }
label.search { display: block; }
.seg-card, .seg-card:hover, .seg-card * { text-decoration: none !important; }

/* ===== 2.8: analisis menu, perencanaan & pajak ===== */
.ic.flip { transform: scaleX(-1); }
svg.chart { display: block; overflow: visible; }
svg.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
svg.chart .grid-line { stroke: var(--line); stroke-width: 1; }

/* peta menu */
.mx-wrap { margin-top: 8px; }
.mx-q { opacity: .55; }
.mx-q.star { fill: var(--ok-soft); } .mx-q.plowhorse { fill: var(--info-soft); } .mx-q.puzzle { fill: var(--warn-soft); } .mx-q.dog { fill: var(--bad-soft); }
svg.chart .mx-ql { font-size: 12.5px; font-weight: 800; }
svg.chart .mx-ql.star { fill: var(--ok); } svg.chart .mx-ql.plowhorse { fill: var(--info); } svg.chart .mx-ql.puzzle { fill: var(--accent-ink); } svg.chart .mx-ql.dog { fill: var(--bad); }
.mx-axis { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 4 4; opacity: .5; }
svg.chart .mx-cap { font-size: 11.5px; font-weight: 700; fill: var(--fg-2); }
.mx-dot { cursor: pointer; transition: opacity .15s; }
.mx-dot circle { fill-opacity: .78; stroke: var(--surface); stroke-width: 1.5; }
.mx-dot.star circle { fill: var(--ok); } .mx-dot.plowhorse circle { fill: var(--info); } .mx-dot.puzzle circle { fill: var(--accent); } .mx-dot.dog circle { fill: var(--bad); }
.mx-dot:hover circle, .mx-dot:focus circle { fill-opacity: 1; stroke: var(--fg); }
.mx-dot:focus { outline: none; }
.mx-dot.dim { opacity: .15; }
svg.chart .mx-name { font-size: 11.5px; font-weight: 700; fill: var(--fg); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.me-top { align-items: stretch; }
.cls-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.cls-card { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); border-top: 4px solid var(--c); }
.cls-card b { font-size: 26px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cls-card span { font-weight: 750; font-size: 13.5px; }
.cls-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.cls-card.on { background: var(--c-soft); border-color: var(--c); }
.cls-card.star, .cls-pill.star { --c: var(--ok); --c-soft: var(--ok-soft); }
.cls-card.plowhorse, .cls-pill.plowhorse { --c: var(--info); --c-soft: var(--info-soft); }
.cls-card.puzzle, .cls-pill.puzzle { --c: var(--accent-ink); --c-soft: var(--warn-soft); }
.cls-card.dog, .cls-pill.dog { --c: var(--bad); --c-soft: var(--bad-soft); }
.cls-pill { display: inline-block; font-size: 12px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--c-soft); color: var(--c); white-space: nowrap; }
.cls-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.sug { font-size: 12.5px; color: var(--accent-ink); font-weight: 650; }
.me-unsold summary { cursor: pointer; padding: 2px 0; }
.me-unsold .chips { margin-top: 10px; }

/* titik impas */
.bep-hero { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 18px 28px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--brand); color: var(--on-brand); margin-bottom: 14px; }
.bep-fig small { font-weight: 700; opacity: .8; font-size: 13px; }
.bep-fig b { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 4px 0; }
.bep-fig p { margin: 0; opacity: .85; font-size: 13.5px; }
.bep-bar { height: 14px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.bep-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bep-hero.safe .bep-bar i { background: #5fd39a; }
.bep-now p { margin: 10px 0 0; font-size: 14px; }
.bep-now p b { font-variant-numeric: tabular-nums; }
.bep-verdict { opacity: .92; }
.ln-actual { fill: none; stroke: var(--brand-3); stroke-width: 2.5; stroke-linejoin: round; }
.ar-actual { fill: var(--brand-3); opacity: .12; }
.pt-actual { fill: var(--brand-3); stroke: var(--surface); stroke-width: 2; }
.ln-bep { fill: none; stroke: var(--bad); stroke-width: 1.6; stroke-dasharray: 6 5; }
.ln-target { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2 4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.legend .lg::before { content: ''; display: inline-block; width: 18px; height: 0; border-top: 2.5px solid; vertical-align: middle; margin-right: 6px; }
.legend .lg.actual::before { border-color: var(--brand-3); } .legend .lg.bep::before { border-color: var(--bad); border-top-style: dashed; } .legend .lg.target::before { border-color: var(--accent); border-top-style: dotted; }
.formula { margin: 12px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* anggaran */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav b { min-width: 130px; text-align: center; font-size: 15px; }
.month-nav .icon-btn { color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); }
.bud-list { display: grid; }
.bud-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr minmax(120px, auto); gap: 6px 18px; align-items: center; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line-2); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bud-row:last-child { border-bottom: 0; }
.bud-row:disabled { cursor: default; }
.bud-row:not(:disabled):hover { background: var(--surface-2); }
.bud-name b { display: block; } .bud-name small, .bud-meter small, .bud-end small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.bud-meter .meter { position: relative; height: 9px; margin: 0; overflow: visible; }
.bud-meter .meter i { max-width: 100%; }
.bud-meter .meter em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg-2); opacity: .55; border-radius: 2px; }
.meter.ok i { background: var(--ok); } .meter.bad i { background: var(--bad); }
.bud-end { text-align: right; }
.bud-end small.neg { color: var(--bad); }

/* arus kas */
.cf-tools { gap: 10px; flex-wrap: wrap; }
.seg { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg > span { padding: 0 8px 0 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.seg a { padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.seg a.on { background: var(--brand-2); color: var(--on-brand); }
.callout { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.callout > .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.callout.warn { background: var(--warn-soft); border: 1px solid var(--warn); border-style: solid; color: var(--fg); }
.callout.warn > .ic { color: var(--warn); }
.callout.bad { background: var(--bad-soft); border: 1px solid var(--bad); color: var(--fg); }
.callout.bad > .ic { color: var(--bad); }
.ln-cash { fill: none; stroke: var(--brand-3); stroke-width: 2.5; stroke-linejoin: round; }
.ar-cash { fill: var(--brand-3); opacity: .1; }
.pt-cash { fill: var(--surface); stroke: var(--brand-3); stroke-width: 2; }
.pt-cash.low { stroke: var(--bad); fill: var(--bad); }
.cf-neg { fill: var(--bad-soft); opacity: .7; }
.cf-zero { stroke: var(--bad); stroke-width: 1; }
.cf-min { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; }
svg.chart .cf-minl { fill: var(--accent-ink); font-weight: 700; }
.cf-events { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.cf-events li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line-2); }
.cf-events li:last-child { border-bottom: 0; }
.cf-d { font-weight: 800; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.cf-l { min-width: 0; font-size: 13.5px; } .cf-l small { display: block; color: var(--muted); font-size: 12px; }
.cf-events b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-events li.loans .cf-d, .cf-events li.payables .cf-d { color: var(--bad); }
.cf-assume summary, .me-unsold summary { cursor: pointer; }
.cf-assume ul { margin: 10px 0 0; padding-left: 18px; color: var(--fg-2); font-size: 13.5px; line-height: 1.55; }

/* pajak */
.tx-table td { vertical-align: top; }
.tx-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tx-cell b { font-variant-numeric: tabular-nums; }
.tx-cell small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.meter.thin { display: inline-block; vertical-align: middle; width: 54px; height: 6px; margin: 0 6px 0 0; }
.tx-note { max-width: 78ch; line-height: 1.5; }

@media (max-width: 760px) {
  .bep-hero { grid-template-columns: 1fr; padding: 18px; }
  .bud-row { grid-template-columns: 1fr auto; }
  .bud-meter { grid-column: 1 / -1; grid-row: 2; }
  .cls-cards { grid-template-columns: 1fr 1fr; }
}
@media print {
  .seg, .month-nav, .cf-tools, #set, #yr { display: none !important; }
}
@media (min-width: 761px) { .tbl td.r.num { white-space: nowrap; } }
.formula.pad { margin: 12px 16px 16px; }
.mx-wrap { padding-top: 4px; }
.cls-note { margin: 0 16px 12px; }
.ghost-slot { visibility: hidden; }
.bud-row:first-child { border-radius: var(--radius) var(--radius) 0 0; } .bud-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.page-actions select { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; }
.tx-note { margin-top: 12px; }
@media (max-width: 560px) { .ledger b { font-size: clamp(15px, 4.6vw, 19px); white-space: nowrap; overflow-wrap: normal; } }

/* ===== 2.9: jadwal shift, checklist, produksi, saran belanja ===== */
.sh-green { --c: #1d8a55; } .sh-amber { --c: #c27c0e; } .sh-blue { --c: #2a6fb5; } .sh-violet { --c: #7c5cd6; } .sh-rose { --c: #c23d6c; } .sh-slate { --c: #6b7a77; }
.sch-tools { gap: 8px; }
.sch-wrap { overflow-x: auto; padding: 0; }
.sch { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; font-size: 13px; }
.sch th, .sch td { padding: 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; text-align: left; }
.sch thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; padding: 10px 6px; }
.sch thead th b { font-size: 13.5px; } .sch thead th span { color: var(--muted); font-weight: 600; }
.sch th.today, .sch td.today { background: color-mix(in srgb, var(--brand-3) 7%, transparent); }
.sch thead th.today { box-shadow: inset 0 3px 0 var(--brand-3); }
.sch .sch-name { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; max-width: 190px; padding-left: 14px; }
.sch thead .sch-name { background: var(--surface-2); z-index: 2; }
.sch .sch-name b { display: block; font-size: 13.5px; } .sch .sch-name small { color: var(--muted); font-weight: 500; }
.sch td.r, .sch th.r { text-align: right; padding-right: 14px; } .sch td.r small { display: block; color: var(--muted); }
.sch tbody tr:last-child > * { border-bottom: 0; }
.sch-busy { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.sch-busy.thin { color: var(--bad); }
.sch-cell { width: 100%; min-height: 54px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; font: inherit; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 78%, var(--fg)); border-left: 3px solid var(--c); }
.sch-cell b { font-size: 12.5px; } .sch-cell span { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.sch-cell i { font-style: normal; font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-cell.empty { background: transparent; border: 1px dashed var(--line); border-left-width: 1px; align-items: center; color: var(--faint); }
.sch-cell.empty .plus { font-size: 18px; color: var(--faint); }
.sch-cell.empty:hover { border-color: var(--brand-3); } .sch-cell.empty:hover .plus { color: var(--brand-3); }
.sch-cell:disabled { cursor: default; }
.sch-cell .off { font-size: 12px; }
.sch-att { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.sch-att.ok { color: var(--ok); } .sch-att.warn { color: var(--warn); } .sch-att.bad { color: var(--bad); } .sch-att.info { color: var(--info); }
.sch-pick, .sch-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sch-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; font: inherit; text-align: left; cursor: pointer; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--fg); }
.sch-opt b { color: color-mix(in srgb, var(--c) 80%, var(--fg)); } .sch-opt span { font-size: 12.5px; color: var(--muted); }
.sch-opt.on { outline: 2px solid var(--c); outline-offset: 1px; }
.sch-custom summary { cursor: pointer; font-weight: 700; margin: 4px 0 10px; }
.sch-custom .btn { margin-top: 8px; }
.sch-legend { margin-top: 10px; align-items: center; }
.sh-dot::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.my-shifts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.my-shift { flex: none; min-width: 96px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.my-shift.today { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.my-shift small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; } .my-shift b { display: block; color: color-mix(in srgb, var(--c) 80%, var(--fg)); } .my-shift span { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* checklist */
.cl-head h2 { font-size: 16px; margin: 4px 0 10px; }
.cl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cl-cards.compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 0; }
.cl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cl-card.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.cl-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.cl-card h3 { margin: 2px 0 0; font-size: 16px; }
.cl-kind { font-size: 11.5px; font-weight: 750; color: var(--muted); }
.cl-kind.open { color: var(--accent-ink); } .cl-kind.close { color: var(--info); }
.cl-prog { --p: 0; flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line-2) 0); position: relative; }
.cl-prog::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.cl-prog b { position: relative; font-size: 12px; font-variant-numeric: tabular-nums; }
.cl-ok { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--ok); font-weight: 700; font-size: 13px; } .cl-ok .ic { width: 16px; height: 16px; }
.cl-items { list-style: none; margin: 0; padding: 0; }
.cl-items label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-top: 1px solid var(--line-2); cursor: pointer; }
.cl-items li:first-child label { border-top: 0; }
.cl-items input { position: absolute; opacity: 0; pointer-events: none; }
.cl-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid var(--line); display: grid; place-items: center; background: var(--surface); margin-top: 1px; transition: background .12s, border-color .12s; }
.cl-box .ic { width: 14px; height: 14px; color: var(--on-brand); opacity: 0; stroke-width: 2.6; }
.cl-items label.on .cl-box { background: var(--ok); border-color: var(--ok); } .cl-items label.on .cl-box .ic { opacity: 1; }
.cl-items input:focus-visible + .cl-box { outline: 2px solid var(--brand-3); outline-offset: 2px; }
.cl-text { font-size: 14px; line-height: 1.4; } .cl-text small { display: block; color: var(--muted); font-size: 11.5px; }
.cl-items label.on .cl-text { color: var(--muted); } .cl-items label.on .cl-text .t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.cl-all { margin-top: 6px; }
.cl-hist { margin-top: 4px; }
.cl-matrix th.c, .cl-matrix td.c { text-align: center; padding-left: 2px; padding-right: 2px; min-width: 30px; }
.cl-matrix th.c span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.cl-matrix .closed { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line-2) 5px 6px); }
.cl-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--line); vertical-align: middle; }
.cl-dot.full { background: var(--ok); border-color: var(--ok); }
.cl-dot.part { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border-color: var(--accent); }
.cl-tpls { display: grid; gap: 4px; }

/* produksi */
.prep-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.prep-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.prep-card.need { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.prep-card.expired { border-color: var(--bad); }
.prep-card header { display: flex; justify-content: space-between; gap: 8px; }
.prep-card h3 { margin: 0; font-size: 16px; } .prep-card header p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.prep-stock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prep-stock > div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.prep-stock small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; } .prep-stock b { font-variant-numeric: tabular-nums; }
.prep-fresh { margin: 0; font-size: 12.5px; color: var(--muted); }
.prep-sug { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--accent-ink); font-size: 13px; }
.prep-sug .ic { width: 16px; height: 16px; flex: none; }
.prep-in { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.prep-in li { display: flex; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--line-2); }
.prep-in li span { flex: 1; } .prep-in em { font-style: normal; font-size: 12px; }
.prep-go { margin-top: auto; justify-content: center; }
.prep-need { margin-top: 4px; }
.formula.pad0 { margin: 10px 0 0; }

/* saran belanja */
.rs-group .panel-head .btn { white-space: nowrap; }

/* kasir: checklist */
.k-clsheet .ov-body { max-height: 70vh; overflow-y: auto; }
.k-clwarn { margin-bottom: 12px; }

@media (max-width: 760px) {
  .sch .sch-name { min-width: 112px; }
  .cl-cards { grid-template-columns: 1fr; }
}
.grid > * { min-width: 0; }
.cl-hist .table-wrap { overflow-x: auto; } .cl-matrix td:first-child { min-width: 140px; }

/* ===== 3.0: mode sederhana, pengaturan awal, tur panduan ===== */
.tour-shade { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.tour-spot { position: fixed; z-index: 9001; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 20, 18, .62); pointer-events: none; transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease, opacity .2s; outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-pop { position: fixed; z-index: 9002; background: var(--surface); color: var(--fg); border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.45); width: 340px; max-width: calc(100vw - 24px); }
.tour-pop.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.tour-pop h3 { margin: 2px 0 6px; font-size: 17px; }
.tour-n { margin: 0; font-size: 12px; font-weight: 750; color: var(--accent-ink); }
.tour-t { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.tour-act { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.tour-act .link-btn { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }
.tour-hint { position: fixed; z-index: 800; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); font-size: 13.5px; }
.tour-hint .icon-btn { color: var(--on-brand); width: 32px; height: 32px; font-size: 20px; }
.tour-hint .btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .tour-hint { bottom: 86px; left: 12px; right: 12px; } .tour-hint span { font-size: 13px; } }

.setup-qs { display: grid; gap: 8px; margin: 14px 0 10px; }
.setup-q { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 650; cursor: pointer; }
.setup-q small { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.setup-q:hover { border-color: var(--brand-3); }
.setup-q.on { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.setup-q.on .cl-box { background: var(--ok); border-color: var(--ok); } .setup-q.on .cl-box .ic { opacity: 1; }

.mod-core { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; font-size: 13.5px; }
.mod-core span { color: var(--fg-2); }
.mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mod-head h2 { margin: 0; font-size: 16px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mod-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.mod-card.on { border-color: color-mix(in srgb, var(--brand-3) 60%, var(--line)); }
.mod-card.locked { opacity: .75; }
.mod-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.mod-card.on .mod-ic { background: var(--brand-soft); color: var(--brand-3); }
.mod-txt { flex: 1; min-width: 0; } .mod-txt b { display: block; } .mod-txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.mod-txt em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--warn-soft); padding: 2px 8px; border-radius: 99px; }
.switch { position: relative; flex: none; width: 44px; height: 26px; margin-top: 4px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--brand-3); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand-3); outline-offset: 2px; }
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; } .preset-row > span { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; } .preset-row .chip { cursor: pointer; }
.pq-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .pq-row .search { flex: 1; }

/* ===== 3.1: bantuan, data awal ===== */
.eb-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.rp-err { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.rp-err small { display: block; color: var(--bad); font-weight: 700; font-size: 12px; } .rp-err b { font-weight: 600; font-size: 13.5px; }
.rp-info { margin-top: 10px; font-size: 13px; color: var(--muted); } .rp-info summary { cursor: pointer; font-weight: 650; } .rp-info ul { margin: 6px 0 0; padding-left: 18px; }
.help-opts { display: grid; gap: 10px; }
.help-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--fg); text-align: left; cursor: pointer; }
.help-opt:hover { border-color: var(--brand-3); }
.help-opt b { display: block; } .help-opt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.help-opt .hi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-3); }
.help-opt .hi.wa { background: #dcf8c6; color: #128c4b; }
.rp-block { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rp-block.bad { background: var(--bad-soft); }
.rp-block h4 { margin: 0 0 6px; font-size: 13px; } .rp-block p { margin: 0; }
.rp-list { margin: 0; padding-left: 0; list-style: none; font-size: 13px; }
.rp-list li { display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px; padding: 3px 0; border-top: 1px dashed var(--line); }
.rp-list li:first-child { border-top: 0; } .rp-list li span { color: var(--muted); font-variant-numeric: tabular-nums; } .rp-list li small { grid-column: 2; color: var(--muted); }
.rp-pre { max-height: 300px; overflow: auto; font-size: 11.5px; background: var(--surface); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.ds-sec { margin-bottom: 26px; } .ds-sec h2 { font-size: 17px; margin: 0 0 4px; } .ds-sec > p { margin: 0 0 12px; max-width: 75ch; }
.tpl-cards, .imp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tpl-cards.one { grid-template-columns: 1fr; margin-top: 10px; }
.tpl-card, .imp-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tpl-card h3, .imp-card h3 { margin: 0; font-size: 16px; } .tpl-card p, .imp-card p { margin: 0; color: var(--fg-2); font-size: 13.5px; } .tpl-card small { color: var(--muted); font-size: 12px; }
.tpl-card .btn { align-self: flex-start; margin-top: auto; }
.imp-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; } .imp-up { cursor: pointer; }
.tpl-pick { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--fg); cursor: pointer; }
.tpl-pick:hover { border-color: var(--brand-3); background: color-mix(in srgb, var(--brand-3) 5%, var(--surface)); }
.tpl-pick b { font-size: 15.5px; } .tpl-pick span { color: var(--fg-2); font-size: 13.5px; } .tpl-pick small { color: var(--muted); font-size: 12px; }
.danger-zone { padding: 16px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 4%, var(--surface)); }
.rs-groups { display: grid; gap: 8px; margin-bottom: 10px; }
.rs-count { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.rs-form .form-grid { margin-bottom: 12px; }
.empty-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

/* ===== 3.2: metode pembayaran ===== */
.pm-list { display: grid; gap: 10px; }
.pm-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pm-card.off { opacity: .62; }
.pm-card.off .pm-ic { filter: grayscale(1); }
.pm-ic { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--jade-soft); color: var(--jade); overflow: hidden; }
.pm-ic svg { width: 26px; height: 26px; }
.pm-ic img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pm-ic.k-cash { background: #fbefd9; color: #8a5a12; }
.pm-ic.k-card, .pm-ic.k-transfer { background: #e3ecf8; color: #2a5288; }
.pm-main { min-width: 0; display: grid; gap: 2px; }
.pm-main b { font-size: 15.5px; }
.pm-main small, .pm-use small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pm-use { display: grid; gap: 1px; text-align: right; font-variant-numeric: tabular-nums; min-width: 120px; }
.pm-act [disabled] { opacity: .3; }
.pm-act { display: flex; align-items: center; gap: 10px; }
.pm-act .switch { margin-top: 0; }
.pm-act [data-up] svg { transform: rotate(-90deg); }
@media (max-width: 760px) {
  .pm-card { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; }
  .pm-ic { width: 48px; height: 48px; }
  .pm-use { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; min-width: 0; }
  .pm-use br { display: none; }
  .pm-act { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line-2, var(--line)); padding-top: 8px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-ic.k-cash { background: #3a2c14; color: #f0c071; } :root:not([data-theme="light"]) .pm-ic.k-card, :root:not([data-theme="light"]) .pm-ic.k-transfer { background: #1b2b40; color: #9cc0ee; } }
:root[data-theme="dark"] .pm-ic.k-cash { background: #3a2c14; color: #f0c071; }
:root[data-theme="dark"] .pm-ic.k-card, :root[data-theme="dark"] .pm-ic.k-transfer { background: #1b2b40; color: #9cc0ee; }
/* ===== 3.2: pencatatan stok bisa dimatikan ===== */
.mod-inv { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: center; margin-bottom: 18px; }
.mod-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--fg, inherit); font-size: 13.5px; line-height: 1.5; grid-column: span 2; }
@media (max-width: 760px) { .mod-note { grid-column: auto; } }

/* ===== 3.3: paket & fitur terkunci ===== */
.nav-link.locked { color: var(--muted); }
.nav-link.locked > .ic { opacity: .6; }
.nav-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 99px; background: var(--accent-soft, var(--warn-soft)); color: var(--accent-ink, var(--warn)); font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.nav-lock .ic { width: 11px; height: 11px; }
.menu-grid.qa a.locked { opacity: .72; }
.up { position: relative; display: grid; min-height: 520px; margin-top: 4px; }
.up-mock { grid-area: 1 / 1; filter: blur(2.5px) saturate(.7); opacity: .5; pointer-events: none; user-select: none; overflow: hidden; max-height: 640px; }
.up-mock .ledger { margin-bottom: 12px; }
.up-card { grid-area: 1 / 1; align-self: start; justify-self: center; position: relative; width: min(560px, 100%); margin-top: 28px; padding: 26px 26px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 60px -24px rgba(10, 30, 26, .45); }
.up-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft, var(--warn-soft)); color: var(--accent-ink, var(--warn)); font-size: 12px; font-weight: 800; }
.up-badge .ic { width: 13px; height: 13px; }
.up-card h2 { margin: 12px 0 6px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.up-card > p { margin: 0 0 14px; color: var(--fg-2); }
.up-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.up-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.up-list .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-3); }
.up-act { display: flex; flex-wrap: wrap; gap: 8px; }
.up-act .btn.lg { flex: 1 1 220px; justify-content: center; }
.up-note { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 760px) { .up-card { margin-top: 8px; padding: 20px 18px; } .up-card h2 { font-size: 21px; } .up { min-height: 0; } }
.nudge { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; margin: 0 0 18px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft, var(--warn-soft)), var(--surface) 70%); }
.nudge.on { background: linear-gradient(135deg, var(--ok-soft), var(--surface) 70%); }
.nudge-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent-ink, var(--warn)); }
.nudge.on .nudge-ic { color: var(--ok); }
.nudge > div:not(.nudge-act) { flex: 1; min-width: 0; }
.nudge b { font-size: 15px; } .nudge p { margin: 3px 0 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.45; }
.nudge-act { display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 640px) { .nudge { flex-wrap: wrap; } .nudge > div:not(.nudge-act) { flex-basis: calc(100% - 52px); } .nudge-act { width: 100%; justify-content: flex-end; } .nudge > .btn { margin-left: auto; } }
.locked-card { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-2); color: inherit; text-decoration: none; }
.locked-card:hover { border-color: var(--brand-3); }
.lc-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.locked-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lc-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--brand-3); white-space: nowrap; }
.mod-up { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--accent-ink, var(--warn)); text-decoration: none; }
.mod-up .ic { width: 12px; height: 12px; }
.plan { position: relative; }
.plan.pop { border-color: var(--brand-3); box-shadow: 0 0 0 1px var(--brand-3); }
.plan-pop { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 99px; background: var(--brand-3); color: #fff; font-size: 11px; font-weight: 800; }
.plan-feat { list-style: none; padding-left: 0 !important; display: grid; gap: 5px; }
.plan-feat li { display: flex; gap: 6px; align-items: baseline; }
.plan-feat li::before { content: '✓'; color: var(--ok); font-weight: 800; width: 12px; flex: none; }
.plan-feat li.no { color: var(--muted); opacity: .6; text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-feat li.no::before { content: '–'; color: var(--muted); }
img.img-broken { visibility: hidden; }

/* ---- Studio promosi (Menu Digital → Bagikan & promosi) ---- */
.ss .panel-head h3 { display: flex; align-items: center; gap: 8px; }
.ss-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
.ss-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ss-form .field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.ss-form input, .ss-form select, .ss-form textarea { width: 100%; }
.ss-form textarea { font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
.ss-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ss-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.ss-chip small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.ss-chip.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.seg { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.seg button { white-space: nowrap; border: 0; background: transparent; color: var(--fg-2); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.ss-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.ss-pick { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 12.5px; font-weight: 600; line-height: 1.25; background: var(--surface); }
.ss-pick img, .ss-pick i { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sunk); display: grid; place-items: center; color: var(--muted); }
.ss-pick input { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; accent-color: var(--brand); }
.ss-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ss-pick span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ss-prev { position: sticky; top: 12px; }
.ss-canvas { position: relative; border-radius: 14px; overflow: hidden; background: var(--sunk); box-shadow: var(--shadow); }
.ss-canvas canvas { display: block; width: 100%; height: auto; }
.ss-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.18); }
.ss-busy[hidden] { display: none; }
.ss-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ss-acts .btn { justify-content: center; }
.ss-acts .ss-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.ss-acts .ss-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); border-color: transparent; color: #fff; }
@media (max-width: 860px) { .ss-grid { grid-template-columns: 1fr; } .ss-prev { position: static; order: -1; max-width: 420px; margin: 0 auto; width: 100%; } }
.fg-ok { color: var(--ok); }
