/* Nyetruk — design system app
   Mobile-first. Layout responsif memakai container query pada #app
   (bukan lebar jendela), supaya bingkai HP di desktop tetap akurat. */

/* ========== Dasar (mobile-native) ========== */
* { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-md);
  font-size-adjust: var(--font-adjust);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
button, a, [role="button"], .chip, .tab, .key {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; font-size: var(--text-md); color: var(--text); }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.ph, .ph-fill, .ph-bold { font-size: var(--text-xl); line-height: var(--leading-none); font-size-adjust: none; } /* M174: ikon (font) tidak ikut disetarakan */
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

.press { transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease; }
.press:active { transform: scale(.97); }

/* ========== Kerangka app ========== */
#app {
  container: app / inline-size;
  position: fixed; inset: 0;
  overflow: hidden; /* tetap hidden (clip mengganggu pengukuran kontras lintapple); gulir lewat skrip dikembalikan ke 0 oleh shell.js */
  background: var(--bg);
}
.app { position: absolute; inset: 0; display: flex; overflow: clip; }
.sidebar { display: none; }
.main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; position: relative; }
.screen.on { display: flex; animation: fadeUp var(--dur-enter) var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wrap { padding: 0 var(--space-4); }
.stack { display: grid; gap: var(--space-3); }

#app[data-tabbar="hide"] .tabbar,
#app[data-shell="none"] .tabbar,
#app[data-shell="none"] .sidebar { display: none !important; }

/* ---------- Tab bar mengambang (kaca) ---------- */
.tabbar {
  position: absolute; left: var(--space-3); right: var(--space-3);
  bottom: calc(var(--space-2-5) + var(--safe-b));
  height: var(--tabbar-h);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); /* lebar dibagi rata untuk tab yang tampil (pengguna terbatas: 3–4 tab, M43) */
  padding: var(--space-1-5);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-line);
  z-index: var(--z-bar);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-0-5);
  border-radius: var(--radius-6);
  font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-2);
  transition: background-color var(--dur-morph) var(--ease-morph), color var(--dur-base) ease, transform var(--dur-press) var(--ease-out);
}
.tab:active { transform: scale(.97); }
.tab .ph, .tab .ph-fill { font-size: var(--text-xl); }
.tab.on { background-color: var(--primary-soft); color: var(--primary-ink); font-weight: var(--weight-active); }
/* Revisi 20: tab bar menyusut jadi tombol bulat (kiri). Bentuk berubah dengan clip-path (sudut tetap bulat),
   deretan tab terdorong ke samping sampai ikon tab aktif tepat di lingkaran, label memudar. Hanya transform/opacity/clip-path. */
.tabbar { overflow: clip; /* isi (ikon yang terdorong) terpotong tepat di tepi kotak putih, bayangan tetap di luar */ clip-path: inset(calc(-1 * var(--clip-bleed)) round calc(var(--r-xl) + var(--clip-bleed))); transition: clip-path var(--dur-morph) var(--ease-morph); }
.tab-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); height: 100%; transition: transform var(--dur-morph) var(--ease-morph); }
.tab .nav-l, .tab .nav-ico { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-morph) var(--ease-morph), background-color var(--dur-morph) var(--ease-morph); }
.tab-mini { display: block; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out); position: absolute; inset: 0 0 0 auto; width: var(--tabbar-h); z-index: var(--z-above); border-radius: var(--r-full); }
.tab-mini .nav-dot { top: var(--space-2-5); right: var(--space-2-5); }
.tab-halo { position: absolute; right: var(--space-3); bottom: calc(var(--space-2-5) + var(--safe-b)); width: var(--tabbar-h); height: var(--tabbar-h); border-radius: var(--r-full);
  box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; z-index: var(--z-bar); transition: opacity var(--dur-morph) var(--ease-morph); }
#app[data-tabmini] .tabbar { clip-path: inset(0 0 0 calc(100% - var(--tabbar-h)) round var(--r-full)); }
#app[data-tabmini] .tab-mini { opacity: 1; pointer-events: auto; transition-delay: calc(var(--dur-morph) * .5); }
#app[data-tabmini] .tab-halo { opacity: 1; }
#app[data-tabmini] .tab-track { transform: translateX(calc(100% + var(--space-1-5) - var(--tabbar-h) / 2 - (100% + var(--space-2)) / var(--tab-n) * var(--tab-i) - ((100% + var(--space-2)) / var(--tab-n) - var(--space-2)) / 2)); } /* ikon tab aktif tepat di lingkaran kanan */
#app[data-tabmini] .tab .nav-l { opacity: 0; }
.tab-track { position: relative; z-index: var(--z-raised); }
#app[data-tabmini] .tab.on { background-color: transparent; }
#app[data-tabmini] .tab .nav-ico { transform: translateY(var(--space-2)); }
#app[data-tabbar="hide"] .tab-halo, #app[data-shell="none"] .tab-halo { display: none; }
/* M108b: Kasir yang bukan tab (mis. Pemilik) tanpa tab bar → bilah Bayar & tombol Manual turun ke bawah, tanpa bentuk tab mini */
#app[data-tabbar="hide"] { --cartbar-bottom: var(--space-2-5); }
@container app (max-width: 719px) {
  #app[data-tabbar="hide"] .fab { bottom: calc(var(--space-2-5) + var(--safe-b) + var(--space-3)); }
  #app[data-tabbar="hide"] .fab.over-cart, #app[data-tabbar="hide"][data-tabmini] .fab.over-cart { translate: 0 calc(-1 * var(--cartbar-h)); }
}
#app[data-tabbar="hide"][data-tabmini] .cartbar { transform: none; clip-path: inset(calc(-1 * var(--clip-bleed)) round calc(var(--radius-5) + var(--clip-bleed))); }
#app[data-tabbar="hide"][data-tabmini] .cartbar .go { translate: none; }
/* bilah Bayar turun mengisi baris tab bar di kiri; sisi kanannya memberi tempat tombol bulat (Bayar ikut bergeser ke kiri) */
.cartbar { clip-path: inset(calc(-1 * var(--clip-bleed)) round calc(var(--radius-5) + var(--clip-bleed))); transition: transform var(--dur-morph) var(--ease-morph), clip-path var(--dur-morph) var(--ease-morph); }
.cartbar-open { transition: transform var(--dur-morph) var(--ease-morph); }
#app[data-tabmini] .cartbar { transform: translateY(calc(var(--cartbar-bottom) - var(--space-2-5) - (var(--tabbar-h) - var(--cartbar-h)) / 2)); clip-path: inset(0 calc(var(--tabbar-h) + var(--space-2)) 0 0 round var(--radius-5)); }
.cartbar .go { transition: translate var(--dur-morph) var(--ease-morph), transform var(--dur-press) var(--ease-out); } /* translate (bukan transform): tidak bentrok dengan efek tekan */
#app[data-tabmini] .cartbar .go { translate: calc(-1 * (var(--tabbar-h) + var(--space-2))) 0; }
#app[data-tabmini] .fab.over-cart { translate: 0 0; }
.tab-space { flex: none; height: calc(var(--tabbar-h) + var(--space-2-5) + var(--space-8) + var(--safe-b)); } /* = tinggi fade: isi terakhir tidak pudar saat mentok */
/* HP: isi layar memudar di belakang tab bar → tab bar tidak bertabrakan dengan konten */
@container app (max-width: 719px) {
#app:not([data-tabbar="hide"]):not([data-shell="none"]) .main .screen > .scroll {
  --fade: calc(var(--tabbar-h) + var(--space-2-5) + var(--safe-b) + var(--space-8));
  scroll-padding-bottom: var(--fade); /* elemen yang digulir otomatis (fokus, scrollIntoView) berhenti di atas tab bar */
  -webkit-mask-image: linear-gradient(to bottom, var(--mask-solid) calc(100% - var(--fade)), var(--mask-faint) calc(100% - var(--fade) * .4));
  mask-image: linear-gradient(to bottom, var(--mask-solid) calc(100% - var(--fade)), var(--mask-faint) calc(100% - var(--fade) * .4));
}
}

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; gap: var(--space-3);
  padding: calc(var(--space-4) + var(--safe-t)) var(--space-4) var(--space-3);
  min-height: 68px;
}
.large-title { padding: calc(var(--space-4) + var(--safe-t)) var(--space-4) var(--space-3); } /* Revisi 20: lebih rapat di HP */
.large-title h1 { font-size: var(--text-5xl); line-height: var(--leading-tight); font-weight: var(--weight-display); letter-spacing: var(--tracking-tighter); }
.large-title p { font-size: var(--text-base); color: var(--text-3); margin-top: var(--space-1-5); }
.top h1.small { font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-snug); }
.icon-btn {
  position: relative;
  width: var(--size-hit); height: var(--size-hit); flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--iconbtn-ring), var(--btn2-shadow); /* R30: garis sangat lembut + bayangan halus */
  color: var(--text);
}
.icon-btn.ghost { background: transparent; box-shadow: none; }
.icon-btn .dot {
  position: absolute; top: var(--space-1); right: var(--space-0-5);
  min-width: 18px; height: 18px; padding: 0 var(--space-1-25); border-radius: var(--radius-2-25);
  background: var(--danger); color: var(--bg); font-size: var(--text-xs); font-weight: var(--weight-heavy);
  display: grid; place-items: center; line-height: var(--leading-none);
  box-shadow: 0 0 0 2px var(--bg);
}

.store-switch { display: flex; align-items: center; gap: var(--space-2-5); min-width: 0; flex: 1; text-align: left; padding: var(--space-0-5); } /* M114: tampilan saja, tidak bisa diketuk */
.store-switch .logo { width: 40px; height: 40px; flex: none; }
.store-switch b { display: flex; align-items: center; gap: var(--space-1); min-width: 0; font-size: var(--text-md); font-weight: var(--weight-heavy); line-height: var(--leading-title); } /* Revisi 20: nama 1 baris, panah tetap di sebelahnya */
.store-switch b .nm { min-width: 0; }
.store-switch small .marquee { flex: 1; }
/* M172: teks berjalan bila tidak muat (ui/marquee.js); reduced-motion / belum diukur → "…" */
.marquee { display: block; min-width: 0; overflow-wrap: anywhere; }
.marquee-in { display: block; }
/* bergerak: satu baris digeser (transform); diam (muat / reduced-motion): teks boleh dua baris, tidak dipotong */
.marquee.is-moving { overflow: hidden; white-space: nowrap; }
.marquee.is-moving .marquee-in { display: inline-block; white-space: nowrap; will-change: transform; }
.marquee.is-moving { -webkit-mask-image: linear-gradient(to right, transparent, var(--mask-solid) var(--space-1), var(--mask-solid) calc(100% - var(--space-4)), transparent); mask-image: linear-gradient(to right, transparent, var(--mask-solid) var(--space-1), var(--mask-solid) calc(100% - var(--space-4)), transparent); }
.store-switch > .grow { min-width: 0; }
.store-switch small { display: flex; flex-wrap: nowrap; min-width: 0; align-items: center; gap: 0 var(--space-1-5); font-size: var(--text-sm); color: var(--text-3); font-weight: var(--weight-label); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.status-dot.on { background: var(--success); }

/* ---------- Logo ---------- */
/* Pita N: petak tinta + simbol kertas; warna merek tetap di semua tema. Perforasi = warna petak. */
.logo { --logo-front: var(--logo-on-tile); --logo-back: var(--logo-on-tile); --logo-back-alpha: var(--logo-on-tile-back-alpha); display: grid; place-items: center; border-radius: var(--radius-3); background: var(--logo-tile); }
.logo svg { width: 58%; height: 58%; }
/* simbol logo (packages/ui/logo.js): muka & punggung kertas lewat token */
.logo-mark .lf { fill: var(--logo-front); }
.logo-mark .lb { fill: var(--logo-back); fill-opacity: var(--logo-back-alpha); }
/* lockup simbol + wordmark, proporsi Figma (logo.js LOCKUP): --lockup-h = tinggi simbol */
.lockup { display: flex; align-items: flex-start; gap: calc(var(--lockup-h) * .4); flex: none; }
.lockup .logo-mark { height: var(--lockup-h); width: auto; flex: none; }
.wordmark-type { height: 24px; width: auto; flex: none; color: var(--logo-word); }
.lockup .wordmark-type { height: calc(var(--lockup-h) * 1.235); margin-top: calc(var(--lockup-h) * .0407); }
.wordmark { display: flex; align-items: center; gap: var(--space-2-5); font-weight: var(--weight-heavy); font-size: var(--text-xl); letter-spacing: var(--tracking-tight); }
.wordmark .logo { width: 36px; height: 36px; border-radius: var(--radius-2-75); }

/* ---------- Input ---------- */
.search {
  display: flex; align-items: center; gap: var(--space-2-5);
  height: var(--size-search); padding: 0 var(--space-1-5) 0 var(--space-3-5);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  color: var(--text-3);
}
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 100%; }
.search input::placeholder { color: var(--text-3); }
.search .icon-btn { width: 36px; height: 36px; box-shadow: none; background: var(--surface-2); }

.field { display: grid; gap: var(--space-1-5); }
.field > span { font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-2); }
.input {
  height: var(--size-control); display: flex; align-items: center; gap: var(--space-2);
  padding: 0 var(--space-3-5); border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.input input { width: 100%; flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; }
/* R31 M205: isian banyak baris (template pesan WA) */
.input.is-area { height: auto; align-items: stretch; padding: var(--space-2-5) var(--space-3-5); }
.input textarea { width: 100%; flex: 1; min-width: 0; min-height: 96px; border: 0; outline: 0; background: inherit; color: inherit; resize: vertical; line-height: var(--leading-normal); }
.input .readonly-value { flex: 1; min-width: 0; font-size: var(--text-md); color: var(--text-2); }
.input .pre { color: var(--text-3); font-weight: var(--weight-label); }
.input .unit-suffix { color: var(--text-3); font-weight: var(--weight-label); flex: none; } /* M217: satuan di belakang isian berat */
.input .qty-dec { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.input:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.hint { font-size: var(--text-sm); color: var(--text-3); }
.hint.good { color: var(--success); font-weight: var(--weight-bold); }

/* ---------- Chip & segmented ---------- */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: var(--space-2) var(--space-4); scroll-padding: var(--space-4); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; height: var(--size-chip); padding: 0 var(--space-3);
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  border-radius: var(--r-full);
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: var(--text-base); font-weight: var(--weight-label); color: var(--text-2); white-space: nowrap;
}
/* area ketuk tetap minimal 44px walau chip tampil 32px */
.chip::before { content: ''; position: absolute; inset: calc((var(--size-chip) - var(--size-hit)) / 2) 0; }
.chip .count { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.chip.on { background: var(--strong-bg); color: var(--strong-fg); box-shadow: none; font-weight: var(--weight-active); }
.chip.on .count { color: inherit; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2);
  padding: var(--space-1); border-radius: var(--radius-3-5); background: var(--surface-2);
}
.seg button {
  height: 40px; border-radius: var(--radius-2-5); min-width: 0; padding: 0 var(--space-2); text-align: center; line-height: var(--leading-snug);
  font-size: var(--text-base); font-weight: var(--weight-label); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1-5);
}
.seg button .ph { font-size: var(--text-lg); flex: none; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: var(--weight-active); }

.opt-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.opt {
  min-height: 48px; padding: var(--space-2) var(--space-3-5);
  border-radius: var(--radius-3-5); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  display: inline-flex; flex-direction: column; justify-content: center;
  font-size: var(--text-base); font-weight: var(--weight-bold);
}
.opt small { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-3); }
.opt.opt-ico { flex-direction: row; align-items: center; gap: var(--space-2); }
/* Pengeluaran (M38): ringkasan bulan ini per jenis */
.expense-sum { padding: var(--space-4-5); }
.expense-sum .lbl { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); }
.expense-sum .amt { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); margin: var(--space-1) 0 var(--space-3); }
.expense-cat { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-1-5) 0; font-size: var(--text-base); font-weight: var(--weight-medium); }
.expense-cat span { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-2); }
/* Daftar harga untuk WA (M38): pratinjau teks apa adanya */
.pricelist { margin: 0; max-height: 50dvh; overflow: auto; padding: var(--space-3-5); border-radius: var(--radius-3); background: var(--surface-2); font-family: var(--font); font-size: var(--text-base); line-height: var(--leading-relaxed); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Laporan: laba bersih = laba kotor − pengeluaran */
.pl-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-1-5) 0; font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-2); }
.pl-row b { color: var(--text); font-weight: var(--weight-bold); }
.pl-net { margin-top: var(--space-1-5); padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--text); font-weight: var(--weight-bold); }
.pl-net b { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.pl-net.loss b { color: var(--danger); }
.pl-sub { display: flex; flex-direction: column; gap: var(--space-0-5); text-align: left; } /* M137: upah dari absen + rincian */
.pl-note { font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--text-3); }
.pl-link { width: 100%; align-items: center; }
.pay-day-warn { background: var(--accent-soft); }
.pay-day-warn .d { color: var(--danger); }
.pay-unit { flex: none; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--success); }
.pay-add { gap: var(--space-2-5); color: var(--primary-ink); font-weight: var(--weight-bold); }
.pay-total { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3-5) var(--space-4); border-radius: var(--r-md); background: var(--text); color: var(--surface); font-weight: var(--weight-bold); }
.pay-total b { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.pay-date { width: auto; flex: none; }
/* Karyawan & performa (M52) */
.perf-card, .perf-pay { padding: var(--space-4-5); }
/* Kartu stok (Revisi 12) */
.stock-card { padding: var(--space-4-5); }
.stock-card .lbl { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); }
.stock-card .amt { font-size: var(--text-4xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); }
.stock-card .amt small { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-3); }
.stock-card .row-actions { max-width: 440px; }
.adjust-delta { font-size: var(--text-md); font-weight: var(--weight-bold); }
.rule-example { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3-5); border-radius: var(--radius-4); background: var(--surface-2); font-size: var(--text-sm); color: var(--text-2); }
.rule-example .ico { flex: none; width: 32px; height: 32px; border-radius: var(--radius-2-5); display: grid; place-items: center; }
.team-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.team-stats > div { padding: var(--space-2-5) var(--space-3); border-radius: var(--radius-3); background: var(--surface-2); }
.team-stats b { display: block; font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.team-stats span { font-size: var(--text-xs); color: var(--text-3); font-weight: var(--weight-bold); }
.perf-row .rank { width: 20px; flex: none; text-align: center; font-weight: var(--weight-heavy); color: var(--text-3); }
.perf-card .lbl { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); }
.perf-card .amt { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); margin-top: var(--space-1); }
.perf-card .d { font-size: var(--text-sm); color: var(--text-3); }
.perf-card .goal-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); }
.perf-card .perf-pay { padding: 0; }
.perf-row { align-items: center; }
.perf-row .meter { margin-top: var(--space-1-5); max-width: var(--w-perf-meter); }
.perf-row .end { display: grid; justify-items: end; gap: var(--space-1); }
.opt.on { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.opt.on small { color: var(--primary-ink); }

/* switch */
.switch { width: 52px; height: 32px; border-radius: var(--radius-4); background: var(--surface-3); position: relative; flex: none; transition: background-color var(--dur-base) ease; }
.switch:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; } /* mis. "Tambahkan info toko" saat Header khusus aktif (M42) */
.switch::after { content: ""; position: absolute; top: var(--space-0-75); left: var(--space-0-75); width: 26px; height: 26px; border-radius: 50%; background: var(--switch-thumb); box-shadow: var(--shadow-thumb); transition: transform var(--dur-enter) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- Tombol ---------- */
.btn {
  height: var(--size-control); padding: 0 var(--space-5);
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-md); font-weight: var(--weight-heavy); white-space: nowrap;
}
.btn.sm { height: 40px; padding: 0 var(--space-3-5); font-size: var(--text-base); border-radius: var(--radius-3); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:active { background: var(--primary-press); }
.btn.ink { background: var(--strong-bg); color: var(--strong-fg); }
/* R29/R30 (spec-ux-r29 bagian 2 & 10): soft & line = satu tombol sekunder; terang = putih + garis tipis + bayangan halus (keputusan Pixelz), gelap = surface-2 */
.btn.soft, .btn.line { background: var(--btn2-bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--btn2-ring), var(--btn2-shadow); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.block { width: 100%; height: var(--size-control-lg); }
/* Revisi 26: tombol nonaktif jelas tampak nonaktif (semua varian), tidak ikut mengecil saat ditekan */
.chip:disabled, .chip[aria-disabled="true"], .method:disabled, .method[aria-disabled="true"], .btn-sq:disabled, .icon-btn:disabled, .pill-btn:disabled, .key:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; box-shadow: none; }
/* R29: tombol nonaktif tidak lagi sekadar pudar (mirip sekunder) → latar abu, garis putus-putus, teks pudar, semua varian */
.btn:disabled, .btn[aria-disabled="true"] { background: var(--btn-off-bg); color: var(--btn-off-fg); box-shadow: none; outline: 1.5px dashed var(--btn-off-ring); outline-offset: -1.5px; cursor: not-allowed; }
.press:disabled:active, .press[aria-disabled="true"]:active { transform: none; }
.btn .sub { font-weight: var(--weight-medium); opacity: 1; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); } /* turun baris kalau kolom sempit (mis. tablet 2 kolom) */
.row-actions > .btn { flex: 1 1 auto; }
.row-actions > .btn.fit { flex: none; }
.pill-btn {
  height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-2-5);
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  background: var(--surface-2); font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-2); white-space: nowrap;
}

