/* Prototipe MitraAja. Mode permukaan: Operate. Semua warna dari tokens.css; file ini tidak berisi hex.
   Struktur: reset, bar alat prototipe, shell konsol (PC/TC), komponen, komponen baru Fase 0, POS, responsif. */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--text);font:var(--fs-14)/var(--lh) var(--font);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p,dl,dd,ol,ul{margin:0}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
a{color:var(--brand-ink);text-underline-offset:2px}
a:hover{color:var(--brand-hover)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
::selection{background:var(--selection);color:var(--text)}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}
.sec{color:var(--text-2)}
.mono,.code{font-family:var(--mono);font-size:var(--fs-13)}
.code{white-space:nowrap}
.num,.tnum{font-variant-numeric:tabular-nums}
.right{text-align:right}
.nowrap{white-space:nowrap}
.ellip{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sub{display:block;font-size:var(--fs-12);color:var(--muted);font-weight:400}
svg{flex:none}
svg.lucide{stroke-width:1.75}
[hidden]{display:none!important}
.grow{flex:1}
.eyebrow{font-size:var(--fs-11);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* Wordmark dan logo. Ikon PNG berganti per tema; mitra whitelabel memakai logo resmi mitra saja di kepala. */
.brandmark{display:flex;align-items:center;gap:10px;min-width:0}
.brandmark img{height:30px;width:auto}
.brandmark .mj-wm{height:28px;width:auto;flex:none}
.brandmark .mj-tile{display:none;width:34px;height:34px;border-radius:9px;flex:none}
[data-theme="dark"] .lg-l,[data-theme="light"] .lg-d,[data-theme="dark"] .nt-l,[data-theme="light"] .nt-d{display:none}
.brandmark.mo img{height:30px;max-width:190px;object-fit:contain;object-position:left center}
/* Footer bersama (U.footer): wordmark MitraAja, "Powered by", logo Nuratech sebagai tautan. Sama di semua tema. */
.powered{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;line-height:1;color:var(--text-2);white-space:nowrap}
.powered .mj-wm{height:26px;width:auto;flex:none}
@media (max-width:900px){.powered .mj-wm{height:24px}.powered .nt img{height:10px}}
.powered a.nt{display:inline-flex;align-items:center;padding:6px 2px;margin:-6px -2px;border-radius:6px}
.powered .nt img{height:11px;width:auto}
.pubw .powered{padding:28px 0 20px}
.pkframe .powered{position:absolute;left:0;right:0;bottom:12px}

/* =========================================================
   KERANGKA PRESENTASI (bukan bagian produk)
   ========================================================= */
body.frame-page{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
.tool{flex:none;height:var(--h-tool);background:var(--surface);border-bottom:1px solid var(--line);position:relative;z-index:var(--z-tool);font-size:var(--fs-13)}
.tool-in{height:100%;display:flex;align-items:center;gap:var(--s3);padding:0 var(--s4)}
.tool-title{font-weight:600;font-size:var(--fs-13);white-space:nowrap;padding-right:var(--s3);border-right:1px solid var(--line);line-height:24px}
.tool-ctl{display:flex;align-items:center;gap:var(--s3);flex:1;min-width:0}
.tool .grow{flex:1}
.tseg{display:inline-flex}
.tseg button{height:var(--h-tool-ctl);padding:0 12px;border:1px solid var(--line-2);margin-left:-1px;border-radius:0;background:var(--surface);color:var(--text-2);font-size:var(--fs-13);font-weight:500;white-space:nowrap;position:relative}
.tseg button:first-child{margin-left:0;border-radius:var(--r-ctl) 0 0 var(--r-ctl)}
.tseg button:last-child{border-radius:0 var(--r-ctl) var(--r-ctl) 0}
.tseg button:hover{color:var(--text);background:var(--surface-2)}
.tseg button:focus-visible{z-index:2}
.tseg button[aria-pressed=true]{background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand);font-weight:600;z-index:1}
.tfield{display:inline-flex;align-items:center;gap:6px;color:var(--muted);white-space:nowrap}
.tfield select{height:var(--h-tool-ctl);border:1px solid var(--line-2);border-radius:var(--r-ctl);background-color:var(--surface);padding:0 28px 0 10px;font-size:var(--fs-13);color:var(--text);max-width:210px;appearance:none}
.tchk{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--text-2);height:var(--h-tool-ctl)}
.tchk input{width:16px;height:16px;margin:0;accent-color:var(--brand-fill)}
.tbtn{display:inline-flex;align-items:center;gap:6px;height:var(--h-tool-ctl);padding:0 10px;border:1px solid var(--line-2);border-radius:var(--r-ctl);background:var(--surface);color:var(--text);font-size:var(--fs-13);font-weight:500;text-decoration:none;white-space:nowrap}
.tbtn:hover{background:var(--surface-2);color:var(--text)}
.tbtn[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand);color:var(--brand-ink)}
.tbtn.link{border-color:transparent;color:var(--brand-ink)}
.tbtn.link:hover{background:var(--brand-soft)}
.tool-sheet-h,.tool-open,.tool-scrim,.tool-in>.grow{display:none}
select,select.inp{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23958D88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
select:not(.inp):not(.field select){background-color:var(--surface)}

.tour{flex:none;background:var(--surface);border-bottom:1px solid var(--line);font-size:var(--fs-13)}
.tour-in{display:flex;align-items:center;gap:var(--s3);padding:var(--s2) var(--s4);min-height:44px}
.tour-step{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--brand-ink)}
.tour-text{flex:1;min-width:0;color:var(--text-2)}
.tour-text b{color:var(--text);font-weight:600}
.tour-ctl{display:flex;gap:var(--s2);flex:none}

.stage{flex:1;min-height:0;display:flex}
.canvas{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--canvas);padding:var(--s4) var(--s6) var(--s6);overflow:auto}
.cap{display:flex;align-items:center;gap:var(--s2);min-height:28px;margin-bottom:var(--s3);font-size:var(--fs-13);color:var(--text-2);flex-wrap:wrap}
.cap .chip{font-family:var(--mono);font-size:var(--fs-12);font-weight:500;color:var(--text);background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-pill);padding:1px 8px;height:auto}
.cap b{color:var(--text);font-weight:600}
.cap .sep{color:var(--line-2)}
.frame{flex:1;min-height:560px;display:flex;background:var(--bg);color:var(--text);border:1px solid var(--line-2);border-radius:var(--r-panel);box-shadow:var(--shadow-pop);overflow:hidden;position:relative}
.frame.plain{background:transparent;border:0;box-shadow:none;overflow:visible;display:block;min-height:0;flex:none}
.frame.pos{background:transparent;border:0;box-shadow:none;overflow:visible;display:block;min-height:0}

/* Panel anotasi */
.ann{flex:none;width:320px;background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;font-size:var(--fs-13);min-height:0}
.ann-h{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 var(--s2) 0 var(--s4);border-bottom:1px solid var(--line);flex:none}
.ann-h h2{font-size:var(--fs-14);font-weight:600}
.ann-b{padding:var(--s4);display:grid;gap:var(--s5);overflow:auto;align-content:start}
.ann-sec h3{font-size:var(--fs-11);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}
.ann-sec p,.ann-sec li{color:var(--text)}
.ann-roles{list-style:none;padding:0;display:grid;gap:4px}
.ann-roles li{display:flex;justify-content:space-between;gap:var(--s2);align-items:center}
.ann-roles .lv{font-size:var(--fs-12);color:var(--muted)}
.ann-notes{padding-left:20px;display:grid;gap:var(--s2)}
.ann-notes li{padding-left:2px}
.ann-notes li::marker{color:var(--muted);font-variant-numeric:tabular-nums}
.ann-sim{display:grid;gap:var(--s2);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-card);padding:var(--s3)}
.ann-sim label{display:flex;gap:var(--s2);align-items:flex-start}
.ann-sim input{margin:2px 0 0;width:16px;height:16px;accent-color:var(--brand-fill);flex:none}

/* Mode bersih untuk screenshot */
body.shot .tool,body.shot .tour,body.shot .cap,body.shot .ann{display:none!important}
body.shot .canvas{padding:0;background:var(--bg);overflow:hidden}
body.shot .frame{border:0;border-radius:0;box-shadow:none;min-height:0}
body.shot .frame.pos{background:var(--bg)}

/* =========================================================
   KONSOL (Platform dan TMS), gaya enterprise:
   header = logo + pill halaman grup aktif + pemilih konteks + notifikasi + chip user;
   rail ikon bulat di kiri = grup menu; kartu abu di atas kanvas abu; footer data + Powered by.
   ========================================================= */
.app{flex:1;min-width:0;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:var(--gap);padding:var(--pad);position:relative;min-height:0;height:100%;color:var(--text)}
.hdr{grid-column:1/-1;display:flex;align-items:center;gap:12px;min-height:48px;min-width:0}
.hdr .brandmark{margin-right:20px;flex:none}
.hdr .sp{flex:1 1 0;min-width:0}
.pills{display:flex;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none;flex:0 1 auto;padding:4px;margin:-4px}
.pills::-webkit-scrollbar{display:none}
.pills.ovf{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
.npill{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border:0;border-radius:var(--r-pill);background:var(--surface);color:var(--text);font-size:var(--fs-14);font-weight:500;text-decoration:none;white-space:nowrap;flex:none}
.npill:hover{background:var(--surface-3);color:var(--text)}
.npill[aria-current=page],.npill[aria-current=page]:hover{background:var(--ink);color:var(--on-ink)}
.npill .ro{display:inline-flex;color:var(--muted);margin-left:-2px}
.npill[aria-current=page] .ro{color:var(--on-ink)}
/* Pemilih konteks TMS: Brand/Outlet dan tahap brand, di bar atas */
.cbar{display:flex;align-items:center;gap:8px;flex:none}
.cseg{display:inline-flex;gap:2px;padding:4px;border-radius:var(--r-pill);background:var(--surface)}
.cseg a,.cseg button{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--text-2);font-size:var(--fs-13);font-weight:500;text-decoration:none;white-space:nowrap;max-width:200px}
.cseg a:hover,.cseg button:hover{background:var(--surface-3);color:var(--text)}
.cseg [aria-current=true],.cseg [aria-pressed=true],.cseg [aria-current=true]:hover,.cseg [aria-pressed=true]:hover{background:var(--ink);color:var(--on-ink)}
.cseg [aria-disabled=true]{color:var(--disabled-text);cursor:not-allowed}
.cseg [aria-disabled=true]:hover{background:transparent;color:var(--disabled-text)}
.cseg .k{font-size:var(--fs-11);font-weight:500;letter-spacing:.02em;opacity:.8}
.cseg .nm{overflow:hidden;text-overflow:ellipsis}
.hdr .iconbtn.ibtn{flex:none}
.hdr .me{display:flex;align-items:center;gap:10px;height:44px;padding:0 16px 0 4px;border-radius:var(--r-pill);background:var(--surface);min-width:0;flex:none}
.hdr .me .av{width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:600}
.hdr .me b{display:block;font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap}
.hdr .me span.r{display:block;font-size:12px;color:var(--text-2);line-height:1.2;white-space:nowrap}
.av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:var(--fs-11);font-weight:600;background:var(--surface-3);color:var(--text-2);flex:none}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--surface-3);color:var(--text-2);display:grid;place-items:center;font-size:var(--fs-12);font-weight:600;flex:none}

/* Rail ikon grup */
.rail{grid-row:2;grid-column:1;display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:4px;background:var(--surface);border-radius:28px;padding:6px 0;min-height:0}
.rg{width:44px;height:44px;flex:none;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--text);position:relative;text-decoration:none}
.rg:hover{background:var(--surface-2);color:var(--text)}
.rg[aria-current=page],.rg[aria-current=page]:hover,.rg[aria-expanded=true]{background:var(--ink);color:var(--on-ink)}
.rg .bdg{position:absolute;top:-2px;right:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:var(--r-pill);background:var(--brand);color:var(--on-accent);font-size:12px;font-weight:600;display:grid;place-items:center;box-shadow:0 0 0 3px var(--surface);font-variant-numeric:tabular-nums;line-height:1}
.rail .rg:hover::after,.rail .rg:focus-visible::after{content:attr(data-tip);position:absolute;left:calc(100% + 14px);top:50%;transform:translateY(-50%);background:var(--tip-bg);color:var(--tip-text);font-size:var(--fs-13);font-weight:500;padding:7px 12px;border-radius:12px;white-space:nowrap;z-index:var(--z-sheet);pointer-events:none}
@media (max-height:700px){.rail{overflow-y:auto;scrollbar-width:none;justify-content:flex-start}.rail .rg:hover::after,.rail .rg:focus-visible::after{display:none}}

.cmain{grid-row:2;grid-column:2;min-width:0;min-height:0;display:flex;flex-direction:column;gap:var(--gap)}
.top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;flex:none;padding:0 2px}
.top-t{min-width:0;flex:1 1 auto}
.top-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.top-acts .btnrow{flex-wrap:nowrap}
.igrp{display:contents}
.top-acts .why{display:none}
.top h1{font-size:var(--fs-34);font-weight:300;letter-spacing:-.02em;line-height:1.15;display:flex;align-items:center;gap:var(--s3);flex-wrap:wrap}
.crumbs{font-size:var(--fs-13);color:var(--text-2);margin-bottom:2px;display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.crumbs a{color:var(--text-2);text-decoration:none}
.crumbs a:hover{color:var(--text);text-decoration:underline}
.crumbs .sl{color:var(--muted)}
.crumbs svg{width:14px;height:14px}
.search{display:flex;align-items:center;gap:var(--s2);height:var(--h-btn);border:0;border-radius:var(--r-pill);padding:0 16px;background:var(--btn-bg,var(--surface));color:var(--text-2);width:300px;min-width:0;font-size:var(--fs-14)}
.search input{border:0;outline:0;background:transparent;flex:1;min-width:0;height:100%;color:var(--text);font-size:var(--fs-14)}
.search input::placeholder{color:var(--muted)}
.search:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.search kbd{margin-left:auto;font:500 11px var(--font);border:1px solid var(--line-2);border-radius:5px;padding:1px 5px;color:var(--muted)}
.iconbtn{width:var(--h-btn);height:var(--h-btn);display:grid;place-items:center;border:0;background:transparent;border-radius:50%;color:var(--text);position:relative;flex:none}
.iconbtn:hover{background:var(--surface-3);color:var(--text)}
.ibtn{background:var(--btn-bg,var(--surface))}
.iconbtn .dot{position:absolute;top:11px;right:12px;width:9px;height:9px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 2px var(--btn-bg,var(--surface))}
.content{flex:1;min-height:0;overflow:auto;padding:0 2px 4px;container-type:inline-size;container-name:content;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
.content-in{max-width:1500px;min-height:100%;display:flex;flex-direction:column}
.content-in>.pdesc{color:var(--text-2);margin:0 0 var(--s4);max-width:72ch}
.pdesc{font-size:var(--fs-14)}
.ftr{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12.5px;color:var(--text-2);min-height:22px}
.ftr .powered{justify-content:flex-end}
.ftr.in{display:none}
.bnav,.sheet{display:none}
/* Header halaman di dalam isi (dipakai bila tidak dipindah ke bar atas) */
.ph{display:flex;justify-content:space-between;gap:var(--s4);align-items:flex-start;margin-bottom:var(--s5);flex-wrap:wrap}
.ph-t{min-width:0;flex:1 1 360px}
.ph h1{font-size:var(--fs-34);font-weight:300;letter-spacing:-.02em;line-height:1.15;display:flex;align-items:center;gap:var(--s3);flex-wrap:wrap}
.ph p{color:var(--text-2);margin-top:4px;max-width:72ch}
.ph .acts{display:flex;flex-direction:column;align-items:flex-end;gap:6px}

/* =========================================================
   KOMPONEN (enterprise: kontrol pill, kartu 28 tanpa border, ruang lega)
   Di dalam kartu, isian dan tombol netral memakai surface-2 supaya tetap terbaca di atas surface.
   ========================================================= */
.card,.state,.mbox,.drawer,.kcard,.pkcard,.pkcart,.pkside,.paircard,.tw,.tkt,.upl-z{--btn-bg:var(--surface-2);--btn-hover:var(--surface-3);--field-bg:var(--surface-2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);height:var(--h-btn);padding:0 20px;border:0;border-radius:var(--r-pill);background:var(--btn-bg,var(--surface));color:var(--text);text-decoration:none;font-weight:500;font-size:var(--fs-14);line-height:1;white-space:nowrap}
.btn:hover{background:var(--btn-hover,var(--surface-3));color:var(--text)}
.btn.primary{background:var(--brand-fill);color:var(--on-brand)}
.btn.primary:hover{background:var(--brand-hover);color:var(--on-brand)}
.btn.ink{background:var(--ink);color:var(--on-ink)}
.btn.ink:hover{background:var(--ink);color:var(--on-ink);opacity:.88}
.btn.ghost{background:transparent;color:var(--text-2);padding:0 12px}
.btn.ghost:hover{background:var(--surface-3);color:var(--text)}
.btn.danger{color:var(--bad)}
.btn.danger.solid{background:var(--bad);color:var(--surface)}
.btn.danger.solid:hover{background:var(--bad);color:var(--surface);opacity:.9}
.btn.sm{height:var(--h-btn-sm);padding:0 14px;font-size:var(--fs-13);gap:6px}
.btn.block{width:100%}
.btn[aria-disabled=true],.btn:disabled{background:var(--disabled-bg);color:var(--disabled-text);cursor:not-allowed}
.btn[aria-disabled=true]:hover{background:var(--disabled-bg);color:var(--disabled-text)}
.btnrow{display:flex;gap:var(--s2);flex-wrap:wrap;align-items:center}
.btnrow.end{justify-content:flex-end}
.why{display:flex;gap:6px;align-items:flex-start;font-size:var(--fs-12);color:var(--muted);margin-top:6px;max-width:44ch}
.why svg{margin-top:1px}
.acts .why{text-align:right;justify-content:flex-end;margin-top:0}
/* Tombol panah bulat di pojok kartu (padanan mockup) */
.go{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--text);border:0;text-decoration:none}
.go:hover{background:var(--surface-3);color:var(--text)}
.go svg{width:17px;height:17px}

/* Chip status: teks + ikon, warna hanya penguat */
.badge{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:var(--r-pill);font-size:12.5px;font-weight:500;white-space:nowrap;line-height:1;vertical-align:middle}
.badge svg{width:14px;height:14px;stroke-width:2}
.badge.ok{color:var(--ok);background:var(--ok-bg)}.badge.warn{color:var(--warn);background:var(--warn-bg)}
.badge.bad{color:var(--bad);background:var(--bad-bg)}.badge.off{color:var(--off);background:var(--off-bg)}.badge.info{color:var(--info);background:var(--info-bg)}
.badge.ac{background:var(--brand);color:var(--on-accent)}

.card{background:var(--surface);border:0;border-radius:var(--r-card);min-width:0}
.card>header{display:flex;justify-content:space-between;gap:var(--s3);align-items:center;padding:20px 24px 0}
.card>header h2{font-size:var(--fs-16);font-weight:500;line-height:1.35;letter-spacing:-.005em}
.card>header .meta{font-size:var(--fs-13);color:var(--text-2);white-space:nowrap}
.card>.b{padding:16px 24px 24px}
.card>.b:first-child{padding-top:24px}
.card>.b.flush{padding:8px 0 12px}
.card>.b.flush:first-child{padding-top:12px}
.card>footer{padding:12px 24px 20px}
.stack{display:grid;gap:var(--gap);align-content:start;min-width:0}
.grid{display:grid;gap:var(--gap);align-items:start}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g32{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(340px,1fr);gap:var(--gap);align-items:start}
.mb{margin-bottom:var(--gap)}
.mb6{margin-bottom:var(--s6)}

.kpi{padding:20px 24px}
.kpi .l{font-size:var(--fs-14);color:var(--text);font-weight:500}
.kpi .v{font-size:var(--fs-30);font-weight:300;line-height:1.2;margin-top:10px;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}
.kpi .s{font-size:var(--fs-13);color:var(--text-2);margin-top:6px}
.kpi .s .up{color:var(--ok);font-weight:500}
.kpi .s .dn{color:var(--bad);font-weight:500}
.stats{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));background:var(--surface);border-radius:var(--r-card);padding:20px 8px}
.stats>div{padding:0 20px}
.stats>div+div{border-left:1px solid var(--line)}
.stats .l{font-size:var(--fs-13);color:var(--text-2)}
.stats .v{font-size:var(--fs-26);font-weight:300;font-variant-numeric:tabular-nums;line-height:1.3;letter-spacing:-.02em}

/* Tabel: di dalam kartu (atau kartu sendiri), baris lega, header kecil abu */
.tw{background:var(--surface);border-radius:var(--r-card);overflow:auto;padding:8px 0}
.card .tw{background:transparent;border-radius:0;padding:0}
table{border-collapse:collapse;width:100%;font-size:13.5px}
th,td{padding:0 var(--s3);height:56px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
td{padding-top:8px;padding-bottom:8px}
th{height:44px;background:transparent;font-weight:500;font-size:var(--fs-12);color:var(--muted);white-space:nowrap}
th:first-child,td:first-child{padding-left:24px}
th:last-child,td:last-child{padding-right:24px}
tbody tr:last-child td{border-bottom:0}
td.num,th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
td.act,th.act{text-align:right;white-space:nowrap;width:1%}
td.nw{white-space:nowrap}
td .ttl{font-weight:500;color:var(--text);font-size:13.5px;white-space:nowrap}
tbody tr:hover td{background:var(--surface-2)}
tbody tr:hover td:first-child{border-radius:14px 0 0 14px}
tbody tr:hover td:last-child{border-radius:0 14px 14px 0}
tr.sel td{background:var(--brand-soft)!important}
tr.tot td{font-weight:600;background:var(--surface-2);font-size:var(--fs-14)}
tr.subt td{color:var(--text-2)}
.pager{display:flex;justify-content:space-between;align-items:center;gap:var(--s2);padding:14px 24px;font-size:var(--fs-13);color:var(--text-2);border-top:1px solid var(--line);flex-wrap:wrap}
.pager .btnrow{gap:6px}

/* Form: kolom isian radius 14, tinggi 44, garis kontrol 3:1 */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:var(--s4);min-width:0}
.field>label{font-weight:500;font-size:var(--fs-13);color:var(--text)}
.field .req{color:var(--bad);margin-left:2px}
.inp,.field input,.field select,.field textarea{height:var(--h-btn);border:1px solid var(--ctl-line);border-radius:var(--r-in);padding:0 16px;background-color:var(--field-bg,var(--surface));width:100%;font-size:var(--fs-14);color:var(--text)}
.field textarea,textarea.inp{height:auto;min-height:96px;padding:12px 16px;resize:vertical;line-height:var(--lh)}
.inp::placeholder,.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
select.inp,.field select{appearance:none;padding-right:38px;background-position:right 14px center}
.inp:focus,.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.field input:disabled,.field select:disabled,.field textarea:disabled,.inp:disabled{background-color:var(--disabled-bg);color:var(--text-2);border-color:transparent}
.help{font-size:var(--fs-12);color:var(--muted)}
.err{font-size:var(--fs-12);color:var(--bad);display:flex;gap:6px;align-items:flex-start}
.err svg{margin-top:1px}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--bad);border-width:2px}
.check{display:flex;gap:10px;align-items:flex-start;padding:6px 0}
.check input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--brand-fill)}
.check .help{display:block;margin-top:2px}
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--s4)}
.inline-f{display:flex;gap:var(--s2);align-items:flex-end}
.inline-f .field{flex:1;margin-bottom:0}
.inline-wrap{margin-bottom:var(--s4)}

/* Tab pill (aktif = ink) */
.tabs{display:flex;gap:var(--s2);margin:-4px -4px var(--s4);padding:4px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{border:0;background:var(--btn-bg,var(--surface));padding:0 18px;height:var(--h-btn);border-radius:var(--r-pill);color:var(--text);white-space:nowrap;font-weight:500;font-size:var(--fs-14);display:inline-flex;align-items:center;gap:8px;flex:none}
.tabs button:hover{background:var(--btn-hover,var(--surface-3))}
.tabs button[aria-selected=true]{background:var(--ink);color:var(--on-ink)}
.tabs button .n{font-size:var(--fs-12);color:var(--on-accent);font-variant-numeric:tabular-nums;background:var(--brand);border-radius:var(--r-pill);padding:0 7px;line-height:20px;font-weight:600}
.tabs button[aria-disabled=true]{color:var(--disabled-text);background:var(--disabled-bg);cursor:not-allowed}
[role=tabpanel][hidden]{display:none}

/* Stepper */
.steps{display:flex;align-items:center;list-style:none;padding:0;margin:0 0 var(--s6);gap:0;overflow-x:auto}
/* Stepper membentang selebar konten: langkah 2 dst. meregang, garis penghubung mengisi sisa ruang */
.steps li{display:flex;align-items:center;gap:var(--s2);font-size:var(--fs-13);color:var(--muted);white-space:nowrap;flex:none}
.steps li+li{flex:1 1 0;min-width:0}
.steps li+li::before{content:"";flex:1 1 auto;min-width:24px;height:2px;border-radius:2px;background:var(--line-2);margin:0 var(--s3)}
.steps li.done+li::before{background:var(--ink)}
.steps i{font-style:normal;width:28px;height:28px;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font-size:var(--fs-12);font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums;flex:none}
.steps li[aria-current=step]{color:var(--text);font-weight:500}
.steps li[aria-current=step] i{background:var(--brand-fill);color:var(--on-brand)}
.steps li.done{color:var(--text-2)}
.steps li.done i{background:var(--ink);color:var(--on-ink)}
.wz-nav{display:flex;gap:var(--s2);align-items:center;margin-top:var(--s6);padding-top:var(--s4);border-top:1px solid var(--line)}
.wz-nav .grow{flex:1}

/* Daftar definisi */
.dl{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px var(--s4);font-size:var(--fs-13)}
.dl dt{color:var(--muted)}
.dl dd{margin:0;color:var(--text);min-width:0}
.dl.two{grid-template-columns:140px minmax(0,1fr) 140px minmax(0,1fr)}
.rows{list-style:none;padding:0;margin:0}
.rows li{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s3);padding:7px 0;font-size:var(--fs-14)}
.rows li>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.rows li.sep{border-top:1px solid var(--line);margin-top:6px;padding-top:12px}
.rows li.strong{font-weight:600}
.rows li.total{font-size:var(--fs-16);font-weight:600}
.rows .k{color:var(--text-2)}
.rows li.strong .k,.rows li.total .k{color:var(--text)}

