/* ===== Zirin MK POS — tema bertema logo: oranye, hijau, cokelat ===== */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}

:root {
  --orange: #F58220;
  --orange-dark: #D96A0E;
  --orange-deep: #B85607;
  --orange-soft: #FDEBDA;
  --green: #7DC242;
  --green-dark: #5FAE3C;
  --green-soft: #EAF6E0;
  --blue: #2AAAE2;
  --blue-soft: #E4F5FC;
  --brown: #5A3A21;
  --brown-2: #7A5535;
  --brown-soft: #F0E7DC;
  --ink: #2E2419;
  --muted: #96836E;
  --line: #E9DFD2;
  --line-2: #F3ECE2;
  --paper: #F7F2EA;
  --card: #FFFFFF;
  --danger: #D64541;
  --danger-soft: #FBE9E8;
  --ok: #4E9B47;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 2px 10px rgba(90, 58, 33, .10);
  --shadow-lg: 0 12px 40px rgba(46, 36, 25, .22);
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: var(--orange-deep); text-decoration: none; }
::selection { background: var(--orange-soft); }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; }
.hide { display: none !important; }
.hide-desktop { display: none; }
.app-mobile .hide-desktop { display: flex; }

/* ====== tombol ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  background: var(--brown-soft); color: var(--brown); line-height: 1.1;
  transition: filter .12s, transform .05s; user-select: none; white-space: nowrap;
}
.btn:hover { filter: brightness(.96); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-p { background: var(--orange); color: #fff; }
.btn-p:hover { background: var(--orange-dark); filter: none; }
.btn-g { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-b { background: var(--brown); color: #fff; }
.btn-d { background: var(--danger); color: #fff; }
.btn-ok { background: var(--green-dark); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-ico { width: 34px; height: 34px; padding: 0; font-size: 16px; border-radius: 8px; }

/* ====== form ====== */
.field { margin-bottom: 12px; }
.field > label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.in, select.in, textarea.in {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.in:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.in.sm { padding: 6px 9px; font-size: 13px; }
.chk { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13.5px; }
.chk input { width: 16px; height: 16px; accent-color: var(--orange); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ====== kartu & panel ====== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.card-pad { padding: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 14.5px; font-weight: 800; color: var(--brown); }

/* ====== tabel ====== */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 10px 12px;
  border-bottom: 2px solid var(--line); background: #FCFAF6;
  position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:hover td { background: #FDFAF4; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ====== badge ====== */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
  border-radius: 99px; font-size: 11.5px; font-weight: 700;
}
.b-ok { background: var(--green-soft); color: var(--green-dark); }
.b-warn { background: var(--orange-soft); color: var(--orange-deep); }
.b-bad { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--blue-soft); color: #14739C; }
.b-mute { background: var(--brown-soft); color: var(--brown-2); }

/* ====== kerangka aplikasi ====== */
#app { height: 100%; }
.shell { display: flex; height: 100vh; height: 100dvh; }
.sidebar {
  width: 218px; flex: none; background: var(--brown); color: #F4E9DC;
  display: flex; flex-direction: column;
}
.side-brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-brand img { width: 42px; height: 42px; }
.side-brand .t1 { font-weight: 800; font-size: 15.5px; color: #fff; letter-spacing: .3px; }
.side-brand .t2 { font-size: 11px; color: #D9BE9F; letter-spacing: 1.2px; text-transform: uppercase; }
.side-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.side-nav .lbl {
  font-size: 10.5px; letter-spacing: 1.2px; color: #C7A87F; font-weight: 700;
  text-transform: uppercase; padding: 12px 12px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  color: #EAD9C3; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--orange); color: #fff; }
.nav-item.active svg { opacity: 1; }
.side-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #D9BE9F; }
.side-foot .who { color: #fff; font-weight: 700; font-size: 13px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: var(--card); border-bottom: 1px solid var(--line);
}
.topbar h2 { font-size: 17px; font-weight: 800; color: var(--brown); }
.topbar .sub { font-size: 12px; color: var(--muted); }
.page { flex: 1; overflow-y: auto; padding: 18px; }
.page::-webkit-scrollbar, .side-nav::-webkit-scrollbar { width: 9px; }
.page::-webkit-scrollbar-thumb, .side-nav::-webkit-scrollbar-thumb {
  background: #D8CBB9; border-radius: 9px;
}

/* bottom nav (mobile) */
.botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; background: #fff; border-top: 1px solid var(--line);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(46,36,25,.08);
}
.botnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 6px 0; color: var(--muted);
  font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.botnav button svg { width: 21px; height: 21px; }
.botnav button.active { color: var(--orange-deep); }
.mtop { display: none; }
.app-mobile .topbar { height: 52px; padding: 0 12px; }
.app-mobile .botnav { display: flex; }
.app-mobile .sidebar { display: none; }
.app-mobile .page { padding: 12px 12px 84px; }
.brand-top { display: none; align-items: center; gap: 8px; }
.app-mobile .brand-top { display: flex; }
.brand-top img { width: 34px; height: 34px; }
.brand-top .t1 { font-weight: 800; font-size: 15px; color: var(--brown); }

/* ====== login ====== */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; }
.login-hero {
  width: 44%; min-width: 380px; background: var(--brown); color: #F4E9DC;
  display: flex; flex-direction: column; justify-content: center; padding: 48px;
  position: relative; overflow: hidden;
}
.login-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px;
  border: 26px solid rgba(125,194,66,.25); border-radius: 50%;
}
.login-hero .logo-big { width: 108px; height: 108px; }
.login-hero h1 { font-size: 30px; font-weight: 800; color: #fff; margin-top: 22px; letter-spacing: .5px; }
.login-hero .tag { color: var(--orange); font-weight: 800; letter-spacing: 2px; font-size: 12.5px; text-transform: uppercase; margin-top: 6px; }
.login-hero p { margin-top: 14px; max-width: 340px; line-height: 1.65; color: #DCC6AC; }
.login-hero ul { margin-top: 22px; list-style: none; }
.login-hero li { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 13.5px; }
.login-hero li::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); flex: none;
}
.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-card .logo-m { width: 74px; height: 74px; }
.login-card h1 { font-size: 22px; font-weight: 800; color: var(--brown); margin-top: 14px; }
.login-card .sub { color: var(--muted); margin-top: 3px; margin-bottom: 22px; }
.login-err {
  background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 600;
  padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; display: none;
}

/* ====== dashboard ====== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; position: relative; overflow: hidden;
}
.stat .k { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 21px; font-weight: 800; color: var(--brown); margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat .ic {
  position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.stat .ic svg { width: 18px; height: 18px; }
.stat.orange .ic { background: var(--orange-soft); color: var(--orange-deep); }
.stat.green .ic { background: var(--green-soft); color: var(--green-dark); }
.stat.blue .ic { background: var(--blue-soft); color: #14739C; }
.stat.brown .ic { background: var(--brown-soft); color: var(--brown-2); }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 12px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 14px 6px 0; }
.chart-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars .bar .col {
  width: 100%; max-width: 46px; background: var(--orange); border-radius: 6px 6px 2px 2px;
  min-height: 3px; position: relative; transition: height .3s;
}
.chart-bars .bar .col:hover { background: var(--orange-dark); }
.chart-bars .bar .lb { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.chart-bars .bar .vl { font-size: 10.5px; color: var(--brown); font-weight: 800; }

.top-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.top-item:last-child { border-bottom: 0; }
.top-item .nm { flex: 1; font-weight: 600; font-size: 13px; }
.top-item .bar-mini { height: 5px; background: var(--line-2); border-radius: 4px; width: 100%; margin-top: 5px; overflow: hidden; }
.top-item .bar-mini i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border: 0; }

/* ====== POS ====== */
.pos-wrap { display: flex; gap: 14px; height: 100%; }
.pos-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pos-search { display: flex; gap: 8px; }
.pos-search .in { flex: 1; height: 44px; font-size: 14.5px; padding-left: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2396836E' stroke-width='2.4'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
  background-repeat: no-repeat; background-position: 12px center; }
.cat-bar { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--brown-2);
  padding: 6px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--brown); border-color: var(--brown); color: #fff; }
.prod-grid {
  flex: 1; overflow-y: auto; display: grid; gap: 9px; padding-bottom: 8px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); align-content: start;
}
.prod-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; cursor: pointer; position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .12s, transform .06s;
}
.prod-card:hover { border-color: var(--orange); }
.prod-card:active { transform: scale(.98); }
.prod-card .nm {
  font-weight: 700; font-size: 13px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 35px;
}
.prod-card .pr { font-size: 15.5px; font-weight: 800; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.prod-card .st { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prod-card.low { border-color: #EBB7A6; }
.prod-card .flag {
  position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800;
  background: var(--danger-soft); color: var(--danger); border-radius: 5px; padding: 2px 6px;
}
.pos-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

.pos-right {
  width: 372px; flex: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.pos-cart-head {
  padding: 12px 14px; border-bottom: 1px solid var(--line-2); display: flex;
  align-items: center; justify-content: space-between;
}
.pos-cart-head .t { font-weight: 800; color: var(--brown); font-size: 14.5px; }
.pos-cart-body { flex: 1; overflow-y: auto; padding: 6px 14px; }
.cart-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.cart-row:last-child { border: 0; }
.cart-row .nm { flex: 1; min-width: 0; }
.cart-row .nm .n { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-row .nm .p { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button {
  width: 27px; height: 27px; border: 0; background: var(--brown-soft); color: var(--brown);
  font-weight: 800; font-size: 15px; cursor: pointer; line-height: 1;
}
.stepper button:hover { background: var(--brown); color: #fff; }
.stepper .q {
  min-width: 40px; text-align: center; font-weight: 800; font-size: 13.5px;
  font-variant-numeric: tabular-nums; padding: 0 4px;
}
.cart-row .sub { width: 92px; text-align: right; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cart-row .rm { border: 0; background: none; color: #C9AFA0; font-size: 16px; cursor: pointer; padding: 4px; }
.cart-row .rm:hover { color: var(--danger); }
.cart-empty { text-align: center; color: var(--muted); padding: 46px 18px; }
.cart-empty .big { font-size: 40px; opacity: .35; }

.pos-cart-foot { border-top: 1px solid var(--line-2); padding: 12px 14px; }
.tot-line { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13.5px; }
.tot-line.grand { font-size: 19px; font-weight: 800; color: var(--brown); padding-top: 7px; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px; }
.pay-methods button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 4px;
  font-size: 12px; font-weight: 800; color: var(--brown-2); cursor: pointer;
}
.pay-methods button.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.pay-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.pay-quick button {
  border: 1.5px solid var(--line); background: #FAF7F2; border-radius: 8px; padding: 7px 2px;
  font-size: 12px; font-weight: 800; color: var(--brown); cursor: pointer; font-variant-numeric: tabular-nums;
}
.pay-quick button:hover { border-color: var(--orange); color: var(--orange-deep); }

/* ====== modal ====== */
.modal-wrap {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(46,36,25,.45); padding: 18px; animation: fadein .14s;
}
.modal {
  background: var(--card); border-radius: 14px; width: 100%; max-width: 460px;
  max-height: calc(100dvh - 36px); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: pop .16s;
}
.modal.wide { max-width: 720px; }
.modal.xw { max-width: 920px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2); flex: none;
}
.modal-head h3 { font-size: 15.5px; font-weight: 800; color: var(--brown); }
.modal-x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex: none; }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: .6; } }

/* sheet mobile */
.sheet-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(46,36,25,.45); animation: fadein .14s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; z-index: 91;
  border-radius: 18px 18px 0 0; max-height: 88dvh; display: flex; flex-direction: column;
  animation: up .2s; padding-bottom: env(safe-area-inset-bottom);
}
.sheet .grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line); margin: 9px auto 0; }
@keyframes up { from { transform: translateY(30%); opacity: .5; } }

/* ====== toast ====== */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--brown); color: #fff; padding: 11px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; gap: 9px; align-items: center; max-width: 380px; animation: slidein .18s;
}
.toast.err { background: var(--danger); }
.toast.ok::before { content: "✓"; color: var(--green); font-weight: 800; }
.toast.err::before { content: "!"; font-weight: 800; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }

/* ====== scanner kamera ====== */
.scan-wrap { position: fixed; inset: 0; z-index: 120; background: #14100B; display: flex; flex-direction: column; }
.scan-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; color: #fff; background: rgba(255,255,255,.04);
}
.scan-head .t { font-weight: 800; font-size: 15px; }
.scan-head .c { font-size: 13px; color: var(--green); font-weight: 700; }
.scan-view { flex: 1; position: relative; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
  position: absolute; left: 50%; top: 50%; width: 78%; max-width: 460px; aspect-ratio: 16/7;
  transform: translate(-50%, -50%); pointer-events: none;
}
.scan-frame::before, .scan-frame::after, .scan-frame i::before, .scan-frame i::after {
  content: ""; position: absolute; width: 34px; height: 34px;
  border: 4px solid var(--green); border-radius: 4px;
}
.scan-frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scan-frame::after { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scan-frame i::before { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scan-frame i::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.scan-line {
  position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scanmove 2.2s ease-in-out infinite;
}
@keyframes scanmove { 0%,100% { top: 22%; } 50% { top: 78%; } }
.scan-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 8px; justify-content: center; background: rgba(255,255,255,.04); }
.scan-foot .btn-g { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #E9DFD2; font-size: 13px; text-shadow: 0 1px 4px #000; }
.scan-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.scan-flash.go { animation: flash .28s; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }

/* ====== util lain ====== */
.seg { display: inline-flex; background: var(--brown-soft); border-radius: 9px; padding: 3px; gap: 3px; }
.seg button {
  border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-weight: 700;
  font-size: 13px; color: var(--brown-2); cursor: pointer;
}
.seg button.active { background: #fff; color: var(--brown); box-shadow: var(--shadow); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px 4px 2px; font-size: 13px; color: var(--muted); }
.kbd {
  display: inline-block; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 6px; font-size: 11px; font-weight: 700; color: var(--brown-2); background: #FBF8F3;
}
.pay-big {
  width: 100%; border: 0; border-radius: var(--radius); background: var(--orange); color: #fff;
  font-size: 16.5px; font-weight: 800; padding: 14px; cursor: pointer; letter-spacing: .3px;
}
.pay-big:hover { background: var(--orange-dark); }
.pay-big:disabled { background: #DECDBA; cursor: not-allowed; }
.paid-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.paid-input span { padding: 0 0 0 12px; font-weight: 800; color: var(--muted); }
.paid-input input {
  flex: 1; border: 0; outline: none; padding: 11px 12px; font-size: 17px; font-weight: 800;
  text-align: right; font-variant-numeric: tabular-nums; background: transparent; min-width: 0;
}
.change-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--green-soft); border: 1px solid #D3EBC4; border-radius: 10px;
  padding: 13px 16px; margin-top: 14px;
}
.change-banner .k { font-size: 13px; font-weight: 700; color: var(--green-dark); }
.change-banner .v { font-size: 26px; font-weight: 800; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .in { max-width: 280px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty {
  text-align: center; color: var(--muted); padding: 44px 18px; font-size: 13.5px;
}
.empty .ic { font-size: 34px; opacity: .3; margin-bottom: 6px; }
.spin {
  width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skip { color: #C9AFA0; text-decoration: line-through; }

/* dialog struk sukses */
.receipt-ok { text-align: center; padding: 8px 4px 2px; }
.receipt-ok .mark {
  width: 62px; height: 62px; margin: 0 auto; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800;
}
.receipt-ok h3 { margin-top: 12px; font-size: 18px; color: var(--brown); }
.receipt-ok .inv { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ===== gambar produk ===== */
.prod-card .pimg {
  height: 64px; border-radius: 7px; background: #FBF8F3;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prod-card .pimg img { width: 100%; height: 100%; object-fit: contain; }
.pthumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #FBF8F3; display: block; }
.qris-box {
  margin-top: 14px; background: #fff; border: 2px solid var(--green);
  border-radius: 12px; padding: 14px; text-align: center;
}
.qris-box .t { font-weight: 800; font-size: 12px; letter-spacing: 1px; color: var(--green-dark); }
.qris-box img { max-width: 210px; width: 100%; margin: 10px auto 6px; display: block; border-radius: 8px; }
.qris-box .amt { font-size: 24px; font-weight: 800; color: var(--green-dark); }
.qris-box .hint { margin: 6px 0 10px; }
.qris-box.done { border-color: var(--line); opacity: .55; }
.qris-box.done .js-qris-ok { display: none; }

/* responsif */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dash-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .topbar h2 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .toolbar .in { max-width: none; flex: 1 1 140px; }
}
.chart-scroll { overflow-x: auto; }
.chart-scroll .chart-bars { min-width: 560px; }
.pager { flex-wrap: wrap; }
@media (max-width: 900px) {
  .login-hero { display: none; }
  .pos-wrap { position: relative; display: block; }
  .pos-right {
    position: fixed; z-index: 55; left: 0; right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: auto; max-height: 66dvh; border-radius: 16px 16px 0 0;
    transform: translateY(calc(100% - 58px)); transition: transform .22s;
    box-shadow: 0 -8px 30px rgba(46,36,25,.18);
  }
  .pos-right.open { transform: translateY(0); }
  .pos-right .pos-cart-head { cursor: pointer; }
  .pos-cart-fab { display: flex; }
}
.pos-cart-fab { display: none; }
@media (min-width: 901px) {
  .mtop { display: none; }
}