/* ---------- Kartu & list ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.group { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; min-height: min-content; } /* overflow:hidden membuat ukuran minimum 0 → di sheet bertinggi terbatas grup terjepit & tak terjangkau (Revisi 9) */
.cell { display: flex; align-items: center; gap: var(--space-3-5); padding: var(--space-3-5) var(--space-4); min-height: 64px; text-align: left; width: 100%; }
a.cell { color: inherit; text-decoration: none; }
.cell .t-sub { font-size: var(--text-sm); color: var(--text-3); font-weight: var(--weight-regular); }
/* M126: info & akses Laci kas — baris di layar PIN, label di kepala Kasir, kartu di Lainnya */
.laci-info { display: inline-flex; align-items: center; gap: var(--space-1-5); margin-top: var(--space-3); padding: var(--space-1) var(--space-2-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--weight-label); }
.laci-info[data-tone="ok"] { background: var(--success-soft); color: var(--success); }
.laci-info[data-tone="warn"] { background: var(--accent-soft); color: var(--accent); }
/* M134: strip laci di atas kolom cari Kasir (terpisah dari nama toko & status HP) */
.laci-strip-row { padding-bottom: var(--space-2-5); }
.laci-chip { display: flex; align-items: center; gap: var(--space-2-5); width: 100%; min-height: var(--size-hit); padding: var(--space-1-5) var(--space-3) var(--space-1-5) var(--space-2); border-radius: var(--radius-3-5); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-snug); text-align: left; }
.laci-chip b { font-weight: var(--weight-heavy); }
.laci-chip.ok { background: var(--success-soft); color: var(--success); }
.laci-chip.warn { background: var(--accent-soft); color: var(--accent); }
.laci-chip.danger { background: var(--danger-soft); color: var(--danger); }
.laci-chip-ico { flex: none; width: 30px; height: 30px; border-radius: var(--radius-2-25); background: var(--surface); display: grid; place-items: center; font-size: var(--text-md); }
.laci-chip-t { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* membungkus, tidak dipotong (lint: content-clipping) */
.laci-chip > .ph-bold { flex: none; }
/* status berwarna + titik (kartu Lainnya, lembar laci, layar Laci kas) */
.laci-status { display: inline-flex; align-items: center; gap: var(--space-1-5); font-size: var(--text-sm); font-weight: var(--weight-label); }
.laci-status[data-tone="ok"] { color: var(--success); }
.laci-status[data-tone="warn"] { color: var(--accent); }
.laci-status[data-tone="danger"] { color: var(--danger); }
.laci-dot { flex: none; width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; }
/* kartu Laci kas di Lainnya: baris menu + tombol kecil sejajar teks */
/* kartu Laci kas di Lainnya = baris menu biasa: jarak ikon-teks bawaan .cell, status seperti deskripsi (.d) tetapi berwarna, tanpa titik */
.laci-panel .laci-status { display: block; margin-top: var(--space-0-5); line-height: var(--leading-desc); font-weight: var(--weight-regular); }
.laci-panel .laci-dot { display: none; }
.laci-ttl { font-weight: var(--weight-name); font-size: var(--text-md); } /* = .cell .t; kelas sendiri supaya kartu tidak terhitung sebagai baris Menu lain */
.laci-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3-5) calc(var(--space-4) + var(--size-cell-ico) + var(--space-3-5)); }
/* lembar laci: angka ringkas */
.laci-stats .laci-big { display: flex; flex-direction: column; gap: var(--space-0-5); padding: var(--space-3-5) var(--space-4); border-bottom: 1px solid var(--line); }
.laci-lbl { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.laci-amt { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); }
.laci-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.laci-two > div { display: flex; flex-direction: column; gap: var(--space-0-5); padding: var(--space-3-5) var(--space-4); }
.laci-two > div + div { border-left: 1px solid var(--line); }
.laci-two b { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.laci-neg { color: var(--danger); }
.laci-note { display: flex; align-items: flex-start; gap: var(--space-2-5); margin: 0; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--text-sm); color: var(--text-2); }
.laci-more { align-self: center; display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--size-hit); padding: 0 var(--space-3); color: var(--primary-ink); font-weight: var(--weight-heavy); }
/* M134: layar Laci kas — status & isi laci, keluar masuk uang (berikon & berwarna), penjualan (chip metode), tombol tutup menempel */
.laci-hero .cell { gap: var(--space-3); }
.laci-who { font-size: var(--text-md); font-weight: var(--weight-heavy); }
.laci-hero-amt { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3-5) var(--space-4) var(--space-4); border-top: 1px solid var(--line); }
.laci-formula { font-size: var(--text-sm); color: var(--text-3); }
.laci-blind { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-2); }
.laci-hero-acts { padding: 0 var(--space-4) var(--space-4); }
.laci-move { gap: var(--space-3); min-height: 60px; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.laci-move .t { font-weight: var(--weight-label); }
.laci-mico { flex: none; width: 32px; height: 32px; border-radius: var(--radius-2-5); display: grid; place-items: center; font-size: var(--text-md); }
.laci-mico.neutral { background: var(--surface-2); color: var(--text-2); }
.laci-mico.in { background: var(--success-soft); color: var(--success); }
.laci-mico.out { background: var(--danger-soft); color: var(--danger); }
.laci-move .end { font-weight: var(--weight-heavy); }
.laci-pos { color: var(--success); }
.laci-sales-total { font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.laci-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3-5); }
.laci-mchip { display: inline-flex; align-items: center; gap: var(--space-1-5); padding: var(--space-1-5) var(--space-2-5); border-radius: var(--radius-full); background: var(--surface-2); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); }
.laci-mchip b { color: var(--text); font-weight: var(--weight-heavy); }
.laci-mchip.neg, .laci-mchip.neg b { background: var(--danger-soft); color: var(--danger); }
.laci-foot { position: sticky; bottom: 0; z-index: var(--z-raised); background: var(--bg); border-top: 1px solid var(--line); }
/* sheet tutup laci: hasil hitung */
.laci-verdict { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3-5) var(--space-4); font-size: var(--text-base); }
.laci-verdict .ph-fill { flex: none; font-size: var(--text-xl); }
.laci-verdict[data-tone="ok"] { background: var(--success-soft); color: var(--success); }
.laci-verdict[data-tone="warn"] { background: var(--accent-soft); color: var(--accent); }
.laci-verdict b { font-size: var(--text-md); font-weight: var(--weight-heavy); }

/* M125: gerbang laci di layar Kasir — menutupi area jualan di bawah kepala layar (header & tab bar tetap bisa dipakai) */
.laci-gate { position: absolute; left: 0; right: 0; bottom: 0; top: var(--gate-top, 0px); z-index: var(--z-gate); background: var(--bg); display: flex; align-items: center; justify-content: center; padding: var(--space-4); overflow-y: auto; }
.laci-gate .laci-card { width: 100%; max-width: 420px; }
@container app (max-width: 719px) {
  .laci-gate { padding-bottom: calc(var(--tabbar-h) + var(--space-2-5) + var(--safe-b) + var(--space-4)); }
  #app[data-tabbar="hide"] .laci-gate { padding-bottom: calc(var(--space-2-5) + var(--safe-b) + var(--space-4)); }
}
.kasir-main[data-locked] > :not(.scroll):not(.laci-gate), .kasir-scroll[data-locked] > :not(.top-in-scroll):not(.ptr) { visibility: hidden; }
.kasir-scroll[data-locked] { overflow: hidden; }

/* Urutkan dengan seret (SortList): pegangan di paling kiri baris; baris terangkat mengikuti jari, yang lain bergeser membuka tempat. Hanya transform. */
.sort-handle { flex: none; width: var(--size-hit); height: var(--size-hit); margin: 0 calc(-1 * var(--space-2)) 0 calc(-1 * var(--space-3)); display: grid; place-items: center; border-radius: var(--radius-full); color: var(--drag-handle); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.sort-handle .ph-bold { font-size: var(--text-xl); }
.sort-handle[aria-pressed="true"] { color: var(--primary-ink); background: var(--primary-soft); }
[data-sort] { position: relative; transform: translateY(var(--sort-dy, 0px)); }
[data-sort="shift"] { transition: transform var(--dur-base) var(--ease-out); }
[data-sort="drag"], [data-sort="drop"] { z-index: var(--z-drag); background: var(--drag-bg); box-shadow: var(--drag-shadow); border-radius: var(--r-lg); }
[data-sort="drag"] { transform: translateY(var(--sort-dy, 0px)) scale(var(--drag-scale)); cursor: grabbing; will-change: transform; }
[data-sort="drop"] { transition: transform var(--dur-base) var(--ease-out); }
[data-sort="drag"] .sort-handle { cursor: grabbing; }
.group[data-sorting] { overflow: visible; } /* baris terangkat tidak terpotong bayangannya */

/* Baris versi (Revisi 10): [tombol baris] [tombol ikon] [chevron] berdampingan, tidak menumpuk */
.ver-cell { display: flex; align-items: center; gap: var(--space-2); padding-right: var(--space-4); cursor: pointer; }
.ver-cell > .cell { flex: 1; min-width: 0; padding-right: 0; }
.ver-act.is-busy .ph-bold, .ver-act.is-busy .ph { animation: ptr-spin var(--dur-spin) linear infinite; }
@media (prefers-reduced-motion: reduce) { .ver-act.is-busy .ph, .ver-act.is-busy .ph-bold { animation: none; } }
/* Hak akses (M45): pilihan bertingkat turun ke baris sendiri, selebar baris */
.radio-cell { align-items: flex-start; }
/* Pilihan ganda tenang (Revisi 11): kotak centang di kanan, tanpa latar berwarna */
.check-cell { min-height: 56px; }
.part-pick { text-align: left; display: grid; gap: var(--space-0-5); border-radius: var(--radius-2); }
.part-pick small { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--primary-ink); }
.check-box { width: 24px; height: 24px; border-radius: var(--radius-1-5); box-shadow: inset 0 0 0 2px var(--control-border); flex: none; display: grid; place-items: center; color: transparent; transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.check-box .ph-bold { font-size: var(--text-sm); }
.check-cell.on .check-box { background: var(--primary); box-shadow: none; color: var(--on-primary); }
/* Pilih banyak dengan jumlah (Revisi 11) */
.group > .pick-row + .pick-row { box-shadow: inset 0 1px 0 var(--line); }
.pick-qty { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-4) var(--space-3); }
/* Pilih hari (Revisi 11) */
.day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2); max-width: calc(7 * var(--size-day) + 6 * var(--space-2)); }
.day { min-width: 0; padding: 0; height: 44px; display: grid; place-items: center; text-align: center; border-radius: var(--radius-full); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-2); }
.day.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-ink); }
/* Pratinjau kalimat (Revisi 11): aksen tipis, bukan blok hitam */
.preview-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-5); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); }
.preview-ico { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--surface); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.preview-txt { display: grid; gap: var(--space-1); min-width: 0; }
.preview-lbl { font-size: var(--text-xs); font-weight: var(--weight-heavy); color: var(--primary-ink); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.preview-txt p { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text); line-height: var(--leading-snug); }
/* Langkah bernomor (Revisi 11) */
/* baris wajib yang belum diisi (mis. "Dapat apa" di promo) */
.cell.is-missing .d { color: var(--primary-ink); font-weight: var(--weight-label); }
.cell .val { color: var(--text-2); font-size: var(--text-base); text-align: right; flex: none; max-width: 45%; }
.group > .cell + .cell, .group > .cell + .ver-cell, .group > .ver-cell + .cell { box-shadow: inset 0 1px 0 var(--line); }
/* M145: baris yang diseret tetap terangkat — garis pemisah antar-baris (box-shadow di atas) dulu menimpa bayangan seret */
.group[data-sorting] > [data-sort="drag"], .group[data-sorting] > [data-sort="drop"] { box-shadow: var(--drag-shadow); }
.cell .ico { width: 36px; height: 36px; border-radius: var(--radius-2-5); display: grid; place-items: center; flex: none; }
.cell .t { font-weight: var(--weight-name); font-size: var(--text-md); }
.cell .d { font-size: var(--text-sm); color: var(--text-3); font-weight: var(--weight-regular); }
/* deskripsi di bawah judul: blok sendiri, dua baris rapat (Revisi 20). .d inline lain (satuan stok, keterangan di judul) tidak terpengaruh */
.cell .grow > .d { display: block; margin-top: var(--space-0-5); line-height: var(--leading-desc); }
.cell .end { text-align: right; flex: none; }
.cell .chev, .ver-cell .chev { color: var(--text-3); font-size: var(--text-lg); }
.section-label { font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-3); padding: var(--space-5) var(--space-5) var(--space-2-5); }
.thumb { width: 44px; height: 44px; border-radius: var(--radius-3); display: grid; place-items: center; flex: none; font-weight: var(--weight-heavy); }
.thumb .ph { font-size: var(--text-2xl); }

.tag { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-2); font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; }
.tag.ok { background: var(--success-soft); color: var(--success); }
.tag.warn { background: var(--accent-soft); color: var(--accent); }
.tag.low { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.neutral { background: var(--surface-2); color: var(--text-2); }

.banner { display: flex; align-items: center; gap: var(--space-2-5); padding: var(--space-3) var(--space-3-5); border-radius: var(--r-md); font-size: var(--text-base); font-weight: var(--weight-bold); }
/* R29 bagian 3: garis tone + bayangan halus berwarna supaya tidak menyatu dengan latar putih; ikon di lingkaran */
.banner.warn { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--banner-warn-ring), var(--banner-warn-shadow); --banner-ico: var(--banner-warn-ico); }
.banner.info { background: var(--info-soft); color: var(--info); box-shadow: inset 0 0 0 1px var(--banner-info-ring), var(--banner-info-shadow); --banner-ico: var(--banner-info-ico); }
.banner.ok { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px var(--banner-ok-ring), var(--banner-ok-shadow); --banner-ico: var(--banner-ok-ico); }
.banner-ico { width: 30px; height: 30px; border-radius: var(--r-full); background: var(--banner-ico); display: grid; place-items: center; flex: none; font-size: var(--text-lg); }
/* tombol di dalam banner berwarna = putih bergaris (terang) */
.banner .btn.soft:not(:disabled), .banner .btn.line:not(:disabled) { background: var(--surface); }

/* pastel kategori */
/* warna kategori → token --catN-tb (latar) / --catN-tf (ikon/teks) di tokens.css */
.t1 { --tb: var(--cat1-tb); --tf: var(--cat1-tf); }
.t2 { --tb: var(--cat2-tb); --tf: var(--cat2-tf); }
.t3 { --tb: var(--cat3-tb); --tf: var(--cat3-tf); }
.t4 { --tb: var(--cat4-tb); --tf: var(--cat4-tf); }
.t5 { --tb: var(--cat5-tb); --tf: var(--cat5-tf); }
.t6 { --tb: var(--cat6-tb); --tf: var(--cat6-tf); }
.t1, .t2, .t3, .t4, .t5, .t6 { background: var(--tb); color: var(--tf); }

/* resep (modul M26): baris bahan dengan kolom takaran */
.recipe-row { align-items: center; }
.recipe-row .field { flex: none; width: var(--space-32); }
.recipe-row > .grow { min-width: 0; }
/* Koreksi optik (Revisi 20): tombol ikon tanpa latar di ujung baris digeser sebesar ruang kosong di sekitar ikonnya,
   jadi tepi ikon segaris dengan padding (sama dengan teks di kiri). Area ketuk tetap utuh. */
.cell > .icon-btn.ghost:last-child { margin-inline: calc((var(--size-icon) - var(--size-hit)) / 2); }

/* Kasir ringkas (Revisi 20): header & cari ikut tergulir, baris chip menempel. Area aman atas dipegang .kasir-main. */
.kasir-main { padding-top: var(--safe-t); }
.top.top-in-scroll { padding-top: var(--space-3); min-height: 0; }
.top-in-scroll .store-switch .logo { width: var(--space-10); height: var(--space-10); }
.kasir-search { padding-top: var(--space-0-5); padding-bottom: var(--space-1); background: var(--bg); }
.kasir-search.pinned { position: sticky; top: 0; z-index: var(--z-sticky); }
.kasir-search.opening { animation: search-open var(--dur-collapse) var(--ease-out); }
@keyframes search-open { from { clip-path: inset(0 calc(100% - var(--size-hit) - var(--space-4)) 0 0 round var(--r-full)); } to { clip-path: inset(0 0 0 0 round 0); } }
.kasir-bar { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; background: var(--bg); overflow-x: clip; }
.kasir-search.pinned + .kasir-bar { top: calc(var(--size-search) + var(--space-0-5) + var(--space-1)); }
.kasir-bar .bar-search { position: absolute; left: var(--space-4); width: var(--size-chip); height: var(--size-chip); z-index: var(--z-raised); opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity var(--dur-collapse) var(--ease-out), transform var(--dur-collapse) var(--ease-out); }
.kasir-bar .bar-search::before { content: ''; position: absolute; inset: calc((var(--size-chip) - var(--size-hit)) / 2); }
.kasir-bar .bar-search .ph { font-size: var(--text-md); }
.kasir-bar .chips-clip { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, var(--mask-solid) calc(100% - var(--space-6)), var(--mask-faint)); mask-image: linear-gradient(to right, var(--mask-solid) calc(100% - var(--space-6)), var(--mask-faint)); } /* chip yang terpotong memudar sebelum tombol tampilan */
.kasir-bar .chips { transition: transform var(--dur-collapse) var(--ease-out); }
.kasir-bar .view-toggle { margin-right: calc(var(--space-4) + (var(--size-icon) - var(--size-hit)) / 2); }
.kasir-bar.compact .bar-search { opacity: 1; transform: none; pointer-events: auto; }
.kasir-bar.compact .chips { transform: translateX(calc(var(--size-chip) + var(--space-2))); }
.kasir-bar.compact .chips { padding-right: calc(var(--space-4) + var(--size-chip) + var(--space-2)); } /* chip terakhir tetap bisa dijangkau */

/* rekap harian di kasir (M25) */

/* ---------- Kasir ---------- */
.kasir { display: flex; flex: 1; min-height: 0; }
.kasir-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
/* Produk manual mengambang (M44): selalu terjangkau walau ada ratusan produk; di atas tab bar / cartbar (HP) */
.fab {
  position: absolute; right: var(--space-3); z-index: var(--z-sticky); /* sejajar dengan tepi kanan tab bar / lingkaran tab */
  bottom: calc(var(--tabbar-h) + var(--space-2-5) + var(--safe-b) + var(--space-3));
  height: var(--fab-h);
  display: flex; justify-content: flex-end; /* bentuk penuh meluap ke kiri saat tombol menciut jadi lingkaran: tepi kanan tetap */
  color: var(--text); font-size: var(--text-base); font-weight: var(--weight-bold);
  transition: transform var(--dur-press) var(--ease-out), translate var(--dur-base) var(--ease-out);
}
/* M118: menyusut seperti tab bar — bentuk digulung ke kanan dengan clip-path (bukan ubah lebar), ikon bergeser ke lingkaran, label memudar.
   .fab-shape membawa bayangan (filter mengikuti hasil clip), .fab-face bentuknya. Hanya transform/opacity/clip-path. */
