/* Digitalisasi Penjualan — mobile-first, gaya "food delivery" (oranye, kartu bulat, hero gelap). Tanpa style inline (CSP). */
:root {
  --accent: #ff6a13; --accent-strong: #ea580c; --accent-soft: #fff1e7; --accent-soft-2: #ffe2cf;
  --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #ff6a13 55%, #f2560a 100%);
  --bg: #faf7f4; --surface: #fff; --surface-2: #fbf9f7; --field: #f5f2ef;
  --line: #f0ebe6; --line-2: #e4ddd6; --text: #1f1a17; --text-2: #5b524b; --muted: #9b928a;
  --dark: #1d1815; --dark-2: #2a2420; --dark-3: #3a322d; --dark-muted: #b8ada5;
  --ok: #16a34a; --ok-soft: #e5f6ea; --info: #2563eb; --info-soft: #e8effd;
  --warn: #c2620a; --warn-soft: #fff1df; --danger: #e5383b; --danger-soft: #fdebeb;
  --violet: #7c3aed; --violet-soft: #f1eafe; --slate: #64748b; --slate-soft: #eff1f5; --teal: #0f8f86; --teal-soft: #e1f5f3;
  --grid: #f1ece7;
  --shadow-sm: 0 1px 2px rgba(60, 30, 10, .04), 0 6px 20px -10px rgba(60, 30, 10, .16);
  --shadow-md: 0 14px 34px -14px rgba(60, 30, 10, .28);
  --shadow-lg: 0 30px 60px -20px rgba(30, 15, 5, .4);
  --shadow-or: 0 10px 22px -10px rgba(255, 106, 19, .75);
  --radius: 20px; --radius-sm: 14px; --side-w: 264px; --nav-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-strong); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.row.between { justify-content: space-between; }
.row.nw { flex-wrap: nowrap; align-items: flex-start; }
.stack { display: grid; gap: 14px; align-content: start; }
.stack-sm { display: grid; gap: 8px; }
.danger-txt { color: var(--danger); }
.ok-txt { color: var(--ok); }
.warn-txt { color: var(--warn); }
.b { font-weight: 700; }
.price { color: var(--accent-strong); font-weight: 700; font-style: normal; font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 16px; height: 16px; }

