/* IXOBOX aplikasi HS — IXOBOX Design Guideline 2026 (Charcoal/Ivory/Wood Brown/Bronze, Inter + Lato, ikon garis, tanpa bayangan).
   Mobile-first, satu kolom maks 520px; tombol besar supaya mudah ditekan saat tangan sibuk. */
@font-face{font-family:"Inter";src:url(fonts/inter-var.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Lato";src:url(fonts/lato-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Lato";src:url(fonts/lato-700.woff2) format("woff2");font-weight:700;font-display:swap}
:root{
  --charcoal:#171717; --graphite:#292929; --graphite-2:#333230; --warm-gray:#77736D; --greige:#B7AEA2;
  --ivory:#F3EFE8; --ivory-2:#ECE6DC; --paper:#FBF9F5; --wood:#8A5A32; --wood-hi:#9B6739; --bronze:#A87542; --bronze-lt:#C9975F;
  --ok:#5E7F5B; --ok-bg:#E3EADF; --warn:#9A6B1F; --warn-bg:#F3E6CC; --err:#9B3B32; --err-bg:#F2DEDA;
  --line:#DDD5C9; --line-dk:#3A3936;
  --f-head:"Inter",-apple-system,"Segoe UI",system-ui,sans-serif;
  --f-body:"Lato","Segoe UI",system-ui,sans-serif;
  --r:12px; --r-sm:8px;
  color-scheme:light;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{min-height:100%}
body{margin:0;background:var(--charcoal);color:var(--charcoal);font-family:var(--f-body);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}
#app{max-width:520px;margin:0 auto;min-height:100vh;min-height:100dvh;background:var(--ivory)}
button,input{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:not-allowed;opacity:.45}
:focus-visible{outline:2px solid var(--bronze);outline-offset:2px}
h1,h2,h3{font-family:var(--f-head);margin:0;line-height:1.15}
p{margin:0}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--warm-gray)}
.small{font-size:13px}
.eyebrow{font-family:var(--f-head);font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--warm-gray)}
.ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:var(--r-sm);
  font-family:var(--f-head);font-weight:700;font-size:15px}
.btn-primary{background:var(--wood);color:var(--ivory)}
.btn-dark{background:var(--charcoal);color:var(--ivory)}
.btn-ghost{border:1.5px solid var(--line);background:var(--paper)}
.btn-block{width:100%}
.btn-ghost-dk{border:1.5px solid var(--line-dk);color:var(--ivory)}
.btn-lg{min-height:58px;font-size:17px}
.input{height:48px;border:1.5px solid var(--line);background:var(--paper);border-radius:var(--r-sm);padding:0 12px;width:100%}
.pill{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-family:var(--f-head);font-size:12px;font-weight:600;white-space:nowrap}
.pill-ok{background:var(--ok-bg);color:var(--ok)} .pill-warn{background:var(--warn-bg);color:var(--warn)}
.pill-neutral{background:var(--ivory-2);color:var(--graphite)} .pill-err{background:var(--err-bg);color:var(--err)}

/* atas */
.top{display:flex;align-items:center;gap:12px;padding:14px 18px;background:var(--charcoal);color:var(--ivory);position:sticky;top:0;z-index:5}
.top img{height:22px}
.top .grow{flex:1}
.net{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--greige)}
.net .dot{width:8px;height:8px;border-radius:50%;background:var(--ok)}
.net.off .dot{background:var(--err)}
.main{padding:18px;display:flex;flex-direction:column;gap:16px}

/* masuk */
.login{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.login-brand{background:var(--charcoal);color:var(--ivory);padding:32px 22px 26px;display:flex;flex-direction:column;gap:14px}
.login-brand img{width:84px}
.login-brand h1{font-size:30px;font-weight:800}
.login-brand p{color:var(--greige)}
.login-body{padding:22px;display:flex;flex-direction:column;gap:14px}
.pick{display:flex;flex-direction:column;gap:8px}
.pick button{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:14px;border-radius:var(--r);border:1.5px solid var(--line);background:var(--paper)}
.pick button b{font-family:var(--f-head)}
.pick .group{margin-top:6px}
.dots{display:flex;gap:12px;justify-content:center;margin:6px 0}
.dots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--greige)}
.dots i.on{background:var(--charcoal);border-color:var(--charcoal)}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pad button{height:62px;border-radius:var(--r);background:var(--paper);border:1.5px solid var(--line);font-family:var(--f-head);font-size:22px;font-weight:600}
.err{color:var(--err);font-weight:700;min-height:20px;text-align:center}