.fab-shape { flex: none; filter: var(--drop-fab); }
.fab-face {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap;
  height: var(--fab-h); padding: 0 var(--space-4) 0 var(--space-3-5);
  background: var(--fab-bg);
  clip-path: inset(0 0 0 0 round calc(var(--fab-h) / 2));
  transition: clip-path var(--dur-morph) var(--ease-morph);
}
.fab-face .ph-bold { font-size: var(--text-lg); flex: none; transition: transform var(--dur-morph) var(--ease-morph); }
.fab-t { transition: opacity var(--dur-fast) var(--ease-out); }
/* garis tepi tombol putih: dua lapis yang bertukar (pil penuh ⇄ lingkaran) supaya tidak terpotong saat menyusut */
.fab-face::before, .fab-face::after { content: ''; position: absolute; top: 0; bottom: 0; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--fab-line); pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out); }
.fab-face::before { left: 0; right: 0; }
.fab-face::after { right: 0; width: var(--fab-h); opacity: 0; }
.add-fab .fab-face::before, .add-fab .fab-face::after { display: none; }
/* Revisi 26: daftar digulir → tombol menyusut jadi bulat (hanya ikon), tidak menutupi harga di petak */
.fab.mini { width: var(--fab-h); }
.fab.mini .fab-face { clip-path: inset(0 0 0 calc(100% - var(--fab-h)) round calc(var(--fab-h) / 2)); }
.fab.mini .fab-face .ph-bold { transform: translateX(calc(var(--fab-w, var(--fab-h)) - var(--fab-h) / 2 - var(--space-3-5) - var(--text-lg) / 2)); }
.fab.mini .fab-t { opacity: 0; }
.fab.mini .fab-face::before { opacity: 0; }
.fab.mini .fab-face::after { opacity: 1; }
.fab:not(.add-fab) .fab-face { color: var(--text); }
@keyframes fab-in { from { opacity: 0; transform: translateY(calc(var(--fab-h) + var(--space-8))); } }
.add-fab .fab-shape { animation: fab-in var(--dur-morph) var(--ease-morph) var(--dur-fast) backwards; } /* masuk dari bawah ke atas, seperti tombol Manual di Kasir */
.fab[data-tip] { position: absolute; } /* M117: versi bulat punya tooltip — [data-tip]{position:relative} tidak boleh menimpa posisi mengambang */
/* keranjang terisi: naik setinggi bilah Bayar (translate, bukan bottom → hanya transform) */
.fab.over-cart { translate: 0 calc(-1 * (var(--cartbar-bottom) + var(--cartbar-h) - var(--tabbar-h) - var(--space-2-5))); }
/* daftar bisa digulir sampai petak terakhir terlihat di atas tombol (& bilah Bayar) */
.kasir-main.has-fab .scroll { padding-bottom: calc(var(--cartbar-bottom) + var(--cartbar-h) + var(--space-3) + var(--fab-h) + var(--space-4) + var(--safe-b)); }
/* keyboard HP terbuka saat mencari: tombol disembunyikan supaya hasil cari tidak tertutup */
.kasir-main:has(.search input:focus) .fab { display: none; }
/* M117: tombol tambah utama layar daftar — HP: oranye mengambang (menyusut jadi + saat digulir); tablet/desktop: di kepala layar */
.add-fab { color: var(--on-primary); }
.add-fab .fab-face { background: var(--primary); }
@container app (max-width: 719px) {
  .head-add { display: none !important; }
  .screen:has(> .add-fab) > .scroll { padding-bottom: calc(var(--fab-h) + var(--space-4)); } /* baris terakhir tidak tertutup tombol */
  #app[data-tabbar="hide"] .screen:has(> .add-fab) > .scroll { padding-bottom: calc(var(--fab-h) + var(--space-4) + var(--space-2-5) + var(--space-3) + var(--safe-b)); } /* tanpa tab bar: .tab-space tidak ada → hitung jarak tombol dari bawah */
  .screen:has(.search input:focus) > .add-fab { display: none; } /* keyboard terbuka saat mencari */
}
@container app (min-width: 720px) { .add-fab { display: none; } }
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2-5);
  padding: var(--space-0-5) var(--space-4) var(--space-4);
}
.prod {
  position: relative;
  min-height: var(--size-card-prod);
  background: var(--surface) !important; color: var(--text) !important; box-shadow: var(--shadow-1);
  padding: var(--space-3);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: var(--space-0-5);
  overflow: hidden;
  text-align: left;
}
/* nama di tile sengaja lebih ringan dari nama di daftar: tile dipindai lewat harga (heavy) */
.prod .name { flex: 1; min-width: 0; font-size: var(--text-base); font-weight: var(--weight-label); line-height: var(--leading-normal); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.prod-top { display: flex; align-items: flex-start; gap: var(--space-2); }
.prod .price { font-size: var(--text-md); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-snug); }
.prod .price.long { font-size: var(--text-sm); overflow-wrap: anywhere; } /* harga ratusan juta–miliaran */
/* baris bawah tile: info stok/pilihan + ikon/foto di alur (tidak melayang → tidak menimpa nama/harga) */
.prod-foot { margin-top: auto; padding-top: var(--space-1); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--space-2); }
.prod .price { min-width: 0; }
/* sudah di pesanan: angka jumlah menggantikan ikon/foto di pojok (Revisi 20) */
.prod.sel .prod-top > .ico, .prod.sel .prod-top > .prod-photo { visibility: hidden; }
.prod .qty { width: var(--size-prod-media); min-width: var(--size-prod-media); height: var(--size-prod-media); padding: 0; top: var(--space-3); right: var(--space-3); }
@media (hover: hover) and (pointer: fine) { .prow:hover { box-shadow: var(--shadow-2); } }
.prod .meta { min-width: 0; text-align: right; font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.prod .meta.low { color: var(--danger); font-weight: var(--weight-medium); } /* peringatan stok tetap menonjol */
.prod.out .prod-photo, .prod.out .ico, .prow.out .prod-photo, .prow.out .ico { opacity: var(--opacity-disabled); } /* M131: stok habis → gambar pudar seperti kontrol nonaktif; nama & "Habis" tetap terbaca; ketuk tetap memberi tahu */
.prod .ico, .prow .ico { margin-left: auto; flex: none; font-size: var(--text-lg); width: var(--size-prod-media); height: var(--size-prod-media); border-radius: var(--radius-2-5); display: grid; place-items: center; background: var(--tb); color: var(--tf); }
.prod .qty, .prow .qty {
  position: absolute; top: var(--space-2); right: var(--space-2);
  min-width: 28px; height: 28px; padding: 0 var(--space-2); border-radius: var(--r-full);
  background: var(--strong-bg); color: var(--strong-fg);
  font-size: var(--text-base); font-weight: var(--weight-heavy); display: grid; place-items: center;
}
.prod.sel, .prow.sel { box-shadow: inset 0 0 0 2px var(--primary); }
/* Tampilan Daftar (Revisi 20) */
.plist { display: grid; gap: var(--space-1-5); padding: var(--space-0-5) var(--space-4) var(--space-4); }
.prow { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-row-prod); padding: var(--space-2) var(--space-3); border-radius: var(--r-md);
  background: var(--surface) !important; color: var(--text) !important; box-shadow: var(--shadow-1); text-align: left; }
.prow .ico, .prow .prod-photo { margin-left: 0; }
.prow .grow { min-width: 0; display: grid; }
.prow .name { font-size: var(--text-base); font-weight: var(--weight-label); line-height: var(--leading-normal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .meta { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.prow .meta.low { color: var(--danger); font-weight: var(--weight-medium); }
.prow .price { flex: none; font-size: var(--text-base); font-weight: var(--weight-heavy); }
.prow .qty { position: static; flex: none; }
.prow .prod-photo { --thumb: var(--size-prod-media); }

.cartbar {
  position: absolute; left: var(--space-3); right: var(--space-3);
  bottom: calc(var(--cartbar-bottom) + var(--safe-b));
  height: var(--cartbar-h); padding: 0 var(--space-2) 0 var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  border-radius: var(--radius-5);
  background: var(--strong-bg); color: var(--strong-fg);
  box-shadow: var(--shadow-3);
  z-index: var(--z-sticky);
}
.cartbar .count { width: var(--size-chip); height: var(--size-chip); border-radius: var(--radius-2-5); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: var(--weight-heavy); font-size: var(--text-base); flex: none; }
.cartbar .tot { flex: 1; text-align: left; line-height: var(--leading-snug); }
.cartbar .tot small { display: block; font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--strong-fg-2); }
.cartbar .tot b { font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.cartbar .go { height: calc(var(--cartbar-h) - 2 * var(--cartbar-inset)); padding: 0 var(--space-4); border-radius: calc(var(--radius-5) - var(--cartbar-inset)); background: var(--primary); color: var(--on-primary); font-weight: var(--weight-heavy); display: flex; align-items: center; gap: var(--space-1-5); }
.kasir .scroll { padding-bottom: var(--space-42); }

.cartpanel { display: none; }

/* baris pesanan */
.line:not(.btn):not(.btn-sq) { display: flex; gap: var(--space-3); padding: var(--space-3) 0; align-items: center; } /* baris keranjang (bukan tombol bergaya "line") */
.line:not(.btn):not(.btn-sq) + .line:not(.btn):not(.btn-sq) { box-shadow: inset 0 1px 0 var(--line); }
.line:has(.merge-note) { flex-wrap: wrap; }
/* M80: catatan gabung otomatis di bawah baris paket */
.merge-note { flex-basis: 100%; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-3); background: var(--primary-soft); color: var(--text-2); font-size: var(--text-sm); }
.merge-note .grow { flex: 1; min-width: 0; }
.line .info { flex: 1; min-width: 0; }
.line .nm { font-weight: var(--weight-name); font-size: var(--text-md); }
.line .meta { font-size: var(--text-sm); color: var(--text-3); }
.line .pr { font-weight: var(--weight-heavy); font-size: var(--text-base); margin-top: var(--space-0-5); }
.stepper { display: flex; align-items: center; flex: none; background: var(--surface-2); border-radius: var(--radius-3); height: 40px; }
.stepper button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-3); }
.stepper .ph { font-size: var(--text-md); }
.stepper span { min-width: 22px; text-align: center; font-weight: var(--weight-heavy); }
.sum { display: grid; gap: var(--space-1-5); padding: var(--space-3) 0 var(--space-1); }
.kv { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-base); color: var(--text-2); }
.kv.total { color: var(--text); font-weight: var(--weight-heavy); font-size: var(--text-xl); padding-top: var(--space-2); box-shadow: inset 0 1px 0 var(--line); margin-top: var(--space-1); }
/* pemisah sebelum total keranjang: garis perforasi struk */
.kv.total.perf { box-shadow: none; padding-top: var(--space-3); background: var(--perforation) top / 100% var(--perforation-h) no-repeat; }
.kv .good { color: var(--success); font-weight: var(--weight-bold); }

/* ---------- Overlay: sheet / dialog / layar penuh ---------- */
.overlay { position: absolute; inset: 0; z-index: var(--z-overlay); display: none; overflow: clip; } /* latar redup diam */
.overlay.on { display: block; }
.overlay .scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade var(--dur-enter) ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 90%;
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  animation: sheetIn var(--dur-sheet) var(--ease-sheet);
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes dialogIn { from { opacity: 0; scale: .96; } }
.grab { width: 40px; height: 5px; border-radius: var(--radius-0-75); background: var(--surface-3); margin: var(--space-2) auto var(--space-0-5); flex: none; }
.sheet-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4) var(--space-2-5); }
.sheet-head h2 { font-size: var(--text-xl); font-weight: var(--weight-heavy); flex: 1; letter-spacing: var(--tracking-snug); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--space-4) var(--space-2); }
.sheet-body.stack { grid-auto-rows: max-content; } /* baris = tinggi isi: grup (overflow:hidden) tidak terjepit/bertumpuk di sheet yang tinggi (Revisi 11) */
.sheet-body.pick-body { padding-bottom: calc(var(--space-4) + var(--safe-b)); }
.sheet-foot { padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-b)); box-shadow: inset 0 1px 0 var(--line); }

.fullscreen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); animation: pushIn var(--dur-move) var(--ease-out); }
@keyframes pushIn { from { opacity: 0; transform: translateX(24px); } }
.foot { padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-b)); }
.screen:has(> .foot) > .scroll { scroll-padding-bottom: var(--space-6); }

/* ---------- Bayar ---------- */
.amount-hero { text-align: center; padding: var(--space-1) var(--space-4) var(--space-3-5); }
.amount-hero .lbl { font-size: var(--text-base); font-weight: var(--weight-label); color: var(--text-3); }
.amount-hero .amt { font-size: var(--text-7xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tightest); line-height: var(--leading-tight); }
.methods { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 0 var(--space-4) var(--space-3); }
.methods::-webkit-scrollbar { display: none; }
.method {
  flex: none; min-width: 84px; height: 64px; padding: 0 var(--space-3);
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-2);
}
.method .ph { font-size: var(--text-2xl); }
.method[aria-selected="true"] { background: var(--strong-bg); color: var(--strong-fg); box-shadow: none; font-weight: var(--weight-active); }
.received { margin: 0 var(--space-4); padding: var(--space-2-5) var(--space-4); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); display: flex; align-items: center; gap: var(--space-3); }
.received .v { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); flex: 1; }
.received .lbl { font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-3); }
.change-pill { display: inline-flex; flex-direction: column; align-items: flex-end; }
.change-pill small { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.change-pill b { font-size: var(--text-lg); font-weight: var(--weight-heavy); color: var(--primary-ink); }
.quick { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-1); overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
/* bug umum 5 Nov: 4 tombol uang cepat muat di HP 360px (dulu "100.000" terpotong di tepi layar); sisa ruang dibagi rata */
.quick button { flex: 1 0 auto; height: 40px; padding: 0 var(--space-2-5); border-radius: var(--radius-3); background: var(--primary-soft); color: var(--primary-ink); font-weight: var(--weight-heavy); font-size: var(--text-base); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); padding: var(--space-2-5) var(--space-4) 0; }
.key {
  height: 56px; border-radius: var(--radius-3-5);
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: var(--text-3xl); font-weight: var(--weight-bold);
  display: grid; place-items: center;
  transition: transform var(--dur-instant) var(--ease-out), background-color var(--dur-instant) ease;
}
.key:active { transform: scale(.97); background: var(--surface-2); }
.key.fn { background: transparent; box-shadow: none; }

.qr-card { margin: 0 auto; width: min(100%, 240px); padding: var(--space-4-5); border-radius: var(--r-xl); background: var(--paper-white); color: var(--paper-ink-strong); box-shadow: var(--shadow-2); text-align: center; }
.qr-card svg { width: 100%; height: auto; aspect-ratio: 1; display: block; overflow: hidden; }
.qr-card .m { font-weight: var(--weight-heavy); font-size: var(--text-base); margin-top: var(--space-2-5); }
.qr-card .s { font-size: var(--text-xs); color: var(--paper-ink-muted); }

/* sukses */
.success { text-align: center; padding: var(--space-3) var(--space-4) var(--space-1-5); }
.check {
  width: 72px; height: 72px; margin: 0 auto var(--space-3); border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center;
  animation: pop var(--dur-slow) var(--ease-out);
}
.check .ph-bold { font-size: var(--text-6xl); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.success h2 { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.success .big { font-size: var(--text-7xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tightest); line-height: var(--leading-tight); margin-top: var(--space-0-5); }
/* R3 M210: nomor pesanan dapur di layar selesai bayar */
.success .order-no { display: inline-grid; justify-items: center; gap: var(--space-1); margin-top: var(--space-3); padding: var(--space-3) var(--space-8); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.order-no-label { font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-2); }
.order-no-num { font-size: var(--text-5xl); font-weight: var(--weight-heavy); line-height: var(--leading-none); letter-spacing: var(--tracking-tight); }
.order-no-to { font-size: var(--text-sm); color: var(--text-2); }
.success p { color: var(--text-3); font-size: var(--text-base); font-weight: var(--weight-medium); }
.receipt {
  margin: var(--space-3-5) var(--space-4) 0; padding: var(--space-4) var(--space-4) var(--space-5-5);
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--mono); font-size: var(--text-xs); line-height: var(--leading-mono);
  border-radius: var(--radius-2) var(--radius-2) 0 0;
  box-shadow: var(--shadow-1);
  /* tepi bawah sobek (motif struk) */
  -webkit-mask: var(--tear-mask);
          mask: var(--tear-mask);
}
.receipt .c { text-align: center; }
.receipt .b { font-weight: var(--weight-bold); }
.receipt .r { display: flex; justify-content: space-between; gap: var(--space-2); }
.receipt hr { border: 0; border-top: 1px dashed var(--paper-rule); margin: var(--space-2) 0; }

/* scan */
.camera { position: absolute; inset: 0; background: var(--media-bg); box-shadow: inset 0 0 160px var(--media-vignette); color: var(--media-fg); display: flex; flex-direction: column; }
.camera .top { color: var(--media-fg); }
.camera .icon-btn { background: var(--media-glass); color: var(--media-fg); box-shadow: none; backdrop-filter: blur(12px); }
.viewfinder { position: relative; width: min(78%, 320px); aspect-ratio: 1.5; margin: 12vh auto 0; }
.viewfinder i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--media-fg); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: var(--radius-3-5) 0 0 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 var(--radius-3-5) 0 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 var(--radius-3-5); }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 var(--radius-3-5) 0; }
.viewfinder .laser { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--scan-laser); box-shadow: 0 0 12px var(--scan-laser); animation: scanline var(--dur-scan) ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.scan-hint { text-align: center; font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--media-fg-soft); margin-top: var(--space-4-5); }
.scan-toast { margin: auto var(--space-4) var(--space-3); padding: var(--space-3) var(--space-3-5); border-radius: var(--r-md); background: var(--media-card); color: var(--paper-ink-strong); display: flex; align-items: center; gap: var(--space-3); box-shadow: var(--shadow-3); }
.scan-toast b { font-size: var(--text-base); display: block; }
.scan-toast small { font-size: var(--text-sm); color: var(--paper-ink-muted); }
.camera .foot .btn.soft:not(:disabled) { background: var(--media-glass); color: var(--media-fg); backdrop-filter: blur(12px); box-shadow: none; }

/* PIN */
.pin { display: flex; flex-direction: column; align-items: center; padding: calc(var(--space-6) + var(--safe-t)) var(--space-4) 0; flex: 1; }
.people { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-4-5); }
.person { display: flex; flex-direction: column; align-items: center; gap: var(--space-1-5); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-2); width: 72px; }
.person .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--weight-heavy); font-size: var(--text-lg); }
.person.on .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
.person.on { color: var(--text); }
.dots { display: flex; gap: var(--space-3-5); margin: var(--space-6-5) 0 var(--space-2); }
.dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.dots i.f { background: var(--text); box-shadow: none; }
.pin .keypad { width: 100%; max-width: 360px; padding: var(--space-4-5) 0 0; }
.pin .key { height: 64px; border-radius: 50%; width: 64px; justify-self: center; }

