/* App Delivery (dapur + rider) — shares the website's colour tokens. */
.ops-entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 12px 14px; }
.ops-entry .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.ops-entry .ic svg { width: 18px; height: 18px; }
.ops-entry > span:nth-child(2) { flex: 1; min-width: 0; }
.ops-entry b { display: block; color: inherit; font-size: 15px; }
.ops-entry small { display: block; opacity: .85; font-size: 12.5px; }
.mini.track { background: var(--ok-soft); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; margin-right: 6px; box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.8s infinite; }
.live-note { display: flex; align-items: center; font-size: 13px; color: var(--muted); margin-top: -10px; }
.status-hero.off { background: var(--soft2); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.ops { position: fixed; inset: 0; z-index: 50; background: var(--soft); overflow-y: auto; color: var(--ink); font-family: var(--f-ui); }
.ops-top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: max(10px, env(safe-area-inset-top, 0px)); }
.ops-top .in, .ops-main { max-width: 980px; margin: 0 auto; }
.ops-top .row1 { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.ops-brand { flex: 1; min-width: 0; line-height: 1.15; }
.ops-brand b { font-family: "Lobster", cursive; font-weight: 400; font-size: 22px; color: var(--brand); }
.ops-brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ops-role { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.ops-role button { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.ops-role button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ops-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.ops-tabs::-webkit-scrollbar { display: none; }
.ops-tab { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ops-tab i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12px; display: inline-grid; place-items: center; }
.ops-tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ops-tab[aria-pressed="true"] i { background: var(--bg); color: var(--ink); }
.ops-tab.hot i { background: var(--brand); color: var(--brand-ink); }

.ops-main { display: grid; gap: 14px; padding-block: 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--bg); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.ops-note { background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
.ops-note b { color: var(--ink); }
.ops-note.warn { border-style: solid; border-color: var(--brand); color: var(--ink); }

.ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 12px; align-items: start; }
.oc { background: var(--bg); border-radius: 18px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid transparent; }
.oc.new { border-color: var(--brand); }
.oc.late { box-shadow: inset 4px 0 0 var(--brand); }
.oc-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.oc-hd b { font-size: 16.5px; font-weight: 700; }
.oc-hd .ago { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.pills2 { display: flex; flex-wrap: wrap; gap: 6px; }
.pl { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.pl.brand { background: var(--brand-soft); color: var(--brand); }
.pl.gold { background: var(--gold-soft); color: var(--gold); }
.pl.ok { background: var(--ok-soft); color: var(--ok); }
.oc-cust { display: grid; gap: 2px; font-size: 14px; }
.oc-cust b { font-weight: 600; }
.oc-cust small { color: var(--muted); font-size: 13px; }
.oc-items { display: grid; gap: 4px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.oc-items .r { display: flex; gap: 8px; justify-content: space-between; }
.oc-items .r small { display: block; color: var(--muted); font-size: 12.5px; }
.oc-items .q { font-weight: 700; min-width: 26px; }
.oc-items .tot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 700; }
.oc-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ob { border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.ob.pri { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); flex: 1; justify-content: center; }
.ob.ok { background: var(--ok); color: #fff; border-color: var(--ok); flex: 1; justify-content: center; }
.ob.sm { padding: 8px 11px; font-size: 13px; }
.ob:disabled { opacity: .5; cursor: not-allowed; }
.ob svg { width: 15px; height: 15px; }
.oc select, .ops-form input { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.oc select { flex: 1; }
.ops-empty { background: var(--bg); border-radius: 18px; padding: 28px 18px; text-align: center; color: var(--muted); display: grid; gap: 6px; }
.ops-empty b { color: var(--ink); font-size: 16px; }

.rider-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rcard { background: var(--bg); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.rcard .addr { font-size: 16px; font-weight: 600; line-height: 1.3; }
.rcard .nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rcard .nav .ob { justify-content: center; }
.rcard .big { padding: 15px; font-size: 16px; border-radius: 14px; }

.ops-sec { background: var(--bg); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.ops-sec h3 { font-size: 16px; font-weight: 600; margin: 0; }
.rl { display: flex; align-items: center; gap: 10px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.rl:first-of-type { border-top: 0; }
.rl .n { flex: 1; min-width: 0; }
.rl .n small { display: block; color: var(--muted); font-size: 12.5px; }
.ops-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
@media (max-width: 480px) { .ops-form { grid-template-columns: 1fr; } }

/* runner login, online switch, job alerts */
.ops-form.one { grid-template-columns: 1fr; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.rhead { background: var(--bg); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); }
.rhead.on { border-color: var(--ok); }
.rh-t { flex: 1; min-width: 0; }
.rh-t small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.rh-t b { font-size: 18px; font-weight: 700; }
.sw { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.sw span { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw[aria-checked="true"] { background: var(--ok-soft); color: var(--ok); }
.sw[aria-checked="true"] span { background: var(--ok); }
.sw[aria-checked="true"] span::after { transform: translateX(18px); }
.job-alert { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); top: max(10px, env(safe-area-inset-top, 0px)); width: min(520px, calc(100% - 20px)); background: var(--ink); color: var(--bg); border-radius: 18px; padding: 10px 10px 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: jaIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes jaIn { from { transform: translate(-50%, -30px); opacity: 0; } }
.ja-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; animation: ring 1s ease-in-out infinite; }
.ja-ic svg { width: 18px; height: 18px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-6deg); } }
.ja-t { flex: 1; min-width: 0; line-height: 1.25; }
.ja-t b { display: block; font-size: 14.5px; }
.ja-t small { display: block; opacity: .75; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-alert .ob.pri { flex: none; }
.ja-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: .7; flex: none; }
.ja-x svg { width: 14px; height: 14px; }
.runner-pill { position: fixed; z-index: 24; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.runner-pill b { color: var(--photo-gold); }
@media (prefers-reduced-motion: reduce) { .ja-ic, .job-alert { animation: none; } }

/* kalkulator stok (Dapur → Stok) */
.stk { width: 100%; border-collapse: collapse; font-size: 14px; }
.stk th { text-align: right; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px 8px; }
.stk th:first-child, .stk td:first-child { text-align: left; padding-left: 0; }
.stk td { text-align: right; padding: 9px 0 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.stk td small { display: block; color: var(--muted); font-size: 12px; }
.stk td b { font-size: 15.5px; }
.stk-r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.stk-m { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.stk-m > span:first-child { min-width: 0; }
.stk-m.on > span:first-child { font-weight: 600; }
.stk-q { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 3px; flex: none; }
.stk-q button { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); font-size: 17px; display: grid; place-items: center; }
.stk-q button:disabled { opacity: .4; cursor: not-allowed; }
.stk-q input { width: 44px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); -moz-appearance: textfield; }
.stk-q input::-webkit-outer-spin-button, .stk-q input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
