/* Jastip Stock — tema "Biru Kirim": biru solid + aksen kuning, huruf Figtree.
   Prinsipnya: warna solid (tanpa gradasi), kartu bergaris tipis, tombol bertepi bawah lebih gelap yang turun saat ditekan.
   Token warna/ukuran ada di :root; ubah di sini untuk mengganti tema. */
:root {
  --bg: #f1f4f9; --card: #fff; --ink: #0c1a3c; --muted: #667091; --line: #e0e5f0; --edge: #cfd6e6; --soft: #ebeff7;
  --pri: #1257f0; --pri-2: #0e4ad1; --pri-deep: #0a399f; --pri-soft: #e2ebff; --accent: #ffc928; --accent-deep: #d39f00; --accent-ink: #1a1500;
  --warn: #a86200; --warn-soft: #fff0cf; --bad: #dc3a2d; --bad-soft: #ffe6e2; --info: #0b7f88; --info-soft: #dff4f6;
  --tag-bg: #ebeff7; --tag-ink: #4a567a; --ring: rgba(18, 87, 240, .18);
  --radius: 18px; --radius-sm: 14px; --tabbar-h: 68px;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
/* ukuran terkunci: tanpa zoom ketuk-ganda, tanpa pembesaran teks otomatis, tanpa geser ke samping */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: hidden; }
body { overflow-x: hidden; width: 100%; max-width: 100vw; overscroll-behavior-x: none; }
img, svg, video { max-width: 100%; }
a { color: var(--pri); text-decoration: none; font-weight: 500; }
b, strong { font-weight: 600; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sp { flex: 1; }
.ic { width: 22px; height: 22px; flex-shrink: 0; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- kerangka ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side { width: 248px; flex-shrink: 0; background: var(--card); box-shadow: 1px 0 0 var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.04em; color: var(--ink); padding: 6px 12px 16px; display: block; }
.brand b { color: var(--pri); font-weight: 800; }
.side a:not(.brand), .side button { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--muted); font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.side a:not(.brand):hover, .side button:hover { background: var(--soft); color: var(--ink); }
.side a.active { background: var(--pri); color: #fff; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 24px; padding-top: max(14px, env(safe-area-inset-top)); background: var(--bg); }
.avatar { width: 44px; height: 44px; border-radius: 99px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; flex-shrink: 0; letter-spacing: 0; }
.hello { min-width: 0; line-height: 1.25; }
.hello b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hello small { display: block; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--card); border: 0; color: var(--ink); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; line-height: 18px; text-align: center; padding: 0 5px; font-weight: 600; letter-spacing: 0; }
.menu-btn { display: none; }
main { flex: 1; min-width: 0; width: 100%; max-width: 1120px; margin: 0 auto; padding: 6px 24px 32px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.scrim { display: none; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(290px, 84vw); height: auto; transform: translateX(-105%); transition: transform .2s; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(12, 26, 60, .38); }
  .top { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  main { padding: 4px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  .page-head { align-items: stretch; }
  /* bilah tab bawah seperti di referensi */
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--card); padding: 8px 8px max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 52px; position: relative; color: #8d96b0; font: inherit; font-size: 12.5px; font-weight: 500; background: none; border: 0; cursor: pointer; padding: 0; min-width: 0; }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--pri); font-weight: 700; }
  .tabbar a.active .ic { stroke: var(--pri); stroke-width: 2; }
  /* tab aktif ditandai garis tebal di tepi atas bilah */
  .tabbar a.active::before { content: ''; position: absolute; top: -8px; left: 28%; right: 28%; height: 4px; border-radius: 0 0 4px 4px; background: var(--pri); }
  .tabbar span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #toasts { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 420px) {
  main { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 22px; }
  .g2, .g3 { grid-template-columns: 1fr !important; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .denoms { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- beranda ---------- */
.searchbar { display: flex; gap: 10px; margin-bottom: 16px; }
.searchbar .box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 0 16px; height: 52px; color: var(--muted); }
.searchbar input { border: 0; padding: 0; height: 100%; background: none; border-radius: 0; }
.searchbar input:focus { outline: none; }
.searchbar button { width: 52px; height: 52px; border-radius: 16px; border: 0; background: var(--pri); color: #fff; box-shadow: 0 3px 0 var(--pri-deep); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
/* banner: blok warna solid, angka besar sebagai pusat perhatian, foto produk asli di kanan */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 14px; margin-bottom: 16px; color: #fff; background: var(--pri); }
.hero h2 { color: #fff; font-size: 21px; font-weight: 800; margin: 6px 0 4px; }
.hero p { margin: 0; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .85); max-width: 30em; }
.hv-main { display: flex; gap: 6px; }
.hv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hv-k { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #bcd0ff; }
.hv-n { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0 16px; }
.hv-n b { font-size: 62px; line-height: .86; font-weight: 800; letter-spacing: -0.05em; color: var(--accent); }
.hv-n span { font-size: 15px; font-weight: 600; line-height: 1.2; color: #fff; padding-bottom: 2px; }
.hv-pics { position: relative; width: 128px; min-height: 130px; flex-shrink: 0; }
/* foto etalase: produk ada di kiri-tengah gambar, jadi dipotong ke bagian itu */
.hv-pics i { position: absolute; border: 3px solid #fff; border-radius: 14px; background-color: #f4f0e6; background-repeat: no-repeat; background-size: 236% auto; background-position: 18% 86%; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .45); }
.hv-pics i:nth-child(1) { left: 0; top: 0; width: 74px; height: 92px; transform: rotate(-8deg); }
.hv-pics i:nth-child(2) { right: 0; top: 26px; width: 76px; height: 100px; transform: rotate(7deg); }
.hv-foot { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 16px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.hv-foot b { color: #fff; font-weight: 700; }
@media (min-width: 861px) {
  .hero { padding: 26px 28px 18px; }
  .hv-n b { font-size: 84px; }
  .hv-n span { font-size: 18px; }
  .hv-pics { width: 210px; min-height: 150px; }
  .hv-pics i:nth-child(1) { width: 96px; height: 120px; }
  .hv-pics i:nth-child(2) { width: 100px; height: 130px; top: 18px; }
}
.btn.btn-accent { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; min-height: 34px; border: 0; box-shadow: 0 3px 0 var(--accent-deep); }
.btn.btn-accent:hover { background: #ffd24a; }
.btn.btn-accent:active { box-shadow: 0 1px 0 var(--accent-deep); }
/* menu cepat: satu panel putih; ikon di kotak membulat berwarna lembut, warnanya bergiliran */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 2px; margin-bottom: 22px; background: var(--card); border-radius: 20px; padding: 18px 6px 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; min-width: 0; }
.tile .circle { width: 52px; height: 52px; border-radius: 18px; background: var(--c, var(--pri-soft)); color: var(--ci, var(--pri)); display: flex; align-items: center; justify-content: center; }
.tile .circle .ic { width: 25px; height: 25px; stroke-width: 1.9; }
.tile:hover .circle { filter: brightness(.95); }
.tile:nth-child(6n+1) .circle { --c: #e2ebff; --ci: #1257f0; }
.tile:nth-child(6n+2) .circle { --c: #fff0d2; --ci: #b86200; }
.tile:nth-child(6n+3) .circle { --c: #dcf5e7; --ci: #0a8748; }
.tile:nth-child(6n+4) .circle { --c: #ffe6e2; --ci: #d23a2e; }
.tile:nth-child(6n+5) .circle { --c: #dff4f6; --ci: #0b7f88; }
.tile:nth-child(6n+6) .circle { --c: #0c1a3c; --ci: #ffc928; }
@media (min-width: 861px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.sec-head h2 { margin: 0; }
.sec-head a { display: inline-flex; font-weight: 700; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; }
.sec-head a .ic { width: 18px; height: 18px; }
/* angka di kanan kartu: rata tengah di kolomnya sendiri, tidak menempel ke tepi */
.pill-num { margin-left: auto; margin-right: 6px; min-width: 58px; text-align: center; flex-shrink: 0; line-height: 1.15; }
.pill-num.zero b { color: #a3abc2; }
.pill-num.wide { min-width: 0; text-align: right; margin-right: 2px; }
.pill-num.wide b { font-size: 17px; }
/* kartu produk (beranda, stok, ongkir): foto | tag + nama + varian | angka, lalu satu baris rincian */
.list-item.prod { flex-wrap: wrap; padding: 14px; }
.list-item .main .b { margin-bottom: 6px; }
.list-item .main .b + .b { margin-left: 4px; }
.list-item .main .small { margin-top: 2px; }
.prod-foot { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--line); }
.prod-foot .meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.prod-foot .meta b { color: var(--ink); font-weight: 600; }
.prod-foot .btn { flex-shrink: 0; }
.sum-line { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); margin: 6px 2px 12px; }
.sum-line b { color: var(--ink); font-weight: 600; }
.noimg.lg { width: 76px; height: 76px; border-radius: var(--radius-sm); }
.icon-btn.soft { background: var(--soft); box-shadow: none; color: var(--pri); width: 40px; height: 40px; border-radius: 12px; }
.icon-btn.soft:hover { background: var(--pri-soft); }
.icon-btn.soft .ic { width: 19px; height: 19px; }
.prod-foot .qty-ctl { flex-shrink: 0; }
.prod-foot .meta a { font-weight: 500; }
.icon-circle { width: 44px; height: 44px; border-radius: 99px; background: var(--soft); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.searchbox { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 0 16px; height: 52px; color: var(--muted); }
.searchbox input { border: 0; padding: 0; height: 100%; min-height: 0; background: none; border-radius: 0; box-shadow: none !important; }
.card .searchbox, .item-row .searchbox { background: var(--bg); }
.steps { counter-reset: step; }
.step-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }
.step-title h2 { margin: 0; }
.step-title .n { width: 26px; height: 26px; border-radius: 99px; background: var(--pri); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 0; }
@media (max-width: 420px) { .thumb.lg, .noimg.lg { width: 64px; height: 64px; } .pill-num { min-width: 50px; margin-right: 2px; } }
.pill-num b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--pri); }
.pill-num small { font-size: 12px; color: var(--muted); }
.pill-num.bad b { color: var(--bad); }
/* angka stok tampil sebagai lencana berwarna */
.pill-num { background: var(--pri-soft); border-radius: 14px; padding: 8px 4px 7px; margin-right: 2px; }
.pill-num.bad { background: var(--bad-soft); }
.pill-num.zero { background: var(--soft); }
.pill-num.wide { background: none; padding: 0; }

/* ---------- kartu & grid ---------- */
.card { background: var(--card); border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.card.tight { padding: 12px; }
/* semua kartu: garis tipis + bayangan sangat halus */
.card, .list-item, .stat, .tiles, .searchbar .box, .searchbox, .boxchip, .route-card, .ong-line, .ong-total, .svc, .tabs button { box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(12, 26, 60, .05); }
.card .list-item, .card .searchbox, .card .tabs button, .stat.pri { box-shadow: none; }
.grid { display: grid; gap: 10px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; justify-content: center; min-height: 92px; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; overflow-wrap: anywhere; line-height: 1.2; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.pri { background: var(--pri); color: #fff; }
.stat.pri .k, .stat.pri .s { color: rgba(255, 255, 255, .75); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 0; border-radius: var(--radius); background: var(--card); margin-bottom: 10px; color: inherit; font-weight: 400; }
.card .list-item { background: var(--bg); }
a.list-item:hover, button.list-item:hover { box-shadow: 0 0 0 1.5px var(--pri); }
.list-item .main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list-item .t { font-weight: 600; font-size: 16.5px; letter-spacing: -0.025em; line-height: 1.25; }
button.list-item { font: inherit; cursor: pointer; }

/* tanda (tag) kecil huruf besar seperti "LIMITED SLOTS" di referensi */
.b { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; line-height: 1.4; vertical-align: middle; }
.b-ok { background: var(--pri-soft); color: var(--pri); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-gray { background: var(--tag-bg); color: var(--tag-ink); }
.note { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: #0d4a52; font-size: 14px; margin-bottom: 12px; }
.note.warn { background: var(--warn-soft); color: #6b4a00; }
.note.ok { background: var(--pri-soft); color: var(--pri); }

/* ---------- form ---------- */
label.f { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
/* font 16px: di bawah itu iPhone otomatis zoom saat kolom diketuk */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; letter-spacing: -0.01em; background: #fff; color: var(--ink); min-height: 48px; }
input::placeholder, textarea::placeholder { color: #9aa3bb; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3.5px var(--ring); }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--pri); vertical-align: middle; }
input[type=file] { min-height: 0; }
/* iPhone Safari: kolom tanggal/jam punya lebar bawaan sendiri dan bisa melebihi layar */
input[type=date], input[type=time], input[type=datetime-local], input[type=month] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
.field { min-width: 0; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; min-height: 46px; border-radius: var(--radius-sm); border: 0; background: var(--pri); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 3px 0 var(--pri-deep); transition: transform .06s, box-shadow .06s, background .15s; letter-spacing: -0.015em; cursor: pointer; white-space: nowrap; text-align: center; }
/* tombol: warna solid dengan tepi bawah lebih gelap; turun saat ditekan */
.btn:hover { background: var(--pri-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pri-deep); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-light, .btn-light:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge), 0 3px 0 var(--edge); }
.btn-light:hover { background: #f7f9fc; }
.btn-light:active { box-shadow: inset 0 0 0 1.5px var(--edge), 0 1px 0 var(--edge); }
.btn-bad { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #f0c6c2, 0 3px 0 #f0c6c2; }
.btn-bad:hover { background: var(--bad-soft); }
.btn-bad:active { box-shadow: inset 0 0 0 1.5px #f0c6c2, 0 1px 0 #f0c6c2; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: 13.5px; border-radius: 11px; }
.btn-lg { padding: 15px 20px; min-height: 54px; font-size: 16.5px; width: 100%; white-space: normal; border-radius: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* chip pilihan (seperti "All Vendors / Caterers") */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 0; background: var(--card); color: var(--ink); padding: 9px 18px; min-height: 40px; border-radius: 99px; font: inherit; font-weight: 500; cursor: pointer; }
.card .tabs button { background: var(--bg); }
.tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- tabel ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--soft); white-space: nowrap; border-bottom: 0; }
tfoot td { font-weight: 600; background: var(--soft); border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--soft); display: block; }
.thumb.lg { width: 76px; height: 76px; border-radius: var(--radius-sm); }
.noimg { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 10px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
@media (max-width: 860px) {
  th, td { padding: 10px 8px; }
  td { font-size: 14px; }
  .tbl-wrap td:not(.num) { min-width: 130px; }
  .tbl-wrap td:has(> .thumb), .tbl-wrap td:has(> .noimg), .tbl-wrap td:has(> img), .tbl-wrap td:empty { min-width: 0; width: 1%; }
}
/* tabel yang tidak muat di layar berubah jadi susunan kartu: tidak ada geser ke samping */
.tbl-wrap.stack { overflow: hidden; }
.tbl-wrap.stack table, .tbl-wrap.stack tbody, .tbl-wrap.stack tfoot { display: block; width: 100%; background: none; }
.tbl-wrap.stack thead { display: none; }
.tbl-wrap.stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.tbl-wrap.stack tbody tr:last-child { border-bottom: 0; }
.tbl-wrap.stack td { display: block; border: 0; padding: 0; min-width: 0 !important; width: auto !important; text-align: left; white-space: normal; flex: 1 1 calc(33.33% - 12px); background: none; overflow-wrap: anywhere; }
.tbl-wrap.stack td.c-thumb { flex: 0 0 auto; }
.tbl-wrap.stack td.c-main { flex: 1 1 60%; }
.tbl-wrap.stack td.c-act { flex: 1 1 100%; text-align: right; }
.tbl-wrap.stack td:empty { display: none; }
.tbl-wrap.stack td[data-label]:not(.c-main)::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 1px; }
.tbl-wrap.stack tfoot tr { background: var(--soft); border-bottom: 0; }
.tbl-wrap.stack tfoot td.c-main { flex: 1 1 100%; }
.tbl-wrap.stack .qty-ctl input { width: 56px; }

/* ---------- foto ---------- */
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos a img, .photos .ph img { width: 108px; height: 108px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.photo-field .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.photo-field .ph { position: relative; }
.photo-field .ph img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); }
.photo-field .ph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 99px; border: 0; background: var(--bad); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.big-photo { max-width: 100%; max-height: 360px; border-radius: var(--radius); display: block; margin: 0 auto; }

/* ---------- scan ---------- */
.scan-box { background: var(--ink); color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.scan-box input { font-size: 20px; padding: 14px; background: #18294f; color: #fff; border-color: #2c3f6e; font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0; }
.scan-box input::placeholder { color: #93a0c4; }
.scan-status { margin-top: 10px; font-size: 16px; min-height: 24px; }
.scan-status.ok { color: #7be0a3; }
.scan-status.err { color: #ffb4a9; }
.scan-status.warn { color: #f5d77a; }
.flash { animation: flash .6s; }
@keyframes flash { from { background: #e2ebff; } to { background: inherit; } }
.qty-ctl { display: inline-flex; align-items: center; gap: 6px; }
.qty-ctl button { width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid var(--edge); box-shadow: 0 2px 0 var(--edge); background: #fff; cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.qty-ctl input { width: 64px; text-align: center; padding: 6px; min-height: 36px; }

/* ---------- baris barang (form drop & ongkir) ---------- */
.item-row { border-radius: var(--radius); padding: 12px; margin-bottom: 10px; background: var(--bg); }
.row-main { display: grid; grid-template-columns: 1fr 90px 44px; gap: 8px; align-items: center; }
.ong-row { display: grid; grid-template-columns: 1fr 80px 44px; gap: 8px; align-items: center; }
.row-main .btn, .ong-row .btn { padding: 0; width: 44px; min-height: 48px; }
.ong-w { margin-top: 10px; }
@media (max-width: 520px) { .row-main { grid-template-columns: 1fr 70px 44px; } .ong-row { grid-template-columns: 1fr 66px 44px; } }
.row-new { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--edge); }
.row-info { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.row-info:empty { display: none; }
.np-newcat { margin-top: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--pri-soft); }
.nsku { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 600; letter-spacing: .3px; }
.item-row .pname:disabled { background: var(--soft); }
.tag-new { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--pri); margin-bottom: 10px; }

/* ---------- pecahan uang ---------- */
.denoms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.denom label { font-weight: 600; color: var(--ink); }
.denom .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.total-line { margin-top: 12px; padding: 14px 16px; background: var(--pri-soft); border-radius: var(--radius-sm); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--pri); }

/* ---------- kurir ---------- */
.task { box-shadow: inset 4px 0 0 var(--accent), 0 0 0 1px var(--line); }
.task.done { box-shadow: inset 4px 0 0 var(--pri), 0 0 0 1px var(--line); }
.kode { overflow-wrap: anywhere; font-size: clamp(20px, 6.5vw, 26px); font-weight: 700; letter-spacing: .5px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 7px 12px; align-items: baseline; }
.kv > div:nth-child(odd) { color: var(--muted); }
.kv > div { min-width: 0; overflow-wrap: anywhere; }
.card { min-width: 0; }
@media (max-width: 520px) { .kv { grid-template-columns: 110px 1fr; } }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12, 26, 60, .5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 22px; padding: 20px; width: 100%; max-width: 560px; }
@media (max-width: 860px) { .modal-bg { padding: 16px 10px; align-items: center; } }
#toasts { position: fixed; z-index: 90; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 28px)); }
.toast { background: var(--ink); color: #fff; padding: 13px 16px; border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); font-size: 14px; cursor: pointer; }
.toast.err { background: var(--bad); }
.toast.ok { background: var(--pri); }

/* pop-up foto di tengah layar (foto produk tampil bersama data utamanya) */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12, 26, 60, .7); display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.lb-card { position: relative; background: #fff; border-radius: 22px; width: min(290px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.lb-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 99px; border: 0; background: rgba(12, 26, 60, .72); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.lb-body { flex: 0 1 auto; min-height: 120px; overflow: auto; -webkit-overflow-scrolling: touch; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.lb-body img { max-width: 100%; max-height: 30vh; object-fit: contain; display: block; cursor: zoom-in; }
.lightbox.zoomed .lb-card { width: 100%; height: 100%; }
.lightbox.zoomed .lb-body { flex: 1 1 auto; display: block; }
.lightbox.zoomed .lb-body img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
.lightbox.zoomed .lb-info { display: none; }
.lb-info { padding: 12px 16px 2px; overflow-y: auto; flex: 0 1 auto; }
.lb-info:empty { display: none; }
.lb-title { font-weight: 600; font-size: 16px; letter-spacing: -0.025em; line-height: 1.25; }
.lb-sub { color: var(--muted); margin-top: 2px; }
.lb-kv { margin-top: 10px; grid-template-columns: 96px 1fr; gap: 4px 10px; font-size: 13.5px; }
.lb-sub { font-size: 13.5px; }
.lb-foot .btn { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 14px; }
.lb-hint { color: var(--muted); font-size: 12px; }
body.lb-open { overflow: hidden; }

/* saran produk di bawah kotak cari */
.pp-list { margin-top: 8px; border-radius: var(--radius-sm); background: #fff; max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 0 0 1.5px var(--line); }
.pp-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.pp-item:last-child { border-bottom: 0; }
.pp-item:hover, .pp-item:focus { background: var(--pri-soft); outline: none; }
.pp-item img, .pp-noimg { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--soft); }
.pp-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pp-txt b { font-weight: 500; letter-spacing: -0.02em; }
.pp-txt span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pp-more { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg); }
.login { width: 100%; max-width: 400px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(12, 26, 60, .05); border-radius: 24px; padding: 28px 24px; text-align: center; }
.login h1 { font-size: 26px; margin-bottom: 18px; }
.login .field { text-align: left; }
.login .logo { width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.login .logo .ic { width: 32px; height: 32px; }
/* login cepat: tombol sidik jari/wajah di atas kolom password, lalu garis "atau pakai password" */
.login #quickBtn { margin-top: 14px; }
.login #quickBtn .ic { width: 22px; height: 22px; }
.login .hint { text-align: center; margin-top: 10px; }
.login .or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 13px; }
.login .or::before, .login .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#quickCard:empty { display: none; }
#quickCard .list-item { background: var(--bg); box-shadow: none; }

/* ---------- Cek Ongkir ---------- */
.ong-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 980px) { .ong-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } .ong-right { position: sticky; top: 84px; } }
.ong-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.route-card { background: var(--card); border-radius: var(--radius); padding: 14px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.route-card .t { font-weight: 500; font-size: 15px; letter-spacing: -0.02em; line-height: 1.25; margin-top: 6px; overflow-wrap: anywhere; text-transform: capitalize; }
.route-card .small { overflow-wrap: anywhere; text-transform: capitalize; }
.route-card.empty .t { color: var(--muted); text-transform: none; }
.route-card .btn { margin-top: auto; }
.route-card .small + .btn { margin-top: 10px; }
.ong-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; grid-template-areas: "img main rm" "foot foot foot"; gap: 10px 12px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.ong-line .img { grid-area: img; }
.ong-line .img.noimg, .ong-line .thumb { width: 52px; height: 52px; }
.ong-line .main { grid-area: main; min-width: 0; }
.ong-line .t { font-weight: 500; font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.ong-line .rm { grid-area: rm; justify-self: end; }
.ong-line .foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.ong-total { display: grid; grid-template-columns: minmax(0, 1fr) 118px auto; gap: 12px; align-items: end; margin: 12px 0 0; padding: 14px; }
.ong-total .tot { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ong-total .tot b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--pri); }
.ong-total .extra { display: flex; flex-direction: column; gap: 4px; }
.ong-total .extra input { min-height: 46px; padding: 8px 12px; }
.ong-total .btn { min-height: 46px; }
@media (max-width: 420px) { .ong-total { grid-template-columns: minmax(0, 1fr) 104px; } .ong-total .btn { grid-column: 1 / -1; } }
.ong-empty { display: flex; align-items: center; gap: 12px; padding: 18px; }
.ong-empty .ic { width: 28px; height: 28px; color: var(--pri); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc { position: relative; background: var(--card); border-radius: var(--radius); padding: 14px; min-width: 0; display: flex; flex-direction: column; }
.svc.best { box-shadow: inset 0 0 0 1.5px var(--pri); }
.svc .icon-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 4px; padding-right: 38px; min-height: 22px; }
.svc .t { font-weight: 600; font-size: 16.5px; letter-spacing: -0.025em; margin-top: 8px; overflow-wrap: anywhere; }
.svc .desc { min-height: 2.6em; line-height: 1.3; }
.svc .price { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: var(--pri); margin-top: 8px; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Laporan Penjualan ---------- */
.stat.pri .up, .stat.pri .down { color: #fff; font-weight: 700; }
#mbtn .caret { font-size: 12px; color: var(--muted); }
#sbody .list-item .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.neg { color: var(--bad) !important; }
.up { color: #0a8748; } .down { color: var(--bad); }
.stat .v.neg { color: #ffd0cb !important; }
.stat:not(.pri) .v.neg { color: var(--bad) !important; }
.mrow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mrow:first-child { padding-top: 0; } .mrow:last-of-type { border-bottom: 0; }
.mrow-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.mrow-h span { color: var(--muted); font-size: 13px; }
.bar { position: relative; height: 10px; border-radius: 99px; background: var(--soft); margin: 8px 0; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #bcd0ff; }
.bar i.net { background: var(--pri); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 99px; background: #bcd0ff; vertical-align: -1px; margin-left: 6px; }
.dot.net { background: var(--pri); }
.bar i.ad { background: var(--accent); height: 4px; top: auto; }
.dot.ad { background: var(--accent); }
.mrow-k { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12.5px; color: var(--muted); }
.mrow-k b { color: var(--ink); font-weight: 700; }
.rank { width: 28px; flex-shrink: 0; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); }
.list-item.prod:nth-child(-n+3) .rank { color: var(--accent-deep); }
.pcells { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; min-width: 0; flex: 1; }
.pcells::-webkit-scrollbar { display: none; }
.pcell { flex: 0 0 auto; background: var(--bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; line-height: 1.25; min-width: 104px; }
.pcell small { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pcell b { font-size: 14.5px; font-weight: 800; }
.pcell b.up::after { content: ' ▲'; font-size: 10px; } .pcell b.down::after { content: ' ▼'; font-size: 10px; }
.pcell span { font-size: 11.5px; color: var(--muted); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.frow:last-child { border-bottom: 0; }
.frow span { min-width: 0; overflow-wrap: anywhere; }
.frow b { font-weight: 700; white-space: nowrap; }
.frow small { color: var(--muted); text-align: right; }
.frow.sub { padding: 5px 0 5px 14px; font-size: 13px; color: var(--muted); border-bottom-style: dashed; }
.frow.sub b { font-weight: 600; color: var(--muted); }
.frow.tot { font-size: 15px; } .frow.tot span, .frow.tot b { font-weight: 800; }

/* satu baris kotak teks yang digeser ke samping (kategori, lalu grup produk di dalam kategori) */
.boxes { position: relative; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 4px; margin: 0 -2px 12px; scrollbar-width: none; }
.boxes::-webkit-scrollbar { display: none; }
.boxchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 0; border-radius: 14px; padding: 0 16px; height: 48px; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; cursor: pointer; }
.boxchip small { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.boxchip.on { background: var(--ink); color: #fff; box-shadow: none; }
.boxchip.on small { color: rgba(255, 255, 255, .78); }
.boxchip.back { background: transparent; box-shadow: inset 0 0 0 1.5px var(--edge); color: var(--muted); padding: 0 14px; }
.searchbar button.alt { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-deep); }
.list-item.opt { width: 100%; text-align: left; background: var(--bg); }
.list-item.opt.on { box-shadow: inset 0 0 0 1.5px var(--pri); background: var(--pri-soft); }

/* chip kategori & grup produk (Stok Gudang) */
.chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex-shrink: 0; border: 0; background: var(--card); color: var(--ink); padding: 9px 16px; min-height: 40px; border-radius: 99px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chips button small { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.chips button.on { background: var(--ink); color: #fff; }
.chips button.on small { color: rgba(255, 255, 255, .75); }
.chips.sub button { background: transparent; box-shadow: inset 0 0 0 1.5px var(--edge); min-height: 36px; padding: 7px 14px; font-size: 14px; }
.chips.sub button.on { background: var(--pri-soft); color: var(--pri); box-shadow: inset 0 0 0 1.5px var(--pri); }
.chips.sub button.on small { color: var(--pri); }

/* ---------- label print ---------- */
#print-root { display: none; }
.plabel, .blabel { background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--s) * 1.2mm); }
/* label produk = barcode + SKU saja; barcode mengisi seluruh tinggi yang tersisa */
.plabel { padding: calc(var(--s) * 1.5mm) 2mm; }
.plabel svg.bc { width: 100%; flex: 1 1 0; height: 0; min-height: 0; display: block; }
.pl-sku { text-align: center; font-weight: 700; letter-spacing: .3px; line-height: 1.15; margin-top: calc(var(--s) * 0.5mm); white-space: nowrap; }
.blabel { font-size: 6.5pt; }
.bl-head { display: flex; justify-content: space-between; font-size: 7.5pt; border-bottom: 0.3mm solid #000; padding-bottom: 0.6mm; }
.blabel svg.bc { width: 100%; height: 12mm; display: block; margin-top: 1mm; }
.bl-code { text-align: center; font-weight: 700; font-size: 9pt; letter-spacing: .5px; }
.bl-sum { text-align: center; font-weight: 700; font-size: 7pt; border-bottom: 0.3mm solid #000; padding-bottom: 0.6mm; margin-bottom: 0.6mm; }
.bl-list { margin: 0; padding-left: 3.4mm; line-height: 1.25; }
.bl-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.label-preview > div { outline: 1px dashed #94a3b8; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .plabel, .blabel { page-break-after: always; break-after: page; }
}

/* ---------- trip & label unit ---------- */
.trip-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.trip-steps span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg2, #eef2fb); border-radius: 8px; padding: 4px 6px; font-size: 11px; color: var(--muted, #667); text-align: center; line-height: 1.2; }
.trip-steps span b { display: block; font-size: 15px; color: var(--ink, #111); }
.trip-steps span.part { background: #fff4cc; }
.trip-steps span.ok { background: #d9f5e3; }
.bag-no { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 700; }
.bag-no b { font-size: 34px; line-height: 1; background: var(--yellow, #ffd23f); color: #111; border-radius: 10px; padding: 6px 14px; }
.bag-no span { font-weight: 400; font-size: 13px; color: var(--muted, #667); }
.trip-g { border-top: 1px solid var(--line, #e3e7f0); padding: 8px 0; }
.trip-g summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.trip-g summary .main { flex: 1; min-width: 0; }
.trip-g summary .right { text-align: right; white-space: nowrap; }
.trip-g .ok-t { color: #148a46; font-weight: 700; }
.trip-units { display: grid; gap: 6px; margin: 8px 0 0 52px; }
.tu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tu.void { opacity: .55; text-decoration: line-through; }
.ulabel { background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; overflow: hidden; display: flex; flex-direction: column; padding: 1.2mm 1.6mm; }
.ulabel svg.bc { width: 100%; height: 52%; display: block; flex: 0 0 auto; }
.ul-row { display: flex; justify-content: center; font-size: 3.6mm; margin-top: .6mm; line-height: 1.15; white-space: nowrap; }
.ul-line { font-size: 3mm; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media print { .ulabel { page-break-after: always; break-after: page; } }

/* ---------- Belanja staf Madinah/Makkah (alur Amanah Saudia) ---------- */
.flow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: -4px 0 16px; }
.flow3 span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.flow3 b { width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font-size: 12px; flex-shrink: 0; }
.flow3 .now { color: var(--ink); box-shadow: 0 0 0 2px var(--pri); }
.flow3 .now b { background: var(--pri); color: #fff; }
.flow3 .ok b { background: var(--accent); color: var(--accent-ink); }
.tile .circle { position: relative; }
.tbadge { position: absolute; top: -5px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }
.tcount { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 12px; }
button.list-item { width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.beli-h { display: flex; gap: 12px; align-items: center; }
.beli-h .main { min-width: 0; }
.beli .photos { margin-top: 8px; }
.stepper { display: flex; align-items: stretch; }
.stepper input { text-align: center; border-radius: 0; min-width: 0; }
.stepper button { width: 46px; flex-shrink: 0; border: 1px solid var(--line); background: var(--soft); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink); }
.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }
.vbar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 8px 0 2px; }
.vbar i { display: block; height: 100%; width: 0; background: var(--pri); transition: width .2s; }
.vid { width: 100%; max-height: 360px; border-radius: 14px; background: #000; margin: 6px 0; }
.vprev { margin-bottom: 6px; }
.codes { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.brow { align-items: end; }
@media (max-width: 560px) { .brow > .field:nth-child(-n+2) { grid-column: 1 / -1; } }
.brow + .brow { border-top: 1px dashed var(--line, #dde3ee); padding-top: 10px; margin-top: 4px; }
.kq { text-align: center; }
@media (max-width: 560px) { .flow3 span { flex-direction: column; gap: 4px; text-align: center; font-size: 12px; padding: 8px 4px; } }
.ok-t { color: #148a46; }
.tabs.seg3, .tabs.seg2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tabs.seg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tabs.seg3 button, .tabs.seg2 button { padding: 9px 4px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-log { font-size: 12.5px; line-height: 1.5; max-height: 340px; overflow: auto; word-break: break-all; } .pt-log .ok { color: #148a46; } .pt-log .err { color: var(--bad); } .pt-log .warn { color: var(--warn); } .pt-log .mono { font-family: ui-monospace, monospace; color: var(--muted); }

/* kartu barang daftar belanja (CEO) */
.bitem { padding: 14px; margin-bottom: 10px; }
.bi-top { display: flex; gap: 12px; align-items: flex-start; }
.bi-top .thumb, .bi-top .noimg { flex-shrink: 0; }
.bi-h { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.bi-t { font-weight: 650; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.02em; }
.bi-meta { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.bi-meta b { color: var(--ink); font-weight: 600; }
.bi-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 12px; }
.bi-s { background: var(--soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bi-s b { font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.bi-s b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bi-s span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.bi-s.warn { background: #fff4d6; }
.bi-s.warn b { color: #8a5a00; }
.bi-note { margin-top: 10px; }
.bi-act { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 420px) { .bi-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bi-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.kvs { margin-top: 12px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.kv > span { color: var(--muted); font-size: 13px; }
.kv .muted { font-size: 13px; margin-top: 2px; }
.bitem .photos { margin-top: 10px; }
.bi-prog { margin-top: 12px; }
.bi-prog .pb { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 6px 0 2px; }
.bi-prog .pb i { display: block; height: 100%; background: var(--pri); border-radius: 99px; }
.bi-prog .pbl { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.bi-prog .pbl b { color: var(--ink); }
.bi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bi-chip { background: var(--soft); border-radius: 99px; padding: 5px 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bi-chip b { color: var(--ink); font-weight: 700; }
.bi-chip.warn { background: #fff4d6; color: #8a5a00; }
.bi-chip.warn b { color: #8a5a00; }

/* belanja online: formulir order & SOP penerimaan */
.ol-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ol-row.miss .lpick { box-shadow: 0 0 0 1.5px #e0a400; }
.ol-nota { margin-bottom: 4px; overflow-wrap: anywhere; }
.ol-match { margin-top: 4px; }
.bad-t { color: #b42318; }
.scanrow { display: flex; gap: 8px; }
.scanrow input { flex: 1; min-width: 0; font-size: 17px; }
.scanrow .btn { flex-shrink: 0; }
.step-title.locked { opacity: .45; }
.stepc.locked { opacity: .45; pointer-events: none; }
.ol-prog { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.ol-prog i { display: block; height: 100%; background: var(--pri); border-radius: 99px; }
.ol-scan.done { box-shadow: 0 0 0 1.5px #1f9d55; }
.ol-scan.done .pill-num b { color: #1f9d55; }
.ol-scan.part .pill-num b { color: #8a5a00; }
.pill-num.bad b { color: #b42318; }
.camscan { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; margin-top: 8px; }
.ol-g { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px auto; gap: 8px; align-items: end; }
.ol-g .field { margin-bottom: 0; min-width: 0; }
.ol-g .lrm { padding-left: 14px; padding-right: 14px; font-size: 20px; line-height: 1; }
@media (max-width: 640px) { .ol-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .ol-g .ol-p { grid-column: 1 / -1; } }
.ol-undo { background: none; border: 0; padding: 4px 0 0; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
#jenisTabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#jenisTabs .ic { width: 17px; height: 17px; }
.trk-row { margin-top: 4px; }
.trk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.trk .ic { width: 17px; height: 17px; }
.trk-box .trk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.trk-box .trk-head .b { margin-top: 4px; font-size: 11.5px; }
.trk-tl { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.trk-tl li { position: relative; padding: 0 0 12px 4px; }
.trk-tl li:last-child { padding-bottom: 0; }
.trk-tl li::before { content: ''; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--edge); border: 2px solid var(--card); }
.trk-tl li.now::before { background: var(--pri); box-shadow: 0 0 0 3px var(--ring); }
.trk-tl li.now .d { font-weight: 700; }
.trk-tl .d { overflow-wrap: anywhere; }
.trk-more { margin-top: 10px; }
.trk-more summary { cursor: pointer; color: var(--pri); font-weight: 600; font-size: 13px; }
.km-src .list-item.flat { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.km-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.km-h { margin: 14px 0 6px; font-size: 15px; }
.km-row { margin-bottom: 6px; }
.km-row .km-q { width: 76px; text-align: center; font-size: 16px; font-weight: 700; flex: none; }
.km-sum { margin: 10px 0; font-weight: 700; color: var(--pri); }
.km-void { opacity: .6; }

/* tombol kamera langsung + galeri (foto & video) */
.cam-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* plastik SAUDIA: nomor tidak terpotong, keterangan turun ke baris berikut di HP */
.bag-no { flex-wrap: wrap; }
.bag-no b { white-space: nowrap; font-size: 28px; }
.bag-no span { flex: 1 1 220px; }

/* scan barcode pakai kamera HP */
.cam-scan-btn { width: 100%; margin: 4px 0 8px; font-size: 17px; }
.scan-input.scan-type { font-size: 15px; padding-top: 10px; padding-bottom: 10px; }
.cam-wrap { position: relative; }
.cam-aim { position: absolute; left: 10%; right: 10%; top: 38%; bottom: 38%; border: 3px solid var(--yellow, #ffd23f); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.cam-wrap .camscan { display: block; }

/* indikator printer label di atas (sambung otomatis) */
.pr-chip { border: 0; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 700; background: var(--soft, #eef2ff); color: var(--ink, #1b2559); white-space: nowrap; cursor: pointer; }
.pr-chip.ok { background: #dcf5e7; color: #0f6b3a; }
.pr-chip.warn { background: #fff3cd; color: #7a5b00; }
.pr-chip.bad { background: #fde2e1; color: #a32019; }

/* jemput plastik SAUDIA */
.jm-pick { display: flex; align-items: center; padding-right: 6px; }
.jm-pick input { width: 22px; height: 22px; }
.jm-drop { border-top: 1px solid var(--line, #e5e7f0); padding-top: 10px; margin-top: 10px; }
.jm-drop h3 { margin: 0 0 6px; font-size: 16px; }
/* status panjang (mis. "Sudah diantar Pak Mus ke …") turun ke baris berikutnya, tidak terpotong */
.trip-g .t .b, .list-item .t .b { white-space: normal; display: inline-block; max-width: 100%; line-height: 1.35; vertical-align: middle; }

/* pramugari: wajib isi hotel, isi plastik, pengingat admin */
.cr-wajib { text-align: center; padding: 22px 16px; }
.cr-wajib form { text-align: left; margin-top: 12px; }
.cr-plane { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.cr-item { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.cr-item .main { flex: 1; min-width: 0; font-size: 14px; }
.cr-item .thumb, .cr-item .noimg { width: 40px; height: 40px; flex-shrink: 0; }
.cr-alert { border: 2px solid var(--yellow, #ffd23f); }
.cr-wa { background: #25d366; color: #fff; border: 0; }

/* pratinjau pesan WhatsApp */
.wa-prev { white-space: pre-wrap; background: #e7f8ee; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; max-height: 260px; overflow: auto; }

/* pilihan tempat menginap & gedung Compound */
.cr-stay, .cr-bld { display: grid; gap: 8px; }
.cr-stay { grid-template-columns: 1fr; }
.cr-bld { grid-template-columns: repeat(6, 1fr); }
.cr-opt { position: relative; display: block; }
.cr-opt input { position: absolute; opacity: 0; inset: 0; }
.cr-opt span { display: block; border: 2px solid var(--line, #e5e7f0); border-radius: 12px; padding: 12px 14px; font-weight: 600; background: #fff; text-align: left; }
.cr-bld .cr-opt span { text-align: center; padding: 12px 0; font-size: 18px; }
.cr-opt input:checked + span { border-color: var(--pri, #2b59ff); background: #eef2ff; color: var(--pri, #2b59ff); }

/* tombol Tanya admin di beranda pramugari */
.cr-tanya { text-align: center; border: 2px solid var(--yellow, #ffd23f); }
.cr-tanya h2 { margin: 6px 0 4px; }

/* Poin pramugari & akun (25 Nov 2026) */
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.chk input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.pt-hero { background: var(--pri); color: #fff; }
.pt-hero .small { color: rgba(255, 255, 255, .8); }
.pt-hero .btn { background: var(--yellow, #ffd23f); color: #10213f; }
.pt-big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 2px 0 4px; }
.pt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pt-cat { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pt-cat input, .pt-prod input { width: 100%; min-width: 0; }
.pt-prod { display: grid; grid-template-columns: 1fr 90px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line, #e6e9f0); font-size: 13.5px; }
.pt-prod span { min-width: 0; overflow-wrap: anywhere; }
.cr-poin { display: inline-block; font-size: 12px; font-weight: 700; color: #7a5a00; background: #fff3c4; border-radius: 999px; padding: 1px 8px; }

/* Plastik Anda (pramugari): status besar + foto tag/plastik untuk concierge (Farid 25 Nov 2026) */
.cr-bag { margin-bottom: 10px; }
.cr-bag-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cr-bag-h b { font-size: 18px; }
.cr-st { margin: 8px 0 4px; }
.cr-st .b { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; padding: 10px 12px; border-radius: 10px; white-space: normal; }
.cr-bag-hotel { border: 2px solid #148a46; }
.cr-howto { font-size: 16px; line-height: 1.5; background: #eafbf1; color: #0f5e31; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.cr-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.cr-pic { border: 1px solid var(--line, #e3e7f0); border-radius: 10px; padding: 0; background: #fff; overflow: hidden; cursor: zoom-in; text-align: center; font: inherit; color: inherit; }
.cr-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cr-pic span { display: block; font-size: 14px; font-weight: 700; padding: 6px 4px; }
.cr-st .b { text-transform: none; letter-spacing: 0; }
.cr-bag-hotel .cr-st .b { background: #148a46; color: #fff; }

/* Pantau Barang (Farid 25 Nov 2026) */
.pt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-ph-row { border-top: 1px solid var(--line, #e3e7f0); }
.pt-ph-row > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; }
.pt-ph-row > summary::-webkit-details-marker { display: none; }
.pt-ph-row.empty > summary { opacity: .55; cursor: default; }
.pt-step { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #e2ebff; color: #2556e8; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pt-lbl { flex: 1; min-width: 0; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pt-n { flex-shrink: 0; text-align: right; font-size: 20px; font-weight: 800; line-height: 1; }
.pt-n small { display: block; font-size: 11px; font-weight: 600; color: #6b7590; }
.pt-body { padding: 0 0 12px 36px; }
.pt-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7590; margin: 12px 0 4px; }
.pt-click { cursor: pointer; }
.pt-click:hover { background: #f5f8ff; }
.pt-feed { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line, #e3e7f0); line-height: 1.4; }
.pt-feed .main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pt-ic { flex-shrink: 0; width: 24px; text-align: center; font-size: 18px; }
.pt-res { margin: 0 0 12px; }
.pt-res .card { margin: 8px 0 0; }
.pt-now { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #2556e8; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.4; }
.pt-tl { list-style: none; margin: 8px 0 0; padding: 0; }
.pt-tl li { position: relative; padding: 0 0 14px 24px; border-left: 2px solid #cfd8ea; margin-left: 7px; }
.pt-tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.pt-tl li::before { content: ''; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #148a46; border: 2px solid #fff; box-shadow: 0 0 0 1px #148a46; }
.pt-tl li.wait::before { background: #fff; box-shadow: 0 0 0 1px #b6bfd3; }
.pt-tl li.wait .pt-tl-t, .pt-tl li.wait .pt-tl-m { color: #9aa3b8; }
.pt-tl-t { font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pt-tl-m { font-size: 13px; color: #4d5670; margin-top: 2px; overflow-wrap: anywhere; }
.pt-tl-d { font-size: 13px; margin-top: 4px; line-height: 1.45; overflow-wrap: anywhere; }
.pt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 6px; max-width: 420px; }
.pt-ph { border: 1px solid var(--line, #e3e7f0); border-radius: 8px; padding: 0; background: #fff; overflow: hidden; cursor: zoom-in; font: inherit; color: inherit; }
.pt-ph img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pt-ph span { display: block; font-size: 11px; font-weight: 700; padding: 3px 2px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pt-chip { background: #eef3ff; border-radius: 999px; padding: 3px 10px; font-size: 13px; line-height: 1.4; }

/* Kerapian teks (Farid 25 Nov 2026): kode SKU/label tidak patah di tengah; teks abu-abu di kotak scan gelap tetap terbaca */
span.mono { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: baseline; }
.scan-box .muted, .scan-box label.f, .scan-box .hint, .scan-box .small.muted { color: #b9c3dd; }
.scan-box .card .muted, .scan-box .card label.f, .scan-box .card .hint { color: var(--muted, #667091); }

/* Jemput di bandara (Farid 25 Nov 2026) */
.bd-card { margin-bottom: 10px; }
.bd-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-name { font-size: 18px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.bd-eta { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #eef3ff; color: #1d3fae; font-size: 16px; line-height: 1.4; }
.kv .b { white-space: normal; display: inline-block; max-width: 100%; line-height: 1.35; }

/* Jemput di bandara: penjemput + WA pengingat (Farid 26 Nov 2026) */
.bd-sec { margin: 16px 0 8px; font-size: 17px; }
.bd-today { border: 2px solid #f2b705; }
.bd-h { flex-wrap: nowrap; align-items: flex-start; }
.bd-h .main { flex: 1; min-width: 0; }
.bd-wa { flex-shrink: 0; white-space: nowrap; }
.bd-wa-st { margin-top: 4px; }
.bd-eta .b { margin-left: 4px; vertical-align: middle; }
.bd-pj .f { font-size: 13px; font-weight: 700; color: var(--muted, #667091); margin-bottom: 6px; }
.bd-pj-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-opt { flex: 1 1 120px; min-height: 44px; border-radius: 12px; border: 2px solid var(--edge, #cfd6e6); background: #fff; font: inherit; font-weight: 700; color: var(--ink, #0c1a3c); cursor: pointer; padding: 8px 12px; }
.bd-opt.on { border-color: #2556e8; background: #2556e8; color: #fff; }
.cr-pj { border: 2px solid #148a46; }
.cr-pj-t { font-weight: 700; color: #0f5e31; }
.cr-pj-n { font-size: 22px; font-weight: 800; margin: 2px 0; }

/* Fee bawaan (Farid 26 Nov 2026) */
.fee-sum { margin-bottom: 12px; }
.fee-person > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.fee-person > summary::-webkit-details-marker { display: none; }
.fee-person > summary .main { flex: 1; min-width: 0; }
.fee-name { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.fee-amt { flex-shrink: 0; text-align: right; line-height: 1.2; }
.fee-amt b { display: block; font-size: 16px; }
.fee-amt small { display: block; font-size: 11px; color: var(--muted, #667091); }
.fee-month { margin-top: 12px; }
.fee-mh { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--soft, #ebeff7); border-radius: 8px; font-size: 14px; }
.fee-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--line, #e0e5f0); }
.fee-row .main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fee-row > b { flex-shrink: 0; white-space: nowrap; }
.fee-tot { border-bottom: 0; font-weight: 800; }
.fee-bulk { display: flex; gap: 6px; }
.fee-bulk select { flex: 1 1 40%; min-width: 0; }
.fee-bulk input { flex: 1 1 30%; min-width: 0; }
.fee-prod { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line, #e0e5f0); }
.fee-prod .main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fee-in { flex-shrink: 0; display: flex; align-items: center; gap: 4px; width: 132px; }
.fee-in span { font-size: 13px; color: var(--muted, #667091); }
.fee-in input { width: 100%; min-width: 0; text-align: right; }
.fee-save { position: sticky; bottom: 76px; padding: 8px 0; z-index: 5; }
.fee-sum.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fee-sum .stat { padding: 10px; }
.fee-sum .stat .v { font-size: 15px; overflow-wrap: anywhere; }
.fee-sum .stat .k { font-size: 12px; }

/* kotak ringkasan yang bisa diklik (Farid 26 Nov 2026) */
a.stat-link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .1s; }
a.stat-link:active { transform: scale(.98); }
a.stat-link .s { color: var(--muted, #667091); }
a.stat-link.pri .s { color: inherit; opacity: .85; }

/* Rekap per titik drop: kartu per lokasi, bukan tabel (Farid 26 Nov 2026) */
.rd-row { padding: 10px 0; border-top: 1px solid var(--line, #e0e5f0); }
.rd-card h2 + .rd-row { border-top: 0; }
.rd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rd-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.rd-uang { flex-shrink: 0; font-weight: 800; font-size: 16px; white-space: nowrap; }
.rd-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--muted, #667091); }
.rd-meta b { color: var(--ink, #0c1a3c); }
.rd-total { border-top: 2px solid var(--ink, #0c1a3c); margin-top: 4px; }
.rd-total .rd-uang { color: #2556e8; }
a.rd-row.rd-link { display: block; color: inherit; text-decoration: none; cursor: pointer; border-radius: 10px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
a.rd-row.rd-link:hover, a.rd-row.rd-link:active { background: var(--soft, #ebeff7); }

/* Pengaturan → Pengguna & titik drop: daftar kartu, bukan tabel (Farid 26 Nov 2026) */
.pg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.pg-head h2 { margin: 0; }
.pg-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--edge, #cfd6e6); border-radius: 12px; padding: 0 12px; margin-bottom: 6px; background: #fff; }
.pg-search .ic { width: 18px; height: 18px; flex: none; color: var(--muted, #667091); }
.pg-search input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 11px 0; background: transparent; font: inherit; }
.pg-role { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #667091); }
.pg-role span { background: var(--soft, #ebeff7); border-radius: 99px; padding: 1px 8px; font-size: 12px; letter-spacing: 0; }
.pg-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, #e0e5f0); }
.pg-role + .pg-row { border-top: 0; }
.pg-row .main { flex: 1; min-width: 0; }
.pg-row .main .t { font-weight: 700; overflow-wrap: anywhere; line-height: 1.35; }
.pg-row .small { overflow-wrap: anywhere; }
.pg-row > .btn { flex-shrink: 0; }
.pg-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 55%; }
.pg-ava { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e2ebff; color: #2556e8; font-weight: 800; }
.pg-user.off .pg-ava { background: var(--soft, #ebeff7); color: var(--muted, #667091); }
.pg-user.off .t { color: var(--muted, #667091); }

/* Mode ganda: tombol pindah mode di header + pilihan di Akun Saya (Farid 26 Nov 2026) */
.mode-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; background: #0c1a3c; color: #fff; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.mode-chip.alt { background: #f2b705; color: #0c1a3c; }
.mode-chip span { opacity: .8; }
.mode-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 2px solid var(--edge, #cfd6e6); border-radius: 14px; background: #fff; padding: 12px; font: inherit; font-size: 22px; cursor: pointer; color: var(--ink, #0c1a3c); }
.mode-opt b { font-size: 15px; }
.mode-opt span { font-size: 12px; color: var(--muted, #667091); line-height: 1.3; }
.mode-opt.on { border-color: #2556e8; background: #eef3ff; }

/* Pesanan Shopee (26 Nov 2026) */
.ps-amt { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-amt b { font-size: 15px; white-space: nowrap; }
.ps-amt small { color: var(--muted); font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-tabs .ps-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.ps-tabs button.on .ps-n { background: rgba(255,255,255,.2); color: #fff; }
.ps-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ps-sn { font-size: 22px; overflow-wrap: anywhere; margin: 4px 0 0; }
.ps-item { background: var(--bg); }
.ps-item > b { flex-shrink: 0; white-space: nowrap; }
.ps-tot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ps-tot > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); }
.ps-tot > div span:last-child { color: var(--ink); white-space: nowrap; }
.ps-tot > .grand { font-weight: 700; font-size: 16px; color: var(--ink); padding-top: 6px; }
.list-item .noimg .ic { width: 22px; height: 22px; }

/* Ukuran label (26 Nov 2026) */
.warn-t { color: var(--warn); }
.pg-link { display: flex; align-items: center; gap: 12px; color: inherit; font-weight: 400; }
.pg-link .main { flex: 1; min-width: 0; }
.pg-link h2 { margin: 0 0 2px; }
.pg-go { font-size: 26px; color: var(--muted); line-height: 1; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 14px; }
.ls-card { border: 2px solid transparent; }
.ls-card.on { border-color: var(--pri); }
.ls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ls-mm { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ls-prev { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 14px; border-radius: 14px; background: var(--soft); }
.ls-prev figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ls-prev figcaption { font-size: 12px; color: var(--muted); }
.ls-img { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px var(--edge); image-rendering: pixelated; }
.ls-note { margin: 10px 0; }
.ls-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-dh { font-weight: 600; margin-bottom: 4px; }
.ls-d { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding: 2px 0; }
.ls-d b { font-weight: 600; color: var(--ink); white-space: nowrap; }