/* welcome / onboarding */
.hero-art { position: relative; height: 300px; margin: 0 var(--space-4); border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); }
.hero-art .r1, .hero-art .r2 { position: absolute; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.hero-art .r1 { left: var(--space-4-5); right: 70px; top: 34px; padding: var(--space-3-5); }
.hero-art .r2 { right: var(--space-4-5); width: 150px; bottom: var(--space-6-5); padding: var(--space-3-5); }
.hero-art .r3 { position: absolute; left: var(--space-4-5); bottom: var(--space-6-5); width: 160px; padding: var(--space-3); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-2); display: flex; gap: var(--space-2-5); align-items: center; }
.hero-art .r3 b { display: block; font-size: var(--text-sm); }
.hero-art .r3 small { font-size: var(--text-xs); color: var(--accent); font-weight: var(--weight-bold); }
.ob { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ob-body { padding: var(--space-5) var(--space-5) 0; }
.ob-body h1 { font-size: var(--text-5xl); line-height: var(--leading-tight); font-weight: var(--weight-display); letter-spacing: var(--tracking-tightest); }
.ob-body p.lead { color: var(--text-2); margin-top: var(--space-2-5); }
.progress { display: flex; gap: var(--space-1-5); padding: calc(var(--space-4) + var(--safe-t)) var(--space-5) 0; }
.progress i { flex: 1; height: 4px; border-radius: var(--radius-0-5); background: var(--surface-3); }
.progress i.on { background: var(--primary); }
.choice { display: flex; gap: var(--space-3-5); align-items: flex-start; text-align: left; padding: var(--space-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); width: 100%; }
.choice.on { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-1); }
/* Kode pemulihan PIN (M100b): huruf besar berjarak, mudah disalin tangan */
/* M105: kartu orang yang login di Lainnya: avatar seukuran ikon menu, jarak bawaan .cell supaya judul sejajar menu lain */
.me-card .thumb { width: var(--size-cell-ico); height: var(--size-cell-ico); font-size: var(--text-sm); }
/* M136: Absen karyawan — tab di layar utama, daftar absen, lembar PIN/hasil */
.lock-tabs { width: 100%; max-width: 360px; margin-top: var(--space-5); }
.lock-q { margin-top: var(--space-4); }
.person.belum .av { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line); } /* belum absen: netral, tetap terbaca (kontras) */
.person.belum .nm { color: var(--text-2); }
.person-note { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--accent); white-space: nowrap; }
.absen-done { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding-top: var(--space-6); padding-bottom: var(--space-4); text-align: center; }
.absen-done > [data-ui-actions] { width: 100%; }
.lock-absen { width: 100%; max-width: 420px; margin-top: var(--space-4); text-align: left; }
.thumb.absen-av { width: var(--size-cell-ico); height: var(--size-cell-ico); font-size: var(--text-sm); }
.absen-st.ok { color: var(--success); }
.absen-act { flex: none; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-2); }
.absen-act.in { color: var(--primary-ink); }
.absen-big { width: 56px; height: 56px; display: grid; place-items: center; margin-top: var(--space-2); font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.absen-name { margin-top: var(--space-2); font-size: var(--text-lg); font-weight: var(--weight-bold); text-align: center; }
.absen-ok, .absen-q { width: 56px; height: 56px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: var(--text-2xl); }
.absen-ok { background: var(--success-soft); color: var(--success); }
.absen-q { background: var(--cat3-tb); color: var(--cat3-tf); }
.absen-q.warn { background: var(--accent-soft); color: var(--accent); }
.absen-step { width: 26px; height: 26px; border-radius: var(--radius-full); display: grid; place-items: center; flex: none; align-self: flex-start; background: var(--text); color: var(--surface); font-size: var(--text-sm); font-weight: var(--weight-heavy); }
.absen-day { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); }
.absen-check .t-warn { color: var(--danger); }
.absen-fix { flex: none; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--primary-ink); }
.absen-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2-5); }
.absen-suggest { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3-5); border-radius: var(--r-md); background: var(--success-soft); color: var(--success); text-align: left; width: 100%; }
.absen-suggest .grow { display: flex; flex-direction: column; gap: var(--space-0-5); }
.absen-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* M138 Jadwal & Kehadiran */
.jd-today { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3-5) var(--space-4); width: 100%; text-align: left; }
.jd-today-h { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-md); }
.jd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.jd-tile { display: flex; flex-direction: column; gap: var(--space-0-5); padding: var(--space-2-5); border-radius: var(--radius-2-5); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.jd-tile b { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.jd-tile.ok { background: var(--success-soft); color: var(--success); }
.jd-tile.warn { background: var(--accent-soft); color: var(--accent); }
.jd-tile.danger { background: var(--danger-soft); color: var(--danger); }
.jd-due .d { color: var(--primary-ink); font-weight: var(--weight-bold); }
.jd-sum > div > .d { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-3); }
.jd-lbl { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-2); }
.jd-ov { gap: var(--space-2); }
.jd-ov-d { width: 36px; flex: none; font-weight: var(--weight-bold); }
.jd-ov input { flex: 1; min-width: 0; height: var(--size-hit); padding: 0 var(--space-2); border-radius: var(--radius-2-5); background: var(--surface-2); color: var(--text); font-size: var(--text-md); font-weight: var(--weight-bold); }
.jd-pill { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.jd-pill.due { background: var(--accent-soft); color: var(--accent); }
.jd-big { font-size: var(--text-5xl); font-weight: var(--weight-display); }
.absen-list .d.t-late, .group .d.t-late { color: var(--accent); }
.pay-auto-end { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; }
.pay-off { color: var(--text-3); }
/* M107: pratinjau tab bar di editor Tab & tampilan */
.tab-preview { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1); padding: var(--space-2); border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.tab-preview span { display: grid; justify-items: center; gap: var(--space-0-5); padding: var(--space-1-5) var(--space-1); border-radius: var(--r-full); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-3); }
.tab-preview span .ph, .tab-preview span .ph-fill { font-size: var(--text-lg); }
.tab-preview span.on { background: var(--primary-soft); color: var(--primary-ink); }
/* M111: Kinerja saya — komisi & bonus */
.kinerja-inc { padding: var(--space-4); }
.kinerja-inc .lbl { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); }
.kinerja-inc b { font-size: var(--text-lg); font-weight: var(--weight-heavy); }

/* M108c: ringkasan hak akses per peran */
.access-sum { display: grid; gap: var(--space-1-5); padding: var(--space-3-5) var(--space-4); font-size: var(--text-base); line-height: var(--leading-desc); color: var(--text-2); }
.access-sum b { color: var(--text); font-weight: var(--weight-bold); }

/* M109: Kabar dari tim Nyetruk (Beranda) */
.kabar { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-3) var(--space-4) var(--space-4); border: 0; box-shadow: var(--shadow-raise); color: var(--strong-fg); background: var(--kabar-fitur-bg); }
.kabar.is-tips { background: var(--kabar-tips-bg); }
.kabar.is-pro { background: var(--kabar-pro-bg); }
.kabar > .fx-dots { position: absolute; inset: 0; z-index: var(--z-behind); pointer-events: none; background-image: var(--pattern-dots); background-size: var(--pattern-size) var(--pattern-size); -webkit-mask-image: linear-gradient(to left, var(--mask-solid), transparent 75%); mask-image: linear-gradient(to left, var(--mask-solid), transparent 75%); }
.kabar-art { position: absolute; right: calc(-1 * var(--space-2)); bottom: calc(-1 * var(--space-4)); z-index: var(--z-behind); font-size: calc(var(--text-9xl) * 1.7); line-height: var(--leading-none); opacity: .18; transform: rotate(-14deg); pointer-events: none; }
.kabar-art .ph-fill { font-size: inherit; }
.kabar-head { display: flex; align-items: center; gap: var(--space-2-5); }
.kabar-ico { flex: none; width: 32px; height: 32px; border-radius: var(--radius-2-5); display: grid; place-items: center; font-size: var(--text-md); background: color-mix(in srgb, var(--strong-fg) 18%, transparent); color: var(--strong-fg); }
.kabar-src { flex: 1; min-width: 0; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--strong-fg); }
.kabar .icon-btn.ghost { color: var(--strong-fg); }
.kabar-t { font-size: var(--text-lg); font-weight: var(--weight-heavy); line-height: var(--leading-tight); padding-right: var(--space-10); }
.kabar-p { font-size: var(--text-base); line-height: var(--leading-desc); color: var(--strong-fg); padding-right: var(--space-10); }
.kabar .btn.soft:not(:disabled) { background: var(--strong-fg); color: var(--strong-bg); box-shadow: none; }

/* ---------- Beranda (M108) ---------- */
.home-head { display: flex; align-items: center; gap: var(--space-3); padding-top: calc(var(--space-4) + var(--safe-t)); padding-bottom: var(--space-3); }
.home-logo { width: 40px; height: 40px; border-radius: var(--radius-3); object-fit: cover; }
.home-store { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); overflow-wrap: anywhere; }
.home-hi { font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.home-date { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-3); }
.home-hero { padding: var(--space-4-5); border-radius: var(--radius-5); background: var(--strong-bg); color: var(--strong-fg); display: grid; gap: var(--space-2); }
.home-hero-lbl { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--strong-fg-2); }
.home-hero-amt { font-size: var(--text-5xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.home-hero-amt.long { font-size: var(--text-3xl); }
.home-hero-sub { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--strong-fg-2); }
.home-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding-top: var(--space-1); }
.home-hero-stats span { display: block; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--strong-fg-2); }
.home-hero-stats b { font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.home-hero-act { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-1); }
.home-hero-act .btn { flex: 1 1 auto; }
.home-hero-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.home-hero-link { flex: none; height: 36px; display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2-5) 0 var(--space-3); margin-right: calc(-1 * var(--space-1-5)); border-radius: var(--radius-2-5); box-shadow: inset 0 0 0 1px var(--strong-fg-2); color: var(--strong-fg); font-size: var(--text-base); font-weight: var(--weight-bold); white-space: nowrap; }
/* Revisi visual 9 Nov (contoh dari Pixelz): kartu ringkasan = struk gelap (sobekan bergerigi di bawah) dengan cahaya oranye & pola titik;
   dua kartu aksi di bawahnya (ikon dalam kotak, panah bulat, ikon besar samar sebagai ilustrasi) */
.home-hero-wrap { display: grid; gap: var(--space-2-5); }
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: calc(var(--space-4-5) + var(--tear-size)); background: var(--hero-glow), var(--strong-bg); -webkit-mask: var(--tear-mask); mask: var(--tear-mask); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.home-hero > .fx-dots { position: absolute; inset: 0; z-index: var(--z-behind); pointer-events: none; background-image: var(--pattern-dots); background-size: var(--pattern-size) var(--pattern-size); -webkit-mask-image: linear-gradient(to left, var(--mask-solid), transparent 70%); mask-image: linear-gradient(to left, var(--mask-solid), transparent 70%); }
.home-hero-ico.icon-btn { width: 36px; height: 36px; background: transparent; color: var(--strong-fg); box-shadow: inset 0 0 0 1px var(--strong-fg-2); }
.home-trend { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--weight-bold); }
.home-trend.up { color: var(--strong-up); }
.home-trend.down { color: var(--strong-down); }
.home-trend .ph-bold { font-size: var(--text-md); }
.home-hero-fresh { display: flex; align-items: center; gap: var(--space-1-5); margin: 0; font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--strong-fg-2); }
.home-hero-outlet { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-1-5); height: 32px; margin-top: calc(-1 * var(--space-1)); padding: 0 var(--space-2-5); border-radius: var(--r-full); background: color-mix(in srgb, var(--strong-fg) 12%, transparent); color: var(--strong-fg); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.home-hero-outlet .ph, .home-hero-outlet .ph-bold { font-size: var(--text-md); }
.home-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2-5); }
.home-acts.single { grid-template-columns: minmax(0, 1fr); }
.home-act { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'ico . go' 'txt txt txt'; row-gap: var(--space-3); min-height: 112px; padding: var(--space-3-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); text-align: left; }
.home-act > .fx-dots { position: absolute; inset: 0; z-index: var(--z-behind); pointer-events: none; background-image: var(--pattern-dots-ink); background-size: var(--pattern-size) var(--pattern-size); -webkit-mask-image: linear-gradient(to top left, var(--mask-solid), transparent 65%); mask-image: linear-gradient(to top left, var(--mask-solid), transparent 65%); }
.home-act-ico { grid-area: ico; width: 40px; height: 40px; border-radius: var(--radius-3); display: grid; place-items: center; font-size: var(--text-xl); background: var(--surface-2); }
.home-act-go { grid-area: go; align-self: start; width: 28px; height: 28px; border-radius: var(--r-full); display: grid; place-items: center; font-size: var(--text-sm); background: var(--strong-bg); color: var(--strong-fg); }
.home-act-txt { grid-area: txt; align-self: end; display: grid; gap: var(--space-0-5); min-width: 0; }
.home-act-l { font-size: var(--text-md); font-weight: var(--weight-heavy); line-height: var(--leading-tight); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-act-s { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-act-art { position: absolute; right: calc(-1 * var(--space-2)); bottom: calc(-1 * var(--space-3)); z-index: var(--z-behind); font-size: calc(var(--text-9xl) * 1.2); line-height: var(--leading-none); opacity: .08; transform: rotate(-12deg); pointer-events: none; }
.home-act-art .ph { font-size: inherit; }
.home-act.is-primary { background: var(--act-primary-bg); color: var(--on-primary); box-shadow: var(--shadow-raise); }
.home-act.is-primary > .fx-dots { background-image: var(--pattern-dots); }
.home-act.is-primary .home-act-ico { background: color-mix(in srgb, var(--on-primary) 12%, transparent); }
.home-act.is-primary .home-act-s { color: var(--on-primary); }
.home-act.is-primary .home-act-go { background: var(--on-primary); color: var(--primary); }
.home-act.is-primary .home-act-art { opacity: .14; }
.home-act.is-info .home-act-ico { background: var(--info-soft); color: var(--info); }
.home-act.is-ok .home-act-ico { background: var(--success-soft); color: var(--success); }
@media (hover: hover) and (pointer: fine) { .home-act:not(.is-primary):hover { background: var(--surface-2); } }
.home-sec-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-1) 0; }
.home-sec-h b { font-size: var(--text-md); font-weight: var(--weight-heavy); }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.home-tile { display: grid; justify-items: center; align-content: start; gap: var(--space-1-5); min-height: 88px; padding: var(--space-3) var(--space-0-5); border-radius: var(--radius-4); background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); }
.home-tile .ico { width: 40px; height: 40px; border-radius: var(--radius-3); display: grid; place-items: center; font-size: var(--text-lg); }
.home-tile .lbl { max-width: 100%; font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); text-align: center; line-height: var(--leading-tight); overflow-wrap: break-word; }
.home-tile.primary { background: var(--primary); color: var(--on-primary); }
.home-tile.primary .ico { background: var(--primary-press); color: var(--on-primary); }
.home-tile.add { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.home-tile.add .ico { background: var(--surface-2); }
.home-grid { display: grid; gap: var(--space-4); align-items: start; }
@container app (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
@media (hover: hover) and (pointer: fine) { .home-tile:not(.primary):hover { background: var(--surface-2); } }
.recovery-code { padding: var(--space-4); border-radius: var(--r-md); background: var(--surface-2); text-align: center; font-family: var(--mono); font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-wide); user-select: all; }
.ob-alert { width: 56px; height: 56px; border-radius: var(--radius-3-5); display: grid; place-items: center; font-size: var(--text-2xl); }
.choice .ico { width: 44px; height: 44px; border-radius: var(--radius-3-5); display: grid; place-items: center; flex: none; }
.choice .ico .ph { font-size: var(--text-2xl); }
.choice .t { font-weight: var(--weight-heavy); font-size: var(--text-md); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.choice .d { color: var(--text-2); font-size: var(--text-base); margin-top: var(--space-0-5); display: block; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); flex: none; margin-top: var(--space-0-5); display: grid; place-items: center; }
.choice.on .radio, .radio-cell.on .radio { box-shadow: inset 0 0 0 2px var(--primary); }
.choice.on .radio::after, .radio-cell.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

/* laporan */
.bento { display: grid; gap: var(--space-3); padding: 0 var(--space-4); grid-template-columns: repeat(2, 1fr); }
.bento > * { min-width: 0; }
.span-2 { grid-column: span 2; }
.hero-num { padding: var(--space-4-5); border-radius: var(--r-lg); background: var(--ink); color: var(--bg); display: flex; flex-direction: column; align-items: flex-start; }
.hero-num .target { margin-top: auto; padding-top: var(--space-4-5); width: 100%; font-size: var(--text-sm); font-weight: var(--weight-bold); color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.hero-num .target .meter { background: color-mix(in srgb, var(--bg) 18%, var(--ink)); margin-bottom: var(--space-2-5); }
/* Target harian (M38) */
.hero-num .goal-head { display: flex; justify-content: space-between; gap: var(--space-3); }
.hero-num .goal-head b { color: var(--bg); }
.hero-link { margin-top: var(--space-3); padding: 0 var(--space-3); height: 36px; border-radius: var(--radius-2-5); font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--bg); background: color-mix(in srgb, var(--bg) 14%, var(--ink)); }
.hero-num .lbl { font-size: var(--text-base); font-weight: var(--weight-label); color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.hero-num .amt { max-width: 100%; overflow-wrap: anywhere; font-size: var(--text-5xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tightest); line-height: var(--leading-snug); margin-top: var(--space-0-5); }
.delta { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-2-5); padding: var(--space-1) var(--space-2); border-radius: var(--radius-2); font-size: var(--text-sm); font-weight: var(--weight-heavy); background: var(--success-soft); color: var(--success); }
/* Satuan lain (Revisi 25): nama | isi | harga | hapus */
.unit-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: var(--space-2); align-items: end; }

/* Preset Atur fitur (Revisi 25): kartu digeser mendatar, berhenti per kartu */

/* Laporan lengkap (Revisi 23) */
.report-total { min-height: 56px; background: var(--surface-2); }
.report-total .t { font-weight: var(--weight-heavy); }
.report-strong { background: var(--surface-2); }
.report-strong .t, .report-strong .lt-c { font-weight: var(--weight-heavy); }
.report-list .end { flex: none; }
.report-screen .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(var(--size-kpi-min), 1fr)); }
.report-screen .lt-row { min-height: var(--size-row-prod); }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.kpi { padding: var(--space-4); }
.kpi .lbl { font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-3); }
.kpi .v { font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); margin-top: var(--space-0-5); }
.kpi .s { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.chart { padding: var(--space-4); }
.chart .head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.chart .head b { font-size: var(--text-md); }
.chart .head span { font-size: var(--text-sm); color: var(--text-3); font-weight: var(--weight-medium); }
.bars { display: flex; align-items: flex-end; gap: var(--space-2); height: 132px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--space-1-5); }
.bars i { display: block; width: 100%; max-width: 36px; border-radius: var(--radius-2) var(--radius-2) var(--radius-1) var(--radius-1); background: var(--surface-3); }
.bars .today i { background: var(--primary); }
.bars small { font-size: var(--text-xs); color: var(--text-3); font-weight: var(--weight-label); }
.meter { height: 8px; border-radius: var(--radius-1); background: var(--surface-2); overflow: hidden; margin-top: var(--space-1-5); }
.meter i { display: block; height: 100%; border-radius: var(--radius-1); background: var(--primary); }
.split-bar { display: flex; height: 12px; border-radius: var(--radius-1-5); overflow: hidden; gap: var(--space-0-75); margin: var(--space-1) 0 var(--space-3); }
.split-bar i { display: block; height: 100%; }
.legend { display: grid; gap: var(--space-2); }
.legend div { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); font-weight: var(--weight-medium); }
.legend em { width: 10px; height: 10px; border-radius: var(--radius-0-75); flex: none; }
.legend b { margin-left: auto; font-weight: var(--weight-heavy); }

/* pelanggan */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-1) var(--space-4) var(--space-4); }
.profile .av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: var(--text-3xl); font-weight: var(--weight-heavy); }
.profile h2 { font-size: var(--text-3xl); font-weight: var(--weight-heavy); margin-top: var(--space-2-5); letter-spacing: var(--tracking-tight); }
.profile p { color: var(--text-3); font-size: var(--text-base); font-weight: var(--weight-medium); }
.debt { padding: var(--space-4); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent); }
.debt .lbl { font-size: var(--text-base); font-weight: var(--weight-label); }
.debt .amt { font-size: var(--text-5xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tightest); }
.debt .s { font-size: var(--text-sm); font-weight: var(--weight-label); }
.timeline .cell .ico { border-radius: 50%; }

/* form produk */
.photo-pick { width: 112px; height: 112px; border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-bold); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--text-3); align-content: center; }
.photo-pick .ph { font-size: var(--text-4xl); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-items: start; } /* M77: isian sejajar atas walau satu sisi punya keterangan */

/* shift */
.drawer-sum .cell { min-height: 48px; }
.drawer-sum .t { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-2); }
.drawer-sum .end { font-weight: var(--weight-heavy); }

/* printer */
.preview-wrap { padding: var(--space-4); border-radius: var(--r-lg); background: var(--surface-2); }
.preview-wrap .receipt { margin: 0 auto; }

/* lisensi */
.plans { display: grid; gap: var(--space-3); }
.plan { padding: var(--space-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); display: grid; gap: var(--space-1-5); align-content: start; min-width: 0; }
.plan > .u-flex { flex-wrap: wrap; }
.pro-examples .kv { flex-wrap: wrap; }
.pro-examples .kv > :last-child { margin-left: auto; text-align: right; }
.plan.cur { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-1); }
.plan h3 { font-size: var(--text-lg); font-weight: var(--weight-heavy); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.plan .price { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); }
.plan .price small { font-size: var(--text-base); color: var(--text-3); font-weight: var(--weight-label); }
.plan ul { margin: var(--space-1) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-1-5); font-size: var(--text-base); color: var(--text-2); }
.plan li { display: flex; gap: var(--space-2); align-items: flex-start; }
.plan li .ph { color: var(--primary-ink); font-size: var(--text-lg); }
/* meteran bayar kalau laku */
.pro-meter { display: grid; gap: var(--space-2); }
.pro-meter-bar { height: 10px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.pro-meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.pro-meter.capped .pro-meter-fill { background: var(--success); }
.pro-meter-text { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text); }
.pro-examples { display: grid; gap: var(--space-2); margin-top: var(--space-2); padding: var(--space-3); border-radius: var(--r-md); background: var(--surface-2); }

/* tutorial */
.step { display: flex; gap: var(--space-3-5); padding: var(--space-4); }
.step + .step { box-shadow: inset 0 1px 0 var(--line); }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-weight: var(--weight-heavy); flex: none; font-size: var(--text-base); }
.step .n.done { background: var(--primary); color: var(--on-primary); }
.step b { display: block; font-size: var(--text-md); }
.step p { color: var(--text-2); font-size: var(--text-base); margin-top: var(--space-0-5); }
.illus { margin-top: var(--space-3); border-radius: var(--radius-3-5); background: var(--surface-2); height: 120px; display: grid; place-items: center; }
.illus .win { width: 72%; height: 78px; border-radius: var(--radius-2-5); background: var(--surface); box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden; }
.illus .win > i { height: 16px; background: var(--surface-3); display: block; }
.illus .win > div { flex: 1; display: flex; gap: var(--space-2); align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: var(--weight-heavy); color: var(--primary-ink); }

/* desktop table */
.table { display: none; }

/* Tooltip (M145): teks tetap di .tip (role=tooltip, ditautkan aria-describedby) tetapi tidak pernah tampil di tempat; yang terlihat
   adalah .tip-layer di lapisan teratas (ui/tooltip.js) — tidak terpotong kartu/sheet/.app yang overflow: clip. */
[data-tip] { position: relative; }
.tip { display: none; }
.tip-layer {
  position: fixed; inset: 0 auto auto 0; margin: 0; border: 0; overflow: visible;
  transform: translate(var(--tip-x, 0px), var(--tip-y, 0px));
  max-width: min(280px, calc(100vw - var(--space-4)));
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-2);
  background: var(--strong-bg); color: var(--strong-fg);
  font: inherit; font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: var(--leading-snug);
  white-space: nowrap; overflow-wrap: normal; text-overflow: ellipsis;
  pointer-events: none; z-index: var(--z-toast);
  display: none;
}
.tip-layer[data-on] { display: block; animation: tipIn var(--dur-fast) var(--ease-out); }
@keyframes tipIn { from { opacity: 0; } }

/* ========== Hover (hanya perangkat dengan mouse) ========== */
@media (hover: hover) and (pointer: fine) {
  .chip:not(.on):hover, .icon-btn:hover, .pill-btn:hover, .btn.line:hover, .btn.soft:hover, .method:not([aria-selected="true"]):not([aria-pressed="true"]):hover { background: var(--surface-2); }
  .prod:hover { box-shadow: var(--shadow-2); }
  .prod.sel:hover { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-2); }
  .cell[role="button"]:hover, button.cell:hover { background: var(--surface-2); }
  .tab:not(.on):hover, .side-nav button:not(.on):hover { background: var(--surface-2); }
  .key:hover { background: var(--surface-2); }
  .btn.primary:hover { background: var(--primary-press); }
  .choice:hover, .opt:hover { box-shadow: var(--shadow-2); }
  .choice.on:hover { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-2); }
}

/* ========== Tablet & desktop (container) ========== */
@container app (min-width: 720px) {
  .tabbar, .cartbar, .tab-space, .tab-halo { display: none !important; }
  .fab, .fab.over-cart { bottom: var(--space-5); right: var(--space-5); translate: none; } /* tablet/desktop: tanpa tab bar & cartbar */
  .screen { --fab-h: var(--fab-h-wide); } /* tanpa tab yang perlu disamakan: tombol mengambang kembali ke ukuran lebar */
  .kasir-main.has-fab .scroll { padding-bottom: calc(var(--fab-h) + var(--space-5) + var(--space-4)); }
  .sidebar {
    display: flex; flex-direction: column; gap: var(--space-2);
    width: 92px; flex: none;
    padding: var(--space-4) var(--space-2-5);
    background: var(--bg-elev);
    box-shadow: inset -1px 0 0 var(--line);
  }
  .sidebar .wordmark { justify-content: center; padding: var(--space-1) 0 var(--space-3-5); }
  .sidebar .wordmark .wordmark-type { display: none; }
  .side-nav { display: grid; gap: var(--space-2); }
  .side-nav button {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
    padding: var(--space-2-5) var(--space-1); border-radius: var(--radius-4);
    font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-2);
  }
  .side-nav button .ph, .side-nav button .ph-fill { font-size: var(--text-2xl); }
  .side-nav button.on { background: var(--primary-soft); color: var(--primary-ink); font-weight: var(--weight-active); }
  .side-foot { margin-top: auto; display: grid; gap: var(--space-2); justify-items: center; }
  .side-foot .me { display: none; }
  .side-foot .only-rail { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding: var(--space-1-5) var(--space-1); border-radius: var(--radius-4); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-2); }
  .side-foot .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--weight-heavy); font-size: var(--text-base); }

  .kasir .scroll { padding-bottom: var(--space-4); }
  .cartpanel {
    display: flex; flex-direction: column;
    width: 360px; flex: none;
    background: var(--bg-elev);
    box-shadow: inset 1px 0 0 var(--line);
  }
  .cartpanel .sheet-head { padding-top: var(--space-4-5); }
  .cartpanel .sheet-body { flex: 1; }
  .ov-cart { display: none !important; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* sheet & layar penuh → dialog di tengah */
  .overlay .sheet, .overlay .fullscreen.dialog {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: min(520px, calc(100% - 48px));
    max-height: calc(100% - 48px);
    border-radius: var(--r-xl);
    translate: -50% -50%;
    animation: dialogIn var(--dur-move) var(--ease-out);
    box-shadow: var(--shadow-3);
  }
  .overlay .fullscreen.dialog { height: auto; background: var(--bg-elev); }
  .overlay .fullscreen.dialog .scroll { flex: 0 1 auto; }
  .overlay .sheet .grab { display: none; }

  .large-title { padding-top: var(--space-5-5); }
  .wrap, .chips, .large-title, .top { padding-left: var(--space-6); padding-right: var(--space-6); }
  .kasir-bar .bar-search { left: var(--space-6); }
  .bento { padding: 0 var(--space-6); grid-template-columns: repeat(4, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-2-m { grid-column: span 2; }

  .center-col { width: 100%; max-width: var(--page); margin: 0 auto; }
  .center-col.narrow { max-width: var(--page-narrow); }
  /* M146: tombol bawah selebar kolom isi (.center-col > .wrap berjarak --space-6), bukan lebih lebar 2× jarak itu */
  .foot:has(> .center-col) { padding-left: 0; padding-right: 0; }
  .foot > .center-col { padding: 0 var(--space-6); }
  .split .wrap, .split .chips { padding-left: 0; padding-right: 0; }
  .split .section-label { padding-left: var(--space-1); }
  .overlay .methods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .overlay .method { min-width: 0; padding: 0 var(--space-1); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-5); padding: 0 var(--space-6); align-items: start; }
  .split > .wrap { padding: 0; }
  .detail-pane { display: block !important; position: sticky; top: 0; }
  .list-only { display: none; }
  .table { display: block; }
  .mobile-only { display: none !important; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
  .screen > .top { width: 100%; max-width: var(--page); margin: 0 auto; }
  .screen.full > .top { max-width: none; }
  .wrap > .seg { max-width: 440px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); padding: 0 var(--space-6); }
  .settings-grid .wrap { padding: 0; }
  .ob-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; max-width: 1040px; margin: 0 auto; padding: var(--space-8); flex: 1; }
  .ob-split .hero-art { height: 480px; margin: 0; }
  .ob-split .ob-body h1 { font-size: var(--text-7xl); }
  .ob-split .hero-art .r1 { right: 120px; top: var(--space-12); }
  .ob-split .hero-art .r3 { bottom: 120px; }
  .camera .viewfinder { margin-top: 8vh; }
}
@container app (min-width: 1100px) {
  .sidebar { width: 248px; padding: var(--space-5) var(--space-3-5); }
  .sidebar .wordmark { justify-content: flex-start; padding: var(--space-1) var(--space-2-5) var(--space-4-5); }
  .sidebar .wordmark .wordmark-type { display: block; }
  .side-nav button { flex-direction: row; gap: var(--space-3); padding: 0 var(--space-3-5); height: 48px; font-size: var(--text-base); }
  .side-foot { justify-items: stretch; }
  .side-foot .me { display: flex; align-items: center; gap: var(--space-2-5); padding: var(--space-2-5); border-radius: var(--radius-4); background: var(--surface); box-shadow: var(--shadow-1); }
  .side-foot .me b { display: block; font-size: var(--text-base); }
  .side-foot .me small { font-size: var(--text-xs); color: var(--text-3); font-weight: var(--weight-medium); }
  .side-foot .only-rail { display: none; }
  .cartpanel { width: 400px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.detail-pane { display: none; }
.desk-only { display: none; }
@container app (min-width: 720px) { .desk-only { display: block; } }

/* tabel produk (desktop) */
/* Daftar berkolom (Revisi 12): header di luar kartu, baris = tombol penuh */
.lt { display: grid; gap: var(--space-2); }
.lt-head, .lt-row { display: grid; grid-template-columns: var(--lt-cols); gap: var(--space-4); align-items: center; }
.lt-head { padding: 0 var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-3); }
.lt-row { width: 100%; min-height: 72px; padding: var(--space-3) var(--space-4); text-align: left; }
.lt .r { text-align: right; justify-self: end; white-space: nowrap; }
.lt-c { min-width: 0; }
.lt-price { display: grid; justify-items: end; }
/* Tab Paket (Revisi 19): harga, hemat & sisa bertumpuk di kanan (nama & isi tetap lega) */
.paket-end { display: grid; justify-items: end; gap: var(--space-0-5); flex: none; }
.paket-end .d { white-space: nowrap; }
.lt-price small { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-3); }
.lt-prod { display: flex; align-items: center; gap: var(--space-3-5); min-width: 0; }
.lt-prod .t { display: block; font-size: var(--text-md); font-weight: var(--weight-bold); }
.lt-prod .d { display: block; font-size: var(--text-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .lt-row.is-link:hover { background: var(--surface-2); } }
.lt-row { position: relative; }
.lt-hit { display: block; width: 100%; text-align: left; border-radius: 0; }
.lt-hit::after { content: ""; position: absolute; inset: 0; } /* seluruh baris bisa diketuk */
.lt-row.is-link:active { background: var(--surface-2); } /* baris lebar: umpan balik latar, bukan mengecil */
.lt-hit:focus-visible { outline: none; }
.lt-hit:focus-visible::after { box-shadow: inset 0 0 0 2px var(--primary); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.tbl th { text-align: left; font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--text-3); padding: var(--space-3) var(--space-3-5); box-shadow: inset 0 -1px 0 var(--line); }
.tbl td { padding: var(--space-2-5) var(--space-3-5); box-shadow: inset 0 -1px 0 var(--line); vertical-align: middle; }
.tbl tr:last-child td { box-shadow: none; }
.tbl .r { text-align: right; }

@media (prefers-reduced-motion: reduce) {
.fab, .fab-face, .fab-face .ph-bold, .fab-t, .fab-face::before, .fab-face::after, .cartbar .go { transition: none; }
  .add-fab .fab-shape { animation: fade var(--dur-base) ease; }
  [data-sort="shift"], [data-sort="drop"] { transition: none; }
  [data-sort="drag"] { transform: translateY(var(--sort-dy, 0px)); }
  .tabbar, .tab-mini, .tab-track, .tab .nav-l, .tab .nav-ico, .tab-halo, .cartbar, .cartbar-open, .kasir-bar .bar-search, .kasir-bar .chips { transition: none; }
  .kasir-search.opening { animation: none; }
  .screen.on, .sheet, .check, .fullscreen, .overlay .scrim, .viewfinder .laser { animation: fade var(--dur-base) ease; }
  .press:active, .key:active, .tab:active { transform: none; }
  .viewfinder .laser { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

[role="dialog"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== Tambahan layar v3 ===== */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.choice-tile { min-height: 76px; padding: var(--space-3); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-1-5); font-size: var(--text-base); font-weight: var(--weight-bold); text-align: left; }
.choice-tile .ph { font-size: var(--text-3xl); color: var(--text-2); }
.choice-tile.on { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.choice-tile.on .ph { color: var(--primary-ink); }
.cbox { width: 24px; height: 24px; border-radius: var(--radius-2); flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--on-primary); }
.cbox .ph-bold { font-size: var(--text-base); }
[aria-checked="true"] > .cbox { background: var(--primary); box-shadow: none; }
.tbl tr.bad td { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.code { display: flex; gap: var(--space-2); justify-content: center; margin: var(--space-1) 0; }
.code span { width: 46px; height: 58px; border-radius: var(--radius-3-5); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: var(--text-3xl); font-weight: var(--weight-heavy); }
.code span.cur { box-shadow: inset 0 0 0 2px var(--primary); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2-5); }
.help { min-height: 120px; padding: var(--space-3-5); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--space-1); text-align: left; background: var(--surface) !important; color: var(--text) !important; box-shadow: var(--shadow-1); }
.help .ph { font-size: var(--text-2xl); margin-bottom: auto; width: 40px; height: 40px; border-radius: var(--radius-3); display: grid; place-items: center; background: var(--tb); color: var(--tf); }
.help b { font-size: var(--text-base); font-weight: var(--weight-heavy); padding-top: var(--space-3); }
.help span { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-3); }
.coach-card { position: absolute; left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-42) + var(--safe-b)); margin: 0 auto; max-width: 400px; padding: var(--space-4); border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow-3); display: grid; gap: var(--space-2); justify-items: start; pointer-events: auto; animation: dialogIn var(--dur-move) var(--ease-out); }
.coach-card h2 { font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.coach-card p { font-size: var(--text-base); color: var(--text-2); }
.coach-card .row-actions { width: 100%; padding-top: var(--space-1); }
.methods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.methods-grid .method { min-width: 0; height: 56px; }
@container app (min-width: 720px) {
  .coach-card { bottom: var(--space-8); }
  .help-grid { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .overlay .methods-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@container app (min-width: 720px) and (max-width: 1099px) {
  .cartpanel { width: 300px; }
  .cartpanel .sheet-head h2 .muted { display: none; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); } /* Revisi 26: 2 kolom, nama produk tidak terpotong */
  .prod { padding: var(--space-2-5); }
  .pgrid .prod { --thumb: var(--size-prod-media); }
}

/* ===== Komponen app (M1) ===== */
.drag-zone, .sheet .sheet-head { touch-action: none; }
.drag-zone { cursor: grab; padding-bottom: var(--space-0-5); }
.overlay.closing .scrim { opacity: 0; transition: opacity var(--dur-base) ease; }
.overlay.closing .sheet { transform: translateY(100%); transition: transform var(--dur-sheet-exit) var(--ease-sheet); }
.overlay.closing .fullscreen { opacity: 0; transition: opacity var(--dur-exit) ease; }
.sheet { transition: transform var(--dur-slow) var(--ease-sheet); }
.stepper .step-btn { width: 40px; height: 40px; border-radius: var(--radius-3); background: transparent; box-shadow: none; }
.stepper .step-btn:disabled { opacity: var(--opacity-disabled); }
.empty { display: grid; justify-items: center; text-align: center; gap: var(--space-1-5); padding: var(--space-12) var(--space-6); }
/* kosong-state: potongan struk (tepi bawah sobek) */
.empty .empty-ico { width: 64px; height: 68px; padding-bottom: var(--tear-size); border-radius: var(--radius-5) var(--radius-5) 0 0; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); margin-bottom: var(--space-2); -webkit-mask: var(--tear-mask); mask: var(--tear-mask); }
:root[data-theme="dark"] .empty .empty-ico { background: var(--surface-3); } /* di atas panel gelap gerigi tetap terlihat */
.empty .empty-ico .ph { font-size: var(--text-4xl); }
.empty b { font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.empty p { color: var(--text-3); font-size: var(--text-base); max-width: 320px; margin-bottom: var(--space-2-5); }
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--space-3) + var(--safe-t)); z-index: var(--z-toast); display: grid; justify-items: center; gap: var(--space-2); pointer-events: none; padding: 0 var(--space-4); }
.toast { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 420px; padding: var(--space-2-5) var(--space-4); border-radius: var(--r-full); background: var(--strong-bg); color: var(--strong-fg); font-size: var(--text-base); font-weight: var(--weight-bold); box-shadow: var(--shadow-3); transition: opacity var(--dur-exit) ease, transform var(--dur-exit) var(--ease-out); animation: toastIn var(--dur-enter) var(--ease-out); }
.toast .ph-fill { font-size: var(--text-lg); }
.toast.ok .ph-fill { color: var(--success); }
.toast.warn .ph-fill { color: var(--accent); }
.toast.error .ph-fill { color: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(-100%); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-100%); } }
:root[data-theme="dark"] .toast.ok .ph-fill { color: var(--on-ink-success); }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.app .main > .screen { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  .toast { animation: fade var(--dur-base) ease; }
  .toast.leaving { transform: none; }
  .overlay.closing .sheet { transform: none; opacity: 0; transition: opacity var(--dur-exit) ease; }
}
@container app (min-width: 720px) {
  .overlay.closing .sheet { transform: none !important; opacity: 0; scale: .96; transition: opacity var(--dur-exit) ease, scale var(--dur-exit) var(--ease-out); }
  .overlay.closing .fullscreen.dialog { scale: .96; transition: opacity var(--dur-exit) ease, scale var(--dur-exit) var(--ease-out); }
}

/* ===== Produk (M2) ===== */
.thumb.photo { object-fit: contain; display: block; background: var(--paper-white); outline: 1px solid var(--line); outline-offset: -1px; }
.photo-pick { flex: none; overflow: hidden; }
.photo-pick.has { padding: 0; box-shadow: var(--shadow-1); }
.tone-row { display: flex; gap: var(--space-2-5); flex-wrap: wrap; }
.tone-dot { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.tone-dot.on { box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 5px var(--primary); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
/* M37: ikon dikelompokkan per jenis usaha */
.icon-group + .icon-group { margin-top: var(--space-3); }
.icon-group-label { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-3); margin-bottom: var(--space-1-5); }
.icon-pick { height: 48px; border-radius: var(--radius-3-5); display: grid; place-items: center; }
.icon-pick .ph { font-size: var(--text-2xl); }
.icon-pick.on { box-shadow: inset 0 0 0 2px currentColor; }
.opt-edit { display: flex; gap: var(--space-2); align-items: center; }
.opt-edit .input { height: 48px; }
.opt-edit .input.price { width: 130px; flex: none; }
.cell.add-row .t { color: var(--primary-ink); }
.cell.add-row .ico { background: var(--primary-soft); color: var(--primary-ink); }
.picked { color: var(--primary-ink); }
.two-col { display: grid; gap: var(--space-4); }

/* ===== Pemindai (M3) ===== */
.camera { overflow: hidden; }
.camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera > :not(video) { position: relative; z-index: var(--z-raised); }
.camera .top { background: linear-gradient(var(--media-shade), transparent); }
.camera .foot { margin-top: auto; background: linear-gradient(transparent, var(--media-shade)); }
.scan-hint { text-shadow: 0 1px 3px var(--media-text-shadow); }
.scan-toast { margin-top: auto; animation: toastIn var(--dur-move) var(--ease-out); }
.scan-toast + .foot { margin-top: 0; }
.scan-toast .ok-mark { color: var(--on-ink-success); }
.scan-problem { margin: 12vh var(--space-6) 0; padding: var(--space-5); border-radius: var(--r-lg); background: var(--media-glass-soft); color: var(--media-fg); display: grid; justify-items: center; gap: var(--space-2-5); text-align: center; font-size: var(--text-base); font-weight: var(--weight-medium); }
.manual-code { display: flex; gap: var(--space-2); }
.manual-code .input { background: var(--paper-white); color: var(--paper-ink-strong); }
.manual-code .input input { color: var(--paper-ink-strong); }
@container app (min-width: 720px) {
  .overlay .dialog.scanner { height: min(680px, calc(100% - 48px)); }
}
.input .icon-btn.in-field { width: 40px; height: 40px; margin-right: calc(var(--space-2) * -1); }
.stock-num { font-size: var(--text-lg); }
.banner-act { background: transparent; color: inherit; }

/* ===== Stok (M3) ===== */
.in-item { padding: var(--space-3); display: grid; gap: var(--space-2-5); }
.in-head { display: flex; align-items: center; gap: var(--space-2-5); }
.in-head b { font-size: var(--text-md); }
.count-in { width: 84px; height: 44px; flex: none; padding: 0 var(--space-2-5); }
.count-in input { text-align: center; font-weight: var(--weight-heavy); }
.picker .group { max-height: none; }

/* ===== Label barcode (M3) ===== */
.lbl-item { box-sizing: border-box; padding: 2mm 3mm; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--paper-white); color: var(--print-ink); font-family: var(--font); overflow: hidden; }
.lbl-name { font-size: 9pt; font-weight: var(--weight-bold); line-height: var(--leading-snug); max-height: 2.3em; overflow: hidden; }
.lbl-price { font-size: 11pt; font-weight: var(--weight-heavy); margin-top: .5mm; }
.lbl-bar { width: 100%; height: 9mm; margin-top: 1mm; }
.lbl-bar svg { width: 100%; height: 100%; display: block; }
.lbl-code { font-size-adjust: none; font-family: var(--mono); font-size: 7pt; letter-spacing: var(--tracking-wider); }
.lbl-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(58mm, 1fr)); justify-items: center; gap: var(--space-2-5); padding: var(--space-3); border-radius: var(--r-lg); background: var(--surface-2); }
.lbl-preview.roll58 { grid-template-columns: 1fr; }
.lbl-preview .lbl-item { width: 58mm; height: 30mm; border-radius: var(--radius-1-5); box-shadow: var(--shadow-1); }
#print-root .lbl-item { height: 100%; }
#print-root { display: none; }
@media print {
  #app, .toasts { display: none !important; }
  #print-root { display: block; font-size-adjust: none; } /* M174: label & struk cetak memakai ukuran asli */
  html, body { background: var(--paper-white) !important; }
}
.stock-num + .d { margin-left: var(--space-0-75); }
.lbl-err { font-size: 7pt; color: var(--print-danger); font-weight: var(--weight-bold); display: grid; place-items: center; height: 100%; }