/* ---------- Ilustrasi makaroni ---------- */
.art { --abg: linear-gradient(145deg, #ffe1d2, #ffb38a); --mac: #f0702a; --mac2: #ffc59b; --fl: #c81e1e; --bowl: #fff;
  display: block; flex: none; width: 56px; aspect-ratio: 1; border-radius: 16px; background: var(--abg); overflow: hidden; }
.art svg { display: block; width: 100%; height: 100%; }
.art .sh { fill: rgba(60, 20, 0, .14); }
.art .mk { fill: none; stroke: var(--mac); stroke-width: 7; stroke-linecap: round; }
.art .mk2 { fill: none; stroke: var(--mac2); stroke-width: 2; stroke-linecap: round; opacity: .85; }
.art .fl { fill: var(--fl); }
.art .bw { fill: var(--bowl); }
.art .bw2 { fill: none; stroke: rgba(0, 0, 0, .08); stroke-width: 2; }
.fa-balado { --abg: linear-gradient(145deg, #ffd9cc, #ff9a7a); --mac: #e2492b; --mac2: #ffb199; --fl: #7f1414; --bowl: #2b2220; }
.fa-ori { --abg: linear-gradient(145deg, #fff4d6, #ffdf85); --mac: #f0b12c; --mac2: #fff1b8; --fl: #7a8a2a; }
.fa-keju { --abg: linear-gradient(145deg, #fff7cf, #ffd54a); --mac: #f6c343; --mac2: #fff7d6; --fl: #ff9f1a; --bowl: #24476b; }
.fa-spiral { --abg: linear-gradient(145deg, #ffe7d6, #ffc07a); --mac: #ea7d1e; --mac2: #ffd1a6; --fl: #b91c1c; --bowl: #3a2a22; }
.fa-daun { --abg: linear-gradient(145deg, #e8f7df, #bfe6a8); --mac: #e9a23b; --mac2: #ffe0a8; --fl: #3c8d2f; }
.art.thumb { width: 54px; border-radius: 14px; }
.art.thumb-lg { width: 84px; border-radius: 16px; }
.tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); }
.tile.tile-lg { width: 60px; height: 60px; border-radius: 18px; }
.tile.tile-lg svg.i { width: 26px; height: 26px; }
.tile.t1 { background: #fff4d6; color: #b7791f; } .tile.t2 { background: #ffe4e6; color: #e11d48; }
.tile.t3 { background: #dff6f1; color: #0f8f86; } .tile.t4 { background: #efe8fe; color: #7c3aed; } .tile.t5 { background: #e3effd; color: #2563eb; }

/* ---------- Login (poster + kartu) ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 48px clamp(24px, 6vw, 96px);
  background: radial-gradient(700px 480px at 0% 0%, #ffe6d4 0%, transparent 60%), radial-gradient(640px 420px at 100% 100%, #ffe9d9 0%, transparent 60%), #fff8f3; }
.login-poster { display: grid; gap: 22px; max-width: 520px; }
.poster-h { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.poster-h em { font-style: normal; color: var(--accent); }
.poster-sub { margin: 0; font-size: 16px; color: var(--text-2); max-width: 340px; padding-bottom: 14px; border-bottom: 2px dashed var(--accent-soft-2); }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feat li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.feat .ic, .mi .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.login-card { width: 100%; max-width: 420px; justify-self: center; background: var(--surface); border-radius: 28px; padding: 34px 30px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.login-card h2 { font-size: 24px; }
.login-card p { margin: 4px 0 0; }
.logo-mark { width: 48px; height: 48px; border-radius: 15px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-or); flex: none; }
.logo-mark svg.i { width: 24px; height: 24px; stroke-width: 2; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand b { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.brand small { color: var(--accent); font-size: 13px; font-weight: 600; }
.brand-lg b { font-size: 22px; } .brand-lg small { font-size: 15px; }

/* ---------- Form ---------- */
label.f { display: grid; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.f .hint { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.inp { width: 100%; border: 1.5px solid transparent; background: var(--field); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; font-weight: 500; outline: none; min-height: 46px; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea.inp { resize: vertical; min-height: 76px; }
.inp::placeholder { color: #b3aaa2; font-weight: 400; }
.inp:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b928a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.inp.qty { max-width: 96px; text-align: right; }
.inp.amt { text-align: right; }
.form-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.form-error:empty { display: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: span 2; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 14px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; min-height: 42px; white-space: nowrap; transition: transform .1s, background .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: var(--shadow-or); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.06); }
.btn-ok { background: var(--ok); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -12px rgba(22, 163, 74, .8); }
.btn-ok:hover { background: #15803d; }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-light { background: #fff; border-color: transparent; color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 15px; border-radius: 16px; }
.btn-sm { min-height: 34px; padding: 5px 12px; font-size: 12.5px; border-radius: 11px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); display: inline-grid; place-items: center; color: var(--text); flex: none; box-shadow: var(--shadow-sm); }
.icon-btn:hover { color: var(--accent-strong); }
.icon-btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar .brand { padding: 2px 8px 18px; }
.nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 13.5px; text-align: left; width: 100%; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--accent-soft); color: var(--accent-strong); }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: var(--shadow-or); }
.nav-item .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.nav-item.active .count { background: #fff; color: var(--accent-strong); }
.side-promo { position: relative; overflow: hidden; margin-top: 18px; padding: 16px; border-radius: 20px; background: var(--dark); color: #fff; display: grid; gap: 6px; justify-items: start; }
.side-promo b { font-size: 15px; max-width: 140px; line-height: 1.25; }
.side-promo span { font-size: 12px; color: var(--dark-muted); max-width: 130px; }
.side-promo .btn { margin-top: 6px; position: relative; z-index: 1; }
.side-promo .promo-art { position: absolute; right: -14px; bottom: -14px; width: 100px; background: none; transform: rotate(-8deg); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.side-user .icon-btn { width: 34px; height: 34px; box-shadow: none; background: var(--surface); border: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--accent-grad); flex: none; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: rgba(250, 247, 244, .88); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 700; flex: 1; min-width: 0; }
.tb-hello { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.tb-hello .pin { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.tb-hello small { display: block; font-size: 11.5px; color: var(--muted); }
.tb-hello b { display: block; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-hello em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.is-home .topbar h1 { display: none; }
.tb-avatar { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-or); flex: none; }
.view { padding: 4px 28px 48px; display: grid; gap: 18px; align-content: start; max-width: 1320px; width: 100%; }
.view > * { min-width: 0; }

/* ---------- Beranda: search, hero, kategori ---------- */
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 18px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm); }
.searchbar .sb-ic { color: var(--muted); display: grid; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; height: 40px; }
.searchbar input::placeholder { color: #b3aaa2; }
.sb-btn { width: 42px; height: 42px; border-radius: 13px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-or); }
.home-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 24px 24px 36px; min-height: 196px; color: #fff; display: flex; align-items: center;
  background: radial-gradient(260px 200px at 82% 70%, rgba(255, 106, 19, .45), transparent 70%), linear-gradient(135deg, #2a221d, #15110f); box-shadow: var(--shadow-md); }
.hero-txt { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: start; max-width: 62%; }
.kicker { font-size: 12px; font-weight: 600; color: var(--dark-muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-big { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-sub { font-size: 12.5px; color: #e9dfd8; margin-bottom: 10px; }
.hero .hero-art { position: absolute; right: -6px; bottom: -18px; width: min(46%, 230px); background: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.dots { position: absolute; left: 24px; bottom: 14px; display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.dots i.on { width: 18px; background: var(--accent); }
.cats-wrap { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; align-content: start; }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.cat { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.cat-ic { position: relative; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .15s, background .15s; }
.cat-ic svg.i { width: 26px; height: 26px; }
.cat:hover .cat-ic { transform: translateY(-2px); background: var(--accent); color: #fff; }
.cat .count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: -6px; }
.sec-h h3 { font-size: 16.5px; font-weight: 700; }
.sec-h a { font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.grid-2 > div > .sec-h { margin-bottom: 12px; }

/* ---------- Kartu & daftar ---------- */
.card { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex-wrap: wrap; }
.card-h h3 { font-size: 15.5px; font-weight: 700; flex: 1; }
.card-b { padding: 6px 18px 18px; }
.card-h + .tbl-wrap, .card-h + .list, .card-h + div > .stop { border-top: 1px solid var(--line); }
.card-b.flush { padding: 0; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); font-weight: 500; }
.empty.loading { display: flex; justify-content: center; align-items: center; gap: 10px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kpi { position: relative; background: var(--surface); border: 1.5px solid transparent; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: grid; gap: 4px; min-width: 0; align-content: start; }
.kpi .lbl { font-size: 12px; font-weight: 500; color: var(--muted); }
.kpi .val { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi.click { cursor: pointer; transition: transform .15s, border-color .15s; }
.kpi.click::after { content: ''; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.kpi.click:hover { border-color: var(--accent-soft-2); transform: translateY(-1px); }
.kpi.hl { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.kpi.hl .val { color: var(--accent-strong); }
.kpi.k-accent { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-or); }
.kpi.k-accent .lbl, .kpi.k-accent .sub, .kpi.k-accent .growth { color: rgba(255, 255, 255, .88); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; }
.li.click:hover { background: var(--surface-2); }
.li .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.li .body b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.li .body span { font-size: 12.5px; color: var(--muted); }
.li .end { text-align: right; display: grid; gap: 5px; justify-items: end; }
.li .end b { font-variant-numeric: tabular-nums; }
/* "Popular restaurants": tiap baris = kartu sendiri */
.feed { display: grid; gap: 12px; }
.feed > .li, .fcard { background: var(--surface); border: 0; border-radius: 20px; box-shadow: var(--shadow-sm); padding: 10px 14px 10px 10px; transition: transform .15s, box-shadow .15s; }
.feed > .li:first-child { border-top: 0; }
.feed > .li.click:hover, .fcard[data-go]:hover { background: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.fcard[data-go] { cursor: pointer; }
.fcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.fcard .meta .bar { flex: 1; max-width: 160px; }
.heart { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--field); }
.badge-g { background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; border-radius: 7px; padding: 1px 7px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--slate-soft); color: var(--slate); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-ok { background: var(--ok-soft); color: var(--ok); } .t-info { background: var(--info-soft); color: var(--info); }
.t-warn { background: var(--warn-soft); color: var(--warn); } .t-danger { background: var(--danger-soft); color: var(--danger); }
.t-violet { background: var(--violet-soft); color: var(--violet); } .t-teal { background: var(--teal-soft); color: var(--teal); }
.t-accent { background: var(--accent-soft); color: var(--accent-strong); } .t-slate { background: var(--slate-soft); color: var(--slate); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--accent-soft); }
.tbl .right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line-2); }
.tbl input.check-in { width: 20px; height: 20px; accent-color: var(--ok); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .inp { width: auto; min-height: 40px; padding: 7px 12px; background-color: var(--surface); box-shadow: var(--shadow-sm); }
.filters .inp.search { flex: 1; min-width: 180px; }
.filters .btn-soft { background: var(--accent); color: #fff; box-shadow: var(--shadow-or); }
/* Tab → chip ("All · Fast Delivery · Rating 4.5+") */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 1.5px solid var(--line-2); background: var(--surface); padding: 7px 16px; border-radius: 99px; font-weight: 500; font-size: 13px; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { border-color: var(--accent); color: var(--accent-strong); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: var(--shadow-or); }
.tab .n { margin-left: 6px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; }
.tab.active .n { background: #fff; color: var(--accent-strong); }
.card-h .tabs { padding: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 500; font-size: 13px; }
.note.info { background: var(--accent-soft); color: #9a3d0a; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.danger { background: var(--danger-soft); color: var(--danger); }
.total-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); font-weight: 700; font-size: 16px; color: var(--accent-strong); }
.growth { font-size: 12px; font-weight: 600; }
.growth.up { color: var(--ok); } .growth.down { color: var(--danger); }
.bar { height: 6px; border-radius: 99px; background: var(--field); overflow: hidden; display: block; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}

/* ---------- Keranjang SPO / baris item ---------- */
.lines { display: grid; gap: 10px; }
.line { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.line .body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.line .body b { font-size: 13.5px; font-weight: 600; }
.line .body span { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: 99px; background: var(--surface); padding: 3px; box-shadow: var(--shadow-sm); flex: none; }
.stepper button { border: 0; background: var(--field); width: 30px; height: 30px; border-radius: 50%; font-size: 17px; font-weight: 600; line-height: 1; color: var(--text); display: grid; place-items: center; }
.stepper button:last-child { background: var(--accent); color: #fff; }
.stepper input { width: 44px; border: 0; background: none; height: 30px; text-align: center; font-weight: 700; outline: none; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prod { position: relative; border: 1.5px solid var(--line); border-radius: 20px; padding: 8px 8px 12px; background: var(--surface); text-align: left; display: grid; gap: 3px; align-content: start; transition: border-color .15s, transform .15s; }
.prod .art { width: 100%; aspect-ratio: 1.25; border-radius: 14px; margin-bottom: 6px; }
.prod:hover { border-color: var(--accent-soft-2); transform: translateY(-1px); }
.prod.on { border-color: var(--accent); background: var(--accent-soft); }
.prod b { font-size: 13px; font-weight: 600; padding: 0 4px; line-height: 1.3; padding-right: 30px; }
.prod span { font-size: 12px; color: var(--muted); padding: 0 4px; }
.prod span em { font-style: normal; color: var(--accent-strong); font-weight: 700; }
.prod .add { position: absolute; right: 8px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-or); }
.summary { display: grid; gap: 8px; padding-top: 6px; font-size: 13.5px; color: var(--text-2); }
.summary > div { display: flex; justify-content: space-between; }
.summary .tot { padding-top: 10px; border-top: 1.5px dashed var(--line-2); color: var(--text); font-weight: 700; font-size: 15px; }
.summary .tot span:last-child { color: var(--accent-strong); font-size: 18px; }
.checkout-bar { position: sticky; bottom: 16px; z-index: 15; }
.btn-checkout { justify-content: space-between; padding: 0 22px; }
.btn-checkout b { font-variant-numeric: tabular-nums; }
.suggest { border-radius: 16px; overflow: hidden; max-height: 280px; overflow-y: auto; background: var(--field); }
.suggest button { display: grid; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: var(--surface); }
.suggest button:first-child { border-top: 0; }
.suggest button:hover { background: var(--accent-soft); }
.suggest span { font-size: 12px; color: var(--muted); }
.chosen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--accent-soft); border: 1.5px solid var(--accent-soft-2); color: var(--accent-strong); }
.chosen .grow { color: var(--text); }
.chosen .grow b { display: block; }
.chosen .grow span { display: block; font-size: 12px; color: var(--text-2); }
/* Pilihan bayar = "Size: Small / Medium / Large" */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 11px 6px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.seg button.on { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: var(--shadow-or); }
.photo-in { display: flex; align-items: center; gap: 10px; }
.photo-in img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.thumb { width: 120px; max-width: 100%; border-radius: 12px; }

/* ---------- Driver: "Order Tracking" gelap ---------- */
.track { position: relative; overflow: hidden; border-radius: 26px; padding: 20px; color: #fff; display: grid; gap: 12px; background: linear-gradient(160deg, #241e1a, #141110); box-shadow: var(--shadow-md); }
.track h2 { font-size: 24px; font-weight: 700; }
.track p { margin: -4px 0 0; color: var(--dark-muted); font-size: 13px; max-width: 360px; }
.track-map { border-radius: 18px; overflow: hidden; background: #26201c; height: 150px; }
.track-map svg { width: 100%; height: 100%; display: block; }
.track-map .st { stroke: #362e29; stroke-width: 7; fill: none; }
.track-map .rt { stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round; }
.track:not(.on) .track-map .rt { stroke-dasharray: 2 9; opacity: .7; }
.track-map .o { fill: #fff; stroke: var(--accent); stroke-width: 4; }
.track-map .p { fill: #fff; }
.track-map .pi { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.drv-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--dark-2); }
.drv-card b { display: block; font-size: 14px; }
.drv-card span { font-size: 12px; color: var(--dark-muted); }
.drv-card .rd { width: 40px; height: 40px; border-radius: 50%; background: var(--dark-3); display: grid; place-items: center; flex: none; }
.track-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 2px; }
.track-stats small { display: block; color: var(--dark-muted); font-size: 11.5px; }
.track-stats b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.track-stats > div:first-child b { color: var(--accent); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); } }
.trip { border-radius: 22px; padding: 18px; color: #fff; background: var(--dark); display: grid; gap: 10px; }
.stop { display: grid; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.stop.fcard { border-top: 0; padding: 14px; }
.stop:first-child { border-top: 0; }
.stop-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.stop .acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.stop .acts .btn-ok { grid-column: 1 / -1; order: -1; min-height: 48px; font-size: 14.5px; }

/* ---------- Profil / menu ---------- */
.profile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pf-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-weight: 700; color: #fff; background: var(--accent-grad); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-or); flex: none; }
.profile b { display: block; font-size: 17px; }
.profile span { font-size: 13px; color: var(--muted); }
.menu-list .mi { padding: 12px 16px; }
.mi .ic { width: 40px; height: 40px; }
.mi .chev { color: var(--muted); }
.mi.danger .ic { background: var(--danger-soft); color: var(--danger); }
.mi.danger b { color: var(--danger); }

/* ---------- Peta ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
#map { height: calc(100vh - 150px); min-height: 420px; border-radius: 24px; z-index: 1; box-shadow: var(--shadow-sm); }
.drv { display: grid; gap: 4px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.drv:first-child { border-top: 0; }
.drv:hover { background: var(--accent-soft); }
.drv .row b { flex: 1; }
.drv-pin { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.drv-pin.off { background: #94a3b8; }
.store-pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); background: var(--dark); }
.store-pin.done { background: var(--ok); } .store-pin.gagal { background: var(--danger); }

/* ---------- Grafik ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 240px; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .bar-m { fill: var(--accent); }
.chart .bar-m.dim { opacity: .3; }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; pointer-events: none; background: var(--dark); color: #fff; border-radius: 12px; padding: 8px 11px; font-size: 12px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: var(--shadow-lg); z-index: 5; }
.tip b { display: block; font-size: 12.5px; }

/* ---------- Modal / bottom sheet ---------- */
.modal-back { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 14, 10, .5); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.modal { position: relative; width: 100%; max-width: 580px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: up .2s ease-out; }
.modal.wide { max-width: 880px; }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 10px; }
.modal-h h3 { font-size: 17px; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-h .icon-btn { width: 36px; height: 36px; background: var(--field); box-shadow: none; }
.modal-b { padding: 8px 20px 18px; overflow-y: auto; display: grid; gap: 14px; align-content: start; grid-auto-rows: max-content; grid-template-columns: minmax(0, 1fr); flex: 1; }
.modal-b .tbl-wrap { border: 1px solid var(--line); border-radius: 16px; }
.modal-b .list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.modal-b .kpi { box-shadow: none; background: var(--surface-2); border-color: var(--line); }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.modal-f .form-error { flex: 1 1 100%; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 2000; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 500; box-shadow: var(--shadow-lg); transition: .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.bottom-nav { display: none; }
.print-only { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) { .home-top { grid-template-columns: 1fr; } .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .map-wrap { grid-template-columns: 1fr; } #map { height: 60vh; } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; gap: 22px; padding: 28px 16px; align-content: start; }
  .login-poster { gap: 14px; }
  .poster-h { font-size: 40px; }
  .feat { display: none; }
  .poster-sub { font-size: 14px; }
  .login-card { padding: 26px 20px; border-radius: 24px; }
}
@media (max-width: 860px) {
  body { background: #fff; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: rgba(255, 255, 255, .92); }
  .topbar h1 { font-size: 17px; text-align: center; }
  body:not(.is-home) .topbar #topActions:empty { display: none; }
  body:not(.is-home) .topbar .bell { display: none; }
  body:not(.is-home) .topbar:not(:has(#topActions:not(:empty)))::after { content: ''; width: 42px; flex: none; }
  .tb-avatar { width: 38px; height: 38px; font-size: 12px; } /* jalan pintas ke Profil (tombol Keluar) di HP */
  body:not(.is-home) .tb-avatar { display: none; }
  .view { padding: 4px 16px calc(var(--nav-h) + 36px + env(safe-area-inset-bottom)); gap: 16px; }
  .searchbar { background: var(--field); box-shadow: none; }
  .hero { min-height: 170px; padding: 20px 20px 34px; }
  .hero-txt { max-width: 64%; }
  .cats-wrap { background: none; box-shadow: none; padding: 0; }
  .cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .card, .kpi, .feed > .li, .fcard, .profile { box-shadow: 0 1px 2px rgba(60, 30, 10, .04), 0 4px 16px -8px rgba(60, 30, 10, .14); border: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .art.thumb-lg { width: 76px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-bar { bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px -12px rgba(60, 30, 10, .25); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); min-height: var(--nav-h); }
  .bottom-nav button { border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 4px 0; position: relative; }
  .bottom-nav button svg.i { width: 23px; height: 23px; }
  .bottom-nav button.active { color: var(--accent); font-weight: 600; }
  .bottom-nav button.active::before { content: ''; position: absolute; top: -8px; width: 22px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
  .bottom-nav button.fab svg.i { width: 50px; height: 50px; padding: 13px; margin-top: -26px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow-or), 0 0 0 5px #fff; }
  .bottom-nav button.fab { color: var(--accent); }
  .bottom-nav button.fab.active::before { display: none; }
  .bottom-nav .count { position: absolute; top: 0; right: 22%; background: var(--accent); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 0 5px; border: 2px solid #fff; }
  .modal-back { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 26px 26px 0 0; max-height: 94vh; max-height: 94dvh; animation: up .22s ease-out; }
  .modal::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--line-2); }
  .modal-h { padding-top: 22px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; border-radius: 18px; }
  .kpi .val { font-size: 17px; }
  .kpi.click::after { top: 14px; right: 12px; width: 6px; height: 6px; }
  .track-stats b { font-size: 19px; }
  .hide-m { display: none; }
}
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .hero-big { font-size: 24px; } }

/* ---------- Cetak nota / surat jalan ---------- */
@media print {
  body { background: #fff; }
  #app, #login, #modalRoot, #toast { display: none !important; }
  .print-only { display: block !important; }
}
.doc { font-size: 12px; color: #000; max-width: 190mm; margin: 0 auto; }
.doc h1 { font-size: 18px; margin: 0; }
.doc .head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc th, .doc td { border: 1px solid #000; padding: 5px 6px; text-align: left; }
.doc .r { text-align: right; }
.doc .sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; text-align: center; }
.doc .sign div { padding-top: 56px; border-bottom: 1px solid #000; }
.doc .foot { margin-top: 12px; font-size: 11px; }
.doc table.mtx { font-size: 10px; table-layout: fixed; }
.doc table.mtx th, .doc table.mtx td { padding: 3px 4px; word-break: break-word; }
.doc table.mtx thead th { background: #eee; }
.rt-seq { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--line); font-weight: 700; font-size: 12px; flex: none; }
.rt-ops { display: flex; gap: 2px; flex: none; }
.rt-ops .icon-btn { width: 28px; height: 28px; }
.nav-sec { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 14px 14px 4px; }
.op-phase .card-h h3 { display: flex; align-items: center; gap: 8px; }
.op-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }

/* SPO Baru: dua kolom di desktop (produk | keranjang menempel) */
.spo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.spo-side { position: sticky; top: 86px; }
.spo-side .checkout-bar { position: static; }
@media (max-width: 1100px) { .spo-layout { grid-template-columns: 1fr; } .spo-side { position: static; } .spo-side .checkout-bar { position: sticky; } }
@media (max-width: 860px) {
  /* Kartu SPO/nota/toko: harga & status turun ke baris kedua agar nama toko lega */
  .feed > .li.fcard:has(> .tile) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; padding: 12px; }
  .feed > .li.fcard:has(> .tile) > .tile { grid-row: span 2; }
  .feed > .li.fcard:has(> .tile) > .end { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; text-align: left; }
  .feed > .li.fcard:has(> .tile) > .end:empty { display: none; }
}
/* Input & tombol di dalam tabel (verifikasi SPO, barang masuk, opname) */
.tbl .inp { min-width: 88px; min-height: 40px; padding: 8px 10px; }
.tbl .icon-btn { width: 34px; height: 34px; box-shadow: none; background: var(--field); }
@media (max-width: 860px) { .modal-f .btn { flex: 1 1 auto; } }

/* ---------- Peta: toko terdaftar & legenda ---------- */
.store-pin.reg { width: 14px; height: 14px; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.store-pin.go { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); padding-top: 0; padding-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg.reg { background: #fff; border: 3px solid var(--accent); } .lg.go { background: var(--accent); } .lg.done { background: var(--ok); } .lg.gagal { background: var(--danger); }
.store-list { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
.pill.src { padding: 1px 8px; font-size: 10.5px; margin-right: 2px; }

/* ---------- Portal toko ---------- */
.add-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow-or); }
.steps { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 0 14px 0; font-size: 13px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; flex: none; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.steps li.done { color: var(--text-2); }
.steps li.done i { background: var(--accent); border-color: var(--accent); }
.steps li.done::after { background: var(--accent) !important; }
.steps li.now { color: var(--text); font-weight: 600; }
.steps li.now i { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.track.live { gap: 14px; }
.lk-map { height: 340px; border-radius: 20px; overflow: hidden; background: #26201c; z-index: 1; }
.lk-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.35); }
.lk-map .leaflet-control-attribution { background: rgba(20, 16, 14, .7); color: #a99e96; }
.lk-map .leaflet-control-attribution a { color: #d6cbc3; }
.lk-store { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent-strong); border: 3px solid var(--accent); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.lk-drv { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 0 rgba(255, 106, 19, .6), 0 8px 18px rgba(0, 0, 0, .5); animation: ring 1.8s infinite; }
@keyframes ring { to { box-shadow: 0 0 0 16px rgba(255, 106, 19, 0), 0 8px 18px rgba(0, 0, 0, .5); } }
.drv-card a.rd { color: #fff; }
.drv-card a.rd:hover { background: var(--accent); }
.track-stats .u { font-size: 13px; font-weight: 500; color: var(--dark-muted); }
.track-stats .mono-s { font-size: 13px; font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
@media (max-width: 860px) { .lk-map { height: 300px; } }
.li .body .pill.t-accent { color: var(--accent-strong); }

/* ---------- Peta: truk per driver, ikon toko, popup kecepatan ---------- */
.c0 { --dc: #ff6a13; } .c1 { --dc: #2563eb; } .c2 { --dc: #16a34a; } .c3 { --dc: #7c3aed; } .c4 { --dc: #db2777; } .c5 { --dc: #0891b2; }
.truck-pin { display: grid; justify-items: center; gap: 2px; }
.truck-pin .tp-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--dc, var(--accent)); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .35); animation: ring2 2s infinite; }
@keyframes ring2 { to { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0), 0 8px 18px rgba(0, 0, 0, .35); } }
.truck-pin.off .tp-ic { background: #94a3b8; animation: none; }
.truck-pin b { font-size: 11px; font-weight: 700; color: #fff; background: var(--dark); border-radius: 99px; padding: 1px 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.truck-pin.lk .tp-ic { width: 46px; height: 46px; }
svg.truck { width: 32px; height: 22px; }
.truck .tb { fill: #fff; } .truck .tc { fill: #fff; } .truck .tw { fill: var(--dc, var(--accent)); opacity: .55; }
.truck .tr { fill: #1d1815; } .truck .th { fill: #fff; } .truck .tl { stroke: var(--dc, var(--accent)); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.shop-pin { position: relative; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent-strong); border: 2px solid var(--accent); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.shop-pin svg.i { width: 16px; height: 16px; stroke-width: 2; }
.shop-pin.go, .shop-pin.done, .shop-pin.gagal { width: 34px; height: 34px; border-radius: 12px; color: #fff; border: 3px solid #fff; }
.shop-pin.go { background: var(--dc, var(--accent)); }
.shop-pin.done { background: var(--ok); } .shop-pin.gagal { background: var(--danger); }
.shop-pin.go svg.i, .shop-pin.done svg.i, .shop-pin.gagal svg.i { width: 18px; height: 18px; }
.shop-pin i { position: absolute; top: -9px; right: -9px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; background: var(--dark); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.lg.route { width: 22px; height: 0; border-radius: 0; border-top: 4px dashed var(--accent); }
.legend .lg.reg { border-radius: 4px; }
.cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--dc); flex: none; }
/* Sales: kartu pelacakan DKS + marker orang + titik kunjungan di peta */
.trk { border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.trk.on { background: linear-gradient(160deg, #0f2f1c, #122a1e); border-color: transparent; color: #fff; }
.trk b { display: block; font-size: 14px; }
.trk .small { color: var(--text-2); } .trk.on .small { color: #b9e6cc; }
.trk .pulse { margin-right: 6px; }
.person-mk { position: relative; display: grid; justify-items: center; }
.person-mk svg.i { width: 22px; height: 22px; padding: 7px; border-radius: 50%; background: var(--dc, #2563eb); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); box-sizing: content-box; }
.person-mk b { position: relative; margin-top: -4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--dc, #2563eb); border: 2px solid #fff; border-radius: 99px; padding: 0 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.person-mk.off svg.i { filter: grayscale(1) opacity(.7); } .person-mk.off b { filter: grayscale(.6); }
.visit-pin { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); font-size: 11px; font-weight: 700; background: #2563eb; }
.visit-pin.done { background: var(--ok); } .visit-pin.gagal { background: var(--danger); } .visit-pin.go { background: #2563eb; }
.visit-pin i { font-style: normal; }
/* Peta live ringkas di Beranda admin */
.dash-map { height: 240px; width: 100%; background: #e9edf2; }
.dash-pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.dash-pin svg.i { width: 17px; height: 17px; }
.dash-pin.truck { background: var(--accent); }
.dash-pin.person { background: #2563eb; width: 28px; height: 28px; }
.dash-pin.off { filter: grayscale(.7) opacity(.75); }
.dash-lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 4px; }
.dash-lg.truck { background: var(--accent); } .dash-lg.person { background: #2563eb; }
.drv .small b { color: var(--text); }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 12px 14px; font-family: inherit; font-size: 13px; }
.dp { display: grid; gap: 8px; min-width: 200px; }
.dp b { font-size: 14px; }
.dp-speed { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--dark); color: #fff; }
.dp-speed b { font-size: 28px; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.dp-speed span { font-size: 12px; color: var(--dark-muted); }
.dp-next { font-size: 12.5px; }
.dp-next b { font-size: 13px; }
.dp-next span { color: var(--muted); }
.dp-foot { font-size: 11.5px; color: var(--muted); }
.drv-card .spd { color: var(--accent); font-weight: 700; }

/* ---------- Truk 3D (tanpa latar bulat) ---------- */
.truck-mk { position: relative; display: grid; justify-items: center; gap: 0; }
.truck-mk::before { content: ''; position: absolute; top: 41px; left: 50%; width: 68px; height: 18px; margin-left: -34px; border-radius: 50%; background: var(--dc, var(--accent)); opacity: .35; animation: ground 1.8s ease-out infinite; }
@keyframes ground { from { transform: scale(.7); opacity: .45; } to { transform: scale(1.35); opacity: 0; } }
.truck-mk .truck3d { position: relative; width: 86px; height: 60px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); transition: transform .3s; }
.truck-mk.flip .truck3d { transform: scaleX(-1); }
.truck-mk b { position: relative; margin-top: -4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--dc, var(--accent)); border: 2px solid #fff; border-radius: 99px; padding: 0 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.truck-mk.off::before { display: none; }
.truck-mk.off .truck3d { filter: grayscale(1) opacity(.75); }
.truck3d .o { stroke: rgba(40, 25, 15, .35); stroke-width: .6; stroke-linejoin: round; }
.truck3d .t-sh { fill: rgba(0, 0, 0, .22); }
.truck3d .t-box { fill: #faf8f5; } .truck3d .t-box-top { fill: #fff; } .truck3d .t-box-end { fill: #d8d0c8; } .truck3d .t-box-sh { fill: rgba(0, 0, 0, .06); }
.truck3d .t-stripe { fill: var(--dc, var(--accent)); }
.truck3d .t-logo { fill: var(--dc, var(--accent)); } .truck3d .t-l2 { opacity: .5; }
.truck3d .t-cab { fill: var(--dc, var(--accent)); }
.truck3d .t-lite { fill: #fff; opacity: .3; } .truck3d .t-dark { fill: #000; opacity: .22; }
.truck3d .t-glass { fill: #24394a; } .truck3d .t-glass-hl { fill: #a9dcf5; opacity: .55; }
.truck3d .t-line { stroke: rgba(0, 0, 0, .25); stroke-width: .7; fill: none; }
.truck3d .t-light { fill: #ffe066; } .truck3d .t-bump { fill: #2a2420; }
.truck3d .t-tire { fill: #1b1716; } .truck3d .t-wh2 { fill: #0e0b0a; } .truck3d .t-rim { fill: #cfc9c3; } .truck3d .t-hub { fill: #6b625c; }
.truck-mk.lk::before { top: 41px; }

/* ---------- Navigasi driver (ala Waze) ---------- */
.track.nav { gap: 12px; }
.nav-banner { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--accent); color: #fff; box-shadow: var(--shadow-or); }
.nav-banner.arrived { background: var(--ok); box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .8); }
.nav-banner .btn-ok { background: #fff; color: var(--ok); }
.nb-main { display: flex; align-items: center; gap: 14px; }
.nb-arrow { width: 62px; height: 62px; border-radius: 16px; background: rgba(0, 0, 0, .16); display: grid; place-items: center; flex: none; }
.nb-arrow svg.arw { width: 46px; height: 46px; }
svg.arw { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
svg.arw .fillw { fill: #fff; stroke: none; } svg.arw .fillo { fill: var(--accent); stroke: none; }
.nav-banner.arrived svg.arw .fillo { fill: var(--ok); }
.nb-dist { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.nb-text { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.nb-then { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .16); font-size: 12.5px; }
.nb-then span { font-weight: 700; opacity: .8; }
.nb-then svg.arw { width: 20px; height: 20px; stroke-width: 6; flex: none; }
.nb-then em { font-style: normal; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-wrap { position: relative; }
.nav-map { height: 380px; border-radius: 20px; overflow: hidden; z-index: 1; background: #e9e4de; }
.nav-speed { position: absolute; left: 12px; bottom: 12px; z-index: 5; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--text); border: 4px solid var(--dark); display: grid; place-items: center; align-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.nav-speed b { font-size: 22px; font-weight: 800; line-height: 1; }
.nav-speed span { font-size: 10px; font-weight: 600; color: var(--muted); }
.nav-center { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 9px 14px; background: var(--dark); color: #fff; font-weight: 600; font-size: 13px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.turn-pin { width: 30px; height: 30px; border-radius: 50%; background: var(--dark); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.turn-pin svg.arw { width: 18px; height: 18px; stroke-width: 6; }
.nav-bar { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--dark-2); }
.nb-dest { display: flex; align-items: center; gap: 12px; }
.nb-dest b { display: block; font-size: 15px; }
.nb-dest span:not(.stop-n) { font-size: 12px; color: var(--dark-muted); }
.nb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.nb-stats b { display: block; font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.nb-stats div:first-child b { color: var(--accent); }
.nb-stats small { font-size: 11px; color: var(--dark-muted); }
.nb-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.nb-apps .btn { background: var(--dark-3); border-color: transparent; color: #fff; }
.nb-apps .btn:hover { background: var(--accent); }
@media (max-width: 860px) { .nav-map { height: 340px; } .nb-dist { font-size: 26px; } }
.track > * { min-width: 0; }
.nb-main > div { min-width: 0; flex: 1; }
.nb-text { overflow-wrap: anywhere; }
.nb-then { min-width: 0; }
.nb-then em { min-width: 0; flex: 1; }
.nb-dest .grow { min-width: 0; }
.nb-dest span:not(.stop-n) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Navigasi driver v2 (HUD di atas peta, panah ala Waze) ---------- */
.nav-wrap.live .nav-map { height: 70vh; min-height: 440px; max-height: 760px; }
.nav-hud { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 6; display: grid; gap: 6px; justify-items: start; pointer-events: none; }
.nav-hud > * { pointer-events: auto; }
.nav-top { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(26, 21, 18, .94); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.nav-top.arrived { background: rgba(22, 128, 61, .96); }
.nt-arrow { width: 58px; height: 58px; display: grid; place-items: center; flex: none; }
.nt-arrow svg.arw { width: 54px; height: 54px; stroke-width: 5.5; }
.nav-top.arrived svg.arw .fillo { fill: #16803d; }
.nt-txt { min-width: 0; flex: 1; display: grid; }
.nt-dist { font-size: 19px; font-weight: 700; color: #ffb27a; line-height: 1.15; }
.nav-top.arrived .nt-dist { color: #bbf7d0; }
.nt-road { font-size: 21px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nt-ins { font-size: 12px; color: #c9bfb8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-done { flex: none; background: #fff; color: var(--ok); border: 0; }
.nav-then { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px 6px 10px; border-radius: 12px; background: rgba(26, 21, 18, .88); color: #fff; font-size: 12.5px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.nav-then span { font-weight: 700; color: #c9bfb8; }
.nav-then svg.arw { width: 18px; height: 18px; stroke-width: 6; flex: none; }
.nav-then em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nav-eta { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: grid; justify-items: center; padding: 6px 22px 8px; border-radius: 16px; background: rgba(26, 21, 18, .94); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); white-space: nowrap; }
.nav-eta b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nav-eta span { font-size: 13px; color: #c9bfb8; font-weight: 500; }
.nav-wrap .nav-speed { left: 12px; bottom: 14px; }
.nav-wrap .nav-center { right: 12px; bottom: 14px; width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; background: #fff; color: #1aa3e0; border: 0; }
.nav-wrap .nav-center svg.i { width: 22px; height: 22px; }
.leaflet-marker-icon.nav-me { transition: none; }
.leaflet-zoom-anim .leaflet-marker-icon.nav-me { transition: none; }
.nav-arrow { position: relative; width: 44px; height: 44px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4)); }
.nav-arrow::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: rgba(26, 163, 224, .18); animation: halo 2s ease-out infinite; }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.nav-arrow svg { position: relative; width: 44px; height: 44px; }
.na-l { fill: #63d8ff; } .na-r { fill: #1597d4; } .na-o { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; }
.road-chip-mk { overflow: visible; }
.road-chip { display: inline-block; transform: translate(-50%, -160%); white-space: nowrap; padding: 3px 9px; border-radius: 7px; background: #c2410c; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
@media (max-width: 860px) { .nav-wrap.live .nav-map { height: 64vh; min-height: 400px; } .nt-road { font-size: 18px; } .nt-arrow { width: 50px; height: 50px; } .nt-arrow svg.arw { width: 46px; height: 46px; } .nav-eta b { font-size: 22px; } }
.nav-hud { grid-template-columns: minmax(0, 1fr); }
.nav-top, .nav-then { min-width: 0; box-sizing: border-box; }
.nav-top { width: auto; justify-self: stretch; }
@media (min-width: 861px) { .nav-top { justify-self: start; width: min(560px, 100%); } }

/* ---------- Tanda tangan digital ---------- */
.sig-wrap { position: relative; height: 170px; border-radius: 16px; border: 2px dashed var(--line-2); background: #fff; overflow: hidden; touch-action: none; }
.sig-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sig-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #c4bab2; font-weight: 600; pointer-events: none; }
.sig-wrap.has .sig-hint { display: none; }
.sig-line { position: absolute; left: 22px; right: 22px; bottom: 34px; border-bottom: 1.5px solid #e2dbd4; pointer-events: none; }
.sig-clear { position: absolute; right: 8px; top: 8px; border: 0; border-radius: 99px; background: var(--field); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 4px 10px; }
.sign-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--ok-soft); border: 1px solid #c9ecd4; }
.sign-box img { width: 120px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.sign-box b { display: block; font-size: 13.5px; color: var(--ok); }
.sign-box span { display: block; font-size: 12px; color: var(--text-2); }
.sign-box .sign-ok { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.sign-box.pending { background: var(--warn-soft); border-color: #f6dcb4; color: var(--warn); }
.sign-box.pending b { color: var(--warn); }
.seg.seg2 { grid-template-columns: 1fr 1fr; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.store-picks { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.store-pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); }
.store-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.store-pick.near { border-color: var(--accent); background: var(--accent-soft); }
.sp-b { flex: 1; min-width: 0; display: grid; }
.sp-b b { font-size: 14px; }
.sp-b span { font-size: 12px; color: var(--muted); }
.sp-b em { font-style: normal; color: var(--accent-strong); font-weight: 600; }
.sp-d { flex: none; font-size: 12px; font-weight: 700; color: var(--accent-strong); background: #fff; border: 1px solid var(--accent-soft-2); border-radius: 99px; padding: 2px 9px; }
.doc .doc-sign { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 6px 8px; border: 1px solid #000; }
.doc .doc-sign img { height: 50px; width: auto; }

/* ---------- Dashboard: filter bulan ---------- */
.sec-h.month-h { align-items: center; flex-wrap: wrap; row-gap: 8px; margin-bottom: -8px; }
.month-pick { display: flex; align-items: center; gap: 6px; }
.month-pick .inp { width: auto; min-width: 170px; min-height: 40px; padding: 7px 34px 7px 14px; background-color: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; border-radius: 12px; }
.month-pick .icon-btn { width: 40px; height: 40px; }
.month-pick .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
svg.flip-x { transform: scaleX(-1); }
.period-note { margin-bottom: -6px; }
.kpi.neg .val { color: var(--danger); }
@media (max-width: 860px) { .month-pick { width: 100%; } .month-pick .inp { flex: 1; min-width: 0; } }

/* ---------- Checklist muat & turun (driver) ---------- */
.lc-box { width: 36px; height: 36px; border-radius: 11px; border: 2px solid var(--line-2); background: #fff; color: transparent; display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s; }
.lc-box svg.i { width: 20px; height: 20px; stroke-width: 3; }
.done > .lc-box, .lc-item.done .lc-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.load-card .card-b { padding-top: 16px; }
.lc-store { border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 12px; display: grid; gap: 8px; background: var(--surface-2); }
.lc-store.done { border-color: #c9ecd4; background: var(--ok-soft); }
.lc-h { display: flex; align-items: center; gap: 10px; }
.lc-h b { display: block; font-size: 14.5px; }
.lc-h span { font-size: 12px; color: var(--muted); }
.lc-ord { flex: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--dark); border-radius: 8px; padding: 4px 8px; }
.lc-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lc-item b { display: block; font-size: 13.5px; }
.lc-item span { font-size: 12.5px; color: var(--text-2); }
.lc-item.done b { text-decoration: line-through; text-decoration-color: rgba(22, 163, 74, .5); }
.lc-item.bad { border-color: #f5c2c2; background: var(--danger-soft); }
.line.uc { gap: 10px; }
.line.uc.done { border-color: #c9ecd4; background: var(--ok-soft); }
.line.uc.short:not(.done) { border-color: #f6dcb4; }
.uc-st { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); }
.line.uc.short .uc-st { color: var(--warn); }
.stop-load { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; }
.stop-load span { flex: 1; min-width: 0; color: var(--text-2); }
.stop-load em { font-style: normal; font-weight: 700; white-space: nowrap; }
.stop-load.ok { background: var(--ok-soft); color: var(--ok); }
.stop .acts .btn-ok:disabled { background: var(--slate-soft); color: var(--slate); box-shadow: none; }

/* ---------- Pencarian global (Ctrl+K) ---------- */
.gs-back { position: fixed; inset: 0; z-index: 1100; background: rgba(20, 14, 10, .45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; animation: fade .12s; }
.gs { width: 100%; max-width: 640px; max-height: 76vh; max-height: 76dvh; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: up .18s ease-out; }
.gs-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gs-h > svg.i { color: var(--muted); flex: none; }
.gs-in { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 16px; padding: 6px 0; }
.gs-in::-webkit-search-cancel-button { display: none; }
.gs-b { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.gs-g { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.gs-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: none; background: transparent; border-radius: 12px; text-align: left; }
.gs-row:hover, .gs-row.sel { background: var(--accent-soft); }
.gs-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-strong); border: 1px solid var(--line); flex: none; }
.gs-row.sel .gs-ic { background: #fff; }
.gs-t { flex: 1; min-width: 0; display: grid; }
.gs-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-t span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-e { display: flex; align-items: center; gap: 6px; flex: none; }
.gs-e em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gs mark { background: var(--accent-soft-2); color: inherit; border-radius: 3px; padding: 0 1px; }
.gs-note { display: flex; align-items: center; gap: 8px; padding: 14px 10px; color: var(--text-2); font-size: 13px; }
.gs-note .spin { width: 14px; height: 14px; border-width: 2px; }
.gs-rec { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 6px; }
.gs-f { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: var(--surface-2); }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; margin-right: 2px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 600 10.5px/16px ui-monospace, Menlo, monospace; color: var(--text-2); text-align: center; }
@media (max-width: 640px) { .gs-back { padding: 0; align-items: stretch; } .gs { max-width: none; max-height: none; height: 100%; border-radius: 0; } .gs-f { display: none; } }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Panduan ---------- */
.help-hero b { display: block; font-size: 15px; }
.help-toc { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.help-toc::-webkit-scrollbar { display: none; }
.help-list, .help-faq { display: grid; gap: 10px; }
.ht > summary, .hf > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.ht > summary::-webkit-details-marker, .hf > summary::-webkit-details-marker { display: none; }
.ht > summary .grow b { display: block; font-weight: 600; }
.ht > summary .grow span { display: block; font-size: 12.5px; color: var(--text-2); }
.ht > summary .grow em { display: block; font-style: normal; font-size: 11px; color: var(--accent-strong); margin-top: 2px; }
.ht-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
details > summary .chev { transition: transform .2s; color: var(--muted); }
details[open] > summary .chev { transform: rotate(90deg); }
.ht > .card-b, .hf > .card-b { padding-top: 0; }
.ht-steps { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.ht-steps li { padding-left: 2px; line-height: 1.5; }
.ht-steps li::marker { color: var(--accent-strong); font-weight: 700; }
.hf > summary b { flex: 1; font-weight: 600; }
.help-gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.hg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.hg b { display: block; color: var(--accent-strong); }
.hg span { font-size: 12.5px; color: var(--text-2); }
.help-sup { display: flex; align-items: flex-start; gap: 12px; }
.help-sup > svg.i { color: var(--accent-strong); flex: none; margin-top: 2px; }
.help-sup b { display: block; }
.help-sup span { display: block; font-size: 12.5px; color: var(--text-2); }

/* ---------- Satuan kedua & diskon skema ---------- */
.unit-sel { font: inherit; font-size: 12px; padding: 1px 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text); }
.line .disc, em.disc { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.summary .disc-row span:last-child { color: var(--ok); font-weight: 600; }
.disc-grp { padding: 6px 0; border-top: 1px solid var(--line); }
.disc-grp:first-of-type { border-top: none; }
.disc-grp > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
