/* Rasa Muhada — warna & huruf sesuai Pedoman Identitas Visual SMK Muhammadiyah Todanan 2026/2027.
   Biru Tua #1B2E6E (utama), Biru Terang #1A6FE8, Oranye #F28C00 (aksen), Abu Biru #F0F4FA.
   Montserrat untuk judul, Open Sans untuk isi. */
:root {
  color-scheme: light;
  --navy: #1B2E6E; --blue: #1A6FE8; --orange: #F28C00;
  --bg: #F0F4FA; --surface: #ffffff; --surface-2: #e8eef8; --line: #d8e0ee;
  --ink: #1A1A1A; --ink-2: #4A5568; --ink-3: #6b7588;
  --accent: #1B2E6E; --accent-ink: #ffffff; --accent-soft: #e3eaf8;
  --link: #1A6FE8; --cta: #F28C00; --cta-ink: #1B2E6E;
  --bar: #1A6FE8; --track: #e3e9f3;
  --good: #137a3a; --good-bg: #e3f4e8;
  --warn: #8a5a00; --warn-bg: #fdf1d6;
  --bad: #C0392B;  --bad-bg: #fbe5e3;
  --info: #1A5BC0; --info-bg: #e2edfb;
  --mute-bg: #e9edf3;
  --shadow: 0 1px 2px rgba(27,46,110,.06), 0 4px 14px rgba(27,46,110,.06);
  --r: 14px;
  --font-h: "Montserrat", system-ui, sans-serif;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1426; --surface: #161e35; --surface-2: #1f2944; --line: #2b3656;
    --ink: #f1f4fa; --ink-2: #c3cbdc; --ink-3: #8e98b0;
    --accent: #5b8ff0; --accent-ink: #0b1430; --accent-soft: #1c2950;
    --link: #7aa7f5; --cta: #F28C00; --cta-ink: #1B2E6E;
    --bar: #4f8af0; --track: #253050;
    --good: #6fd394; --good-bg: #16301f; --warn: #f0c060; --warn-bg: #33270d;
    --bad: #ff8a80; --bad-bg: #3a1714; --info: #86b6ef; --info-bg: #15263c; --mute-bg: #222c46;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1426; --surface: #161e35; --surface-2: #1f2944; --line: #2b3656;
  --ink: #f1f4fa; --ink-2: #c3cbdc; --ink-3: #8e98b0;
  --accent: #5b8ff0; --accent-ink: #0b1430; --accent-soft: #1c2950;
  --link: #7aa7f5; --cta: #F28C00; --cta-ink: #1B2E6E;
  --bar: #4f8af0; --track: #253050;
  --good: #6fd394; --good-bg: #16301f; --warn: #f0c060; --warn-bg: #33270d;
  --bad: #ff8a80; --bad-bg: #3a1714; --info: #86b6ef; --info-bg: #15263c; --mute-bg: #222c46;
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-family: var(--font-h); }
h1 { font-size: 19px; font-weight: 800; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.stack > * + * { margin-top: 12px; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- shell panel */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; }
.top-row { display: flex; align-items: center; gap: 10px; max-width: 960px; margin: 0 auto; }
.top h1 { flex: 1; min-width: 0; font-size: 18px; }
.top .sub { font: 400 12px var(--font); opacity: .8; margin-top: 1px; }
.top .back, .top .icon { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1; }
.top .icon svg { width: 20px; height: 20px; }
.toolbar { max-width: 960px; margin: 10px auto 0; display: flex; gap: 8px; }
.toolbar select, .toolbar input { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 8px 10px; min-width: 0; flex: 1; }
.toolbar select option { color: #1A1A1A; }
.toolbar input::placeholder { color: rgba(255,255,255,.7); }
main { max-width: 992px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; max-width: 168px; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11.5px; color: var(--ink-3); text-decoration: none; font-weight: 600; }
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: var(--accent); }
.nav a .dot { position: absolute; }

/* ---------- komponen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .card + .sec, .sec + .card { margin-top: 12px; }
.card h2 + *, .card h3 + * { margin-top: 10px; }
.sec { margin: 22px 2px 10px; display: flex; align-items: center; gap: 8px; }
.sec h2 { font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 11px; padding: 9px 14px; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn svg { width: 18px; height: 18px; }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.cta { background: var(--cta); color: var(--cta-ink); border-color: transparent; font-family: var(--font-h); font-weight: 800; }
.btn.wa { background: #1fa855; color: #fff; border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--link); padding-inline: 8px; }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--mute-bg); color: var(--ink-2); white-space: nowrap; }
.b-good { background: var(--good-bg); color: var(--good); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-info { background: var(--info-bg); color: var(--info); }
.note { background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; }

/* form */
.f { display: grid; gap: 12px; }
.f label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f label > input, .f label > select, .f label > textarea { display: block; margin-top: 5px; }
.f .two { align-items: end; }
.f .hint { font-weight: 400; color: var(--ink-3); }
.f input, .f select, .f textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.f textarea { min-height: 70px; resize: vertical; }
.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.f .check input { width: 20px; height: 20px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 90px; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 6px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }

/* chips */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .n { opacity: .7; margin-left: 4px; }

/* list */
.list { display: grid; gap: 8px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; text-align: left; width: 100%; }
.item .t { font-weight: 700; }
.item .m { font-size: 13px; color: var(--ink-3); }
.item .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }

/* tile & bars */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.tile .v { font: 800 22px var(--font-h); color: var(--ink); letter-spacing: -.01em; }
.tile .l { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.tile .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tile.hero { background: var(--navy); border-color: var(--navy); }
.tile.hero .v, .tile.hero .l { color: #fff; }
.tile.hero .d { color: #c9d4f0; }
/* Dashboard */
.aksi { display: grid; gap: 8px; margin-bottom: 14px; }
.aksi-i { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 11px 14px; font: 600 13.5px var(--font); text-align: left; cursor: pointer; background: var(--info-bg); color: var(--info); }
.aksi-i.warn { background: var(--warn-bg); color: var(--warn); }
.aksi-i .ic { font-size: 16px; }
.aksi-i > span:last-child { font-size: 18px; line-height: 1; }
.d-hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.d-sesi { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.d-judul { font: 700 15px var(--font-h); }
.d-meta { font-size: 12.5px; color: #c9d4f0; margin-top: 2px; }
.d-omzet { padding: 16px 0 14px; }
.d-lbl { font-size: 12.5px; color: #c9d4f0; }
.d-big { font: 800 32px/1.15 var(--font-h); letter-spacing: -.02em; margin: 2px 0; }
.d-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-split > div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.d-split span { font-size: 12px; color: #c9d4f0; }
.d-split small { font-size: 12px; color: #c9d4f0; text-align: right; }
.d-split b { grid-column: 1 / -1; font: 700 16px var(--font-h); }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin: 12px 0; }
.d-stats .st { padding: 14px 12px; min-width: 0; }
.d-stats .st + .st { border-left: 1px solid var(--line); }
.d-stats .l { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.d-stats .v { font: 800 17px var(--font-h); color: var(--ink); margin: 3px 0 1px; overflow-wrap: anywhere; }
.d-stats .d { font-size: 11.5px; color: var(--ink-3); }
.d-stats .warn .v { color: var(--warn); }
.d-stats .bad .v { color: var(--bad); }
.d-grid { display: grid; gap: 12px; align-items: start; }
.d-grid .card + .card { margin-top: 0; }
@media (min-width: 760px) {
  .d-grid.two { grid-template-columns: 1fr 1fr; }
  .d-hero { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 20px 22px; }
  .d-sesi { grid-column: 1 / -1; }
  .d-omzet { padding-bottom: 0; }
  .d-split { align-self: end; }
  .d-big { font-size: 36px; }
  .d-stats .st { padding: 16px 18px; }
  .d-stats .v { font-size: 21px; }
}
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank li { display: flex; gap: 10px; align-items: flex-start; }
.rank .no { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font: 700 12px/24px var(--font-h); text-align: center; }
.rank li:first-child .no { background: var(--cta); color: var(--cta-ink); }
.rank .row-s { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.rank .row-s b { font-weight: 600; }
.rank .row-s .num { flex: none; }
.rank .trk { height: 6px; background: var(--track); border-radius: 0 4px 4px 0; margin-top: 6px; }
.rank .trk i { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar { display: grid; gap: 10px; }
.hbar .r { display: grid; gap: 4px; }
.hbar .lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hbar .lbl b { font-weight: 600; color: var(--ink); }
.hbar .lbl span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hbar .trk { height: 10px; background: var(--track); border-radius: 0 4px 4px 0; }
.hbar .trk i { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }

/* tabel */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }

/* stepper */
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.step button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 19px; font-weight: 700; color: var(--accent); cursor: pointer; }
.step button:disabled { color: var(--ink-3); opacity: .5; }
.step b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }

/* dialog & sheet */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,18,40,.5); }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dlg-h h2 { flex: 1; }
.dlg-x { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 9px; font-size: 20px; cursor: pointer; color: var(--ink-2); }
.dlg-b { padding: 16px; }
.dlg-f { padding: 12px 16px 16px; display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  dialog.sheet, dialog#dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; max-height: 92dvh; }
}

/* toast & busy */
#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #1A1A1A; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--bad); }
#busy { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10,18,40,.18); }
.busy-box { background: var(--surface); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-weight: 600; }
.spin { width: 22px; height: 22px; border: 3px solid var(--track); border-top-color: var(--blue); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.splash { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); }

/* login */
.login { max-width: 380px; margin: 0 auto; padding: 12vh 20px 40px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font: 800 22px/1 var(--font-h); color: var(--navy); letter-spacing: -.01em; }
.brand-name i { font-style: italic; color: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-name { color: #fff; } }

/* ===================== TOKO ===================== */
.t-top { background: var(--navy); color: #fff; padding: calc(env(safe-area-inset-top) + 14px) 16px 18px; }
.t-top .in { max-width: 960px; margin: 0 auto; }
.t-top .brand-name { color: #fff; }
.t-top .brand-name i { color: var(--orange); }
.t-top .tag { font-size: 12.5px; color: #c9d4f0; margin-top: 3px; }
.t-top .cek { white-space: nowrap; flex: none; margin-left: auto; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 13px; text-decoration: none; }
.po-hero { margin-top: 16px; background: linear-gradient(135deg, #22398a, #1B2E6E 60%); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; position: relative; overflow: hidden; }
.po-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; background: var(--orange); transform: rotate(45deg); opacity: .9; border-radius: 10px; }
.po-hero > * { position: relative; z-index: 1; }
.po-hero .k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.po-hero h2 { font-size: 20px; color: #fff; margin: 4px 0 8px; max-width: 80%; }
.po-hero .meta { display: grid; gap: 3px; font-size: 13.5px; color: #dbe3f7; }
.po-hero .cd { display: inline-block; margin-top: 10px; background: rgba(255,255,255,.12); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 700; color: #fff; }
.grid-p { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .grid-p { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-p { grid-template-columns: repeat(4, 1fr); } }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pc .ph { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; display: grid; place-items: center; overflow: hidden; }
.pc .ph img { width: 100%; height: 100%; object-fit: cover; }
.pc .ph .ini { font: 800 34px var(--font-h); color: var(--navy); opacity: .35; }
.pc .ph .sisa { position: absolute; left: 8px; top: 8px; }
.pc .bd { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pc .nm { font: 700 14.5px/1.3 var(--font-h); }
.pc .kl { font-size: 12px; color: var(--ink-3); }
.pc .hg { font: 800 15px var(--font-h); color: var(--navy); margin-top: auto; padding-top: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pc .hg, :root:not([data-theme="light"]) .pc .ph .ini { color: #9fbdf7; } }
.pc .act { margin-top: 8px; }
.pc .add { width: 100%; border: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 8px; cursor: pointer; }
.pc .step { width: 100%; justify-content: space-between; }
.pc.habis { opacity: .6; }
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 560px; margin: 0 auto; background: var(--cta); color: var(--cta-ink); border: 0; border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; font: 800 15px var(--font-h); box-shadow: 0 8px 24px rgba(242,140,0,.35); cursor: pointer; width: calc(100% - 24px); }
.cartbar .n { background: var(--navy); color: #fff; border-radius: 99px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; padding: 0 7px; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font: 800 18px var(--font-h); padding: 10px 0 2px; }
.agenda { display: grid; gap: 8px; }
.agenda .ag { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.agenda .tgl { width: 50px; flex: none; text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); padding: 5px 0; line-height: 1.1; }
.agenda .tgl b { display: block; font: 800 20px var(--font-h); }
.agenda .tgl span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.timeline { display: grid; gap: 0; margin: 6px 0; }
.timeline .s { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 14px; position: relative; }
.timeline .s::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline .s:last-child::before { display: none; }
.timeline .s i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); flex: none; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
.timeline .s.on i { background: var(--good); border-color: var(--good); }
.timeline .s.on b { color: var(--ink); }
.timeline .s b { color: var(--ink-3); font-weight: 600; }
.kode-big { font: 800 26px var(--font-h); letter-spacing: .02em; color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kode-big { color: #9fbdf7; } }
.qris-img { width: 100%; max-width: 280px; display: block; margin: 8px auto; border-radius: 10px; background: #fff; }
.foot { text-align: center; padding: 30px 16px 110px; color: var(--ink-3); font-size: 13px; }
.foot a { color: var(--ink-2); }

/* ===================== KASIR ===================== */
.pos { display: grid; gap: 12px; }
@media (min-width: 860px) { .pos { grid-template-columns: 1fr 340px; align-items: start; } .pos .pos-cart { position: sticky; top: calc(var(--hdr, 60px) + 12px); } }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pos-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; display: grid; gap: 3px; min-height: 92px; position: relative; }
.pos-btn b { font: 700 14px/1.25 var(--font-h); }
.pos-btn .h { font: 800 15px var(--font-h); color: var(--accent); margin-top: auto; }
.pos-btn .s { font-size: 11.5px; color: var(--ink-3); }
.pos-btn .q { position: absolute; right: 8px; top: 8px; background: var(--cta); color: var(--cta-ink); font-weight: 800; border-radius: 99px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; padding: 0 6px; }
.pos-btn:disabled { opacity: .45; cursor: not-allowed; }
.pos-btn:active:not(:disabled) { transform: scale(.98); }
.kembali { font: 800 22px var(--font-h); color: var(--good); }

/* cetak */
@media print { .nav, .top, .cartbar, #toast { display: none !important; } main { padding: 0; } }