/* ===== Kasir (M4) ===== */
.cartbar { padding: 0 var(--cartbar-inset); gap: var(--space-2); }
.cartbar-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3); height: 100%; padding-left: calc((var(--cartbar-h) - var(--size-chip)) / 2 - var(--cartbar-inset)); color: inherit; text-align: left; border-radius: var(--radius-3-5); }
.cartbar .go { flex: none; position: relative; z-index: var(--z-raised); } /* Bayar selalu di atas: area pesanan bergeser ke kanan saat tab bar menyusut (Revisi 20) */
.cartbar-open { overflow: clip; }
.line-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3); text-align: left; border-radius: var(--radius-3); }
.line-main .info { display: flex; flex-direction: column; }
.line .info .nm { font-weight: var(--weight-name); font-size: var(--text-md); }
.cart-lines .line .meta { font-size: var(--text-sm); color: var(--text-3); }
.btn-sq { display: grid; place-items: center; width: var(--size-control); height: var(--size-control); border-radius: var(--r-md); background: var(--surface-2); box-shadow: none; flex: none; }
.btn-sq.line { background: var(--btn2-bg); box-shadow: inset 0 0 0 1px var(--btn2-ring), var(--btn2-shadow); } /* R30 */
.keypad .icon-btn.key { width: auto; height: 56px; border-radius: var(--radius-3-5); background: transparent; box-shadow: none; }
.keypad .icon-btn.key .ph { font-size: var(--text-3xl); }
.qty-row { display: flex; align-items: center; gap: var(--space-3); }
.qty-row .t { font-weight: var(--weight-label); }
/* foto produk = thumbnail di pojok (pengganti ikon): kartu tetap terang & teks selalu terbaca */
.prod-photo { margin-left: auto; flex: none; width: var(--thumb, var(--thumb-tile)); height: var(--thumb, var(--thumb-tile)); object-fit: contain; padding: var(--space-0-5); border-radius: var(--radius-3); background: var(--paper-white); outline: 1px solid var(--line); outline-offset: -1px; }
.store-card { width: 100%; padding: var(--space-4); display: flex; gap: var(--space-3-5); align-items: center; text-align: left; }
.store-card .muted { display: block; margin-top: var(--space-0-5); line-height: var(--leading-desc); }
/* Struk di layar (M33): selalu muat satu baris kertas penuh (58 mm = 32 kolom, 80 mm = 48 kolom). Kertas jadi container;
   huruf mengecil mengikuti lebar kertas yang tersedia (lebar 1 huruf mono ≈ 0,62 em), maksimal ukuran teks biasa. */
/* width 100%: container tidak boleh mengukur lebar dari isinya (di wadah grid kertas bisa kolaps jadi 0) */
/* M39: kertas selebar isinya. --mono-ch = lebar 1 huruf mono / ukuran huruf, diukur saat app dibuka (main.js) —
   Consolas ±0,55, Menlo ±0,60 — jadi tidak ada ruang kosong di kanan dan baris tetap muat. */
.receipt { --cols: 32; --pad-x: var(--space-4); container-type: inline-size; white-space: pre; overflow-x: auto; width: 100%;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
  max-width: calc(var(--cols) * var(--text-xs) * var(--mono-ch, 0.62) + 2 * var(--pad-x) + 2px); margin-left: auto; margin-right: auto; }
.receipt-80 > div { font-size: var(--text-2xs); } /* cadangan untuk browser tanpa cqi */
.receipt-80 { --cols: 48; --pad-x: var(--space-3); }
.preview-wrap:has(.receipt-80) { padding-left: var(--space-2); padding-right: var(--space-2); }
.receipt > div { font-size: min(var(--text-xs), calc(100cqi / var(--cols) / var(--mono-ch, 0.62))); }
.print-receipt { font-size-adjust: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9pt; line-height: var(--leading-relaxed); white-space: pre; color: var(--print-ink); padding: 2mm 0; }
.print-receipt .brand-mark { display: flex; justify-content: center; margin-top: 1mm; }
.print-receipt .brand-mark svg { display: block; margin: 0 auto; }
.print-receipt.p58 { width: 58mm; }
.print-receipt.p80 { width: 80mm; font-size: 9pt; }
.print-receipt .b { font-weight: var(--weight-bold); }
a.btn { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cartbar-open:hover { background: var(--veil-on-ink); } }
.row-actions > .icon-btn, .row-actions > .btn-sq { flex: none; }
.btn-sq { min-width: var(--size-control); }
/* Cetak · Kirim WA · Bagikan (Revisi 15): dua tombol sama lebar + tombol ikon persegi, sejajar di semua ukuran */
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--size-control); gap: var(--space-2); }
.share-row > .btn { min-width: 0; }
.share-row > .icon-btn { width: var(--size-control); height: var(--size-control); border-radius: var(--r-md); place-self: center; }
.btn-sq .ph { font-size: var(--text-2xl); }

/* ===== Pembayaran lanjutan (M5) ===== */
.receipt-logo { display: block; max-width: 45%; max-height: 64px; margin: 0 auto var(--space-2); filter: grayscale(1) contrast(1.4); }
/* QR di bawah struk (M42) */
.receipt-qr { display: flex; justify-content: center; padding: var(--space-2) 0 var(--space-1); }
.receipt-qr svg { display: block; width: min(112px, 40%); height: auto; }
.print-receipt .receipt-qr { display: flex; justify-content: center; padding: 1mm 0; }
.print-receipt .receipt-qr svg { width: 26mm; height: 26mm; }
.print-receipt .receipt-logo { max-width: 40mm; max-height: 20mm; }
/* M144: kupon voucher, satu kupon per halaman/potongan */
.print-receipt .print-cut { break-after: page; border-top: 1px dashed var(--print-ink); margin: var(--space-2) 0; }
.share-text { margin: 0; padding: var(--space-4); border-radius: var(--r-md); background: var(--surface-2); font-family: var(--font); font-size: var(--text-base); line-height: var(--leading-body); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.qr-card img { width: 100%; height: auto; display: block; border-radius: var(--radius-2); image-rendering: pixelated; }
.bank-card { padding: var(--space-3-5) var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.qris-setup .qr-card { margin: 0 auto; } /* judul panel tetap rata kiri seperti panel lain */
.printer-card { padding: var(--space-3-5); display: flex; gap: var(--space-3); align-items: center; }
.logo-row { display: flex; gap: var(--space-3-5); align-items: center; }
.logo-prev { width: 72px; height: 72px; border-radius: var(--radius-4); object-fit: contain; background: var(--paper-white); box-shadow: var(--shadow-1); flex: none; }
.logo-prev.is-empty { display: grid; place-items: center; background: var(--surface); color: var(--text-3); }
.logo-prev.is-empty .ph { font-size: var(--text-4xl); }
.profile-hero { padding: var(--space-6) var(--space-4) var(--space-5); display: grid; justify-items: center; text-align: center; gap: var(--space-2); }
.logo-prev.profile-logo { width: 96px; height: 96px; border-radius: var(--radius-5); margin-bottom: var(--space-1); }
.profile-name { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); }
.profile-addr { display: flex; gap: var(--space-1-5); align-items: center; justify-content: center; color: var(--text-2); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.logo-prev.store-logo { width: 56px; height: 56px; border-radius: var(--radius-4); }
.bill-list { display: grid; gap: var(--space-2); }
.bill-row { display: grid; gap: var(--space-1); padding: var(--space-1-5) var(--space-1-5) var(--space-1-5) 0; }
.bill-top { display: flex; align-items: center; gap: var(--space-2); }
.bill-acts { flex-wrap: wrap; padding: 0 0 var(--space-1-5) var(--space-3); }
.bill-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-1) var(--space-2) var(--space-3); text-align: left; border-radius: var(--radius-3-5); }
.bill-main .ico { width: 36px; height: 36px; border-radius: var(--radius-2-5); display: grid; place-items: center; flex: none; }
.bill-main .t { font-weight: var(--weight-name); }
.bill-main .d { font-size: var(--text-sm); color: var(--text-3); }
.wrap .received { margin: 0; }
.method[aria-pressed="true"] { background: var(--strong-bg); color: var(--strong-fg); box-shadow: none; font-weight: var(--weight-active); }
.cart-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; padding-bottom: var(--space-1-5); }
.order-type { padding-bottom: var(--space-2-5); }
.cart-note { padding-bottom: var(--space-2-5); } /* M218: catatan pelanggan di keranjang */

/* riwayat transaksi */
.cell.sel-row { background: var(--primary-soft); }
.money-tabs { padding-bottom: var(--space-2); }
/* Kas masuk/keluar (Revisi 9): tombol netral, hanya ikon berwarna arah — warna penuh dipakai tombol utama (Tutup shift) */
.btn.kas-in .ph-bold { color: var(--success); }
.btn.kas-out .ph-bold { color: var(--danger); }
/* Catatan rilis (M56) */
.rel-head { display: grid; gap: var(--space-1-5); }
.rel-ver { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); }
.rel-ver span { color: var(--primary-ink); }
.rel-meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-3); }
.rel-sum { color: var(--text-2); }
.rel-sec h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-md); font-weight: var(--weight-heavy); margin-bottom: var(--space-2); }
.rel-sec .ico { width: 28px; height: 28px; border-radius: var(--radius-2); display: grid; place-items: center; }
.rel-sec ul { display: grid; gap: var(--space-1-5); padding-left: var(--space-5); color: var(--text-2); }
/* Pusat pemberitahuan (M58): titik di tab Lainnya (angka ada di lonceng judul Lainnya) */
.nav-ico { position: relative; display: inline-grid; place-items: center; }
/* M168: angka yang berjalan di tab hub layanan (meja terisi, unit dipakai, booking belum datang, nota berjalan) */
.nav-badge { position: absolute; top: calc(var(--space-1-5) * -1); left: calc(100% - var(--space-2)); min-width: var(--space-4-5); height: var(--space-4-5); padding: 0 var(--space-1); border-radius: var(--r-full); background: var(--primary); color: var(--on-primary); font-size: var(--text-xs); font-style: normal; font-weight: var(--weight-bold); line-height: var(--space-4-5); text-align: center; box-shadow: 0 0 0 2px var(--bg-elev); }
.nav-badge::after { content: attr(data-n); } /* angka lewat atribut: nama tombol tetap "Meja · 2" (aria-label), teks terlihat = label */
.nav-dot { position: absolute; top: calc(var(--space-0-5) * -1); right: calc(var(--space-1) * -1); width: 8px; height: 8px; border-radius: var(--r-full); background: var(--danger); box-shadow: 0 0 0 2px var(--bg-elev); }
.link-btn { color: var(--primary-ink); font-weight: var(--weight-heavy); text-decoration: underline; text-underline-offset: 2px; } /* Transaksi: Pemasukan | Pengeluaran (M47) */
.chip-sep { flex: none; width: 1px; align-self: stretch; margin: var(--space-1-5) var(--space-0-5); background: var(--line); }
@container app (min-width: 720px) and (max-width: 1099px) { .split { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-4); } }

