/* Manrope (SIL Open Font License, see fonts/OFL.txt), self-hosted. latin-ext carries the naira sign. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --brand: #f17322; --brand-dark: #b5500f; --ink: #1f2f4c; --muted: #5d6470;
  --line: #e4e7ed; --bg: #f3f4f7; --card: #fff; --ok: #15803d; --bad: #dc2626; --warn: #f59e0b;
  --radius: 20px; --btn: #c2540c; --btn-hover: #a8480a; /* button orange: deeper than --brand so white text is readable (4.6:1) */ --r-ctl: 12px; --ring: 0 0 0 3px #f1732240;
  accent-color: var(--brand);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #c5cad4 transparent; }
body { font: 15px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; caret-color: var(--brand); }
::selection { background: #f1732238; color: var(--ink); }
a { color: var(--brand-dark); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #00000014; }
.pdot.a { background: #22a35a; } .pdot.b { background: #e5484d; } .pdot.r { background: var(--brand); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
header.top { background: #fff; border-bottom: 3px solid var(--brand); padding: 8px 16px; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
header.top .logo { display: flex; align-items: center; }
header.top .logo img { height: 44px; width: auto; display: block; }
header.top .area { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .3px; }
header.top nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
header.top nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
header.top nav a.on, header.top nav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
/* Phones: smaller logo, menu stays on the right (wraps under the logo, still right-aligned, if it can't fit) */
@media (max-width: 420px) { header.top { padding: 8px 12px; } header.top .logo img { height: 34px; } header.top nav { gap: 14px; margin-left: auto; justify-content: flex-end; } header.top nav a { font-size: 13px; } }
main { max-width: 880px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; line-height: 1.2; margin: 4px 0 4px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 17px; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .card .grid2 { row-gap: 0; } }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #dcdfe6; border-radius: var(--r-ctl); font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #6b7280; text-transform: none; letter-spacing: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border-radius: var(--r-ctl); border: 1px solid #dcdfe6; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
button:hover, .btn:hover { border-color: #c8ccd5; }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 4px 12px #c2540c33; }
button.primary:hover, .btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
button.ok { background: #15803d; border-color: #15803d; color: #fff; }
button.ok:hover { background: #126c34; }
button.bad { color: #b91c1c; }
button.small, .btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
button.big { width: 100%; min-height: 52px; padding: 14px; font-size: 16px; }
.seg { display: flex; gap: 4px; padding: 4px; background: #eceef2; border-radius: 14px; }
.seg button { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--muted); padding: 8px 8px; box-shadow: none; }
@media (max-width: 420px) { .seg button { font-size: 13px; } }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #1f2f4c1f; }
.map { height: 320px; border-radius: 16px; border: 1px solid var(--line); z-index: 0; }
.mapdot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px #0006; color: #fff; font: 700 12px/22px system-ui; text-align: center; }
.hint { font-size: 13px; color: var(--muted); }
.hint a { font-weight: 600; }
.quote { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; background: #fef1e7; border-radius: 14px; margin-top: 16px; }
.quote b { font-size: 24px; color: var(--brand-dark); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef0f3; color: var(--muted); white-space: nowrap; }
.s-booked { background: #fff4d6; color: #8a5a00; }
.s-assigned { background: #e5efff; color: #1d4ed8; }
.s-picked_up { background: #efe7ff; color: #6d28d9; }
.s-delivered { background: #dcfce7; color: #166534; }
.s-failed, .s-cancelled { background: #fee2e2; color: #991b1b; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--line); margin-left: 7px; }
.timeline li:last-child { border-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline img { display: block; max-width: 180px; border-radius: 8px; margin-top: 6px; }
.track-no { font: 700 28px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 2px; color: var(--brand-dark); background: #fef1e7; border-radius: 14px; padding: 10px 14px; display: inline-block; margin: 4px 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.tablewrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .n { font-size: 24px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }
.job { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: #fff; }
.job .addr { margin: 6px 0; font-size: 14px; }
.job .addr b { display: inline-block; width: 64px; color: var(--muted); font-weight: 600; }
.cash { background: #fef3c7; border-radius: 8px; padding: 8px 10px; font-weight: 700; margin: 8px 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.hide { display: none !important; }
#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(160px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px #1f2f4c40; font-weight: 600; transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 1300; max-width: calc(100% - 32px); }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--bad); }
.hero { background: linear-gradient(135deg, #1f2f4c, #2c4372); color: #fff; border-radius: 24px; padding: 26px 22px; margin-bottom: 14px; }
.hero h1 { font-size: 30px; margin-bottom: 6px; }
.hero p { color: #d6dcea; margin: 0; max-width: 60ch; }
.trackbox { display: flex; gap: 8px; margin-top: 16px; max-width: 480px; }
.trackbox input { text-transform: uppercase; letter-spacing: .04em; }
.hero .trackbox input { border-color: transparent; }
.hero .trackbox input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #f1732280; }
.demo-ribbon { background: #fef3c7; color: #8a5a00; text-align: center; font-size: 12px; font-weight: 700; padding: 4px; }
.grid2 > * { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; }
ul.mine { list-style: none; margin: 0; padding: 0; }
ul.mine li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.mine li:last-child { border-bottom: 0; }
ul.mine li a { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
ul.mine li a .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
ul.mine .r { display: flex; align-items: center; gap: 6px; flex: none; }
ul.mine .x { border: 0; background: none; color: var(--muted); font-size: 20px; min-height: 36px; width: 36px; padding: 0; border-radius: 10px; box-shadow: none; }
ul.mine .x:hover { background: var(--bg); color: var(--ink); }
.minefoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
/* Address search suggestions */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 500; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #1f2f4c26; max-height: 320px; overflow-y: auto; }
.ac-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; cursor: pointer; }
.ac-list li span { display: flex; flex-direction: column; min-width: 0; }
.ac-list li small { color: var(--muted); font-size: 12px; }
.ac-list li:hover, .ac-list li.on { background: #fef1e7; }
.ac-list li.ac-note { color: var(--muted); font-size: 13px; cursor: default; }
.ac-list li.ac-note:hover { background: none; }
.ac-saved { color: var(--brand); }
.from-map { font-size: 12px; color: var(--ok); margin-top: 4px; }
.directions { margin: 4px 0 6px 64px; padding: 6px 10px; background: #eef4ff; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* Rider in-app navigation */
.nav { border: 2px solid var(--brand); }
.nav-next { display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 14px; margin: 10px 0 8px; font-size: 17px; line-height: 1.3; }
.nav-next .arrow { font-size: 30px; flex: none; }
.nav-map-wrap { position: relative; margin-top: 8px; }
.nav-map { height: 52vh; min-height: 280px; }
.nav-center { position: absolute; right: 10px; bottom: 24px; z-index: 600; box-shadow: 0 2px 8px #0003; }
.nav-steps { margin: 8px 0 0; padding: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.nav-steps li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nav-steps small { color: var(--muted); }
.newjob { position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 1100; display: flex; gap: 8px; align-items: center; background: var(--brand); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px #0004; font-weight: 600; max-width: 560px; margin: 0 auto; }
.newjob span { flex: 1; }
.lochelp { border: 2px solid var(--bad); background: #fff7f7; }
.lochelp ol { margin: 8px 0 12px; padding-left: 20px; }
.lochelp li { margin-bottom: 6px; }
/* Office sign-in and staff */
.auth { max-width: 400px; margin: 30px auto; }
.codebox { border: 2px solid var(--brand); background: #fef1e7; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.activity { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; font-size: 14px; }
.activity li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sellerbar { background: #eef4ff; border-color: #c9dafc; font-size: 14px; }
.payout { border: 2px solid var(--brand); background: #fffaf6; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.s-awaiting_payment { background: #fde7d3; color: #9a4a0b; }
.cash.paid { background: #dcfce7; color: #166534; }
.paybox { border: 2px solid var(--brand); background: #fffaf6; }
.resolved { background: #eef8f1; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 14px; }
.navarrow { width: 40px; height: 40px; transition: transform .6s ease; filter: drop-shadow(0 2px 3px #0005); }
.eta { background: #eef4ff; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 15px; }

/* ===================== Office console (Dispatch) ===================== */
body.in-console { background: #eceef3; }
body.in-console header.top { display: none; }
body.in-console main { max-width: none; padding: 0; }
.console { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; --cbg: #f3f4f7; --soft: #fde7d6; }
.console.hide { display: none; }
.cside { background: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.clogo img { height: 38px; margin: 0 8px 18px; display: block; }
.cgrp { font-size: 11px; color: var(--muted); margin: 14px 10px 6px; text-transform: uppercase; letter-spacing: .6px; }
.cnav { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; color: #4a5468; font-weight: 600; text-decoration: none; }
.cnav svg { width: 18px; height: 18px; flex: none; }
.cnav:hover { background: var(--cbg); }
.cnav.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px #f1732255; }
.cbadge { margin-left: auto; background: var(--soft); color: #9a440c; font-size: 11px; font-style: normal; padding: 1px 8px; border-radius: 99px; }
.cbadge:empty { display: none; }
.cnav.on .cbadge { background: #ffffff33; color: #fff; }
.attn { margin-top: auto; background: linear-gradient(160deg, #fff6ef, #fde7d6); border-radius: 18px; padding: 14px; font-size: 13px; }
.attn.clear { background: #eef8f1; }
.attn h4 { margin: 0 0 6px; font-size: 14px; }
.attn ul { padding: 0; margin: 0 0 10px; list-style: none; }
.attn li { margin: 4px 0; }
.attn li a { color: #5b4636; text-decoration: none; }
.attn li a:hover { text-decoration: underline; }
.attn li b { color: var(--brand-dark); }
.cmain { background: var(--cbg); padding: 16px 24px 30px; min-width: 0; }
.ctop { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ctop h2 { margin: 0 10px 0 0; font-size: 18px; }
.csearch { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 0 14px; color: var(--muted); margin-left: auto; }
.csearch input { border: 0; background: transparent; padding: 10px 0; }
.csearch input:focus { outline: none; }
.cicon { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 0; padding: 0; position: relative; flex: none; }
.cicon i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; background: var(--bad); border-radius: 50%; border: 2px solid #fff; }
.cme { display: flex; align-items: center; gap: 9px; background: #fff; padding: 5px 14px 5px 5px; border-radius: 99px; position: relative; cursor: pointer; flex: none; }
.cme b { display: block; font-size: 13px; line-height: 1.1; }
.cme small { color: var(--muted); font-size: 11px; }
.cmenu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: 0 12px 30px #1f2f4c26; padding: 6px; z-index: 900; min-width: 200px; }
.cme:focus-within .cmenu, .cme.open .cmenu { display: block; }
.cmenu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.cmenu button:hover { background: var(--cbg); }
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: var(--ink); flex: none; }
.chead { display: flex; align-items: flex-end; margin: 14px 0 14px; }
.chead h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
.chead h1 b { font-weight: 800; }
.chead p { margin: 2px 0 0; }
.muted { color: var(--muted); }
.ksmall { font-size: 12px; font-weight: 600; text-decoration: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 124px; }
.kpi.hero { background: var(--ink); color: #fff; }
.kt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; }
.kic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; font-size: 15px; }
.kpi.hero .kic { background: #ffffff1c; }
.krow { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.kn { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.ksub { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.kpi.hero .ksub { color: #c8d0e0; }
.ksub.bad { color: var(--bad); }
.btn.soft { background: var(--soft); color: #9a440c; border-color: transparent; }
.cgrid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-bottom: 14px; }
.console .card { border: 0; border-radius: 22px; padding: 18px; margin-bottom: 14px; }
.cgrid .card { margin-bottom: 0; }
.chrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chrow h2, .chrow h3 { margin: 0; font-size: 16px; margin-right: auto; }
.pillsel { width: auto; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.mapwrap { position: relative; }
.console .map { height: 380px; border-radius: 18px; border: 0; }
.console[data-view="map"] .map { height: calc(100vh - 150px); min-height: 420px; }
.console[data-view="map"] .cgrid { grid-template-columns: 3fr 1fr; }
.console[data-view="map"] .ridercard { max-height: calc(100vh - 110px); overflow: auto; }
.opanel { position: absolute; left: 12px; top: 12px; width: 260px; max-width: calc(100% - 24px); background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 30px #1f2f4c2e; z-index: 500; font-size: 13px; }
.opanel .tk { background: var(--cbg); border-radius: 10px; padding: 6px 10px; margin: 6px 0 10px; }
.opanel .tk small { color: var(--muted); display: block; font-size: 11px; }
.opanel .tk b { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; }
.opanel .x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 18px; color: var(--muted); padding: 2px 6px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 3px 0; color: var(--muted); }
.steps li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #d3d8e2; margin-top: 5px; }
.steps li.done { color: var(--ink); } .steps li.done::before { background: var(--ink); }
.steps li.now { color: var(--ink); font-weight: 700; } .steps li.now::before { background: var(--brand); box-shadow: 0 0 0 4px var(--soft); }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #f7f8fa; margin-bottom: 7px; font-size: 13px; cursor: pointer; }
.people li:hover { background: #eef0f4; }
.people li > span:nth-child(2) { flex: 1; min-width: 0; }
.people small { color: var(--muted); display: block; font-size: 11.5px; }
.sdot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sdot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sdot.g { color: var(--ok); } .sdot.y { color: #c98a00; } .sdot.gr { color: var(--muted); }
.ctable { border-collapse: separate; border-spacing: 0; }
.ctable thead th { background: #f7f8fa; text-transform: none; letter-spacing: 0; font-size: 12px; padding: 10px 12px; border: 0; }
.ctable thead th:first-child { border-radius: 12px 0 0 12px; } .ctable thead th:last-child { border-radius: 0 12px 12px 0; }
.ctable td { padding: 12px; border-bottom: 1px solid #eceef3; }
.ctable tbody tr:hover td { background: #fafbfc; }
.tkn { display: flex; align-items: center; gap: 10px; }
.tkn i { width: 32px; height: 32px; border-radius: 50%; background: var(--cbg); display: grid; place-items: center; font-style: normal; flex: none; }
.tkn a { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--ink); text-decoration: none; }
.console .pill { padding: 4px 11px; font-size: 12px; }
.console .s-booked { background: #fff1d6; color: #9a6400; }
.console .s-awaiting_payment { background: var(--soft); color: #b14f0c; }
.console .s-assigned { background: #e6eefc; color: #2f5bd3; }
.console .s-picked_up { background: #efe7ff; color: #6a35d1; }
.console .s-delivered { background: #dcf5e7; color: #137a46; }
.console .codebox, .console .payout { border-radius: 16px; }
.console #riderForm, .console #sellerForm, .console #staffForm { border-radius: 16px !important; }
.vw.vhide { display: none !important; }
/* Tablets: narrower sidebar */
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .cgrid { grid-template-columns: 1fr; } }
/* Phones: sidebar becomes a scrolling bar at the top */
@media (max-width: 760px) {
  .console { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cside { position: fixed; top: 0; left: 0; bottom: 0; width: 272px; max-width: 84vw; height: 100%; padding: 16px 14px; z-index: 1200; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px #1f2f4c40; }
  body.side-open .cside { transform: none; }
  body.side-open { overflow: hidden; }
  body.side-open .console .cscrim { display: block; position: fixed; inset: 0; background: #1f2f4c66; z-index: 1150; }
  .clogorow .cclose, .ctop .cburger { display: grid; }
  .clogorow { margin-bottom: 4px; } .clogorow .clogo img { margin-bottom: 0; }
  .cmain { padding: 12px; }
  .ctop { flex-wrap: wrap; position: sticky; top: 0; z-index: 900; background: var(--cbg); margin: -12px -12px 8px; padding: 10px 12px; }
  .ctop h2 { font-size: 17px; margin: 0; }
  .csearch { order: 5; flex-basis: 100%; max-width: none; }
  .cnew { margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: 12px; font-size: 20px; }
  .cnew span { display: none; }
  .ctop h2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cme > span:nth-child(2) { display: none; }
  .cme { padding: 5px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; min-height: 108px; }
  .kn { font-size: 24px; }
  .kpi svg:not(.ic) { display: none; }
  .chead h1 { font-size: 22px; }
  .console .map { height: 300px; }
  .attn.attn-m { display: block; margin-bottom: 14px; }
  /* orders table becomes a list of cards on phones */
  .ctable:not(.cards) { min-width: 660px; }
  .ctable.cards, .ctable.cards tbody { display: block; }
  .ctable.cards thead { display: none; }
  .ctable.cards tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px 2px; border-bottom: 1px solid #eceef3; }
  .ctable.cards td { display: block; padding: 0; border: 0; background: none !important; }
  .ctable.cards td:nth-child(2), .ctable.cards td:nth-child(5) { text-align: right; }
  .ctable.cards td:nth-child(3) { grid-column: 1 / -1; }
  .ctable.cards td:nth-child(5) select { width: 100%; }
  .ctable.cards td:nth-child(6) { grid-column: 1 / -1; text-align: right; }
  .ctable.cards td:nth-child(6):empty { display: none; }
  .ctable.cards td.empty { grid-column: 1 / -1; }
}
.attn-m { display: none; }

.clogorow { display: flex; align-items: center; justify-content: space-between; }
.cclose, .cburger { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; box-shadow: 0 2px 8px #1f2f4c14; flex: none; }
.cclose { background: var(--bg); box-shadow: none; }
.cscrim { display: none; }

/* ---------- Customer tracking: map first, details in a sheet ---------- */
.trk { position: fixed; left: 0; right: 0; bottom: 0; top: var(--top, 0px); z-index: 5; background: #eef0f4; }
.trkmap { position: absolute; inset: 0; }
.trktop { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 600; }
.tpill { pointer-events: auto; background: #fff; color: var(--ink); border: 0; border-radius: 99px; padding: 9px 15px; font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px #1f2f4c26; }
.tpill.live { background: #e7f8ee; color: #137a46; }
.tsheet { position: absolute; left: 24px; top: 70px; max-height: calc(100% - 94px); width: 400px; background: #fff; border-radius: 24px; padding: 16px 18px 18px; box-shadow: 0 12px 40px #1f2f4c2e; overflow-y: auto; z-index: 600; overscroll-behavior: contain; }
.tsheet .grab { display: none; }
.tsheet .paybox { border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.teta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 6px; }
.teta .n { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; color: var(--ink); }
.teta .n small { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.teta .muted { font-size: 13px; color: var(--muted); }
.teta .enote { flex-basis: 100%; margin-top: 4px; }
.teta.note { display: block; background: #eef4ff; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.thead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thead b { font-size: 21px; letter-spacing: -.3px; line-height: 1.2; }
.thead.small b { font-size: 15px; color: var(--muted); font-weight: 600; }
.prog { display: flex; gap: 5px; margin: 14px 0 4px; }
.prog span { flex: 1; height: 6px; border-radius: 9px; background: #eceef3; }
.prog span.on { background: var(--brand); }
.prog.bad span.on { background: var(--bad); }
.proglbl { display: flex; font-size: 11px; color: var(--muted); font-weight: 600; }
.proglbl span { flex: 1; } .proglbl span:last-child { text-align: right; }
.thelp { margin: 10px 0; color: var(--muted); font-size: 14px; }
.trider { display: flex; align-items: center; gap: 10px; background: #f7f8fa; border-radius: 16px; padding: 10px; margin: 12px 0; }
.trider .av { width: 42px; height: 42px; font-size: 14px; background: var(--brand); }
.trider .sp { flex: 1; min-width: 0; }
.trider small { color: var(--muted); display: block; font-size: 12px; }
.trider .round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; text-decoration: none; font-size: 18px; box-shadow: 0 2px 8px #1f2f4c14; flex: none; }
.trider .round.o { background: #25d366; }
.troute { margin: 12px 0; display: grid; gap: 10px; }
.troute > div { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 14px; }
.troute i { width: 11px; height: 11px; border-radius: 50%; margin-top: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.troute .dotA { background: #22a35a; } .troute .dotB { background: #e5484d; }
.troute small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tkrow { display: flex; align-items: center; gap: 8px; background: #f7f8fa; border-radius: 14px; padding: 10px 12px; margin: 12px 0; }
.tkrow > span { flex: 1; }
.tkrow small { display: block; color: var(--muted); font-size: 11.5px; }
.tkrow b { font-size: 16px; color: var(--brand-dark); }
.thist { margin: 16px 0 10px; font-size: 15px; }
@media (max-width: 760px) {
  body.trk-on header.top { display: none; }
  .tsheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 26px 26px 0 0; padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px #1f2f4c24; transition: max-height .25s ease; }
  .tsheet[data-s="min"] { max-height: 200px; overflow: hidden; }
  .tsheet[data-s="mid"] { max-height: 56vh; max-height: 56dvh; }
  .tsheet[data-s="full"] { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); }
  .tsheet .grab { display: block; position: sticky; top: 0; width: 100%; background: #fff; border: 0; padding: 8px 0 12px; margin: 0; z-index: 2; }
  .tsheet .grab i { display: block; width: 42px; height: 5px; border-radius: 9px; background: #d5d9e0; margin: 0 auto; }
  .teta .n { font-size: 38px; }
  .thead b { font-size: 19px; }
}

/* ---------- Rider app ---------- */
body.in-rider header.top { display: none; }
body.in-rider main { padding-bottom: 96px; }
.rhead { display: flex; align-items: center; gap: 10px; padding: 6px 2px 14px; }
.rhead .av { width: 44px; height: 44px; font-size: 15px; background: var(--brand); }
.rhead .sp { flex: 1; min-width: 0; }
.rhead b { font-size: 19px; display: block; }
.rhead small { color: var(--muted); font-size: 12.5px; }
.rlogo { height: 30px; width: auto; }
.locbar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.locbar .sp { flex: 1; min-width: 0; }
.locbar .hint { margin: 2px 0 0; font-size: 12.5px; }
.ldot { width: 12px; height: 12px; border-radius: 50%; background: #c3c8d1; flex: none; }
.locbar[data-s="on"] { background: #ecfaf1; border-color: #bfe9cf; }
.locbar[data-s="on"] .ldot { background: var(--ok); box-shadow: 0 0 0 5px #16a34a29; }
.locbar[data-s="starting"] .ldot { background: var(--warn); }
.locbar[data-s="problem"] { background: #fff5f5; border-color: #f7c6c6; }
.locbar[data-s="problem"] .ldot { background: var(--bad); }
.rstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.rstats div { background: #fff; border-radius: 18px; padding: 12px 14px; border: 1px solid var(--line); }
.rstats b { font-size: 24px; display: block; letter-spacing: -.5px; }
.rstats small { color: var(--muted); font-size: 12.5px; }
.rtitle { font-size: 17px; margin: 18px 2px 10px; scroll-margin-top: 12px; }
.rempty { background: #fff; border-radius: 18px; padding: 26px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.rjob { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; margin-bottom: 12px; }
.rjob .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.rjob .tag { font-size: 12px; font-weight: 700; background: var(--bg); padding: 4px 10px; border-radius: 99px; }
.rjob .tag .pill { margin: -4px -10px; }
.rjob .mono { font-size: 13.5px; }
.rjob .stop { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; }
.rjob .stop + .stop { border-top: 1px dashed var(--line); }
.rjob .stop > i { width: 12px; height: 12px; border-radius: 50%; margin-top: 18px; }
.rjob .stop i.a { background: #22a35a; } .rjob .stop i.b { background: #e5484d; }
.rjob .stop small { display: block; color: var(--muted); font-size: 12px; }
.rjob .stop b { display: block; font-size: 15px; line-height: 1.3; }
.rjob .stop.faded { opacity: .55; }
.rjob .dir { display: block; margin-top: 5px; background: #eef4ff; color: var(--ink); border-radius: 10px; padding: 6px 9px; font-size: 13.5px; font-weight: 600; }
.rjob .call { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); text-decoration: none; font-size: 17px; margin-top: 8px; }
.rjob .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.rjob .paid { color: var(--ok); font-weight: 700; font-size: 13.5px; margin-top: 8px; }
.rjob .cashl { background: #fef3c7; color: #7a4b00; border-radius: 12px; padding: 9px 11px; font-weight: 700; margin-top: 10px; }
.rjob .acts { display: flex; gap: 8px; margin-top: 12px; }
.rjob .acts button { flex: 1; padding: 13px 10px; font-size: 15px; font-weight: 700; border-radius: 14px; }
.rjob .more { text-align: center; margin-top: 6px; }
.linkbtn { background: none; border: 0; color: var(--bad); font-weight: 600; font-size: 13.5px; padding: 6px; text-decoration: underline; }
.rjob.open { border: 2px solid var(--brand); }
.rjob.hero { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 30px #1f2f4c40; }
.rjob.hero .tag { background: #ffffff1f; color: #fff; }
.rjob.hero .stop small, .rjob.hero .meta { color: #c9d0dc; }
.rjob.hero .stop + .stop { border-color: #ffffff26; }
.rjob.hero .stop i { box-shadow: 0 0 0 3px #ffffff26; }
.rjob.hero .call { background: #fff; }
.rjob.hero .dir { background: #ffffff1a; color: #fff; }
.rjob.hero .paid { color: #7ee2a8; }
.rjob.hero .cashl { background: #ffffff1a; color: #ffd98a; }
.rjob.hero button.light { background: #fff; color: var(--ink); border-color: #fff; }
.rjob.hero .linkbtn { color: #ffb4b4; }
.rtabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px #1f2f4c12; }
.rtabs button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 6px 2px; position: relative; border-radius: 12px; }
.rtabs button i { font-style: normal; line-height: 0; }
.rtabs .ic { width: 22px; height: 22px; }
.rtabs button.on { color: var(--brand-dark); }
.rtabs em { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--brand); color: #fff; font-style: normal; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.rme { background: #fff; border-radius: 22px; padding: 16px; border: 1px solid var(--line); }
.rme .row1 { display: flex; gap: 12px; align-items: center; }
.rme .row1 .av { width: 52px; height: 52px; font-size: 18px; background: var(--brand); }
.rme .row1 b { font-size: 18px; display: block; } .rme .row1 small { color: var(--muted); }
.rme .cashbox { background: var(--bg); border-radius: 16px; padding: 12px 14px; margin: 14px 0 6px; }
.rme .cashbox small { display: block; color: var(--muted); } .rme .cashbox b { font-size: 26px; }
body.in-rider .newjob { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.in-rider .card { border-radius: 20px; }

/* Live map page on tablets and phones: map on top, riders underneath */
@media (max-width: 1100px) {
  .console[data-view="map"] .cgrid { grid-template-columns: 1fr; }
  .console[data-view="map"] .ridercard { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .console[data-view="map"] .map { height: 62vh; height: 62dvh; min-height: 320px; }
  .console .map { scroll-margin-top: 130px; }
}

/* Controls that set their own size keep it (the 44px touch minimum is for ordinary buttons) */
.cicon, .cclose, .cburger, .cnew, .tpill, .grab, .opanel .x, .linkbtn, .cmenu button, .rtabs button, .cme { min-height: 0; }
.csearch input { min-height: 0; box-shadow: none; }
.pillsel, .ctable select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.grab, .rtabs button, .linkbtn, .cmenu button, .opanel .x { box-shadow: none; }
/* Numbers line up */
.kn, .rstats b, .teta .n, .ctable td:nth-child(4), .rme .cashbox b, .stat .n { font-variant-numeric: tabular-nums; }
/* Icons in context */
.kic .ic { width: 18px; height: 18px; }
.legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend .pdot:not(:first-child) { margin-left: 8px; }
.tkn i .ic { width: 16px; height: 16px; color: var(--muted); }
.trider .round { color: var(--ink); }
.trider .round .ic { width: 20px; height: 20px; }
.trider .round.o { color: #fff; }
.rjob .call { color: var(--ink); }
.rjob .call .ic { width: 18px; height: 18px; }
.rjob .acts .ic { width: 18px; height: 18px; }
.rjob .meta .ic, .rjob .paid .ic, .rjob .cashl .ic, .rjob .dir .ic { width: 15px; height: 15px; vertical-align: -.15em; }
.from-map .ic { width: 14px; height: 14px; }
.seg .pdot { margin-right: 2px; }
label .pdot { margin-right: 4px; }

/* Change my password (dispatch.html) */
.pwdlg { border: 0; padding: 0; background: transparent; width: min(420px, calc(100vw - 32px)); }
.pwdlg::backdrop { background: rgba(15, 23, 42, .45); }
