/* riwariwi — hijau daun, lime, aksen kuning, latar doodle */
:root {
  /* nama lama dipertahankan agar komponen lama ikut berganti warna */
  --indigo: #2F6B3B;        /* hijau daun (utama) */
  --indigo-2: #3B7D47;
  --indigo-soft: #EAF4DF;
  --kunyit: #FFC857;        /* kuning aksen / tombol utama */
  --kunyit-soft: #FFF3D6;
  --besek: #C9E7A6;
  --besek-dark: #8DB86A;
  --besek-light: #EAF4DF;
  --daun: #2F7D45;
  --daun-soft: #E2EFE5;
  --lime: #9ACD5B;
  --red: #D9472F;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;
  --bg: #EEF2EA;
  --surface: #FFFFFF;
  --ink: #131A13;
  --muted: #6B7468;
  --line: #DDE4D6;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --tabbar: 64px;
  --doodle: url("/bg/doodle.svg");
  --doodle-head: url("/bg/doodle-head.svg");
  color-scheme: light;
}

/* Tema indigo (bisa dipilih di Akun) */
:root[data-theme="indigo"] {
  --indigo: #270091;
  --indigo-2: #3A16A8;
  --indigo-soft: #ECE6FA;
  --kunyit: #D6A942;
  --kunyit-soft: #FAF0D6;
  --besek: #F2DFA8;
  --besek-dark: #B8892E;
  --besek-light: #FAF0D6;
  --daun: #2F7D45;
  --lime: #F2DFA8;
  --bg: #F3F2F9;
  --ink: #17132B;
  --muted: #5F5A78;
  --line: #DEDBEC;
  --doodle: url("/bg/doodle-indigo.svg");
  --doodle-head: url("/bg/doodle-head-indigo.svg");
}
:root[data-theme="indigo"] .btn-primary:hover:not(:disabled) { background: #C49533; }
:root[data-theme="indigo"] .fnb-card small { color: #5A4520; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--doodle) 0 0 / 240px 240px repeat, var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kunyit); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.boot { min-height: 100vh; background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo); }

.shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 16px);
}

.page { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.page.has-bottom-bar { padding-bottom: 96px; }
.page-head { display: flex; align-items: flex-start; gap: 8px; padding-top: 4px; }
.page-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.icon-btn {
  border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line);
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 0.8125rem; }
.error { color: var(--danger); font-size: 0.875rem; }
.notice { background: var(--kunyit-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 0.9rem; }
.loading { color: var(--muted); padding: 24px 0; text-align: center; }
.empty { text-align: center; padding: 32px 8px; display: grid; gap: 10px; justify-items: center; }

.card { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.error-box { display: grid; gap: 10px; background: var(--danger-soft); box-shadow: none; }

/* Tombol */
.btn {
  border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--kunyit); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #F5B93C; }
.btn-ghost { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-small { min-height: 36px; padding: 6px 16px; background: var(--indigo-soft); color: var(--indigo); font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #E9B7B2; }
.link { background: none; border: 0; padding: 0; color: var(--indigo-2); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .field-label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.field em { font-style: normal; font-weight: 500; }
input, select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: #FAFBF8; border-radius: var(--radius-sm);
  padding: 11px 12px; min-height: 46px; outline: none;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo-2); background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .row { grid-template-columns: 1fr; } }

/* Masuk */
.login { min-height: 100vh; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.login-hero { margin: 12px auto 4px; width: 112px; }
.login-hero img { display: block; width: 112px; height: 112px; }
.woven { display: block; width: 100%; height: auto; }
.login-title { text-align: center; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--indigo); }
.login-lead { text-align: center; color: var(--muted); margin-bottom: 8px; }
.otp { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; font-weight: 700; }
.dev-note { background: var(--kunyit-soft); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.875rem; }

/* Beranda: header hijau ringkas, menempel di atas saat halaman digulir */
.home { padding-top: 0; }
.home-head {
  position: sticky; top: 0; z-index: 9;
  margin: 0 -16px; padding: calc(20px + env(safe-area-inset-top)) 16px 26px; color: #fff;
  background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo);
  border-radius: 0 0 28px 28px; display: grid; gap: 14px;
  box-shadow: 0 6px 16px rgba(47, 107, 59, 0.18);
}
.home-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zone-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; background: rgba(255, 255, 255, 0.12);
  color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 0.8125rem;
}
.zone-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-chip svg { color: var(--kunyit); flex: none; }
.zone-chip.is-empty { background: var(--kunyit); color: var(--ink); font-weight: 600; }
.zone-chip.is-empty svg { color: var(--ink); }
.home-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--kunyit); color: var(--indigo); display: grid; place-items: center; font-weight: 700; flex: none; }