/* kartu */
.card{background:var(--paper);border:1.5px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px}
.now{background:var(--charcoal);color:var(--ivory);border-color:var(--charcoal)}
.now .muted{color:var(--greige)}
.row{display:flex;align-items:center;gap:12px}
.grow{flex:1;min-width:0}
.qno{font-family:var(--f-head);font-size:28px;font-weight:800;letter-spacing:-.01em}
.timer{font-family:var(--f-head);font-size:40px;font-weight:800;font-variant-numeric:tabular-nums}
.bar{height:6px;border-radius:999px;background:var(--graphite-2);overflow:hidden}
.bar i{display:block;height:100%;background:var(--bronze)}
.bar.over i{background:var(--err)}
.svc{font-size:14px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin-top:4px}
.sec-h h2{font-size:18px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stats div{background:var(--paper);border:1.5px solid var(--line);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:2px}
.stats b{font-family:var(--f-head);font-size:20px}
.stats span{font-size:12px;color:var(--warm-gray)}
.empty{text-align:center;color:var(--warm-gray);padding:20px 8px}
.done-list .card{flex-direction:row;align-items:center;padding:12px}

/* foto selesai */
.shot{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:var(--r);background:var(--charcoal)}
.sheet{position:fixed;inset:0;background:rgba(23,23,23,.6);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.sheet-b{background:var(--ivory);width:100%;max-width:520px;border-radius:18px 18px 0 0;padding:18px;display:flex;flex-direction:column;gap:12px;max-height:94vh;overflow:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.toasts{position:fixed;left:0;right:0;bottom:18px;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:30;pointer-events:none}
.toast{background:var(--charcoal);color:var(--ivory);padding:12px 16px;border-radius:var(--r-sm);max-width:90%;font-size:14px}
.toast.err{background:var(--err)}

/* Semua tulisan KAPITAL supaya seragam (user 2026-10-26). Kolom isian tetap seperti yang diketik. */
body{text-transform:uppercase}
button,select,option,label,a{text-transform:inherit}
input,textarea{text-transform:none}
input::placeholder,textarea::placeholder{text-transform:uppercase}

/* rekomendasi outlet terdekat */
.loc{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pick-groups{display:flex;flex-direction:column;gap:8px}
.dist{margin-left:8px;font-family:var(--f-head);font-size:12px;font-weight:700;color:var(--bronze);font-variant-numeric:tabular-nums}
/* batal pesanan & booking (rapat 2026-10-27) */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--paper);font-weight:700;color:var(--charcoal)}
.chip[aria-pressed="true"]{background:var(--charcoal);border-color:var(--charcoal);color:var(--ivory)}
.btn-cancel{min-height:40px;font-size:14px;color:var(--err)}
.card.booking{border-left:3px solid var(--bronze)}
/* detail antrean + scan barcode check-in (MoM 27 Okt poin 10) */
.card.tap{cursor:pointer}
.info{display:flex;flex-direction:column;gap:6px;padding:12px;border:1.5px solid var(--line);border-radius:var(--r);background:var(--paper)}
.info-r{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.info-r b{text-align:right}
.scan-box{position:relative;width:100%;aspect-ratio:1;border-radius:16px;overflow:hidden;background:var(--charcoal)}
.scan-video{width:100%;height:100%;object-fit:cover;display:block}
.scan-frame{position:absolute;inset:18%;border:3px solid var(--bronze-lt, #C9975F);border-radius:14px}
.center{text-align:center}
/* status bayar & ringkasan setelah selesai (MoM 27 Okt poin 11/18) */
.pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pills.col{flex-direction:column;align-items:flex-end;margin-top:0}
.pay-next{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:var(--r)}
.pay-next.due{background:var(--err-bg);color:var(--err)}
.pay-next.ok{background:var(--ok-bg);color:var(--ok)}
.pay-next span{font-size:14px;color:var(--graphite)}
/* foto hasil: samping & belakang wajib, depan opsional (user 2026-10-27) */
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.shot-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:132px;padding:8px;border:2px dashed var(--line);border-radius:var(--r);background:var(--paper);text-align:center}
.shot-slot.has{border-style:solid;border-color:var(--ok)}
.shot-slot img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}
.shot-slot .ic{width:28px;height:28px}
.shot-slot b{font-size:13px}
.shot-slot .req{color:var(--err);font-weight:700}
/* reimburse transport */
.reimb-cta{display:flex;flex-direction:row;align-items:center;gap:12px;text-align:left;width:100%;margin-top:14px}
.rc{display:flex;flex-direction:row;gap:12px;align-items:flex-start}
.rc.rej{border-color:var(--err,#b3261e)}
.rc-img,.rc-thumb{flex:none;width:44px;height:56px;border-radius:8px;border:1px solid var(--line,#ddd);background:#fff;display:grid;place-items:center;object-fit:cover}
.rc .err{text-align:left;min-height:0}
.btn-sm{min-height:36px;padding:0 12px;font-size:13px}
.rc-shot{width:100%;max-height:70vh;object-fit:contain;border-radius:var(--r);background:var(--charcoal)}
.sheet .rc-shot{max-height:40vh}
/* request outlet */
.stack-s{display:flex;flex-direction:column;gap:8px}
.qty{display:flex;align-items:center;gap:8px}
.ph-chip{width:64px;height:64px;padding:0;border:1.5px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.ph-chip img,.ph-big{width:100%;height:100%;object-fit:cover}
.ph-big{width:100%;max-height:40vh;object-fit:contain;border-radius:var(--r);background:var(--charcoal)}
textarea.input{height:auto;padding:10px 12px}
button.rc{text-align:left;width:100%}
/* stok opname */
.qty-in{width:84px;height:40px;text-align:center}
.rc.hit{border-color:var(--bronze)}
/* fitur tambahan (hs-more.js, user 2026-10-28) */
.x-strip{display:flex;gap:8px;flex-wrap:wrap}
.x-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line);background:var(--paper);font-family:var(--f-head);font-weight:700;font-size:13px}
.x-chip .ic{width:18px;height:18px}
.x-chip.ok{border-color:var(--ok);color:var(--ok)} .x-chip.warn{border-color:var(--warn);color:var(--warn)} .x-chip.flat{border-style:dashed}
.x-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.x-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px;border:1.5px solid var(--line);border-radius:var(--r);background:var(--paper);text-align:center;min-height:96px}
.x-tile b{font-family:var(--f-head);font-size:12px;line-height:1.15}
.x-tile .small{font-size:10px;line-height:1.2}
.x-badge{position:absolute;top:6px;right:6px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--err);color:var(--ivory);font-size:11px;font-weight:700;display:grid;place-items:center}
.x-ann{border-left:3px solid var(--bronze)}
.x-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.x-two label{display:flex;flex-direction:column;gap:4px}
.x-sched{overflow-x:auto;border:1.5px solid var(--line);border-radius:var(--r);background:var(--paper)}
.x-sched table{border-collapse:collapse;font-size:11px}
.x-sched th,.x-sched td{padding:2px;text-align:center;border-bottom:1px solid var(--ivory-2)}
.x-sched thead th{font-weight:600;color:var(--warm-gray);min-width:30px}
.x-sched thead th.today{color:var(--wood)}
.x-sched tbody th{position:sticky;left:0;background:var(--paper);text-align:left;padding:4px 8px;white-space:nowrap;font-family:var(--f-head)}
.x-sched tr.me th{color:var(--wood)}
.x-cell{width:28px;height:30px;border-radius:6px;font-weight:700;font-size:11px}
.x-cell:disabled{opacity:1;cursor:default}
.x-det summary{display:flex;flex-direction:column;gap:2px;cursor:pointer;list-style:none}
.x-det.unread{border-left:3px solid var(--err)}
.x-body{white-space:pre-wrap;font-size:14px;text-transform:none}
.x-stars{color:var(--bronze);letter-spacing:1px}
.x-bar{display:grid;grid-template-columns:28px 1fr 28px;align-items:center;gap:8px}
.x-bar .bar{background:var(--ivory-2)}
.btn-ghost-dk .ic{width:18px;height:18px}
.sh-P{background:#E3EADF!important} .sh-S{background:#F3E6CC!important} .sh-F{background:#E9DCCB!important} .sh-L{background:#ECE6DC!important} .sh-0{background:transparent}
.x-lock{gap:12px;padding:22px 18px}
.x-lock h2{font-size:26px}
.x-tbar{margin:4px 0}
.info-r.x-on b,.info-r.x-on span{color:var(--wood);font-weight:700}
.x-qty{width:100%;height:56px;font-size:22px;text-align:center}
.stats.two{grid-template-columns:repeat(2,1fr)}
.x-due{color:var(--err)}
