/* WOM Sales — tampilan seperti aplikasi Android / iPhone */
:root {
  --pri: #0e7a5a; --pri-d: #0b3b2e; --pri-l: #e6f4ee; --pri-2: #12a37a;
  --bg: #f2f4f3; --card: #fff; --ink: #14201b; --ink-2: #4a5a53; --ink-3: #8a9690; --line: #e3e8e5;
  --red: #d93b3b; --red-l: #fdecec; --amb: #c27a06; --amb-l: #fdf3df; --blu: #2563eb; --blu-l: #e8efff;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --bar: 56px; --tab: 62px; --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; font-family: inherit; font-size: 16px; color: var(--ink); }
button { font-family: inherit; font-size: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 18px; height: 18px; } svg.i.xs { width: 15px; height: 15px; } svg.i.l { width: 28px; height: 28px; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 11.5px; } .b { font-weight: 700; } .r { text-align: right; } .c { text-align: center; }
.red { color: var(--red); } .amb { color: var(--amb); } .grn { color: var(--pri); } .nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ---------- kerangka ---------- */
#app { position: absolute; inset: 0; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.03); }
.appbar { flex: none; padding-top: var(--sat); background: var(--pri-d); color: #fff; position: relative; z-index: 20; }
.appbar .row { height: var(--bar); display: flex; align-items: center; gap: 4px; padding: 0 6px 0 4px; }
.appbar .ttl { flex: 1; min-width: 0; padding-left: 10px; }
.appbar .ttl b { display: block; font-size: 18px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.appbar .ttl span { display: block; font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -1px; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.ib:active { background: rgba(255,255,255,.14); }
.ib .dot { position: absolute; top: 8px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f59e0b; color: #1b1300; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--pri-d); }
.netbar { background: #3d2a00; color: #ffd98a; font-size: 12.5px; padding: 6px 14px; display: flex; gap: 8px; align-items: center; }
.netbar.ok { background: #0a2e23; color: #9ce8c8; }
main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; overscroll-behavior: contain; }
.page { padding: 12px 12px calc(24px + var(--tab) + var(--sab)); min-height: 100%; }
.page.notab { padding-bottom: calc(96px + var(--sab)); }
.anim-in { animation: slideIn .22s cubic-bezier(.2,.8,.2,1); } .anim-back { animation: slideBack .22s cubic-bezier(.2,.8,.2,1); } .anim-fade { animation: fadeIn .18s ease; }
@keyframes slideIn { from { transform: translateX(28px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes slideBack { from { transform: translateX(-28px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.tabbar { flex: none; height: calc(var(--tab) + var(--sab)); padding-bottom: var(--sab); background: #fff; border-top: 1px solid var(--line); display: flex; position: relative; z-index: 15; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; position: relative; }
.tabbar button .pill { width: 58px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .15s; }
.tabbar button.on { color: var(--pri-d); } .tabbar button.on .pill { background: var(--pri-l); color: var(--pri); }
.tabbar button .bdg { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* ---------- kartu & daftar ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,40,30,.05); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 .more { margin-left: auto; font-size: 13px; color: var(--pri); font-weight: 600; }
.sec { font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
.sec .more { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--pri); font-size: 13px; }
.list { background: var(--card); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,40,30,.05); }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; min-height: 60px; width: 100%; text-align: left; }
.li + .li::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--line); }
.li.noav + .li.noav::before, .li.noav + .li::before { left: 14px; }
button.li:active, .li.tap:active { background: #f5f7f6; }
.li .av { width: 40px; height: 40px; border-radius: 12px; background: var(--pri-l); color: var(--pri); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px; position: relative; }
.li .av.done { background: var(--pri); color: #fff; } .li .av.now { background: #f59e0b; color: #fff; } .li .av.miss { background: var(--red-l); color: var(--red); } .li .av.gray { background: #eef1f0; color: var(--ink-3); }
.li .tx { flex: 1; min-width: 0; }
.li .tx b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .tx span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .tx .wrap { white-space: normal; }
.li .end { text-align: right; flex: none; font-size: 13px; color: var(--ink-2); }
.li .end b { display: block; color: var(--ink); font-size: 14px; }
.li > .chev { color: #c4ccc8; }
.empty { text-align: center; padding: 38px 20px; color: var(--ink-3); }
.empty svg.i { width: 44px; height: 44px; stroke-width: 1.5; color: #b8c4be; margin-bottom: 8px; }
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; background: #eef1f0; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge.g { background: var(--pri-l); color: var(--pri); } .badge.r { background: var(--red-l); color: var(--red); } .badge.a { background: var(--amb-l); color: var(--amb); } .badge.b { background: var(--blu-l); color: var(--blu); } .badge.d { background: var(--pri-d); color: #fff; }

/* ---------- tombol ---------- */
.btn { height: 48px; border-radius: 14px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; background: #e9eeeb; color: var(--ink); transition: transform .08s, filter .1s; position: relative; }
.btn:active { transform: scale(.97); filter: brightness(.95); }
.btn.pri { background: var(--pri); color: #fff; } .btn.dark { background: var(--pri-d); color: #fff; } .btn.red { background: var(--red); color: #fff; } .btn.amb { background: #f59e0b; color: #1b1300; }
.btn.out { background: #fff; border: 1.5px solid var(--line); } .btn.ghost { background: transparent; color: var(--pri); }
.btn.sm { height: 38px; border-radius: 12px; padding: 0 14px; font-size: 14px; } .btn.blk { display: flex; width: 100%; } .btn.lg { height: 56px; font-size: 16.5px; border-radius: 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.pri):not(.dark):not(.red).loading::after { border-color: rgba(0,0,0,.15); border-top-color: var(--pri); }
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: flex; gap: 10px; } .btns > * { flex: 1; }
.fab { position: absolute; right: 16px; bottom: calc(var(--tab) + var(--sab) + 16px); height: 56px; border-radius: 18px; padding: 0 20px 0 16px; background: var(--pri); color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 700; box-shadow: 0 6px 18px rgba(14,122,90,.35); z-index: 14; }
.fab:active { transform: scale(.96); }
.sticky-act { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(12px + var(--sab)); background: linear-gradient(180deg, rgba(242,244,243,0), var(--bg) 28%); z-index: 14; }
.sticky-act.withtab { bottom: calc(var(--tab) + var(--sab)); padding-bottom: 12px; }

/* ---------- form ---------- */
.fld { margin-bottom: 14px; }
.fld > label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 0 2px 6px; }
.fld .hint { font-size: 12px; color: var(--ink-3); margin: 5px 2px 0; }
.inp { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
textarea.inp { height: auto; min-height: 84px; padding: 12px 14px; resize: none; line-height: 1.4; }
select.inp { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a9690' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 40px; }
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(14,122,90,.12); }
.search { position: relative; } .search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .inp { padding-left: 44px; height: 46px; border-radius: 23px; background: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(16,40,30,.06); }
.search .x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; flex: none; }
.chip.on { background: var(--pri-d); border-color: var(--pri-d); color: #fff; }
.chip .n { font-size: 11.5px; opacity: .7; }
.seg { display: flex; background: #e3e8e5; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; height: 36px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sw { position: relative; width: 50px; height: 30px; flex: none; } .sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; border-radius: 15px; background: #cfd8d3; transition: .2s; } .sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.sw input:checked + span { background: var(--pri); } .sw input:checked + span::after { transform: translateX(20px); }
.ck { display: flex; align-items: center; gap: 12px; padding: 10px 2px; } .ck input { width: 22px; height: 22px; accent-color: var(--pri); flex: none; }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; } .daypick label { flex: 1; min-width: 42px; } .daypick input { display: none; }
.daypick span { display: grid; place-items: center; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.daypick input:checked + span { background: var(--pri); border-color: var(--pri); color: #fff; }

/* ---------- beranda ---------- */
.hero { background: linear-gradient(140deg, var(--pri-d), #11624a 70%, #158a66); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero .hi { font-size: 13px; opacity: .8; } .hero .nm { font-size: 21px; font-weight: 750; margin: 2px 0 12px; letter-spacing: -.01em; }
.hero .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.hero .kpi { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px; }
.hero .kpi b { display: block; font-size: 19px; font-weight: 800; } .hero .kpi span { font-size: 11.5px; opacity: .8; }
.prog { height: 8px; border-radius: 4px; background: #e4ebe7; overflow: hidden; } .prog i { display: block; height: 100%; border-radius: 4px; background: var(--pri); }
.prog.w { background: rgba(255,255,255,.18); } .prog.w i { background: #7ef0c0; }
.tgt { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tgt b { font-size: 20px; font-weight: 800; } .tgt .pct { font-size: 26px; font-weight: 850; color: var(--pri); letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(16,40,30,.05); }
.stat span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; } .stat b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.quick button { background: #fff; border-radius: 16px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--ink-2); box-shadow: 0 1px 2px rgba(16,40,30,.05); }
.quick button .q { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--pri-l); color: var(--pri); }
.quick button:active { transform: scale(.96); }
.active-visit { background: #fff7e6; border: 1.5px solid #f5c26b; border-radius: 18px; padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.active-visit .pulse { width: 12px; height: 12px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }

/* ---------- toko & kunjungan ---------- */
.thead { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,40,30,.05); }
.thead h2 { margin: 6px 0 2px; font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; } .kv > :nth-child(odd) { color: var(--ink-3); } .kv > :nth-child(even) { text-align: right; font-weight: 600; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.acts a, .acts button { height: 62px; border-radius: 14px; background: var(--pri-l); color: var(--pri); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; text-decoration: none; }
.minimap { height: 160px; border-radius: 16px; overflow: hidden; margin-bottom: 12px; background: #dfe7e3; position: relative; z-index: 0; }
.bigmap { position: absolute; inset: 0; z-index: 0; background: #dfe7e3; }
.timer { font-size: 38px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.photo { width: 100%; border-radius: 14px; display: block; background: #e4ebe7; aspect-ratio: 4/3; object-fit: cover; }
.thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #e4ebe7; flex: none; display: grid; place-items: center; color: #b8c4be; }
.gps { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; margin-bottom: 12px; }
.gps .ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--pri-l); color: var(--pri); }
.gps.bad .ring { background: var(--red-l); color: var(--red); } .gps.wait .ring { background: #eef1f0; color: var(--ink-3); animation: pulse2 1.2s infinite; }
@keyframes pulse2 { 50% { opacity: .5; } }

/* ---------- order ---------- */
.prod { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.prod + .prod { border-top: 1px solid var(--line); }
.prod .tx { flex: 1; min-width: 0; } .prod .tx b { display: block; font-weight: 650; line-height: 1.3; }
.prod .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.prod .price { font-weight: 800; color: var(--ink); margin-top: 4px; }
.prod .ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.units { display: flex; background: #eef1f0; border-radius: 10px; padding: 2px; }
.units button { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.units button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.step { display: flex; align-items: center; background: var(--pri-l); border-radius: 12px; height: 40px; }
.step button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--pri); }
.step input { width: 46px; height: 40px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px; outline: none; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.step.zero { background: #eef1f0; } .step.zero input { color: var(--ink-3); }
.addb { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--pri); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cartbar { position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); height: 60px; border-radius: 18px; background: var(--pri-d); color: #fff; display: flex; align-items: center; padding: 0 8px 0 16px; gap: 12px; box-shadow: 0 8px 24px rgba(11,59,46,.35); z-index: 14; animation: up .2s; }
.cartbar .n { width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-weight: 800; }
.cartbar .t { flex: 1; } .cartbar .t span { display: block; font-size: 11.5px; opacity: .75; } .cartbar .t b { font-size: 17px; }
.cartbar .go { height: 44px; border-radius: 13px; background: #fff; color: var(--pri-d); font-weight: 800; padding: 0 16px; display: flex; align-items: center; gap: 6px; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.sum { font-size: 14px; } .sum .row { display: flex; justify-content: space-between; padding: 4px 0; } .sum .row.tot { font-size: 17px; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.note { text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; background: var(--blu-l); color: #1e3a8a; margin-bottom: 12px; }
.note.a { background: var(--amb-l); color: #7a4a00; } .note.r { background: var(--red-l); color: #8a1f1f; } .note.g { background: var(--pri-l); color: #0b4d39; }
.note svg.i { margin-top: 1px; }

/* ---------- sheet, dialog, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8,20,15,.45); z-index: 60; animation: fadeIn .15s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 760px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0; z-index: 61; max-height: 92dvh; display: flex; flex-direction: column; animation: sheetUp .25s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--sab); }
.sheet.full { top: 0; max-height: none; border-radius: 0; animation: slideIn .22s; background: var(--bg); }
.sheet.full .sh { background: var(--pri-d); color: #fff; padding: calc(var(--sat) + 6px) 8px 6px 4px; min-height: calc(var(--bar) + var(--sat)); }
.sheet.full .sh b { font-size: 18px; font-weight: 650; padding-left: 6px; }
.sheet.full .sb { padding-top: 14px; }
.sheet.full .sf { background: #fff; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #d5ddd9; margin: 8px auto 2px; flex: none; }
.sheet .sh { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 18px; flex: none; }
.sheet .sh b { flex: 1; font-size: 17px; font-weight: 750; }
.sheet .sh .ib:active { background: #eef1f0; }
.sheet .sb { overflow-y: auto; padding: 4px 18px 18px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet .sf { padding: 10px 18px 14px; border-top: 1px solid var(--line); flex: none; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + var(--sab) + 18px); transform: translateX(-50%); background: #14201b; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 90; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: up .2s; line-height: 1.45; }
.toast svg.i { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.toast.err { background: #8a1f1f; }
.dlg { position: fixed; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); max-width: 400px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 22px 20px 14px; z-index: 62; animation: fadeIn .15s; }
.dlg h4 { margin: 0 0 8px; font-size: 18px; } .dlg p { margin: 0 0 16px; color: var(--ink-2); }
.dlg .btns { justify-content: flex-end; } .dlg .btns > * { flex: none; }

/* ---------- kamera ---------- */
.cam { position: fixed; inset: 0; background: #000; z-index: 80; display: flex; flex-direction: column; }
.cam video, .cam img { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }
.cam .top { position: absolute; top: 0; left: 0; right: 0; padding: calc(var(--sat) + 8px) 8px 8px; display: flex; align-items: center; color: #fff; background: linear-gradient(rgba(0,0,0,.55), transparent); z-index: 2; }
.cam .top b { flex: 1; text-align: center; font-weight: 650; }
.cam .bot { flex: none; padding: 18px 20px calc(22px + var(--sab)); display: flex; align-items: center; justify-content: space-between; background: #000; color: #fff; }
.cam .shut { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; } .cam .shut i { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: block; }
.cam .shut:active i { transform: scale(.9); }
.cam .side { width: 64px; display: grid; place-items: center; color: #fff; font-size: 12px; text-align: center; }
.cam .wm { position: absolute; left: 10px; right: 10px; bottom: 132px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px #000; z-index: 2; }

/* ---------- login ---------- */
.login { position: absolute; inset: 0; overflow-y: auto; background: linear-gradient(170deg, var(--pri-d) 0, #10563f 46%, var(--bg) 46.1%); padding: calc(var(--sat) + 36px) 18px calc(24px + var(--sab)); }
.login .brand { color: #fff; text-align: center; margin-bottom: 22px; }
.login .logo { width: 76px; height: 76px; border-radius: 22px; background: #fff; margin: 0 auto 12px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.login .logo img { width: 100%; height: 100%; object-fit: contain; }
.login h1 { font-size: 24px; margin: 0; font-weight: 800; letter-spacing: -.02em; } .login .brand p { margin: 4px 0 0; opacity: .8; font-size: 14px; }
.login .card { padding: 20px 16px; border-radius: 22px; max-width: 420px; margin: 0 auto 12px; box-shadow: 0 10px 30px rgba(11,59,46,.12); }
.pw { position: relative; } .pw .eye { position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-3); }
.splash { position: absolute; inset: 0; display: grid; place-items: center; background: var(--pri-d); color: #fff; z-index: 100; }
.splash .sp { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin: 18px auto 0; }

/* ---------- kantor ---------- */
.mapwrap { position: relative; height: 46dvh; min-height: 260px; margin: -12px -12px 12px; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }
.dotc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; } .tbl th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl tr:last-child td { border-bottom: 0; }
.pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pin span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 800; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { margin: 10px 12px; font-size: 13px; line-height: 1.35; }
.pull { height: 0; overflow: hidden; display: grid; place-items: center; color: var(--ink-3); transition: height .15s; }

@media (min-width: 761px) { body { background: #dfe5e2; } }
