/* Teslah Makan — gaya "Bersih" (diambil dari Borsin HQ v73: menu gelap, isi terang, kartu putih, tombol hitam, Inter)
   + aksen oranye arang khas angkringan. Semua warna lewat token. */
:root {
  --bg: #f1f1f1; --surface: #ffffff; --surface-2: #f7f7f7; --surface-3: #ebebeb;
  --ink: #303030; --ink-soft: #616161; --ink-faint: #8a8a8a;
  --border: #e3e3e3; --border-soft: #ebebeb; --border-strong: #cccccc;
  --accent: #E8833A; --accent-soft: #fdf0e6; --accent-ink: #8a4410;
  --primary: #303030; --primary-hover: #1a1a1a; --primary-ink: #ffffff;
  --danger: #b42318; --danger-soft: #fee9e8; --warning: #8a5a00; --warning-soft: #fff1e3;
  --success: #0c6b3e; --success-soft: #e0f8e8; --info: #00527c; --info-soft: #eaf4ff;
  --wa: #128c4b;
  --nav-bg: #1a1a1a; --nav-ink: #f3f3f3; --nav-ink-soft: #b5b5b5; --nav-active: #303030; --nav-border: #2c2c2c;
  --shadow: 0 1px 0 rgba(26,26,26,.07), 0 0 0 1px rgba(26,26,26,.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  --ring: 0 0 0 2px #fff, 0 0 0 4px #005bd3;
  --radius: 12px; --radius-sm: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --c1: #2a6fdb; --c2: #E8833A; --c3: #1f9d6b; --c4: #8e5bd1; --c5: #d64a6b; --c6: #c59b16; --c7: #4aa3b5; --c8: #7a7a7a;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #1c1c1c; --surface-2: #232323; --surface-3: #2c2c2c;
  --ink: #ececec; --ink-soft: #b4b4b4; --ink-faint: #8a8a8a;
  --border: #333; --border-soft: #2a2a2a; --border-strong: #4a4a4a;
  --accent: #f0954f; --accent-soft: #3a2616; --accent-ink: #ffcfa8;
  --primary: #ececec; --primary-hover: #ffffff; --primary-ink: #141414;
  --danger: #ff8a80; --danger-soft: #3a1d1b; --warning: #ffc861; --warning-soft: #3a2d14; --success: #7fd6a4; --success-soft: #16301f; --info: #8cc4ff; --info-soft: #14283b;
  --nav-bg: #0b0b0b; --nav-active: #262626; --nav-border: #222;
  --shadow: 0 0 0 1px rgba(255,255,255,.06); --shadow-lg: 0 20px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#root { min-height: 100%; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-faint); font-weight: 600; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 16px; font-weight: 700; } h3 { font-size: 14.5px; font-weight: 700; }
p { margin: 0; }
a { color: var(--info); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; min-height: 42px; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--ring); border-color: transparent; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); }
input[type=color] { padding: 2px; width: 48px; }
::placeholder { color: var(--ink-faint); }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-soft); } .faint { color: var(--ink-faint); } .tiny { font-size: 12.5px; color: var(--ink-faint); } .small { font-size: 13px; }
.pos { color: var(--success); } .neg { color: var(--danger); } .warn { color: var(--warning); }
.b { font-weight: 700; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap4 { gap: 4px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: 0 0 236px; background: var(--nav-bg); color: var(--nav-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px; gap: 4px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: #000; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 15px; line-height: 1.1; }
.brand-sub { font-size: 11.5px; color: var(--nav-ink-soft); }
.nav-group-label { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8d8d8d; font-weight: 700; padding: 12px 10px 4px; }
.nav-group-label:hover { color: #bbb; }
.nav-caret { font-size: 10px; letter-spacing: 0; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--nav-ink-soft); padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--nav-ink); }
.nav-item.active { background: var(--nav-active); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .9; }
.nav-item .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--nav-border); padding: 10px 6px 2px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--nav-ink-soft); }
.sidebar-foot .who { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; min-height: 60px; }
.topbar h1 { font-size: 19px; }
.topbar .sub { font-size: 12.5px; color: var(--ink-faint); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.page { padding: 18px 22px 90px; display: flex; flex-direction: column; gap: 16px; max-width: 1400px; width: 100%; }
.page.full { max-width: none; padding: 0; }
.menu-btn { display: none; }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); white-space: nowrap; }
.sync-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.sync-pill.ok i { background: #1f9d6b; } .sync-pill.sync i { background: #2a6fdb; animation: pulse 1s infinite; } .sync-pill.offline i, .sync-pill.lokal i { background: #c59b16; } .sync-pill.error i { background: #d64a6b; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- komponen */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .sub { font-size: 12.5px; color: var(--ink-faint); }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 900px) { .span2 { grid-column: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 650; font-size: 14px; min-height: 40px; box-shadow: 0 1px 0 rgba(0,0,0,.05); transition: background .12s, transform .06s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: inset 0 -1px 0 #000; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); color: #fff; }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.wa { color: var(--wa); border-color: color-mix(in srgb, var(--wa) 40%, transparent); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 18px; min-height: 52px; font-size: 16px; border-radius: 12px; }
.btn.xl { padding: 16px 20px; min-height: 64px; font-size: 18px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 40px; } .btn.sm.icon { width: 32px; }
.btn svg { width: 17px; height: 17px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--ink-soft); white-space: nowrap; }
.badge.success { background: var(--success-soft); color: var(--success); } .badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.warning { background: var(--warning-soft); color: var(--warning); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); } .badge.dark { background: var(--primary); color: var(--primary-ink); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: var(--ink-soft); }
.field .hint { font-size: 12px; color: var(--ink-faint); }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fields.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.input-rp { position: relative; } .input-rp span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-weight: 600; pointer-events: none; } .input-rp input { padding-left: 34px; font-variant-numeric: tabular-nums; }
.input-suffix { position: relative; } .input-suffix span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 13px; pointer-events: none; } .input-suffix input { padding-right: 46px; }
.search { position: relative; } .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--ink-faint); } .search input { padding-left: 36px; }