.photo{background:var(--off-bg);color:var(--muted);display:grid;place-items:center;font-size:var(--fs-12);border-radius:var(--r-ctl)}
.note{display:flex;gap:10px;align-items:flex-start;padding:10px var(--s3);border-radius:var(--r-ctl);background:var(--off-bg);color:var(--text-2);font-size:var(--fs-13)}
.note svg{margin-top:1px}
.note a{color:inherit;text-decoration:underline}
.note.warn{background:var(--warn-bg);color:var(--warn)}
.note.bad{background:var(--bad-bg);color:var(--bad)}
.note.info{background:var(--info-bg);color:var(--info)}
.list{list-style:none;margin:0;padding:0}
.list li{display:flex;justify-content:space-between;gap:var(--s3);padding:10px 0;border-bottom:1px solid var(--line);align-items:center;font-size:var(--fs-13)}
.list li:first-child{padding-top:0}
.list li:last-child{border-bottom:0;padding-bottom:0}
.tl{list-style:none;margin:0;padding:0;display:grid;gap:var(--s4)}
.tl li{position:relative;padding-left:20px;font-size:var(--fs-13);color:var(--text-2)}
.tl li::before{content:"";position:absolute;left:0;top:6px;width:7px;height:7px;border-radius:50%;background:var(--line-2)}
.tl li:not(:last-child)::after{content:"";position:absolute;left:3px;top:17px;bottom:-12px;width:1px;background:var(--line)}
.tl li:first-child::before{background:var(--brand)}
.tl time{display:block;font-size:var(--fs-12);color:var(--muted);font-variant-numeric:tabular-nums}
.bar{height:6px;background:var(--surface-3);border-radius:var(--r-pill);overflow:hidden}
.bar i{display:block;height:100%;background:var(--text-2);border-radius:var(--r-pill)}
.occ{display:grid;gap:var(--s4)}
.occ .h{display:flex;justify-content:space-between;gap:var(--s3);font-size:var(--fs-13);margin-bottom:6px}
.occ .h span:last-child{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}

/* Grafik batang satu seri */
.chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;align-items:end;height:160px;border-bottom:1px solid var(--line-2);position:relative}
.chart .c{height:100%;display:flex;align-items:flex-end;justify-content:center;position:relative}
.chart .c i{display:block;width:60%;max-width:36px;background:var(--line-2);border-radius:4px 4px 0 0}
.chart .c.hi i{background:var(--brand-fill)}
.chart .c .lbl{position:absolute;font-size:var(--fs-12);color:var(--text);font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.chart .c .tip{position:absolute;bottom:calc(100% - 8px);left:50%;transform:translateX(-50%);background:var(--tip-bg);color:var(--tip-text);font-size:var(--fs-12);padding:4px 8px;border-radius:var(--r-ctl);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s ease-out;z-index:2}
.chart .c:hover .tip,.chart .c:focus-visible .tip{opacity:1}
.chart-x{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;font-size:var(--fs-12);color:var(--muted);text-align:center;margin-top:6px}
details.tbl{margin-top:var(--s3);font-size:var(--fs-13)}
details.tbl summary{color:var(--brand-ink);cursor:pointer;width:max-content}
details.tbl table{margin-top:var(--s2)}

/* Baris unit di wizard TC-22 */
.urow{display:flex;gap:var(--s4);align-items:center;background:var(--surface-2);border-radius:20px;padding:var(--s3) var(--s4)}
.urow .ui{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:var(--fs-13)}
.urow .ui b{font-size:var(--fs-14);font-weight:600}
.minih{font-size:var(--fs-12);font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:var(--s4) 0 2px}

/* Denah unit PC-11 */
.ubar{display:flex;gap:var(--s3);align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin-bottom:var(--s4)}
.ubar .f{display:flex;gap:var(--s3);flex-wrap:wrap;align-items:flex-end}
.ubar .field{margin:0;width:160px}
.legend{display:flex;gap:var(--s4);flex-wrap:wrap;font-size:var(--fs-13);color:var(--text-2);align-items:center;height:var(--h-btn)}
.legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid}
.legend i.free{background:var(--surface);border:1px dashed var(--ctl-line)}
.legend i.taken{background:var(--surface-3);border-color:var(--line-2)}
.legend i.resv{background:var(--warn-bg);border-color:var(--warn)}
.legend i.maint{background:var(--surface-2);border-color:var(--line)}
.legend b{font-weight:500;color:var(--text);font-variant-numeric:tabular-nums}
.units{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--s3)}
.unit{height:88px;border:1px solid var(--ub,var(--line-2));border-radius:var(--r-ctl);padding:var(--s2) 10px;background:var(--ubg,var(--surface));text-align:left;display:flex;flex-direction:column;gap:2px;min-width:0}
.unit:hover{border-color:var(--text-2)}
.unit .u1{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.unit .u1 b{font-size:var(--fs-13);font-weight:600;font-variant-numeric:tabular-nums}
.unit .u1 span{font-size:var(--fs-12);color:var(--muted);white-space:nowrap}
.unit .st{font-size:var(--fs-12);font-weight:500;color:var(--stt,var(--text-2));display:flex;align-items:center;gap:6px}
.unit .st::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.unit .br{font-size:var(--fs-12);color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:auto}
.unit.free{--ub:var(--ctl-line);--ubg:var(--surface);--stt:var(--ok);border-style:dashed}
.unit.taken{--ub:var(--line-2);--ubg:var(--surface-3);--stt:var(--text-2)}
.unit.taken .br{color:var(--text)}
.unit.resv{--ub:var(--warn);--ubg:var(--warn-bg);--stt:var(--warn)}
.unit.resv .br{color:var(--warn)}
.unit.maint{--ub:var(--line);--ubg:var(--surface-2);--stt:var(--muted)}

/* Keadaan kosong, memuat, gagal, ditolak */
.state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--s12) var(--s6);background:var(--surface);border:0;border-radius:var(--r-card)}
.state .ic{width:64px;height:64px;border-radius:50%;background:var(--surface-2);color:var(--text);display:grid;place-items:center;margin-bottom:var(--s4)}
.state.bad .ic{color:var(--bad);background:var(--bad-bg)}
.state h2{font-size:var(--fs-20);font-weight:400;line-height:1.35}
.state p{font-size:var(--fs-14);color:var(--text-2);max-width:52ch;margin:8px 0 var(--s5)}
.state .code{font-size:var(--fs-12);color:var(--muted);margin-bottom:var(--s2)}
.state.compact{padding:28px 16px;background:transparent}
.state.compact .ic{margin-bottom:8px;width:48px;height:48px}
.state.compact h2{font-size:var(--fs-14);font-weight:500}
.state.compact p{font-size:var(--fs-13);margin-bottom:0}
.state.page{margin:var(--s12) auto 0;max-width:560px}
.sk{background:linear-gradient(90deg,var(--surface-2) 0%,var(--surface-3) 50%,var(--surface-2) 100%);background-size:200% 100%;border-radius:8px;height:12px;animation:shimmer 1.5s ease-in-out infinite}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.skrow{display:grid;gap:var(--s4);padding:0 24px;height:56px;align-items:center;grid-template-columns:repeat(var(--n,5),1fr);border-bottom:1px solid var(--line)}
.skrow:last-child{border-bottom:0}
.skhead{height:44px;border-bottom:1px solid var(--line)}
@media (prefers-reduced-motion:reduce){.sk{animation:none}.drawer,.modal,.mbox{transition:none;animation:none}.chart .c .tip{transition:none}}

/* Modal dan toast */
.modal{position:fixed;inset:0;background:var(--scrim);backdrop-filter:blur(2px);display:grid;place-items:center;padding:var(--s4);z-index:var(--z-modal);animation:fadein .18s ease-out}
.mbox{background:var(--surface);border:0;border-radius:var(--r-card);width:min(480px,100%);max-height:100%;overflow:auto;box-shadow:var(--shadow-pop)}
.mbox.wide{width:min(720px,100%)}
.mbox>header{padding:24px 28px 8px;display:flex;justify-content:space-between;gap:var(--s2);align-items:center}
.mbox>header h2{font-size:var(--fs-20);font-weight:400}
.mbox>.b{padding:12px 28px 20px;display:grid;gap:var(--s3)}
.mbox>.b .field{margin-bottom:0}
.mbox>footer{padding:8px 28px 24px;display:flex;gap:var(--s2);justify-content:flex-end;flex-wrap:wrap}
.toast{position:fixed;left:50%;bottom:var(--s6);transform:translateX(-50%);background:var(--tip-bg);color:var(--tip-text);padding:12px var(--s5);border-radius:20px;z-index:var(--z-toast);max-width:min(560px,90vw);font-size:var(--fs-13);box-shadow:var(--shadow-pop)}
.toast:empty{display:none}

/* Indeks layar */
.idx{max-width:1100px;margin:0 auto;width:100%}
.idx h1{font-size:var(--fs-20);font-weight:600}
.idx>p{color:var(--text-2);margin:4px 0 var(--s6);max-width:72ch}
.idx h2{font-size:var(--fs-16);font-weight:600;margin:var(--s6) 0 var(--s3);display:flex;gap:var(--s2);align-items:baseline}
.idx h2 span{font-size:var(--fs-13);font-weight:400;color:var(--muted)}

/* =========================================================
   POS KASIR (tablet 1280x800 dan ponsel)
   ========================================================= */
