/* Aplikasi owner, manager, dan kasir */
.brandmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brandmark .dot { width: 30px; height: 30px; border-radius: 8px; background: url(/logo.svg) center / cover no-repeat; color: transparent; font-size: 0; overflow: hidden; flex: none; }

/* masuk / daftar */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; }
.auth-card { width: min(100%, 440px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* kerangka dashboard: sisi kiri di PC/tablet, bawah di HP */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: var(--card); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 11px 12px; border-radius: var(--radius-sm); min-height: 44px; display: flex; align-items: center; }
.side-nav a:hover { background: var(--line-2); }
.side-nav a.on { background: var(--brand); color: var(--brand-ink); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.main { min-width: 0; }
.content { max-width: 1120px; margin: 0 auto; padding: 22px 24px 40px; }
.mobile-top, .bottom-nav { display: none; }
.page-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 2px; }
.page-head p { margin: 0; }
.content > * + .card, .content > * + .kpis, .content > * + .grid, .content > * + .stack { margin-top: 14px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 30; }
  .content { padding: 16px 16px 96px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; text-align: center; padding: 12px 4px; min-height: 56px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .85rem; display: grid; place-items: center; border-top: 3px solid transparent; }
  .bottom-nav a.on { color: var(--ink); border-top-color: var(--brand); }
}

.outlet-rows > * + *, .card > .outlet-row + .outlet-row { border-top: 1px solid var(--line); }
.outlet-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; }
.menu-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row.off { opacity: .6; }
.thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--line-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; flex: none; }
.thumb.big { width: 96px; height: 96px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.big-total { font-size: 1.6rem; font-weight: 800; margin: 10px 0; }
.swatch { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; }
.danger-card { border-color: var(--danger-text); }
.range input { width: auto; min-height: 40px; padding: 6px 8px; }

/* jadwal */
.sched-day { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sched-name { font-weight: 600; padding-top: 10px; }
.sched-sessions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sched-row { display: flex; gap: 6px; align-items: center; }
.sched-row input { width: 150px; }
@media (max-width: 480px) { .sched-day { grid-template-columns: 1fr; } .sched-name { padding-top: 0; } }

/* QR */
.qr-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-card .qr-box { width: 180px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; }
.table-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.table-item { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.table-item > .row { grid-column: 1 / -1; justify-content: flex-end; }
.table-item.off { opacity: .6; }
.table-item .grow { min-width: 0; }
.table-item .tiny { overflow-wrap: anywhere; }
.qr-mini { width: 64px; flex: none; background: #fff; border-radius: 6px; }
.qr-mini svg { width: 100%; height: auto; }

/* grafik */
.heat { display: grid; gap: 3px; font-size: .68rem; color: var(--muted); }
.heat .hc { aspect-ratio: 1; border-radius: 2px; min-height: 10px; }
.heat .dl { font-weight: 700; align-self: center; }
.rank { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: flex; gap: 10px; align-items: flex-start; }
.rank-no { width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--line-2); display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--ink-2); }
.rank-row:first-child .rank-no { background: var(--brand); color: var(--brand-ink); }
.rank-name { font-weight: 600; overflow-wrap: anywhere; }
.rank-bar { height: 6px; background: var(--line-2); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--brand); }

/* ---------- layar kasir (tablet landscape lebih dulu) ---------- */
.k-screen { min-height: 100dvh; display: flex; flex-direction: column; }
.k-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.k-top.offline { border-bottom: 3px solid var(--danger); }
.k-title { font-weight: 800; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.k-who { min-width: 0; flex: 1 1 auto; }
.open-toggle { appearance: none; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.open-toggle .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.open-toggle.is-open { border-color: var(--brand); } .open-toggle.is-open .dot { background: var(--brand); }
.open-toggle.is-closed { border-color: var(--danger-text); color: var(--danger-text); } .open-toggle.is-closed .dot { background: var(--danger); }
.open-toggle small { font-weight: 600; color: var(--muted); }
.k-body { padding: 12px; flex: 1; }
.lane-tabs { display: none; }
.lane-tabs .long { display: none; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lane, .o-card { min-width: 0; }
.o-card .row.between > .grow { min-width: 0; }
.lane { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 60vh; }
.lane h2 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 10px; }
.cnt { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-size: .85rem; margin-left: 6px; }
.o-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.o-card.fresh { border: 2px solid var(--brand); }
.o-code { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 64px; }
.o-name { font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fire { font-size: .85rem; font-weight: 800; background: var(--brand-soft); color: var(--link); padding: 1px 6px; border-radius: 6px; }
.link-btn { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--link); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.o-cust { font-size: .85rem; background: var(--brand-soft); border-radius: var(--radius-sm); padding: 6px 8px; margin-top: 8px; }
.o-items { list-style: none; padding: 0; margin: 10px 0 6px; font-size: 1.02rem; }
.o-items li { padding: 3px 0; }
.o-note { font-size: .85rem; color: var(--danger-text); font-weight: 600; }
.o-note.big { margin: 4px 0; }
.o-total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 6px; }
.o-actions { display: flex; gap: 8px; margin-top: 10px; }
.o-actions .btn.lg { min-height: 52px; }
.o-actions .more { border: 1px solid var(--line); width: 52px; height: 52px; }
.alert-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stock-list { display: flex; flex-direction: column; }
.stock-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.fav-list { margin: 4px 0 0; padding-left: 20px; }
@media (max-width: 1024px) {
  .lane-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
  .lane-tabs button { flex: 1; appearance: none; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 700; color: var(--ink); padding: 10px; border-radius: var(--radius-sm); min-height: 48px; cursor: pointer; }
  .lane-tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  .lane-tabs button.on .cnt { background: var(--brand-ink); color: var(--brand); }
  .lanes { grid-template-columns: 1fr; }
  .lane { display: none; min-height: 0; background: transparent; border: 0; padding: 0; }
  .lane.on { display: block; }
  .lane h2 { display: none; }
}

/* PIN */
.pin-screen { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.pin-card { width: min(100%, 380px); text-align: center; }
.pin-card h1 { font-size: 1.35rem; margin: 6px 0 18px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 10px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand); }
.pin-dots span.on { background: var(--brand); }
.pin-msg { min-height: 24px; color: var(--danger-text); font-weight: 600; margin-bottom: 8px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-key { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 1.7rem; font-weight: 700; height: 76px; border-radius: var(--radius); cursor: pointer; }
.pin-key:active { background: var(--brand); color: var(--brand-ink); }
.danger-text { color: var(--danger-text); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.mapbox { height: 260px; border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; margin-bottom: 10px; }
.qrbox { background: #fff; padding: 12px; border-radius: var(--radius-sm); max-width: 260px; margin: 0 auto; border: 1px solid var(--line); }
.qrbox svg { width: 100%; height: auto; display: block; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan-card { appearance: none; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.plan-card.on { border: 2px solid var(--brand); padding: 15px; }
.plan-name { font-size: 1.15rem; }
.plan-price { font-size: 1.5rem; font-weight: 800; margin-top: 4px; } .plan-price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan-feat { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; } .plan-feat li { margin: 2px 0; }
.card h4 { margin: 14px 0 4px; }
.o-variant { font-size: .88rem; font-weight: 600; color: var(--ink); opacity: .85; }
.stock-item { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.stock-item .stock-row { border-bottom: 0; }
.stock-opts { display: flex; flex-direction: column; gap: 6px; padding: 0 0 6px 30px; }
.stock-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { appearance: none; font: inherit; font-size: .85rem; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 4px 12px; min-height: 32px; cursor: pointer; }
.chip.off { background: transparent; color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.vg-edit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 10px; }
.vo-edit { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.scan-box { position: relative; background: #000; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; max-width: 360px; width: 100%; margin: 0 auto; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 15%; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

.k-top-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }
.k-who { flex: 1 1 auto; min-width: 0; }
.k-sub { overflow-wrap: anywhere; }
.k-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.k-narrow { display: none; }
.open-toggle { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) {
  .k-wide { display: none !important; }
  .k-narrow { display: inline-flex; }
  .k-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .k-actions { justify-content: stretch; flex-wrap: nowrap; }
  .k-actions > .btn { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .open-toggle small { display: none; }
}

/* ---- perapian layar kecil ---- */
.main, .content, .card, .grow { min-width: 0; }
.qr-card > * { min-width: 0; }
.qr-card > :last-child { flex: 1 1 160px; overflow-wrap: anywhere; }
.table-list { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.sched-sessions { width: 100%; }
.sched-row { width: 100%; max-width: 340px; }
.sched-row input { width: auto; flex: 1 1 0; min-width: 0; }
.range { flex-wrap: wrap; }
.range input { flex: 1 1 130px; min-width: 0; }
.card p, .card .small, .card .tiny, .banner { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .table-item .tiny { white-space: normal; }
  .page-head { flex-wrap: wrap; }
  .page-head > .btn, .page-head > .row { width: 100%; }
  .page-head .btn { justify-content: center; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .vo-edit { grid-template-columns: minmax(0, 1fr) 90px auto; }
}
.row.nowrap.range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; width: 100%; max-width: 360px; }
.range input { width: 100%; min-width: 0; }
.sched-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
.sched-row input { width: 100%; min-width: 0; padding-left: 6px; padding-right: 6px; }
.k-narrow-inline { display: none; }
@media (max-width: 760px) {
  .k-top-main { flex: none; }
  .k-wide-inline { display: none; }
  .k-narrow-inline { display: inline; }
}
@media (max-width: 480px) {
  .menu-row { align-items: center; gap: 8px; }
  .menu-row .thumb { width: 44px; height: 44px; }
  .menu-row .thumb.empty { display: none; }
}
.stock-cat { margin-bottom: 14px; }
.stock-cat-head { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 2px solid var(--line); }
.stock-cat-head b { flex: 1; }
.stock-row2 { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.stock-item.hidden-menu .stock-row2 > .grow { opacity: .55; }
.switch { appearance: none; border: 0; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; padding: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.switch.on { background: var(--brand); } .switch.on i { left: 21px; }
.receipt-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.receipt-preview { position: sticky; top: 12px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rp-col { display: flex; flex-direction: column; gap: 4px; }
.rp-col .receipt { box-shadow: 0 1px 6px rgba(0,0,0,.18); border-radius: 4px; width: 240px; }
.rp-col .receipt.p80 { width: 320px; }
@media (max-width: 900px) { .receipt-edit { grid-template-columns: minmax(0, 1fr); } .receipt-preview { position: static; } }

.receipt{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;line-height:1.35;color:#000;background:#fff;padding:8px 6px;box-sizing:border-box}
.receipt .b{font-weight:700}.receipt .big{font-size:1.6em;line-height:1.2}
.r-row{display:flex;justify-content:space-between;gap:8px}.r-row span:last-child{text-align:right;white-space:nowrap}
.r-line{border-top:1px dashed #000;margin:5px 0}.r-feed{height:10px}.r-logo img{max-width:100%;filter:grayscale(1)}
.r-qr{text-align:center;margin-top:6px}.r-qr svg{width:55%;height:auto}.r-c{text-align:center}.r-logo{margin-bottom:4px}
.o-actions > * { min-width: 0; }
.o-actions .print-btn { border: 1px solid var(--line); width: 52px; height: 52px; flex: none; }
.o-actions .more { flex: none; }
@media (max-width: 480px) {
  .o-actions { gap: 6px; }
  .o-actions .btn.lg { padding-left: 10px; padding-right: 10px; }
  .o-actions .more, .o-actions .print-btn { width: 46px; }
}
.heat .hl { overflow: visible; white-space: nowrap; font-size: .62rem; }
@media (max-width: 480px) { .heat { gap: 2px; } }
.install-steps { margin: 0; padding-left: 20px; } .install-steps li { margin: 6px 0; }
.tabbar { margin-bottom: 16px; }
.tabstrip { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.tabstrip .tabs { border-bottom: 0; margin-bottom: 0; flex: 1 1 auto; min-width: 0; scroll-behavior: smooth; }
.tab-arrow { appearance: none; border: 0; background: var(--bg); color: var(--ink); font-size: 1.4rem; width: 36px; cursor: pointer; flex: none; box-shadow: 0 0 12px 6px var(--bg); z-index: 1; }
.tab-arrow:hover { color: var(--brand); }
.tabstrip .tabs button { display: inline-flex; align-items: center; gap: 7px; padding-left: 12px; padding-right: 12px; }
.tabstrip .tabs button .ic.g { margin: 0; }
.tabstrip .tabs button .ic svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .tabstrip { border-bottom: 0; }
  .tab-arrow { display: none; }
  .tabstrip .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .tabstrip .tabs button { flex-direction: column; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 4px; font-size: .8rem; line-height: 1.15; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink-2); }
  .tabstrip .tabs button .ic svg { width: 20px; height: 20px; }
  .tabstrip .tabs button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .tabstrip .tabs button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
}

/* sub halaman (Staf: Tim / Jam kerja) */
.sub-switch { margin-bottom: 16px; }
.sub-switch .seg button { display: inline-flex; align-items: center; gap: 6px; }
.sub-switch .seg button .ic.g { margin: 0; }
@media (max-width: 640px) { .sub-switch .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .sub-switch .seg button { justify-content: center; } }

/* Pengaturan: daftar sub menu + isi */
.set-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px 10px; }
.set-group { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 14px 10px 6px; }
.set-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; min-height: 52px; }
.set-item:hover { background: var(--card-2); }
.set-item.on { background: var(--brand-soft); }
.set-item.on .set-t { color: var(--link); }
.set-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.set-item.on .set-ic { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.set-ic svg { width: 18px; height: 18px; }
.set-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.set-t { font-weight: 600; line-height: 1.25; }
.set-d { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.set-st { flex: none; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.set-st.ok { background: var(--brand-soft); color: var(--link); }
.set-st.warn { background: var(--danger-soft); color: var(--danger-text); }
.set-chev { display: none; color: var(--muted); flex: none; }
.set-chev svg { width: 18px; height: 18px; }
.set-back { display: none; }
.set-head { margin-bottom: 14px; }
.set-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.set-head p { margin: 0; }
@media (max-width: 960px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .set-nav { position: static; padding: 4px 6px 8px; }
  .set-layout.has-sub .set-nav { display: none; }
  .set-layout:not(.has-sub) .set-body { display: none; }
  .set-item { min-height: 62px; padding: 12px 10px; }
  .set-item + .set-item { border-top: 1px solid var(--line-2); border-radius: 0; }
  .set-item.on:not(:hover) { background: transparent; }
  .set-item.on .set-t { color: var(--ink); }
  .set-item.on .set-ic { background: var(--card-2); border-color: var(--line-2); color: var(--ink-2); }
  .set-chev { display: block; }
  .set-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; margin: 0 0 12px -4px; padding: 6px 8px 6px 2px; min-height: 40px; }
  .set-back svg { width: 20px; height: 20px; }
}
.place-search gmp-place-autocomplete, .place-search gmp-placeautocomplete { width: 100%; color-scheme: light dark; }

.o-actions .grow { flex: 1 1 96px; min-width: 96px; }
.o-actions .btn.lg:not(.grow) { flex: 0 1 auto; padding-left: 12px; padding-right: 12px; }
.o-card > .row.nowrap { flex-wrap: wrap; row-gap: 4px; }
.o-card > .row.nowrap > .grow { flex: 1 1 140px; }
.o-card > .row.nowrap > .badge { margin-left: auto; }
.content > * + .card, .content > * + .kpis, .content > * + .grid, .content > * + .stack { margin-top: 18px; }
.outlet-row { padding: 14px 0; gap: 14px; }
.menu-row { padding: 14px 0; gap: 14px; }
.page-head { margin-bottom: 20px; }
.grid2 { gap: 0 18px; }
.r-logo img { display: inline-block; }
.r-logo[style*="center"] img { margin: 0 auto; display: block; }
@media (max-width: 1280px) { .receipt-edit { grid-template-columns: minmax(0, 1fr); } .receipt-preview { position: static; justify-content: flex-start; } }
.rp-col { max-width: 100%; }
.rp-col .receipt { max-width: 100%; }
.route-holder { display: contents; }

/* Menu (dashboard): kelompok per kategori, seret untuk mengurutkan */
.menu-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 12px; }
.menu-hint > span { display: inline-flex; align-items: center; gap: 4px; }
.menu-hint .ic.g { margin-right: 0; }
.menu-groups { display: flex; flex-direction: column; gap: 14px; }
.menu-groups > .card + .card { margin-top: 0; }
.menu-group { padding: 8px 14px 6px; }
.menu-group-head { display: flex; align-items: center; gap: 8px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.menu-group-head b { font-size: 1rem; }
.cat-edit { appearance: none; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 10px; cursor: pointer; min-width: 0; text-align: left; min-height: 44px; }
.cat-edit b { overflow-wrap: anywhere; }
.cat-edit:hover { background: var(--card-2); border-color: var(--line); }
.cat-edit:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cat-edit .cat-ic { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.cat-pen { color: var(--muted); display: inline-grid; flex: none; }
.cat-pen .ic { width: 16px; height: 16px; margin: 0; }
.cat-ic-btn { appearance: none; border: 1px solid var(--line); background: var(--card-2); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; padding: 0; }
.cat-ic-btn:hover { border-color: var(--muted); }
.cat-ic .ic, .cat-ic-btn .ic { width: 19px; height: 19px; }
.menu-group-rows .menu-row:last-child { border-bottom: 0; }
.menu-row .thumb .ic { width: 20px; height: 20px; color: var(--muted); }
.star-btn { color: var(--muted); }
.star-btn.on { color: #C98A12; }
.star-btn .ic { width: 20px; height: 20px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.icon-pick { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; height: 52px; display: grid; place-items: center; cursor: pointer; }
.icon-pick .ic { width: 24px; height: 24px; }
.icon-pick:hover { border-color: var(--muted); }
.icon-pick.on { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--link); }
.sort-drag.menu-row, .sort-drag.table-item { padding-left: 8px; padding-right: 8px; }
.sort-drag.menu-group { padding: 8px 14px; }
/* sorotan */
.shelves-card { margin-bottom: 14px; }
.shelf-rows { margin-top: 10px; }
.shelf-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.shelf-item .grow { min-width: 0; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.preset { appearance: none; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 10px; cursor: pointer; font: inherit; }
.preset > span:last-child { display: flex; flex-direction: column; }
.preset:hover:not(:disabled) { border-color: var(--muted); }
.preset:disabled { opacity: .45; cursor: not-allowed; }
.icon-grid.small { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.icon-grid.small .icon-pick { height: 44px; }
.pick-list { max-height: 300px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.pick-list .check { padding: 8px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.pick-list .check:last-child { border-bottom: 0; }
/* pilihan gaya kepala halaman pelanggan */
.band-picks-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.band-pick { appearance: none; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: center; }
.band-pick.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.band-pick:disabled { opacity: .55; cursor: not-allowed; }
.band-prev { position: relative; display: block; height: 58px; border-radius: 8px; background: var(--brand); overflow: hidden; }
.band-prev.gradient { background-image: linear-gradient(155deg, color-mix(in srgb, var(--brand) 72%, #fff) 0%, var(--brand) 48%, color-mix(in srgb, var(--brand) 78%, #000) 100%); }
.band-prev.pattern { background-image: radial-gradient(circle at 25% 30%, rgba(255,255,255,.22) 0 3px, transparent 4px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.22) 0 3px, transparent 4px); background-size: 22px 22px; }
.band-prev i { position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.55); }
.band-prev b { position: absolute; left: 8px; right: 8px; bottom: -6px; height: 18px; border-radius: 6px; background: var(--card); }
/* mode bantuan tim Kastral */
.support-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #FFF4D6; color: #4A3500; border-bottom: 1px solid #E8C76A; font-size: .9rem; }
.support-bar .grow { min-width: 200px; }
.support-bar .btn { background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .support-bar { background: #3A2E0B; color: #FCE7A6; border-color: #6B5414; } :root:not([data-theme="light"]) .support-bar .btn { background: transparent; color: inherit; } }
:root[data-theme="dark"] .support-bar { background: #3A2E0B; color: #FCE7A6; border-color: #6B5414; }
.support-log { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.k-screen > .support-bar { position: static; }

/* Pemilih outlet (owner dengan 2+ outlet): nama tidak dipotong, boleh turun baris */
.outlet-switch { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 0 0 14px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.outlet-switch:hover { border-color: var(--brand); }
.outlet-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.outlet-switch .os-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); }
.outlet-switch .os-chev { flex: none; margin-left: auto; display: grid; place-items: center; }
.os-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; line-height: 1.3; }
.os-list { display: flex; flex-direction: column; gap: 8px; }
.os-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.os-row.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.os-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