/* PIN: label, galat, layar kunci */
.pin-label { margin-top: var(--space-5); font-weight: var(--weight-heavy); font-size: var(--text-lg); text-align: center; }
.pin-error { min-height: 20px; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--danger); text-align: center; }
.people { flex-wrap: wrap; }
.person .nm { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen.lock .pin { justify-content: center; }
.overlay .pin { padding-top: 0; }
.overlay .pin .key { height: 56px; width: 56px; }

/* laporan: grafik tren & metode (warna kategori tervalidasi, terang/gelap) */
.trend { position: relative; touch-action: pan-y; padding-top: var(--space-5); } /* ruang label angka maksimum: batang tidak menimpanya */
.trend .bars { gap: var(--space-0-5); height: 140px; border-bottom: 1px solid var(--line-strong); }
.trend .bars div { gap: 0; }
.trend .bars i { max-width: 28px; border-radius: var(--radius-1) var(--radius-1) 0 0; background: var(--primary); min-height: 0; }
.trend .bars div.on i { background: var(--primary-ink); }
.trend .axis { display: flex; gap: var(--space-0-5); margin-top: var(--space-1-5); }
.trend .axis small { flex: 1; text-align: center; font-size: var(--text-xs); color: var(--text-3); font-weight: var(--weight-label); white-space: nowrap; overflow: visible; }
.trend .ymax { position: absolute; top: 0; left: 0; font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-3); }
.trend .gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; }
.trend .tipbox { position: absolute; top: 0; transform: translateX(-50%); padding: var(--space-1-5) var(--space-2-5); border-radius: var(--radius-2-5); background: var(--strong-bg); color: var(--strong-fg); font-size: var(--text-sm); font-weight: var(--weight-bold); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-2); z-index: var(--z-above); }
.trend .tipbox small { display: block; font-size: var(--text-xs); font-weight: var(--weight-medium); opacity: .8; }
.delta.down { background: var(--accent-soft); color: var(--accent); }
.delta.flat { background: color-mix(in srgb, var(--bg) 18%, var(--ink)); color: var(--bg); }
.split-bar { gap: var(--space-0-5); }
.rank { display: grid; gap: var(--space-3); }
.rank .row { display: block; font-size: var(--text-base); font-weight: var(--weight-medium); }
.rank .row > div:first-child { display: flex; gap: var(--space-2); }
.rank .row b { margin-left: auto; font-weight: var(--weight-heavy); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.tbl th, .tbl td { padding: var(--space-2) var(--space-1); text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: var(--text-xs); color: var(--text-3); font-weight: var(--weight-label); }
.tbl .r { text-align: right; }

/* kode sambung server */
.code-input { font-size: var(--text-3xl) !important; letter-spacing: var(--tracking-pin); font-weight: var(--weight-heavy); text-align: center; }
/* M189: kode sambung cloud 10 huruf & angka → jarak huruf lebih rapat supaya muat di HP 360px */
.code-input-long { letter-spacing: var(--tracking-wide); }
/* M178: kode sambung Nyetruk Cloud + QR untuk HP karyawan. QR selalu di atas putih (kamera tidak bisa membaca QR terang di latar gelap). */
.pair-code { display: block; font-size: var(--text-3xl); letter-spacing: var(--tracking-wide); font-weight: var(--weight-display); white-space: nowrap; }
.pair-qr { display: flex; justify-content: center; }
.pair-qr svg { display: block; width: min(168px, 60%); height: auto; background: var(--white); padding: var(--space-2); border-radius: var(--radius-2); }
/* Tombol resmi Google dirender skrip Google ke dalam kotak ini */
.gis-btn { display: flex; justify-content: center; min-height: var(--size-hit); }

/* langkah bernomor (pindah HP) */
.steps { display: grid; gap: var(--space-2-5); padding-left: var(--space-5-5); font-size: var(--text-base); color: var(--text-2); line-height: var(--leading-loose); }
.steps b { color: var(--text); }

/* wizard pertama kali */
.ob-col { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* tur layar kasir */
.tour { position: fixed; inset: 0; z-index: var(--z-tour); }
.tour-ring { position: fixed; top: 0; left: 0; border-radius: var(--radius-5); box-shadow: 0 0 0 4px var(--primary), 0 0 0 9999px var(--scrim-strong); transition: transform var(--dur-move) var(--ease-out); pointer-events: none; }
.tour-scrim { position: fixed; inset: 0; background: var(--scrim-strong); }
.tour-card { position: fixed; left: var(--space-4); right: var(--space-4); bottom: auto; }
@media (prefers-reduced-motion: reduce) {
  .tour-ring { transition: none; }
  .tour-card { animation: none; }
  .overlay .sheet, .overlay .fullscreen.dialog, .scan-toast { animation: fade var(--dur-base) ease; }
  .overlay.closing .sheet, .overlay.closing .fullscreen.dialog { scale: none; transform: none; }
}
/* angka sangat besar (miliaran) di kartu utama laporan */
.hero-num .amt.long { font-size: var(--text-3xl); }

/* pusat bantuan: tutorial bergambar */
.tut { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.tut-step { padding: var(--space-3-5); display: grid; gap: var(--space-3-5); }
.tut-art { border-radius: var(--r-md); background: var(--surface-2); padding: var(--space-4); display: grid; place-items: center; min-height: 168px; }
.tut-text { display: flex; gap: var(--space-3); align-items: flex-start; }
.tut-text b { font-size: var(--text-md); font-weight: var(--weight-heavy); display: block; }
.tut-text p { font-size: var(--text-base); color: var(--text-2); margin-top: var(--space-0-5); }
/* Tutup hari (M103): kartu langkah bernomor; selesai/dilewati diringkas jadi satu baris */
.day-step { padding: var(--space-4); }
.day-step-h { display: flex; align-items: center; gap: var(--space-3); }
.day-step[data-state="done"] .tut-n { background: var(--success-soft); color: var(--success); }
.day-step[data-state="skip"] .tut-n { background: var(--surface-2); color: var(--text-3); }
.tut-n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: var(--weight-heavy); font-size: var(--text-base); flex: none; }
.art-phone { width: 172px; border-radius: var(--radius-5-5); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 2px var(--line-strong); padding: var(--space-2); display: grid; gap: var(--space-1-5); }
.art-desk { width: min(100%, 300px); border-radius: var(--radius-3); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong); overflow: hidden; }
.art-bar { display: flex; align-items: center; gap: var(--space-1-5); padding: var(--space-1-5) var(--space-2-5); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-3); background: var(--surface-2); border-radius: var(--radius-3-5); }
.art-desk .art-bar { border-radius: 0; }
.art-desk .art-bar > i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.art-desk .art-bar span { margin-left: var(--space-1-5); }
.art-url { flex: 1; }
.art-body { display: grid; gap: var(--space-2); padding: var(--space-2) var(--space-1-5) var(--space-2-5); }
.art-desk .art-body { padding: var(--space-3); }
.art-line { display: block; height: 8px; border-radius: var(--radius-1); background: var(--surface-3); }
.art-hi { display: flex; align-items: center; gap: var(--space-1-5); padding: var(--space-2) var(--space-2-5); border-radius: var(--radius-3); font-size: var(--text-xs); font-weight: var(--weight-heavy); color: var(--primary-ink); background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.art-hi .ph-bold { font-size: var(--text-md); }
.art-item, .art-file { display: flex; align-items: center; gap: var(--space-1-5); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-2); }
.art-item .ph, .art-item .ph-fill, .art-file .ph { font-size: var(--text-md); }
.art-app { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-heavy); padding: var(--space-1-5) 0; }
.art-logo { display: inline-block; width: 28px; height: 28px; border-radius: var(--radius-2); background: var(--primary); }
.art-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); padding: var(--space-1-5) 0; }
.art-icons span { aspect-ratio: 1; border-radius: var(--radius-2-5); background: var(--surface-3); display: grid; place-items: center; }
.art-icons span.on { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.art-cap { font-size: var(--text-xs); color: var(--text-2); font-weight: var(--weight-medium); text-align: center; }
.art-dock { display: flex; justify-content: space-around; align-items: center; padding-top: var(--space-4-5); }
.art-dock > span { width: 18px; height: 18px; border-radius: var(--radius-1); background: var(--surface-3); }
.art-row { display: flex; align-items: center; gap: var(--space-3-5); }
.art-printer { position: relative; width: 84px; height: 72px; border-radius: var(--radius-3-5); background: var(--surface); box-shadow: var(--shadow-2); display: grid; place-items: center; font-size: var(--text-6xl); color: var(--text-2); }
.art-led { position: absolute; right: var(--space-2-5); top: var(--space-2-5); width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.art-note { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-2); max-width: 140px; }
.art-h { font-size: var(--text-base); font-weight: var(--weight-heavy); }
.art-code { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-code); text-align: center; }
.art-code.sm { font-size: var(--text-lg); padding: var(--space-1-5); border-radius: var(--radius-2-5); background: var(--surface-2); }
.art-qr { width: 64px; height: 64px; margin: 0 auto; border-radius: var(--radius-1-5); background: repeating-conic-gradient(var(--text) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.art-term { display: block; font-family: var(--mono); font-size: var(--text-xs); line-height: var(--leading-mono); background: var(--terminal-bg); color: var(--terminal-fg); padding: var(--space-2-5); border-radius: var(--radius-2); }
.art-chips { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.art-chips span { font-size: var(--text-2xs); font-weight: var(--weight-heavy); padding: var(--space-1) var(--space-2); border-radius: var(--radius-2); background: var(--surface-2); color: var(--text-2); }
.art-chips span.on { background: var(--primary-soft); color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary); }
@container app (min-width: 720px) { .tut-step { grid-template-columns: 260px 1fr; align-items: center; } }

/* daftar panjang: muat bertahap */
.more { display: flex; justify-content: center; padding: var(--space-3) 0 var(--space-1); }

/* ========== Panel form berjudul (v2) ========== */
.panel { display: grid; gap: var(--space-3-5); }
.panel-h { display: flex; align-items: baseline; gap: var(--space-2); }
.panel-h b { font-size: var(--text-md); font-weight: var(--weight-heavy); }
.panel-h span { font-size: var(--text-sm); color: var(--text-3); font-weight: var(--weight-medium); }
.panel-h + * { margin-top: calc(var(--space-1) * -1); }
@container app (min-width: 720px) {
  .panel { padding: var(--space-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
  .panel .group { box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
  .panel .field .input { background: var(--bg); }
  .form-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
}
.form-cols { display: grid; gap: var(--space-4); }
.form-cols > div { display: grid; gap: var(--space-4); align-content: start; }
/* Pajak & biaya layanan (M40): contoh hitung di atas (HP) / menempel di kanan (tablet/desktop) */
.tax-grid { display: grid; gap: var(--space-4); grid-template-areas: 'calc' 'set'; }
.tax-grid > div { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.tg-calc { grid-area: calc; } .tg-set { grid-area: set; }
@container app (min-width: 720px) {
  .tax-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: 'set calc'; gap: var(--space-5); align-items: start; }
  .tg-calc { position: sticky; top: var(--space-4); }
}
.calc { display: grid; gap: var(--space-1); padding: var(--space-3-5) var(--space-4); border-radius: var(--radius-3); background: var(--surface-2); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-2); }
.calc-row b { color: var(--text); font-weight: var(--weight-bold); white-space: nowrap; }
.calc-row.muted b { color: var(--text-3); font-weight: var(--weight-medium); }
.calc-total { margin-top: var(--space-1-5); padding-top: var(--space-2-5); border-top: 1px solid var(--line); color: var(--text); font-weight: var(--weight-bold); }
.calc-total b { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
/* Struk & printer (M39): HP = printer → kertas → pratinjau → isi struk (pratinjau dekat pilihan kertas);
   tablet/desktop = pengaturan di kiri, pratinjau menempel di kanan */
.struk-grid { display: grid; gap: var(--space-4); grid-template-areas: 'printer' 'paper' 'preview' 'content'; }
.struk-grid > div { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.sg-printer { grid-area: printer; } .sg-paper { grid-area: paper; } .sg-content { grid-area: content; } .sg-preview { grid-area: preview; }
.struk-grid.only-printer { grid-template-areas: 'printer'; } /* M105: Printer (Pengaturan) & Desain struk (Toko) dipisah */
.struk-grid.only-design { grid-template-areas: 'paper' 'preview' 'content'; }
@container app (min-width: 720px) {
  .struk-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: 'printer preview' 'paper preview' 'content preview'; gap: var(--space-5); align-items: start; }
  .struk-grid.only-design { grid-template-areas: 'paper preview' 'content preview'; }
  .struk-grid.only-printer { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'printer'; }
  .sg-preview { position: sticky; top: var(--space-4); }
}
.photo-row { display: flex; gap: var(--space-3-5); align-items: flex-end; }
.photo-row .field { flex: 1; min-width: 0; }

/* ========== Irama jarak (v2) ========== */
/* blok setelah kepala layar: jarak seragam 12px, chip tidak menempel ke cari/tab */
.large-title + .wrap, .top + .wrap { padding-top: var(--space-1); }
.wrap + .chips { padding-top: var(--space-3-5); }
.chips + .chips { padding-top: 0; }
.chips + .wrap, .chips + .scroll { margin-top: var(--space-0-5); }
.wrap > .seg + * { margin-top: var(--space-3); }
/* tombol berikon: ikon & teks sejajar optis */
.btn .ph, .btn .ph-bold, .btn .ph-fill { font-size: var(--text-xl); line-height: var(--leading-none); flex: none; }
.btn.sm .ph, .btn.sm .ph-bold, .btn.sm .ph-fill { font-size: var(--text-lg); }
.pill-btn .ph, .pill-btn .ph-bold { font-size: var(--text-md); line-height: var(--leading-none); }
.pill-btn.qty-pill[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary); } /* M217: pilih baris kg/liter utuh (split bill) */
/* kartu utama laporan di mode gelap: bukan kartu putih menyilaukan, tetap menonjol */
:root[data-theme="dark"] .hero-num { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
:root[data-theme="dark"] .hero-num .lbl, :root[data-theme="dark"] .hero-num .target { color: var(--text-3); }
:root[data-theme="dark"] .hero-num .target .meter { background: var(--surface-3); }
:root[data-theme="dark"] .delta.flat { background: var(--surface-3); color: var(--text); }

/* atribusi pembuat */
.credit { text-align: center; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-3); padding: var(--space-6) var(--space-4) var(--space-2); }
.credit a { color: var(--text-2); font-weight: var(--weight-heavy); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .credit a:hover { color: var(--primary-ink); text-decoration-color: currentColor; } }

/* ========== Komponen kecil (pengganti inline style, M14) ========== */
.icon-tile { width: 44px; height: 44px; border-radius: var(--radius-3-5); display: grid; place-items: center; font-size: var(--text-2xl); flex: none; }
.avatar-sm { width: var(--space-8); height: var(--space-8); border-radius: var(--radius-full); font-size: var(--text-sm); }
.amount-xl { font-size: var(--text-5xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tight); }
.qr-card-sm { width: 200px; padding: var(--space-3); box-shadow: var(--shadow-1); }
.trend .gridline-top { top: var(--space-5); }
.trend .gridline-mid { top: calc(var(--space-5) + 70px); }
/* ilustrasi layar sambutan: tinggi batang contoh */
.hero-bars { height: 64px; margin-top: var(--space-2-5); }
.hero-bars > div:nth-child(1) i { height: 40%; }
.hero-bars > div:nth-child(2) i { height: 62%; }
.hero-bars > div:nth-child(3) i { height: 90%; }
.hero-bars > div:nth-child(4) i { height: 55%; }
.hero-bars > div:nth-child(5) i { height: 75%; }

.icon-btn.ink { background: var(--strong-bg); color: var(--strong-fg); }
.stepper.tall, .stepper.tall .step-btn { height: var(--size-control); }
/* Kotak jumlah kecil (QtyInput) */
.qty-box { flex: none; width: var(--size-qty); }
.qty-box input { text-align: center; padding-left: 0; padding-right: 0; font-weight: var(--weight-label); } /* angka proporsional: angka tabular font ini (1 berkait) janggal untuk satu angka */

/* kalimat ringkasan promo (M30): dibaca pemilik sebelum menyimpan */
.promo-sentence { margin: 0; padding: var(--space-3-5) var(--space-4); border-radius: var(--r-md); background: var(--strong-bg); color: var(--strong-fg); font-size: var(--text-md); font-weight: var(--weight-medium); text-wrap: pretty; }

/* promo di keranjang (M30) */
.promo-row { align-items: center; }
.promo-row .grow { display: inline-flex; align-items: center; gap: var(--space-1-5); }
.free-line .pr { color: var(--success); font-weight: var(--weight-active); }
.free-qty { flex: none; min-width: var(--space-10); text-align: center; font-weight: var(--weight-label); color: var(--text-2); }

/* tarik untuk muat ulang (M31): isi ikut tertarik ke bawah, ikon muncul dari atas di celah yang terbuka.
   --ptr (px tarikan) & --ptr-turn (putaran ikon) diisi ui/pull-refresh.js; data-ptr hanya ada saat ditarik/memuat. */
.ptr { position: sticky; top: 0; height: 0; z-index: var(--z-sticky); display: flex; justify-content: center; pointer-events: none; }
.ptr-dot { width: var(--space-10); height: var(--space-10); border-radius: var(--r-full); display: grid; place-items: center; background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); font-size: var(--text-lg);
  opacity: 0; transform: translateY(calc(var(--ptr, 0px) / 2 - var(--space-10) / 2)) rotate(var(--ptr-turn, 0deg)); }
.scroll[data-ptr] .ptr-dot { opacity: 1; }
.scroll[data-ptr] > :not(.ptr) { transform: translateY(var(--ptr, 0px)); }
.scroll[data-ptr="on"] > :not(.ptr), .scroll[data-ptr="on"] .ptr-dot { transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.scroll.ptr-ready .ptr-dot { color: var(--primary); }
.ptr-dot.spin i { animation: ptr-spin var(--dur-spin) linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scroll[data-ptr="on"] > :not(.ptr), .scroll[data-ptr="on"] .ptr-dot { transition: none; } .ptr-dot.spin i { animation: none; } .ptr-dot.spin { opacity: .7; } }

/* M143: Atur fitur per section (kanvas "Nyetruk – Atur fitur") — kartu section berikon, saklar induk, turunan bertanda Gratis/Pro */
.fitur-cols { display: grid; gap: var(--space-3); align-items: start; }
.fitur-cols > .stack { gap: var(--space-3); }
@container app (min-width: 720px) { .fitur-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); } .fitur-cols > .stack { gap: var(--space-4); } }
.fitur-head { align-items: center; }
.fitur-head .fitur-ico { width: var(--space-10); height: var(--space-10); border-radius: var(--r-md); }
.fitur-head .t { font-size: var(--text-md); font-weight: var(--weight-bold); }
.fitur-name { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.fitur-status { display: block; margin-top: var(--space-0-5); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-3); }
.fitur-status.on { color: var(--success); }
.fitur-count { flex: none; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-3); }
.fitur-kids > .cell { border-top: 1px solid var(--line); }
.fitur-kids > .cell:first-child { border-top: 0; }
/* M173 (desain Pixelz 9 Nov): kepala fitur utama = kartu terangkat di atas daftar sub fitur; isian turunan = kotak abu menjorok */
.fitur-card.has-kids > .fitur-head { position: relative; z-index: var(--z-above); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-raise); }
.fitur-kids > .fitur-val { min-height: auto; margin: 0 var(--space-4) var(--space-3-5); padding: var(--space-3-5) var(--space-4); width: auto; border-top: 0; border-radius: var(--r-md); background: var(--surface-2); }
.fitur-val .t { font-weight: var(--weight-bold); }
.fitur-val .val { padding: var(--space-0-5) var(--space-2); border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.fitur-contains { margin: 0; padding: 0 var(--space-4) var(--space-3-5) calc(var(--space-4) + var(--space-10) + var(--space-3-5)); font-size: var(--text-sm); line-height: var(--leading-desc); color: var(--text-3); }
.fitur-note { margin: 0; padding: var(--space-2-5) var(--space-4) var(--space-3-5); border-top: 1px solid var(--line); font-size: var(--text-xs); line-height: var(--leading-desc); color: var(--text-3); }

/* ---------- Meja & resto (M139): tab Kasir | Meja, kotak meja per area, mode tambah pesanan meja ---------- */
.kasir-tabs { padding-bottom: var(--space-2); }
.kasir-tabs .seg button { white-space: nowrap; overflow: hidden; }
@container app (max-width: 399px) { .kasir-tabs .seg:has(> button:nth-child(3)) .ph { display: none; } }
.meja-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2-5); padding: var(--space-0-5) var(--space-4) var(--space-4); }
.meja-tile {
  position: relative; aspect-ratio: 1; min-height: 96px; min-width: 0;
  padding: var(--space-3); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--space-1); text-align: left; overflow: hidden;
}
.mt-top { display: flex; align-items: flex-start; gap: var(--space-1); min-width: 0; }
.mt-name { flex: 1; min-width: 0; font-size: var(--text-md); font-weight: var(--weight-heavy); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.mt-flag { flex: none; display: inline-flex; font-size: var(--text-lg); line-height: var(--leading-none); color: var(--text-2); }
.mt-foot { margin-top: auto; display: grid; gap: var(--space-0-5); min-width: 0; }
.mt-total { font-size: var(--text-base); font-weight: var(--weight-heavy); overflow-wrap: anywhere; }
.mt-st { font-size: var(--text-xs); font-weight: var(--weight-label); color: var(--text-2); }
.meja-tile.is-kosong .mt-st { color: var(--text-3); }
.meja-tile.is-terisi { background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); }
.meja-tile.is-tagih { background: var(--info-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.meja-tile.is-tagih .mt-flag { color: var(--info); }
.meja-tile.is-dipesan { box-shadow: inset 0 0 0 1.5px var(--info); } /* M220: meja ditahan reservasi */
.meja-tile.is-dipesan .mt-st, .meja-tile.is-dipesan .mt-flag { color: var(--info); }
.resv-strip { width: 100%; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-lg); background: var(--info-soft); color: var(--text); text-align: left; }
.resv-strip > .ph { font-size: var(--text-xl); color: var(--info); }
.resv-strip .grow { display: grid; gap: var(--space-0-5); min-width: 0; }
.resv-strip .grow span { font-size: var(--text-sm); color: var(--text-2); }
.meja-tile.is-over { box-shadow: inset 0 0 0 2px var(--danger); }
.meja-tile.is-over .mt-flag { color: var(--danger); }
@media (hover: hover) and (pointer: fine) { .meja-tile:hover { box-shadow: var(--shadow-2); } }
.meja-add-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2-5) var(--space-3); margin-bottom: var(--space-2); }
.meja-add-bar .ico { width: 36px; height: 36px; border-radius: var(--radius-2-5); display: grid; place-items: center; flex: none; background: var(--tb); color: var(--tf); }
.meja-add-bar .d { font-size: var(--text-sm); color: var(--text-3); }
.meja-acts { flex-wrap: wrap; }
.meja-item .d { overflow-wrap: anywhere; }
.pay-multi { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding-bottom: var(--space-3); }
/* ---------- Nota kerja (M141): hub daftar nota, detail, form, Jadikan nota kerja di keranjang ---------- */
/* R1 Booking (M158): jadwal hari — HP daftar per jam, tablet/desktop papan kolom per pekerja */
.bk-day { display: flex; align-items: center; gap: var(--space-2); }
.bk-day > b { text-align: center; font-size: var(--text-lg); font-weight: var(--weight-heavy); }
.bk-list { display: grid; gap: var(--space-2); }
.bk-row { display: grid; grid-template-columns: var(--bk-time-w) minmax(0, 1fr); gap: var(--space-2-5); align-items: start; }
.bk-time { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); padding-top: var(--space-3); }
.bk-card { display: grid; gap: var(--space-1); width: 100%; padding: var(--space-3) var(--space-3-5); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1), inset var(--space-1) 0 0 var(--info); text-align: left; min-width: 0; }
.bk-card.datang { box-shadow: var(--shadow-1), inset var(--space-1) 0 0 var(--success); }
.bk-card.selesai { box-shadow: var(--shadow-1), inset var(--space-1) 0 0 var(--line-strong); background: var(--surface-2); }
.bk-card.tidak { box-shadow: var(--shadow-1), inset var(--space-1) 0 0 var(--danger); background: var(--surface-2); }
.bk-card.tutup { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); } /* M218: jam pekerja ditutup */
.bk-card.tutup .t { display: inline-flex; align-items: center; gap: var(--space-1-5); font-weight: var(--weight-bold); }
.bk-card .t { font-weight: var(--weight-heavy); overflow-wrap: anywhere; }
.bk-top { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.bk-tags { display: flex; flex-wrap: wrap; gap: var(--space-1-5); }
.bk-busy { display: block; padding: var(--space-1) var(--space-3-5); color: var(--text-3); font-size: var(--text-sm); }
.bk-free { display: block; width: 100%; text-align: left; padding: var(--space-3) var(--space-3-5); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); font-weight: var(--weight-bold); }
.bk-wide { display: none; }
@container app (min-width: 720px) { .bk-hp { display: none; } .bk-wide { display: block; } }
.bk-board { display: grid; column-gap: var(--space-2); }
.bk-col-h { font-weight: var(--weight-heavy); text-align: center; padding: var(--space-2); overflow-wrap: anywhere; }
.bk-times .bk-time { display: block; padding-top: 0; }
.bk-col { position: relative; border-radius: var(--r-sm); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--bk-row-h)); }
.bk-place { position: absolute; left: 0; right: 0; }
.bk-place .bk-card { min-height: 100%; align-content: start; }
.bk-card.short { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.bk-off { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-weight: var(--weight-bold); background: var(--surface-2); border-radius: var(--r-sm); }
/* R2 Sewa per waktu (M163): papan unit & timer sesi */
.sw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@container app (min-width: 720px) { .sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container app (min-width: 1100px) { .sw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sw-card { display: grid; gap: var(--space-1); align-content: start; min-width: 0; padding: var(--space-3) var(--space-3-5); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1), inset 0 var(--space-1) 0 var(--info); text-align: left; }
.sw-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-width: 0; }
.sw-head .n { flex: 1 0 auto; max-width: 100%; font-weight: var(--weight-heavy); font-size: var(--text-lg); overflow-wrap: anywhere; } /* nama utuh; label status turun ke baris berikut bila sempit (M167) */
.sw-card .tm { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.sw-card .d { color: var(--text-3); font-size: var(--text-sm); }
.sw-card.hampir { background: var(--accent-soft); box-shadow: var(--shadow-1), inset 0 var(--space-1) 0 var(--accent); }
.sw-card.lewat { background: var(--danger-soft); box-shadow: var(--shadow-1), inset 0 var(--space-1) 0 var(--danger); }
.sw-card.bayar { background: var(--primary-soft); box-shadow: var(--shadow-1), inset 0 var(--space-1) 0 var(--primary); }
.sw-card.kosong { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sw-go { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--weight-bold); color: var(--text); }
.sw-timer { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-4); text-align: center; }
.sw-timer .d { color: var(--text-3); font-size: var(--text-sm); }
.sw-timer .big { font-size: var(--text-7xl); font-weight: var(--weight-display); line-height: var(--leading-none); }
.sw-timer.hampir { background: var(--accent-soft); }
.sw-timer.lewat { background: var(--danger-soft); }
.nota-sec { display: flex; align-items: center; gap: var(--space-2-5); padding-top: var(--space-4); }
.nota-sec > b { flex: 1; min-width: 0; font-size: var(--text-lg); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-snug); }
.nota-list { display: grid; gap: var(--space-2-5); padding-bottom: var(--space-4); }
@container app (min-width: 720px) { .nota-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.nota-card { display: grid; padding: 0; overflow: hidden; }
.nota-main { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); text-align: left; min-width: 0; }
.nota-top { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.nota-marker { flex: 1; min-width: 0; font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-snug); line-height: var(--leading-tight); overflow-wrap: anywhere; }
.nota-marker.big { font-size: var(--text-3xl); }
.nota-num { flex: none; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-3); }
.nota-main .d, .nota-hero .d { font-size: var(--text-sm); color: var(--text-2); overflow-wrap: anywhere; }
.nota-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5); padding-top: var(--space-1); }
.nota-due { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-2); }
.nota-due.late { color: var(--danger); }
/* tombol kedua di bawah detail nota: sejajar, kolom sama lebar (HP 360px tidak turun baris) */
.nota-foot-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); }
.nota-foot-acts > .btn { min-width: 0; }
.nota-acts { align-items: center; padding: var(--space-2) var(--space-3) var(--space-2-5) var(--space-4); border-top: 1px solid var(--line); }
.nota-acts .num { font-size: var(--text-md); font-weight: var(--weight-heavy); }
.nota-hero { display: grid; gap: var(--space-1); padding: var(--space-4); }
.nota-hero .lbl { font-size: var(--text-xs); font-weight: var(--weight-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-3); }
.nota-val { text-align: right; max-width: 60%; overflow-wrap: anywhere; }
.nota-link { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-2-5); background: var(--surface-2); font-family: var(--mono); font-size: var(--text-sm); overflow-wrap: anywhere; }
.nota-moves { display: flex; flex: none; gap: var(--space-2); }
.nota-moves .icon-btn { margin: 0; }
.nota-field { display: grid; gap: var(--space-0-5); text-align: left; min-width: 0; border-radius: var(--radius-2-5); }
.nota-field .d { overflow-wrap: anywhere; }
.nota-log .d { color: var(--text-3); }
.cart-nota { padding: var(--space-2) 0 var(--space-3); }


