/* MAP CHROME FOR PAGES THAT DO NOT LOAD dashboard-v2.css / styles.css (the phone view, /m).
   A verbatim copy of: dashboard-v2.css lines 873-1010 (licence credit folded behind (i), the (i) control, the Zeft mark)
   and styles.css lines 1089-1093 (the pin). backend/test/map-chrome-matches-its-source.test.js fails if either copy drifts.
   Without these rules a map on /m printed its provider name as plain text and drew no pin. */
.zeft-map-marker-wrap { background: transparent; border: 0; }
.zeft-map-marker { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--marker); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
/* ZEFT-340: the customer pickup spot on the booking map (its own pin, never the address pin). */
.zeft-map-marker.is-pickup-spot { --marker: var(--coral); }
.zeft-map-marker.is-current-pickup { --marker: var(--coral); } /* ZEFT-341: the hauler's active job */
/* Basemap licence credits: one compact, legible control instead of a branded duplicate.
   Do not hide or detach these links; Mapbox and OpenStreetMap require visible attribution. */
.leaflet-container .leaflet-control-attribution {
  max-width: calc(100% - 12px);
  padding: 2px 5px;
  border-radius: 6px 0 0 0;
  background: rgba(255, 255, 255, .88);
  color: #24342e;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}
.leaflet-container .leaflet-control-attribution a {
  color: #075f4a;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

/* Role dashboards lead with the job-to-be-done. Account setup and specialist tools remain
   reachable without occupying the driver's route screen. */
.route-command{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 16px}
.route-command h2{margin:2px 0 3px;font-size:clamp(1.45rem,4vw,2rem);line-height:1.08}
.route-command .eyebrow{margin:0;color:var(--brand);font-size:.72rem;font-weight:850;letter-spacing:.13em}
.route-command .hint{margin:0}

/* A private hauler scanner: customer photo/read controls, with payout instead of checkout. */
.he-tool{max-width:1050px;margin-inline:auto}
.he-tool .eyebrow{color:var(--brand);font-size:.72rem;font-weight:850;letter-spacing:.12em}
.he-tool h2{margin:.2rem 0 .4rem}
.he-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin:1rem 0}
.he-actions button{min-height:44px}
.he-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:.75rem;margin:1rem 0}
.he-photo-stage{position:relative;aspect-ratio:4/3;background:#101b19;border:2px solid var(--brand);border-radius:12px;overflow:hidden}
.he-photo-stage img{display:block;width:100%;height:100%;object-fit:contain}
.he-photo-number{position:absolute;top:.4rem;left:.4rem;background:#071d18;color:#fff;border-radius:999px;padding:.2rem .5rem;font-size:.72rem}
.he-photo-remove{position:absolute;top:.35rem;right:.35rem;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:var(--commit);color:#fff;font-size:1.35rem;cursor:pointer}
.he-photo-sweep{position:absolute;left:0;right:0;top:0;height:3px;background:var(--brand);box-shadow:0 0 18px var(--brand);animation:eyesweep 2.2s linear infinite;pointer-events:none}
.he-item-box{position:absolute;box-sizing:border-box;border:2px solid var(--brand);border-radius:7px;pointer-events:none}
.he-item-box span{position:absolute;top:0;left:0;max-width:100%;padding:2px 5px;color:#fff;background:transparent;text-shadow:0 1px 2px #000,0 0 3px #000;font-weight:800;font-size:.75rem;overflow-wrap:anywhere}
.he-no-photo{padding:1.25rem;border:1px dashed var(--brand);border-radius:12px;color:var(--muted)}
.he-context{display:flex;gap:.8rem;flex-wrap:wrap;align-items:end;margin:1rem 0}
.he-context label{display:grid;gap:.3rem;min-width:min(100%,180px);font-weight:650}
.he-context input,.he-context select,.he-add-item select,.he-item select{min-height:44px}
.he-context .he-heavy{display:flex;align-items:center;gap:.45rem;min-height:44px}
.he-context .he-heavy input{min-height:auto}
.he-payout{display:grid;gap:.25rem;padding:1rem;border:1px solid var(--brand);border-radius:12px;background:color-mix(in srgb,var(--brand) 7%,var(--card));margin:1rem 0}
.he-payout strong{font-size:clamp(2rem,6vw,3rem);line-height:1.1;color:var(--brand)}
.he-payout small{font-size:.8rem;line-height:1.4}
.he-payout.is-loading,.he-payout.is-empty{color:var(--muted)}
.he-error{border:1px solid var(--commit);border-radius:9px;padding:.8rem;color:var(--commit)}
.he-error button{min-height:38px;margin-left:.5rem}
.he-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin-top:1rem}
.he-list-head h3{margin:0}
.he-item{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
.he-item-main{display:grid;gap:.2rem;min-width:0}
.he-item-main small{color:var(--muted)}
.he-item-actions{display:flex;align-items:center;gap:.25rem;flex:0 0 auto}
.he-item-actions button{width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font-size:1.2rem;cursor:pointer}
.he-item-actions strong{min-width:1.2rem;text-align:center}
.he-removed,.he-suggestions,.he-add-item{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-top:.8rem}
.he-removed button,.he-suggestions button,.he-add-item button{min-height:40px}
@media(max-width:600px){.he-item{align-items:stretch;flex-direction:column}.he-item-actions{justify-content:flex-end}.he-context label{flex:1 1 100%}.he-actions button{flex:1 1 130px}}
.route-command .availbar{flex:0 0 auto;margin:0}
.role-disclosure{margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);overflow:clip}
.role-disclosure>summary{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;cursor:pointer;list-style:none;color:var(--ink)}
.role-disclosure>summary::-webkit-details-marker{display:none}
.role-disclosure>summary span{display:grid;gap:3px}
.role-disclosure>summary small{color:var(--ink-2);font-weight:500}
.role-disclosure>summary::after{content:'+';display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--line-2);font-size:1.2rem}
.role-disclosure[open]>summary::after{content:'−'}
.role-disclosure[open]>summary{border-bottom:1px solid var(--line)}
.role-disclosure-body{padding:14px}
.role-disclosure-body>.card:last-child{margin-bottom:0!important}
.role-disclosure-body button,.scrap-qty button{min-width:44px;min-height:44px}
.payout-more{flex:1 0 100%;border-top:1px solid var(--line);padding-top:8px}
.payout-more>summary{display:flex;align-items:center;min-height:44px;color:var(--ink-2);font-weight:750;cursor:pointer}
.payout-more:not([open])>div{display:none}
.payout-more>div{display:flex;flex-wrap:wrap;gap:6px;padding-top:4px}
#secRoute>.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#secRoute>.hint>a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:600px){
  .route-command{align-items:stretch;flex-direction:column;margin-bottom:12px}
  .route-command .availbar{width:100%;justify-content:space-between}
  .route-command .availtoggle{min-height:48px}
  .role-disclosure-body{padding:10px}
}

/* THE RUN OFFER — its own row, never half of one.
   `.dv2-act` is `flex:1`, which is right for "Accept" / "Not for me" but wrong for a
   control whose label is a sentence: at 390px it wrapped to three lines beside a 44px
   sibling and the row went ragged. `flex:1 0 100%` takes the whole line, and the numbers
   sit under the headline instead of fighting it for width.

   IT MUST OUTRANK `.dv2-task .row>.dv2-act.ghost{flex:1 1 42%}` above, which pairs the
   ghost buttons two-up. A plain `.dv2-act.runbtn` lost to it silently: the copy fixed
   itself on screen while the width did not, and only reading the COMPUTED flex-basis
   (42%, not the 100% I had written) showed which rule had actually won. */
.dv2-task .row>.dv2-act.runbtn{flex:1 0 100%;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:2px;padding:10px 12px;line-height:1.25;text-align:center}
.dv2-act.runbtn .runttl{font-weight:700;font-size:13px}
.dv2-act.runbtn .runsub{font-weight:600;font-size:11.5px;color:var(--ink-3)}
.dv2-task .row.offer-actions{flex-wrap:wrap}
.dv2-task .row.offer-actions>.dv2-act.primary{flex:1 0 100%;min-height:44px}
.offer-decline{flex:1 0 100%;border:1px solid var(--line);border-radius:var(--r-sm);padding:8px;background:var(--card)}
.offer-decline>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--ink-2)}
.offer-decline[open]>summary{color:var(--brand-ink)}
.offer-decline .row{margin-top:8px;flex-wrap:wrap}
.offer-decline .dv2-act{min-height:44px;white-space:normal}

