/* Purnama POS — lapisan desain. Putih, bersih, membulat.
   Warna dipakai di data dan satu aksi utama. Permukaan datar: pemisah = garis tipis, bukan bayangan. */
:root {
  --bg: #F7F8F7; --surface: #FFFFFF; --surface-2: #F7F8F7; --surface-3: #F0F2F0;
  --border: #E8EBE8; --border-strong: #D5DAD6;
  --text: #17201B; --text-2: #414C45; --muted: #6F7A73;
  --accent: #1F8A4C; --accent-strong: #176F3C; --accent-soft: #E7F4EC; --accent-text: #fff;
  --ok: #1F8A4C; --ok-soft: #E7F4EC; --warn: #A66A0B; --warn-soft: #FBF1DD; --bad: #C43D32; --bad-soft: #FBE9E7; --info: #2F6FDB; --info-soft: #E8F0FC;
  --cat0: #1F8A4C; --cat1: #2F6FDB; --cat2: #D9902B; --cat3: #8A5AB5;
  --shadow: none; --shadow-pop: 0 8px 28px rgba(23, 32, 27, .12); --shadow-lg: 0 24px 64px rgba(23, 32, 27, .2);
  --radius: 20px; --radius-sm: 12px; --sidebar: 224px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513; --surface: #1A1F1C; --surface-2: #161A18; --surface-3: #232926; --border: #2A312D; --border-strong: #3A433E;
    --text: #EDF1EE; --text-2: #C8D0CB; --muted: #8E9A93; --ok-soft: #1C2F24; --warn: #E0AE5C; --warn-soft: #33291A; --bad: #EC8A7F; --bad-soft: #3A211E; --info: #86AEF0; --info-soft: #1C2A40;
    --cat0: #2F9E62; --cat1: #5B8EE6; --cat2: #B8812A; --cat3: #A07ACB; --shadow-pop: 0 8px 28px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg: #111513; --surface: #1A1F1C; --surface-2: #161A18; --surface-3: #232926; --border: #2A312D; --border-strong: #3A433E;
  --text: #EDF1EE; --text-2: #C8D0CB; --muted: #8E9A93; --ok-soft: #1C2F24; --warn: #E0AE5C; --warn-soft: #33291A; --bad: #EC8A7F; --bad-soft: #3A211E; --info: #86AEF0; --info-soft: #1C2A40;
  --cat0: #2F9E62; --cat1: #5B8EE6; --cat2: #B8812A; --cat3: #A07ACB; --shadow-pop: 0 8px 28px rgba(0,0,0,.45);
}
body { font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif); font-size: 14px; letter-spacing: -.003em; font-feature-settings: "tnum"; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; }
.mono { font-family: inherit; font-size: inherit; font-variant-numeric: tabular-nums; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.spacer { flex: 1; }

/* ---------- kerangka ---------- */
.app { background: var(--bg); }
.sidebar { background: var(--surface); border: 0; border-right: 1px solid var(--border); border-radius: 0; margin: 0; box-shadow: none; padding: 16px 12px; height: 100vh; position: sticky; top: 0; }
.brand { padding: 2px 6px 14px; border: 0; gap: 10px; }
.brand-mark { background: none; width: 40px; height: 40px; padding: 0; border-radius: 13px; box-shadow: none; flex: none; }
.bmark { display: block; }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: 0; }
.brand-sub { font-size: 11px; letter-spacing: 0; text-transform: none; line-height: 1.25; }
.nav-group { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 14px 10px 4px; }
.nav a { border-radius: 10px; padding: 8px 10px; font-weight: 500; color: var(--text-2); }
.nav a svg.i { width: 17px; height: 17px; }
.nav a:hover { background: var(--surface-3); }
.nav a.active { background: var(--surface-3); color: var(--text); font-weight: 650; }
.nav a.active svg.i { color: var(--accent); }
.user-chip { border: 0; background: transparent; padding: 8px 4px; }
.avatar { background: var(--surface-3); color: var(--text); }
.topbar { padding: 10px 20px; gap: 10px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; min-height: 58px; backdrop-filter: none; }
.topbar h1 { font-size: 16px; font-weight: 750; }
.topbar .sub { font-size: 12px; }
.tb-title { min-width: 0; margin-left: 4px; }
.tb-title .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-seg { background: var(--surface-3); box-shadow: none; padding: 3px; }
.mode-seg button { padding: 6px 12px; font-size: 13px; }
.mode-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.mode-seg button.on svg.i { color: var(--accent); }
.demo-bar { border: 1px dashed var(--border-strong); background: transparent; padding: 4px 10px; font-size: 12px; }
.demo-bar .lbl { display: none; }
.demo-bar select { font-size: 12px; font-weight: 600; }
.sync-pill, .shift-pill { background: transparent; color: var(--muted); font-size: 12px; padding: 0 4px; border: 0; font-weight: 500; }
.sync-pill .dot, .shift-pill .dot { background: var(--ok); }
.sync-pill.off .dot { background: var(--warn); }
.content { padding: 16px 20px 28px; max-width: none; }
.fit .content { padding: 0; }