/* ---------- M183a: Bayar Pro (screens/bayar-pro.js) ---------- */
/* M193: harga normal yang dicoret (promo, kode promo, harga khusus) */
.harga-coret { text-decoration: line-through; color: var(--text-3); font-weight: var(--weight-medium); }
.pro-amount { display: grid; justify-items: center; gap: var(--space-1-5); text-align: center; padding: var(--space-4) var(--space-4) var(--space-3-5); }
.pro-amount .lbl { font-size: var(--text-base); font-weight: var(--weight-label); color: var(--text-3); }
.pro-amount .row { display: flex; align-items: center; gap: var(--space-2); }
.pro-amount .amt { font-size: var(--text-5xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.pro-paid { justify-items: center; text-align: center; padding: var(--space-6) var(--space-4); }
.pro-paid .ico { width: 56px; height: 56px; border-radius: var(--r-full); display: grid; place-items: center; font-size: var(--text-3xl); }

/* ---------- R29 sistem ikon E1 (spec-ux-r29 bagian 1) ---------- */
/* kategori → --k (pekat), --k-a (aksen pendamping), --k-s (pucat), --k-i (tinta di atas pucat) */
.k-jual { --k: var(--k-jual); --k-a: var(--k-jual-acc); --k-s: var(--k-jual-soft); --k-i: var(--k-jual-ink); }
.k-uang { --k: var(--k-uang); --k-a: var(--k-uang-acc); --k-s: var(--k-uang-soft); --k-i: var(--k-uang-ink); }
.k-barang { --k: var(--k-barang); --k-a: var(--k-barang-acc); --k-s: var(--k-barang-soft); --k-i: var(--k-barang-ink); }
.k-pel { --k: var(--k-pel); --k-a: var(--k-pel-acc); --k-s: var(--k-pel-soft); --k-i: var(--k-pel-ink); }
.k-tim { --k: var(--k-tim); --k-a: var(--k-tim-acc); --k-s: var(--k-tim-soft); --k-i: var(--k-tim-ink); }
.k-toko { --k: var(--k-toko); --k-a: var(--k-toko-acc); --k-s: var(--k-toko-soft); --k-i: var(--k-toko-ink); }
.k-ok { --k: var(--k-ok); --k-a: var(--k-on); }
.k-err { --k: var(--k-err); --k-a: var(--k-on); }
.k-warn { --k: var(--k-warn); --k-a: var(--k-on); }
.k-info { --k: var(--k-info); --k-a: var(--k-on); }
/* komposisi: ikon utama + pendamping ber-celah yang mengikuti bentuk pendamping (glyph sama digambar 2x, belakang = garis warna latar) */
.e1 { --e1-tile: var(--e1-lg); --e1-main: var(--e1-lg-m); --e1-sub: var(--e1-lg-s); --e1-ko: var(--e1-lg-k); --e1-bg: var(--k); --e1-fg: var(--k-on); --e1-sub-fg: var(--k-a);
  width: var(--e1-tile); height: var(--e1-tile); border-radius: calc(var(--e1-tile) / 3); background: var(--e1-bg); display: grid; place-items: center; flex: none; }
.e1.md { --e1-tile: var(--e1-md); --e1-main: var(--e1-md-m); --e1-sub: var(--e1-md-s); --e1-ko: var(--e1-md-k); }
.e1.xl { --e1-tile: var(--e1-xl); --e1-main: var(--e1-xl-m); --e1-sub: var(--e1-xl-s); --e1-ko: var(--e1-xl-k); border-radius: var(--r-full); }
.e1.act { --e1-tile: var(--e1-act); --e1-main: var(--e1-act-m); --e1-sub: var(--e1-act-s); --e1-ko: var(--e1-act-k); --e1-bg: var(--k-s); --e1-fg: var(--k-i); }
.e1.act.v-in { --e1-sub-fg: var(--verb-in); } .e1.act.v-out { --e1-sub-fg: var(--verb-out); } .e1.act.v-do { --e1-sub-fg: var(--verb-do); }
.e1-c { position: relative; display: block; width: calc(var(--e1-main) + var(--e1-sub) * .37); height: calc(var(--e1-main) + var(--e1-sub) * .26); }
.e1-c.solo { width: var(--e1-main); height: var(--e1-main); }
.e1-m { position: absolute; left: 0; top: 0; font-size: var(--e1-main); line-height: var(--leading-none); color: var(--e1-fg); }
.e1-s { position: absolute; right: 0; bottom: 0; width: var(--e1-sub); height: var(--e1-sub); }
.e1-s i { position: absolute; inset: 0; font-size: var(--e1-sub); line-height: var(--leading-none); }
.e1-s .ko { color: var(--e1-bg); -webkit-text-stroke: var(--e1-ko) var(--e1-bg); }
.e1-s .fr { color: var(--e1-sub-fg); }
/* L3 menu dalam hub: ubin pekat mini, satu ikon putih */
.mico { width: 30px; height: 30px; border-radius: var(--radius-2-5); background: var(--k); color: var(--k-on); display: grid; place-items: center; flex: none; font-size: var(--text-lg); }
.cell .iico { color: var(--text-3); font-size: var(--text-xl); flex: none; width: 30px; display: grid; place-items: center; }
.cell.has-mico { min-height: 56px; padding-top: var(--space-2-5); padding-bottom: var(--space-2-5); }
/* L6a layar kosong: lingkaran abu, satu ikon fill lembut, tanpa garis */
.empty .empty-ico { width: 76px; height: 76px; padding-bottom: 0; border-radius: var(--r-full); background: var(--empty-bg); box-shadow: none; color: var(--empty-fg); -webkit-mask: none; mask: none; }
:root[data-theme="dark"] .empty .empty-ico { background: var(--empty-bg); }
.empty .empty-ico .ph-fill { font-size: var(--text-7xl); }
/* Cell item/aksi yang bisa diketuk tanpa chevron: ubin pucat kategori */
.sico { width: 36px; height: 36px; border-radius: var(--radius-2-5); background: var(--k-s); color: var(--k-i); display: grid; place-items: center; flex: none; font-size: var(--text-xl); }
.dev-icons { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.dev-ico { display: grid; justify-items: center; gap: var(--space-1); width: 72px; text-align: center; font-size: var(--text-xs); font-weight: var(--weight-bold); }
.sico.lg { width: 44px; height: 44px; border-radius: var(--radius-3); font-size: var(--text-2xl); }
.rule-example .sico { width: 32px; height: 32px; font-size: var(--text-lg); }
.rel-sec .sico { width: 28px; height: 28px; border-radius: var(--radius-2); font-size: var(--text-md); }
.cell.add-row .sico { background: var(--primary-soft); color: var(--primary-ink); }
.home-tile .add-ico { width: 42px; height: 42px; border-radius: var(--radius-3); display: grid; place-items: center; font-size: var(--text-lg); background: var(--surface-2); }
.success-ico { display: grid; place-items: center; margin: 0 auto var(--space-3); animation: pop var(--dur-slow) var(--ease-out); }
.confirm-ico { display: grid; place-items: center; padding-top: var(--space-4); }
.confirm-ico + .sheet-head { justify-content: center; text-align: center; }
.confirm-ico ~ .sheet-body { text-align: center; }
/* R29 Lainnya: grid hub berkelompok */
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--space-2); }
.hub-tile { display: grid; justify-items: center; align-content: start; gap: var(--space-2); text-align: center; color: var(--text); padding: var(--space-1) 0; border-radius: var(--radius-4); }
.hub-tile .lbl { font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: var(--leading-tight); overflow-wrap: break-word; max-width: 100%; }
@media (hover: hover) and (pointer: fine) { .hub-tile:hover { background: var(--surface-2); } }
/* ---------- R29 kartu promo / voucher (tiket) / kampanye (spec-ux-r29 bagian 4) ---------- */
.offer-list { display: grid; gap: var(--space-2-5); }
.offer { position: relative; display: flex; align-items: stretch; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.offer-main { flex: 1; min-width: 0; display: flex; align-items: stretch; text-align: left; color: var(--text); }
.offer-val { order: -1; flex: none; width: 84px; display: grid; place-content: center; justify-items: center; gap: var(--space-0-5); background: var(--k-s); color: var(--k-i); padding: var(--space-2) var(--space-1); text-align: center; }
.offer-val b { font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); line-height: var(--leading-none); }
.offer-val small { font-size: var(--text-xs); font-weight: var(--weight-bold); }
.offer-body { flex: 1; min-width: 0; display: grid; align-content: center; gap: var(--space-1); padding: var(--space-3) var(--space-1) var(--space-3) var(--space-3-5); }
.offer-t { font-size: var(--text-md); font-weight: var(--weight-heavy); }
.offer-d { font-size: var(--text-sm); color: var(--text-3); }
.offer-meta { display: flex; flex-wrap: wrap; gap: var(--space-1-5); align-items: center; }
.offer-end { flex: none; display: flex; align-items: center; padding: 0 var(--space-3-5) 0 var(--space-1); }
.offer-code { justify-self: start; font-family: var(--mono); font-size: var(--text-sm); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-wide); padding: var(--space-0-5) var(--space-2); border-radius: var(--radius-2); background: var(--bg); outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; }
.offer-bar { height: 6px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.offer-bar i { display: block; height: 100%; background: var(--k); border-radius: var(--r-full); }
/* voucher = tiket: nilai di kanan, garis putus-putus + dua takik */
.offer.ticket .offer-val { order: 1; background: transparent; border-left: 2px dashed var(--line-strong); }
.offer-notch { position: absolute; width: 18px; height: 18px; border-radius: var(--r-full); background: var(--bg); pointer-events: none; }
.offer-notch.t { top: -9px; } .offer-notch.b { bottom: -9px; }
.offer.ticket .offer-end { order: 2; }
.offer.ticket { overflow: visible; }
.offer.ticket .offer-main { position: relative; }
.camp-card { position: relative; display: flex; align-items: flex-start; border-radius: var(--r-xl); background: var(--k-jual-soft); color: var(--k-jual-ink); overflow: hidden; box-shadow: var(--shadow-1); }
.camp-main { flex: 1; min-width: 0; display: grid; gap: var(--space-1); text-align: left; color: inherit; padding: var(--space-4); position: relative; }
.camp-art { position: absolute; right: -6px; top: -6px; font-size: var(--text-9xl); opacity: .18; }
.camp-t { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
.camp-d { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.camp-line { height: 8px; margin-top: var(--space-2-5); border-radius: var(--r-full); background: var(--surface); overflow: hidden; }
.camp-line i { display: block; height: 100%; background: var(--k-jual-ink); border-radius: var(--r-full); }
.camp-chips { display: flex; flex-wrap: wrap; gap: var(--space-1-5); margin-top: var(--space-1-5); }
.camp-chips span { background: var(--surface); border-radius: var(--r-full); padding: var(--space-0-5) var(--space-2-5); font-size: var(--text-xs); font-weight: var(--weight-heavy); }
.camp-end { position: relative; padding: var(--space-4) var(--space-4) 0 0; }
.offer.ticket .offer-notch { right: 75px; }
.dev-ico small { font-size: var(--text-xs); }
/* R30 Akun saya */
.akun-hero { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-3) 0 var(--space-1); text-align: center; }
.akun-av { width: 64px; height: 64px; font-size: var(--text-xl); margin-bottom: var(--space-1-5); }
.akun-nm { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
/* R33a: kartu Kinerja (Akun saya) — ringkasan bulan ini, tombol Detail di pojok kanan atas */
.kin-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: var(--space-4); color: var(--kin-fg);
  background: radial-gradient(120% 90% at 100% 0%, var(--kin-glow), transparent 55%), var(--kin-bg); box-shadow: var(--kin-shadow); }
.kin-top { position: relative; z-index: var(--z-raised); display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); font-size: var(--text-sm); }
.kin-top .grow { flex: 1; min-width: 0; }
.kin-detail { display: inline-flex; align-items: center; gap: var(--space-0-5); min-height: 36px; padding: 0 var(--space-2) 0 var(--space-3); flex: none;
  border: 0; border-radius: var(--r-full); background: var(--kin-chip); color: var(--kin-fg); font: inherit; font-weight: var(--weight-bold); cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out); }
.kin-detail:active { transform: scale(.97); }
.kin-big { position: relative; font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); margin-top: var(--space-1); }
.kin-big.is-empty { font-size: var(--text-lg); }
.kin-row { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.kin-row > div { background: var(--kin-tile); border-radius: var(--r-md); padding: var(--space-2) var(--space-2-5); min-width: 0; }
.kin-row b { display: block; font-size: var(--text-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kin-row span { font-size: var(--text-xs); }
.kin-bar { position: relative; margin-top: var(--space-3); height: 8px; border-radius: var(--r-full); background: var(--kin-track); overflow: hidden; }
.kin-bar > i { display: block; height: 100%; background: var(--kin-fg); border-radius: inherit; }
.kin-foot { position: relative; margin-top: var(--space-2); font-size: var(--text-sm); }
/* R33a: kepala hub Toko — nama toko + status paket, jumlah cabang */
.toko-head { display: grid; gap: var(--space-1); padding: var(--space-3) 0 var(--space-1); }
.toko-head b { font-size: var(--text-xl); font-weight: var(--weight-heavy); }
/* R30 Mode absen layar penuh */
.absen-mode { background: var(--bg); }
.absen-mode-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); padding: calc(var(--safe-t) + var(--space-3)) var(--space-4) var(--space-2); } /* nama toko di tengah layar (R32) */
.absen-mode-top > :first-child { justify-self: start; }
.absen-mode-end { justify-self: end; }
.absen-mode-sp { width: var(--size-hit); height: var(--size-hit); flex: none; }
.absen-mode-store { text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-md); font-weight: var(--weight-heavy); color: var(--text-2); }
.absen-clock { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-6) 0 var(--space-4); text-align: center; }
.absen-time { font-size: var(--text-7xl); font-weight: var(--weight-display); letter-spacing: var(--tracking-tightest); line-height: var(--leading-none); }
.absen-date { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-3); }
.absen-ask { text-align: center; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-2); }
/* Lainnya: kartu Absen (seperti kartu Laci) */
.absen-panel .absen-acts { display: flex; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3-5) calc(var(--space-4) + var(--size-cell-ico) + var(--space-3-5)); }
.me-row { display: flex; align-items: center; gap: var(--space-2); padding-right: var(--space-4); cursor: pointer; } /* pola baris Versi app (R32): [kartu] [tombol] [chevron] */
.me-row > .cell { flex: 1; min-width: 0; padding-right: 0; }
.me-row > .chev { color: var(--text-3); font-size: var(--text-lg); }
/* R30: pita berjalan berulang — salinan kedua di belakang teks (jarak = GAP di ui/marquee.js) */
.marquee.is-moving .marquee-one, .marquee.is-moving .marquee-copy { display: inline-block; }
.marquee.is-moving .marquee-copy { padding-left: var(--space-12); }
/* Mode absen: tiap orang satu kartu (lebih lega, jelas diketuk) */
.absen-mode .absen-list { display: grid; gap: var(--space-2); background: transparent; box-shadow: none; overflow: visible; }
.absen-mode .absen-list > .cell { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--btn2-shadow), inset 0 0 0 1px var(--iconbtn-ring); }
.absen-mode .absen-list > .cell + .cell { box-shadow: var(--btn2-shadow), inset 0 0 0 1px var(--iconbtn-ring); }
/* ---------- R3 M211: Layar dapur (prototype R3a design/dapur.html) ---------- */
.kds-live { display: inline-flex; align-items: center; gap: var(--space-1-5); }
.kds-live::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.kds-live.off::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.kds-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.kds-tools .seg { flex: 1 1 220px; }
.kds-stats { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); padding: 0 var(--space-4) var(--space-2); font-size: var(--text-sm); color: var(--text-2); }
.kds-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.kds-stats .bad b { color: var(--danger); }
.kds-grid { display: grid; gap: var(--space-3); padding: var(--space-1) var(--space-4) var(--space-4); }
@container app (min-width: 720px) {
  .kds-tools, .kds-stats, .kds-grid { padding-inline: var(--space-6); }
  .kds-tools .seg { flex: 0 1 280px; }
  .kds-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; gap: var(--space-4); }
}
.tkt { position: relative; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; }
/* penanda warna: garis kecil di dalam kartu, tengah atas (tidak menyentuh tepi & lengkungan sudut); pesanan normal tanpa penanda */
.tkt.late::before, .tkt.over::before { content: ""; position: absolute; top: var(--space-2); left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: var(--r-full); }
.tkt.late::before { background: var(--yellow-400); }
.tkt.over::before { background: var(--danger); }
.tkt.over { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--danger); }
.tkt-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); }
.tkt-no { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 var(--space-2); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--text-xl); font-weight: var(--weight-heavy); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); flex: none; }
.tkt.over .tkt-no { background: var(--danger); color: var(--surface); }
.tkt-ready .tkt-no { background: var(--success-soft); color: var(--success); }
.tkt-ttl { min-width: 0; flex: 1; }
.tkt-ttl b { display: block; font-size: var(--text-md); font-weight: var(--weight-bold); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tkt-meta { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tkt-min { display: inline-flex; align-items: center; gap: var(--space-1); flex: none; height: 28px; padding: 0 var(--space-2-5); border-radius: var(--r-full); background: var(--surface-2); font-size: var(--text-sm); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; color: var(--text-2); }
.tkt.late .tkt-min { background: color-mix(in srgb, var(--yellow-400) 26%, transparent); color: var(--text); }
.tkt.over .tkt-min { background: var(--danger-soft); color: var(--danger); }
.tkt-items { display: grid; gap: var(--space-2); margin: 0 var(--space-2); padding-top: var(--space-2); border-top: 1px dashed var(--line-strong); }
.tkt-it { display: flex; gap: var(--space-3); align-items: flex-start; width: 100%; min-height: 56px; padding: var(--space-2); border: 0; border-radius: var(--r-md); background: none; text-align: left; font: inherit; color: inherit; }
.tkt-q { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--text); color: var(--surface); font-size: var(--text-md); font-weight: var(--weight-heavy); font-variant-numeric: tabular-nums; flex: none; }
.tkt-q.one { background: var(--surface-2); color: var(--text); }
.tkt-body { flex: 1; min-width: 0; padding-top: var(--space-0-5); }
.tkt-n { display: block; font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.tkt-o { display: block; margin-top: var(--space-0-5); font-size: var(--text-sm); color: var(--text-2); }
.tkt-note { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-1); padding: var(--space-0-5) var(--space-2); border-radius: var(--r-sm); background: color-mix(in srgb, var(--yellow-400) 26%, transparent); color: var(--text); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.tkt-ck { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); box-shadow: inset 0 0 0 2px var(--line-strong); color: transparent; flex: none; }
.tkt-it.done .tkt-q { background: var(--surface-2); color: var(--text-2); }
.tkt-it.done .tkt-n { text-decoration: line-through; color: var(--text-2); }
.tkt-it.done .tkt-ck { background: var(--success); box-shadow: none; color: var(--paper-white); }
.tkt-it.void .tkt-n { text-decoration: line-through; color: var(--text-2); }
.tkt-it.void .tkt-q { background: var(--surface-2); color: var(--text-2); }
.tkt-void { margin-left: auto; flex: none; padding: var(--space-0-5) var(--space-2); border-radius: var(--r-full); background: var(--danger-soft); color: var(--danger); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.tkt-foot { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-4); }
.tkt-prog { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-2); }
.tkt-bar { flex: 1; height: 4px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.tkt-bar > span { display: block; height: 100%; background: var(--success); border-radius: inherit; transform-origin: left; }
.tkt-ready { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.tkt-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2); }
.kds-snack { position: absolute; left: 50%; bottom: calc(var(--cartbar-bottom) + var(--safe-b)); z-index: var(--z-sticky); transform: translateX(-50%); display: flex; align-items: center; gap: var(--space-4); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-radius: var(--r-lg); background: var(--strong-bg); color: var(--strong-fg); box-shadow: var(--shadow-3); font-weight: var(--weight-medium); white-space: nowrap; }
.kds-snack button { min-height: var(--size-hit); border: 0; padding: 0 var(--space-3); border-radius: var(--r-md); background: none; color: var(--primary); font: inherit; font-weight: var(--weight-bold); }
