/* The manager app (/admin). Plain and quick on a phone or a desk. */
:root { --paper: #F6F8F5; --ink: #1E2A2F; --mid: #66737A; --rule: #DCE3DE; --accent: #0E8C6B; --ok: #2F7D4F; --bad: #B23B3B; --warnbg: #FFF4D6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.top a { color: var(--paper); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.brand img { border-radius: 7px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.top nav a { padding: 5px 10px; border-radius: 999px; opacity: .85; }
.top nav a.on, .top nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.me { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.me form { margin: 0; } .me .link { color: var(--paper); opacity: .75; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 4px; } h2 { font-size: 1.15rem; margin: 0 0 8px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 6px 0 14px; flex-wrap: wrap; }
.muted { color: var(--mid); } small { font-size: .82rem; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.groupname { margin: 22px 0 10px; font-size: 1.05rem; }
.groupname:first-child { margin-top: 4px; }
.narrow { max-width: 620px; }
.note { background: #E7F2EC; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; overflow-wrap: anywhere; }
.note.warn { background: var(--warnbg); } .note.bad { background: #F8E1E1; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stats a { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.stats b { font-size: 1.2rem; margin-right: 4px; }
.item { border-top: 1px solid var(--rule); padding: 12px 0; } .item p { margin: 0 0 6px; }
.form { display: grid; gap: 10px; }
.formrow { display: flex; flex-wrap: wrap; gap: 10px; }
.formrow > label { flex: 0 1 auto; }
label { display: grid; gap: 4px; font-weight: 500; } label small { font-weight: 400; color: var(--mid); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input[type=checkbox] { width: auto; margin-top: 4px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; align-items: end; }
.formbar, .gtools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font: 500 .95rem system-ui, sans-serif; cursor: pointer; }
.btn--ghost { background: #fff; color: var(--ink); } .btn--small { padding: 6px 12px; font-size: .86rem; }
.link { background: none; border: 0; padding: 0; color: var(--mid); text-decoration: underline; font: inherit; cursor: pointer; }
.scroll { overflow-x: auto; }
.otable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.otable th, .otable td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.otable th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); font-weight: 600; }
tr.muted td { opacity: .6; }
.tag { display: inline-block; font-size: .76rem; padding: 2px 8px; border-radius: 999px; background: var(--rule); white-space: nowrap; }
.tag--go { background: var(--accent); color: #fff; } .tag--ok { background: #DDEBDD; } .tag--bad { background: #F3D2D2; } .tag--wait { background: #FFF0C2; } .tag--off { background: #ECECEC; color: var(--mid); }
.dmap { height: min(55vh, 420px); border-radius: 8px; background: #e4e9e5; position: relative; z-index: 0; isolation: isolate; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; }
.facts dt { color: var(--mid); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.msg { margin: 4px 0; }
.addfold { margin-top: 12px; } .addfold summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
code { background: #EEF2EF; padding: 1px 5px; border-radius: 4px; font-size: .88em; overflow-wrap: anywhere; }
ol li { margin-bottom: 6px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; } .top nav { order: 3; flex-basis: 100%; } }

/* riders: sign-ups, vehicles, pay */
.appl { border-top: 1px solid var(--rule, #dde3dd); padding: 10px 0; }
.appl p { margin: 4px 0; }
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; margin: 4px 4px 0 0; border: 1px solid var(--rule, #dde3dd); }
.vchip { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: #E3EFE3; margin: 1px 0; white-space: nowrap; }
.vchip--wait { background: #F3E3C4; }
.payf { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.payf select, .payf input { font: inherit; font-size: .85rem; padding: 4px 6px; }
.gtools input[name=reason] { font: inherit; padding: 6px 8px; min-width: 180px; }

/* HQ */
body.hq .top { background: #3A2A1E; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: #fff; border: 1px solid var(--rule, #dde3dd); border-radius: 12px; padding: 14px; }
.tile a { color: inherit; text-decoration: none; display: block; }
.tile b { display: block; font-size: 1.8rem; line-height: 1.1; }
.tile span { color: #5b6b66; font-size: .9rem; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 4px 0; border-top: 1px solid var(--rule, #dde3dd); }
.payf .check { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; }
/* SOS bar (every office page until closed) and zones */
#sosbar { margin: 0 0 16px; }
.sos { background: #B23B3B; color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.sos p { margin: 0 0 8px; } .sos small { opacity: .85; }
.sosact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.sos .btn { background: #fff; color: #1E2A2F; border-color: #fff; }
.sos input { flex: 1; min-width: 180px; padding: 6px 10px; border-radius: 8px; border: 0; font: inherit; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.zonemap { height: 420px; border-radius: 12px; border: 1px solid var(--rule); margin: 8px 0; }
/* Orders, menu and help */
.olines { margin: 4px 0 8px; } .olines li { padding: 2px 0; }
.menuitem { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; } .menuitem > p, .menuitem > .formbar { grid-column: 2; } .menuitem > .thumb { grid-row: span 2; }
.menuitem.muted > p { opacity: .6; }
.menuitem details { flex-basis: 100%; } .menuitem details[open] { margin-top: 8px; }
.addone { margin-top: 14px; } .addone > summary { list-style: none; display: inline-block; cursor: pointer; } .addone > summary::-webkit-details-marker, .menuitem summary::-webkit-details-marker { display: none; }
.menuitem summary { list-style: none; cursor: pointer; }
.tmsg { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; margin: 0 40px 8px 0; background: #fff; } .tmsg p { margin: 2px 0 0; }
.tmsg--us { margin: 0 0 8px 40px; background: #EAF5F0; }
.formbar > input, .formbar > select, .formbar > label > select, .formbar > label > input { width: auto; }
.formbar > input[name=name] { flex: 1 1 220px; } .formbar > input[name=sort] { width: 4.5em; }
.formbar > label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.menuitem form { display: inline; } .menuitem .formbar details { flex-basis: 100%; } .menuitem .formbar details:not([open]) { flex-basis: auto; }

/* Several drops in one trip: the bar over the waiting list and the tick on each line. */
.triprow { flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; background: #F3F7F5; border-radius: 10px; margin: 0 0 12px; }
.triprow label { display: flex; align-items: center; gap: 6px; margin: 0; }
.triprow select { width: auto; min-width: 160px; }
.tripbox { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