.home-hello { display: grid; gap: 2px; padding: 2px 2px 0; }
.greet { color: var(--besek); font-size: 0.875rem; font-weight: 500; }
.home-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.sos { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: stretch; background: var(--red); border-radius: 14px; padding: 6px; color: #fff; }
.sos-label { display: grid; align-content: center; padding: 0 6px; line-height: 1.15; }
.sos-label b { font-size: 0.875rem; font-weight: 700; }
.sos-label small { font-size: 0.6875rem; color: #FFE0B2; font-weight: 600; }
.sos-btn { background: #fff; color: var(--ink); border-radius: 10px; padding: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; }
.sos-btn b { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.sos-emoji { font-size: 1.125rem; line-height: 1; }

.fnb-card { display: flex; align-items: center; gap: 10px; background: var(--lime); border-radius: 14px; padding: 8px 10px; color: var(--ink); }
.fnb-card .service-icon { background: var(--indigo); color: #fff; margin: 0; width: 36px; height: 36px; padding: 6px; }
.fnb-card strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; }
.fnb-card small { color: #2F4F2A; font-size: 0.75rem; }
.fnb-card .chev { margin-left: auto; color: var(--indigo); flex: none; }

.active-strip { display: grid; gap: 8px; }
.active-card {
  display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line);
}
.active-card strong { display: block; font-size: 0.95rem; }
.active-card small { color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--daun); flex: none; box-shadow: 0 0 0 0 rgba(47, 125, 69, 0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 125, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 125, 69, 0); } }

.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service {
  display: grid; gap: 3px; align-content: start; height: 100%; min-height: 112px; padding: 12px; position: relative;
  background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line);
}
.service:hover { box-shadow: inset 0 0 0 2px var(--indigo-2); }
.service-icon { color: var(--indigo); background: var(--indigo-soft); border-radius: 10px; padding: 7px; width: 38px; height: 38px; margin-bottom: 6px; }
.service-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.service-blurb { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.service-soon { position: absolute; top: 12px; right: 12px; font-size: 0.6875rem; font-weight: 700; background: var(--kunyit-soft); color: #7A5308; padding: 3px 8px; border-radius: 999px; }
.services li.wide { grid-column: span 2; }
.service-wide { min-height: 0; grid-template-columns: auto 1fr; column-gap: 12px; background: var(--kunyit-soft); box-shadow: none; }
.service-wide .service-icon { grid-row: span 2; background: var(--kunyit); margin: 0; }
.service-wide .service-name { align-self: end; }

/* Header hijau halaman layanan */
.green-head {
  position: sticky; top: 0; z-index: 9;
  margin: 0 -16px; padding: calc(12px + env(safe-area-inset-top)) 16px 16px; color: #fff; display: grid; gap: 14px;
  background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo); border-radius: 0 0 24px 24px;
}
.green-head .page-head { padding-top: 0; }
.green-head .icon-btn { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.green-head .page-sub { color: var(--besek); }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 0 14px; height: 48px; color: var(--muted); }
.search input { border: 0; background: transparent; padding: 0; min-height: 0; flex: 1; color: var(--ink); }
.search input:focus { background: transparent; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-title { font-size: 1.125rem; font-weight: 700; }
.section-link { font-size: 0.875rem; font-weight: 600; color: var(--indigo-2); }

/* Kartu warung geser */
.scroller { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.wcard { flex: none; width: 168px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; display: flex; flex-direction: column; }
.wcard.is-closed { opacity: 0.6; }
.wcard-photo { height: 104px; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; background-size: cover; background-position: center; }
.wcard-initial { font-size: 2.125rem; font-weight: 800; color: rgba(19, 26, 19, 0.28); line-height: 1; }
.wcard-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.wcard-body strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.rating b { color: var(--ink); }
.rating svg { color: var(--kunyit); }
.tint-0 { background-color: #C9E7A6; } .tint-1 { background-color: #FFE8A8; } .tint-2 { background-color: #D5E7D9; }
.tint-3 { background-color: #F2C9B8; } .tint-4 { background-color: #E1EAD3; }

/* Banner */
.banners { display: grid; gap: 8px; }
.banner { position: relative; min-height: 120px; border-radius: var(--radius-lg); overflow: hidden; background: var(--kunyit); color: var(--ink); display: flex; align-items: center; padding: 18px 20px; background-size: cover; background-position: center; }
.banner::after { content: ""; position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.banner > * { position: relative; z-index: 1; max-width: 230px; }
.banner small { display: block; font-size: 0.75rem; font-weight: 700; }
.banner strong { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.banner.has-image { color: #fff; }
.banner.has-image::after { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, rgba(19, 26, 19, 0.65), rgba(19, 26, 19, 0)); }

/* Baris menu / produk */
.mrow { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.mrow.is-out { opacity: 0.55; }
.mthumb { width: 68px; height: 68px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.375rem; font-weight: 800; color: rgba(19, 26, 19, 0.3); background-size: cover; background-position: center; }
.mbody { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mbody strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.mbody small { color: var(--muted); font-size: 0.75rem; }
.mprice { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.mprice b { color: var(--indigo); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; min-height: 38px; padding: 0 16px; font-weight: 600; font-size: 0.875rem; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--indigo); color: #fff; box-shadow: none; }

/* Halaman warung */
.vhead { display: flex; gap: 12px; align-items: center; }
.vphoto { width: 60px; height: 60px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: rgba(19, 26, 19, 0.3); background-size: cover; background-position: center; }
.vmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8125rem; color: var(--muted); }
.line-opts { display: block; color: var(--muted); font-size: 0.75rem; }

/* Detail menu */
.gallery { margin: 0 -16px; position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: none; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: rgba(19, 26, 19, 0.25); }
.gallery .icon-btn { position: absolute; left: 16px; top: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 14px; background: rgba(19, 26, 19, 0.6); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.dish-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.opt-group { display: grid; gap: 2px; }
.opt-group legend { float: left; font-weight: 700; padding: 0; margin-bottom: 6px; display: flex; justify-content: space-between; width: 100%; }
.opt-group legend small { font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--indigo); flex: none; }
.opt span { flex: 1; }
.opt small { color: var(--muted); font-size: 0.875rem; }
.opt.is-disabled { opacity: 0.45; cursor: not-allowed; }
.req-tag { font-size: 0.6875rem; font-weight: 700; color: #7A5308; background: var(--kunyit-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* Pilih wilayah */
.zone-group { display: grid; gap: 2px; }
.zone-group h2 { font-size: 0.875rem; font-weight: 700; color: var(--muted); margin: 6px 0 4px; }
.zone-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; margin-bottom: 6px; }
.zone-opt input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--indigo); flex: none; }
.zone-opt span { flex: 1; font-weight: 600; }
.zone-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); }

/* Vendor & menu */
.vendor-list, .menu, .order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vendor { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.vendor.is-closed { opacity: 0.6; }
.vendor-initial { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo); color: var(--besek); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; flex: none; }
.vendor-body { flex: 1; min-width: 0; }
.vendor-body small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); }
.badge-open { background: var(--daun-soft); color: var(--daun); }
.menu-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.menu-item strong { display: block; }
.price { display: block; margin-top: 2px; font-weight: 700; color: var(--indigo); }

.stepper { display: inline-flex; align-items: center; background: var(--indigo-soft); border-radius: 999px; flex: none; }
.stepper button { border: 0; background: none; width: 36px; height: 36px; font-size: 1.25rem; font-weight: 700; color: var(--indigo); cursor: pointer; }
.stepper button:disabled { opacity: 0.35; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px rgba(47, 107, 59, 0.06); z-index: 5;
}
.bottom-bar strong { display: block; font-size: 1.125rem; }
.bottom-bar small { color: var(--muted); }

/* Form pesanan */
.stop { border: 0; margin: 0; display: grid; gap: 12px; position: relative; min-width: 0; }
.stop legend { float: left; width: 100%; padding: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.stop-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.stop-dot.pickup { background: var(--kunyit); }
.stop-dot.dropoff { background: var(--indigo); }
.remove { position: absolute; right: 16px; top: 16px; color: var(--danger); font-size: 0.875rem; }
.add-stop { border-style: dashed; }
.loc-btn {
  display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--besek-dark); background: var(--besek-light);
  color: var(--ink); border-radius: var(--radius-sm); padding: 11px 12px; font-weight: 600; cursor: pointer; text-align: left;
}
.loc-btn.is-set { border-style: solid; border-color: var(--daun); background: var(--daun-soft); color: var(--daun); }
.items { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 1fr 96px auto; gap: 6px; align-items: center; }
.cart-lines { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 0.9rem; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; }
.pay-method { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 6px; }
.summary dd { padding-left: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { color: var(--ink); font-weight: 800; font-size: 1.125rem; padding-top: 8px; border-top: 1px solid var(--line); }

/* Peta */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(19, 26, 19, 0.5); z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 16px; display: grid; gap: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 1.125rem; font-weight: 800; }
.map-wrap { position: relative; height: min(60vh, 440px); border-radius: var(--radius); overflow: hidden; background: var(--indigo-soft); }
.map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Daftar pesanan */
.order-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.order-row .service-icon { margin: 0; width: 38px; height: 38px; }
.order-row-body { flex: 1; min-width: 0; }
.order-row-body small, .order-row-end small { display: block; color: var(--muted); font-size: 0.8125rem; }
.order-row-end { text-align: right; flex: none; }
.order-row-body .status-chip { display: inline-block; margin-top: 4px; }
.status-chip { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); white-space: nowrap; }
.status-completed .status-chip { background: var(--daun-soft); color: var(--daun); }
.status-cancelled .status-chip, .status-failed .status-chip { background: var(--line); color: var(--muted); }

/* Detail pesanan */
.status-hero { background: var(--indigo); color: #fff; border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 6px; }
.status-hero.status-completed { background: var(--daun); }
.status-hero.status-cancelled, .status-hero.status-failed { background: #4A5447; }
.status-now { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.status-sub { color: rgba(255, 255, 255, 0.75); font-size: 0.875rem; }
.tracker { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tracker li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.55); font-size: 0.9375rem; }
.tracker li.done { color: #fff; font-weight: 600; }
.tracker-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.tracker li.done .tracker-dot { background: var(--kunyit); border-color: var(--kunyit); }

.route { list-style: none; padding: 0; margin: 0; display: grid; }
.route-stop { display: grid; grid-template-columns: 20px 1fr; gap: 10px; position: relative; padding-bottom: 16px; }
.route-stop:last-child { padding-bottom: 0; }
.route-stop:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; border-left: 2px dotted var(--line); }
.route-dot { width: 14px; height: 14px; border-radius: 50%; margin: 4px 0 0 3px; background: var(--indigo); }
.route-stop.pickup .route-dot { background: var(--kunyit); }
.route-stop.st-done .route-dot { box-shadow: 0 0 0 3px var(--daun-soft); background: var(--daun); }
.route-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.stop-status { font-size: 0.8125rem; font-weight: 700; margin-top: 4px; color: var(--indigo-2); }
.stop-status.done { color: var(--daun); }
.stop-status.failed { color: var(--danger); }

.history summary { font-weight: 700; cursor: pointer; }
.history ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 0.9rem; }
.history time { display: inline-block; width: 52px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cancel-zone { display: grid; gap: 8px; }
.confirm { display: grid; gap: 12px; }
.confirm .row { grid-template-columns: 1fr 1fr; }

/* Akun */
.account { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--besek); color: var(--indigo); display: grid; place-items: center; font-weight: 800; font-size: 1.375rem; }

/* Bilah tab */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); box-shadow: 0 -1px 0 var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 560px; margin: 0 auto;
}
.tab { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.tab[aria-current="page"] { color: var(--indigo); }
.tab[aria-current="page"] svg { color: var(--kunyit); stroke-width: 2.2; }
.opt-group legend + .opt { clear: both; }

/* Ringkasan angka (penerima berkatan) */
.stat-card, .stat-card-light { border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; }
.stat-card { background: var(--indigo); color: #fff; }
.stat-card-light { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat-main { display: flex; align-items: baseline; gap: 6px; }
.stat-num { font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 0.9375rem; opacity: 0.8; }
.stat-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-grid div { border-radius: 10px; padding: 8px 10px; background: rgba(255, 255, 255, 0.1); }
.stat-card-light .stat-grid div { background: var(--bg); }
.stat-grid dt { font-size: 0.6875rem; opacity: 0.8; }
.stat-grid dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-grid dd.warn { color: #F6C8C2; }
.stat-card-light .stat-grid dd.warn { color: var(--danger); }
.stat-note { font-size: 0.8125rem; color: var(--besek); }
.search-line { box-shadow: inset 0 0 0 1px var(--line); }

/* Daftar penerima */
.rlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rrow { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.rrow.is-todo { box-shadow: inset 0 0 0 1.5px #E9B7B2; }
.rno { width: 30px; height: 30px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); flex: none; }
.rbody { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.rbody strong { font-size: 0.9375rem; font-weight: 600; }
.rbody small { font-size: 0.8125rem; color: var(--muted); }
.rbody small.ok { color: var(--daun); font-weight: 600; }
.rbody small.bad { color: var(--danger); font-weight: 600; }
.rrow .link { flex: none; font-size: 0.875rem; text-decoration: none; }

/* Pilihan tema */
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; }
.theme-opt input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--indigo); flex: none; }
.theme-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); }
.swatch { display: inline-flex; flex: none; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.swatch i + i { margin-left: -5px; }
.tag-24 { display: inline-block; vertical-align: 2px; margin-left: 4px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.02em; background: var(--indigo); color: #fff; border-radius: 999px; padding: 2px 7px; }

/* ---- tahap 1: bayar, lacak, chat, komplain, notifikasi, saldo ---- */
.pay-choice { border: 0; display: grid; gap: 8px; margin: 0; }
.pay-choice legend { float: left; padding: 0; margin-bottom: 4px; }
.pay-choice legend + * { clear: both; }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); background: var(--indigo-soft); }
.pay-opt.off { opacity: 0.5; cursor: not-allowed; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--indigo); flex: none; }
.pay-opt span { display: grid; gap: 2px; }
.pay-opt small { color: var(--muted); font-size: 0.8125rem; }
.pay-card { display: grid; gap: 10px; justify-items: center; text-align: center; }
.pay-amount { font-size: 1.75rem; font-weight: 800; margin: 0; }
.qr { width: min(260px, 72vw); aspect-ratio: 1; background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.pay-brand { font-weight: 700; letter-spacing: 0.04em; color: var(--indigo); margin: 0; }
.pay-timer { margin: 0; color: var(--danger); }
.pay-steps { text-align: left; font-size: 0.875rem; color: var(--muted); padding-left: 20px; margin: 4px 0; display: grid; gap: 4px; }
.pay-done { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 28px 16px; }
.pay-check { width: 56px; height: 56px; border-radius: 50%; background: var(--daun); color: #fff; display: grid; place-items: center; font-size: 1.75rem; font-weight: 800; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions .btn { flex: 1 1 auto; text-decoration: none; text-align: center; }
.track-map { height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: var(--besek-light); box-shadow: inset 0 0 0 1px var(--line); z-index: 0; }
.rider-pin span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--kunyit); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 20px; }
.eta { display: flex; gap: 14px; align-items: center; }
.eta span:last-child { display: grid; }
.eta-num { font-size: 1.75rem; font-weight: 800; color: var(--indigo); white-space: nowrap; }
.eta-num small { font-size: 0.875rem; font-weight: 600; }
.rider { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rider > div:nth-child(2) { flex: 1; min-width: 140px; }
.rider-act { display: flex; gap: 8px; }
.rider-act .btn { text-decoration: none; }
.handover { text-align: center; display: grid; gap: 4px; background: var(--kunyit-soft); }
.handover-code { font-size: 2.25rem; font-weight: 800; letter-spacing: 0.3em; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.chat-page { padding-bottom: 150px; }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chat li { max-width: 80%; background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.chat li.mine { justify-self: end; background: var(--indigo); color: #fff; border-radius: 16px 16px 4px 16px; box-shadow: none; }
.chat li.from-admin { background: var(--kunyit-soft); }
.chat p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat time { display: block; font-size: 0.6875rem; opacity: 0.7; text-align: right; }
.chat-who { display: block; font-size: 0.75rem; font-weight: 700; color: var(--indigo); }
.chat-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 16px; background: var(--surface); box-shadow: 0 -1px 0 var(--line); max-width: 560px; margin: 0 auto; z-index: 5; }
.chat-bar input { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 0; padding: 0 16px; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; background: var(--bg); }
.bell { position: relative; margin-left: auto; color: #fff; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.bell .badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 0.6875rem; font-weight: 700; display: grid; place-items: center; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif-list li > * { display: grid; gap: 2px; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.notif-list li.unread > * { box-shadow: inset 3px 0 0 var(--indigo), inset 0 0 0 1px var(--line); background: var(--indigo-soft); }
.notif-list p { margin: 0; }
.row-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; font-weight: 600; }
.wallet { display: grid; gap: 6px; }
.wallet-top { display: flex; justify-content: space-between; align-items: center; }
.wallet-top > span { display: grid; }
.wallet-bal { font-size: 1.5rem; color: var(--indigo); }
.wallet-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.wallet-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.wallet-list li > span:first-child, .wallet-list li > a { display: grid; color: inherit; text-decoration: none; }
.wallet-list .plus { color: var(--daun); font-weight: 700; white-space: nowrap; }
.wallet-list .minus { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ================= Aplikasi kerja: mitra, driver, konsol admin ================= */
:root.app-mitra {
  --indigo: #0E7C70; --indigo-2: #0E9F8E; --indigo-soft: #E0F2EF; --bg: #F0F6F5; --line: #E3EBEA;
  --muted: #5E6F6C; --ink: #10201E; --daun: #0E9F8E;
}
:root.app-mitra body { background: var(--bg); }
:root.app-driver {
  --indigo: #13795B; --indigo-2: #16A06B; --indigo-soft: #E2F3EA; --bg: #F4F6F5; --line: #E3E8E5; --daun: #16A06B;
}
:root.app-driver body { background: var(--bg); }
:root.app-admin { --indigo: #13795B; --indigo-2: #16A06B; --indigo-soft: #E2F3EA; --bg: #F4F6F5; --line: #E6E9EC; --muted: #6B7280; }
:root.app-admin body { background: var(--bg); }

.staff-head {
  position: sticky; top: 0; z-index: 9; color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 16px;
  background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo);
  border-radius: 0 0 22px 22px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.staff-head-row { display: flex; align-items: center; gap: 12px; }
.staff-logo { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--indigo); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; flex: none; }
.staff-brand { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.staff-head-name { flex: 1; min-width: 0; display: grid; }
.staff-head-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.0625rem; }
.staff-head-name small { opacity: 0.85; font-size: 0.8125rem; }
.staff-head-name select { background: rgba(255,255,255,.14); border: 0; color: #fff; font-weight: 700; padding: 4px 8px; border-radius: 8px; min-height: 0; }
.staff-head-name select option { color: var(--ink); }
.open-toggle { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.18); padding: 6px 8px 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.open-toggle.on { background: rgba(255,255,255,.2); }
.staff-page { padding-top: 14px; }

.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; background: #C9D1CE; cursor: pointer; flex: none; padding: 0; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--kunyit); }
.app-mitra .switch[aria-checked="true"], .app-admin .switch[aria-checked="true"] { background: var(--indigo-2); }
.staff-head .switch[aria-checked="true"] { background: var(--kunyit); }
.switch[aria-checked="true"] span { transform: translateX(18px); }
.switch:disabled { opacity: .5; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: 14px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; min-height: 40px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--indigo); color: #fff; }
.chips.wrap { flex-wrap: wrap; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.empty-note { color: var(--muted); text-align: center; padding: 28px 12px; }
.group-title { font-size: 1rem; font-weight: 800; display: flex; gap: 6px; align-items: baseline; }
.group-title small { color: var(--muted); font-weight: 600; }
.row-2 { display: flex; gap: 8px; }
.row-2 > .btn { flex: 1; }
.btn-wide { flex: 1; }
.tabbar button.tab { border: 0; background: none; cursor: pointer; }
.tab-ico { position: relative; display: inline-grid; }
.tab-ico .badge { position: absolute; top: -4px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .6875rem; display: grid; place-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9rem; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); white-space: nowrap; }
.pill-pending, .pill-awaiting_vendor, .pill-pending_payment { background: var(--kunyit-soft); color: #7A5600; }
.pill-ready, .pill-completed { background: #DDF3E6; color: #13795B; }
.pill-cancelled, .pill-failed, .pill-rejected { background: var(--danger-soft); color: var(--danger); }
.pill-live, .pill-delivering, .pill-picking_up, .pill-courier_assigned { background: #E3EEFF; color: #1F4FB0; }
.notice { display: block; color: inherit; }

.sheet-wrap { position: fixed; inset: 0; background: rgba(10, 20, 15, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap > .sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-wrap .sheet-head { position: sticky; top: 0; background: var(--surface); display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; z-index: 1; }
.sheet-head h2 { font-size: 1.125rem; }
.sheet-body { display: grid; gap: 14px; }
.sheet-body h3 { font-size: 1rem; margin-top: 6px; }
@media (min-width: 900px) {
  .sheet-wrap { align-items: center; }
  .sheet-wrap > .sheet { border-radius: 20px; max-width: 520px; }
  .sheet-wrap > .sheet.wide { max-width: 860px; }
}

/* mitra */
.vorder { display: grid; gap: 10px; }
.vorder.vs-pending { box-shadow: inset 0 0 0 2px var(--kunyit); }
.vorder-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vitems { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vitems li { display: grid; grid-template-columns: 32px 1fr auto; gap: 6px; align-items: start; }
.vitems li > span:nth-child(2) { display: grid; }
.vitems b { color: var(--indigo); }
.vnote { color: #7A5600; background: var(--kunyit-soft); border-radius: 8px; padding: 2px 8px; font-size: .8125rem; justify-self: start; }
.vorder-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 8px; }
.reject { display: grid; gap: 8px; }
.menu-tools { display: flex; gap: 8px; }
.menu-tools input { flex: 1; min-width: 0; }
.menu-group { display: grid; gap: 8px; }
.prod { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.prod.is-off { opacity: .6; }
.prod-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 0; cursor: pointer; }
.prod-main img, .prod-ph { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--indigo-soft); display: grid; place-items: center; color: var(--indigo); font-weight: 800; }
.prod-main > span:last-child { display: grid; min-width: 0; }
.prod-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-main small { color: var(--muted); }
.prod-side { display: grid; justify-items: end; gap: 6px; }
.mini-step { display: flex; align-items: center; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-step button { width: 30px; height: 30px; border: 0; background: none; font-weight: 800; cursor: pointer; color: var(--indigo); }
.mini-step span { min-width: 26px; text-align: center; font-weight: 700; font-size: .875rem; }
.mini-step.low span { color: var(--danger); }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field-row > span { display: grid; }
.field-row input { max-width: 140px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.kpi.wide { grid-column: 1 / -1; }
.kpi small { color: var(--muted); font-size: .8125rem; }
.kpi b { font-size: 1.375rem; color: var(--indigo); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.store-card { display: grid; gap: 12px; }
.work-modes { display: grid; gap: 4px; }
.work-modes .row-link { padding: 10px 0; border-top: 1px solid var(--line); }

/* driver */
.driver-head { background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo); }
.job { display: grid; gap: 8px; }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-addr { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 6px; }
.dot.pick { background: var(--kunyit); box-shadow: 0 0 0 3px var(--kunyit-soft); }
.dot.drop { background: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.job-foot > span { display: grid; }
.job-foot b { font-size: 1.25rem; color: var(--indigo); }
.active-job { display: grid; gap: 10px; }
.job-sum { display: grid; gap: 10px; }
.job-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jstop { display: grid; gap: 6px; }
.jstop.current { box-shadow: inset 0 0 0 2px var(--indigo-2); }
.jstop.st-done, .jstop.st-failed { opacity: .65; }
.jstop-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jstop-head .dot { margin-top: 0; }
.jstop-label { font-size: .8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.jstop-links { display: flex; gap: 6px; flex-wrap: wrap; }
.jstop-links .btn { text-decoration: none; }
.money-note { background: var(--kunyit-soft); border-radius: 10px; padding: 8px 12px; }
.code-input { font-size: 1.75rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
.price-edit { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.money-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money-pair .card { display: grid; gap: 2px; align-content: start; }
.money-pair small { color: var(--muted); font-size: .8125rem; }
.money-pair b { font-size: 1.25rem; }
.money-pair .cash { background: var(--kunyit-soft); box-shadow: none; }
.hist { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.hist small:last-child { grid-column: 1 / -1; }

/* konsol admin */
.console { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0E3B2B; color: #DDEBE3; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; color: #fff; font-weight: 800; font-size: 1.125rem; }
.side-brand img { width: 34px; height: 34px; border-radius: 8px; }
.side-brand small { display: block; font-weight: 500; font-size: .75rem; color: #9FC2B1; }
.side nav { display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: inherit; font-weight: 600; font-size: .9375rem; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.side-link:hover { background: rgba(255,255,255,.07); }
.side-link[aria-current="page"] { background: #F5C451; color: #3B2A00; }
.side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot > span { display: grid; padding: 4px 10px 8px; font-weight: 700; }
.side-foot small { font-weight: 500; color: #9FC2B1; }
.console-main { padding: 24px 28px 48px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.console-title { font-size: 1.5rem; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; color: inherit; }
.tile small { color: var(--muted); font-weight: 600; }
.tile b { font-size: 1.5rem; }
.tile span { color: var(--muted); font-size: .8125rem; }
.tile.warn { box-shadow: inset 0 0 0 2px #F5C451; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.panel { background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; overflow-x: auto; }
.panel h2 { font-size: 1.0625rem; }
.panel h2 small { color: var(--muted); font-weight: 600; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 180px; align-items: end; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 4px; }
.bar-col .bar { width: 70%; max-width: 44px; background: var(--indigo-2); border-radius: 6px 6px 0 0; align-self: end; }
.bar-val { font-size: .75rem; font-weight: 700; }
.bar-lbl { font-size: .75rem; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; background: #FAFBFA; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #F7FAF8; }
.tbl.small { font-size: .8125rem; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters input[type="search"] { max-width: 280px; }
.filters select { width: auto; }
.filters .btn { margin-left: auto; }
.check { display: flex; gap: 6px; align-items: center; font-size: .9rem; }
.check input { width: auto; min-height: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form > input, .inline-form > select { flex: 1; min-width: 160px; }
.drawer { display: grid; gap: 14px; }
.drawer h3 { font-size: 1rem; }
.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .875rem; }
.hist-list time { font-weight: 700; margin-right: 6px; }
.grid-form { grid-template-columns: 1fr 1fr; }
.grid-form .span2, .grid-form .btn-block { grid-column: 1 / -1; }
.cell-input { min-height: 34px; padding: 4px 8px; max-width: 110px; }
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bnr img, .bnr-ph { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 10px; background: var(--indigo-soft); display: grid; place-items: center; font-weight: 700; color: var(--indigo); }
.bnr.off { opacity: .55; }
.bnr .row-2 { align-items: center; }
.settings { max-width: 720px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting > span { display: grid; }
.setting select { width: auto; }
@media (max-width: 860px) {
  .console { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px 16px; align-items: center; }
  .side-brand { padding: 0 8px 0 0; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; width: 100%; scrollbar-width: none; }
  .side-link { width: auto; white-space: nowrap; padding: 7px 10px; font-size: .875rem; }
  .side-link svg { display: none; }
  .side-foot { display: none; }
  .console-main { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .grid-form { grid-template-columns: 1fr; }
}
.wallet-list.card { padding: 4px 16px; margin: 0; }
.wallet-list.card li:first-child { border-top: 0; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile b { font-size: 1.25rem; } }
.free-shop { display: flex; align-items: center; gap: 12px; color: inherit; }
.free-shop > span:nth-child(2) { flex: 1; display: grid; }
.free-shop small { color: var(--muted); }
.free-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--besek-light); display: grid; place-items: center; font-size: 22px; flex: none; }
.billing { display: grid; gap: 12px; }
.bill-sum { display: grid; gap: 6px; }
.bill-sum.free { background: #EAF7EF; box-shadow: inset 0 0 0 1px #BFE3CC; }
.bill-total { font-size: 1.75rem; color: var(--indigo); }
.tx-goal { display: grid; gap: 4px; }
.tx-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tx-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo-2), var(--kunyit)); border-radius: 999px; }
.panel .filters h2 { margin-right: auto; }

/* ================= Kasir cloud (/kasir) & layar dapur ================= */
:root.app-kasir {
  --indigo: #0E7C70; --indigo-2: #0E9F8E; --indigo-soft: #E0F2EF; --bg: #EEF3F2; --line: #DCE5E3;
  --muted: #5E6F6C; --ink: #10201E; --daun: #0E9F8E; --surface: #fff; --field: #F4F7F6;
}
:root.app-kasir.kasir-dark {
  --indigo: #14B8A6; --indigo-2: #2DD4BF; --indigo-soft: #12302C; --bg: #0B1110; --surface: #141C1B; --line: #24302E;
  --muted: #8FA3A0; --ink: #E7F0EE; --daun: #2DD4BF; --kunyit-soft: #2A2410; --danger-soft: #3A1714; --field: #0F1615;
  color-scheme: dark;
}
:root.app-kasir body { background: var(--bg); }
.app-kasir input, .app-kasir select, .app-kasir textarea { background: var(--field); color: var(--ink); border-color: var(--line); }
.app-kasir input:focus, .app-kasir select:focus { background: var(--surface); }
.app-kasir .toast { bottom: 24px; }
.kasir-dark .btn-primary { color: #10201E; }
.kasir-dark .chip[aria-pressed="true"] { color: #0B1110; }
.kasir-dark .seg button[aria-selected="true"] { color: #0B1110; }
.kasir-dark .notice { color: var(--ink); }

.kasir { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.kasir-center { min-height: 70vh; display: grid; place-items: center; padding: 16px; gap: 12px; text-align: center; }
.kasir-setup { width: min(480px, 100%); display: grid; gap: 14px; text-align: left; }
.kasir-pick { width: 100%; text-align: left; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 0; cursor: pointer; background: var(--indigo-soft); color: var(--ink); }
.kasir-pick small { color: var(--muted); }

.kasir-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); box-shadow: 0 1px 0 var(--line); flex: none; flex-wrap: wrap; }
.kasir-brand { display: grid; min-width: 0; }
.kasir-brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kasir-brand small { color: var(--muted); font-size: .8125rem; }
.kasir-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.kasir-tabs button, .kasir-tabs a { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; font-size: .9375rem; position: relative; }
.kasir-tabs button[aria-current="page"] { background: var(--indigo-soft); color: var(--indigo); }
.kasir-tabs .badge { background: var(--red); color: #fff; margin-left: 6px; padding: 1px 7px; }
.net-pill { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .8125rem; cursor: pointer; background: var(--indigo-soft); color: var(--ink); }
.net-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.net-pill.off { background: var(--kunyit-soft); }
.net-pill.off .dot { background: #F59E0B; }
.kasir-gear { font-size: 1.25rem; }

.kasir-sell { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(340px, 400px); }
.kasir-products { min-height: 0; overflow: auto; padding: 14px 16px 90px; display: grid; gap: 12px; align-content: start; }
.kasir-search input { width: 100%; font-size: 1.0625rem; min-height: 50px; }
.kasir-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ptile { display: grid; gap: 4px; align-content: start; text-align: left; border: 0; cursor: pointer; padding: 10px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); min-height: 120px; }
.ptile:active { transform: scale(.98); }
.ptile img, .ptile .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--indigo-soft); }
.ptile .ph { display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: var(--indigo); text-transform: uppercase; }
.ptile b { font-size: .9375rem; line-height: 1.25; }
.ptile .price { font-weight: 800; color: var(--indigo); }
.ptile small { color: var(--muted); font-size: .75rem; }
.ptile small.low, .kasir-table .low { color: var(--red); font-weight: 700; }
.ptile.off { opacity: .6; }

.kasir-side { min-height: 0; border-left: 1px solid var(--line); background: var(--surface); display: flex; }
.kasir-cart { display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 0; padding: 14px 16px; }
.kasir-side .kasir-cart { height: 100%; }
.cart-meta { display: grid; gap: 8px; }
.cart-meta .row-2 > input { flex: 1; min-width: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; flex: 1; overflow: auto; display: grid; align-content: start; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-name { display: grid; min-width: 0; }
.cl-name small { color: var(--muted); font-size: .8125rem; }
.cl-total { min-width: 80px; text-align: right; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--indigo-soft); color: var(--indigo); font-size: 1.125rem; font-weight: 800; cursor: pointer; }
.qty input { width: 44px; min-height: 34px; padding: 4px; text-align: center; }
.cart-foot { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sum-row input { width: 140px; text-align: right; min-height: 38px; }
.sum-row.grand { font-size: 1.375rem; font-weight: 800; }
.sum-row.neg b { color: var(--red); }
.pay-btn { min-height: 56px; font-size: 1.125rem; }
.cart-fab { display: none; }

.change { display: flex; justify-content: space-between; align-items: baseline; background: var(--indigo-soft); border-radius: 14px; padding: 12px 16px; }
.change b { font-size: 1.75rem; }
.change.neg b { color: var(--red); }
.change.big b { font-size: 2.25rem; }
.pay-cash, .pay-qris { display: grid; gap: 12px; }
.qr-box { background: #fff; border-radius: 14px; padding: 12px; width: min(280px, 100%); margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.waiting { text-align: center; font-weight: 700; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.opt-group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt-group legend { font-weight: 800; margin-bottom: 6px; }
.opt-group small { color: var(--muted); font-weight: 600; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.void-box { display: grid; gap: 8px; }

.kasir-page { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 14px; align-content: start; max-width: 1100px; width: 100%; margin: 0 auto; }
.kasir-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kasir-toolbar input[type="search"] { flex: 1; min-width: 200px; }
.kasir-toolbar .inline { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.kasir-toolbar .inline input { width: auto; min-height: 0; }
.kasir-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; }
.kasir-table th, .kasir-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.kasir-table th { font-size: .8125rem; color: var(--muted); }
.kasir-table tbody tr { cursor: pointer; }
.kasir-table .num { text-align: right; white-space: nowrap; }
.kasir-table .muted-row { opacity: .55; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); }
.tag.paid { background: #DCFCE7; color: #166534; }
.tag.pending, .tag.warn { background: #FEF3C7; color: #92400E; }
.tag.void, .tag.expired { background: #FEE2E2; color: #991B1B; }
.notice.danger { background: var(--danger-soft); }
.notice ul { margin: 6px 0; padding-left: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.kpis > div { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: grid; box-shadow: inset 0 0 0 1px var(--line); }
.kpis b { font-size: 1.25rem; }
.kpis small { color: var(--muted); }

/* struk 58 mm */
.receipt { background: #fff; color: #000; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.35; padding: 12px; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.rc-center { text-align: center; }
.rc-store { font-size: 14px; }
.rc-sep { border-top: 1px dashed #000; margin: 6px 0; }
.rc-row { display: flex; justify-content: space-between; gap: 8px; }
.rc-opt { font-size: 11px; padding-left: 8px; }
.rc-total { font-weight: 800; font-size: 14px; }
@media print {
  @page { size: 58mm auto; margin: 0; }
  body * { visibility: hidden !important; }
  .receipt, .receipt * { visibility: visible !important; }
  .receipt { position: absolute; left: 0; top: 0; width: 58mm; max-width: none; box-shadow: none; padding: 2mm; }
}

/* layar dapur */
.kitchen { min-height: 100vh; display: flex; flex-direction: column; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 16px; align-content: start; }
.kticket { background: var(--surface); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; box-shadow: inset 0 0 0 2px var(--line); }
.kticket header { display: flex; justify-content: space-between; font-size: 1.125rem; }
.kticket.preparing { box-shadow: inset 0 0 0 2px #F59E0B; }
.kticket.ready { box-shadow: inset 0 0 0 2px #22C55E; }
.kticket.late header span { color: var(--red); font-weight: 800; }
.kticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 1.0625rem; }
.kopt { font-size: .875rem; color: var(--muted); padding-left: 22px; }

@media (max-width: 860px) {
  .kasir-sell { grid-template-columns: 1fr; }
  .kasir-side { display: none; }
  .cart-fab { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 56px; border: 0; border-radius: 16px; background: var(--kunyit); color: #10201E; font-weight: 700; font-size: 1.0625rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; z-index: 5; }
  .cart-fab:disabled { opacity: .5; }
  .sheet .kasir-cart { padding: 0; }
  .sheet .cart-lines { max-height: 45vh; }
  .kasir-bar { gap: 8px; }
  .kasir-tabs { order: 3; flex-basis: 100%; }
  .kasir-table th:nth-child(3), .kasir-table td:nth-child(3) { display: none; }
}

/* ================= Kredit kas driver ================= */
.setting > span.inline-form { display: flex; }
.setting .inline-form input { width: 140px; min-width: 0; text-align: right; }
.settings h3 { margin-top: 18px; font-size: 1rem; }
.credit-note { display: grid; gap: 6px; }
.credit-note.ok { background: var(--indigo-soft); }
.credit-note a { font-weight: 700; text-decoration: underline; }
.notice.danger { background: var(--danger-soft, #FBE9E7); }
.credit-card { display: grid; gap: 10px; }
.credit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.credit-head > span:first-child { display: grid; }
.credit-head b { font-size: 1.5rem; }
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--indigo-2); border-radius: inherit; }
.meter span.hi { background: #E0892B; }
.credit-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.credit-parts li { display: flex; justify-content: space-between; }
.credit-parts li.danger, .credit-admin .danger { color: var(--danger); }
.credit-admin { display: grid; gap: 8px; margin: 12px 0; }
.credit-admin h4 { margin: 8px 0 0; font-size: .9375rem; }
.qr-box { background: #fff; border-radius: 14px; padding: 12px; width: min(260px, 100%); margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.collateral-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.collateral-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.collateral-list li > span { display: grid; min-width: 0; }
.collateral-list li.returned { opacity: .55; }

/* ================= unggah foto ================= */
.photo-input { display: grid; gap: 6px; }
.photo-box { position: relative; display: grid; place-items: center; width: 100%; min-height: 120px; border-radius: var(--radius); border: 1.5px dashed var(--line); background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; overflow: hidden; padding: 0; }
.photo-box.has { border-style: solid; }
.photo-box img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.photo-busy { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.55); color: #fff; padding: 4px; font-size: .8125rem; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; align-items: start; }
.photo-thumb { position: relative; }
.photo-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.photo-thumb .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; width: 28px; height: 28px; min-height: 0; }
.photo-list .photo-box { min-height: 110px; aspect-ratio: 1; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.doc-grid figure { margin: 0; display: grid; gap: 4px; }
.doc-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.doc-grid figcaption { font-size: .8125rem; color: var(--muted); font-weight: 700; }
.apply-status { display: grid; gap: 10px; }
.push-prompt { display: grid; gap: 8px; }
.push-wrap { padding-bottom: 0; }
.push-wrap:empty { display: none; }
.push-setting .field-row { align-items: center; }
.member-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--indigo-soft); border-radius: 12px; padding: 8px 12px; }
.member-chip > span { display: grid; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.member-list button { width: 100%; text-align: left; display: grid; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--indigo-soft); color: var(--ink); cursor: pointer; }
.loyalty-form { display: grid; gap: 10px; }
.kpis b.low { color: var(--red); }
.printer-set { display: grid; gap: 8px; }
.ppob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ptile.sel { box-shadow: inset 0 0 0 2px var(--indigo); }
.ppob-form, .ppob-result { display: grid; gap: 10px; }
.ppob-sn { font-size: 1.125rem; word-break: break-all; }
.ppob-topup { display: grid; gap: 6px; }
.ppob-topup input { min-width: 0; }
.store-server summary { cursor: pointer; }
.store-server ol { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.store-server code { background: var(--indigo-soft); padding: 1px 6px; border-radius: 6px; font-size: .8125rem; }

/* Label produk, minimum beli & urutan katalog */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.catalog-tools { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.catalog-tools .label-chips { flex: 1; min-width: 0; }
.sort-pick { flex: none; margin-left: auto; }
.sort-pick select { min-height: 38px; border-radius: 999px; padding: 0 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); font: inherit; font-size: 0.8125rem; font-weight: 600; color: inherit; }
.chip-label { min-height: 32px; padding: 0 12px; font-size: 0.8125rem; font-weight: 500; }
.label-chips { margin-top: 6px; }
.qty-hint { color: var(--indigo) !important; font-weight: 600; }
.plabels { display: flex; flex-wrap: wrap; gap: 4px; }
.plabels i { font-style: normal; font-size: 0.6875rem; color: var(--muted); background: var(--indigo-soft); border-radius: 6px; padding: 1px 6px; }
.qty-rule { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qty-rule label { display: grid; gap: 4px; }
.qty-rule small { color: var(--muted); }

/* Gudang & pemasok */
.gudang .seg { margin-bottom: 8px; }
.gd-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.gd-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.gd-row small { color: var(--muted); font-size: 0.75rem; }
.gd-row.is-off { opacity: 0.6; }
.gd-stock { display: grid; text-align: right; font-weight: 700; font-size: 1.125rem; }
.gd-stock small { font-weight: 500; }
.gd-stock.low { color: #C2410C; }
.gd-debt { display: grid; text-align: right; font-size: 0.75rem; color: var(--muted); }
.gd-debt.due b { color: #C2410C; font-size: 0.9375rem; }
.gd-order { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.gd-order li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.gd-order li span { flex: 1; }
.gd-order b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-soft); font-size: 0.75rem; }
.icon-btn { border: 0; background: transparent; min-width: 32px; min-height: 32px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.icon-btn:disabled { opacity: 0.3; }
.gd-sups li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gd-sups li > span:first-child { display: grid; gap: 2px; }
.gd-sups small { color: var(--muted); font-size: 0.75rem; }
.gd-sups .is-active { box-shadow: inset 0 0 0 2px var(--indigo); }
.pill { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--indigo); color: #fff; }
.gd-lots { list-style: none; padding: 0; }
.gd-lots li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gd-lots li > span { display: grid; gap: 2px; }
.gd-lots li > span:last-child { text-align: right; }
.gd-lots small { color: var(--muted); font-size: 0.75rem; }
.gd-lots .is-off { opacity: 0.5; }
.gd-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; margin: 6px 0; }
.gd-inline label { display: grid; gap: 4px; }
.gd-inline small { color: var(--muted); }
.gd-pline { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px; display: grid; gap: 6px; margin: 0; }
.gd-pline legend { font-weight: 600; font-size: 0.875rem; display: flex; gap: 8px; }
.gd-pline label { display: grid; gap: 4px; }
.gd-purchase { display: grid; gap: 4px; }
.gd-purchase-head { display: flex; justify-content: space-between; gap: 8px; }
.gd-purchase-head > span { display: grid; gap: 2px; }
.gd-purchase-head > span:last-child { text-align: right; }
.gd-purchase small, .gd-line { color: var(--muted); font-size: 0.75rem; }
.due { color: #C2410C !important; font-weight: 600; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.gd-table th, .gd-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.gd-table th:first-child, .gd-table td:first-child { text-align: left; }
.table-wrap { overflow-x: auto; }
.gd-tag { background: #FDF1D8 !important; color: #8A5A00 !important; }
.gd-stock-mini { font-weight: 700; font-size: 0.875rem; min-width: 32px; text-align: center; }
.gd-link select { width: 100%; }
.gd-link label { display: grid; gap: 4px; margin-top: 6px; }
.price-alert { margin-top: 10px; padding: 12px; border-radius: 12px; background: #FFF4E5; color: #5A3A00; display: grid; gap: 6px; }
.price-alert p { margin: 0; }
.price-alert small { color: #7A5200; }

/* Keterangan produk di daftar toko: 2 baris, lengkapnya di halaman detail */
.mdesc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mdesc-full { white-space: pre-line; }
.zone-gps { display: grid; gap: 8px; margin-bottom: 12px; }
.zone-auto { font-weight: 500; opacity: 0.8; }
.zone-opt.is-soon { opacity: 0.55; }
.tbl tr.is-muted td { color: var(--muted); }
.service-wide .service-soon { background: #fff; top: 50%; transform: translateY(-50%); }
.zone-moved { margin: 8px 0 0; font-size: 0.8125rem; color: #fff; opacity: 0.92; }
.zone-moved a { color: inherit; text-decoration: underline; }
.seg-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; background: var(--kunyit); color: #3D2A00; vertical-align: 1px; }
.seg-count.is-hot { background: var(--red); color: #fff; }

/* Pasar riwariwi */
.pasar-link { background: var(--indigo); color: #fff; }
.pasar-link small { color: #DDEFD0 !important; }
.pasar-ico { background: var(--kunyit) !important; color: #3A2A00; }
.px-page { gap: 14px; }
.px-head { background: var(--indigo); border-radius: 0 0 24px 24px; margin: -16px -16px 0; padding: 16px; display: grid; gap: 14px; }
.px-head-row { display: flex; align-items: center; gap: 12px; }
.px-icon { width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; position: relative; flex: none; cursor: pointer; }
.px-cart i { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--kunyit); color: #3A2A00; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.px-head-title { flex: 1; min-width: 0; }
.px-head-title h1 { margin: 0; font-size: 1.375rem; font-weight: 800; color: #fff; }
.px-head-title p { margin: 0; font-size: 0.8125rem; color: #DDEFD0; }
.px-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 12px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.px-tabs::-webkit-scrollbar, .px-stores::-webkit-scrollbar { display: none; }
.px-tab { flex: none; min-width: 72px; border: 0; background: transparent; font: inherit; font-size: 0.75rem; font-weight: 500; color: #4F5B4C; padding: 6px 6px 10px; border-bottom: 3px solid transparent; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.px-tab-ico { width: 44px; height: 44px; border-radius: 14px; background: #F3F5F1; display: grid; place-items: center; }
.px-tab[aria-selected="true"] { color: var(--indigo); font-weight: 700; border-bottom-color: var(--kunyit); }
.px-tab[aria-selected="true"] .px-tab-ico { background: var(--indigo-soft); }
.px-section { display: grid; gap: 10px; }
.px-section-head { display: flex; justify-content: space-between; align-items: baseline; }
.px-section-head a { font-weight: 700; font-size: 0.875rem; padding: 10px 0; }
.px-stores { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4); gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.px-store { scroll-snap-align: start; background: var(--surface); border-radius: 14px; padding: 6px 6px 8px; display: grid; justify-items: center; gap: 6px; text-align: center; color: inherit; }
.px-store.is-off { opacity: .6; }
.px-store strong { font-size: 0.75rem; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 29px; overflow-wrap: anywhere; }
.px-store-logo { width: 100%; aspect-ratio: 1.4; border-radius: 10px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background-size: cover; background-position: center; }
.px-badge { font-size: 0.625rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F1F1EE; color: var(--muted); }
.px-badge.on { background: var(--indigo-soft); color: #2B5E34; }
.px-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.px-prod { background: var(--surface); border-radius: 14px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.px-prod-img { position: relative; aspect-ratio: 1.3; border-radius: 10px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background-size: cover; background-position: center; color: inherit; }
.px-rank { position: absolute; top: 5px; left: 5px; font-style: normal; font-size: 0.625rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--kunyit); color: #3A2A00; }
.px-prod-body { display: grid; gap: 1px; min-height: 44px; color: inherit; }
.px-prod-name { font-size: 0.75rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.px-prod-body small { font-size: 0.6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-price { font-size: 0.8125rem; color: var(--indigo); }
.px-note { font-size: 0.625rem; color: var(--muted); min-height: 12px; line-height: 1.2; }
.px-add { margin-top: auto; min-height: 34px; border: 0; border-radius: 10px; background: var(--indigo-soft); color: var(--indigo); font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer; padding: 0 4px; }
.px-add:disabled { opacity: .5; cursor: default; }
.px-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 12px); width: min(560px, calc(100% - 24px)); box-sizing: border-box; background: var(--indigo); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.px-cartbar span { display: grid; min-width: 0; }
.px-cartbar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-cartbar small { color: #DDEFD0; }
.px-filter { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.px-store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.px-store-row { display: flex; align-items: center; gap: 12px; color: inherit; }
.px-store-row .px-store-logo { width: 64px; flex: none; aspect-ratio: 1; }
.px-store-row.is-off { opacity: .65; }
.px-store-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.px-store-info small { color: var(--muted); font-size: 0.8125rem; }
.px-cartbar .btn { flex: none; white-space: nowrap; padding: 0 16px; min-height: 44px; }
.cart-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--kunyit) !important; color: #3A2A00 !important; font-size: 0.6875rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.fnb-card .cart-pill { margin-left: 6px; }
.service-ico-wrap { position: relative; justify-self: start; display: block; width: max-content; line-height: 0; }
.ico-count { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--kunyit); color: #3A2A00; font-size: 0.6875rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

/* Halaman toko: sampul, logo, kotak barang */
.vhero { padding: 0; overflow: hidden; }
.vcover { height: 132px; background-size: cover; background-position: center; background-color: var(--indigo-soft); }
.vcover-plain { background: var(--indigo); background-image: url("/bg/doodle-head.svg"); background-size: 260px; }
.vhero-body { display: flex; gap: 12px; align-items: flex-start; padding: 0 14px 14px; }
.vlogo { margin-top: -28px; box-shadow: 0 0 0 4px var(--surface); background-color: var(--surface); }
.vname { display: block; font-size: 1.125rem; margin-top: 8px; }
.vhero-body .small { margin: 2px 0 0; }
.vtabs { margin: 0 -16px; }
.px-off { background: #C2410C !important; color: #fff !important; }
.px-note s { color: var(--muted); }
.stepper-sm { margin-top: auto; display: flex; }
.stepper-sm .stepper { width: 100%; justify-content: space-between; }
.stepper-sm .stepper button { width: 34px; height: 34px; }

/* Voucher di halaman pesan */
.voucher-card { display: grid; gap: 10px; }
.voucher-input { display: flex; gap: 8px; }
.voucher-input input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 12px; font: inherit; font-weight: 600; letter-spacing: 0.04em; background: var(--surface); color: var(--ink); }
.voucher-applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--indigo-soft); border: 1.5px dashed var(--indigo); }
.voucher-applied.bad { background: var(--danger-soft); border-color: var(--danger); }
.voucher-applied > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.voucher-applied small { color: var(--muted); }
.voucher-applied.bad small { color: var(--danger); }
.voucher-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.voucher-list button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
.voucher-list button:hover { border-color: var(--indigo); }
.voucher-tag { flex: none; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--kunyit-soft); color: #6B4A00; }
.voucher-tag.ongkir { background: var(--indigo-soft); color: var(--indigo); }
.voucher-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.voucher-txt small { color: var(--muted); font-size: 0.8125rem; }
.voucher-code { flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--indigo); }
dd.discount { color: var(--daun); font-weight: 600; }
.voucher-form { display: grid; gap: 14px; }
.voucher-form fieldset { border: 0; padding: 0; margin: 0; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 0.875rem; cursor: pointer; background: var(--surface); }
.chip-check:has(input:checked) { border-color: var(--indigo); background: var(--indigo-soft); color: var(--indigo); font-weight: 600; }
.voucher-admin { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.voucher-admin > li { display: grid; gap: 6px; align-content: start; }
.voucher-admin > li.is-muted { opacity: 0.65; }
.voucher-admin .btn-small { justify-self: start; }
.va-head { display: flex; align-items: center; gap: 8px; }
.va-code { flex: 1; letter-spacing: 0.04em; }
.va-state { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.va-state.on { background: var(--daun-soft); color: var(--daun); }
.va-state.soon { background: var(--kunyit-soft); color: #6B4A00; }
.va-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--muted); }
.va-stats b { color: var(--ink); }

/* Laporan */
.rp { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rp-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-presets button { font: inherit; font-size: 0.875rem; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.rp-presets button[aria-pressed="true"] { background: var(--indigo); color: #fff; box-shadow: none; }
.rp-dates { display: inline-flex; align-items: center; gap: 6px; }
.rp-dates input { font: inherit; font-size: 0.875rem; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.report-tiles { margin-bottom: 14px; }
.chart-panel { position: relative; }
.chart-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h2 { margin: 0; flex: 1; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; font-size: 0.8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .chart-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-wrap .grid { stroke: var(--line); stroke-width: 1; }
.chart-wrap .axis { font-size: 11px; fill: var(--muted); }
.s-online { fill: #3B7D47; background: #3B7D47; }
.s-kasir { fill: #D99A1E; background: #D99A1E; }
.chart-wrap path.on { filter: brightness(1.12); }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--surface); box-shadow: 0 4px 16px rgba(19, 26, 19, .14), inset 0 0 0 1px var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 0.8125rem; display: grid; gap: 2px; pointer-events: none; white-space: nowrap; z-index: 2; }
.chart-tip span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 110px; align-items: end; padding-bottom: 18px; position: relative; }
.hour { position: relative; height: 100%; display: flex; align-items: end; }
.hour i { display: block; width: 100%; background: #9CC59F; border-radius: 3px 3px 0 0; }
.hour i.peak { background: #2F6B3B; }
.hour small { position: absolute; bottom: -18px; left: 0; font-size: 10px; color: var(--muted); }
.tbl-scroll { overflow-x: auto; }
.tbl.rank td.rank-amt { position: relative; min-width: 120px; }
.rank-bar { position: absolute; right: 0; top: 4px; bottom: 4px; background: var(--indigo-soft); border-radius: 4px; z-index: 0; }
.rank-val { position: relative; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.report-grid > .panel, .chart-panel { margin: 0; }
.report-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.report-top .group-title { margin: 0; }
.staff-page .report-grid { grid-template-columns: 1fr; }
.staff-page .rp { justify-content: flex-start; }
/* Stok opname */
.gd-search { width: 100%; min-height: 42px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; background: var(--surface); color: var(--ink); }
.opname-row { display: grid; grid-template-columns: 1fr 120px; gap: 6px 12px; align-items: center; padding: 12px 14px; }
.opname-row .op-name { display: grid; gap: 2px; min-width: 0; }
.opname-row .op-count { display: grid; gap: 2px; }
.opname-row .op-count input { width: 100%; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; text-align: right; }
.opname-row .op-diff { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 700; color: var(--daun); }
.opname-row .op-diff.minus { color: var(--danger); }
.opname-row .op-diff.plus { color: #8A6A1E; }
.opname-sum { display: grid; gap: 8px; position: sticky; bottom: calc(var(--tabbar) + 8px); box-shadow: 0 6px 20px rgba(19, 26, 19, .12); }
.opname-sum input { min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; }
.op-vals { display: grid; justify-items: end; gap: 2px; }
.gudang > .seg { overflow-x: auto; scrollbar-width: none; }
.gudang > .seg::-webkit-scrollbar { display: none; }
.gudang > .seg button { flex: none; padding-inline: 12px; }
