/* Demo Admin Menu QR - BeresinWeb */
:root {
  --bg: #f4f2ee; --surface: #ffffff; --surface-2: #faf8f5; --sunk: #efece6;
  --line: #e7e2d9; --line-2: #d8d1c5;
  --ink: #1b1814; --ink-2: #4b443c; --muted: #877d72;
  --side: #17140f; --side-2: #221e18; --side-ink: #e9e3d9; --side-muted: #8f877c;
  --accent: #d9412b; --accent-2: #b8321f; --accent-soft: rgba(217, 65, 43, .1); --accent-ink: #fff;
  --ok: #138a45; --ok-soft: rgba(19, 138, 69, .12);
  --warn: #c97a06; --warn-soft: rgba(217, 140, 6, .14);
  --bad: #d32f2f; --bad-soft: rgba(211, 47, 47, .11);
  --info: #2563eb; --info-soft: rgba(37, 99, 235, .1);
  --gold: #f2b134;
  --shadow-sm: 0 1px 2px rgba(27, 24, 20, .06);
  --shadow: 0 1px 2px rgba(27, 24, 20, .05), 0 8px 24px -12px rgba(27, 24, 20, .18);
  --shadow-lg: 0 24px 60px -20px rgba(27, 24, 20, .35);
  --r: 14px; --r-sm: 10px; --r-lg: 20px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side-w: 252px;
  color-scheme: light;
}
[data-accent="daun"]  { --accent: #15803d; --accent-2: #116932; --accent-soft: rgba(21, 128, 61, .11); }
[data-accent="laut"]  { --accent: #2563eb; --accent-2: #1d4fd0; --accent-soft: rgba(37, 99, 235, .1); }
[data-accent="terong"]{ --accent: #7c3aed; --accent-2: #6528d4; --accent-soft: rgba(124, 58, 237, .1); }
[data-accent="kunyit"]{ --accent: #d97706; --accent-2: #b86405; --accent-soft: rgba(217, 119, 6, .12); }

[data-theme="dark"] {
  --bg: #0f0e0c; --surface: #181613; --surface-2: #1d1a16; --sunk: #13110f;
  --line: #2a2621; --line-2: #39342d;
  --ink: #f3eee7; --ink-2: #cfc6ba; --muted: #978d81;
  --side: #0a0908; --side-2: #171511;
  --ok: #34c06f; --ok-soft: rgba(52, 192, 111, .14);
  --warn: #f0a33a; --warn-soft: rgba(240, 163, 58, .14);
  --bad: #f26363; --bad-soft: rgba(242, 99, 99, .14);
  --info: #6b9bff; --info-soft: rgba(107, 155, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.45; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num, .kpi-val, td.r, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bar demo */
.demo-bar { background: var(--side); color: var(--side-ink); font-size: .8rem; padding: 7px 14px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.demo-bar a { color: var(--gold); font-weight: 600; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* Login */
.login { min-height: calc(100vh - 34px); display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: var(--side); color: var(--side-ink); padding: 44px 48px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .35; }
.login-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.login-art > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -8px var(--accent); }
.brand b { font-family: var(--display); font-size: 1.05rem; display: block; line-height: 1.1; }
.brand small { color: var(--side-muted); font-size: .78rem; }
.login-art h1 { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -.02em; max-width: 13ch; margin-top: auto; }
.login-art h1 em { font-style: normal; color: var(--gold); }
.login-art > p { color: var(--side-muted); max-width: 44ch; }
.ticker { display: grid; gap: 10px; max-width: 420px; }
.tick { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); animation: tickIn .5s ease both; }
.tick .tno { width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .85rem; }
.tick b { font-size: .9rem; display: block; }
.tick small { color: var(--side-muted); font-size: .78rem; }
.tick .tamt { font-weight: 700; font-size: .9rem; }
@keyframes tickIn { from { opacity: 0; transform: translateY(10px); } }
.login-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.login-feats span { font-size: .78rem; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: var(--side-ink); }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; display: grid; gap: 18px; }
.login-box h2 { font-family: var(--display); font-size: 1.8rem; letter-spacing: -.01em; }
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-pick button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 10px 8px; display: grid; gap: 4px; justify-items: center; font-size: .82rem; font-weight: 600; color: var(--ink-2); transition: border-color .15s, background .15s; }
.role-pick button svg { color: var(--muted); }
.role-pick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.role-pick button.on svg { color: var(--accent); }
.demo-cred { font-size: .82rem; color: var(--muted); background: var(--sunk); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; }
.demo-cred code { font-family: ui-monospace, Consolas, monospace; color: var(--ink); font-size: .85rem; }

/* Kerangka aplikasi */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - 34px); }
.shell.mini { --side-w: 76px; }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; gap: 6px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #3a342c transparent; z-index: 40; }
.side .brand { padding: 4px 6px 14px; }
.side-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--side-muted); padding: 14px 10px 6px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: .92rem; width: 100%; text-align: left; position: relative; transition: background .15s; }
.nav svg { color: var(--side-muted); transition: color .15s; }
.nav:hover { background: var(--side-2); }
.nav.on { background: var(--side-2); color: #fff; }
.nav.on svg { color: var(--accent); }
.nav.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav .count { margin-left: auto; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 22px; text-align: center; }
.nav .count.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.side-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.outlet-card { background: var(--side-2); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: .82rem; }
.outlet-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: .78rem; }
.outlet-card .row:first-child { font-size: .82rem; }
.outlet-card b { font-size: .88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.shell.mini .side .lbl, .shell.mini .side-group, .shell.mini .outlet-card, .shell.mini .brand > div { display: none; }
.shell.mini .nav { justify-content: center; padding: 11px; }
.shell.mini .nav .count { position: absolute; top: 2px; right: 2px; padding: 0 5px; min-width: 18px; font-size: .65rem; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); position: relative; flex: none; transition: background .15s; }
.icon-btn:hover { background: var(--sunk); }
.icon-btn .badge-dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.search-trigger { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; color: var(--muted); font-size: .9rem; text-align: left; box-shadow: var(--shadow-sm); }
.search-trigger kbd { margin-left: auto; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); font-size: .88rem; padding: 0 8px; white-space: nowrap; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 12px; text-align: left; }
.me:hover { background: var(--sunk); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--gold)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.me b { font-size: .86rem; display: block; line-height: 1.15; }
.me small { color: var(--muted); font-size: .74rem; }