.pkwrap{position:relative;width:100%}
.pkframe{width:1280px;height:800px;transform-origin:top left;background:var(--bg);color:var(--text);border:1px solid var(--line-2);border-radius:var(--r-panel);box-shadow:var(--shadow-pop);overflow:hidden;display:flex;flex-direction:column;position:absolute;left:0;top:0;font-size:var(--fs-15)}
body.shot .pkframe{border:0;border-radius:0;box-shadow:none}
.pkframe.phone{width:100%;position:relative;transform:none!important;border-radius:var(--r-card)}
body.shot .pkframe.phone{border-radius:0}
.pktop{height:68px;flex:none;display:flex;align-items:center;gap:14px;padding:0 var(--s4);background:transparent}
.pktop .who2{display:flex;flex-direction:column;justify-content:center;line-height:1.25;min-width:0}
.pktop .who2 b{font-size:var(--fs-14);font-weight:500;white-space:nowrap}
.pktop .who2 span{font-size:var(--fs-12);color:var(--muted);white-space:nowrap}
.pktop .grow{flex:1}
.pktop .meta{display:flex;align-items:center;gap:var(--s3)}
.pktop .meta .who2{text-align:right}
.pktop .vsep{width:1px;height:26px;background:var(--line-2);flex:none}
.netb{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 16px;border-radius:var(--r-pill);border:0;background:var(--surface);font-size:var(--fs-13);font-weight:500;white-space:nowrap}
.netb.on{color:var(--ok)}
.netb.off{color:var(--bad);background:var(--bad-bg)}
.pknav{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;align-self:center;padding:4px;margin:-4px}
.pknav::-webkit-scrollbar{display:none}
.pknav a{display:flex;align-items:center;padding:0 20px;text-decoration:none;background:var(--surface);color:var(--text);font-size:var(--fs-14);font-weight:500;white-space:nowrap;border-radius:var(--r-pill);scroll-snap-align:start;min-height:48px;flex:none}
.pknav a:hover{background:var(--surface-3);color:var(--text)}
.pknav a[aria-current=page]{background:var(--ink);color:var(--on-ink)}
.pkbody{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:12px;padding:0 var(--s4) var(--s4)}
.pkbody.one{grid-template-columns:minmax(0,1fr)}
.pkmain{padding:8px 4px 4px;overflow:auto;min-width:0;min-height:0}
.pkside{background:var(--surface);border-radius:var(--r-pos);display:flex;flex-direction:column;min-height:0}
.pkside.pad{display:block;padding:var(--s5);overflow:auto}
.pkcart{background:var(--surface);border-radius:var(--r-pos);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.pkcart>header{height:60px;flex:none;padding:0 var(--s5);display:flex;justify-content:space-between;align-items:center;gap:var(--s3)}
.pkcart>header h2{font-size:var(--fs-16);font-weight:500}
.pkcart>header h2 span{font-weight:400;color:var(--muted);font-size:var(--fs-14)}
.pkcart .items{flex:1;overflow:auto;padding:0 var(--s5)}
.pkcart .sum{padding:var(--s3) var(--s5) var(--s5);border-top:1px solid var(--line);flex:none}
.pkcart .sum .rows li{padding:4px 0;font-size:var(--fs-14)}
.pkcart .sum .rows li.promo span:first-child{color:var(--ok)}
.pkcart .grand{display:flex;justify-content:space-between;align-items:baseline;padding:var(--s2) 0 var(--s4);gap:var(--s3)}
.pkcart .grand span{font-size:var(--fs-14);font-weight:600}
.pkcart .grand b{font-size:32px;font-weight:300;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}
.pkb{height:var(--h-pos);min-width:48px;padding:0 var(--s5);font-size:var(--fs-15);border-radius:var(--r-pill)}
.pkb.main{height:var(--h-pos-main);font-size:var(--fs-16);font-weight:500;border-radius:var(--r-pill)}
.pkb svg{width:20px;height:20px}
.cta2{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:8px}
.line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}
.line:last-child{border-bottom:0}
.line .nm{font-size:var(--fs-14);font-weight:600;line-height:1.35}
.line .up{font-size:var(--fs-13);color:var(--muted);font-variant-numeric:tabular-nums}
.line .lt{font-size:var(--fs-14);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;align-self:start}
.line .q{font-size:var(--fs-13);color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.line .promo{grid-column:1/-1;font-size:var(--fs-13);color:var(--ok);display:flex;justify-content:space-between}
.qty{display:inline-flex;align-items:center;border:0;background:var(--surface-2);border-radius:var(--r-pill);overflow:hidden;justify-self:start;height:44px}
.qty button{width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;color:var(--text-2)}
.qty button:hover{background:var(--surface-3)}
.qty span{min-width:36px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.pksearch{display:flex;gap:var(--s2);margin-bottom:var(--s3)}
.pksearch .search{height:var(--h-pos);flex:1;width:auto;padding:0 18px;font-size:var(--fs-15)}
.pksearch .search input{font-size:var(--fs-15)}
.chips{display:flex;gap:var(--s2);margin-bottom:var(--s3);overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{height:44px;padding:0 20px;border:0;border-radius:var(--r-pill);background:var(--surface);display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-14);font-weight:500;white-space:nowrap;color:var(--text)}
.chip[aria-pressed=true]{background:var(--ink);color:var(--on-ink)}
.pkgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-content:start}
.prod{border:0;background:var(--surface);border-radius:var(--r-pos);padding:12px;text-align:left;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:132px;position:relative;color:var(--text)}
.prod:hover{background:var(--surface-2)}
.prod:active{box-shadow:inset 0 0 0 2px var(--brand)}
.prod .photo{height:56px;margin:0;border-radius:12px}
.prod .nm{font-size:var(--fs-14);font-weight:600;line-height:1.25;white-space:normal}
.prod .pr{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s2);margin-top:auto}
.prod .pr b{font-size:var(--fs-14);font-weight:600;font-variant-numeric:tabular-nums}
.prod .pr span{font-size:11.5px;color:var(--muted);font-weight:600;white-space:nowrap}
.pkcard{background:var(--surface);border:0;border-radius:var(--r-pos);padding:var(--s6)}
.pkcard>h2{font-size:var(--fs-16);font-weight:500;margin-bottom:var(--s4)}
.pkmain .field>label{font-size:var(--fs-14)}
.pkmain .field input,.pkmain .field select,.pkmain .inp,.pkside .field input,.pkside .field select,.mbox .pkf input{height:var(--h-pos);font-size:var(--fs-15)}
.pkmain .field textarea,.pkside .field textarea{font-size:var(--fs-15);min-height:84px}
.pkmain .help,.pkside .help,.pkmain .err{font-size:var(--fs-13)}
.promo-ok{display:flex;justify-content:space-between;align-items:center;gap:var(--s3);padding:7px 10px;border-radius:var(--r-ctl);background:var(--ok-bg);color:var(--ok);font-size:12.5px;font-weight:600;margin-bottom:var(--s4)}
.promo-ok>span{display:inline-flex;align-items:center;gap:var(--s2)}
.promo-ok b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.totalhead{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--s4);margin-bottom:var(--s4)}
.totalhead .l{font-size:var(--fs-14);color:var(--text-2)}
.totalhead .v{font-size:var(--fs-30);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.02em;white-space:nowrap}
.totalhead .r{font-size:var(--fs-13);color:var(--muted);text-align:right}
.mseg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s2)}
.mseg button{height:var(--h-pos-main);border:0;border-radius:var(--r-pill);background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:var(--s2);font-size:var(--fs-15);font-weight:600;color:var(--text-2);white-space:nowrap}
.mseg button:hover{color:var(--text);background:var(--surface-3)}
.mseg button[aria-selected=true]{background:var(--ink);color:var(--on-ink)}
.mseg button[aria-disabled=true]{color:var(--disabled-text);background:var(--disabled-bg);border-color:var(--disabled-bg);cursor:not-allowed}
.mseg-why{margin-top:var(--s2);font-size:var(--fs-13);color:var(--text-2);display:flex;gap:6px;align-items:flex-start}
.mseg-why svg{color:var(--muted);margin-top:2px}
.mpanel{margin-top:var(--s4)}
.cashin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s4);align-items:end;margin-bottom:var(--s3)}
.cashin .field{margin:0}
.cashin .field input{height:56px;font-size:var(--fs-20);font-weight:600;font-variant-numeric:tabular-nums}
.change{border:0;border-radius:var(--r-in);padding:0 var(--s4);height:56px;display:flex;justify-content:space-between;align-items:center;background:var(--surface-2)}
.change span{font-size:var(--fs-14);color:var(--text-2)}
.change b{font-size:var(--fs-20);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s2);margin-bottom:var(--s4)}
.quick .btn{font-variant-numeric:tabular-nums}
.vano{font-family:var(--mono);font-size:var(--fs-30);font-weight:500;letter-spacing:.04em;font-variant-numeric:tabular-nums;white-space:nowrap}
.qrbox{display:flex;gap:var(--s6);align-items:center;flex-wrap:wrap}
.qr{width:184px;height:184px;border:1px solid var(--paper-line);background:var(--paper);padding:10px;display:grid;grid-template-columns:repeat(9,1fr);gap:2px;border-radius:var(--r-sm);flex:none}
.qr i{background:var(--paper-ink)}.qr i.w{background:var(--paper)}
.paysum{border-top:1px solid var(--line);margin-top:var(--s4);padding-top:var(--s3)}
.paysum .rows li{font-size:var(--fs-15)}
.paysum .rows li.total{font-size:var(--fs-20)}
.plist{list-style:none;padding:0;margin:0;background:var(--surface-2);border-radius:var(--r-pos)}
.plist li{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:var(--s3);align-items:center;padding:0 var(--s2) 0 var(--s4);min-height:56px;border-bottom:1px solid var(--line)}
.plist li:last-child{border-bottom:0}
.plist .m{font-weight:600}
.plist .a{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap;text-align:right}
.bigdisp{font-size:var(--fs-30);font-weight:600;font-variant-numeric:tabular-nums}
.pad{display:grid;grid-template-columns:repeat(3,72px);gap:var(--s2);justify-content:center}
.pad button{height:56px;font-size:var(--fs-20);border:0;background:var(--surface-2);border-radius:var(--r-pos);font-variant-numeric:tabular-nums}
.dots{display:flex;gap:10px;justify-content:center;margin:var(--s2) 0}
.dots i{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--text);display:block}
.dots i.f{background:var(--text)}
.dentbl td{height:56px}
.dentbl input{height:var(--h-pos);width:96px;text-align:right;font-variant-numeric:tabular-nums;font-size:var(--fs-15)}
.dentbl td:first-child{font-size:var(--fs-15);font-weight:500}
.dentbl td.num{font-size:var(--fs-15)}
.diffrow{display:flex;justify-content:space-between;align-items:center;padding:var(--s2) 0}
.sheetbtn{display:none}

/* Ponsel POS */
.phone .pktop{height:auto;flex-wrap:wrap;padding:0;gap:0}
.phone .pktop .bar1{display:flex;align-items:center;gap:var(--s3);padding:var(--s2) var(--s4);width:100%;min-height:52px}
.phone .pktop .bar1 .who2{flex:1}
.phone .pknav{width:100%;height:48px;border-top:1px solid var(--line);padding:0 var(--s2)}
.phone .pknav a{font-size:var(--fs-14);padding:0 12px}
.phone .pkbody{display:flex;flex-direction:column}
.phone .pkmain{flex:1;padding:var(--s4)}
.phone .pkside{border-left:0;border-top:1px solid var(--line)}
.phone .pkcart{border-left:0;border-top:1px solid var(--line);flex:none}
.phone .pkcart>header{height:52px;padding:0 var(--s4)}
.phone .pkcart:not(.open)>header{border-bottom:0}
.phone .pkcart .items{display:none;max-height:42vh;padding:0 var(--s4)}
.phone .pkcart .sum{padding:var(--s3) var(--s4) var(--s4)}
.phone .pkcart .sum .rows{display:none}
.phone .pkcart.open .items,.phone .pkcart.open .sum .rows{display:block}
.phone .pkcart .grand{padding:0 0 var(--s3)}
.phone .pkcart .grand b{font-size:var(--fs-20)}
.phone .sheetbtn{display:inline-flex}
.phone .pkgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2)}
.phone .prod .photo{height:64px}
.phone .mseg{grid-template-columns:repeat(5,minmax(0,1fr))}
.phone .mseg button{flex-direction:column;gap:2px;font-size:var(--fs-13);height:var(--h-pos-main)}
.phone .mseg button svg{width:18px;height:18px}
.phone .totalhead .v{font-size:var(--fs-30)}
.phone .cashin{grid-template-columns:1fr}
.phone .quick{grid-template-columns:repeat(2,minmax(0,1fr))}
.phone .vano{font-size:var(--fs-20)}
.phone .pkcard{padding:var(--s4)}
.phone .pkbody.shiftc .pkmain{flex:none;overflow:visible}
.phone .pkbody.shiftc{overflow:auto}
.phone .pkbody.shiftc .pkside{overflow:visible}
.phone .pkside.pad{padding:var(--s4)}
.phone .dentbl th,.phone .dentbl td{padding-left:var(--s3);padding-right:var(--s3)}
.phone .dentbl td:first-child{white-space:nowrap;font-size:var(--fs-14)}
.phone .dentbl input{width:64px}
.phone .dentbl th{white-space:normal;line-height:1.3}
.phone .card>header .meta{display:none}
.phone .inline-f.stack{flex-wrap:wrap}
.phone .inline-f.stack .field{flex:1 1 100%}

/* =========================================================
   RESPONSIF
   ========================================================= */
