/* VOICE: practical, quick, friendly — a tool for a busy 24-hour shop counter
   IDEA: a shop's nota book + calculator merged into one screen
   PICTURE: the running nota with its big total is the picture; keypad below
   COLOUR and TYPE: leaf green of the shop sign, mint fields, chili red for Bayar; Plus Jakarta Sans
   LAYOUT: phone = nota on top, keypad bottom, tabs at the foot; wide = nota left, keypad right */
:root{color-scheme:light dark;
--bg:light-dark(#f3f5fa,#070f24);--panel:light-dark(#fff,#0f1c3a);--panel2:light-dark(#eaeff8,#17284d);
--ink:light-dark(#0c1a33,#e8edf7);--mute:light-dark(#56627a,#9aa7c1);--line:light-dark(#d8dfec,#24345a);
--brand:light-dark(#0b2559,#3d6fd6);--mint:light-dark(#dce5f5,#172b52);--chili:#e3141f;--ok:light-dark(#2c8a14,#6fd65a)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}[hidden]{display:none!important}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.5 "Plus Jakarta Sans",system-ui,sans-serif;overflow-x:clip;-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--chili);outline-offset:2px}
.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.top{position:sticky;top:0;z-index:5;height:54px;display:flex;align-items:center;gap:12px;padding:0 max(14px,env(safe-area-inset-left));background:var(--brand);color:#fff}
.top b{font-size:18px;font-weight:800;letter-spacing:-.01em}
.top small{opacity:.8;font-size:13px}
.top .sp{flex:1}
.top button{height:36px;padding:0 12px;border-radius:18px;background:rgba(255,255,255,.16);font-size:13px;font-weight:700}
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(4,1fr);background:var(--panel);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabs button{height:60px;font-size:13px;font-weight:700;color:var(--mute);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.tabs button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2}
.tabs button.on{color:var(--brand)}
main{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
/* kasir */
#v-kasir{display:flex;flex-direction:column;height:calc(100vh - 54px - 62px);height:calc(100dvh - 54px - 62px - env(safe-area-inset-bottom))}
.cart{flex:1;min-height:130px;display:flex;flex-direction:column;background:var(--panel)}
.cart-list{flex:1;overflow:auto;padding:4px 14px}
.row{display:grid;grid-template-columns:10px minmax(0,1fr) auto 40px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.row i{width:10px;height:10px;border-radius:50%}
.row b{display:block;font-weight:700;line-height:1.25}
.row small{display:block;color:var(--mute);font-size:13px}
.row .num{font-weight:700}
.del{width:40px;height:40px;border-radius:10px;color:var(--mute);font-size:22px}
.del:hover{background:var(--panel2);color:var(--chili)}
.empty{padding:22px 4px;color:var(--mute);font-size:15px}
.empty b{color:var(--ink)}
.totbar{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--mint)}
.totbar div{flex:1}
.totbar small{display:block;font-size:13px;color:var(--mute);font-weight:600}
#tot{display:block;font-size:clamp(28px,8vw,40px);font-weight:800;line-height:1.05;letter-spacing:-.02em}
.btn-pay{height:56px;padding:0 26px;border-radius:16px;background:var(--chili);color:#fff;font-size:19px;font-weight:800}
.btn-pay:disabled{opacity:.35;cursor:default}
.pad{flex:none;display:grid;gap:7px;padding:8px 10px 10px}
.disp{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:2px 4px}
#hint{font-size:13px;color:var(--mute);line-height:1.3}
#hint.warn{color:var(--chili);font-weight:700}
#disp{font-size:28px;font-weight:800;letter-spacing:-.02em}
.cats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.cats button{height:44px;border-radius:10px;background:var(--panel);border:1px solid var(--line);border-bottom:4px solid var(--c);font-size:13px;font-weight:700;padding:0 2px}
.cats button:active,.keys button:active,.chips button:active{transform:scale(.96)}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:1px 0}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;height:40px;padding:0 13px;border-radius:20px;background:var(--panel2);font-size:13px;font-weight:700;white-space:nowrap}
.chips small{color:var(--mute);font-weight:600;margin-left:4px}
.keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.keys button{height:clamp(46px,6.5dvh,56px);border-radius:12px;background:var(--panel);border:1px solid var(--line);font-size:22px;font-weight:700}
.keys .fn{background:var(--panel2);font-size:18px}
.keys .w2{grid-column:span 2}
.keys .plus{background:var(--brand);color:#fff;font-size:15px;border-color:transparent}
@media (prefers-reduced-motion:no-preference){.shake{animation:sh .3s}@keyframes sh{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}.row.new{animation:fi .25s}@keyframes fi{from{background:var(--mint)}}}
@media(min-width:900px){
 #v-kasir{display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:16px;padding:16px;max-width:1240px;margin:auto}
 .cart{border-radius:18px;border:1px solid var(--line);overflow:hidden}
 .pad{align-content:end;padding:0}
}
/* other views */
.wrap{max-width:1100px;margin:auto;padding:16px max(14px,env(safe-area-inset-left)) 28px}
h2{font-size:clamp(24px,5vw,32px);line-height:1.1;margin:6px 0 12px;letter-spacing:-.02em;text-wrap:balance}
h3{font-size:18px;margin:0 0 10px}
.seg{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:14px}
.seg button{flex:none;height:40px;padding:0 15px;border-radius:20px;background:var(--panel);border:1px solid var(--line);font-size:14px;font-weight:700}
.seg button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.hero{background:var(--brand);color:#fff;border-radius:20px;padding:20px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px}
.hero .big{font-size:clamp(34px,9vw,54px);font-weight:800;line-height:1.02;letter-spacing:-.03em}
.hero small{display:block;opacity:.82;font-size:14px}
.hero .side{display:grid;gap:10px;align-content:center;border-left:1px solid rgba(255,255,255,.25);padding-left:18px}
.hero .side strong{font-size:20px}
@media(max-width:600px){.hero{grid-template-columns:1fr}.hero .side{border-left:0;padding-left:0;border-top:1px solid rgba(255,255,255,.25);padding-top:12px}}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.card small{display:block;color:var(--mute);font-size:13px;font-weight:600}
.card strong{font-size:19px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;margin-top:12px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:0 12px}
.cols{display:flex;align-items:flex-end;gap:3px;height:150px;padding-top:8px}
.cols div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;height:100%;align-items:center}
.cols span{width:100%;background:var(--brand);border-radius:4px 4px 0 0;min-height:2px}
.cols span.hot{background:var(--chili)}
.cols em{font-style:normal;font-size:11px;color:var(--mute);height:16px;line-height:16px}
.bar{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 0;font-size:14px}
.bar .tr{height:12px;background:var(--panel2);border-radius:6px;overflow:hidden}
.bar .tr span{display:block;height:100%;border-radius:6px}
.muted,.mute{color:var(--mute);font-size:14px}
.list{display:grid}
.li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.li:last-child{border-bottom:0}
.li .t{color:var(--mute);font-variant-numeric:tabular-nums}
.li .d{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.badge{display:inline-block;font-size:12px;font-weight:700;padding:1px 8px;border-radius:10px;background:var(--panel2);margin-right:6px}
.badge.qris{background:#dbe7ff;color:#1d3f8f}.badge.kasbon{background:#ffe2df;color:#8e1d16}.badge.prive{background:#efe3ff;color:#4b1f8f}.badge.bayar{background:#e4f3dc;color:#1d5f0e}
label{display:block;font-size:14px;font-weight:700;margin:10px 0 0}
input,select{display:block;width:100%;height:48px;margin-top:5px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:16px}
.primary{display:flex;align-items:center;justify-content:center;width:100%;height:54px;margin-top:14px;border-radius:14px;background:var(--brand);color:#fff;font-size:17px;font-weight:800;text-decoration:none}
.primary:disabled{opacity:.35;cursor:default}
.ghost{display:flex;align-items:center;justify-content:center;width:100%;height:54px;margin-top:14px;border-radius:14px;border:2px solid var(--brand);color:var(--brand);font-weight:800;text-decoration:none;text-align:center;font-size:15px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.small-btn{height:40px;padding:0 14px;border-radius:12px;background:var(--panel2);font-weight:700;font-size:14px}
.sumline{display:flex;justify-content:space-between;align-items:baseline;padding:12px 0 0;font-weight:700}
.sumline strong{font-size:22px}
.sumline .neg{color:var(--chili)}.sumline .pos{color:var(--ok)}
.quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.quick button{height:42px;padding:0 14px;border-radius:12px;background:var(--panel2);font-weight:700;font-size:15px}
details{margin-top:10px}summary{cursor:pointer;font-weight:700;font-size:14px;color:var(--brand);min-height:32px}
.mgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:4px 10px}
.mgrid label{font-weight:600}
/* sheet */
.sheet-wrap{position:fixed;inset:0;z-index:20;background:rgba(4,10,26,.5);display:flex;align-items:flex-end;justify-content:center}
.sheet{position:relative;width:min(560px,100%);max-height:92dvh;overflow:auto;background:var(--panel);border-radius:22px 22px 0 0;padding:20px 18px calc(18px + env(safe-area-inset-bottom))}
@media(min-width:700px){.sheet-wrap{align-items:center}.sheet{border-radius:22px}}
.sheet .x{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:12px;font-size:24px;color:var(--mute)}
.paytot{font-size:clamp(36px,10vw,48px);font-weight:800;letter-spacing:-.03em;margin:0 0 12px}
.seg.pm button{flex:1}
.struk{background:var(--bg);border:1px dashed var(--line);border-radius:12px;padding:12px;font-size:13px;white-space:pre-wrap;max-height:200px;overflow:auto;margin:12px 0 0}
#toast{position:fixed;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 18px;border-radius:22px;font-weight:700;font-size:14px;z-index:30;opacity:0;pointer-events:none;transition:opacity .2s}
#toast.on{opacity:1}
.note{font-size:13px;color:var(--mute);margin-top:12px}
/* ---- PWA tambahan ---- */
.pill{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:18px;background:rgba(255,255,255,.16);font-size:13px;font-weight:700;color:#fff}
.pill i{width:8px;height:8px;border-radius:50%;background:#ff5a60}
.pill.wait i{background:#ffd43b}.pill.off i{background:#c9d0dc}.pill.err i{background:#ff8a80}
.top .menu{width:40px;padding:0;font-size:20px;line-height:1}
#v-login{min-height:calc(100dvh - 54px);display:grid;place-items:center;padding:24px 16px}
.login{width:min(420px,100%);background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:24px 20px}
.login h2{margin-top:0}
.msg{border-radius:12px;padding:10px 12px;margin-top:12px;font-size:14px;background:#ffe2df;color:#8e1d16}
.li.tap{cursor:pointer}.li.tap:hover{background:var(--panel2)}
.li.void .d,.li.void .num{text-decoration:line-through;opacity:.55}
.badge.batal{background:#eceff1;color:#555}
.menu-list{display:grid;gap:8px;margin-top:12px}
.menu-list button{height:52px;border-radius:14px;background:var(--panel2);font-weight:700;text-align:start;padding:0 16px}
.menu-list .danger{background:#ffe2df;color:#8e1d16}
.frow{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:6px 8px;padding:12px 0;border-bottom:1px solid var(--line)}
.frow input,.frow select{height:44px;margin-top:0}
.frow .full{grid-column:1/-1;display:flex;gap:8px;align-items:center}
.frow .full>*{flex:1}
.frow .del{flex:none}
.urow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.urow small{display:block;color:var(--mute)}
.inline{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:14px;font-weight:600}
.inline input{width:auto;height:auto;margin:0}
.statline{font-size:13px;color:var(--mute);margin-top:6px}
.pw{position:relative;display:block}
.pw input{padding-right:52px}
.eye{position:absolute;right:2px;top:29px;transform:translateY(-50%);width:44px;height:44px;border-radius:10px;display:grid;place-items:center;color:var(--mute)}
.eye:hover{color:var(--ink)}
.eye svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.pindots{display:flex;justify-content:center;gap:14px;margin:18px 0 8px}
.pindots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--brand)}
.pindots i.on{background:var(--brand)}
.pinkeys{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}

/* langganan & tagihan */
.due{display:block;width:100%;text-align:left;padding:10px 16px;background:#fff1d6;color:#6b4500;font-size:14px;font-weight:600;border-bottom:1px solid #f1d9a6}
.due b{font-weight:800}.due.late{background:#ffe2df;color:#8e1d16;border-color:#f5c1bb}
:root[data-theme=dark] .due{background:#3a2c10;color:#ffd27a;border-color:#4d3a14}:root[data-theme=dark] .due.late{background:#3a1715;color:#ff9a8f;border-color:#55211d}
.sub-st{background:var(--panel2);border-radius:14px;padding:12px 14px;margin-top:10px;font-size:14px}.sub-st b{font-size:16px}
.pk{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:16px;padding:14px;margin-top:10px;background:var(--bg);position:relative}
.pk[aria-pressed="true"]{border:2px solid var(--brand)}
.pk h4{margin:0;font-size:16px}.pk .pr{font-size:24px;font-weight:800;letter-spacing:-.02em;margin-top:4px}.pk .pr small{font-size:13px;color:var(--mute);font-weight:600}
.pk p{margin:4px 0 0;font-size:13px;color:var(--mute)}.pk .tag{position:absolute;top:12px;right:12px;background:var(--chili);color:#fff;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px}
.inv{border:2px dashed var(--brand);border-radius:16px;padding:14px;margin-top:12px}
.inv .amt{font-size:32px;font-weight:800;letter-spacing:-.02em;margin:2px 0}.inv .amt u{text-decoration:none;background:#fff1d6;color:#8a3b00;border-radius:6px;padding:0 4px}
:root[data-theme=dark] .inv .amt u{background:#3a2c10;color:#ffd27a}
.inv .row{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin-top:4px}.inv .row span{color:var(--mute)}
.rek{white-space:pre-wrap;background:var(--panel2);border-radius:12px;padding:10px 12px;font-size:14px;margin-top:8px}
.stbadge{display:inline-block;font-size:12px;font-weight:800;padding:3px 9px;border-radius:999px;background:var(--panel2)}
.stbadge.cek{background:#fff1d6;color:#8a5a00}.stbadge.lunas{background:#e4f3dc;color:#1d5f0e}.stbadge.batal{color:var(--mute)}
.ok-msg{background:#e4f3dc;color:#1d5f0e;border-radius:12px;padding:10px 12px;margin-top:10px;font-size:14px}
.sheet .sec{margin:14px 0 0;font-size:13px;font-weight:800;color:var(--mute)}

/* KASIR_KUNCI_V1: pengingat bayar & mode kalkulator */
.nag h3{margin:0 0 8px;font-size:20px}.nag p{margin:0 0 10px;line-height:1.5}
.nag-st{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.nag-st div{background:var(--panel2);border-radius:12px;padding:10px 12px}.nag-st small{display:block;color:var(--mute);font-size:12px}.nag-st b{font-size:16px}
.nag-lost{background:#ffe2df;color:#8e1d16;border-radius:12px;padding:10px 12px;font-size:14px;margin:10px 0}
:root[data-theme=dark] .nag-lost{background:#3a1715;color:#ff9a8f}
.nag-pk{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}.nag-pk div{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:14px}.nag-pk div:first-child{border:2px solid var(--brand)}
.nag-pk .tag{background:var(--chili);color:#fff;font-size:10px;font-weight:800;padding:2px 6px;border-radius:999px}.nag-pk small{color:var(--mute)}
.lockc{text-align:center;max-width:440px;margin:30px auto;padding:26px 20px;background:var(--panel);border-radius:22px}.lockc h2{margin:6px 0 8px}.lockc p{line-height:1.5}
.lk-ic{font-size:42px}
body.mode-kunci .totbar{box-shadow:inset 0 3px 0 #e3141f}

/* logo toko */
.toko-logo{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#fff;margin-right:10px;flex:none;border:2px solid rgba(255,255,255,.6)}
.struk-logo{display:block;width:64px;height:64px;border-radius:50%;margin:0 auto 6px;object-fit:cover}
.crop-wrap{position:relative;width:min(280px,100%);aspect-ratio:1;margin:12px auto 0;border-radius:16px;overflow:hidden;background:var(--panel2);touch-action:none}
.crop-wrap canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}
.crop-ring{position:absolute;inset:0;pointer-events:none;border-radius:16px;box-shadow:inset 0 0 0 9999px rgba(0,0,0,0);background:radial-gradient(circle at center,transparent 69%,rgba(0,0,0,.45) 70%)}
.crop-ctl{display:flex;gap:8px;align-items:center;margin-top:10px}.crop-ctl input{flex:1;height:auto;margin:0;padding:0;border:0;background:none}
.crop-ctl .small-btn{min-width:44px}
.top>div:first-of-type{min-width:0;flex:0 1 auto;overflow:hidden}
#tokoName{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
#clock{white-space:nowrap}
.pill{white-space:nowrap}

/* TAHAP 2 */
.ana-g{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media (max-width:640px){.ana-g{grid-template-columns:1fr}}
.ana-t{margin:0 0 8px;font-size:13px;font-weight:800;color:var(--mute)}
.chip-pct{font-size:11px;padding:2px 7px;border-radius:99px}.chip-pct.up{background:#e4f3dc;color:#1d5f0e}.chip-pct.dn{background:#ffe2df;color:#8e1d16}
.wk{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;height:150px;align-items:end}
.wk div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}.wk b{font-size:11px}
.wk span{width:70%;background:var(--panel2);border-radius:8px 8px 3px 3px;min-height:4px}.wk span.now{background:var(--brand)}.wk em{font-style:normal;font-size:11px;color:var(--mute)}
.hr{display:flex;gap:3px;height:120px;align-items:flex-end}.hr div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;height:100%}
.hr span{background:var(--panel2);border-radius:4px 4px 1px 1px;min-height:2px}.hr span.hot{background:var(--chili)}.hr em{font-style:normal;font-size:10px;color:var(--mute);height:14px;text-align:center}
.ana .bar b{font-size:13px;min-width:62px;text-align:right}
.wa-btn{background:#d9fdd3;color:#1d5f0e}
.ta{display:block;width:100%;margin-top:5px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font:inherit;font-size:14px;line-height:1.45;resize:vertical}
.tour{position:fixed;inset:0;z-index:60}
.tour-hole{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(4,10,26,.72);transition:all .25s;pointer-events:none}
.tour-tip{position:fixed;left:14px;right:14px;max-width:420px;margin:auto;background:var(--panel);color:var(--ink);border-radius:16px;padding:14px 16px;box-shadow:0 16px 40px rgba(0,0,0,.3)}
.tour-tip p{margin:6px 0 10px;line-height:1.45;font-size:14px}.tour-b{display:flex;justify-content:space-between;gap:10px}
.tour-b button{height:42px;padding:0 16px;border-radius:12px;font-weight:800;background:var(--panel2)}.tour-b .go{background:var(--brand);color:#fff}
.ana .bar .tr span{background:var(--brand)}
.ana .bar{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto}.ana .bar>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* KASIR_RAPAT_V1: layar kasir pas satu layar HP (patokan HP murah 360x640, lebar 320-480) tanpa perlu digulir */
.empty{padding:10px 2px;font-size:13px;line-height:1.4}
@media (max-width:899px){
 .top{height:50px}
 .tabs button{height:54px;gap:2px;font-size:12px}
 .tabs button svg{width:20px;height:20px}
 main{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
 #v-kasir{height:calc(100vh - 50px - 56px);height:calc(100dvh - 50px - 56px - env(safe-area-inset-bottom))}
 #v-login{min-height:calc(100dvh - 50px)}
 .cart{min-height:84px}
 .cart-list{padding:2px 12px}
 .row{padding:6px 0}
 .del{width:34px;height:34px}
 .totbar{padding:6px 12px}
 #tot{font-size:clamp(26px,7.5vw,36px)}
 .btn-pay{height:48px;padding:0 22px;font-size:18px;border-radius:14px}
 .pad{gap:5px;padding:5px 8px 7px}
 .disp{padding:0 4px}
 #disp{font-size:24px}
 .cats{gap:5px}
 .cats button{height:clamp(34px,5.2dvh,42px);border-bottom-width:3px}
 .chips{gap:5px}
 .chips button{height:clamp(32px,4.6dvh,38px);padding:0 12px}
 .keys{gap:5px}
 .keys button{height:clamp(38px,6.2dvh,54px);font-size:21px}
}
/* tahan huruf besar (pengaturan ukuran huruf HP) */
@media (max-width:899px){
 .top{line-height:1.15}
 .top small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tabs button{white-space:nowrap;overflow:hidden;min-width:0}
 .disp{align-items:center}
 #hint{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .cats button{font-size:11.5px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;padding:0 1px}
 .top button{padding:0 10px;font-size:12px}
 .chips button{font-size:12.5px}
}
/* KASIR_MENU_V2: menu kelompok berikon */
.mh{display:flex;gap:14px;align-items:center;padding:2px 44px 6px 0}
.mh-av{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:19px;font-weight:800;letter-spacing:.02em}
.mh-tx{min-width:0}
.mh-tx h3{margin:0;font-size:19px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-tx p{margin:2px 0 0;font-size:13px;color:var(--mute)}
.mh-pl{display:inline-flex;gap:6px;align-items:center;margin-top:6px;font-size:12px;color:var(--mute);background:var(--panel2);border-radius:999px;padding:3px 10px 3px 4px}
.mh-pl b{background:var(--chili);color:#fff;border-radius:999px;padding:1px 8px;font-size:11px;letter-spacing:.02em}
.mn.menu-list{display:block;margin-top:10px}
.ms{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--panel2)}
.ms .sd{flex:none;width:9px;height:9px;border-radius:50%;background:var(--ok)}.ms .sd.wait{background:var(--chili)}.ms .sd.err{background:#d93025}.ms .sd.off{background:var(--mute)}
.ms span{flex:1;min-width:0}.ms b{display:block;font-size:14px}.ms small{display:block;font-size:12px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mn .ms-b{flex:none;height:34px;padding:0 14px;border-radius:10px;background:var(--brand);color:#fff;font-size:13px;font-weight:700;text-align:center}
.mg-t{margin:16px 4px 6px;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.mg{border-radius:16px;background:var(--panel2);overflow:hidden;margin-top:14px}
.mg-t+.mg{margin-top:0}
.mn .mi{display:flex;align-items:center;gap:12px;width:100%;height:auto;min-height:56px;padding:9px 12px;border-radius:0;background:none;text-align:start;color:inherit;text-decoration:none;font-weight:400;position:relative}
.mn .mi+.mi::before{content:"";position:absolute;top:0;left:58px;right:0;border-top:1px solid var(--line)}
.mn .mi:active{background:rgba(127,140,170,.14)}
.mn .ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--ic);background:color-mix(in srgb,var(--ic) 15%,transparent)}
.mn .ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mn .tx{flex:1;min-width:0}
.mn .tx b{display:block;font-size:15px;font-weight:700;line-height:1.25}
.mn .tx small{display:block;font-size:12.5px;color:var(--mute);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mn .tx .okc{color:var(--ok);font-weight:700}
.mn .chev{flex:none;width:18px;height:18px;fill:none;stroke:var(--mute);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
.mn .sw{flex:none;width:44px;height:26px;border-radius:13px;background:var(--line);position:relative;transition:background .2s}
.mn .sw i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.mn .sw.on{background:var(--ok)}.mn .sw.on i{transform:translateX(18px)}
.mn .danger{background:none;color:#d93025}.mn .danger .tx b{color:#d93025}
.mf{text-align:center;font-size:12px;color:var(--mute);margin-top:12px}.mf+.mf{margin-top:4px}.mf a{color:var(--mute)}