/* COMPACT MAP CREDIT + THE ZEFT MARK.
   The credit is collapsed behind one (i) rather than deleted: OpenStreetMap's ODbL and the
   Mapbox terms both require it to be visible, and this is the same compact pattern Mapbox's
   own SDK uses on a phone. One tap opens it. */
.leaflet-control-attribution.zeft-attr{
  background:rgba(255,255,255,.82);backdrop-filter:blur(3px);
  border-radius:999px;padding:0;margin:0 6px 6px 0;line-height:0;box-shadow:0 1px 3px rgba(0,0,0,.12)}
/* `> *` hides ELEMENT children only. " contributors" is a bare text node with no element
   around it, so it stayed on the map face and read as "contrib..." clipped at the edge.
   Collapsing the type is what actually empties the strip. */
.leaflet-control-attribution.zeft-attr{font-size:0}
.leaflet-control-attribution.zeft-attr > *{display:none}
.leaflet-control-attribution.zeft-attr.open{border-radius:11px;padding:3px 8px;line-height:1.5;font-size:10.5px}
.leaflet-control-attribution.zeft-attr.open > *{display:inline}
/* Its own control, beside the credit it opens — Leaflet rewrites the attribution
   container's innerHTML on every layer add, which erased it when it was a child. */
.zeft-attr-i{
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;margin:0 6px 6px 0;
  background:rgba(255,255,255,.82);backdrop-filter:blur(3px);box-shadow:0 1px 3px rgba(0,0,0,.12);border-radius:999px;border:0;cursor:pointer;
  color:var(--ink-3);font:700 13px/1 Georgia,serif;font-style:italic}
.zeft-attr-i:hover{color:var(--ink)}
.zeft-attr-i:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.zeft-mapmark{
  background:rgba(255,255,255,.78);backdrop-filter:blur(3px);
  border-radius:6px;padding:2px 7px;margin:0 0 6px 6px;
  font:700 11px/1.6 system-ui,sans-serif;letter-spacing:.02em;
  color:var(--brand-ink,#0b7a54);pointer-events:none;user-select:none;
  box-shadow:0 1px 3px rgba(0,0,0,.10)}