.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 650; font-size: 13.5px; color: var(--ink-soft); min-height: 34px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 650; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); padding: 6px 12px; border-radius: 99px; font-weight: 600; font-size: 13.5px; min-height: 36px; }
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.stat-value { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.stat-sub { font-size: 12.5px; color: var(--ink-faint); }
.stat.hero { background: var(--primary); color: var(--primary-ink); } .stat.hero .stat-label, .stat.hero .stat-sub { color: color-mix(in srgb, var(--primary-ink) 70%, transparent); }
.delta { font-size: 12px; font-weight: 700; } .delta.up { color: var(--success); } .delta.down { color: var(--danger); }
.stat.hero .delta.up { color: #7fe0a8; } .stat.hero .delta.down { color: #ff9c92; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--ink-soft); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t tfoot td { font-weight: 750; background: var(--surface-2); border-top: 1px solid var(--border); }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); min-width: 0; }
.list-row:last-child { border-bottom: 0; }
.list-row.click { cursor: pointer; } .list-row.click:hover { background: var(--surface-2); }
.empty { text-align: center; color: var(--ink-faint); padding: 34px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .em { font-size: 34px; }
.note { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.note.warn { background: var(--warning-soft); color: var(--warning); } .note.danger { background: var(--danger-soft); color: var(--danger); } .note.ok { background: var(--success-soft); color: var(--success); }
.divider { height: 1px; background: var(--border); margin: 6px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; } .kv > :nth-child(odd) { color: var(--ink-soft); } .kv > :nth-child(even) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .14s; }
.modal.wide { max-width: 860px; } .modal.xwide { max-width: 1100px; } .modal.narrow { max-width: 400px; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1a1a1a; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .15s; pointer-events: auto; max-width: 90vw; }
.toast.err { background: #b42318; } .toast.ok { background: #0c6b3e; }

/* ---------- PIN / layar kunci */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 20% -10%, rgba(232,131,58,.18), transparent 60%), var(--nav-bg); color: #fff; }
.lock-card { width: 100%; max-width: 860px; display: grid; grid-template-columns: 1fr 340px; gap: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 22px; }
.lock-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; align-content: start; max-height: 70vh; overflow-y: auto; }
.person { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; border-radius: 14px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; text-align: center; }
.person.on { border-color: var(--accent); background: rgba(232,131,58,.18); }
.person .avatar { width: 46px; height: 46px; font-size: 17px; }
.person .tiny { color: #aaa; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 10px 0 14px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.pin-dots i.f { background: #fff; border-color: #fff; }
.pin-dots.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button { min-height: 62px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; font-size: 24px; font-weight: 600; }
.numpad button:active { background: rgba(255,255,255,.18); }
.numpad.light button { background: var(--surface-2); color: var(--ink); border-color: var(--border); font-size: 22px; min-height: 56px; }
.numpad.light button:active { background: var(--surface-3); }
@media (max-width: 760px) { .lock-card { grid-template-columns: 1fr; } }

/* ---------- MODE KASIR (port v74/v75 Borsin HQ: produk cepat + panel bayar 2 langkah) */
.kasir-pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - 60px); }
.pos-left { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--border); }
.pos-bar { display: flex; gap: 8px; padding: 10px 14px; align-items: center; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.pos-cats { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border-soft); background: var(--bg); }
.pos-cats .chip { flex: 0 0 auto; }
.tiles { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; align-content: start; }
.tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 7px; text-align: left; gap: 5px; min-height: 150px; box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: transform .07s; user-select: none; }
.tile:active { transform: scale(.96); }
.tile.pop { animation: tpop .25s; }
@keyframes tpop { 50% { transform: scale(.94); box-shadow: 0 0 0 3px var(--accent); } }
.tile-img { aspect-ratio: 4/3; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; font-size: 34px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-price { font-size: 13px; font-weight: 650; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: auto; }
.tile-qty { position: absolute; top: 4px; right: 4px; background: var(--accent); color: #fff; min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 13px; padding: 0 7px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.tile-stock { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.tile.habis { opacity: .45; }
.tile.habis .tile-stock { background: var(--danger); }
.pos-right { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.cart-head { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.cart-items { flex: 1 1 auto; overflow-y: auto; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.cart-row .nm { font-weight: 700; font-size: 14px; line-height: 1.25; }
.cart-row .mods { font-size: 12.5px; color: var(--ink-soft); }
.cart-row .note-i { font-size: 12px; color: var(--accent-ink); font-style: italic; }
.qty { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 2px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface); font-size: 18px; font-weight: 700; box-shadow: var(--shadow); }
.qty b { min-width: 28px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.cart-rp { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.cart-foot { border-top: 1px solid var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.sumline { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.sumline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; }
.total-line .t { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 62px; border-radius: 14px; border: 0; background: var(--primary); color: var(--primary-ink); font-size: 19px; font-weight: 800; padding: 0 18px; box-shadow: inset 0 -2px 0 #000; }
.pay-btn span { font-size: 13px; font-weight: 600; opacity: .75; }
.pay-btn[disabled] { background: var(--surface-3); color: var(--ink-faint); box-shadow: none; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.methods button { min-height: 58px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.methods button .ic { font-size: 20px; }
.methods button.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.cash-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cash-quick button { min-height: 48px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.cash-quick button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.change-box { border-radius: 12px; padding: 12px 14px; background: var(--success-soft); color: var(--success); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.change-box b { font-size: 24px; font-variant-numeric: tabular-nums; }
.change-box.kurang { background: var(--danger-soft); color: var(--danger); }
.qris-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: 12px; background: #fff; color: #222; }
.qris-box img, .qris-box canvas { width: 230px; max-width: 100%; height: auto; image-rendering: pixelated; }
.qris-full { position: fixed; inset: 0; background: #fff; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #111; padding: 20px; }
.qris-full img, .qris-full canvas { width: min(78vh, 90vw); height: auto; image-rendering: pixelated; }
.qris-full .amt { font-size: 40px; font-weight: 800; }
.open-bills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ob { flex: 0 0 auto; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 5px 10px; font-size: 12.5px; font-weight: 650; text-align: left; line-height: 1.2; }
.ob.on { border-color: var(--accent); background: var(--accent-soft); }
.ob small { display: block; color: var(--ink-faint); font-weight: 600; }
.mod-group { display: flex; flex-direction: column; gap: 8px; }
.mod-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mod-opt { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 10px; text-align: left; font-weight: 650; font-size: 14px; min-height: 52px; display: flex; flex-direction: column; justify-content: center; }
.mod-opt small { color: var(--ink-faint); font-weight: 600; }
.mod-opt.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); } .mod-opt.on small { color: inherit; opacity: .75; }
.cartbar { display: none; }
@media (max-width: 1100px) { .kasir-pos { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 900px) { .kasir-pos { grid-template-columns: minmax(0, 1fr) 320px; } .tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } }
@media (max-width: 700px) {
  .kasir-pos { grid-template-columns: 1fr; height: auto; }
  .pos-left { border-right: 0; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); padding-bottom: 110px; }
  .pos-right { position: fixed; inset: 0; z-index: 60; transform: translateY(100%); transition: transform .2s; }
  .pos-right.open { transform: none; }
  .cartbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; }
}

/* ---------- grafik */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-size: 11px; fill: var(--ink-faint); font-family: var(--font); }
.chart .grid-l { stroke: var(--border-soft); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.heat { display: grid; gap: 3px; font-size: 11px; }
.heat .c { border-radius: 4px; min-height: 22px; display: grid; place-items: center; font-weight: 700; font-size: 10.5px; color: var(--ink); }
.heat .h { color: var(--ink-faint); text-align: center; font-weight: 600; }
.bars-h { display: flex; flex-direction: column; gap: 8px; }
.bar-h { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-h .track { height: 12px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar-h .track i { display: block; height: 100%; border-radius: 99px; background: var(--c1); }

/* ---------- struk */
.struk-prev { background: #e9e6df; border-radius: 12px; padding: 12px; display: flex; justify-content: center; }
.struk-prev canvas, .struk-prev img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* ---------- responsif */
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 80; }
  .topbar { padding: 10px 14px; }
  .page { padding: 14px 14px 90px; }
}
@media (max-width: 560px) {
  .fields.two { grid-template-columns: 1fr; }
  .stat-value { font-size: 20px; }
  .modal { max-height: 100vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .overlay { padding: 0; align-items: flex-end; }
  .topbar h1 { font-size: 17px; }
}
@media print { .sidebar, .topbar, .no-print { display: none !important; } .page { padding: 0; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ddd; } }

/* tombol versi baru */
.update-pill { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; max-width: calc(100vw - 32px); }
@media (max-width: 700px) { .hide-sm { display: none !important; } }
.kamera-box { width: 100%; aspect-ratio: 3 / 4; max-height: 60vh; background: #111; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.kamera-box video, .kamera-box img { width: 100%; height: 100%; object-fit: cover; }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; }

/* src/pages/aset/style.css */
/* Aset & Inventaris (prefix as-) */
.as-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.as-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.as-filter .search { flex: 1 1 220px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.as-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; cursor: pointer; min-width: 0; }
.as-card:hover { background: var(--surface-2); }
.as-card.off { opacity: .6; }
.as-ic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 28px; }
.as-ic.sm { flex-basis: 40px; width: 40px; height: 40px; font-size: 20px; }
.as-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.as-bar { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.as-bar i { display: block; height: 100%; background: var(--accent); }
.as-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.as-bayar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.as-det { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.as-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.as-photo.ph { background: var(--surface-2); display: grid; place-items: center; font-size: 64px; }
.as-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.as-acts .btn { justify-content: center; }
.as-log { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.as-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 1000px) { .as-split { grid-template-columns: 1fr; } .as-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .as-form, .as-det, .as-2 { grid-template-columns: 1fr; }
  .as-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .as-stats .stat { padding: 12px; }
  .as-stats .stat-value { font-size: 18px; }
  .as-grid { grid-template-columns: 1fr; }
  .as-acts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .as-att { flex-wrap: wrap; } .as-att > .col { flex-basis: 100%; align-items: flex-start !important; padding-left: 52px; } }

/* src/pages/bisnis/style.css */
/* Bisnis & Mitra (prefix bz-), portal mitra (prefix pm-) */
.bz-prog { position: relative; height: 10px; background: var(--surface-3); border-radius: 99px; overflow: visible; }
.bz-prog > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; max-width: 100%; }
.bz-prog.ok > i { background: var(--success); } .bz-prog.bad > i { background: var(--danger); }
.bz-prog.tall { height: 16px; }
.bz-prog > b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); }
.bz-rumus { font-size: 13px; color: var(--ink-soft); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.55; }
.bz-h { font-size: 20px; font-weight: 750; margin: 2px 0 4px; letter-spacing: -.01em; line-height: 1.25; }
.bz-hero { border-left: 5px solid var(--accent); }
.bz-hero.ok { border-left-color: var(--success); } .bz-hero.warn { border-left-color: var(--warning); }
.bz-hero-top { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.bz-hero-num { text-align: right; } .bz-hero-num b { font-size: 24px; font-variant-numeric: tabular-nums; display: block; }
.tiny.up { text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.bz-big { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; min-width: 0; }
.bz-big .l { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.bz-big .v { font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bz-big .s { font-size: 12px; color: var(--ink-faint); }
.bz-big.bad .v { color: var(--danger); } .bz-big.ok .v { color: var(--success); }
.bz-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.bz-kls { display: flex; flex-direction: column; gap: 6px; }
.bz-kls-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.bz-kls-row .seg button { min-height: 32px; padding: 4px 10px; }
.bz-tg { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.bz-tg:last-child { border-bottom: 0; }
.bz-tg-form { display: flex; flex-direction: column; gap: 10px; }
.bz-tg-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.4fr; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.bz-tg-row label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bz-proj { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 14px; align-items: start; }
.bz-sl { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.bz-sl input[type=range] { width: 100%; min-height: 32px; accent-color: var(--accent); }
.bz-sl-v { font-weight: 750; font-variant-numeric: tabular-nums; }
.bz-pb-head .bz-h { font-size: 22px; }
.bz-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bz-col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 1px solid var(--border-soft); }
.bz-col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.bz-col-empty { padding: 8px 4px; }
.bz-rc { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bz-rc.batal { opacity: .6; } .bz-rc-t { overflow-wrap: anywhere; }
.bz-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bz-list { display: flex; flex-direction: column; }
.bz-li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--border-soft); background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.bz-li:hover { background: var(--surface-2); }
.bz-dv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.bz-dv-steps > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bz-dv-steps b { font-size: 20px; font-variant-numeric: tabular-nums; }
.bz-dv-steps input[type=range] { width: 100%; accent-color: var(--accent); }
.bz-dok { display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; cursor: pointer; min-width: 0; }
.bz-dok-img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-size: 26px; }
.bz-dok-img img { width: 100%; height: 100%; object-fit: cover; }
.bz-dok-full { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; }
.bz-dok-meta { display: flex; flex-wrap: wrap; gap: 16px; } .bz-dok-meta > div { display: flex; flex-direction: column; }

/* laporan keuangan formal */
.bz-doc { font-size: 14px; }
.bz-doc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.bz-co { font-size: 18px; font-weight: 800; }
.bz-doc-title { text-align: right; } .bz-doc-title b { font-size: 16px; }
.bz-sec { margin-top: 14px; break-inside: avoid; }
.bz-sec h3 { font-size: 15px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.bz-colh { font-weight: 700; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.bz-st { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bz-st td { padding: 5px 4px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.bz-st td.num { text-align: right; white-space: nowrap; width: 1%; padding-left: 12px; }
.bz-st tr.ind td:first-child { padding-left: 18px; }
.bz-st tr.h td { font-weight: 700; padding-top: 10px; color: var(--ink-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 0; }
.bz-st tr.b td, .bz-st tr.sub td { font-weight: 700; }
.bz-st tr.sub td { border-top: 1px solid var(--border-strong); }
.bz-st tr.grand td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); font-size: 15px; }
.bz-st tr.warn td { color: var(--warning); font-style: italic; }
.bz-ket { margin-left: 6px; font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.bz-cat ol { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-soft); }
.bz-cat li { margin: 2px 0; }

@media (max-width: 900px) {
  .bz-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz-proj { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bz-kanban { grid-template-columns: 1fr; }
  .bz-tg-row { grid-template-columns: 1fr 1fr; } .bz-tg-row > .b { grid-column: 1 / -1; }
  .bz-dv-steps { grid-template-columns: 1fr; }
  .bz-hero-num { text-align: left; }
  .bz-hide-sm { display: none !important; }
  .bz-doc-title { text-align: left; }
  .bz-big .v { font-size: 18px; }
}

/* ---------- portal mitra (HP) */
.pm { max-width: 640px; margin: 0 auto; padding: 12px 12px 40px; display: flex; flex-direction: column; gap: 10px; }
.pm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pm-head h1 { font-size: 22px; margin: 2px 0; }
.pm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; position: sticky; top: 0; background: var(--bg); z-index: 2; padding-top: 4px; }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tabs button { flex: 0 0 auto; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 99px; padding: 8px 14px; min-height: 40px; font-weight: 650; font-size: 14px; color: var(--ink); }
.pm-tabs button.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pm-body { display: flex; flex-direction: column; gap: 10px; }
.pm-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
button.pm-card { border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pm-li { flex-direction: row; align-items: center; gap: 12px; min-height: 60px; }
.pm-hero { background: var(--primary); color: var(--primary-ink); cursor: pointer; }
.pm-hero .tiny, .pm-hero .small { color: color-mix(in srgb, var(--primary-ink) 75%, transparent); }
.pm-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pm-share { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--primary-ink) 12%, transparent); font-size: 14px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-num { font-size: 19px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.pm-row:last-child { border-bottom: 0; }
.pm-sec { font-weight: 750; font-size: 14px; margin: 6px 2px 0; }
.pm-doc { padding: 12px 10px; }
.pm-doc .bz-2col { grid-template-columns: 1fr; }

@media print {
  @page { size: A4; margin: 14mm; }
  .bz-print { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .bz-doc { font-size: 11.5pt; color: #000; }
  .bz-st tr.h td, .bz-colh, .bz-cat ol { color: #333; }
  .bz-2col { grid-template-columns: 1fr 1fr !important; }
  .pm-tabs, .pm-head .btn { display: none !important; }
}
.pm-alert { background: var(--accent-soft); color: var(--accent-ink); min-height: 48px; }
.bz-kls-row .seg { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 600px) {
  .page .grid.g4:has(> .bz-big) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bz-big { padding: 10px 12px; }
  .bz-big .s { font-size: 11.5px; }
}

/* src/pages/customer/style.css */
/* Customer & Member (prefix cm-) */
.cm-link { cursor: pointer; } .cm-link:hover { text-decoration: underline; }
.cm-ml { margin-left: 6px; }
.cm-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); }
.cm-filter select { width: auto; }
/* daftar customer: grid kolom di tablet, kartu di HP */
.cm-head, .cm-row { display: grid; grid-template-columns: minmax(220px, 2.2fr) 1fr .7fr 1fr .6fr 52px; gap: 12px; align-items: center; padding: 0 16px; }
.cm-head.member, .cm-list.member .cm-row { grid-template-columns: minmax(220px, 2fr) .8fr 1.8fr .9fr 92px; }
.cm-head { font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--surface-2); padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.cm-head span:not(:first-child) { text-align: right; }
.cm-head.member span:nth-child(3) { text-align: left; }
.cm-row { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); cursor: pointer; min-height: 60px; }
.cm-row:hover { background: var(--surface-2); }
.cm-row:last-child { border-bottom: 0; }
.cm-c-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cm-c-name .avatar { width: 36px; height: 36px; font-size: 14px; }
.cm-c-cell { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; gap: 0; }
.cm-c-cell.cm-c-wide { align-items: stretch; }
.cm-c-act { display: flex; justify-content: flex-end; }
.cm-k { display: none; font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }
@media (max-width: 860px) {
  .cm-head { display: none; }
  .cm-row, .cm-list.member .cm-row { grid-template-columns: 1fr 1fr 1fr auto; row-gap: 8px; }
  .cm-c-name { grid-column: 1 / -1; }
  .cm-c-cell { align-items: flex-start; }
  .cm-c-cell.cm-c-wide { grid-column: 1 / -2; }
  .cm-k { display: block; }
  .cm-c-act { grid-row: 1; grid-column: -2 / -1; }
  .cm-c-name { grid-column: 1 / -2; }
}
@media (max-width: 480px) {
  .cm-row { grid-template-columns: 1fr 1fr auto; }
  .cm-list:not(.member) .cm-c-cell:nth-of-type(4) { display: none; }
}
/* profil */
.cm-prof-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 10px; }
.cm-av-lg { width: 54px; height: 54px; font-size: 22px; }
.cm-catatan { background: var(--warning-soft); color: var(--warning); border-radius: 8px; padding: 4px 10px; align-self: flex-start; }
.cm-prof-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; border-bottom: 1px solid var(--border); }
.cm-prof-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.cm-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cm-stats > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-stats span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.cm-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cm-stats small { font-size: 11.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) { .cm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cm-poinbox { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.cm-isi { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* kartu member */
.cm-card-wrap { display: flex; justify-content: center; background: var(--surface-2); border-radius: 14px; padding: 18px; min-height: 240px; align-items: center; }
.cm-card-img { width: 100%; max-width: 560px; height: auto; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.cm-card-ph { color: var(--ink-faint); font-weight: 600; }
.cm-daftar { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px; }
/* sapa */
.cm-sapa-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); align-items: start; }
@media (max-width: 520px) { .cm-sapa-grid { grid-template-columns: 1fr; } }
.cm-sapa-grid .list-row .btn { flex: 0 0 auto; }
.cm-done { opacity: .62; }
.cm-tpl { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cm-tpl { grid-template-columns: 1fr; } }
.cm-bubble { background: #dcf8c6; color: #1d2b1a; border-radius: 12px 12px 12px 2px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
/* pengaturan tier */
.cm-tiers { display: flex; flex-direction: column; gap: 8px; }
.cm-tier { display: grid; grid-template-columns: 1.3fr 1.4fr .8fr .8fr 44px; gap: 8px; align-items: end; }
.cm-tier .field > label { display: none; }
.cm-tier.head { font-size: 12px; font-weight: 700; color: var(--ink-soft); align-items: center; }
@media (max-width: 640px) {
  .cm-tier { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
  .cm-tier .field > label { display: block; }
  .cm-tier.head { display: none; }
}

@media (max-width: 560px) { .cm-g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .cm-g4 .stat { padding: 12px; } }

/* src/pages/dashboard/style.css */
/* Beranda (prefix dash-) */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) {
  .dash-grid { display: flex; flex-direction: column; align-items: stretch; }
  .dash-col { display: contents; }
  .dash-o1 { order: 1; } .dash-o2 { order: 2; } .dash-o3 { order: 3; } .dash-o4 { order: 4; } .dash-o5 { order: 5; } .dash-o6 { order: 6; }
}
.dash-outlets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.dash-oc { text-align: left; border: 1px solid var(--border); border-top: 4px solid var(--oc, var(--accent)); background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.dash-oc:hover { background: var(--surface-2); }
.dash-oc-v { font-size: 22px; font-weight: 780; letter-spacing: -.02em; }
.dash-att { display: flex; flex-direction: column; }
.dash-att-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--border-soft); background: transparent; text-align: left; border-left: 4px solid transparent; min-height: 52px; }
.dash-att-row:last-child { border-bottom: 0; }
.dash-att-row:hover { background: var(--surface-2); }
.dash-att-row.danger { border-left-color: var(--danger); }
.dash-att-row.warn { border-left-color: #e0a019; }
.dash-att-row.info { border-left-color: var(--c1); }
.dash-att-row .ic { font-size: 18px; width: 24px; text-align: center; flex: 0 0 auto; }
.dash-att-row .chev { color: var(--ink-faint); font-size: 22px; line-height: 1; align-self: center; }
.dash-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-top li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.dash-top .rk { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.dash-top .rk.gold { background: var(--accent-soft); color: var(--accent-ink); }

/* kartu "Mulai pakai" (toko baru) */
.dash-setup { border: 2px solid var(--accent); padding: 14px 16px; }
.dash-setup-head { display: flex; align-items: flex-start; gap: 10px; }
.dash-setup-head h2 { margin: 0 0 2px; }
.dash-setup-x { border: 0; background: transparent; color: var(--ink-faint); font-size: 18px; width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.dash-setup-x:hover { background: var(--surface-2); }
.dash-setup-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.dash-setup-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.dash-setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dash-setup-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.dash-setup-list li:last-child { border-bottom: 0; }
.dash-setup-ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-3); color: var(--ink-soft); flex: 0 0 auto; }
.dash-setup-list li.next .dash-setup-ck { background: var(--accent); color: var(--accent-contrast, #fff); }
.dash-setup-list li.done .dash-setup-ck { background: var(--success); color: #fff; }
.dash-setup-list li.done b { color: var(--ink-faint); text-decoration: line-through; font-weight: 600; }
.dash-setup-main { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; min-height: 40px; color: inherit; }
.dash-setup-act { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.dash-setup-skip { border: 0; background: transparent; color: var(--ink-faint); font-size: 12px; padding: 4px 6px; min-height: 28px; }
.dash-setup-more { border: 0; background: transparent; color: var(--accent-ink, var(--accent)); font-weight: 600; font-size: 13px; padding: 8px 0 0; min-height: 36px; }

/* HP: angka utama 2 kolom, omzet penuh */
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-stats .stat { padding: 12px; }
  .dash-stats .stat.hero { grid-column: 1 / -1; }
  .dash-stats .dash-hp-hide { display: none; }
  .dash-stats .stat:not(.hero) .stat-value { font-size: 18px; }
  .dash-stats .stat-sub { font-size: 11.5px; }
  .dash-outlets { padding: 10px 12px 12px; gap: 8px; }
  .dash-oc { min-height: 0; }
  .dash-oc-v { font-size: 20px; }
}

/* src/pages/hr/style.css */
/* ===== HR: kiosk absen ===== */
.hr-kiosk { width: min(1120px, 100%); height: min(760px, calc(100vh - 32px)); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; background: #161616; color: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .14s; }
.hr-k-left { display: flex; flex-direction: column; min-height: 0; padding: 20px 22px; gap: 10px; background: radial-gradient(700px 400px at 10% -20%, rgba(232,131,58,.22), transparent 60%); }
.hr-k-head { display: flex; align-items: flex-start; gap: 12px; }
.hr-k-head h1 { color: #fff; font-size: 28px; }
.hr-k-sub { color: #aaa; font-size: 14px; }
.hr-k-x { margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.hr-k-hint { color: #ccc; font-weight: 650; font-size: 15px; margin-top: 4px; }
.hr-k-empty { color: #bbb; padding: 30px 0; }
.hr-k-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; overflow-y: auto; align-content: start; padding: 2px; flex: 1 1 auto; min-height: 0; }
.hr-k-person { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; border-radius: 16px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 128px; }
.hr-k-person .avatar { width: 54px; height: 54px; font-size: 21px; }
.hr-k-person .nm { font-weight: 750; font-size: 15px; }
.hr-k-person .st { font-size: 12px; color: #aaa; font-weight: 600; }
.hr-k-person .st.in { color: #7fe0a8; } .hr-k-person .st.done { color: #9bb5ff; } .hr-k-person .st.off { color: #ffc861; }
.hr-k-person.in { border-color: rgba(127,224,168,.35); }
.hr-k-person.on { border-color: var(--accent); background: rgba(232,131,58,.2); box-shadow: 0 0 0 2px var(--accent); }
.hr-k-right { background: #0f0f0f; border-left: 1px solid rgba(255,255,255,.08); padding: 18px; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.hr-k-wait { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #777; font-weight: 650; }
.hr-k-back { align-self: flex-start; display: none; align-items: center; gap: 4px; background: none; border: 0; color: #bbb; font-weight: 650; padding: 4px 0 8px; min-height: 36px; }
.hr-k-cam { position: relative; width: 100%; aspect-ratio: 4/3; max-height: 200px; border-radius: 14px; overflow: hidden; background: #222; flex: 0 0 auto; }
.hr-k-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.hr-k-cam-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; color: #bbb; font-size: 13px; font-weight: 600; }
.hr-k-cam.error video, .hr-k-cam.loading video { opacity: 0; }
.hr-k-ava { display: grid; place-items: center; padding: 8px 0; }
.hr-k-ava .avatar { width: 84px; height: 84px; font-size: 32px; }
.hr-k-who { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; text-align: center; }
.hr-k-who b { font-size: 20px; }
.hr-k-who span { color: #bbb; font-size: 13.5px; font-weight: 600; }
.hr-kiosk .pin-dots { margin: 10px 0 12px; }
.hr-kiosk .numpad button { min-height: 58px; }
.hr-k-link { background: none; border: 0; color: #aaa; font-weight: 650; padding: 8px 6px; min-height: 40px; }
.hr-k-link[disabled] { opacity: .35; }
.hr-k-ghost { background: transparent !important; color: #fff !important; border-color: #555 !important; }
.hr-k-konfirm { margin: auto 0; display: flex; flex-direction: column; gap: 12px; text-align: center; }
/* hasil */
.hr-k-hasil { display: flex; align-items: center; justify-content: center; grid-template-columns: none; background: #121212; }
.hr-k-hasil.ok { background: radial-gradient(800px 500px at 50% 0%, rgba(31,157,107,.45), transparent 70%), #121212; }
.hr-k-hasil.late { background: radial-gradient(800px 500px at 50% 0%, rgba(232,131,58,.5), transparent 70%), #121212; }
.hr-k-hasil.info { background: radial-gradient(800px 500px at 50% 0%, rgba(42,111,219,.4), transparent 70%), #121212; }
.hr-k-res { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; max-width: 560px; }
.hr-k-res-top { position: relative; margin-bottom: 6px; }
.hr-k-res-foto { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); display: block; }
.hr-k-res-ava { width: 120px !important; height: 120px !important; font-size: 46px !important; }
.hr-k-res-ic { position: absolute; right: -6px; bottom: -6px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #fff; border: 4px solid #121212; }
.hr-k-res-ic.ok { background: #1f9d6b; } .hr-k-res-ic.late { background: #E8833A; } .hr-k-res-ic.info { background: #2a6fdb; }
.hr-k-res-name { font-size: 22px; font-weight: 700; color: #ddd; }
.hr-k-res-big { font-size: 54px; font-weight: 850; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hr-k-res-sub { font-size: 24px; font-weight: 750; }
.hr-k-res-sub.ok { color: #7fe0a8; } .hr-k-res-sub.late { color: #ffb070; } .hr-k-res-sub.info { color: #9bb5ff; }
.hr-k-res-extra { color: #bbb; font-size: 15px; font-weight: 600; }
.hr-k-res-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 820px) {
  .hr-kiosk { grid-template-columns: 1fr; height: 100vh; width: 100%; border-radius: 0; max-height: none; }
  .hr-kiosk.has-sel .hr-k-left { display: none; }
  .hr-kiosk:not(.has-sel) .hr-k-right { display: none; }
  .hr-k-right { border-left: 0; padding: 16px 18px; }
  .hr-k-back { display: inline-flex; }
  .hr-k-cam { max-height: 34vh; }
  .hr-k-res-big { font-size: 42px; }
  .hr-k-people { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
@media (max-width: 820px) and (min-height: 1000px) { .hr-k-cam { max-height: 40vh; } .hr-kiosk .numpad button { min-height: 72px; font-size: 28px; } }

/* ===== HR: halaman ===== */
.hr-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; cursor: zoom-in; display: block; }
.hr-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hr-person .avatar { flex: 0 0 auto; }
.hr-person .nm { font-weight: 700; }
.hr-person .sub { font-size: 12.5px; color: var(--ink-faint); }
.hr-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hr-filters select { width: auto; min-width: 150px; }
.hr-today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.hr-trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.hr-trow:last-child { border-bottom: 0; }
.hr-trow .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.hr-trow .meta { text-align: right; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.hr-trow .meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hr-pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-grid-wrap { overflow-x: auto; }
table.hr-sched { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.hr-sched th, table.hr-sched td { border-bottom: 1px solid var(--border-soft); padding: 6px; text-align: center; }
table.hr-sched th { font-size: 12px; color: var(--ink-soft); background: var(--surface-2); position: sticky; top: 0; }
table.hr-sched th.today { color: var(--accent-ink); background: var(--accent-soft); }
table.hr-sched td.nm { text-align: left; min-width: 150px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.hr-cell { width: 100%; min-width: 86px; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12.5px; font-weight: 650; padding: 4px; line-height: 1.2; }
.hr-cell small { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.hr-cell.libur { background: var(--surface-3); color: var(--ink-faint); border-style: dashed; }
.hr-cell.khusus { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.hr-cell.khusus.libur { background: var(--warning-soft); color: var(--warning); border-style: solid; border-color: color-mix(in srgb, var(--warning) 40%, transparent); }
.hr-cell.cuti { background: var(--info-soft); color: var(--info); border-color: transparent; }
.hr-cell .lvl { font-size: 10.5px; font-weight: 750; }
.hr-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.hr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 1px solid var(--border); }
.hr-days { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-days button { min-width: 48px; min-height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; }
.hr-days button.on { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.hr-emp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hr-emp-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; border: 0; }
.hr-emp-card:hover { box-shadow: var(--shadow), 0 0 0 2px var(--border-strong); }
.hr-emp-card.off { opacity: .55; }
.hr-emp-card .kv { font-size: 13px; }
.hr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.hr-stats .stat { padding: 10px 12px; }
.hr-stats .stat-value { font-size: 20px; }
.hr-adj-amt.minus { color: var(--danger); } .hr-adj-amt.plus { color: var(--success); }
tr.hr-batal td { opacity: .5; text-decoration: line-through; }
tr.hr-batal td:last-child { text-decoration: none; }
.hr-sel-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; margin: 0 -4px; }
.hr-sel-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; justify-content: space-between; }
.hr-sel-row:last-child { border-bottom: 0; }
.hr-section-title { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
.hr-card-list { display: none; }
@media (max-width: 700px) {
  .hr-stat4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hr-stat4 .stat { padding: 10px 12px; }
  .hr-stat4 .stat-value { font-size: 18px; }
  .gj-table table.t td:nth-child(n+4):nth-child(-n+8), .gj-table table.t th:nth-child(n+4):nth-child(-n+8) { display: none; }
  .gj-table table.t tfoot td:nth-child(n+4):nth-child(-n+8) { display: none; }
  .hr-today-grid { grid-template-columns: 1fr; }
  table.hr-sched td.nm { min-width: 96px; max-width: 110px; }
  table.hr-sched td.nm .avatar, table.hr-sched td.nm .sub { display: none; }
  .hr-cell { min-width: 64px; }
  .hr-filters select, .hr-filters input { flex: 1 1 140px; min-width: 0; }
  .hr-hide-sm { display: none !important; }
}

/* ===== Gaji & slip ===== */
.gj-table table.t th, .gj-table table.t td { padding-left: 8px; padding-right: 8px; }
.gj-table table.t td:first-child, .gj-table table.t th:first-child { padding-left: 14px; }
.gj-edit { border: 0; background: none; color: var(--info); font-weight: 650; padding: 0; text-decoration: underline dotted; cursor: pointer; font: inherit; }
.gj-lines td { vertical-align: top; }
.gj-thp { font-weight: 800; font-size: 15px; }
.slip { background: #fff; color: #1d1d1d; border-radius: 14px; padding: 22px; max-width: 520px; margin: 0 auto; border: 1px solid #e5e5e5; font-size: 14px; }
.slip h3 { font-size: 20px; margin: 0; }
.slip .head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #1d1d1d; padding-bottom: 10px; margin-bottom: 12px; }
.slip .muted { color: #666; }
.slip table { width: 100%; border-collapse: collapse; }
.slip td { padding: 5px 0; vertical-align: top; }
.slip td.v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
.slip td small { display: block; color: #888; font-size: 12px; }
.slip .grp { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #888; padding-top: 10px; }
.slip .sub td { border-top: 1px solid #ddd; font-weight: 700; }
.slip .thp { margin-top: 12px; background: #1d1d1d; color: #fff; border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.slip .thp b { font-size: 24px; font-variant-numeric: tabular-nums; }
.slip .rek { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 8px; }
.slip .rek div { background: #f4f4f4; border-radius: 8px; padding: 6px; text-align: center; font-size: 12px; color: #666; }
.slip .rek b { display: block; font-size: 16px; color: #1d1d1d; }
.gj-slip-canvas { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
@media print {
  body.gj-printing .shell, body.gj-printing .toasts { display: none !important; }
  body.gj-printing .overlay { position: static; background: none; padding: 0; display: block; }
  body.gj-printing .modal { box-shadow: none; max-height: none; max-width: none; }
  body.gj-printing .modal-head, body.gj-printing .modal-foot, body.gj-printing .no-print { display: none !important; }
  body.gj-printing .slip { border: 0; page-break-after: always; }
}
@media (max-width: 820px) { .overlay:has(> .hr-kiosk) { padding: 0; } }
@media (max-width: 480px) { .gj-table table.t td:nth-child(3), .gj-table table.t th:nth-child(3) { display: none; } }
.hr-lupa { display: flex; flex-direction: column; gap: 6px; }
.hr-lupa-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hr-k-mode { margin-top: 10px; min-height: 48px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.04); color: #ddd; font-weight: 650; font-size: 14px; padding: 8px 12px; }
.hr-k-mode.on { border-style: solid; border-color: var(--accent); color: #fff; }
.hr-k-saya { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 18px; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.hr-k-saya h2 { font-size: 22px; }
.hr-k-saya-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hr-k-saya-stats > div { background: var(--surface-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.hr-k-saya-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.hr-k-saya-stats span { font-size: 12px; color: var(--ink-soft); }
.hr-k-saya-stats .neg b { color: var(--danger); } .hr-k-saya-stats .pos b { color: var(--success); } .hr-k-saya-stats .warn b { color: var(--warning); }
.hr-k-saya-list { display: flex; flex-direction: column; }
.hr-k-saya-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.hr-k-saya-list small { color: var(--ink-faint); margin-left: 4px; }
.hr-k-saya-list .neg { color: var(--danger); } .hr-k-saya-list .pos { color: var(--success); }
@media (max-width: 480px) { .hr-k-saya-stats { grid-template-columns: repeat(2, 1fr); } }

/* src/pages/kasir/style.css */
.pin-dots.light i { border-color: var(--border-strong); }
.pin-dots.light i.f { background: var(--ink); border-color: var(--ink); }
.kasir-banner { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--warning-soft); color: var(--warning); font-weight: 600; font-size: 13.5px; }
.kasir-banner .btn { margin-left: auto; }
.cust-chip { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--border-strong); border-radius: 12px; padding: 8px 10px; background: var(--surface-2); text-align: left; width: 100%; min-height: 48px; }
.cust-chip.on { border-style: solid; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.cust-chip .avatar { width: 32px; height: 32px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-faint); padding: 40px 10px; text-align: center; height: 100%; }
.cart-empty .em { font-size: 40px; }
.k-step2 { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; overflow-y: auto; flex: 1 1 auto; }
.k-back { background: none; border: 0; padding: 2px 0; color: var(--ink-soft); font-weight: 650; text-align: left; }
.k-total-big { text-align: center; padding: 6px 0 2px; }
.k-total-big .l { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.k-total-big .v { font-size: 36px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.split-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 38px; margin: 4px auto; }
.done-amt { font-size: 30px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.dapur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dapur-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--accent); }
.dapur-card.proses { border-top-color: var(--c1); }
.dapur-card .it { display: flex; gap: 8px; align-items: baseline; font-size: 16px; font-weight: 700; }
.dapur-card .it b { min-width: 34px; font-size: 20px; }
.dapur-card .it.done { text-decoration: line-through; opacity: .45; }
.laci-num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pecahan { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pecahan label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }

.cart-close { display: none !important; }
@media (max-width: 700px) { .cart-close { display: inline-flex !important; } }

/* bayar cepat: tombol besar Bayar + Uang pas + QRIS sejajar */
.kasir-payrow { display: flex; gap: 8px; }
.kasir-payrow .pay-btn { flex: 1 1 auto; min-width: 0; justify-content: center; white-space: nowrap; padding: 0 12px; }
.kasir-payrow .pay-btn span { display: none; }
.kasir-quick { flex: 0 0 70px; min-height: 62px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 750; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); }
.kasir-quick span { font-size: 20px; line-height: 1; }
.kasir-quick:active { transform: scale(.97); }
.kasir-koreksi { color: var(--accent-ink); font-weight: 650; }
@media (max-width: 700px) { .kasir-hide-sm { display: none !important; } }

/* riwayat: kartu di layar sempit, tabel di layar lebar */
.kr-cards { display: none; }
@media (max-width: 700px) { .kr-table { display: none; } .kr-cards { display: flex; flex-direction: column; } }
.kr-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); cursor: pointer; min-height: 56px; }
.kr-card:last-child { border-bottom: 0; }
.kr-card .kr-r { text-align: right; font-variant-numeric: tabular-nums; }
.kr-card .kr-items { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kr-metode { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-soft); }
.kr-metode b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) and (min-width: 701px) {
  .kasir-quick { flex-basis: 56px; font-size: 11.5px; }
  .kasir-payrow .pay-btn { font-size: 16px; padding: 0 8px; }
}
@media (max-width: 700px) { .kasir-stats { grid-template-columns: 1fr 1fr !important; } }

/* src/pages/keuangan/style.css */
/* Pengeluaran & Kas (prefix kg-) */
.kg-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.kg-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.kg-quick .btn { min-height: 46px; }
.kg-split { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.9fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .kg-split { grid-template-columns: 1fr; } }
.kg-ell { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-flow { display: flex; flex-direction: column; gap: 14px; }
.kg-flow-col { display: flex; flex-direction: column; gap: 6px; }
.kg-flow-col .kv { padding-left: 10px; border-left: 3px solid var(--border); }
@media (max-width: 560px) { .kg-g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .kg-g4 .stat { padding: 12px; } }
.kg-even { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .kg-even { grid-template-columns: 1fr; } }

/* src/pages/laporan/style.css */
/* Laporan & Analisis + Beranda (prefix lap- / dash-) */
.lap-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lap-filter .lap-cov { margin-left: auto; }
.lap-print-head { display: none; }
.lap-ins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lap-ins li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.lap-ins li .ic { flex: 0 0 auto; width: 22px; text-align: center; }
.lap-ins li.good { background: var(--success-soft); }
.lap-ins li.warn { background: var(--warning-soft); }
.lap-ins li.bad { background: var(--danger-soft); }
.lap-insight .card-head { margin-bottom: 8px; }
.lap-tip { position: absolute; background: var(--surface); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; pointer-events: none; min-width: 160px; z-index: 2; }
.lap-pct-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.lap-pct-bar i { display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; min-width: 2px; }
.lap-me { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lap-me-box { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; border-left-width: 4px; }
.lap-me-box.bintang { border-left-color: var(--success); } .lap-me-box.kuda { border-left-color: var(--c6); }
.lap-me-box.teka { border-left-color: var(--c4); } .lap-me-box.anjing { border-left-color: var(--danger); }
.lap-me-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { font-size: 12.5px; background: var(--surface-2); border-radius: 99px; padding: 3px 9px; font-weight: 600; }
.lap-heat-wrap { overflow-x: auto; }
.lap-heat-wrap .heat { min-width: 560px; }
.lap-heat-wrap .heat .c { min-height: 30px; }
table.lap-lr td { padding: 8px 12px; }
table.lap-lr tr.b td { font-weight: 700; }
table.lap-lr tr.hl td { background: var(--surface-2); }
table.lap-lr tr.big td { font-size: 15.5px; background: var(--accent-soft); color: var(--accent-ink); border-top: 2px solid var(--border-strong); }
table.lap-lr tr.sub td:first-child { padding-left: 26px; color: var(--ink-soft); }
table.lap-lr tr.sec td { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; padding-top: 14px; }
.lap-pctcell { display: block; font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.lap-why { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.lap-mini { display: flex; flex-direction: column; gap: 2px; }
.lap-mini .l { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.lap-mini .v { font-size: 17px; font-weight: 750; }
.lap-mini .s { font-size: 12px; color: var(--ink-faint); }
@media (max-width: 700px) {
  .lap-me { grid-template-columns: 1fr; }
  .lap-filter .lap-cov { margin-left: 0; width: 100%; }
}
@media print {
  .lap-print-head { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
  .lap-ins li { background: none !important; padding: 2px 0; }
  .table-wrap { overflow: visible !important; max-height: none !important; }
  .card { break-inside: avoid; }
  .seg, .lap-filter { display: none !important; }
}
@media (max-width: 560px) { .lap-hp-hide { display: none !important; } }

/* src/pages/menu/style.css */
/* ===== Modul Menu & Resep (prefix mn-) — juga dipakai modul stok untuk autocomplete & editor resep */
.mn-ac { position: relative; min-width: 0; }
.mn-ac-list { z-index: 300; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); overflow-y: auto; padding: 4px; }
.mn-ac-list button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; min-height: 44px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.mn-ac-list button small { color: var(--ink-faint); font-weight: 500; }
.mn-ac-list button.on { background: var(--surface-3); }
.mn-ac-ic { width: 26px; text-align: center; font-size: 18px; flex: 0 0 auto; }

.mn-resep { display: flex; flex-direction: column; gap: 6px; }
.mn-resep-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--border-soft); }
.mn-resep-row.gone { border-color: var(--danger); background: var(--danger-soft); }
.mn-resep-row input { min-height: 40px; background: var(--surface); }
.mn-resep-q { width: 132px; flex: 0 0 auto; }
.mn-resep-c { min-width: 74px; text-align: right; font-weight: 650; font-size: 13.5px; }

.mn-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 0; min-height: 40px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.mn-switch i { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); transition: background .15s; flex: 0 0 auto; }
.mn-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.mn-switch.on i { background: var(--success); }
.mn-switch.on i::after { transform: translateX(18px); }

.mn-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mn-toolbar .search { flex: 1 1 220px; min-width: 180px; }
.mn-toolbar select { width: auto; min-width: 150px; }
.mn-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mn-stats .stat.on { box-shadow: 0 0 0 2px var(--accent); }

.mn-cat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-weight: 700; }
.mn-cat-head .tiny { font-weight: 600; }
.mn-prow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px 96px 104px 54px; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; min-height: 64px; }
.mn-prow:last-child { border-bottom: 0; }
.mn-prow:hover { background: var(--surface-2); }
.mn-prow.off { opacity: .55; }
.mn-c { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mn-c small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-faint); }
.mn-thumb { width: 46px; height: 46px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border-soft); display: grid; place-items: center; font-size: 25px; overflow: hidden; flex: 0 0 auto; }
.mn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mn-thumb.lg { width: 84px; height: 84px; font-size: 44px; border-radius: 16px; }
.mn-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.mn-badges .badge { font-size: 11.5px; padding: 1px 7px; }
@media (max-width: 700px) {
  .mn-prow { grid-template-columns: 44px minmax(0, 1fr) 84px 54px; gap: 8px; padding: 9px 12px; }
  .mn-prow .mn-hide-sm { display: none; }
}

.mn-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.mn-edit > .col { gap: 12px; min-width: 0; }
@media (max-width: 900px) { .mn-edit { grid-template-columns: 1fr; } }
.mn-sec { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mn-sec > h3 { display: flex; align-items: center; gap: 8px; }
.mn-sec > h3 .tiny { font-weight: 500; }
.mn-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; }
.mn-emoji button { height: 40px; border: 1px solid transparent; background: var(--surface-2); border-radius: 8px; font-size: 21px; padding: 0; }
.mn-emoji button.on { border-color: var(--primary); background: var(--surface); box-shadow: var(--shadow); }
.mn-tipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mn-tipe button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; padding: 10px; text-align: left; min-height: 62px; display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 14px; }
.mn-tipe button small { font-weight: 500; font-size: 12px; color: var(--ink-faint); line-height: 1.25; }
.mn-tipe button.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.mn-tipe button.on small { color: inherit; opacity: .75; }
@media (max-width: 480px) { .mn-tipe { grid-template-columns: 1fr; } .mn-tipe button { min-height: 48px; } }

.mn-hpp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mn-hpp > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mn-hpp .l { font-size: 12px; font-weight: 650; color: var(--ink-soft); }
.mn-hpp .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mn-hpp .s { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.mn-hpp > div.good { background: var(--success-soft); color: var(--success); }
.mn-hpp > div.bad { background: var(--danger-soft); color: var(--danger); }
.mn-hpp > div.good .l, .mn-hpp > div.bad .l, .mn-hpp > div.good .s, .mn-hpp > div.bad .s { color: inherit; opacity: .85; }
.mn-mbar { height: 8px; border-radius: 99px; background: var(--surface-3); position: relative; overflow: visible; }
.mn-mbar > i { display: block; height: 100%; border-radius: 99px; }
.mn-mbar > b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); left: 40%; }

.mn-opt { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .mn-opt { grid-template-columns: minmax(0, 1fr) 110px auto; } .mn-opt .mn-opt-r { grid-column: 1 / -1; } }
.mn-optbox { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mn-mod-opts { display: flex; flex-direction: column; gap: 6px; }
.mn-mod-opt { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--border-soft); }
.mn-mod-opt:last-child { border-bottom: 0; }

.mn-list-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); min-height: 60px; }
.mn-list-row:last-child { border-bottom: 0; }
.mn-list-row.click { cursor: pointer; }
.mn-list-row.click:hover { background: var(--surface-2); }
.mn-cat-emoji { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }

.mn-used { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-used .badge { font-size: 12.5px; padding: 3px 9px; }
.mn-kv-out { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 6px 10px; align-items: center; font-size: 14px; }
@media (max-width: 480px) { .mn-kv-out { grid-template-columns: minmax(0, 1fr) 130px; } }
@media (max-width: 480px) {
  .mn-resep-row { flex-wrap: wrap; row-gap: 4px; }
  .mn-resep-row > .grow { flex: 1 1 100%; }
  .mn-resep-row > .mn-resep-q { flex: 1 1 0; width: auto; min-width: 90px; }
}

/* ubah harga massal */
.mn-hm-ctl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.mn-hm-ctl .seg { flex-wrap: nowrap; flex: 0 0 auto; }
.mn-hm-ctl .seg button { white-space: nowrap; }
.mn-hm-ctl .input-rp, .mn-hm-ctl .input-suffix { flex: 1 1 auto; min-width: 0; }
.mn-hm-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-height: 46vh; overflow-y: auto; }
.mn-hm-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 84px 130px 64px; gap: 10px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--border-soft); min-height: 52px; }
.mn-hm-row:last-child { border-bottom: 0; }
.mn-hm-row.head { min-height: 0; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--surface-2); position: sticky; top: 0; z-index: 2; }
.mn-hm-row.off { opacity: .5; }
.mn-hm-row input[type=checkbox] { width: 22px; height: 22px; }
.mn-hm-row .r { text-align: right; }
.mn-hm-in input { min-height: 40px; }
@media (max-width: 560px) {
  .mn-hm-row { grid-template-columns: 26px minmax(0, 1fr) 118px; row-gap: 2px; }
  .mn-hm-row > :nth-child(3) { grid-column: 2; grid-row: 2; text-align: left; font-size: 12px; }
  .mn-hm-row > :nth-child(5) { grid-column: 3; grid-row: 2; }
  .mn-hm-row.head { display: none; }
}

/* src/pages/panduan/style.css */
.pd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-steps li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.pd-steps li .btn { flex: none; }
.pd-no { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.pd-tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; color: var(--ink-soft); }

/* src/pages/pengumuman/style.css */
/* Pengumuman */
.pg-list { display: flex; flex-direction: column; gap: 10px; }
.pg-row { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; text-align: left; width: 100%; }
.pg-row:hover { background: var(--surface-2); }
.pg-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.pg-ph { background: var(--accent-soft); display: grid; place-items: center; font-size: 28px; }
.pg-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pg-judul { font-size: 15.5px; }
.pg-isi { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pg-stat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pg-stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pg-stat span { font-size: 12px; color: var(--ink-faint); }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-height: 320px; overflow-y: auto; }
@media (max-width: 640px) {
  .pg-row { flex-wrap: wrap; }
  .pg-img { width: 48px; height: 48px; }
  .pg-ph { display: none; }
  .pg-main { flex-basis: 100%; }
  .pg-stat { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
  .pg-two { grid-template-columns: 1fr; max-height: none; }
}

/* src/pages/persetujuan/style.css */
/* Persetujuan */
.ps-list { display: flex; flex-direction: column; gap: 10px; }
.ps-item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.ps-item.done { opacity: .92; }
.ps-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ps-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ps-foto { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--border); }
.ps-act { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
@media (max-width: 900px) {
  .ps-item { grid-template-columns: minmax(0, 1fr) auto; }
  .ps-who { grid-column: 1 / -1; }
  .ps-act { grid-column: 1 / -1; }
  .ps-act .btn { flex: 1 1 0; min-height: 46px; }
}

/* src/pages/purchasing/style.css */
/* Purchasing (prefix pc-) */
.pc-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pc-stats .stat { cursor: pointer; }
.pc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .pc-split { grid-template-columns: 1fr; } }
.pc-row { flex-wrap: nowrap; }
.pc-row .right { flex: 0 0 auto; }
.pc-group { padding: 12px 16px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 6px; }
.pc-gl { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; min-width: 0; }
.pc-form-top, .pc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-prefill { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.pc-lines { display: flex; flex-direction: column; gap: 6px; }
.pc-line { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(110px, 1fr) minmax(120px, 1fr) 44px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.pc-line.appr { grid-template-columns: minmax(0, 1.4fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(130px, 1.1fr); }
.pc-line.ro { grid-template-columns: minmax(0, 1.6fr) auto auto minmax(90px, 1fr); opacity: .95; }
.pc-lines.po .pc-line { grid-template-columns: minmax(0, 1.6fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(96px, auto); }
.pc-line.head, .pc-line.foot { font-size: 12.5px; color: var(--ink-faint); font-weight: 700; border-bottom: 0; padding: 0; }
.pc-line.foot { font-size: 15px; color: var(--ink); border-top: 2px solid var(--border); padding-top: 8px; }
.pc-lines .pc-line:not(.appr):not(.ro) > :last-child { text-align: right; }
.pc-ln-name { min-width: 0; display: flex; flex-direction: column; }
.pc-lain { display: grid; grid-template-columns: minmax(0, 2fr) 90px 90px 120px auto auto; gap: 6px; align-items: center; }
.pc-po-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pc-po-head .kv { align-self: start; }
.pc-nota { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.pc-prog { width: 90px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 4px 0 0 auto; }
.pc-prog i { display: block; height: 100%; background: var(--warning); }
@media (max-width: 760px) {
  .pc-form-top, .pc-2, .pc-po-head { grid-template-columns: 1fr; }
  .pc-line, .pc-line.appr, .pc-line.ro, .pc-lines.po .pc-line { grid-template-columns: 1fr 1fr; }
  .pc-line > .pc-ln-name { grid-column: 1 / -1; }
  .pc-line.head { display: none; }
  .pc-line.foot > span:empty { display: none; }
  .pc-lain { grid-template-columns: 1fr 1fr; }
  .pc-lain > :first-child { grid-column: 1 / -1; }
  .pc-row { flex-wrap: wrap; }
  .pc-row .grow { flex-basis: 100%; }
  .pc-row .right { margin-left: auto; }
}
@media (max-width: 560px) { .pc-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .pc-stats .stat { padding: 12px; } .pc-stats .stat-value { font-size: 18px; } }

/* src/pages/sop/style.css */
/* SOP & Resep */
.sop-row { min-height: 60px; }
.sop-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.sop-badges { gap: 4px; justify-content: flex-end; flex: none; max-width: 45%; }
.sop-read { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sop-doc { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; min-width: 0; }
.sop-title { font-size: 28px; line-height: 1.2; margin: 12px 0 6px; }
.sop-lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 8px; }
.sop-steps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 18px; }
.sop-steps li, .rs-steps li { display: flex; gap: 14px; align-items: flex-start; }
.sop-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; }
.sop-step-text { font-size: 19px; line-height: 1.5; padding-top: 4px; white-space: pre-line; }
.sop-step-img { display: block; max-width: min(100%, 420px); border-radius: 12px; margin-top: 10px; border: 1px solid var(--border); }
.sop-ack { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--border-strong); }
.sop-ack .btn { min-height: 56px; font-size: 18px; }
.sop-ack-badge { font-size: 15px; padding: 10px 14px; white-space: normal; }
.sop-who { padding: 6px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.sop-ed-step { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
@media (max-width: 900px) { .sop-read { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .sop-doc { padding: 16px; } .sop-title { font-size: 23px; } .sop-step-text { font-size: 17px; }
  .sop-hide-sm { display: none; }
  .sop-row { flex-wrap: wrap; } .sop-badges { max-width: 100%; width: 100%; justify-content: flex-start; padding-left: 52px; }
}

/* checklist */
.cl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cl-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cl-card.done { background: var(--success-soft); }
.cl-emoji { font-size: 28px; }
.cl-name { font-size: 19px; font-weight: 800; }
.cl-run { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; width: 100%; }
.cl-run-title { font-size: 22px; font-weight: 800; }
.cl-items { display: flex; flex-direction: column; gap: 10px; }
.cl-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 10px 8px 6px; }
.cl-item.ok { background: var(--success-soft); }
.cl-tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 56px; }
.cl-box { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 2.5px solid var(--border-strong); display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #fff; background: var(--surface); }
.cl-item.ok .cl-box, .cl-box.on { background: var(--success); border-color: var(--success); }
.cl-box.sm { width: 24px; height: 24px; font-size: 14px; border-radius: 6px; color: var(--danger); }
.cl-box.sm.on { color: #fff; }
.cl-txt { font-size: 18px; font-weight: 600; }
.cl-note { display: block; margin-top: 2px; }
.cl-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: zoom-in; flex: none; border: 1px solid var(--border); }
.cl-detail { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.cl-grid td, .cl-grid th { white-space: nowrap; }
.cl-cell { display: inline-block; border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.cl-cell.done { background: var(--success-soft); color: var(--success); font-weight: 600; }
.cl-cell.part { background: var(--warning-soft); color: var(--warning); }
.cl-cell.none { background: var(--danger-soft); color: var(--danger); cursor: default; }
.cl-ed-row .check { white-space: nowrap; }

/* resep rahasia */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.rs-card { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.rs-card:hover { box-shadow: var(--shadow-lg); }
.rs-cover { height: 120px; background: var(--accent-soft); display: grid; place-items: center; font-size: 44px; overflow: hidden; }
.rs-cover img { width: 100%; height: 100%; object-fit: cover; }
.rs-card-body { padding: 10px 12px; }
.rs-secret { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rs-secret img { -webkit-user-drag: none; pointer-events: none; }
.rs-secret input { user-select: text; -webkit-user-select: text; }
.rs-secret.blur .rs-body { filter: blur(14px); }
.rs-blur-msg { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 18px; z-index: 3; }
.rs-wm { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-repeat: repeat; background-size: 380px 180px; }
.rs-body { position: relative; z-index: 1; padding: 24px 28px; }
.rs-head { display: flex; gap: 18px; align-items: flex-start; }
.rs-hero { width: 180px; height: 140px; object-fit: cover; border-radius: 12px; flex: none; }
.rs-title { font-size: 30px; margin: 8px 0 4px; line-height: 1.2; }
.rs-sec { margin-top: 26px; }
.rs-sec h2 { font-size: 20px; margin: 0 0 10px; }
.rs-porsi .btn { min-width: 44px; font-size: 20px; }
.rs-bahan { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rs-bahan td { padding: 10px 8px; border-bottom: 1px solid var(--border-soft); font-size: 19px; vertical-align: top; }
.rs-q { width: 1%; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-ink); text-align: right; }
.rs-q span { font-weight: 500; color: var(--ink-soft); font-size: 16px; }
.rs-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.rs-step-text { font-size: 20px; line-height: 1.55; white-space: pre-line; }
.rs-kritis { margin-top: 8px; background: var(--danger-soft); color: var(--danger); padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 16px; }
.rs-timer { display: inline-flex; align-items: center; gap: 4px; background: var(--info-soft); color: var(--info); padding: 2px 4px 2px 10px; border-radius: 99px; font-size: 18px; }
.rs-timer.end { background: var(--success-soft); color: var(--success); }
.rs-saji { display: flex; gap: 16px; align-items: flex-start; }
.rs-saji img { width: 220px; max-width: 45%; border-radius: 12px; }
.rs-kv { font-size: 17px; max-width: 560px; } .rs-kv > :nth-child(even) { text-align: left; }
.rs-catatan { background: var(--warning-soft); padding: 14px 16px; border-radius: 12px; }
.rs-ed-bahan { display: grid; grid-template-columns: 2fr 90px 90px 2fr auto; gap: 8px; align-items: center; }
.rs-ed-meta { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px; }
@media (max-width: 700px) {
  .rs-body { padding: 16px; } .rs-head { flex-direction: column; } .rs-hero { width: 100%; height: 180px; }
  .rs-title { font-size: 24px; } .rs-step-text { font-size: 18px; } .rs-bahan td { font-size: 17px; }
  .rs-saji { flex-direction: column; } .rs-saji img { max-width: 100%; width: 100%; }
  .rs-ed-bahan { grid-template-columns: 1fr 80px 80px; } .rs-ed-bahan > :nth-child(4) { grid-column: 1 / 3; }
  .rs-ed-meta { grid-template-columns: 1fr; }
}
@media print { body.rs-secret-open * { visibility: hidden !important; } body.rs-secret-open::before { content: "Dokumen rahasia — tidak boleh dicetak"; visibility: visible; display: block; font-size: 24px; padding: 40px; } }

/* src/pages/stok/fc.css */
/* Prediksi, Daftar Belanja (modul prediksi) — prefix fc- / bl- */
.fc-emoji { font-size: 20px; width: 28px; text-align: center; flex: 0 0 auto; }
.fc-big { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; }
.fc-trend { font-weight: 700; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-trend.up { color: var(--success); } .fc-trend.down { color: var(--danger); } .fc-trend.flat { color: var(--ink-faint); }
.fc-trend.sm { font-size: 12px; }
.fc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fc-day { border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 64px; justify-content: center; font-variant-numeric: tabular-nums; }
.fc-day b { font-size: 15px; }
.fc-day:disabled { cursor: default; }
.fc-day.today { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fc-day.up { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.fc-day.down { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.fc-kali { font-size: 11.5px; font-weight: 750; }
.fc-past { opacity: .55; }
.fc-howto h3 { font-size: 14px; }

/* Daftar belanja */
.bl-group-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.bl-group-head:first-child { border-top: 0; }
.bl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 110px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.bl-row.off { opacity: .5; }
.bl-row .chk { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px 0; }
.bl-row .chk input { width: 22px; height: 22px; }
.bl-name { font-weight: 700; }
.bl-why { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.bl-why b { color: var(--ink); font-weight: 650; }
.bl-qty { display: flex; align-items: center; gap: 4px; }
.bl-qty button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 20px; font-weight: 700; flex: 0 0 auto; }
.bl-qty input { text-align: center; padding: 6px 4px; min-height: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bl-unit { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 2px; line-height: 1.2; }
.bl-cost { text-align: right; font-variant-numeric: tabular-nums; }
.bl-cost input { text-align: right; min-height: 38px; padding: 6px 8px; }
.bl-sumbar { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(0,0,0,.06); padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-radius: 0 0 var(--radius) var(--radius); }
.bl-sumbar .tot { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bl-print { display: none; }
@media (max-width: 760px) {
  .bl-row { grid-template-columns: 40px minmax(0, 1fr) 128px; }
  .bl-row .bl-cost { grid-column: 2 / 4; text-align: left; display: flex; gap: 8px; align-items: center; }
  .bl-row .bl-cost input { max-width: 140px; }
  .fc-cal { gap: 4px; }
  .fc-day { min-height: 56px; padding: 4px 2px; }
}
@media print {
  .bl-screen { display: none !important; }
  .bl-print { display: block; font-size: 12pt; color: #000; }
  .bl-print table { width: 100%; border-collapse: collapse; }
  .bl-print td, .bl-print th { border-bottom: 1px solid #bbb; padding: 4px 6px; text-align: left; }
  .bl-print .num { text-align: right; }
  .bl-print h2 { margin: 10px 0 4px; font-size: 13pt; }
}
.fc-menu table.t { min-width: 600px; }
.bl-name .badge { font-size: 11px; padding: 1px 6px; vertical-align: 1px; }
@media (max-width: 560px) {
  .fc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fc-stats .stat { padding: 12px; }
  .fc-stats .stat-value { font-size: 18px; }
  .fc-cal .fc-day .tiny { font-size: 11px; }
  .bl-group-head { flex-wrap: wrap; }
}

/* src/pages/stok/style.css */
/* ===== Modul Stok (prefix stk-) */
.stk-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stk-stats .stat.on { box-shadow: 0 0 0 2px var(--accent); }
.stk-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stk-toolbar .search { flex: 1 1 220px; min-width: 180px; }
.stk-toolbar select { width: auto; min-width: 150px; }
.stk-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }

.stk-qty { position: relative; display: flex; gap: 6px; align-items: center; min-width: 0; }
.stk-qty > input, .stk-qty > .input-suffix { flex: 1 1 auto; min-width: 70px; }
.stk-unit { flex: 0 0 auto; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 8px; min-height: 42px; padding: 0 10px; font-size: 13px; font-weight: 650; color: var(--ink-soft); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-qty-h { position: absolute; left: 2px; bottom: -17px; font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }

.stk-lines { display: flex; flex-direction: column; gap: 8px; }
.stk-line { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, 1.1fr) minmax(130px, .8fr) 40px; gap: 10px; align-items: center; padding: 8px 8px 8px 12px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; }
.stk-line.pad { padding-bottom: 22px; }
.stk-line.warn { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }
.stk-line .stk-hint { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.stk-line input { background: var(--surface); }
.stk-line.t3 { grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr) 40px; }
.stk-line > * { min-width: 0; }
@media (max-width: 700px) {
  .stk-line, .stk-line.t3 { grid-template-columns: minmax(0, 1fr) 40px; }
  .stk-line > :first-child { grid-column: 1 / 2; }
  .stk-line > :not(:first-child):not(:last-child) { grid-column: 1 / -1; }
  .stk-line > :last-child { grid-row: 1; grid-column: 2; }
  .stk-line .stk-qty:has(.stk-qty-h) { margin-bottom: 16px; }
}

.stk-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.stk-form > .col { min-width: 0; gap: 12px; }
@media (max-width: 960px) { .stk-form { grid-template-columns: 1fr; } }
.stk-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.stk-total b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.stk-two { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .stk-two { grid-template-columns: 1fr; } }

.stk-opn { padding: 0; }
.stk-opn-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 236px 120px; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--border-soft); min-height: 60px; }
.stk-opn-row.head { min-height: 0; padding-top: 8px; padding-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--surface-2); position: sticky; top: 60px; z-index: 5; border-radius: var(--radius) var(--radius) 0 0; }
.stk-opn-row:last-child { border-bottom: 0; }
.stk-opn-row.done { background: color-mix(in srgb, var(--success-soft) 45%, transparent); }
.stk-opn-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.stk-sel { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
@media (max-width: 700px) {
  .stk-opn-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "nm nm dif" "sys sel sel"; row-gap: 6px; column-gap: 10px; }
  .stk-opn-row > :first-child { grid-area: nm; }
  .stk-opn-row .stk-sys { grid-area: sys; text-align: left; }
  .stk-opn-row .stk-sel { grid-area: sel; }
  .stk-opn-row .stk-dif { grid-area: dif; }
  .stk-opn-row.head { display: none; }
}

.stk-card-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stk-card-top > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.stk-card-top .l { font-size: 12px; color: var(--ink-soft); font-weight: 650; }
.stk-card-top .v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 560px) { .stk-card-top { grid-template-columns: 1fr 1fr; } }

.stk-hist { display: flex; flex-direction: column; }
.stk-hist-row { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; min-height: 58px; }
.stk-hist-row:hover { background: var(--surface-2); }
.stk-hist-row:last-child { border-bottom: 0; }
.stk-nota { max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--border); align-self: flex-start; }
.stk-chg { font-size: 12px; font-weight: 650; }
@media (max-width: 560px) { .stk-outsel { min-width: 0 !important; max-width: 160px !important; } }

.stk-baru { border: 2px solid var(--accent); }

/* src/pages/titipan/style.css */
/* Titipan (konsinyasi) — prefix tt- */
.tt-outlet { font-size: 15px; margin-top: 4px; }
.tt-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: start; }
.tt-card { display: flex; flex-direction: column; }
.tt-emoji { font-size: 18px; margin-right: 6px; }
.tt-pre { display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.tt-rows { display: flex; flex-direction: column; }
.tt-r { display: grid; grid-template-columns: minmax(0, 1fr) 62px 66px 62px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
.tt-r > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.tt-r b { font-size: 17px; }
.tt-r.tt-h { font-size: 12px; color: var(--ink-soft); font-weight: 700; padding-top: 0; }
.tt-r > span:first-child { position: relative; padding-bottom: 5px; }
.tt-bar { position: absolute; left: 30px; right: 4px; bottom: 0; height: 3px; background: var(--surface-3); border-radius: 9px; overflow: hidden; }
.tt-bar i { display: block; height: 100%; background: var(--c3); border-radius: 9px; }
.tt-bar i.habis { background: var(--accent); }
.tt-habis { color: var(--accent-ink); font-size: 13px !important; background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.tt-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tt-money { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tt-step { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.tt-step button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 20px; font-weight: 700; flex: 0 0 auto; }
.tt-step input { width: 64px; text-align: center; font-weight: 700; font-size: 16px; padding: 6px 4px; min-height: 42px; }
.tt-inlist .list-row { padding: 10px 2px; }
.tt-tutup td { vertical-align: middle; }
.tt-kpi { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px 14px; }
.tt-kpi > div { display: flex; flex-direction: column; gap: 2px; }
.tt-kpi b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tt-pen.off { opacity: .65; }
@media (max-width: 560px) {
  .tt-grid { grid-template-columns: 1fr; }
  .tt-r { grid-template-columns: minmax(0, 1fr) 48px 54px 52px; font-size: 13.5px; }
  .tt-r b { font-size: 15.5px; }
  .tt-step input { width: 52px; }
  .tt-step button { width: 38px; height: 38px; }
}
.tt-saran table.t { min-width: 720px; }
.tt-outlet-tag { color: var(--accent-ink); font-weight: 700; }