@media (max-width:1599px){
  .ann.float{position:fixed;right:0;top:var(--h-tool);bottom:0;z-index:var(--z-ann);box-shadow:var(--shadow-pop)}
}
@container content (max-width:1000px){
  .split{grid-template-columns:minmax(0,1fr)}
  .g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g32{grid-template-columns:minmax(0,1fr)}
  .dl.two{grid-template-columns:140px minmax(0,1fr)}
}
@media (max-width:1499px){
  .tool-title{border-right:0}
  .tool-open{display:inline-flex}
  .tool-in>.grow{display:block}
  .tool-ctl{display:none;position:fixed;left:0;right:0;bottom:0;z-index:var(--z-sheet);background:var(--surface);border-radius:var(--r-card) var(--r-card) 0 0;box-shadow:var(--shadow-pop);flex-direction:column;align-items:stretch;gap:var(--s4);padding:0 var(--s4) calc(var(--s5) + env(safe-area-inset-bottom,0px));max-height:85dvh;overflow:auto}
  body.ctl-open .tool-ctl{display:flex}
  body.ctl-open .tool-scrim{display:block;position:fixed;inset:0;background:var(--scrim);z-index:calc(var(--z-sheet) - 1)}
  .tool-sheet-h{display:flex;justify-content:space-between;align-items:center;height:52px;border-bottom:1px solid var(--line);margin:0 calc(var(--s4) * -1);padding:0 var(--s2) 0 var(--s4);position:sticky;top:0;background:var(--surface)}
  .tool-sheet-h b{font-size:var(--fs-16);font-weight:600}
  .tool-ctl .grow{display:none}
  .tool-ctl>*{width:100%}
  .tfield{flex-direction:column;align-items:stretch;gap:6px;font-size:var(--fs-13)}
  .tfield select{max-width:none;width:100%;height:44px;font-size:var(--fs-15)}
  .tseg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
  .tseg button{height:40px;font-size:var(--fs-14)}
  .tbtn{height:44px;justify-content:center;font-size:var(--fs-14)}
  .tchk{height:44px;font-size:var(--fs-14)}
  .tgrp{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:var(--fs-13)}
}
@media (min-width:1500px){.tgrp>.tl-lab{display:none}.tgrp{display:contents}}
@media (max-width:1099px){
  .ann{position:fixed;right:0;top:var(--h-tool);bottom:0;z-index:var(--z-ann);box-shadow:var(--shadow-pop);max-width:100%}
}
@media (max-width:900px){
  /* Shell ponsel: rail jadi bar bawah (4 grup + Lainnya), pill halaman bergulir, footer pindah ke dalam isi */
  .app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;padding:var(--s4) var(--s4) var(--s3);gap:var(--s3)}
  .rail,.ftr.out{display:none}
  .hdr{flex-wrap:wrap;row-gap:10px;gap:10px}
  .hdr .brandmark{margin-right:0}
  .hdr .sp{flex:1 1 0}
  .hdr .me{padding:0 4px}
  .hdr .me>div:last-child{display:none}
  .pills{order:6;flex:0 0 calc(100% + 32px);width:calc(100% + 32px);margin:0 -16px;padding:4px 16px}
  .cbar{order:5;flex:0 0 calc(100% + 32px);width:calc(100% + 32px);margin:0 -16px;padding:0 16px;overflow-x:auto;scrollbar-width:none}
  .cbar::-webkit-scrollbar{display:none}
  .cseg{flex:none}
  .cmain{grid-row:2;grid-column:1}
  /* Aksi header 390: judul + tombol cari bulat sebaris; di bawahnya satu baris aksi (tanggal/sekunder melebar, tombol utama selebar isinya). */
  .top{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:12px;align-items:start;padding:0}
  .top-t{grid-column:1;grid-row:1;margin-bottom:0}
  .top h1{font-size:30px}
  .top-acts{display:contents}
  .top-acts>.igrp{display:flex;grid-column:2;grid-row:1;align-self:start;gap:2px;padding:0;border-radius:var(--r-pill);background:var(--btn-bg,var(--surface))}
  .top-acts>.igrp .iconbtn{background:transparent;width:44px;height:44px}
  .top-acts>.igrp .iconbtn+.iconbtn{margin-left:-4px}
  .top-acts .btnrow{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;min-width:0;gap:8px}
  .top-acts .btnrow>*{flex:1 1 auto;min-width:0;padding:0 12px;gap:6px}
  .top-acts .btnrow>.btn.primary{flex:0 0 auto}
  .top-acts .btnrow>.btn.primary:only-child{flex:1 1 0}
  .top-acts .btnrow>.btn{overflow:hidden}
  .top-acts .btnrow>.btn .bl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top-acts .btnrow>.btn svg{flex:none}
  .top-acts .btnrow>select,.top-acts .btnrow>.inp{width:auto!important}
  .content{padding:0 0 8px}
  .pdesc{margin-top:0}
  .ftr.in{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:var(--s5) 2px var(--s2);margin-top:auto}
  .ftr.in .powered{justify-content:flex-start;flex-wrap:wrap}
  .content-in>.ftr.in{flex:none}
  .bnav{display:flex;grid-row:3;grid-column:1;justify-content:space-between;align-items:center;padding:8px 14px;border-radius:var(--r-pill);background:var(--surface);margin-bottom:env(safe-area-inset-bottom,0px)}
  .bnav .rg .bdg{top:-4px;right:-6px}
  .sheet.open{display:block;position:absolute;left:var(--s4);right:var(--s4);bottom:calc(88px + env(safe-area-inset-bottom,0px));background:var(--surface);border-radius:var(--r-card);padding:10px;z-index:6;box-shadow:var(--shadow-pop);max-height:60%;overflow:auto}
  .sheet a{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px;border-radius:var(--r-pill);color:var(--text);text-decoration:none;font-weight:500}
  .sheet a:hover{background:var(--surface-2);color:var(--text)}
  .sheet a[aria-current=page]{background:var(--ink);color:var(--on-ink)}
  .sheet a .bdg{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:var(--r-pill);background:var(--brand);color:var(--on-accent);font-size:12px;font-weight:600;display:grid;place-items:center}
  .g2,.g3,.g4,.fgrid,.split{grid-template-columns:minmax(0,1fr)}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}
  .stats>div:nth-child(odd){border-left:0}
  .ph{margin-bottom:var(--s5)}
  .ph .acts{align-items:stretch;width:100%}
  .ph .acts .btnrow{width:100%}
  .ph .acts .btnrow>*{flex:1}
  .acts .why{justify-content:flex-start;text-align:left}
  .dl,.dl.two{grid-template-columns:110px minmax(0,1fr)}
  .canvas{padding:var(--s3)}
  .tool-in{padding:0 var(--s2) 0 var(--s4)}
  .cap{margin-bottom:var(--s2)}
  .units{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:var(--s2)}
  .tour-in{flex-wrap:wrap}
  .tour-text{flex:1 1 100%;order:3}
  .wz-nav{flex-wrap:wrap}
  .steps li span.lb{display:none}
  .steps li[aria-current=step] span.lb{display:inline}
  .steps li+li::before{min-width:12px;margin:0 6px}
  /* Tabel utama jadi daftar kartu */
  .tw.cards{background:transparent;border-radius:0;padding:0}
  .tw.cards table,.tw.cards tbody{display:block}
  .tw.cards thead{display:none}
  .tw.cards tr{display:block;border:0;border-radius:20px;background:var(--surface);padding:var(--s3) var(--s4);margin-bottom:var(--s2)}
  .tw.cards tr:last-child{margin-bottom:0}
  .tw.cards tr.sel{box-shadow:inset 0 0 0 2px var(--brand)}
  .tw.cards td{display:flex;justify-content:space-between;align-items:center;gap:var(--s3);height:auto;min-height:32px;padding:4px 0!important;border:0;text-align:right;background:transparent!important;box-shadow:none!important;border-radius:0!important}
  .tw.cards td::before{content:attr(data-label);color:var(--muted);font-size:var(--fs-12);text-align:left;flex:none;max-width:45%}
  .tw.cards td:first-child{display:block;text-align:left;padding-bottom:var(--s2)!important;margin-bottom:4px;border-bottom:1px solid var(--line)}
  .tw.cards td:first-child::before{display:none}
  .tw.cards td.act{justify-content:flex-end;width:auto;padding-top:var(--s2)!important}
  .tw.cards td.act::before{display:none}
  .tw.cards td.empty-cell{display:none}
  .tw.cards tr.tot{background:var(--surface-2)}
  /* Di dalam kartu: daftar bergaris, bukan kartu di dalam kartu */
  .card .tw.cards tr{border-bottom:1px solid var(--line);border-radius:0;background:transparent;margin:0;padding:var(--s3) var(--s4)}
  .card .tw.cards tr:last-child{border-bottom:0}
  .card .tw.cards tr.sel{background:var(--brand-soft);box-shadow:none}
  .card .tw.cards td:first-child{border-bottom:0;margin-bottom:0;padding-bottom:4px!important}
  .kpi{padding:var(--s4)}
  .kpi .v{font-size:var(--fs-26);margin-top:6px}
  .kpi .s{margin-top:2px}
  .ubar .f{width:100%}
  .ubar .f .search{width:100%!important}
  .ubar .f .field{flex:1;width:auto;min-width:0}
  .g3>.kpi{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--s3);align-items:baseline}
  .g3>.kpi .v{grid-column:2;grid-row:1/3;align-self:center;margin:0}
  .g3>.kpi .l{grid-column:1;grid-row:1}
  .g3>.kpi .s{grid-column:1;grid-row:2}
  .ph .acts{align-items:flex-start}
  .ph .acts .btnrow>*:only-child{flex:0 0 auto}
  .stats>div:last-child:nth-child(odd){grid-column:1/-1}
  .unit{height:auto;min-height:88px;padding:var(--s2)}
  .unit .u1{flex-wrap:wrap;gap:0 6px}
  .unit .u1 b{white-space:nowrap}
  .urow .photo{display:none}
  .urow{padding:var(--s3)}
  .iconbtn{width:44px;height:44px}
  .btn.sm{height:40px}
  .inp,.field input,.field select{height:44px}
}
@media (max-width:700px){
  .tool-title{font-size:var(--fs-14)}
  .frame{min-height:0}
  .pkframe.phone{height:100%}
  .chart{height:140px}
}
@media (prefers-reduced-motion:reduce){.side{transition:none}}

