/* TOKO AYA - tampilan ceria untuk tablet (landscape). Font Fredoka (OFL). */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #1e2a44; --muted: #4d5a78; --line: #cfd9ee;
  --green: #17804a; --green-d: #0f5c34; --green-l: #d9f6e5;
  --orange: #b85300; --orange-d: #7f3900; --orange-l: #ffe5c7;
  --purple: #6b3fd1; --purple-d: #4a2796; --purple-l: #e9e0ff;
  --pink: #c21f64; --pink-d: #8a1546; --pink-l: #ffdcea;
  --blue: #1b6fd6; --blue-d: #114a96; --blue-l: #d8e9ff;
  --red: #c62828; --red-d: #8e1b1b; --red-l: #ffdede;
  --yellow: #ffd23f; --yellow-d: #d9a800; --yellow-l: #fff3c4;
  --shadow: 0 4px 0 rgba(30, 42, 68, .13);
  --r: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Fredoka', system-ui, 'Segoe UI', Roboto, sans-serif; font-weight: 500; color: var(--ink);
  background: linear-gradient(180deg, #bfe8ff 0%, #e6f6ff 45%, #fff4cf 100%) fixed;
  overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { user-select: text; -webkit-user-select: text; }
.hidden { display: none !important; }
b, strong, .b { font-weight: 700; }
svg { display: block; }

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
header.top {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #fff; flex: 0 0 auto;
  border-bottom: 4px solid #ffd23f; box-shadow: 0 3px 0 rgba(30, 42, 68, .08);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 260px; }
.brand .logo { width: 44px; height: 44px; flex: 0 0 auto; }
.brand .nm { font-size: 22px; font-weight: 700; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
nav.tabs { display: flex; gap: 8px; flex: 1 1 auto; justify-content: center; }
.tab {
  display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 9px 16px 8px; border-radius: 16px;
  font-weight: 700; font-size: 18px; color: #fff; background: var(--c); box-shadow: 0 5px 0 var(--cd); transform: translateY(0);
  transition: transform .08s, box-shadow .08s; min-height: 48px;
}
.tab svg { width: 24px; height: 24px; }
.tab:active, .tab.on { transform: translateY(3px); box-shadow: 0 2px 0 var(--cd); }
.tab:not(.on) { opacity: .82; }
.tab.on { outline: 4px solid #fff; outline-offset: -1px; box-shadow: 0 2px 0 var(--cd), 0 0 0 3px var(--cd); opacity: 1; }
.tab[data-t=kasir] { --c: var(--green); --cd: var(--green-d); }
.tab[data-t=barang] { --c: var(--orange); --cd: var(--orange-d); }
.tab[data-t=riwayat] { --c: var(--purple); --cd: var(--purple-d); }
.tab[data-t=laporan] { --c: var(--pink); --cd: var(--pink-d); }
.tab[data-t=atur] { --c: var(--blue); --cd: var(--blue-d); }
.hdr-r { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

main#main { flex: 1 1 auto; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; padding: 12px; overflow: hidden; display: flex; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* kartu & tombol */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; min-height: 0; display: flex; flex-direction: column; }
.card > h2, .card h2.t { margin: 0 0 10px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.card h2 svg { width: 24px; height: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 700;
  font-size: 18px; min-height: 52px; padding: 8px 18px; border-radius: 16px; color: #fff; background: var(--c, var(--blue));
  box-shadow: 0 5px 0 var(--cd, var(--blue-d)); transform: translateY(0); transition: transform .06s, box-shadow .06s; white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd, var(--blue-d)); }
.btn:disabled { filter: grayscale(.85) brightness(1.15); opacity: .6; cursor: not-allowed; box-shadow: 0 5px 0 #8c97b0; }
.btn.green { --c: var(--green); --cd: var(--green-d); }
.btn.orange { --c: var(--orange); --cd: var(--orange-d); }
.btn.purple { --c: var(--purple); --cd: var(--purple-d); }
.btn.pink { --c: var(--pink); --cd: var(--pink-d); }
.btn.red { --c: var(--red); --cd: var(--red-d); }
.btn.gray { --c: #5d6b8c; --cd: #3b4663; }
.btn.light { --c: #eef3ff; --cd: #b9c7e6; color: var(--ink); }
.btn.sm { min-height: 42px; font-size: 16px; padding: 5px 12px; border-radius: 13px; box-shadow: 0 4px 0 var(--cd, var(--blue-d)); }
.btn.sm svg { width: 20px; height: 20px; }
.btn.xl { min-height: 66px; font-size: 24px; }
.btn.icon { padding: 8px; min-width: 52px; }
.btn.sm.icon { min-width: 42px; padding: 5px; }
input.in, select.in, textarea.in {
  width: 100%; min-height: 52px; border: 3px solid var(--line); border-radius: 14px; padding: 8px 14px; font-size: 20px; background: #fff; outline: none;
}
input.in:focus, select.in:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
label.fld { display: block; font-size: 15px; color: var(--muted); font-weight: 700; margin: 0 0 4px 4px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--blue-l); color: var(--blue-d); }
.chip.green { background: var(--green-l); color: var(--green-d); }
.chip.red { background: var(--red-l); color: var(--red-d); }
.chip.orange { background: var(--orange-l); color: var(--orange-d); }
.chip.purple { background: var(--purple-l); color: var(--purple-d); }
.chip.gray { background: #e8ecf5; color: #404c68; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.sp { flex: 1 1 auto; }
.seg { display: flex; background: #e9eefb; border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 12px; min-height: 46px; font-weight: 700; font-size: 17px; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(30, 42, 68, .15); }

/* KASIR */
.kasir { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .92fr); gap: 12px; width: 100%; }
.kasir > .card { overflow: hidden; }
.cam {
  position: relative; background: #0d1530; border-radius: 18px; overflow: hidden; flex: 0 0 auto; height: clamp(120px, 27vh, 250px);
}
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-align: center; padding: 10px; font-size: 16px; }
.cam .reticle { position: absolute; left: 12%; right: 12%; top: 22%; bottom: 22%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, .22); }
.cam .reticle::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: #ff4f6b; border-radius: 2px; animation: scanl 1.6s ease-in-out infinite; }
@keyframes scanl { 0%, 100% { transform: translateY(-34px); } 50% { transform: translateY(34px); } }
.cam .ctl { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.cam .ctl .btn { min-height: 38px; min-width: 38px; padding: 4px 8px; box-shadow: 0 3px 0 var(--cd, #3b4663); font-size: 15px; opacity: .95; }
.cam .flash { position: absolute; inset: 0; background: #7dffb0; opacity: 0; pointer-events: none; }
.cam .flash.go { animation: flashg .35s ease-out; }
@keyframes flashg { from { opacity: .55; } to { opacity: 0; } }
.manual { display: flex; gap: 8px; margin: 8px 0; }
.manual input { min-height: 46px; font-size: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; align-content: start; padding: 2px 2px 6px; flex: 1 1 auto; min-height: 0; }
.ptile {
  border: 0; cursor: pointer; text-align: left; background: var(--tl, #eef3ff); border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 4px 0 var(--td, #b9c7e6); min-height: 78px; transition: transform .06s;
}
.ptile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--td, #b9c7e6); }
.ptile .pn { font-weight: 700; font-size: 15px; line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ptile .pp { font-size: 15px; color: var(--ink); }
.ptile .ps { font-size: 12px; color: var(--muted); font-weight: 700; }
.ptile.out { opacity: .55; filter: grayscale(.6); }
.pc0 { --tl: #d9f6e5; --td: #9ed8b8; } .pc1 { --tl: #ffe5c7; --td: #f0bd88; } .pc2 { --tl: #e9e0ff; --td: #c3b0f2; }
.pc3 { --tl: #ffdcea; --td: #efa9c5; } .pc4 { --tl: #d8e9ff; --td: #9fc3f2; } .pc5 { --tl: #fff3c4; --td: #e8d27a; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; background: var(--tl); color: var(--ink); flex: 0 0 auto; box-shadow: inset 0 -3px 0 var(--td); }
.cartlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; background: #f4f8ff; border-radius: 16px; padding: 8px 10px; align-items: center; }
.ci .nm { font-weight: 700; font-size: 17px; line-height: 1.1; }
.ci .pr { font-size: 14px; color: var(--muted); }
.ci .sub { font-weight: 700; font-size: 18px; text-align: right; }
.ci .qty { display: flex; align-items: center; gap: 6px; }
.ci .qty .n { min-width: 34px; text-align: center; font-weight: 700; font-size: 20px; }
.empty { margin: auto; text-align: center; color: var(--muted); padding: 10px; font-size: 17px; }
.empty .mascot { width: 110px; height: 110px; margin: 0 auto 6px; }
.paycol { gap: 8px; overflow-y: auto; }
.paycol #btnBayar { position: sticky; bottom: 0; z-index: 2; flex: 0 0 auto; }
.totalbox { background: var(--ink); color: #fff; border-radius: 18px; padding: 8px 14px; }
.totalbox .l { font-size: 14px; opacity: .85; }
.totalbox .v { font-size: 34px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.paidrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pbox { background: #f4f8ff; border-radius: 16px; padding: 6px 12px; }
.pbox .l { font-size: 13px; color: var(--muted); font-weight: 700; }
.pbox .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pbox.ok { background: var(--green-l); } .pbox.ok .v { color: var(--green-d); }
.pbox.bad { background: var(--red-l); } .pbox.bad .v { color: var(--red-d); }
.bills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bill {
  border: 0; cursor: pointer; border-radius: 12px; min-height: 44px; font-weight: 700; font-size: 17px; color: #fff; background: var(--c); box-shadow: 0 4px 0 var(--cd);
  position: relative; overflow: hidden;
}
.bill::before { content: ''; position: absolute; inset: 4px; border: 2px dashed rgba(255, 255, 255, .45); border-radius: 8px; }
.bill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cd); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key { border: 0; cursor: pointer; border-radius: 12px; min-height: 44px; font-weight: 700; font-size: 22px; background: #e9eefb; box-shadow: 0 4px 0 #b9c7e6; color: var(--ink); }
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9c7e6; }
.key.fn { background: var(--yellow-l); box-shadow: 0 4px 0 #e8d27a; }

/* daftar & tabel */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar .in { min-height: 48px; }
.list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.item { display: flex; align-items: center; gap: 12px; background: #f4f8ff; border-radius: 16px; padding: 8px 12px; }
.item .main { flex: 1 1 auto; min-width: 0; }
.item .nm { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { font-size: 14px; color: var(--muted); }
.item .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.item.click { cursor: pointer; }
.item.click:active { background: #e6efff; }
.item.void { opacity: .6; text-decoration: line-through; }
.item .acts { display: flex; gap: 6px; flex: 0 0 auto; }

/* barang: kamera + daftar */
.barang { display: grid; grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); gap: 12px; width: 100%; }
.barang > .card { overflow: hidden; }

/* laporan / atur */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-content: start; width: 100%; }
.stat { background: var(--tl); border-radius: 18px; padding: 10px 14px; box-shadow: 0 4px 0 var(--td); }
.stat .l { font-size: 14px; font-weight: 700; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bar { height: 22px; background: #e9eefb; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #ffb703, #fb8500); border-radius: 99px; transition: width .5s; }
.stars { display: flex; gap: 4px; color: #d3dae9; } .stars svg { width: 38px; height: 38px; } .stars .on { color: #ffb703; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px dashed #e1e8f6; }
.setrow:last-child { border-bottom: 0; }
.switch { position: relative; width: 62px; height: 36px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; background: #b9c4dd; border-radius: 99px; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); transition: left .15s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { left: 30px; }

/* dialog */
.modal-back { position: fixed; inset: 0; background: rgba(20, 28, 55, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 12px; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 26px; box-shadow: 0 8px 0 rgba(0, 0, 0, .18); width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; animation: pop .18s; overflow: hidden; }
.modal.wide { width: min(860px, 100%); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .mh { padding: 14px 18px 8px; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal .mb { padding: 6px 18px 12px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal .mf { padding: 10px 18px 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper input { text-align: center; font-weight: 700; font-size: 28px; min-height: 60px; max-width: 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 0; background: #eef3ff; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 3px 0 #b9c7e6; color: var(--ink); }
.chips button.on { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-d); }
.warn { background: var(--red-l); color: var(--red-d); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.good { background: var(--green-l); color: var(--green-d); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.note { background: var(--yellow-l); border-radius: 12px; padding: 8px 12px; font-size: 15px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 700; font-size: 18px; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); animation: pop .15s; max-width: 90vw; }
.toast.ok { background: var(--green); } .toast.err { background: var(--red); }

/* login & splash */
.fullscr { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #bfe8ff 0%, #e6f6ff 50%, #fff4cf 100%); padding: 12px; }
.splash { z-index: 100; flex-direction: column; text-align: center; gap: 6px; cursor: pointer; }
.splash .big { font-size: 56px; font-weight: 700; color: var(--blue-d); letter-spacing: 1px; line-height: 1; }
.splash .logo { width: 120px; height: 120px; }
.splash .tag { font-size: 22px; color: var(--ink); }
.splash .jti { margin-top: 10px; font-weight: 700; font-size: 18px; color: var(--pink); }
.splash .cs { font-size: 17px; color: var(--muted); }
.splash .hint { margin-top: 12px; font-size: 14px; color: var(--muted); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.loginbox { display: flex; gap: 28px; align-items: center; justify-content: center; width: 100%; max-width: 900px; }
.loginbox .left { text-align: center; flex: 0 1 340px; }
.loginbox .mascot { width: 190px; height: 190px; margin: 0 auto; }
.loginbox h1 { margin: 6px 0 2px; font-size: 34px; color: var(--blue-d); }
.pinbox { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 16px 18px; width: 330px; flex: 0 0 auto; }
.dots { display: flex; justify-content: center; gap: 14px; margin: 4px 0 12px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: #dbe3f5; box-shadow: inset 0 -3px 0 #b9c7e6; }
.dots i.on { background: var(--blue); box-shadow: inset 0 -3px 0 var(--blue-d); }
.pinbox .keys { gap: 8px; }
.pinbox .key { min-height: 56px; font-size: 26px; }
.pinbox .err { color: var(--red-d); font-weight: 700; text-align: center; min-height: 24px; margin-bottom: 4px; }
.pinbox .ttl { text-align: center; font-weight: 700; font-size: 20px; margin-bottom: 2px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* struk */
.rcpt { display: flex; gap: 22px; align-items: stretch; }
.stage { flex: 0 0 auto; width: 380px; display: flex; flex-direction: column; align-items: center; }
.paperwin { position: relative; width: 360px; height: min(52vh, 420px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #dfe8f7, #cdd9ef); border-radius: 14px 14px 0 0; }
.paperwin.done { justify-content: flex-start; overflow-y: auto; }
.paper {
  position: relative; font-family: 'DejaVu Sans Mono', 'Liberation Mono', 'Courier New', monospace; font-size: 14px; width: calc(32ch + 58px);
  margin: 0 auto; background: #fffdf2; padding: 8px 29px 10px; flex: 0 0 auto;
  box-shadow: 0 0 0 1px #e8e2cc, 0 4px 10px rgba(0, 0, 0, .12);
}
.paper::before, .paper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 20px; background: radial-gradient(circle at 10px 12px, #cfc7a8 4.5px, transparent 5px) 0 0 / 20px 24px repeat-y; }
.paper::before { left: 0; border-right: 1px dashed #d8d0b4; }
.paper::after { right: 0; border-left: 1px dashed #d8d0b4; }
.ln { font: inherit; line-height: 1.38; white-space: pre; color: #1b2340; min-height: 1.38em; animation: feed .16s ease-out; }
.ln.c { text-align: center; } .ln.r { text-align: right; }
.ln .dd { font-size: 2em; line-height: 1; font-weight: 700; }
.ln .bd { font-weight: 700; }
.ln .iv { background: #1b2340; color: #fffdf2; }
.ln.dm { color: transparent; background: radial-gradient(circle, #1b2340 .7px, transparent 1.05px) 0 0 / 1.8px 1.8px; -webkit-background-clip: text; background-clip: text; }
.ln.dm .iv { color: transparent; background: #1b2340; }
@keyframes feed { from { transform: translateY(18px); opacity: .1; } to { transform: translateY(0); opacity: 1; } }
.printer { width: 380px; height: 96px; margin-top: -2px; position: relative; z-index: 2; }
.rcpt .side { flex: 1 1 auto; min-width: 220px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.rcpt .side h3 { margin: 0; font-size: 28px; }
.rcpt .big { font-size: 40px; font-weight: 700; color: var(--green-d); font-variant-numeric: tabular-nums; }
.led { animation: ledb .5s infinite; } @keyframes ledb { 50% { opacity: .25; } }
canvas#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; width: 100%; height: 100%; }

@media (max-width: 1060px), (max-height: 660px) {
  header.top { padding: 6px 10px; gap: 8px; }
  .brand .logo { width: 36px; height: 36px; } .brand .nm { font-size: 18px; } .brand .sub { display: none; }
  .tab { font-size: 16px; padding: 7px 12px 6px; min-height: 42px; } .tab svg { width: 20px; height: 20px; }
  .btn { font-size: 16px; min-height: 46px; } .btn.sm { min-height: 38px; }
  .view { padding: 8px; } .kasir { gap: 8px; } .card { padding: 10px; }
  .totalbox .v { font-size: 28px; } .key, .bill { min-height: 38px; font-size: 18px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .rcpt { flex-direction: row; } .stage { width: 340px; } .paperwin { width: 330px; } .paper { font-size: 12.6px; } .printer { width: 340px; }
}
@media (max-height: 640px) {
  .paycol { gap: 6px; } .totalbox { padding: 6px 12px; } .totalbox .v { font-size: 24px; } .pbox { padding: 4px 10px; } .pbox .v { font-size: 20px; }
  .key, .bill { min-height: 34px; font-size: 16px; } .btn.xl { min-height: 52px; font-size: 21px; } .cam { height: clamp(100px, 24vh, 200px); }
}
@media (max-width: 760px) {
  .tab span { display: none; } .brand { flex-basis: auto; }
  .kasir, .barang { grid-template-columns: 1fr; overflow-y: auto; } .view { overflow-y: auto; }
  .loginbox { flex-direction: column; gap: 8px; } .loginbox .mascot { width: 110px; height: 110px; }
  .rcpt { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }
