/* Driver page — on top of the cleaner page's s.css. */
.sign-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sign-line .ok-msg { margin: 0; }
button.small { width: auto; padding: 10px 14px; font-size: 14px; margin: 0; }
#q { margin: 6px 0 4px; }
.row.flat { cursor: pointer; }
/* Driver round, 17 Nov 2026: flat code, lockbox line, on the way, cancelled */
.code { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--gray-light, #eee); color: var(--muted, #555); }
.sub.key { color: var(--text, #222); }
.sub.bad { color: var(--red, #c0392b); font-weight: 600; }
.sub.onway { color: var(--primary, #4f46e5); font-weight: 600; }
.row.flat.onway { border-left-color: var(--primary, #4f46e5) !important; background: var(--primary-light, #ecebff); }
.goway { margin: 6px 0 0 auto; }
.row .sub.bags { color: var(--text); font-weight: 600; }
.dstat { margin-left: auto; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dstat.todo { color: var(--faint); font-size: 20px; padding: 0 6px; font-weight: 400; }
.dstat.ok { background: var(--green-light, #e6f6ec); color: var(--green, #1d7a46); }
.dstat.bad { background: var(--red-light, #fdeaea); color: var(--red, #c0392b); }
.chips button.bad { background: var(--red-light, #fdeaea); border-color: var(--red, #c0392b); color: var(--red, #c0392b); }
.sheet .stock-row { margin-top: 6px; }
.sheet #thumbs { margin: 8px 0; }
.sheet #thumbs:empty { display: none; }
.sheet .ph span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; background: rgba(0,0,0,0.5); color: #fff; text-align: center; }
.lb-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 4px; }
.muted { color: var(--muted); }

.dstat.drop { background: var(--primary-light, #ecebff); color: var(--primary, #4f46e5); }
.row .sub.tostop { color: var(--primary, #4f46e5); font-weight: 600; }
.stop { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.stop .stop-lines { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 600; }
.stop .ok-msg { margin: 0; }

.stop .stop-btns { display: flex; flex-direction: column; gap: 6px; }
.stop .stop-btns button { white-space: nowrap; }

.row .num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light, #ecebff); color: var(--primary, #4f46e5); font-weight: 700; font-size: 13px; align-items: center; justify-content: center; flex: none; }
.row.is-done .name { color: var(--muted); }
.row .sub.onote { color: var(--primary, #4f46e5); }
.changed { background: var(--amber-light, #fdf3d7); color: var(--text); border-radius: 14px; padding: 12px 14px; margin: 10px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.changed b { flex: 1; }
details.others { margin-top: 18px; }
details.others summary { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 0; cursor: pointer; }
.stock-row .lbl small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.cc { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--red-light, #fdeaea); color: var(--red, #c0392b); white-space: nowrap; }
.ccbar { background: var(--red-light, #fdeaea); color: var(--red, #c0392b); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 10px 0; }

/* ---- Nov 2026 driver feedback: cleaner lights, key photos, space, hours, map ---- */
/* The whole stop takes the cleaner's colour: red not started, amber inside, green finished. */
.row.flat { border-left: 5px solid transparent; padding-left: 10px; padding-right: 6px; border-radius: 10px; margin-bottom: 4px; }
.row.lt-red { border-left-color: var(--dot-red, #d9483f); background: color-mix(in srgb, #d9483f 9%, transparent); }
.row.lt-amber { border-left-color: var(--dot-amber, #e0a11a); background: color-mix(in srgb, #e0a11a 13%, transparent); }
.row.lt-green { border-left-color: var(--dot-green, #22a35a); background: color-mix(in srgb, #22a35a 10%, transparent); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; flex: none; }
.lt-red .dot { background: #d9483f; } .lt-amber .dot { background: #e0a11a; } .lt-green .dot { background: #22a35a; }
.row .sub.clstat { font-weight: 700; color: var(--text); }
.row .sub.usedw { font-weight: 600; color: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.legend span { display: inline-flex; align-items: center; }
.sign-line.tools button { flex: 1 1 auto; }
.space { background: var(--primary-light, #ecebff); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; line-height: 1.45; }
.space.over { background: var(--red-light, #fdeaea); color: var(--red, #c0392b); }
#openv { cursor: pointer; }

.brief { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.brief .dot { margin-top: 5px; width: 11px; height: 11px; }
.brief small { display: block; color: var(--text-2); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.brief.lt-red { background: color-mix(in srgb, #d9483f 9%, transparent); border-color: transparent; }
.brief.lt-amber { background: color-mix(in srgb, #e0a11a 13%, transparent); border-color: transparent; }
.brief.lt-green { background: color-mix(in srgb, #22a35a 10%, transparent); border-color: transparent; }
.brief.used { background: var(--amber-light, #fdf3d7); border-color: transparent; }
.sheet #arrive { margin-top: 14px; }

.kind { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.kind.got { border-color: var(--green, #1d7a46); }
.kind-h { display: flex; align-items: center; gap: 10px; }
.kind-h > div { flex: 1; min-width: 0; }
.kind-h small { display: block; color: var(--muted); font-size: 12px; }
.kind .req { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--red-light, #fdeaea); color: var(--red, #c0392b); white-space: nowrap; }
.kind .ph-grid { margin-top: 8px; }
.kind .ph-grid:empty { display: none; }
/* Where each photo stands: a green tick = with the office, amber = still going from this phone. */
.sheet .ph .phok { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green, #1d7a46); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 20px; text-align: center; }
.sheet .ph.sending { background: var(--gray-light, #eee); outline: 2px dashed #b7791f; outline-offset: -2px; }
.sheet .ph.sending img { opacity: 0.5; }
.sheet .ph.sending span { background: #b7791f; }
.qbar { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fff4d6; color: #6b4700; font-size: 14px; line-height: 1.35; }
.qbar.ok { background: var(--green-light, #e6f6ec); color: var(--green, #1d7a46); font-weight: 600; }
#qbar:empty { display: none; }
.sheet .ph { position: relative; }
.sheet .ph .phx { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; padding: 0; margin: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; line-height: 24px; }

.hcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.hcard { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.hcard span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hcard b { font-family: var(--font-display); font-size: 17px; }
.hcard em { font-style: normal; font-weight: 700; color: var(--green, #1d7a46); }
.hcard small { font-size: 11.5px; color: var(--muted); }
.hval { text-align: right; white-space: nowrap; }
.hval small { display: block; color: var(--muted); font-size: 12px; }

.mapbox { height: 46vh; min-height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 8px; }
.mapbox .hint, .mapbox .error { margin: 12px; }
.pin { display: flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font: 700 12px/1 system-ui, sans-serif; color: #fff; background: #4f46e5; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.pin.done { background: #22a35a; } .pin.there { background: #e0a11a; } .pin.todo { background: #4f46e5; }
.pin.wh { background: #1a1a19; border-radius: 6px; }
.pin.un { background: #9a988f; }
.maplegend { margin-top: 10px; }
.pin-todo .dot { background: #4f46e5; }
.btn-link { display: block; text-align: center; background: var(--primary); color: var(--primary-ink, #fff); border-radius: 12px; padding: 12px; font-weight: 700; text-decoration: none; margin: 8px 0; }

/* Guests arrive today: deliver these first (same pink as the calendar). */
.cc.ci { background: color-mix(in srgb, #d9489b 16%, transparent); color: #b0307a; }


/* Driver home: four big tools in one row, full-width day button. */
.dtools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.dtool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 10px 4px; min-height: 64px;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 14px; font: inherit; font-size: 12.5px; font-weight: 600; }
.dtool i { font-style: normal; font-size: 22px; line-height: 1; }
.dtool span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dtool:active { background: var(--primary-light, #ecebff); }
.sign-line #signin { flex: 1; padding: 14px; font-size: 16px; }
.day-head { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-top: 4px; }

/* Narrow phones: the status pill sits on its own line under the stop, so the
   name and address keep the full width instead of wrapping word by word. */
.list { padding-left: 8px; padding-right: 8px; }
.row.flat .main { flex-wrap: wrap; align-items: flex-start; }
.row.flat .num { margin-top: 2px; }
.row.flat .info { flex: 1 1 0; }
.row.flat .dstat:not(.todo) { order: 3; flex: 0 0 auto; margin: 6px 0 0 36px; }
.row.flat[data-list="others"] .dstat:not(.todo) { margin-left: 0; }
.row.flat .dstat.todo { align-self: center; }
.row.flat .main:has(.dstat:not(.todo)) .info { flex: 1 0 calc(100% - 40px); }
.row.flat[data-list="others"] .main:has(.dstat:not(.todo)) .info { flex-basis: 100%; }

/* Secondary buttons had no shape on the driver page (they showed as plain grey
   boxes): give them the same rounded look as the rest, and make the camera a
   proper finger-sized button. */
button.secondary { border: 1px solid var(--border); border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; background: var(--card); color: var(--text); }
button.secondary.small { padding: 10px 14px; font-size: 14px; }
.kind .shoot { flex: none; min-width: 58px; min-height: 48px; padding: 6px 10px; border-radius: 14px; border-color: transparent; background: var(--primary-light, #ecebff); color: var(--primary, #4f46e5); font-size: 22px; line-height: 1; }
.kind.got .shoot { background: var(--green-light, #e6f6ec); }
.sign-line #signout { margin-left: auto; }


/* The flat sheet's heading: name, address and the Maps link stacked, not squeezed into one row. */
.sheet .sh-head { display: block; margin-bottom: 10px; }
.sheet .sh-head .name { font-size: 21px; line-height: 1.2; }
.sheet .sh-head .sub { margin-top: 3px; }
.sheet .sh-head a.link { color: var(--primary, #4f46e5); font-weight: 600; font-size: 14px; }
