/* Live admin panel additions on top of style.css */
[hidden]{display:none!important}
.login{min-height:100vh;display:grid;place-items:center;padding:16px}
.login-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;width:100%;max-width:400px}
.login-card form{display:grid;gap:14px;margin-top:14px}
.login-card label{display:grid;gap:6px;font-weight:600;font-size:13px}
.login-card input,.live input,.live select,.live textarea{border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);width:100%}
.login-card details{font-size:13px;color:var(--muted)}
.wide-btn{width:100%;padding:14px}
.login-error{color:#b24826;min-height:1em;font-weight:600}
.link{background:none;border:0;color:var(--green);padding:0;text-decoration:underline;cursor:pointer}
#nav button .count{background:var(--lime);color:var(--green);border-radius:20px;padding:1px 8px;font-size:11px;margin-left:6px;font-weight:700}
.dispatch{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);gap:18px;align-items:start}
#map{height:620px;border-radius:14px;border:1px solid var(--line);z-index:0}
.queue{display:grid;gap:12px;max-height:620px;overflow:auto}
.job-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:8px}
.job-card.waiting{border-left:4px solid #e0a43a}.job-card h4{margin:0;font:700 15px Manrope,sans-serif}
.job-card .row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.job-card select{width:auto;flex:1;min-width:140px}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:10px 0}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:middle}
.form-stack{display:grid;gap:12px}.form-stack label,.form-grid label{display:grid;gap:6px;font-size:13px;font-weight:600}
.doc-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}
.doc-row:first-child{border-top:0}.doc-row h4{margin:0 0 4px}
.edit-doc{display:grid;gap:10px;background:var(--paper);border-radius:12px;padding:14px;margin-top:10px;grid-column:1/-1}
.radio-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}.radio-row span{flex:1;min-width:200px}
.radio-row label{display:flex;gap:4px;align-items:center;font-weight:500}.radio-row input{width:auto}
.crit{color:#b24826;font-size:11px;font-weight:700;margin-left:6px}
.loading{padding:40px;color:var(--muted)}
.kv{display:grid;grid-template-columns:160px 1fr;gap:8px 16px;margin:0}.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:600}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.live table{width:100%;border-collapse:collapse}.live th,.live td{text-align:left;padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:top}.live th{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.5px}
@media(max-width:1050px){.dispatch,.two{grid-template-columns:1fr}#map{height:420px}}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){.kv{grid-template-columns:1fr}.login-card{padding:22px}.live .aside-foot{display:block;position:static;margin-top:10px;line-height:1.6}.live .aside-foot br{display:none}.live .aside-foot small,.live .aside-foot button{margin-left:8px}.doc-row{grid-template-columns:1fr}}
.hours-editor table{width:100%;border-collapse:collapse}.hours-editor th,.hours-editor td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line)}
.hours-editor input[type=time]{width:auto;min-width:120px;padding:8px 10px}.hours-editor input:disabled{opacity:.45}
.hours-editor .check{display:flex;align-items:center;gap:8px;font-weight:600}.hours-editor .check input{width:auto}
@media(max-width:600px){.hours-editor th:nth-child(2),.hours-editor td:nth-child(2){width:1%}.hours-editor input[type=time]{min-width:0;width:100%}}
.partner-app{max-width:820px;margin:0 auto;padding:16px}.partner-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.partner-head .grow{flex:1}
.partner-app main{margin-left:0;padding:0;max-width:none}
.partner-app .panel{margin-bottom:18px}.partner-app .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.partner-app .row .grow{flex:1;display:grid}
/* Live dispatch: filters, trip replay and zones (dispatch.js) */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:7px 12px;font-weight:600;cursor:pointer;user-select:none}
.chip input{width:auto;margin:0;accent-color:var(--green)}.chip b{color:var(--muted);font-weight:700}.chip .dot{margin:0}
.leaflet-popup-content select{margin:8px 0 0;padding:7px;font-size:12px}
.replay{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);gap:18px;align-items:start}
.player{display:flex;gap:10px;align-items:center;margin-top:10px}.player input[type=range]{flex:1;margin:0;padding:0;accent-color:var(--green)}.player select{width:auto;margin:0}
.readout{margin:8px 0;font-variant-numeric:tabular-nums}.over{color:#a03a1b;font-weight:700}
.legend .line{display:inline-block;width:22px;border-top:4px solid;margin-right:6px;vertical-align:middle}
.timeline{margin:0;padding-left:18px;display:grid;gap:6px;line-height:1.5}
.live table.compact td,.live table.compact th{padding:6px 8px;font-size:12px}
.compact tr[data-pt]{cursor:pointer}.compact tr.over td{background:#fde4dc}.compact tr.on td{background:#e6eef3}
.table-wrap .compact{display:block;max-height:340px;overflow:auto}
.zone-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.zone-row:first-of-type{border-top:0}.zone-row .dot{margin-right:6px}
.link.danger{color:#a03a1b}
#map.drawing,#map.drawing .leaflet-grab{cursor:crosshair}
@media(max-width:1050px){.replay{grid-template-columns:1fr}}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){.zone-row{flex-direction:column;align-items:flex-start}.player{flex-wrap:wrap}}
/* Many sections: the sidebar scrolls, and the login line sits under the list instead of over it. */
.live aside{overflow-y:auto;display:flex;flex-direction:column}
.live nav{gap:2px}.live nav button{padding:10px 15px}
.live .city{margin-bottom:28px}
.live .aside-foot{position:static;margin-top:auto;padding-top:20px}
/* Phone: the sections sit in a dropdown behind one Menu button (nav-toggle in index.html). */
.nav-toggle{display:none}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){
 .live aside{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;position:sticky;top:0;z-index:1001;max-height:100vh;border-bottom:1px solid var(--line)}
 .nav-toggle{display:flex;align-items:center;gap:8px;margin-left:auto;max-width:60%;border:1px solid var(--line);background:#f7f9fb;color:var(--ink);border-radius:22px;padding:9px 14px;font-weight:600}
 .nav-toggle #nav-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .nav-toggle .chev{transition:transform .15s}.live aside.open .nav-toggle .chev{transform:rotate(180deg)}
 .live nav{display:none;flex-basis:100%;flex-direction:column;flex-wrap:nowrap;gap:2px;margin:0;overflow-y:auto;max-height:calc(100vh - 140px);background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px}
 .live aside.open nav{display:flex}
 .live nav button{flex:none;text-align:left;font-size:14px;padding:12px 14px;white-space:normal}
 .live aside .aside-foot{display:none}
 .live aside.open .aside-foot{display:block;flex-basis:100%;padding-top:4px;line-height:1.8}
}
/* Safety screen (safety.js) */
.sos-banner{position:sticky;top:0;z-index:1000;background:#c0262d;color:#fff;padding:10px 16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-radius:12px;margin-bottom:12px}
.sos-banner span{flex:1;min-width:160px}
.safety-card.p1{border-left:5px solid #c0262d}.safety-card.p2{border-left:5px solid #e0a43a}
.safety-card .contacts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.queue.wide{max-height:none;margin-bottom:18px}
#safety-map{height:520px;border-radius:14px;border:1px solid var(--line);z-index:0}
.compare{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0}.compare figure{margin:0;display:grid;gap:6px}.compare img{width:220px;max-width:100%;height:260px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:var(--paper)}
.compare figcaption{font-size:12px;color:var(--muted);font-weight:600}
.chat{list-style:none;padding:0;display:grid;gap:8px}.chat li{background:var(--paper);border-radius:10px;padding:8px 10px;max-width:90%}.chat li.from-driver{justify-self:end}
.check{display:flex!important;gap:8px;align-items:center;font-weight:600}.check input{width:auto}
.small{font-size:13px}
.safety-tabs{flex-wrap:wrap}
@media(max-width:1050px){#safety-body .queue{max-height:none;overflow:visible}}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){.safety-card .contacts{grid-template-columns:1fr}#safety-map{height:340px}}
/* Pricing: rate card table and on/off switches */
label.check{display:flex;flex-direction:row;align-items:center;gap:8px;margin:8px 0}
label.check input{width:auto}
#pf td input{width:100%;min-width:72px}
/* Analytics & audit trail (insights.js) */
.range-custom{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.range-custom label{display:flex;flex-direction:column;font-size:11px}.range-custom input{width:auto;margin:4px 0 0;padding:8px}
.barchart{margin:0}.bars{display:flex;align-items:flex-end;gap:2px;height:180px;border-bottom:1px solid var(--line);padding-bottom:0;position:relative;margin-bottom:22px}
.bar-slot{flex:1;height:100%;display:flex;align-items:flex-end;position:relative;min-width:3px;outline-offset:1px}.bar-slot:hover .bar,.bar-slot:focus .bar{background:var(--ink)}
.bar{display:block;width:100%;background:var(--green);border-radius:4px 4px 0 0}.bar.neg{background:#c2410c}
.bar-slot small{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:4px;font-size:10px;color:var(--muted);white-space:nowrap}
#chart-tip{position:absolute;display:none;background:var(--ink);color:#fff;font-size:12px;padding:6px 10px;border-radius:8px;pointer-events:none;z-index:20;white-space:nowrap}
.heat-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted)}.heat-legend i{display:inline-block;width:14px;height:14px;border-radius:3px;margin-right:4px;vertical-align:middle;border:1px solid var(--line)}
.week-grid td,.week-grid th{padding:0;text-align:center;font-size:10px;height:26px;min-width:26px;border:2px solid #fff}.week-grid th{font-weight:500;color:var(--muted)}.week-grid tbody th{text-align:left;padding-right:6px}.week-grid td{color:var(--ink);border-radius:4px}
code.hash{font-size:11px;word-break:break-all;background:#ecf1f4;padding:2px 5px;border-radius:5px}
.audit-details{font-size:11px;white-space:pre-wrap;max-width:360px;margin:6px 0 0;background:#f6f7f2;padding:8px;border-radius:8px}
details.panel summary{cursor:pointer}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){.bars{height:140px}.range-custom{width:100%}}
.two+.two,.two+details.panel,details.panel+.panel,.dispatch+.panel{margin-top:18px}
ul.plain{list-style:none;padding:0;margin:6px 0;display:grid;gap:6px}
/* Phones and narrow windows: let grid children shrink, so wide tables scroll inside their own box instead of
   stretching the whole page sideways (jay, 29 Oct 2026). */
.form-stack>*,.two>*,.grid>*,.dispatch>*,.queue>*,.replay>*,.cards>*,.stats>*,.rows>*,.kv>*,.contacts>*,.docs>*,.facts>*{min-width:0}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){main{min-width:0;max-width:100vw;overflow-x:clip}}
/* Place search box on the admin maps */
.map-search{background:#fff;width:min(280px,calc(100vw - 200px))}
.location{white-space:nowrap}
.map-search form{display:flex}
.map-search input{margin:0;border:0;border-radius:4px 0 0 4px;padding:8px 10px;background:#fff;font-size:13px;min-width:0}
.map-search button[type=submit]{border:0;background:var(--green);color:#fff;padding:0 12px;border-radius:0 4px 4px 0;font-size:16px}
.map-results{list-style:none;margin:0;padding:0;border-top:1px solid var(--line);max-height:220px;overflow:auto}
.map-results li{padding:8px 10px;font-size:12px}.map-results li+li{border-top:1px solid var(--line)}
.map-results button{all:unset;cursor:pointer;display:block;width:100%}.map-results button:hover strong{text-decoration:underline}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){.tabs,.seg{max-width:100%;flex-wrap:wrap}.tabs>*,.seg>*{flex:0 1 auto;white-space:normal}}
/* Second login step (login-security.js): choices, QR code, backup codes. */
.step-box{display:grid;gap:12px;margin-top:10px}.step-title{font-size:20px;margin:2px 0 4px}.center{text-align:center;margin:0}
.step-choices{display:grid;gap:10px}.choice{display:grid;gap:4px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;cursor:pointer;font:inherit;color:var(--ink)}
.choice:hover:not(:disabled){border-color:var(--green)}.choice:disabled{opacity:.55;cursor:not-allowed}.choice span{color:var(--muted);font-size:13px}
.qr{width:200px;height:200px;display:block;margin:4px auto;image-rendering:pixelated;border:1px solid var(--line);border-radius:12px;background:#fff}
.secret{display:block;font-size:15px;letter-spacing:.06em;word-break:break-all;background:var(--paper);padding:10px;border-radius:8px;margin-top:6px}
.backup-codes{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 14px;list-style:none;padding:12px;margin:0;background:var(--paper);border-radius:12px}.backup-codes code{font-size:15px;letter-spacing:.05em}
.warn-panel{border-color:#f0c9a8;background:#fff8f1}.step-panel{max-width:440px;display:grid;gap:12px}
.stars{color:#d99a00;letter-spacing:1px;white-space:nowrap}.tag-chip{display:inline-block;background:#eef2fb;color:#1e3a6d;border-radius:999px;padding:2px 8px;font-size:12px;margin:2px 4px 2px 0}
.stars-off{color:#d6dbe1}
/* ---------- Design refresh (Nov 2026): white background, navy text and line icons ----------
   Shared by the admin panel, the store panel (/partner/) and the company dashboard (/business/). */
:root{--ink:#1e3a6d;--green:#1e3a6d;--muted:#5f6d84;--line:#e3e8f0;--paper:#fff;--soft:#f3f6fb;--tint:#e9f0fa;--ok:#1f8a5b;--warn:#b7791f;--bad:#b4442a}
body{background:#fff;color:var(--ink)}
.ico{width:18px;height:18px;flex:none;vertical-align:-3px;display:inline-block}
h1,h2,h3,h4,.brand,.stat strong,.profile h2{color:var(--ink)}
/* Logo */
/* "gr." logo (jay, 20 Nov 2026): the same logo as the website and the customer pages, not the old navy "g." block. */
.brand .logo,.bk-logo{display:inline-block;flex:0 0 auto;width:40px;height:40px;padding:0;font-size:0;line-height:0;color:transparent;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1024 1024%22 role=%22img%22 aria-label=%22GrubRide%22%3E%3Cdefs%3E%3ClinearGradient id=%22gr%22 gradientUnits=%22userSpaceOnUse%22 x1=%2272%22 y1=%221132%22 x2=%221949%22 y2=%22-442%22%3E%3Cstop offset=%220%22 stop-color=%22%232fa8ee%22/%3E%3Cstop offset=%221%22 stop-color=%22%231e3a6d%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%221024%22 height=%221024%22 rx=%22230%22 fill=%22%23ffffff%22/%3E%3Cg fill=%22url(%23gr)%22 transform=%22translate(512 512) scale(0.298348 -0.298348) translate(-1010.5 -345.0)%22%3E%3Cpath d=%22M630 -442C964 -442 1194 -284 1194 25V1118H849V926H839C797 1027 696 1132 519 1132C284 1132 72 950 72 559C72 182 275 15 520 15C686 15 782 94 823 195H850V-3C850 -136 770 -199 628 -199C503 -199 434 -148 414 -87L111 -149C152 -324 338 -442 630 -442ZM639 271C505 271 431 380 431 560C431 740 505 859 639 859C773 859 850 743 850 560C850 379 773 271 639 271ZM849 200H1194V610C1194 744 1293 834 1422 834C1464 834 1527 827 1560 816V1120C1531 1127 1494 1132 1461 1132C1338 1132 1240 1061 1200 914H1188V1118H849Z%22/%3E%3Ccircle cx=%221775%22 cy=%22174%22 r=%22174%22/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat;border-radius:11px;box-shadow:0 0 0 1px rgba(30,58,109,.14),0 4px 12px rgba(30,58,109,.12);vertical-align:middle}
.brand{font-size:22px;gap:10px}
/* Sidebar */
.live aside{background:#fff;border-right:1px solid var(--line);padding:22px 14px 18px;width:252px}
.live aside+main{margin-left:252px;padding:28px 40px}
.live aside .city{margin:12px 0 18px 4px}
.live aside .mode-label{display:none}
.live nav{margin-top:0;display:block}
.nav-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:0 10px;background:var(--soft);margin:0 0 12px;color:var(--muted);font-weight:500}
.nav-search input{border:0!important;background:transparent!important;margin:0;padding:9px 0!important;font-size:13px;outline:0;color:var(--ink)}
.nav-search:focus-within{border-color:var(--ink);background:#fff}
.nav-group{margin-bottom:6px}
.nav-head{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;padding:8px 10px 6px;font-size:10.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);border-radius:8px}
.nav-head:hover{color:var(--ink)}
.nav-head .chev{width:14px;height:14px;transition:transform .15s}
.nav-group.closed .nav-items{display:none}.nav-group.closed .nav-head .chev{transform:rotate(-90deg)}
#nav.finding .nav-group .nav-items{display:block}#nav.finding .nav-head .chev{transform:none}
.live nav .nav-items button,.live nav .nav-items .nav-link{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;padding:8px 10px;border-radius:9px;color:var(--ink);font-size:13.5px;text-align:left;text-decoration:none;position:relative}
.live nav .nav-items span{width:auto;display:inline}
.live nav .nav-items .nav-label{flex:1}
.live nav .nav-items .ico{color:var(--ink);opacity:.85}
.live nav .nav-items button:hover,.live nav .nav-items .nav-link:hover{background:var(--soft)}
.live nav .nav-items button.selected{background:var(--tint);font-weight:700}
.live nav .nav-items button.selected::before{content:'';position:absolute;left:-14px;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:var(--ink)}
.live nav .nav-items button.selected .ico{opacity:1}
.live nav .nav-link .ext{width:14px;height:14px;opacity:.6}
#nav button .count{background:var(--ink);color:#fff;margin-left:auto}
.nav-none{padding:6px 10px}
.live .aside-foot{border-top:1px solid var(--line);margin-top:16px;padding:14px 6px 0;color:var(--muted)}
.live .aside-foot #who{color:var(--ink);font-weight:600}
/* Top of each page stays in view */
.live aside+main>header{position:sticky;top:0;z-index:20;background:#fffffff2;backdrop-filter:blur(6px);margin:-28px -40px 18px;padding:20px 40px 4px;border-bottom:1px solid transparent}
.live aside+main>header h1{margin:4px 0 14px;font-size:28px}
.location{display:flex;align-items:center;gap:0;padding:9px 14px;border-color:var(--line);color:var(--ink);font-weight:600}
.location .loc-ico{border:0;margin:0 6px 0 0;padding:0;display:inline-flex}
/* Cards, numbers and tables */
.stat,.panel,.restaurant,.profile,.job-card,.order-card{border-color:var(--line);box-shadow:0 1px 2px #1e3a6d0a,0 4px 14px #1e3a6d08}
.stat label,.stat small{color:var(--muted)}
.stat strong{color:var(--ink)}
.stats .stat-btn{font:inherit;text-align:left;cursor:pointer;width:100%;display:block;transition:border-color .15s,box-shadow .15s}
.stats .stat-btn label{cursor:pointer}.stats .stat-btn:hover{border-color:var(--blue,#2f6fde)}
html body.live .stats .stat-btn.active{background:var(--ink)!important;border-color:var(--ink)!important}html body.live .stats .stat-btn.active strong{color:#fff}html body.live .stats .stat-btn.active :is(label,small){color:#c9d6ea}.stats .stat-btn:focus-visible{outline:3px solid var(--blue,#2f6fde);outline-offset:2px}
.stat.accent{background:var(--ink);border-color:var(--ink)}.stat.accent strong{color:#fff}.stat.accent label,.stat.accent small{color:#c9d6ea}
.hero{background:var(--ink);border-radius:18px}.hero h2{color:#fff}
.hero .hero-art{margin-right:30px;transform:none;opacity:.9}
.hero .hero-ico{width:110px;height:110px;color:var(--lime);stroke-width:1.2}
th{color:var(--muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.6px;background:#fff}
.table-wrap{max-height:75vh}
.table-wrap thead th,.panel table thead th{position:sticky;top:0;z-index:1;background:#fff;box-shadow:inset 0 -1px 0 var(--line)}
tbody tr:hover td{background:var(--soft)}
td,th{border-bottom-color:var(--line)}
/* Status labels get a coloured dot */
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--tint);color:var(--ink);font-weight:600}
.pill::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.75;flex:none}
.pill.grey{background:#eff1f4;color:#5f6d84}
.pill.amber{background:#fdf3de;color:#8a5a12}
.pill.red{background:#fbe6e0;color:var(--bad)}
.pill.green,.pill.ok{background:#e3f4ec;color:var(--ok)}
/* Buttons and fields */
.btn{background:var(--ink);border-radius:10px}
.btn.secondary{background:var(--tint);color:var(--ink)}
.btn.light{background:#fff;color:var(--ink)}
.link{color:var(--ink)}
input,select,textarea,.live input,.live select,.live textarea,.login-card input{border-color:#d7deea;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px #1e3a6d1f}
.tabs button,.seg{border-color:var(--line)}
.tabs button.active,.seg button.on{background:var(--ink);border-color:var(--ink)}
.choice .ico,.alert-bar .ico,.link .ico,td .ico,strong .ico,p .ico{width:16px;height:16px;vertical-align:-3px}
.noimg .ico{width:24px;height:24px;color:var(--muted)}
.login-card{box-shadow:0 10px 40px #1e3a6d14}
.login{background:linear-gradient(180deg,#f3f6fb,#fff 60%)}
footer{color:var(--muted)}
/* Store panel and company dashboard: same white and navy look */
.partner-app .partner-head{border-bottom:1px solid var(--line);padding-bottom:14px}
.p-tabs{background:#fff!important}
.p-tabs button,.business-app .tabs button{display:inline-flex;align-items:center;gap:8px;color:var(--ink)!important;border-color:var(--line)!important}
.p-tabs button.on,.business-app .tabs button.on{background:var(--ink)!important;color:#fff!important;border-color:var(--ink)!important}
.p-tabs button .ico,.business-app .tabs button .ico{width:17px;height:17px}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){
 .live aside{width:auto;padding:12px 16px;border-right:0}
 .live aside+main{margin-left:0;padding:16px}
 .live aside+main>header{margin:-16px -16px 14px;padding:14px 16px 2px;position:static}
 .live nav{display:none}
 .live aside.open nav{display:block}
 .live nav .nav-items button,.live nav .nav-items .nav-link{padding:11px 10px;font-size:14px}
 .live nav .nav-items button.selected::before{left:-6px}
 .nav-toggle .ico{width:16px;height:16px}
 .nav-toggle #nav-current{display:inline-flex;align-items:center;gap:8px}
 .hero .hero-ico{width:64px;height:64px}
}
.nav-search input:focus{box-shadow:none}
.bk-themes{border:1px solid var(--line,#d8e2ea);border-radius:10px;padding:8px 12px;margin:10px 0}.bk-themes legend{font-weight:600;font-size:13px;padding:0 4px}.bk-themes label.check{display:inline-flex;margin:4px 14px 4px 0}
/* Date and time boxes: iPhone Safari gives them a fixed inner width, so they spilled out of their card
   (Holidays, bookings, reports ...). Same look as the other boxes, text on the left. */
input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:none;appearance:none;display:block;min-width:0;max-width:100%;min-height:44px;text-align:left}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value{text-align:left;margin:0}
.form-grid>*{min-width:0}
/* Room between cards that follow each other on a page, and under a card's heading before its form. */
#content>section.panel+section.panel{margin-top:18px}
.panel>h3+form{margin-top:12px}
/* "Show test data" on the Stores, Drivers and Customers lists. */
.test-toggle{font-size:13px;white-space:nowrap}
/* Phones (jay, 10 Nov 2026: "It should all fit, no scrolling left to right"): every table row becomes a card
   and its cells wrap onto as many lines as they need. Each cell shows its column name above it (data-label,
   set by table-labels.js). Grids that must keep their columns (opening hours, heat map, bar charts) are left out. */
@media(max-width:700px),(orientation:landscape) and (max-height:520px){
 .table-wrap{overflow-x:visible;max-height:none}
 main table:not(.hours-editor):not(.week-grid):not(.bars){display:block;width:100%;min-width:0}
 main table:not(.hours-editor):not(.week-grid):not(.bars) thead{display:none}
 main table:not(.hours-editor):not(.week-grid):not(.bars) tbody,main table:not(.hours-editor):not(.week-grid):not(.bars) tfoot{display:block}
 main table:not(.hours-editor):not(.week-grid):not(.bars) tr{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 14px;padding:12px 0;border-bottom:1px solid var(--line)}
 main table:not(.hours-editor):not(.week-grid):not(.bars) tr:last-child{border-bottom:0}
 main table:not(.hours-editor):not(.week-grid):not(.bars) td,main table:not(.hours-editor):not(.week-grid):not(.bars) th{display:block;border:0;padding:0;min-width:0;max-width:100%;width:auto;white-space:normal;overflow-wrap:anywhere;text-align:left}
 main table:not(.hours-editor):not(.week-grid):not(.bars) td:first-child{flex:1 1 100%}
 main table:not(.hours-editor):not(.week-grid):not(.bars) td:empty{display:none}
 main table:not(.hours-editor):not(.week-grid):not(.bars) td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
 main table td .btn{white-space:normal}
 .section-head{flex-wrap:wrap;gap:6px}
}
/* ---- Admin additions (admin-tools.js, 12 Nov 2026) ---- */
/* Search everything, top bar */
.head-tools{display:flex;align-items:center;gap:8px;flex:0 1 420px;min-width:0}
.gsearch{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:22px;padding:0 12px;background:var(--soft);color:var(--muted)}
.gsearch:focus-within{border-color:var(--ink);background:var(--paper)}
.gsearch .gs-ico{display:inline-flex}
.live .gsearch input{border:0!important;background:transparent!important;margin:0;padding:10px 0!important;font-size:13.5px;outline:0;min-width:0;flex:1;color:var(--ink)}
.gsearch kbd{font:600 11px 'DM Sans',sans-serif;border:1px solid var(--line);border-radius:5px;padding:1px 6px;color:var(--muted)}
.gsearch-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #0f1e3a24;max-height:min(70vh,520px);overflow:auto}
.gsearch-results ul{list-style:none;margin:0;padding:6px}
.gsearch-results li{display:flex;gap:10px;align-items:flex-start;padding:9px 10px;border-radius:9px;cursor:pointer;color:var(--ink)}
.gsearch-results li.on,.gsearch-results li:hover{background:var(--tint)}
.gs-kind{flex:0 0 74px;font-size:10.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);padding-top:2px}
.gs-main{display:flex;flex-direction:column;min-width:0}.gs-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-empty{padding:12px 14px;margin:0}
.theme-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:22px;padding:8px 12px;font-size:12.5px;font-weight:600;white-space:nowrap}
/* System health, Overview, notes */
.health-top{margin-bottom:18px}
.health-top.ok{border-left:4px solid var(--ok)}.health-top.warn{border-left:4px solid var(--warn)}.health-top.bad{border-left:4px solid var(--bad)}
small.sub{display:block;color:var(--muted);margin-top:3px;line-height:1.45}
.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 16px;margin-bottom:8px}
.mini-stats div{display:flex;flex-direction:column;gap:2px}.mini-stats strong{font:800 22px Manrope,sans-serif;color:var(--ink)}
.handover{list-style:none;margin:0 0 12px;padding:0}
.handover li{padding:10px 0;border-bottom:1px solid var(--line)}.handover li:last-child{border-bottom:0}
.handover li p{margin:0 0 3px;white-space:pre-wrap}.handover li.pinned p{font-weight:600}
#content>div>.two{margin-top:18px}
/* Growth: riders and drivers by hour */
.hour-bars{display:grid;gap:4px;margin:12px 0}
.hb{display:grid;grid-template-columns:58px 1fr 140px;align-items:center;gap:10px;font-size:12px}
.hb-l{color:var(--muted);text-align:right}
.hb-bar{display:flex;height:14px;background:var(--soft);border-radius:4px;overflow:hidden}
.hb-bar i{background:var(--ink);display:block}.hb-bar b{background:var(--bad);display:block}
.hb-n{color:var(--muted);white-space:nowrap}
.key{display:inline-block;width:10px;height:10px;border-radius:2px;vertical-align:-1px;margin:0 4px 0 8px}.key-ok{background:var(--ink)}.key-bad{background:var(--bad)}
/* Bulk actions */
.bulk-bar{position:sticky;top:96px;z-index:15;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--ink);color:#fff;border-radius:12px;padding:10px 14px;margin:0 0 12px}
.bulk-bar .btn.secondary{background:#ffffff1f;color:#fff;padding:8px 14px}
.bulk-bar .link{color:#c9d6ea;margin-left:auto}
.bulk-check{display:inline-flex;margin:0}.bulk-check input{width:18px;height:18px;margin:0;accent-color:var(--ink)}
th:has(>.bulk-check),td:has(>.bulk-check){width:28px}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){
 .live aside+main>header{flex-wrap:wrap;gap:8px;position:relative!important;z-index:30}
 .head-tools{flex:1 1 100%;order:3;margin-bottom:10px}
 .gsearch kbd{display:none}
 .theme-btn .nav-label{display:none}
 .mini-stats{grid-template-columns:repeat(2,1fr)}
 .hb{grid-template-columns:44px 1fr;}.hb-n{grid-column:2;font-size:11px}
 .bulk-bar{top:8px}
 main table tr:has(>td>.bulk-check)>td:first-child{flex:0 0 auto!important;align-self:flex-start}
 main table tr:has(>td>.bulk-check)>td:nth-child(2){flex:1 1 calc(100% - 46px)!important}
 main table tr:has(>td>.bulk-check)>td:nth-child(2)::before{display:none!important}
}
/* ---- Dark mode (html[data-theme=dark], set by admin-tools.js: Auto follows the device) ---- */
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark]{--ink:#e3eaf5;--green:#e3eaf5;--muted:#9aa6b8;--line:#2a3240;--paper:#181c22;--soft:#1e242d;--tint:#22304a;--ok:#4cc38a;--warn:#e0a43a;--bad:#f08a6c}
html[data-theme=dark] body{background:#121417;color:var(--ink)}
html[data-theme=dark] aside,html[data-theme=dark] .live aside,html[data-theme=dark] .live nav,html[data-theme=dark] .login-card{background:#121417}
html[data-theme=dark] .live aside+main>header{background:#121417f2}
html[data-theme=dark] :is(.stat,.panel,.restaurant,.profile,.job-card,.chip,.choice,.qr,.seg,.tabs button,.location,.p-tabs,fieldset.checklist,.lightbox button,.map-search,.map-search input,th,.table-wrap thead th,.panel table thead th){background:#181c22!important;color:var(--ink)}
html[data-theme=dark] :is(input,select,textarea,input[type=file],.inline-form input,.inline-form select,.nav-toggle,.opt span){background:#1e242d!important;color:var(--ink)!important;border-color:#333c4b!important}
html[data-theme=dark] .gsearch input,html[data-theme=dark] .nav-search input{background:transparent!important;border:0!important}
html[data-theme=dark] .btn{background:#4d7fd6;color:#fff}
html[data-theme=dark] .btn.secondary{background:#22304a;color:#dbe6f7}
html[data-theme=dark] .btn.light{background:#e3eaf5;color:#121417}
html[data-theme=dark] .btn.danger,html[data-theme=dark] .req{background:#3a1f1a;color:#f4a48d}
html[data-theme=dark] :is(.tabs button.active,.seg button.on,.p-tabs button.on,#nav button .count,#toast,#chart-tip){background:#e3eaf5!important;color:#121417!important;border-color:#e3eaf5!important}
html[data-theme=dark] :is(.hero,.stat.accent){background:#1b2a44!important;border-color:#1b2a44}
html[data-theme=dark] :is(.hero h2,.stat.accent strong){color:#fff}
html[data-theme=dark] .brand .logo,html[data-theme=dark] .bk-logo{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1024 1024%22 role=%22img%22 aria-label=%22GrubRide%22%3E%3Cdefs%3E%3ClinearGradient id=%22gr%22 gradientUnits=%22userSpaceOnUse%22 x1=%2272%22 y1=%221132%22 x2=%221949%22 y2=%22-442%22%3E%3Cstop offset=%220%22 stop-color=%22%239cdbfc%22/%3E%3Cstop offset=%221%22 stop-color=%22%235f7fe8%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%221024%22 height=%221024%22 rx=%22230%22 fill=%22%23000000%22/%3E%3Cg fill=%22url(%23gr)%22 transform=%22translate(512 512) scale(0.298348 -0.298348) translate(-1010.5 -345.0)%22%3E%3Cpath d=%22M630 -442C964 -442 1194 -284 1194 25V1118H849V926H839C797 1027 696 1132 519 1132C284 1132 72 950 72 559C72 182 275 15 520 15C686 15 782 94 823 195H850V-3C850 -136 770 -199 628 -199C503 -199 434 -148 414 -87L111 -149C152 -324 338 -442 630 -442ZM639 271C505 271 431 380 431 560C431 740 505 859 639 859C773 859 850 743 850 560C850 379 773 271 639 271ZM849 200H1194V610C1194 744 1293 834 1422 834C1464 834 1527 827 1560 816V1120C1531 1127 1494 1132 1461 1132C1338 1132 1240 1061 1200 914H1188V1118H849Z%22/%3E%3Ccircle cx=%221775%22 cy=%22174%22 r=%22174%22/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
html[data-theme=dark] .map-search button[type=submit]{background:#4d7fd6}
html[data-theme=dark] .pill{background:#22304a;color:#c9d8f0}
html[data-theme=dark] .pill.grey{background:#262b33;color:#a3adbb}
html[data-theme=dark] .pill.amber{background:#3a2e14;color:#f0c46a}
html[data-theme=dark] .pill.red{background:#3a1f1a;color:#f4a48d}
html[data-theme=dark] :is(.pill.green,.pill.ok){background:#15322a;color:#6fd6a6}
html[data-theme=dark] :is(.banner.warn,.warn-panel,.doc.expiring,.doc.incomplete,.doc.expired,.doc.missing,.doc.outdated,[style*="background:#fff7e0"],[style*="background:#fff2d7"],[style*="background:#fffaf0"],[style*="background:#fff1ef"]){background:#2a2416!important;border-color:#5a4520!important;color:var(--ink)}
html[data-theme=dark] :is(.thumb,.avatar,.inline-form,.edit-doc,.chat li,.secret,.backup-codes,.audit-details,code.hash,.compare img,.opt span,nav button.selected,[style*="background:#e6eef3"],[style*="background:#f3f5f8"],[style*="background:#f1f5fb"],[style*="background:#e7edf1"]){background:#1e242d!important;color:var(--ink)}
html[data-theme=dark] .tag-chip{background:#22304a;color:#c9d8f0}
html[data-theme=dark] [style*="color:#9c731b"]{color:#f0c46a!important}
html[data-theme=dark] .compact tr.over td{background:#3a1f1a}html[data-theme=dark] .compact tr.on td{background:#22304a}
html[data-theme=dark] .nav-search:focus-within,html[data-theme=dark] .gsearch:focus-within{background:#181c22}
html[data-theme=dark] .leaflet-tile-pane{filter:brightness(.72) contrast(1.08) saturate(.85)}
html[data-theme=dark] .bulk-bar{background:#22304a}
html[data-theme=dark] .hb-bar i,html[data-theme=dark] .key-ok{background:#7aa2e3}
html[data-theme=dark] .stat,html[data-theme=dark] .panel{box-shadow:none}

/* Accessibility (jay 2026-11-12): a "Skip to main content" link for keyboard users, a clear outline on every
   link, button and field reached with the keyboard, and no sliding or spinning when the device asks for less motion. */
.skip-link{position:absolute;left:12px;top:-80px;z-index:10000;background:#1e3a6d;color:#fff;padding:10px 16px;border-radius:10px;font-weight:700;text-decoration:none}
.skip-link:focus{top:10px;outline:3px solid #9cdbfc;outline-offset:2px}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible,[role=button]:focus-visible,label:focus-visible{outline:3px solid #538aaf;outline-offset:2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 3px #538aaf}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Features page for one store or company (feature-switches.js) and More features in the panels. */
.fs-head .section-head{flex-wrap:wrap;gap:8px;justify-content:flex-start}.fs-head .section-head h3{margin-right:auto}
.fs-set{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.fs-set label{min-width:220px}.fs-set .btn{margin-bottom:15px}.fs-about{flex-basis:100%;margin:-6px 0 0}
.fs-filter{margin:6px 0 12px}.fs-filter .tabs{margin:0 0 10px}.fs-filter input{margin:0}
.fs-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.fs-item{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:12px;cursor:pointer;font-weight:400;background:#fff}
.fs-item[data-on="1"]{border-color:#9cc3dc;background:#f2f8fc}.fs-item input{width:auto;margin:3px 0 0;accent-color:var(--green)}
.fs-text{flex:1;display:grid;gap:3px}.fs-text strong{font-size:13px}.fs-text small{line-height:1.45}
.fs-state{font-size:11px;font-weight:700;color:var(--muted)}.fs-item[data-on="1"] .fs-state{color:var(--green)}
.fs-save{position:sticky;bottom:0;display:flex;gap:12px;align-items:center;justify-content:flex-end;background:#fffffff0;border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:0 0 18px;z-index:2}
.fs-save[hidden]{display:none}
.fs-hist{display:grid;gap:3px;text-align:right;font-size:12px;max-width:60%}.fs-on{color:#1e6b3a}.fs-off{color:#9b3b2f}
.fs-requests .row small{display:block;color:var(--muted)}
.fs-dialog{border:0;border-radius:16px;padding:22px;max-width:520px;width:calc(100vw - 32px)}.fs-dialog::backdrop{background:#1b243366}
.fs-pick{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--line);border-radius:10px;margin:0 0 8px;font-weight:400;cursor:pointer}.fs-pick input{width:auto;margin:3px 0 0}.fs-pick span{display:grid;gap:2px}
@media(max-width:700px),(orientation:landscape) and (max-height:520px){.fs-hist{max-width:none;text-align:left}.fs-requests .row,.fs-save{flex-wrap:wrap}.fs-list{grid-template-columns:1fr}}
html[data-theme=dark] :is(.fs-item,.fs-pick,.fs-dialog){background:#1e242d;border-color:#333c4a;color:var(--ink)}
html[data-theme=dark] .fs-item[data-on="1"]{background:#22304a;border-color:#4d7fd6}
html[data-theme=dark] .fs-save{background:#121417f0;border-color:#333c4a}
html[data-theme=dark] .fs-on{color:#4cc38a}html[data-theme=dark] .fs-off{color:#f08a6c}
/* POS business type pages (pos-admin.js, 12 Nov 2026): the feature grid and the add form. */
.pt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.pt-grid[hidden]{display:none}
#pg-f select{width:auto;min-width:150px}
.pg-changed td{background:#fff8e6}
html[data-theme=dark] .pg-changed td{background:#2b2616}
/* Account pages (12 Nov 2026): account numbers, links to the store's other pages, POS switches, company switches. */
.acct-no{font-size:.6em;font-weight:600;letter-spacing:.02em}
.acct-links{flex-wrap:wrap;gap:6px 16px;margin-top:10px}
#acct-posf .fs-item,#cfeat-f .fs-item{align-items:center}
#acct-posf .fs-text{flex:1}#acct-posf select{width:auto;max-width:170px}
#pg-f td{vertical-align:middle;padding-top:6px;padding-bottom:6px}#pg-f select{margin:0;padding-top:6px;padding-bottom:6px}
#pg-f .table-wrap{max-height:none}
/* Phones turned sideways (jay, 12 Nov 2026: "Fix landscape mode"): the phone layout above applies (menu behind one
   button, no sidebar), and the wide screen is used for more stat tiles in a row and a shorter header. */
@media(orientation:landscape) and (max-height:520px){
 .stats,.stats.five{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
 .stat{padding:14px 16px}.stat strong{margin:6px 0}
 .live aside+main>header{flex-wrap:wrap;gap:8px 16px}
 .live aside+main>header h1{margin-bottom:10px}
}