/* === Tambahan layar PC === */
/* Daftar periksa dengan ikon status */
.cklist{list-style:none;padding:0;margin:0;display:grid;gap:var(--s2)}
.cklist li{display:flex;gap:var(--s2);align-items:flex-start;font-size:var(--fs-13);color:var(--text)}
.cklist li svg{margin-top:1px}
.cklist li.ok svg{color:var(--ok)}
.cklist li.bad svg{color:var(--bad)}
.cklist li.wait svg{color:var(--muted)}
/* Foto unit, pratinjau dokumen berdampingan, variabel template */
.thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s2)}
.docpair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s4)}
.docpair figure{margin:0;min-width:0}
.docpair figcaption{font-size:var(--fs-12);color:var(--muted);margin-top:6px}
.varlist{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.sigs{display:inline-flex;gap:4px;flex-wrap:wrap}
.occ-cell{display:flex;align-items:center;gap:var(--s2);min-width:140px}
.occ-cell .bar{flex:1}
.occ-cell span{font-size:var(--fs-13);font-variant-numeric:tabular-nums;width:36px;text-align:right}
.card>header .legend{height:auto}
/* PC-00 login */
.login{max-width:400px;margin:var(--s12) auto 0}
.login-h{display:flex;gap:var(--s3);align-items:center;margin-bottom:var(--s5)}
.login-h h1{font-size:var(--fs-20);font-weight:600;line-height:1.3}
/* PC-02 peta kesehatan per lokasi */
.hmap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}
.hcl{background:var(--surface-2);border-radius:20px;padding:var(--s3);min-width:0}
.hcl-h b{display:block;font-size:var(--fs-13);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcl-h span{font-size:var(--fs-12);color:var(--muted)}
.hcl-b{position:relative;height:180px;background:var(--canvas);border-radius:var(--r-ctl);margin:var(--s2) 0}
.hcl-f{display:flex;gap:6px;flex-wrap:wrap}
.hp{position:absolute;left:calc(6% + var(--x,0) * .86%);top:calc(8% + var(--y,0) * .8%);width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px var(--surface)}
.hp.ok{background:var(--ok)}.hp.warn{background:var(--warn)}.hp.bad{background:var(--bad)}
.legend i.hp{position:static;display:inline-block;width:10px;height:10px;border:0;border-radius:50%;box-shadow:none}
/* PC-91 matriks role */
.matrix th{white-space:normal;line-height:1.3;min-width:96px;vertical-align:bottom;padding-top:var(--s2);padding-bottom:var(--s2);height:auto}
.matrix td{text-align:center}
.matrix td:first-child,.matrix th:first-child{text-align:left}
.mx{display:inline-flex;align-items:center;gap:4px}
.mx.full{color:var(--brand-ink)}
.mx.read{color:var(--muted)}
.sc{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:var(--r-pill);background:var(--off-bg);color:var(--text-2);font-size:var(--fs-11);font-weight:500;margin-left:2px}
/* PC-93 pengaturan dengan navigasi bagian */
.setgrid{display:grid;grid-template-columns:200px minmax(0,1fr);gap:var(--s6);align-items:start}
.setnav{position:sticky;top:0;display:flex;flex-direction:column;gap:2px}
.setnav a{display:block;padding:6px var(--s2);border-radius:var(--r-ctl);color:var(--text-2);text-decoration:none;font-size:var(--fs-14)}
.setnav a:hover{background:var(--surface);color:var(--text)}
/* PC-02 status kesehatan dengan tanggal */
.hstat{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px}
@container content (max-width:1000px){
  .setgrid{grid-template-columns:minmax(0,1fr)}
  .setnav{position:static;flex-direction:row;overflow-x:auto;gap:var(--s1)}
  .setnav a{white-space:nowrap}
  .hmap{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .docpair{grid-template-columns:minmax(0,1fr)}
  .login{margin-top:var(--s6)}
  .card>header{flex-wrap:wrap}
  /* Mode kartu: label kiri, nilai bertingkat (utama + baris kedua) rata kanan */
  .tw.cards td:not(:first-child){display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);column-gap:var(--s3);align-items:center;justify-items:end}
  .tw.cards td:not(:first-child)::before{grid-row:1 / span 2;justify-self:start;max-width:none}
  .tw.cards td:not(:first-child) .sub{grid-column:2;text-align:right}
  .tw.cards td.empty-cell{display:none}
}

/* === Tambahan layar TC/PK === */
/* Halaman publik TMS (TC-00 sampai TC-03) */
.auth{max-width:520px;margin:var(--s8) auto 0}
.auth-h{display:flex;align-items:center;gap:10px;margin-bottom:var(--s6);font-size:var(--fs-15)}
.auth-h b{font-weight:600}
.auth .ph{margin-bottom:var(--s4)}
.auth-f{margin-top:var(--s4);font-size:var(--fs-13);color:var(--text-2);text-align:center}
.qr.sm{width:132px;height:132px;padding:8px}
.ctxl{list-style:none;padding:0;margin:0 0 var(--s3)}
.ctxl li+li{border-top:1px solid var(--line)}
.ctxrow{display:flex;align-items:center;gap:var(--s3);min-height:60px;padding:var(--s2);margin:0 calc(var(--s2) * -1);border-radius:var(--r-ctl);text-decoration:none;color:var(--text)}
.ctxrow:hover{background:var(--surface-2);color:var(--text)}
.ctxi{width:36px;height:36px;border-radius:var(--r-ctl);background:var(--off-bg);display:grid;place-items:center;color:var(--text-2);flex:none}
.ctxt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ctxt b{font-weight:600;font-size:var(--fs-14);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctxt span{font-size:var(--fs-12);color:var(--muted)}
.ctxrow>svg:last-child{color:var(--muted)}
/* Foto unit TC-21: satu besar, dua kecil */
.gal{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:var(--s2)}
.gal>:first-child{grid-row:span 2}
.unit[aria-current]{outline:2px solid var(--brand);outline-offset:1px}
.note.ok-note{background:var(--ok-bg);color:var(--ok)}
/* Input jumlah di dalam tabel (TC-73) */
.qtyin{width:88px;height:32px;text-align:right;font-variant-numeric:tabular-nums;border:1px solid var(--line-2);border-radius:var(--r-ctl);padding:0 8px;background:var(--surface)}
.qtyin:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:var(--brand)}
/* Panel nota susulan TC-87: foto di kiri, data di kanan */
.bkgrid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--s4);align-items:start}
.bkgrid .rows li{padding:5px 0;font-size:var(--fs-13)}
@media (max-width:900px){
  .bkgrid{grid-template-columns:minmax(0,1fr)}
  .qtyin{height:40px;width:96px}
  .auth{margin-top:var(--s4)}
}
.card .vano.sm{font-size:var(--fs-20);white-space:normal;overflow-wrap:anywhere}
.dl.narrow{grid-template-columns:96px minmax(0,1fr)}
/* POS: judul bagian, banner offline, tabel bertinggi sentuh */
.pkh{font-size:var(--fs-16);font-weight:600;margin-bottom:var(--s3);line-height:1.35}
.offban{display:flex;align-items:center;gap:var(--s3);min-height:48px;padding:10px var(--s4);margin-bottom:var(--s4);border-radius:var(--r-ctl);background:var(--warn-bg);color:var(--warn);text-decoration:none;font-size:var(--fs-14)}
.offban:hover{color:var(--warn)}
.offban span{flex:1;min-width:0}
.offban b{font-weight:600}
.offban.bad{background:var(--bad-bg);color:var(--bad)}
.offban.bad:hover{color:var(--bad)}
.pktbl td{height:56px}
.pktbl td.act .btn{height:var(--h-pos)}
.cklist.big li{font-size:var(--fs-15);gap:var(--s3);padding:2px 0}
.cklist.big li svg{margin-top:2px}
.cklist.big b{font-weight:600}
.offhead{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--s4);margin-bottom:var(--s5)}
.offhead .l{font-size:var(--fs-14);color:var(--text-2)}
.offhead .v{font-size:var(--fs-30);font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
/* PK-00 pairing */
.paircard{max-width:560px;margin:var(--s6) auto 0;text-align:center;background:var(--surface);border:0;border-radius:var(--r-card);padding:var(--s8) var(--s6)}
.paircard h1{font-size:var(--fs-20);font-weight:600;margin-bottom:6px}
.paircode{font-family:var(--mono);font-size:48px;font-weight:600;letter-spacing:.12em;margin:var(--s6) 0 var(--s3);font-variant-numeric:tabular-nums;white-space:nowrap}
.paircode span{color:var(--muted);margin:0 .1em}
.pairmeta{display:flex;justify-content:center;align-items:center;gap:var(--s3);font-size:var(--fs-14);color:var(--text-2);margin-bottom:var(--s5)}
.pairsteps{text-align:left;max-width:420px;margin:0 auto var(--s5);padding-left:20px;display:grid;gap:6px;font-size:var(--fs-14);color:var(--text-2)}
/* PK-01 pilih kasir */
.kasgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}
.kasbtn{display:flex;align-items:center;gap:var(--s3);min-height:72px;padding:var(--s3);border:0;border-radius:var(--r-pos);background:var(--surface);text-align:left;color:var(--text)}
.kasbtn:hover{background:var(--surface-2)}
.kasbtn[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--ink);background:var(--surface)}
.kasbtn[aria-disabled=true]{background:var(--disabled-bg);color:var(--text-2);cursor:not-allowed}
.kasbtn .kt{flex:1;min-width:0;display:flex;flex-direction:column}
.kasbtn .kt b{font-size:var(--fs-15);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kasbtn .kt span{font-size:var(--fs-13);color:var(--muted)}
.avatar.lg{width:56px;height:56px;font-size:var(--fs-16);margin:0 auto}
/* PK-11 pilihan varian */
.optprod{display:flex;gap:var(--s3);align-items:center;margin-bottom:var(--s2)}
.optprod>div{display:flex;flex-direction:column}
.optprod b{font-size:var(--fs-16);font-weight:600}
.optg .minih span{text-transform:none;letter-spacing:0;font-weight:400}
.optrow{display:flex;flex-wrap:wrap;gap:var(--s2)}
.optrow .chip,.seg2 .chip{height:var(--h-pos);font-size:var(--fs-15)}
.optrow .chip[aria-pressed=true],.seg2 .chip[aria-pressed=true]{background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand)}
.optfoot{display:flex;gap:var(--s3);align-items:center;margin-top:var(--s4)}
.optfoot .qty{height:48px}.optfoot .qty button{height:48px;width:48px}
.mbox .optfoot .inp{height:var(--h-pos)}
.seg2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2)}
.seg2 .chip{justify-content:center;gap:var(--s2);border-radius:var(--r-ctl)}
.seg3 .mseg{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick.nom{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick.nom .btn[aria-pressed=true]{background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand)}
/* PK-14 sukses dan pratinjau struk */
.pkcard.done{text-align:center;padding:var(--s8) var(--s6)}
.pkcard.done h1{font-size:var(--fs-20);font-weight:600}
.okic{width:64px;height:64px;border-radius:50%;background:var(--ok-bg);color:var(--ok);display:grid;place-items:center;margin:0 auto var(--s3)}
.bigchg{display:flex;flex-direction:column;align-items:center;margin:var(--s5) 0;padding:var(--s4);border-radius:var(--r-pos);background:var(--surface-2);border:0}
.bigchg span{font-size:var(--fs-14);color:var(--text-2)}
.bigchg b{font-size:40px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}
.struk{font-family:var(--mono);font-size:var(--fs-12);line-height:1.5;background:var(--paper);border:1px solid var(--paper-line);border-radius:var(--r-ctl);padding:var(--s4);color:var(--text)}
.struk .scn{text-align:center}
.struk .sl{display:flex;justify-content:space-between;gap:var(--s2);font-variant-numeric:tabular-nums}
.struk .sl span:last-child{white-space:nowrap}
.struk .sl.sub2{color:var(--muted)}
.struk .sl.tot{font-weight:600}
.struk hr{border:0;border-top:1px dashed var(--line-2);margin:6px 0}
.sigs2{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4);text-align:center;margin-top:var(--s2)}
.sigs2 span{border-top:1px solid var(--line-2);padding-top:4px;margin-top:28px}
/* PK-15 pesanan ditahan */
.plist.held li{grid-template-columns:auto minmax(0,1fr) auto auto;padding:var(--s2) var(--s2) var(--s2) var(--s4);min-height:72px}
.plist.held .a{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
/* PK-40 antrian */
.qcols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4);align-items:start}
.qcol ul{list-style:none;padding:0;margin:0;display:grid;gap:var(--s3)}
.tkt{background:var(--surface);border:0;border-radius:var(--r-pos);padding:var(--s3) var(--s4);display:grid;gap:var(--s2)}
.tkh{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s2)}
.tkh b{font-size:var(--fs-30);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.tkh span{font-size:var(--fs-13);color:var(--muted);white-space:nowrap}
.tkt p{font-size:var(--fs-14);color:var(--text-2)}
.tkt .badge{justify-self:start}
/* Ponsel POS */
.phone .kasgrid{grid-template-columns:minmax(0,1fr)}
.phone .qcols{grid-template-columns:minmax(0,1fr)}
.phone .paircard{padding:var(--s6) var(--s4);margin-top:var(--s2)}
.phone .paircode{font-size:32px}
.phone .offhead .v{font-size:var(--fs-20)}
.phone .bigchg b{font-size:var(--fs-30)}
.phone .plist.held li{grid-template-columns:auto minmax(0,1fr) auto;row-gap:var(--s2)}
.phone .plist.held li>.btnrow{grid-column:1/-1;justify-content:flex-end}
.phone .seg3 .mseg button{font-size:var(--fs-13)}
.phone .quick.nom{grid-template-columns:repeat(2,minmax(0,1fr))}
.phone .optfoot{flex-wrap:wrap}
/* Panel kanan POS tanpa kelas .pad (bentrok dengan papan PIN .pad) */
.pkside.pp{display:block;padding:var(--s5);overflow:auto}
.phone .pkside.pp{padding:var(--s4)}
.pkside.pad .btn.pkb{font-size:var(--fs-16);border-radius:var(--r-ctl)}
.phone .pkbody.stk{overflow:auto}
.phone .pkbody.stk .pkmain{flex:none;overflow:visible}
.phone .pkbody.stk .pkside{flex:none;overflow:visible}

/* === Tambahan pengajuan, KYC, dan survei === */
/* Stepper 8 tahap di halaman lacak pengajuan (TC-24) */
.stage8{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s4) var(--s3)}
.stage8 li{display:flex;gap:var(--s2);align-items:flex-start;min-width:0}
.stage8 i{font-style:normal;flex:none;width:24px;height:24px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center;font-size:var(--fs-12);font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.stage8 li>span{min-width:0}
.stage8 b{display:block;font-size:var(--fs-13);font-weight:500;color:var(--text-2);line-height:1.35}
.stage8 li.done i{background:var(--brand-soft);border-color:var(--brand-soft);color:var(--brand-ink)}
.stage8 li.cur i{background:var(--brand-fill);border-color:var(--brand-fill);color:var(--on-brand)}
.stage8 li.cur b{color:var(--text);font-weight:600}
.stage8 li.next b{color:var(--muted)}
/* Nomor pengajuan di layar sukses */
.regno{display:flex;flex-direction:column;align-items:center;gap:2px;padding:var(--s4);margin-bottom:var(--s4);border:0;border-radius:var(--r-pos);background:var(--surface-2)}
.regno span{font-size:var(--fs-13);color:var(--muted)}
.regno b{font-family:var(--mono);font-size:var(--fs-20);font-weight:600;letter-spacing:.02em}
/* Pilihan slot survei (TC-24, TC-25) */
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--s2)}
.slotopt{display:flex;gap:var(--s2);align-items:flex-start;padding:10px var(--s3);border:1px solid var(--line-2);border-radius:var(--r-ctl);background:var(--surface);cursor:pointer}
.slotopt input{margin:2px 0 0;width:16px;height:16px;accent-color:var(--brand);flex:none}
.slotopt b{display:block;font-size:var(--fs-13);font-weight:500}
.slotopt:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.slotopt:focus-within{outline:2px solid var(--brand);outline-offset:2px}
.slotopt.off{background:var(--disabled-bg);border-color:var(--disabled-bg);color:var(--disabled-text);cursor:not-allowed}
.slotopt.off .sub{color:var(--disabled-text)}
/* Kalender minggu survei (PC-24) */
.wkwrap{overflow-x:auto}
.wk{border-collapse:collapse;width:100%;min-width:720px;font-size:var(--fs-12)}
.wk th,.wk td{height:auto;padding:6px;border-bottom:1px solid var(--line);vertical-align:top}
.wk thead th{background:var(--surface-2);text-transform:none;letter-spacing:0;font-size:var(--fs-12);color:var(--text-2);text-align:left}
.wk tbody th{width:56px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums;text-align:left;background:transparent;text-transform:none;letter-spacing:0}
.wk th:first-child,.wk td:first-child{padding-left:6px}
.slot{display:flex;flex-direction:column;gap:1px;min-height:36px;padding:4px var(--s2);border-radius:var(--r-ctl);line-height:1.3}
.slot b{font-weight:600;font-variant-numeric:tabular-nums}
.slot.free{border:1px dashed var(--line-2);color:var(--muted);justify-content:center}
.slot.req{background:var(--warn-bg);color:var(--warn)}
.slot.sched{background:var(--info-bg);color:var(--info)}
.slot.resched{background:var(--surface);border:1px solid var(--brand);color:var(--brand-ink)}
.slot.busy{background:var(--off-bg);color:var(--muted);justify-content:center}
.legend i.slot-k{width:12px;height:12px;border-radius:3px;border:1px solid transparent}
.legend i.slot-k.req{background:var(--warn-bg);border-color:var(--warn)}
.legend i.slot-k.sched{background:var(--info-bg);border-color:var(--info)}
.legend i.slot-k.resched{background:var(--surface);border-color:var(--brand)}
.legend i.slot-k.busy{background:var(--off-bg);border-color:var(--line)}
@media (max-width:900px){
  .stage8{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Tahap brand di bar alat dan tombol tabel */
@media (min-width:1500px){
  .tfield>.tl-lab{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tfield select{max-width:180px}
}
td .btnrow{flex-wrap:nowrap}

/* =========================================================
   KOMPONEN BARU FASE 0 (helper U.kpi4, kanban, drawer, files, history, activity, javaMap, chart)
   ========================================================= */
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes slidein{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}

/* Chip filter dan segmented tampilan */
.fbar{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap;flex:none;margin-bottom:var(--s3)}
.fchip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--r-pill);border:0;background:var(--btn-bg,var(--surface));font-size:var(--fs-13);font-weight:500;color:var(--text-2);white-space:nowrap}
.fchip b{color:var(--text);font-weight:600}
.fchip:hover{background:var(--btn-hover,var(--surface-3))}
.fchip[aria-pressed=true]{background:var(--ink);color:var(--on-ink)}
.fchip[aria-pressed=true] b{color:inherit}
.seg{display:inline-flex;gap:2px;padding:4px;border-radius:var(--r-pill);background:var(--btn-bg,var(--surface))}
.seg button{width:36px;height:36px;display:grid;place-items:center;color:var(--text-2);border:0;background:transparent;border-radius:50%}
.seg button:hover{color:var(--text)}
.seg button[aria-pressed=true]{background:var(--ink);color:var(--on-ink)}

/* U.kpi4: kartu KPI. Item pertama = hero ink (gelap: dibalik) kecuali hero:false. */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);margin-bottom:var(--gap);flex:none}
@container content (min-width:1101px){.kpis[data-n="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
.kpi4{padding:22px 24px;display:flex;flex-direction:column;min-height:160px;text-decoration:none;color:var(--text);position:relative}
a.kpi4:hover{color:var(--text)}
a.kpi4:hover .go{background:var(--surface-3)}
.kpi4 .kh{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.kpi4 .lab{font-size:var(--fs-16);font-weight:500;letter-spacing:-.005em;line-height:1.3}
.kpi4 .go{margin:-8px -10px 0 0}
.kpi4 .vr{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:auto}
.kpi4 .v{font-size:var(--fs-40);font-weight:300;letter-spacing:-.03em;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.kpi4 .v small{font-size:18px;font-weight:300;color:var(--text-2);margin-left:5px;letter-spacing:0}
.kpi4 .s{font-size:var(--fs-13);color:var(--text-2);margin-top:8px}
.kpi4 .ticks{display:flex;gap:1px;height:16px;margin-top:10px}
.kpi4 .ticks i{flex:1;border-radius:2px;background:var(--ink)}
.kpi4 .ticks i.off{background:var(--surface-3)}
.kpi4 .ticks i.ac{background:var(--brand)}
.kpi4 .ticks.dim i{background:var(--text-2);opacity:.45}
.kpi4 .ticks.dim i.ac{background:var(--brand);opacity:1}
.kpi4 .age{display:flex;gap:6px;height:16px;margin-top:10px}
.kpi4 .age span{flex:1;border-radius:var(--r-pill);background:var(--surface-3);position:relative;overflow:hidden}
.kpi4 .age i{position:absolute;inset:0 auto 0 0;background:var(--ink);border-radius:var(--r-pill)}
.kpi4 .age span.ac i{background:var(--brand)}
.kpi4 .strip{display:flex;align-items:flex-end;gap:3px;height:28px;margin-top:12px}
.kpi4 .strip i{flex:1;border-radius:4px;background:var(--bar)}
.kpi4 .strip i.hot{background:var(--brand)}.kpi4 .strip i.bad{background:var(--bad)}.kpi4 .strip i.mute{background:var(--text-2)}
.kpi4 .ring{margin-left:auto;flex:none}
.vz-track{stroke:var(--surface-3)}.vz-ring{stroke:var(--ink)}
.kpi4.hero .vz-track{stroke:var(--hero-bar)}.kpi4.hero .vz-ring{stroke:var(--brand)}
.kpi4.hero{background:var(--hero);color:var(--hero-text)}
.kpi4.hero .s,.kpi4.hero .v small{color:var(--hero-text2)}
.kpi4.hero .go{background:var(--hero-btn);color:var(--hero-btn-ink)}
.kpi4.hero .go:hover{opacity:.9}
.kpi4 .kh{margin-bottom:12px}
.kpi4 .kh .lab{min-width:0}
.kpi4 .khr{display:flex;align-items:center;gap:8px;flex:none;max-width:60%;min-width:0}
.kpi4 .khr .badge{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.kpi4 .khr .go{margin:-8px -10px -8px 0}
.kpi4 .hrow{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;min-width:0}
.kpi4 .hl2{flex:1 1 0;min-width:0}
.kpi4 .hrow .vr{margin-top:0}
.kpi4.hero .s{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.kpi4 .hbars{--bw:8px;--bg:3px;display:flex;align-items:flex-end;gap:var(--bg);height:34px;flex:0 1 calc(var(--n) * (var(--bw) + var(--bg)));min-width:0;max-width:45%;overflow:hidden}
.kpi4 .hbars i{flex:1 1 0;min-width:1px;max-width:var(--bw);border-radius:3px;background:var(--hero-bar)}
.kpi4 .hbars i.hot{background:var(--brand)}
.hbars i.hot{background:var(--brand)}

/* Panel dasar dashboard */
.panel{padding:22px 24px;display:flex;flex-direction:column;min-height:0}
.ph2{display:flex;align-items:center;gap:10px;margin-bottom:var(--s3);flex-wrap:wrap}
.ph2 h2{font-size:var(--fs-16);font-weight:500}
.dsel{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-13);color:var(--text-2)}
.dash2{display:grid;grid-template-columns:1.55fr 1fr;gap:var(--gap);min-height:0;flex:1}
.dash2>.panel{min-height:0}
/* Dashboard bento: baris KPI lalu baris kartu yang mengisi sisa tinggi */
.dash{display:flex;flex-direction:column;flex:1;min-height:0}
.dash-row{flex:1;min-height:496px;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,5fr);gap:var(--gap)}
.dash-row>.card{display:flex;flex-direction:column;min-height:0;padding:22px 24px;position:relative}
.dh2{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dh2 h2{font-size:var(--fs-16);font-weight:500;letter-spacing:-.005em;display:flex;align-items:center;gap:8px}
.dh2 .sub{font-size:var(--fs-13);color:var(--text-2);margin-top:2px}
.dh2 .go{margin:-8px -10px 0 0}
.cnt{min-width:26px;height:26px;padding:0 8px;border-radius:var(--r-pill);background:var(--brand);color:var(--on-accent);font-weight:600;font-size:var(--fs-13);display:inline-grid;place-items:center;line-height:1}

/* U.bars: grafik batang HTML (bar abu membulat, satu bar sorotan arsir aksen + chip nilai) */
.avg{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin-top:10px}
.avg strong{font-size:28px;font-weight:300;letter-spacing:-.025em}
.avg span{font-size:var(--fs-13);color:var(--text-2)}
.plot{flex:1;min-height:130px;display:grid;grid-template-columns:repeat(var(--n,7),minmax(0,1fr));gap:8px;margin-top:14px}
.plot .col{display:flex;flex-direction:column;min-height:0;align-items:stretch}
.plot .area{flex:1;position:relative;min-height:0}
.plot .pb{position:absolute;left:0;right:0;bottom:0;border-radius:16px;background:var(--bar);height:auto}
.plot .pb.hi{background:repeating-linear-gradient(135deg,var(--brand) 0 2px,transparent 2px 7px),color-mix(in srgb,var(--brand) 16%,var(--surface))}
.plot .tag{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;height:26px;padding:0 9px;border-radius:9px;background:var(--brand);color:var(--on-accent);font-size:12.5px;font-weight:600;display:grid;place-items:center;font-variant-numeric:tabular-nums}
.plot .d{margin-top:10px;text-align:center;font-size:12.5px;color:var(--text-2)}
.plot .n{text-align:center;font-size:12.5px;font-weight:500;font-variant-numeric:tabular-nums}
.plot .col.is-hi .d{color:var(--text);font-weight:500}
.note-sw{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;color:var(--text-2);margin-top:12px}
.note-sw .sw{margin-top:3px}
.sw{width:12px;height:12px;border-radius:4px;flex:none;display:inline-block}
.sw.hi{background:repeating-linear-gradient(135deg,var(--brand) 0 2px,transparent 2px 4px),color-mix(in srgb,var(--brand) 16%,var(--surface));outline:1px solid var(--brand)}

/* U.tiles: grid tile status (satu kotak satu unit) per lokasi + legenda */
.hl{display:flex;flex-direction:column;justify-content:space-between;flex:1;min-height:0;margin-top:10px;gap:8px}
.hl .loc{display:block;font-size:inherit}
.hl .loc .top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.hl .loc .nm{font-size:var(--fs-14);font-weight:500;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hl .loc .nm a{color:inherit;text-decoration:none}
.hl .loc .nm a:hover{text-decoration:underline}
.hl .loc .nm small{font-size:12.5px;font-weight:400;color:var(--text-2);margin-left:6px}
.tiles{display:flex;flex-wrap:wrap;gap:3px}
.tiles i{width:13px;height:17px;border-radius:5px;display:block}
.tiles i.g{background:var(--t-ok)}.tiles i.y{background:var(--t-warn)}.tiles i.r{background:var(--t-bad)}
.tiles i.o{background:repeating-linear-gradient(135deg,var(--text-2) 0 1px,transparent 1px 4px),var(--t-off);opacity:.75}
.tlegend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--text-2);margin-top:10px}
.tlegend span{display:inline-flex;align-items:center;gap:6px}
.tlegend i{width:12px;height:12px;border-radius:4px;display:block}
.tlegend i.g{background:var(--t-ok)}.tlegend i.y{background:var(--t-warn)}.tlegend i.r{background:var(--t-bad)}
.tlegend i.o{background:repeating-linear-gradient(135deg,var(--text-2) 0 1px,transparent 1px 4px),var(--t-off)}

/* U.activity: daftar antrian */
.qlist{display:flex;flex-direction:column;gap:8px;min-height:0}
.qi{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:8px 14px 8px 10px;border-radius:20px;background:var(--surface-2);color:var(--text);text-decoration:none}
a.qi:hover{background:var(--surface-3);color:var(--text)}
.qi .ic{grid-row:1/3;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--text)}
.qi b{font-size:var(--fs-14);font-weight:500;grid-column:2;grid-row:1;min-width:0;line-height:1.25}
.qi .m{font-size:12.5px;color:var(--text-2);grid-column:2;grid-row:2;min-width:0;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qi .badge{grid-column:3;grid-row:1/3}
.qlist.fill{flex:1;margin-top:12px}
.qlist.fill .qi{flex:1;min-height:0}
.qall{align-self:stretch;margin-top:12px;height:44px;border-radius:var(--r-pill);background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:500;font-size:var(--fs-14);text-decoration:none;color:var(--text)}
.qall:hover{background:var(--surface-3);color:var(--text)}
.pfoot{display:flex;justify-content:flex-end;gap:var(--s2);margin-top:var(--s3)}

/* U.javaMap */
.map{position:relative;flex:none;aspect-ratio:760/250;margin:0 -8px}
.map svg{width:100%;height:100%;display:block}
.map .mland{fill:var(--line-2)}
.map text{fill:var(--text-2);font-size:11px;font-weight:600;font-family:var(--font)}
.map .mdot-core{fill:currentColor}
.map .mdot-ring{fill:none;stroke:currentColor;stroke-opacity:.6}
.map .ok{color:var(--ok)}.map .warn{color:var(--warn)}.map .bad{color:var(--bad)}
.map a{outline:none}
.map a:focus-visible .mdot-ring{stroke-width:2;stroke-opacity:1}
.mlegend{display:flex;gap:14px;flex-wrap:wrap;font-size:var(--fs-12);color:var(--text-2);margin:6px 8px 0}
.mlegend span{display:inline-flex;align-items:center;gap:6px}
.mlegend i{display:inline-block;width:8px;height:8px;border-radius:50%}
.mlegend .ok{background:var(--ok)}.mlegend .warn{background:var(--warn)}.mlegend .bad{background:var(--bad)}
.locs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px;margin-top:10px;flex:1;align-content:space-evenly}
.loc{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;font-size:12.5px}
.loc b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.loc span{color:var(--muted);white-space:nowrap}
.stackbar{grid-column:1/3;height:4px;border-radius:4px;background:var(--surface-3);overflow:hidden;display:flex}
.stackbar i{display:block;height:100%}
.stackbar .ok{background:var(--ok)}.stackbar .warn{background:var(--warn)}.stackbar .bad{background:var(--bad)}

/* U.kanban */
.kb{display:flex;flex-direction:column;flex:1;min-height:0}
.board{display:grid;grid-template-columns:repeat(var(--cols,5),minmax(0,1fr));gap:var(--s3);flex:1;min-height:0}
.kcol{display:flex;flex-direction:column;gap:8px;min-height:0;min-width:0}
.kcolh{display:flex;align-items:center;gap:8px;font-size:var(--fs-13);font-weight:600;padding:2px 2px 4px}
.kcolh .c{font-weight:600;color:var(--muted)}
.kcolh .st{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.kcolh .st.info{background:var(--info)}.kcolh .st.warn{background:var(--warn)}.kcolh .st.ok{background:var(--ok)}.kcolh .st.bad{background:var(--bad)}
.kcolh .more{color:var(--muted);margin-left:auto}
.kcards{display:flex;flex-direction:column;gap:8px;overflow:auto;min-height:0;padding:2px;margin:-2px}
.kcard{border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;color:var(--text);cursor:grab;font-size:var(--fs-14)}
.kcard:hover{background:var(--surface-2)}
.kcard.sel{outline:2px solid var(--brand);outline-offset:-1px}
.kcard .id{font-size:11.5px;font-weight:600;color:var(--muted);letter-spacing:.02em}
.kcard b{font-size:13.5px;font-weight:600;line-height:1.3}
.kcard .meta{font-size:var(--fs-12);color:var(--text-2);display:flex;align-items:center;gap:6px}
.kcard .meta svg{width:13px;height:13px;color:var(--muted)}
.kcard .row{display:flex;align-items:center;gap:8px}
.prog{flex:1;height:4px;background:var(--surface-3);border-radius:4px;overflow:hidden}
.prog i{display:block;height:100%;background:var(--text-2)}
.kcard .pn{font-size:11.5px;color:var(--muted);font-weight:600;white-space:nowrap}
.kcard.drag{opacity:.55}
.kb-list{display:none}
.kb[data-v="list"] .board{display:none}
.kb[data-v="list"] .kb-list{display:block}
.kb-list .tw{overflow:auto}

/* U.drawer */
.dwr{position:absolute;inset:0;z-index:var(--z-sheet)}
.dscrim{position:absolute;inset:0;background:var(--scrim);backdrop-filter:blur(2px);animation:fadein .18s ease-out}
.drawer{position:absolute;top:var(--s4);right:var(--s4);bottom:var(--s4);width:460px;max-width:calc(100% - 32px);background:var(--surface);border:0;border-radius:var(--r-card);box-shadow:var(--shadow-pop);display:flex;flex-direction:column;overflow:hidden;animation:slidein .2s ease-out}
.dh{padding:24px 24px 16px;border-bottom:1px solid var(--line);flex:none}
.dh .t{display:flex;align-items:flex-start;gap:10px}
.dh .t .grow{min-width:0}
.dh .id{font-size:var(--fs-12);color:var(--muted);font-weight:600}
.dh h2{font-size:var(--fs-20);font-weight:400;letter-spacing:-.01em;margin-top:2px}
.dh .acts{display:flex;gap:var(--s2);margin-top:14px;flex-wrap:wrap}
.dh .acts .btn{height:var(--h-btn);justify-content:center;flex:1 1 auto}
.dh .acts .btn.ghost{flex:0 0 auto}
.db{padding:6px 24px 24px;overflow:auto;display:flex;flex-direction:column;gap:var(--s2);flex:1;min-height:0}
.dsec h3{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;margin:12px 0 10px}
.dsec h3 .badge{margin-left:auto}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 16px;font-size:var(--fs-13)}
.kv dt{color:var(--muted);font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding-top:2px}
.kv dd{text-align:right;font-weight:500;margin:0;min-width:0}

/* U.files */
.files{display:flex;flex-direction:column}
.fi{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:0 10px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.fi:first-child{border-top:0}
.fi .ic{width:30px;height:30px;border-radius:8px;background:var(--surface-3);display:grid;place-items:center;color:var(--text-2)}
.fi b{font-size:var(--fs-13);font-weight:600;display:block}
.fi .m{font-size:var(--fs-12);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.fnote{margin-top:6px;font-size:var(--fs-12);color:var(--warn);background:var(--warn-bg);border-radius:6px;padding:4px 8px;grid-column:2/4}

/* U.history */
.hist{display:flex;flex-direction:column;gap:10px;font-size:12.5px;color:var(--text-2);list-style:none;padding:0}
.hist li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:start}
.hist .av{width:22px;height:22px;border-radius:6px;font-size:9.5px}
.hist b{color:var(--text);font-weight:600}
.hist time{font-size:11.5px;color:var(--muted);white-space:nowrap}

/* U.chart */
.vc{width:100%}
.vc svg{display:block;width:100%;height:auto;overflow:visible}
.vc.fill{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.vc.fill>svg{flex:1 1 0;height:0;min-height:140px}
.fold{display:flex;flex-direction:column}
.fold>.tc-dash{flex:1 1 auto;margin-bottom:0}
.vc text{font-family:var(--font);font-size:11px;fill:var(--chart-axis)}
.vc .gl{stroke:var(--chart-grid);stroke-width:1;fill:none}
.vc .axis{stroke:var(--line-2);stroke-width:1}
.vc .lbl{fill:var(--text);font-weight:600;font-size:11.5px}
.vc .col .hit{fill:transparent}
.vc .col .tip{opacity:0;pointer-events:none;transition:opacity .12s ease-out}
.vc .col:hover .tip,.vc .col:focus .tip{opacity:1}
.vc .col:hover .hl,.vc .col:focus .hl{opacity:1}
.vc .hl{opacity:0;stroke:var(--line-2);stroke-width:1}
.vc .tip rect{fill:var(--tip-bg)}
.vc .tip text{fill:var(--tip-text);font-weight:600;font-size:11.5px}
.vc .col:focus{outline:none}
.vc .col:focus-visible .hit{stroke:var(--brand-ink);stroke-width:2}
.vc-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:var(--fs-12);color:var(--text-2);margin-top:8px}
.vc-legend span{display:inline-flex;align-items:center;gap:6px}
.vc-legend i{display:inline-block;width:10px;height:10px;border-radius:3px}
.vc-donut{display:flex;align-items:center;gap:var(--s5);flex-wrap:wrap}
.vc-donut svg{width:140px;height:140px;flex:none}
.vc-donut .vc-legend{flex-direction:column;gap:8px;margin:0;font-size:var(--fs-13)}
.vc-donut .vc-legend b{font-weight:600;color:var(--text);margin-left:auto;padding-left:var(--s3)}
.vc-donut .vc-legend span{width:100%}
.vc-donut .big{font-size:20px;font-weight:600;fill:var(--text);text-anchor:middle}
.vc-donut .cap2{font-size:11px;fill:var(--muted);text-anchor:middle}
.s1{fill:var(--cat-1);stroke:var(--cat-1)}.s2{fill:var(--cat-2);stroke:var(--cat-2)}.s3{fill:var(--cat-3);stroke:var(--cat-3)}.s4{fill:var(--cat-4);stroke:var(--cat-4)}.s5{fill:var(--cat-5);stroke:var(--cat-5)}.s6{fill:var(--cat-6);stroke:var(--cat-6)}
.vc .ln{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vc .bx{stroke:none}
.vc .seg-ring{fill:none;stroke-width:16}
.lg1{background:var(--cat-1)}.lg2{background:var(--cat-2)}.lg3{background:var(--cat-3)}.lg4{background:var(--cat-4)}.lg5{background:var(--cat-5)}.lg6{background:var(--cat-6)}
.vc .bg{fill:var(--bar);stroke:none}
.vc .vchip rect{fill:var(--brand)}
.vc .vchip text{fill:var(--on-accent);font-weight:600;font-size:12px;text-anchor:middle}
.vc .ln.ink{stroke:var(--ink)}
.vc .pk{fill:var(--ink);stroke:var(--surface);stroke-width:2}
.vc .pk.hot{fill:var(--brand)}
.vc-tbl{margin-top:var(--s3);font-size:var(--fs-13)}
.vc-tbl summary{color:var(--brand-ink);cursor:pointer;width:max-content;font-weight:600}

/* POS: bilah atas, pil, keranjang */
.pill{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 16px 0 8px;border-radius:var(--r-pill);border:0;background:var(--surface);font-size:var(--fs-13);font-weight:500;white-space:nowrap;color:var(--text)}
.pill .av{width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:11px}
.pktop .brandmark img{height:26px}
.pktop .brandmark .mj-wm{height:24px}
.cust{margin:0 0 4px;min-height:48px;border:1px dashed var(--ctl-line);border-radius:var(--r-in);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--text-2);font-size:13.5px;font-weight:500}
.sum2{display:flex;flex-direction:column;gap:6px}
.pkcart .sum .rows li.promo span:first-child{color:var(--ok)}
.prod .q{position:absolute;top:8px;right:8px;min-width:26px;height:26px;border-radius:var(--r-pill);background:var(--brand);color:var(--on-accent);font-weight:600;font-size:13px;display:grid;place-items:center;padding:0 7px}
.prod.low .pr span{color:var(--warn)}
.prod.out{opacity:.55}
.prod .th{height:56px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;color:var(--muted)}
.prod .th svg{width:24px;height:24px;stroke-width:1.5}
.cat .n{font-size:var(--fs-12);opacity:.75}
.chip[aria-pressed=true] .n{opacity:.8}
.promo-line{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--ok);background:var(--ok-bg);border-radius:8px;padding:7px 10px;margin-top:10px}
.line .mod{font-size:var(--fs-12);color:var(--muted)}

/* Responsif komponen baru */
@container content (max-width:1100px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash2{grid-template-columns:minmax(0,1fr)}
  .board{grid-template-columns:repeat(var(--cols,5),minmax(240px,1fr));overflow-x:auto;padding-bottom:6px}
}
@media (max-width:900px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash2{grid-template-columns:minmax(0,1fr)}
  .board{grid-template-columns:repeat(var(--cols,5),minmax(256px,78%));overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}
  .kcol{scroll-snap-align:start}
  .kcards{overflow:visible}
  .locs{grid-template-columns:minmax(0,1fr)}
  .fbar .fchip{height:36px}
  .map{margin:0}
}
@media (max-width:600px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3)}
  .kpis.hh .kpi4.hero{grid-column:span 2}
  .kpis.hh .kpi4:last-child:nth-child(even){grid-column:span 2}
  .kpi4{padding:18px;min-height:190px}
  .kpi4 .lab{font-size:var(--fs-15)}
  .kpi4 .v{font-size:32px}
  .kpi4 .go{margin:-6px -8px 0 0}
  .kpi4.hero .v{font-size:var(--fs-40)}
  .kpis.hh .kpi4.hero{min-height:150px}
  .kpi4 .ring{display:none}
  .dash-row{grid-template-columns:minmax(0,1fr);min-height:0}
  .dash-row>.card{padding:20px}
  .plot{flex:none;height:220px}
  .qi{grid-template-columns:36px minmax(0,1fr);padding:10px 12px 10px 10px}
  .qi .badge{grid-column:2;grid-row:3;justify-self:start;margin-top:4px}
  .qi .m{white-space:normal}
  .hl .loc .nm{white-space:normal}
  .drawer{inset:0;width:100%;max-width:none;border-radius:0;border:0}
  .dh{padding:16px 18px 12px}
  .db{padding:4px 18px 18px}
  .dh .acts .btn{flex:1 1 100%}
  .vc-donut{gap:var(--s3)}
  .search kbd{display:none}
}

/* POS Fase 0: tombol persegi, pelanggan, status online */
.sqb{width:var(--h-pos);padding:0;flex:none}
.pksearch{align-items:stretch}
.custwrap{padding:0 var(--s4) var(--s2)}
.cust{width:100%;background:transparent}
.cust:hover{background:var(--surface-3)}
.cta2 .hold{width:var(--h-pos-main);padding:0}
.dotst{width:8px;height:8px;border-radius:50%;background:var(--ok)}
.pkcart .items .line:last-of-type{border-bottom:0}
.phone .pktop .bar1{display:flex;align-items:center;gap:var(--s3);padding:var(--s2) var(--s4);width:100%;min-height:56px}
.phone .pktop .bar1 .who2{flex:1}
.phone .pktop .bar1 .brandmark img{height:24px}
.phone .pktop .bar1 .brandmark .mj-wm{display:none}
.phone .pktop .bar1 .brandmark .mj-tile{display:block;width:30px;height:30px;border-radius:8px}
.phone .pkcart:not(.open) .custwrap{display:none}
.phone .pkcart .cta2 .hold{width:var(--h-pos)}
.phone .pkcart>header .badge{display:none}
.phone .pkcart>header h2 span{display:none}
.phone .pkmain{padding:var(--s3)}
.pkcart>header h2{white-space:nowrap}
.pknav{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}

/* Halaman publik (TC-00/01/02/24, PC-00): gutter 16px di semua lebar */
.content.pubc{background:var(--bg);padding:0}
.pubw{max-width:720px;margin:0 auto;padding:var(--s6) var(--s4)}
@media (max-width:700px){.pubw{padding-block:var(--s4)}}

/* U.upload: zona seret + tombol Pilih berkas + daftar. Input asli tetap ada (fokus papan ketik, pembaca layar), hanya disembunyikan secara visual. */
.upl-f{display:flex;flex-direction:column;gap:6px}
.upl-lab{font-size:var(--fs-13);font-weight:600;color:var(--text)}
.upl{position:relative}
.field .upl .upl-in,.upl .upl-in{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;border:0;z-index:1}
.upl-z{display:flex;align-items:center;gap:var(--s3);padding:var(--s4);border:1.5px dashed var(--ctl-line);border-radius:20px;background:var(--surface-2);cursor:pointer}
.upl:hover .upl-z,.upl.drag .upl-z{border-color:var(--focus);background:var(--surface-3)}
.upl:focus-within .upl-z{outline:2px solid var(--focus);outline-offset:2px}
.upl-ic{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--text);flex:none}
.upl-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.upl-t b{font-size:var(--fs-14);font-weight:600}
.upl-t span{font-size:var(--fs-12);color:var(--muted)}
.upl-b{flex:none;pointer-events:none}
@media (max-width:700px){.upl-z{flex-wrap:wrap}.upl-b{width:100%}}
[data-upl-new]:empty,[data-upl-list]:empty{display:none}
[data-upl-list] .files,[data-upl-new] .files{margin-top:4px}
input[type=file]::file-selector-button{height:32px;padding:0 var(--s3);margin-right:var(--s3);border:0;border-radius:var(--r-pill);background:var(--surface-3);color:var(--text);font:inherit;font-size:var(--fs-13);font-weight:500;cursor:pointer}
input[type=file]::file-selector-button:hover{background:var(--line-2)}

/* U.table select:true + U.bulkbar */
.upick{width:18px;height:18px;margin:0;accent-color:var(--brand-fill);cursor:pointer;flex:none}
.upick:focus-visible{outline:2px solid var(--brand-ink);outline-offset:2px}
.tw th.sel,.tw td.sel{width:44px;padding-right:0!important}
.tw td.sel{height:auto}
.ubulk{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap;padding:8px 12px 8px 20px;margin:12px 16px;background:var(--brand-soft);border-radius:var(--r-pill)}
.ubulk .un{font-size:var(--fs-13);font-weight:600;margin-right:var(--s2)}
.ubulk .btn.ghost{margin-left:auto}
.usel tr.sel td{background:var(--brand-soft)}
@media (max-width:700px){
  .ubulk .btn.ghost{margin-left:0}
  .upick{width:24px;height:24px}
  .tw.cards td.sel{display:flex;justify-content:flex-start;padding:0 0 4px!important;border:0;margin:0}
  .tw.cards td.sel::before{display:none}
  .tw.cards td.sel+td{display:block;text-align:left;padding-bottom:var(--s2)!important;margin-bottom:4px;border-bottom:1px solid var(--line)}
  .tw.cards td.sel+td::before{display:none}
}