.page { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; max-width: 1480px; width: 100%; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.page-head h1 { font-family: var(--display); font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Komponen dasar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 1rem; font-weight: 700; }
.card-head .sub { color: var(--muted); font-size: .84rem; }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-body { padding: 14px 18px 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--sunk); border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .82rem; border-radius: 8px; gap: 6px; }
.btn-lg { padding: 13px 18px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-weight: 600; font-size: .84rem; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 72px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.input-affix span { padding: 0 11px; display: grid; place-items: center; background: var(--sunk); color: var(--muted); font-size: .86rem; font-weight: 600; }
.input-affix .input { border: 0; border-radius: 0; }
.input-affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .84rem; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .n { font-size: .72rem; background: var(--sunk); color: var(--muted); border-radius: 999px; padding: 0 6px; }
.chip.on .n { background: rgba(255, 255, 255, .18); color: inherit; }
[data-theme="dark"] .chip.on .n { background: rgba(0, 0, 0, .15); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.b-baru { background: var(--info-soft); color: var(--info); }
.b-masak { background: var(--warn-soft); color: var(--warn); }
.b-siap { background: var(--ok-soft); color: var(--ok); }
.b-selesai { background: var(--sunk); color: var(--muted); }
.b-batal { background: var(--bad-soft); color: var(--bad); }
.b-accent { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(242, 177, 52, .18); color: #92600a; }
[data-theme="dark"] .tag { color: var(--gold); }
.tag-Pedas { background: var(--bad-soft); color: var(--bad); }
.tag-Baru { background: var(--ok-soft); color: var(--ok); }

.seg { display: inline-flex; background: var(--sunk); border-radius: 10px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.switch { position: relative; width: 40px; height: 23px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.empty { text-align: center; padding: 38px 16px; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.empty .ill { width: 56px; height: 56px; border-radius: 16px; background: var(--sunk); display: grid; place-items: center; color: var(--muted); margin-bottom: 4px; }
.empty b { color: var(--ink); }

/* Tabel */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .strong { font-weight: 700; }
.cell-menu { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: #fbe9d7; }
.thumb svg { width: 100%; height: 100%; }
.cell-menu b { display: block; font-size: .92rem; }
.cell-menu small { color: var(--muted); font-size: .8rem; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.kpi-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi-ic.ok { background: var(--ok-soft); color: var(--ok); }
.kpi-ic.info { background: var(--info-soft); color: var(--info); }
.kpi-ic.warn { background: var(--warn-soft); color: var(--warn); }
.kpi-val { font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi-foot { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .78rem; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.spark { width: 90px; height: 34px; color: var(--accent); opacity: .9; flex: none; }

/* Dashboard */
.hello { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; background: var(--side); color: var(--side-ink); border: 0; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -60px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .4; }
.hello > * { position: relative; z-index: 1; }
.hello h1 { font-family: var(--display); font-size: 1.55rem; letter-spacing: -.02em; color: #fff; }
.hello p { color: var(--side-muted); margin-top: 2px; }
.hello .insight { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; max-width: 640px; font-size: .88rem; color: var(--side-ink); }
.hello .insight svg { color: var(--gold); margin-top: 1px; }
.hello .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.hello .btn:hover { background: rgba(255, 255, 255, .14); }
.hello .btn-primary { background: var(--accent); border-color: var(--accent); }
.hello-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }

.chart { width: 100%; height: auto; color: var(--accent); overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .grid line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .bar { fill: currentColor; opacity: .85; transition: opacity .15s; }
.chart .bar.prev { fill: var(--line-2); opacity: 1; }
.chart .bar:hover { opacity: 1; }
.chart .bar.today { fill: var(--gold); opacity: 1; }
.chart .area { fill: currentColor; opacity: .12; }
.chart .line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--surface); stroke: currentColor; stroke-width: 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart-tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 9px; font-size: .8rem; z-index: 90; box-shadow: var(--shadow-lg); white-space: nowrap; transform: translate(-50%, -110%); }
.chart-tip b { display: block; font-size: .88rem; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.heat { display: grid; grid-template-columns: 34px repeat(13, minmax(0, 1fr)); gap: 3px; font-size: .7rem; color: var(--muted); }
.heat .hc { aspect-ratio: 1.5; border-radius: 4px; background: var(--accent); position: relative; cursor: default; min-height: 14px; }
.heat .hl { display: flex; align-items: center; }
.heat .hh { text-align: center; }

.rank { display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 10px; align-items: center; }
.rank-item .pos { font-family: var(--display); font-weight: 700; color: var(--muted); text-align: center; }
.rank-item .thumb { width: 40px; height: 40px; border-radius: 9px; }
.rank-item b { font-size: .88rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin-top: 5px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.rank-item .qty { text-align: right; font-weight: 700; font-size: .88rem; }
.rank-item .qty small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }

.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 4px 0 12px; }
.split i { display: block; height: 100%; }
.split-legend { display: grid; gap: 8px; font-size: .86rem; }
.split-legend div { display: flex; align-items: center; gap: 8px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.split-legend b { margin-left: auto; }

.feed { display: grid; }
.feed-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); cursor: pointer; transition: background .12s; text-align: left; width: 100%; }
.feed-item:hover { background: var(--surface-2); }
.tbl-no { width: 44px; height: 44px; border-radius: 11px; background: var(--sunk); display: grid; place-items: center; font-family: var(--display); font-weight: 700; line-height: 1; text-align: center; font-size: .95rem; }
.tbl-no small { display: block; font-family: var(--body); font-weight: 600; font-size: .58rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.feed-item b { font-size: .9rem; }
.feed-item .meta { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .end { text-align: right; display: grid; gap: 4px; justify-items: end; }
.feed-item .end b { font-size: .88rem; }

.mini-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 7px; }
.mt { aspect-ratio: 1; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--muted); position: relative; }
.mt.busy { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.mt.call { background: var(--warn-soft); color: var(--warn); border-color: transparent; animation: wiggle 1.2s infinite; }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: none; } }

/* Pesanan */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input-icon { flex: 1; min-width: 200px; max-width: 340px; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lane { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 10px; min-height: 260px; align-content: start; }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; font-weight: 700; }
.lane-head .n { margin-left: auto; background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: .8rem; border: 1px solid var(--line); }
.lane-head i { width: 9px; height: 9px; border-radius: 50%; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .15s, transform .15s; text-align: left; width: 100%; }
.ocard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ocard.fresh { animation: fresh 1.8s ease; }
@keyframes fresh { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow-sm); } }
.ocard header { display: flex; align-items: center; gap: 10px; }
.ocard header .tbl-no { width: 40px; height: 40px; font-size: .9rem; }
.ocard header b { display: block; font-size: .92rem; }
.ocard header small { color: var(--muted); font-size: .78rem; }
.ocard header .t { margin-left: auto; text-align: right; font-size: .78rem; color: var(--muted); }
.ocard ul { list-style: none; font-size: .86rem; display: grid; gap: 3px; color: var(--ink-2); }
.ocard ul small { color: var(--muted); }
.ocard footer { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ocard footer b { font-size: .92rem; }
.ocard footer .btn { margin-left: auto; }
.src { font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--sunk); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.src.qr { background: var(--accent-soft); color: var(--accent); }
.elapsed { font-weight: 700; }
.elapsed.late { color: var(--bad); }
.elapsed.mid { color: var(--warn); }

/* Drawer & modal */
.overlay { position: fixed; inset: 0; background: rgba(15, 12, 9, .45); z-index: 60; opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.overlay.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 61; transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-size: 1.2rem; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface-2); }
.modal { position: fixed; left: 50%; top: 50%; width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); z-index: 61; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; box-shadow: var(--shadow-lg); }
.modal.open { transform: translate(-50%, -50%); opacity: 1; }
.modal.wide { width: min(760px, calc(100% - 24px)); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.modal-head h2 { font-family: var(--display); font-size: 1.25rem; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.modal-foot { padding: 0 20px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding-bottom: 14px; position: relative; font-size: .88rem; color: var(--muted); }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); margin: 3px 0 0 4px; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 177, 52, .3); }
.lines { display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; font-size: .9rem; }
.line-item .q { font-weight: 700; color: var(--accent); }
.line-item small { display: block; color: var(--muted); font-size: .8rem; }
.sumbox { display: grid; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.sumbox div { display: flex; justify-content: space-between; gap: 10px; }
.sumbox .grand { font-weight: 800; font-size: 1.05rem; border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: 2px; }
.sumbox .disc { color: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-weight: 600; }

/* Kasir (POS) */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.pos-menu { display: grid; gap: 14px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; display: grid; transition: transform .12s, box-shadow .15s, border-color .15s; position: relative; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard:active { transform: scale(.98); }
.pcard .pic { aspect-ratio: 4 / 3; background: #fbe9d7; }
.pcard .pic svg { width: 100%; height: 100%; }
.pcard .info { padding: 10px 12px 12px; display: grid; gap: 3px; }
.pcard b { font-size: .88rem; line-height: 1.25; }
.pcard .price { font-weight: 700; color: var(--accent); font-size: .9rem; }
.pcard.sold { opacity: .5; pointer-events: none; }
.pcard .sold-lbl { position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--bg); font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pcard .inq { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; box-shadow: 0 4px 10px -4px var(--accent); }
.ticket { position: sticky; top: 80px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); }
.ticket-head { padding: 16px 16px 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.ticket-head h2 { font-family: var(--display); font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.ticket-items { flex: 1; overflow-y: auto; padding: 8px 16px; min-height: 120px; }
.titem { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.titem:last-child { border-bottom: 0; }
.titem b { font-size: .9rem; }
.titem .money { font-weight: 700; font-size: .9rem; }
.titem small { color: var(--muted); font-size: .78rem; grid-column: 1 / -1; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.stepper button { width: 30px; height: 30px; font-weight: 700; font-size: 1.05rem; color: var(--accent); display: grid; place-items: center; }
.stepper b { min-width: 24px; text-align: center; font-size: .88rem; }
.ticket-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.paygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.payopt { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 6px; display: grid; justify-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.payopt svg { color: var(--muted); }
.payopt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.payopt.on svg { color: var(--accent); }
.cash-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cash-quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 4px; font-size: .8rem; font-weight: 600; }
.cash-quick button:hover { border-color: var(--accent); }
.change { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.change.minus { background: var(--bad-soft); color: var(--bad); }
.qris-box { display: grid; justify-items: center; gap: 8px; padding: 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); color: #1b1814; text-align: center; }
.qris-box svg { width: 170px; height: 170px; }
.qris-box .qris-brand { font-weight: 800; letter-spacing: .1em; font-size: .9rem; }

/* Dapur (KDS) */
.kds-wrap { background: #12100d; color: #f3eee7; border-radius: var(--r-lg); padding: 18px; min-height: 70vh; }
.kds-wrap.full { position: fixed; inset: 0; z-index: 70; border-radius: 0; overflow: auto; }
.kds-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kds-top h2 { font-family: var(--display); font-size: 1.4rem; }
.kds-top .stat { background: #1f1b16; border-radius: 10px; padding: 6px 12px; font-size: .84rem; color: #b9b0a4; }
.kds-top .stat b { color: #fff; font-size: 1rem; margin-right: 4px; }
.kds-top .btn { background: #1f1b16; color: #f3eee7; border-color: #2d2821; box-shadow: none; }
.kds-top .btn:hover { background: #2a251f; }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.kticket { background: #1c1915; border-radius: 14px; overflow: hidden; border: 1px solid #2b2620; display: grid; }
.kticket header { padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: #26221c; }
.kticket header .tno { font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.kticket header small { color: #a49a8d; font-size: .78rem; display: block; }
.kticket header .timer { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 4px 10px; border-radius: 8px; background: rgba(52, 192, 111, .18); color: #4ade80; font-variant-numeric: tabular-nums; }
.kticket.mid header .timer { background: rgba(240, 163, 58, .2); color: #fbbf24; }
.kticket.late header .timer { background: rgba(242, 99, 99, .22); color: #f87171; animation: blink 1s steps(2) infinite; }
.kticket.late { border-color: rgba(242, 99, 99, .5); }
@keyframes blink { 50% { opacity: .55; } }
.kticket.masak header { box-shadow: inset 4px 0 0 #fbbf24; }
.kticket.baru header { box-shadow: inset 4px 0 0 #6b9bff; }
.kticket ul { list-style: none; padding: 8px 14px; display: grid; gap: 2px; }
.kticket li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid #2b2620; cursor: pointer; font-size: .98rem; }
.kticket li:last-child { border-bottom: 0; }
.kticket li .q { font-weight: 800; color: #fbbf24; }
.kticket li small { display: block; color: #a49a8d; font-size: .8rem; }
.kticket li small.note { color: #fca5a5; }
.kticket li.done { opacity: .4; text-decoration: line-through; }
.kticket footer { padding: 10px 14px 14px; }
.kticket footer button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; font-weight: 700; background: #f3eee7; color: #12100d; font-size: .95rem; }
.kticket.masak footer button { background: #4ade80; }
.kds-empty { text-align: center; padding: 80px 16px; color: #8d8478; }

/* Menu */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mcard { display: grid; overflow: hidden; position: relative; }
.mcard .pic { aspect-ratio: 16 / 10; background: #fbe9d7; position: relative; }
.mcard .pic svg { width: 100%; height: 100%; }
.mcard .pic .sel { position: absolute; top: 10px; left: 10px; }
.mcard .pic .tags { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.mcard .pic .tags .tag { background: rgba(255, 255, 255, .92); }
.mcard.off .pic { filter: grayscale(.85); opacity: .7; }
.mcard .body { padding: 12px 14px; display: grid; gap: 4px; }
.mcard .body b { font-size: .95rem; }
.mcard .body p { color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.mcard .prow { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.mcard .prow .p { font-weight: 800; font-size: 1rem; }
.mcard .prow .margin { font-size: .74rem; color: var(--ok); font-weight: 700; }
.mcard .foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.mcard .foot .actions { margin-left: auto; display: flex; gap: 2px; }
.mcard .foot .icon-btn { width: 32px; height: 32px; }
.bulkbar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: var(--shadow-lg); width: fit-content; margin: 0 auto; flex-wrap: wrap; }
.bulkbar .btn { background: transparent; color: inherit; border-color: rgba(127, 127, 127, .4); box-shadow: none; }
.img-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.img-pick button { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fbe9d7; }
.img-pick button.on { border-color: var(--accent); }
.img-pick svg { width: 100%; height: 100%; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.swatches button.on { box-shadow: 0 0 0 2px var(--accent); }
.preview-pic { height: 160px; border-radius: 12px; overflow: hidden; background: #fbe9d7; }
.preview-pic svg { width: 100%; height: 100%; }
.cat-list { display: grid; gap: 8px; }
.cat-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cat-row .handle { display: flex; flex-direction: column; }
.cat-row .handle button { color: var(--muted); padding: 0 4px; }
.cat-row .handle button:disabled { opacity: .3; }
.cat-row input { border: 0; background: transparent; font-weight: 600; padding: 6px 4px; border-radius: 6px; width: 100%; }
.cat-row input:focus { outline: none; background: var(--sunk); }

/* Meja & QR */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tcard { padding: 14px; display: grid; gap: 10px; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; position: relative; }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.tcard .tn { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tcard .tn small { font-family: var(--body); font-size: .72rem; color: var(--muted); font-weight: 600; display: block; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tcard .seats { position: absolute; top: 14px; right: 14px; display: flex; gap: 3px; }
.tcard .seats i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.tcard .st { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 22px; }
.tcard.busy { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.tcard.busy .seats i { background: var(--accent); }
.tcard.call { border-color: var(--warn); background: linear-gradient(180deg, var(--warn-soft), transparent 70%), var(--surface); }
.qr-big { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 16px; background: #fff; color: #1b1814; border: 1px solid var(--line); text-align: center; }
.qr-big .q svg { width: 200px; height: 200px; }
.qr-big .tent { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.qr-big small { color: #6b6158; }
.linkbox { display: flex; gap: 6px; align-items: center; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; font-size: .82rem; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; color: var(--ink-2); }

/* Promo */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pmcard { display: grid; overflow: hidden; }
.pmcard .ticketish { padding: 16px 18px; display: grid; gap: 4px; background: linear-gradient(120deg, var(--side), #3a1f14); color: #fff; position: relative; }
.pmcard .ticketish::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px; background: radial-gradient(circle at 6px 6px, var(--surface) 5px, transparent 5.5px) 0 0 / 16px 12px repeat-x; }
.pmcard.off .ticketish { background: linear-gradient(120deg, #4a443d, #6b6158); }
.pmcard .val { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.pmcard .code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .08em; font-size: .9rem; background: rgba(255, 255, 255, .12); padding: 3px 8px; border-radius: 6px; width: fit-content; margin-top: 6px; }
.pmcard .body { padding: 16px 18px 12px; display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); }
.pmcard .body b { color: var(--ink); font-size: .95rem; }
.pmcard .foot { display: flex; align-items: center; gap: 8px; padding: 10px 18px 14px; font-size: .82rem; color: var(--muted); }
.pmcard .foot .actions { margin-left: auto; display: flex; gap: 2px; }

/* Karyawan */
.perm td.c svg { margin: 0 auto; }
.perm .yes { color: var(--ok); }
.perm .no { color: var(--line-2); }
.role { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.role-Owner { background: var(--accent-soft); color: var(--accent); }
.role-Kasir { background: var(--info-soft); color: var(--info); }
.role-Dapur { background: var(--warn-soft); color: var(--warn); }
.role-Pelayan { background: var(--ok-soft); color: var(--ok); }

/* Pengaturan */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { display: grid; gap: 2px; position: sticky; top: 84px; }
.set-nav button { text-align: left; padding: 9px 12px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.set-nav button.on, .set-nav button:hover { background: var(--surface); color: var(--ink); }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row > div:first-child { flex: 1; }
.set-row b { display: block; font-size: .92rem; }
.set-row small { color: var(--muted); font-size: .82rem; }
.accent-pick { display: flex; gap: 10px; }
.accent-pick button { width: 34px; height: 34px; border-radius: 10px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.accent-pick button.on { box-shadow: 0 0 0 2px var(--ink); }

/* Command palette */
.cmdk { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(600px, calc(100% - 24px)); background: var(--surface); border-radius: 16px; z-index: 81; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-in input { flex: 1; border: 0; background: transparent; font-size: 1.02rem; outline: none; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.cmdk-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; font-weight: 700; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; width: 100%; text-align: left; font-size: .92rem; }
.cmdk-item svg { color: var(--muted); }
.cmdk-item small { margin-left: auto; color: var(--muted); font-size: .8rem; }
.cmdk-item.on { background: var(--accent-soft); }
.cmdk-item.on svg { color: var(--accent); }
.overlay.top { z-index: 80; }

/* Notifikasi */
.pop { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; text-align: left; }
.pop-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.pop-head button { margin-left: auto; font-size: .8rem; color: var(--accent); font-weight: 600; }
.pop-list { max-height: 360px; overflow-y: auto; }
.notif { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.notif:last-child { border-bottom: 0; }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.notif .ni.warn { background: var(--warn-soft); color: var(--warn); }
.notif small { color: var(--muted); font-size: .76rem; display: block; }
.notif.unread { background: var(--surface-2); }
.menu-pop { width: 230px; padding: 6px; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: .88rem; text-decoration: none; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--sunk); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-pop .lbl2 { font-size: .72rem; color: var(--muted); padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 11px 14px; border-radius: 12px; font-size: .88rem; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; max-width: 360px; }
.toast svg { color: var(--gold); }
.toast.ok svg { color: #4ade80; }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* Navigasi HP */
.pos-fab { display: none; }
.bottom-nav { display: none; }
.side-bg { display: none; }

/* Cetak */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; color: #000; }
  @page { margin: 8mm; }
}
.receipt { width: 280px; margin: 0 auto; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 12px; color: #000; background: #fff; padding: 16px 14px; line-height: 1.4; }
.receipt h3 { text-align: center; font-size: 15px; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 8px 0; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt .big { font-size: 14px; font-weight: 700; }
.receipt-preview { background: var(--sunk); padding: 16px; border-radius: 12px; display: grid; place-items: center; }
.receipt-preview .receipt { box-shadow: var(--shadow); }
.qr-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10mm; font-family: Figtree, Arial, sans-serif; color: #000; }
.qr-tent { border: 1.5px dashed #999; border-radius: 6mm; padding: 6mm; text-align: center; display: grid; gap: 2mm; justify-items: center; break-inside: avoid; }
.qr-tent b { font-size: 16pt; }
.qr-tent .q svg { width: 42mm; height: 42mm; }
.qr-tent small { font-size: 8pt; color: #444; }

/* Responsif */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-8, .span-4, .span-6, .span-5, .span-7 { grid-column: span 12; }
  .pos { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px; }
  .login-art h1 { margin-top: 10px; }
  .ticker { display: none; }
  .shell, .shell.mini { grid-template-columns: minmax(0, 1fr); --side-w: 270px; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .25s; }
  .shell.side-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .shell.side-open .side-bg { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 39; }
  .shell.mini .side .lbl, .shell.mini .side-group, .shell.mini .outlet-card, .shell.mini .brand > div { display: revert; }
  .shell.mini .nav { justify-content: flex-start; padding: 9px 10px; }
  .top { padding: 10px 14px; }
  .search-trigger span.lbl, .search-trigger kbd, .clock, .me > div { display: none; }
  .search-trigger { flex: none; width: 38px; height: 38px; padding: 0; justify-content: center; }
  .page { padding: 16px 14px 96px; gap: 16px; }
  .page-head h1 { font-size: 1.45rem; }
  .pos { grid-template-columns: 1fr; }
  .ticket { position: static; max-height: none; }
  .kanban { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
  .set-nav { position: static; display: flex; overflow-x: auto; }
  .set-nav button { white-space: nowrap; }
  .hello { grid-template-columns: 1fr; }
  .hello-actions { justify-content: flex-start; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { display: grid; justify-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; }
  .bottom-nav button.on { color: var(--accent); }
  .bottom-nav .count { position: absolute; top: 0; left: calc(50% + 6px); background: var(--accent); color: #fff; font-size: .62rem; border-radius: 999px; padding: 0 5px; font-weight: 700; }
  .pos-fab { display: flex; align-items: center; gap: 10px; position: fixed; left: 14px; right: 14px; bottom: 76px; z-index: 34; background: var(--accent); color: #fff; border-radius: 14px; padding: 13px 16px; font-weight: 700; box-shadow: 0 12px 28px -12px var(--accent); }
  .pos-fab[hidden] { display: none; }
  .pos-fab .n { background: rgba(255, 255, 255, .22); border-radius: 8px; padding: 1px 8px; }
  .pos-fab b { margin-left: auto; }
  .toolbar .legend { display: none; }
  .toasts { bottom: 80px; left: 14px; right: 14px; justify-items: stretch; }
  .pop { position: fixed; top: 60px; left: 10px; right: 10px; width: auto; }
  .drawer { width: 100%; }
}
@media (max-width: 600px) {
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-val { font-size: 1.35rem; }
  .spark { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat { grid-template-columns: 30px repeat(13, minmax(0, 1fr)); gap: 2px; font-size: .6rem; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .kds-wrap { padding: 12px; }
  .modal { top: auto; bottom: 0; transform: translate(-50%, 10%); width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal.open { transform: translate(-50%, 0); }
  .modal.wide { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