/* ---------- komponen dasar ---------- */
.card, .panel, .table-card, .stat-row, .set-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.card.pad, .panel { padding: 16px 18px; }
.card-h { padding: 14px 18px 0; border: 0; }
.card-h h3, .card h3, .panel h3 { font-size: 14px; font-weight: 700; }
.btn { border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); padding: 7px 14px; font-size: 13px; font-weight: 600; box-shadow: none; gap: 6px; transition: background .12s, transform .08s, border-color .12s; }
.btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); transform: none; box-shadow: none; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: none; }
.btn.primary:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.primary:disabled { background: var(--surface-3); border-color: var(--surface-3); color: var(--muted); opacity: 1; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 999px; }
.btn.lg { padding: 11px 20px; font-size: 14.5px; border-radius: 999px; }
.btn.xl { padding: 14px 22px; font-size: 16px; font-weight: 700; border-radius: 999px; }
.btn.block { width: 100%; justify-content: center; }
.btn.icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }
.btn.sm.icon { width: 30px; height: 30px; padding: 5px; }
.btn kbd { font: inherit; font-size: 11px; font-weight: 600; opacity: .75; margin-left: 6px; }
.btn.danger { color: var(--bad); border-color: var(--border-strong); }
.input { border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); padding: 8px 11px; font-size: 13.5px; box-shadow: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
.input.lg { font-size: 15px; padding: 10px 12px; }
.input.xl { font-size: 20px; font-weight: 700; padding: 11px 12px; }
.input-group { border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group .input { border: 0; box-shadow: none !important; background: transparent; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.seg { background: var(--surface-3); border-radius: 999px; padding: 3px; box-shadow: none; display: inline-flex; gap: 0; }
.seg button { border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.seg.lg button { padding: 6px 14px; font-size: 13px; }
.seg.xs button { padding: 3px 9px; font-size: 12px; }
.seg.wrap { flex-wrap: wrap; border-radius: 14px; }
.tabs { display: flex; gap: 2px; border: 0; margin-bottom: 12px; background: transparent; padding: 0; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; box-shadow: none; }
.tabs button:hover { background: var(--surface-3); color: var(--text); }
.tabs button.on { background: var(--surface-3); color: var(--text); }
.tabs.flat { margin: 0; }
.tabs-t { font-weight: 700; font-size: 14px; padding: 6px 2px; }
.chip { border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.badge { border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; }
.link { background: none; border: 0; color: var(--accent-strong); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.link:disabled { color: var(--muted); cursor: default; }
.pill-sel { appearance: none; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7A73' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 6px 28px 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; max-width: 170px; }
.pill-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.pill-check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.search { position: relative; }
.search > svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search .input { padding-left: 33px; border-radius: 999px; }
.modal { border-radius: 20px; box-shadow: var(--shadow-lg); border: 0; }
.modal-h { padding: 16px 20px 8px; border: 0; }
.modal-h h3 { font-size: 16px; font-weight: 750; }
.modal-b { padding: 8px 20px 16px; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--border); background: transparent; gap: 8px; }
.overlay { background: rgba(23, 32, 27, .35); backdrop-filter: none; }
.popover { border-radius: 14px; box-shadow: var(--shadow-pop); border: 1px solid var(--border); }
.toast { border-radius: 12px; box-shadow: var(--shadow-pop); }
.t { font-size: 13.5px; }
.t th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; background: transparent; border-bottom: 1px solid var(--border); padding: 9px 12px; white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: var(--surface-2); }
.t.compact th, .t.compact td { padding: 6px 8px; font-size: 12.5px; }
.t .tight { width: 1%; white-space: nowrap; }
.faded { opacity: .55; }
.empty-box { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 34px 16px; color: var(--muted); text-align: center; font-size: 13px; }
.empty-box b { color: var(--text); font-weight: 650; font-size: 14px; }
.empty-box.tall { padding: 60px 16px; }
.empty-mini { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* angka ringkasan: tipe, bukan kartu warna-warni */
.stat-row { display: flex; flex-wrap: wrap; padding: 4px; margin-bottom: 14px; }
.stat { flex: 1 1 150px; min-width: 0; padding: 11px 16px; display: flex; flex-direction: column; gap: 1px; text-align: left; background: transparent; border: 0; border-radius: 16px; font: inherit; color: inherit; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--border); }
.stat > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat > b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.stat > small { font-size: 12px; color: var(--muted); }
.stat.tap { cursor: pointer; } .stat.tap:hover { background: var(--surface-2); } .stat.tap.on { background: var(--surface-3); }
.stat.bare { padding: 0; flex: 1 1 130px; } .stat.bare::before { display: none; }
.delta { font-weight: 650; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
/* kartu lama (Riwayat, Insight, Laporan) ikut jadi tipe */
.dk-grid, .grid.dk-grid { gap: 10px; margin-bottom: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dk-card { background: var(--surface) !important; border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; box-shadow: none; color: inherit; }
.dk-card .dk-ic { display: none; }
.dk-top { font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 0; gap: 0; }
.dk-val { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin: 2px 0 0; color: var(--text); }
.dk-foot { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---------- KASIR ---------- */
.kasir { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; min-height: 0; overflow: hidden; }
.k-left { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 16px 0; gap: 10px; }
.k-search { display: flex; gap: 8px; }
.k-scanbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 0 14px; height: 46px; }
.k-scanbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.k-scanbox svg.i { color: var(--accent); }
.k-scanbox input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 15px; font-weight: 500; }
.k-scanbox kbd { font: inherit; font-size: 11.5px; color: var(--muted); }
.k-search .btn { height: 46px; padding: 0 16px; }
.k-filter { display: flex; align-items: center; gap: 8px; min-width: 0; }
.k-cats { display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.k-cats::-webkit-scrollbar { display: none; }
.k-cats button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.k-cats button:hover { background: var(--surface-3); }
.k-cats button.on { background: var(--text); color: var(--surface); }
.k-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; align-content: start; padding: 2px 2px 16px; }
.k-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 0; color: var(--muted); }
.k-empty b { color: var(--text); }
.pc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .12s; }
.pc.in { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pc.off { opacity: .55; }
.pc-img { position: relative; }
.pimg { background: var(--surface-3); border-radius: 12px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg svg { width: 44%; height: auto; opacity: .85; }
.pimg.sm { width: 42px; height: 42px; aspect-ratio: 1; flex: none; border-radius: 10px; }
.pc-q { position: absolute; top: 6px; right: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pc-name { font-weight: 650; font-size: 13.5px; line-height: 1.3; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 3px; }
.pc-meta > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-st { white-space: nowrap; font-weight: 600; flex: none; color: var(--text-2); }
.pc-st.warn { color: var(--warn); } .pc-st.bad { color: var(--bad); }
.pc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pc-btns button.wide { grid-column: 1 / -1; }
.pc-btns button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 11px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 0; cursor: pointer; line-height: 1.25; min-height: 44px; justify-content: center; transition: background .1s, transform .08s; }
.pc-btns button span { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.pc-btns button b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-btns button:hover:not(:disabled) { background: var(--surface-3); }
.pc-btns button:active:not(:disabled) { transform: scale(.97); }
.pc-btns button.main { background: var(--accent-soft); border-color: transparent; }
.pc-btns button.main span, .pc-btns button.main b { color: var(--accent-strong); }
.pc-btns button.main:hover:not(:disabled) { background: var(--accent); }
.pc-btns button.main:hover:not(:disabled) span, .pc-btns button.main:hover:not(:disabled) b { color: #fff; }
.pc-btns button:disabled { opacity: .4; cursor: not-allowed; }
.k-cart { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--border); }
.kc-head { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.kc-cust { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: var(--surface-3); border-radius: 999px; padding: 0 10px; height: 34px; }
.kc-cust svg.i { width: 15px; height: 15px; color: var(--muted); }
.kc-cust select { flex: 1; min-width: 0; border: 0; background: none; font-size: 13px; font-weight: 600; outline: 0; cursor: pointer; }
.count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 3px; }
.held { display: flex; flex-direction: column; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.held:hover { background: var(--surface-3); }
.held span { font-size: 12px; color: var(--muted); }
.kc-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px; }
.kc-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-align: center; font-size: 13px; }
.kc-empty svg.i { width: 30px; height: 30px; color: var(--border-strong); margin-bottom: 4px; }
.kc-empty b { color: var(--text); font-size: 14px; }
.cl { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cl:last-child { border-bottom: 0; }
.cl.flash { animation: clFlash .7s ease-out; }
@keyframes clFlash { from { background: var(--accent-soft); } to { background: transparent; } }
.cl.over .cl-name { color: var(--bad); }
.cl-img { flex: none; width: 46px; }
.cl-img .pimg { aspect-ratio: 1; border-radius: 10px; }
.cl-img .pimg svg { width: 72%; }
.cl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-top { display: flex; align-items: flex-start; gap: 6px; }
.cl-name { flex: 1; min-width: 0; font-weight: 650; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 3px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.cl-del svg.i { width: 15px; height: 15px; }
.cl-del:hover { background: var(--bad-soft); color: var(--bad); }
.cl-detail { font-size: 12px; color: var(--muted); }
.tag { background: var(--surface-3); color: var(--text-2); border-radius: 6px; padding: 0 5px; font-size: 11px; font-weight: 600; }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.cl-bot { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.cl-total { margin-left: auto; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-disc { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; padding: 0; }
.cl-disc:hover { color: var(--text); text-decoration: underline; }
.qty { display: inline-flex; align-items: center; background: var(--surface-3); border-radius: 999px; padding: 2px; }
.qty > button:not(.qty-v) { width: 28px; height: 28px; border: 0; border-radius: 999px; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px var(--border); }
.qty > button:not(.qty-v):hover { background: var(--accent-soft); color: var(--accent-strong); }
.qty svg.i { width: 14px; height: 14px; }
.qty-v { border: 0; background: none; font-size: 13px; font-weight: 650; padding: 0 9px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty-v:hover { text-decoration: underline; }
.qty-in { border: 0; background: none; width: 56px; text-align: center; font-weight: 650; font-size: 13.5px; outline: 0; font-variant-numeric: tabular-nums; }
.qty-in.sm { width: 38px; }
.kc-foot { padding: 10px 14px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.kc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); min-height: 22px; }
.kc-row i { font-style: normal; }
.kc-warn { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: 10px; margin-bottom: 2px; }
.kc-warn svg.i { width: 15px; height: 15px; }
.kc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 8px; }
.kc-total span { font-weight: 650; }
.kc-total b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qp { width: 280px; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.qp-in { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.qp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.start-card { max-width: 400px; margin: 9vh auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; text-align: center; }
.start-card h2 { font-size: 20px; font-weight: 750; }
.start-card p { margin: 6px 0 0; font-size: 13.5px; }

/* pembayaran */
.pay-total { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.bill-sw button, .pay-methods .pm { border-radius: 14px; box-shadow: none; }
.okcircle { background: var(--accent-soft); color: var(--accent); box-shadow: none; }

/* ---------- INVENTORI ---------- */
.inv-page { display: flex; flex-direction: column; gap: 12px; min-height: 0; height: 100%; padding: 12px 20px 14px; }
.inv-head { display: flex; align-items: center; gap: 10px; flex: none; }
.inv-body { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.toolbar .btn { height: 34px; }
.grow-sm { flex: 1 1 200px; max-width: 300px; }
.fbar-inline { min-width: 0; }
.fbar-inline .fbar { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.fbar-wrap .fbar { box-shadow: none; }
.table-card { overflow: auto; flex: 1; min-height: 120px; }
.table-card .t th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.inv-body > .stat-row, .inv-body > .toolbar { flex: none; }
.fbar-inline .fbar-hint, .fbar-inline .fb-empty, .fbar-inline .muted { display: none; }
.stok-t td { padding: 8px 12px; }
.art { display: flex; align-items: center; gap: 10px; min-width: 0; }
.art-t { display: flex; flex-direction: column; min-width: 0; }
.art-t b { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { background: var(--surface-3); border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; flex: none; }
.thumb svg { width: 74%; height: auto; opacity: .85; }
.thumb.sm { width: 40px; height: 40px; }
.thumb.lg { width: 72px; height: 72px; border-radius: 14px; }
.thumb.xl { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
.thumb.xl svg { width: 50%; }
.stk { font-weight: 700; font-size: 14px; display: block; white-space: nowrap; }
.stk-sub { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; }
.stk-sub.warn { color: var(--warn); font-weight: 600; } .stk-sub.bad { color: var(--bad); font-weight: 600; }
.row-acts { display: flex; gap: 4px; justify-content: flex-end; }
.doc { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.doc-head { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.doc-head.out { grid-template-columns: 2fr 1fr; }
.doc-add { display: flex; gap: 8px; align-items: center; padding: 10px 16px; }
.doc-add .grow { flex: 1; min-width: 0; }
.doc-rows { flex: 1; min-height: 120px; overflow-y: auto; }
.doc-t td { padding: 7px 12px; }
.doc-t th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.doc-t tr.done td { background: var(--accent-soft); }
.doc-foot { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--border); }
.doc-sum { display: flex; gap: 22px; }
.doc-sum > div { display: flex; flex-direction: column; }
.doc-sum span { font-size: 12px; color: var(--muted); }
.doc-sum b { font-size: 16px; font-weight: 750; }
.num-sm { width: 70px; text-align: center; } .num-md { width: 124px; text-align: right; }
.op-start { max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.op-start h2 { font-size: 17px; font-weight: 750; }
.op-start p { margin: 4px 0 14px; font-size: 13.5px; line-height: 1.5; }
.op-start h4, .det h4 { font-size: 13px; font-weight: 700; margin: 16px 0 4px; }
.det { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.det-img { position: relative; display: block; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; margin-bottom: 8px; }
.det-img > span { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 5px; align-items: center; background: var(--surface); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.det-img > span svg.i { width: 14px; height: 14px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.kv span { color: var(--muted); } .kv b { font-weight: 600; text-align: right; }
.det-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.price-grid > div { display: flex; flex-direction: column; }
.price-grid span, .price-grid small { font-size: 12px; color: var(--muted); }
.price-grid b { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-pair { display: flex; gap: 12px; margin-top: 12px; }
.bc { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; text-align: center; background: #fff; }
.bc small { font-size: 11.5px; color: #4b5650; }
.bc-svg svg { width: 100%; max-width: 170px; height: 44px; }
/* form artikel */
.pf { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
.pf-photo { position: relative; width: 100%; aspect-ratio: 1; border: 1.5px dashed var(--border-strong); background: var(--surface-2); border-radius: 16px; cursor: pointer; display: grid; place-items: center; overflow: hidden; padding: 0; margin-bottom: 8px; }
.pf-photo svg:not(.i) { width: 60%; opacity: .6; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo > span { position: absolute; bottom: 8px; display: inline-flex; gap: 5px; align-items: center; background: var(--surface); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pf-photo > span svg.i { width: 14px; height: 14px; }
.pf-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-g { gap: 10px; margin: 0; }
.pf-h { font-size: 13px; font-weight: 700; margin-top: 6px; }
.pf-unit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-unit .seg button .muted { font-weight: 500; font-size: 12px; }
.qty-u { display: inline-flex; align-items: center; gap: 8px; }
.qty-u > span { color: var(--muted); font-size: 12.5px; }
.pf-hint { font-size: 12.5px; color: var(--muted); min-height: 17px; }
.pf-more summary { font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.pf-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pf-sku { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pf-sku .input { font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.pf-sku-i { color: var(--muted); min-height: 16px; }
.pf-sku-i .link { font-size: inherit; }
/* stiker */
.stk { } 
div.stk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; font-weight: 400; font-size: 14px; white-space: normal; }
.stk-l, .stk-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stk-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.stk-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.stk-row .grow { flex: 1; min-width: 0; }
.stk-row .t1 { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-row .t2 { font-size: 12px; color: var(--muted); }
.stk-preview { background: var(--surface-3); border-radius: 14px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 110px; align-items: center; }
.stk-preview .l { width: var(--lw); max-width: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.stk-preview svg { display: block; width: 100%; height: auto; }
.stk-preview.sheet > svg { width: min(100%, 230px); box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
.lbl-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font-size: 13px; }
.lbl-dims { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-top: 8px; }
.lbl-grid .lbl-dims { margin-top: 0; }
.stk .lbl-n, .stk select.lbl-paper { width: 64px; min-height: 34px; padding: 5px 8px; border-radius: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.stk select.lbl-paper { width: auto; text-align: left; }
.stk-acts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.rc-head .link { display: inline-flex; align-items: center; gap: 5px; }
.rc-head .link svg { width: 15px; height: 15px; }
.rc-prev { margin-top: 8px; background: var(--surface-3); border-radius: 14px; padding: 14px; max-height: 42vh; overflow: auto; }
.rc-prev .receipt { box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.k-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.k-dot.on { background: var(--accent); }
.sc-opt { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sc-opt + .sc-opt { margin-top: 12px; }
.sc-opt p { margin: 0; }
.sc-h { display: flex; align-items: center; gap: 8px; } .sc-h b { flex: 1; }
.sc-steps { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.sc-last { font-size: 14px; min-height: 22px; display: flex; align-items: center; gap: 6px; }

/* ---------- DASHBOARD & GRAFIK ---------- */
.dhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pnav { display: inline-flex; align-items: center; gap: 2px; }
.dlabel { font-weight: 650; font-size: 13.5px; padding: 0 4px; white-space: nowrap; }
.dpick { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; background: var(--surface); cursor: pointer; font-size: 13px; }
.dpick svg.i { width: 15px; height: 15px; color: var(--muted); }
.dpick input { border: 0; background: none; outline: 0; font-size: 13px; font-weight: 600; }
.dsep { color: var(--muted); padding: 0 2px; } .dlen { font-size: 12px; color: var(--muted); padding-left: 6px; }
.pchips-row { margin: -4px 0 12px; }
.pchips { display: inline-flex; gap: 2px; }
.pchips button { border: 0; background: none; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pchips button:hover { background: var(--surface-3); }
.pchips button.on { background: var(--accent-soft); color: var(--accent-strong); }
.alerts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; padding: 0 2px; }
.alert-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); background: none; border: 0; padding: 0; font-weight: 400; box-shadow: none; }
.alert-chip svg.i { width: 15px; height: 15px; color: var(--warn); }
.alert-chip b { font-weight: 700; color: var(--text); }
.alert-chip > span { color: var(--accent-strong); font-weight: 600; background: none; padding: 0; margin-left: 3px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.dash-grid > div { min-width: 0; display: flex; }
.dash-grid .panel { flex: 1; min-width: 0; }
.w4 { grid-column: span 4; } .w8 { grid-column: span 8; } .w12 { grid-column: span 12; }
.panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; min-height: 26px; }
.panel-h h3 { flex: 1; min-width: 110px; }
.panel-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { display: inline-flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i, .ttip i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--accent); }
.legend i.k2, .ttip i.k2 { border-top: 2px dashed var(--border-strong); }
.tchart { position: relative; width: 100%; touch-action: pan-y; }
.tchart svg { display: block; overflow: visible; }
.tchart .tg { stroke: var(--border); stroke-width: 1; }
.tchart .tg.b { stroke: var(--border-strong); }
.tchart .tt { font-size: 11.5px; fill: var(--muted); font-family: inherit; font-variant-numeric: tabular-nums; }
.tchart .tl { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tchart .tl2 { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tchart .ta { fill: var(--accent); opacity: .08; }
.tchart .tb { fill: var(--accent); }
.tchart .tprev { stroke: var(--muted); stroke-width: 1.5; opacity: .55; }
.tchart .tdot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tchart .tguide { stroke: var(--border-strong); stroke-width: 1; }
.tchart .hidden { display: none; }
.ttip { position: absolute; z-index: 5; pointer-events: none; background: var(--text); color: var(--surface); border-radius: 10px; padding: 7px 10px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-pop); transform: none; }
.ttip .tt-d { opacity: .72; margin-bottom: 2px; }
.ttip .tt-r { display: flex; gap: 6px; align-items: center; }
.ttip i { border-top-color: #4FBF80; }
.ttip i.k2 { border-top: 2px dashed rgba(255,255,255,.5); }
.ttip em { font-style: normal; font-weight: 600; margin-left: 6px; } .ttip em.up { color: #6FD39A; } .ttip em.down { color: #F4A39A; }
.stack-bar { display: flex; gap: 2px; height: 10px; margin-bottom: 12px; }
.stack-bar i { display: block; border-radius: 3px; min-width: 3px; }
.stack-bar i:first-child { border-radius: 5px 3px 3px 5px; } .stack-bar i:last-child { border-radius: 3px 5px 5px 3px; }
.pay-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; }
.pay-row > i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.pay-row > span { flex: 1; }
.pay-row > b { font-weight: 650; font-variant-numeric: tabular-nums; }
.pay-row > em { font-style: normal; color: var(--muted); width: 34px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rnk { margin-bottom: 9px; } .rnk:last-child { margin-bottom: 0; }
.rnk-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 3px; }
.rnk-t > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rnk-t > b { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rnk-bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.rnk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.low-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.low-row + .low-row { border-top: 1px solid var(--border); }
.low-q { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.low-q b { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.low-q span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hbars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.hb { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; align-items: center; gap: 3px; }
.hb i { display: block; width: 100%; max-width: 22px; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 0; }
.hb span { font-size: 10.5px; color: var(--muted); }
/* kelas lama yang masih dipakai */
.grid.wgrid { gap: 12px; }
.wfull { margin-bottom: 12px; }
.pbar { display: none; }
.stackbar { height: 10px; border-radius: 5px; gap: 2px; }
.sb0, .stackbar .sb0 { background: var(--cat0) !important; } .sb1, .stackbar .sb1 { background: var(--cat1) !important; } .sb2, .stackbar .sb2 { background: var(--cat2) !important; } .sb3, .stackbar .sb3 { background: var(--cat3) !important; }
.si-head { display: flex; align-items: center; gap: 12px; }
.si-name { font-size: 16px; font-weight: 750; }
.login-art { background: #1E2224; }
.login-art .wm { letter-spacing: .04em; font-weight: 800; }

/* ---------- layar sempit ---------- */
@media (max-width: 1180px) {
  .kasir { grid-template-columns: minmax(0, 1fr) 350px; }
  .k-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .w4 { grid-column: span 6; } .w8 { grid-column: span 12; }
  .sync-pill { display: none; }
}
@media (max-width: 860px) {
  .kasir { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 45%); }
  .k-cart { border-left: 0; border-top: 1px solid var(--border); }
  .doc-head { grid-template-columns: 1fr 1fr; }
  .det, .pf, div.stk { grid-template-columns: minmax(0, 1fr); }
  .det-l { display: none; }
  .w4, .w8 { grid-column: span 12; }
  .tb-title { display: none; }
  .demo-bar { display: none; }
  .stok-t th:nth-child(3), .stok-t td:nth-child(3), .stok-t th:nth-child(4), .stok-t td:nth-child(4), .stok-t th:nth-child(6), .stok-t td:nth-child(6), .stok-t th:nth-child(7), .stok-t td:nth-child(7) { display: none; }
  .table-card { overflow-x: auto; }
  .stat { flex-basis: 45%; } .stat + .stat::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- penyesuaian kerangka: penuh ke tepi ---------- */
.app { padding: 0; gap: 0; }
.main { height: 100vh; }
.sidebar { height: 100vh; top: 0; border-radius: 0; }
.content { padding: 14px 20px 28px; }
.app.fit .content { padding: 0; overflow: hidden; }
.app.fit .topbar { padding-bottom: 10px; }
.app.fit .k-grid { margin: 0; padding: 2px 2px 16px; }
.app.fit .k-cart { height: 100%; }
.hbar .track { height: 5px; background: var(--surface-3); border-radius: 3px; }
.hbar .fill { background: var(--accent); border-radius: 3px; }
.hbar { font-size: 13px; }
.set-head h2 { font-size: 17px; font-weight: 750; }
.set-nav { padding: 10px; }
.set-nav button { border-radius: 10px; padding: 7px 10px; font-size: 13.5px; }
.set-nav button.on { background: var(--surface-3); color: var(--text); font-weight: 650; }
.set-nav button.on svg.i { color: var(--accent); }
.set-ng { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 10px 10px 3px; }
.set-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; padding: 16px 18px; }
.set-sh h3 { font-size: 14px; font-weight: 700; }
.set-sh p { font-size: 12.5px; }
.set-row { padding: 9px 0; }
.set-l b { font-weight: 600; font-size: 13.5px; }
.lrow { padding: 9px 0; }
.t1 { font-weight: 600; }
.sheet-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.sheet-tools { padding: 10px 12px; }
.sheet-wrap { flex: 1; min-height: 0; border: 0; border-radius: 0; }
.sheet-bar { padding: 9px 12px; border-top: 1px solid var(--border); position: static; box-shadow: none; background: var(--surface); }

.sheet th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.sheet-tools .search { width: 230px !important; }

.login-art { background: #1E2224; }
.login-art .wm { color: #F4F4F2 !important; text-shadow: none !important; letter-spacing: .08em; font-size: 40px; margin-top: 16px; }
.login-art .tag { color: #C9A25E !important; letter-spacing: .18em; font-size: 12px; }
.login-art .tag i { background: #C99A4E; box-shadow: none; height: 1px; }
.login-art .bmark { width: 88px; height: 88px; }
.login-art .tag { background: none !important; padding: 0; border-radius: 0; }
@media (max-width: 700px) {
  .app.fit .content { overflow-y: auto; }
  .kasir { display: block; height: auto; overflow: visible; }
  .k-left { padding: 12px 12px 0; }
  .k-search .btn { display: none; }
  .k-filter { flex-wrap: wrap; }
  .k-cats { flex-basis: 100%; }
  .k-grid { overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pc-btns button { max-height: 56px; }
  .k-cart { position: sticky; bottom: 0; max-height: 52vh; border-left: 0; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(23,32,27,.08); }
  .content { padding: 12px 12px 24px; }
  .inv-page { padding: 12px; }
  .doc-head, .doc-head.out { grid-template-columns: 1fr; }
}

/* ---------- PANDUAN: bacaan, bukan tur ---------- */
.pg { display: grid; grid-template-columns: 188px minmax(0, 720px); gap: 48px; justify-content: center; padding: 18px 0 64px; }
.pg-toc { position: sticky; top: 8px; align-self: start; display: flex; flex-direction: column; gap: 1px; padding-top: 6px; }
.pg-toc-t { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 6px; }
.pg-toc a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 9px; border-left: 2px solid transparent; }
.pg-toc a:hover { color: var(--text); background: var(--surface-3); }
.pg-toc a.on { color: var(--text); font-weight: 650; background: var(--surface-3); }
.pg-body { min-width: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.pg-body b { color: var(--text); font-weight: 650; }
.pg-hero { padding: 6px 0 8px; }
.pg-hero h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; color: var(--text); max-width: 600px; }
.pg-hero p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; max-width: 620px; }
.pg-sec { padding-top: 44px; scroll-margin-top: 12px; }
.pg-sec h2 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; color: var(--text); }
.pg-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pg-lead { margin: 6px 0 16px; max-width: 640px; }
.pg-lead svg.i { width: 14px; height: 14px; vertical-align: -2px; color: var(--warn); }
.pg-note { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-top: 10px; color: var(--text); }

/* mulai dari mana */
.pg-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; }
.pg-steps li { counter-increment: s; position: relative; padding: 2px 0 18px 44px; }
.pg-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 750; font-size: 13px; display: grid; place-items: center; }
.pg-steps li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--border-strong); }
.pg-steps li:last-child::after { display: none; }
.pg-steps li:last-child { padding-bottom: 0; }
.pg-step-t { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.pg-step-t b { font-size: 15px; }
.pg-steps p { margin: 2px 0 0; }
.pg-where { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 2px 4px 2px 8px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-strong); cursor: pointer; white-space: nowrap; }
.pg-where svg.i { width: 14px; height: 14px; }
.pg-where:hover { background: var(--accent-soft); }
.pg-where.off { color: var(--muted); cursor: default; font-weight: 500; padding-right: 8px; }

/* tiga mode */
.pg-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pg-mode { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 3px; }
.pg-mode > svg.i { color: var(--accent); width: 20px; height: 20px; margin-bottom: 6px; }
.pg-mode b { font-size: 15px; }
.pg-mode p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1; }
.pg-mode > span { font-size: 12px; color: var(--muted); margin: 8px 0 10px; }
.pg-mode .btn { align-self: flex-start; }
.pg-mode.off { background: transparent; } .pg-mode.off > svg.i, .pg-mode.off b { color: var(--muted); }

/* satuan */
.pg-units { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 14px; }
.pg-pairs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.pg-pairs i { height: 30px; border-radius: 8px; background: var(--accent); }
.pg-pairs i.b { background: var(--accent); opacity: .45; }
.pg-pairs i:nth-child(6) { margin-right: 6px; }
.pg-pairs-l { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pg-pairs-all { text-align: center; font-size: 13px; font-weight: 650; color: var(--text); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-strong); }
.pg-facts { margin: 16px 0 0; display: flex; flex-direction: column; }
.pg-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.pg-facts > div:first-child { border-top: 0; }
.pg-facts dt { font-weight: 650; color: var(--text); }
.pg-facts dd { margin: 0; }
.pg-stickers { margin-top: 14px; }
.pg-stickers .stk-preview { justify-content: flex-start; background: var(--surface-3); }
.pg-stickers p { margin: 6px 0 0; }

/* fitur */
.pg-group { margin-top: 18px; }
.pg-group-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.pg-group-h svg.i { align-self: center; color: var(--accent); }
.pg-group-h h3 { font-size: 16px; font-weight: 750; color: var(--text); }
.pg-group-h span { font-size: 13px; color: var(--muted); }
.pg-list { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pg-list > div { display: grid; grid-template-columns: 138px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--border); }
.pg-list > div:first-child { border-top: 0; }
.pg-list dt { font-weight: 650; color: var(--text); font-size: 14px; }
.pg-list dd { margin: 0; font-size: 13.5px; line-height: 1.5; }
.pg-go { justify-self: end; }

/* alur */
.pg-flow { padding: 14px 0; border-top: 1px solid var(--border); }
.pg-flow:first-of-type { border-top: 0; padding-top: 2px; }
.pg-flow-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 9px; }
.pg-flow-h b { font-size: 15px; } .pg-flow-h span { font-size: 13px; color: var(--muted); }
.pg-flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.pg-flow li { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 550; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.pg-flow li + li { margin-left: 22px; position: relative; }
.pg-flow li + li::before { content: ""; position: absolute; left: -16px; top: 50%; width: 10px; height: 1px; background: var(--border-strong); }
.pg-flow li + li::after { content: ""; position: absolute; left: -9px; top: calc(50% - 3px); border: 3px solid transparent; border-left: 4px solid var(--border-strong); }
.pg-flow li.gate { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pg-flow li.gate svg.i { width: 13px; height: 13px; }

/* tanya */
.pg-faq { display: flex; flex-direction: column; margin-top: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pg-faq details { border-top: 1px solid var(--border); }
.pg-faq details:first-child { border-top: 0; }
.pg-faq summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 650; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary svg.i { width: 16px; height: 16px; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.pg-faq details[open] summary svg.i { transform: rotate(-90deg); }
.pg-faq summary:hover { background: var(--surface-2); }
.pg-faq p { margin: 0; padding: 0 16px 14px; max-width: 620px; }

/* pintasan */
.pg-keys { margin: 10px 0 0; display: flex; flex-direction: column; }
.pg-keys > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); align-items: center; }
.pg-keys > div:first-child { border-top: 0; }
.pg-keys dd { margin: 0; }
kbd { font: inherit; font-size: 12.5px; font-weight: 650; background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 7px; padding: 2px 8px; color: var(--text); white-space: nowrap; }

/* sistem */
.pg-arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; margin: 12px 0 4px; }
.pg-arch > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pg-arch > div b { font-size: 13.5px; } .pg-arch > div span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pg-arch > div.core { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pg-arch > div.later { border-style: dashed; background: transparent; }
.pg-arch > i { display: grid; place-items: center; color: var(--muted); }
.pg-end { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.pg-end svg.i { width: 14px; height: 14px; vertical-align: -2px; }

@media (max-width: 1100px) { .pg { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; } }
@media (max-width: 860px) {
  .pg { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .pg-toc { position: sticky; top: -12px; z-index: 5; flex-direction: row; overflow-x: auto; background: var(--bg); padding: 10px 0; scrollbar-width: none; margin: 0 -12px; padding-left: 12px; }
  .pg-toc::-webkit-scrollbar { display: none; }
  .pg-toc-t { display: none; } .pg-toc a { white-space: nowrap; }
  .pg-hero h1 { font-size: 24px; }
  .pg-modes { grid-template-columns: 1fr; }
  .pg-list > div { grid-template-columns: minmax(0, 1fr) auto; } .pg-list dd { grid-column: 1 / -1; grid-row: 2; }
  .pg-facts > div, .pg-keys > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pg-arch { grid-template-columns: 1fr; } .pg-arch > i { transform: rotate(90deg); }
}


/* ---------- penyegaran: dashboard ---------- */
.dhead { margin-bottom: 14px; }
.dhead .btn.icon { width: 34px; height: 34px; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.panel-foot b { color: var(--text); font-weight: 650; }
.todo { display: flex; flex-direction: column; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; margin: 0 -6px; border-radius: 12px; color: inherit; }
.todo-row + .todo-row { border-top: 1px solid var(--border); border-radius: 0; }
.todo-row:hover { background: var(--surface-2); border-radius: 12px; }
.todo-row > svg.i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.todo-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.todo-ic svg.i { width: 17px; height: 17px; }
.todo-ic.bad { background: var(--bad-soft); color: var(--bad); } .todo-ic.warn { background: var(--warn-soft); color: var(--warn); } .todo-ic.info { background: var(--info-soft); color: var(--info); }
.todo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.todo-t b { font-size: 13.5px; font-weight: 650; color: var(--text); }
.todo-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-ok { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; padding: 24px 8px; color: var(--muted); font-size: 13px; }
.todo-ok svg.i { width: 26px; height: 26px; color: var(--ok); margin-bottom: 4px; }
.todo-ok b { color: var(--text); font-size: 14px; }
.dash-grid .panel { display: flex; flex-direction: column; }
.dash-grid .panel .tchart { flex: 1; }

/* ---------- penyegaran: halaman umum ---------- */
.content h3 { letter-spacing: -.005em; }
.grid.g2 { gap: 12px; }
.shift-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel .lrow:first-child { padding-top: 0; }
.lrow + .lrow { border-top: 1px solid var(--border); }
.card.kpi { box-shadow: none; border: 1px solid var(--border); }
.card.kpi .k-icon { display: none; }
/* insight: peringkat tanpa bulatan warna */
.rank { border-bottom: 1px solid var(--border); padding: 9px 0; }
.rank:last-child { border-bottom: 0; }
.rank .rk { background: none !important; color: var(--muted) !important; font-size: 13px; font-weight: 650; width: 22px; }
.rank .rk.top { color: var(--accent-strong) !important; }
/* persetujuan & log */
.apv, .apv-card { box-shadow: none; }
.alog-ic, .apv-ic { background: var(--surface-3) !important; color: var(--text-2) !important; }
/* tabel: angka rata kanan, baris tenang */
.t td.num, .t th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
/* pengaturan */
.set-wrap { gap: 16px; }
.set-main { min-width: 0; }
.set-body { display: flex; flex-direction: column; gap: 12px; }
.set-c .input { max-width: 340px; }
.switch i { box-shadow: none; }
/* login */
.login-card { box-shadow: none; }
.role-pick button { box-shadow: none; border: 1px solid var(--border); border-radius: 14px; }
.role-pick button:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- server: demo, login, koneksi ---------- */
.demo-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 20px; background: var(--info-soft); color: var(--text-2); font-size: 12.5px; border-bottom: 1px solid var(--border); }
.demo-strip svg.i { width: 15px; height: 15px; color: var(--info); }
.demo-strip span { flex: 1; min-width: 200px; }
.demo-strip .link { font-size: 12.5px; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; font-size: 13px; color: var(--text-2); }
.demo-note svg.i { color: var(--info); margin-top: 1px; }
.boot-err { max-width: 420px; margin: 18vh auto; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 0 16px; }
.boot-err h2 { font-size: 20px; } .boot-err p { color: var(--muted); margin: 0 0 6px; }
.sync-pill.off { color: var(--bad); font-weight: 600; }
.app.fit .demo-strip { padding: 6px 16px; }
.chart-empty { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 13px; text-align: center; }
.chart-empty svg.i { width: 26px; height: 26px; color: var(--border-strong); margin-bottom: 4px; }
.chart-empty b { color: var(--text); font-size: 14px; }
.empty-box .row { justify-content: center; gap: 8px; }

/* nota: pilih model + pratinjau faktur A4 */
.note-seg { margin-bottom: 12px; }
#oSeg .note-seg { margin: 10px 0 0; }
.fk-prev { display: grid; gap: 10px; }
.fk-edit { border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; background: var(--surface); }
.fk-edit summary { cursor: pointer; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.fk-edit summary svg { width: 15px; height: 15px; }
.fk-edit p { margin: 8px 0 0; }
.fk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 10px; margin-top: 10px; }
.fk-grid label { display: grid; gap: 3px; }
.fk-grid label.wide { grid-column: 1 / -1; }
.fk-grid .input { padding: 7px 10px; }
.fk-prev svg { width: 100%; max-width: 640px; margin: 0 auto; height: auto; display: block; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* Hapus & reset data (Pengaturan) */
.rs-opt { cursor: pointer; }
.rs-opt + .rs-opt { margin-top: 10px; }
.rs-opt.on { border-color: var(--bad); }
.rs-opt input[type=date] { width: auto; }
.rs-sum { border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.rs-steps { display: grid; gap: 12px; margin-top: 14px; justify-items: start; }
.rs-f { display: grid; gap: 4px; width: 100%; }

/* hapus master data yang masih dipakai: tampak nonaktif */
.kc-del:disabled { opacity: .3; cursor: not-allowed; }
