/* work-map.css — the visual Work report inside the Messages chat pane (2026-11-13). Used by work-map.js only.
   The report's container is <section class="wmap eld">: .eld brings the ELD page's own scoped look (pins, colours, map tiles);
   the rules below only size it to the chat pane and lay out its header, day strip, map and timeline. While it is open the chat
   pane's own parts are hidden (.chat-card.wm-on) and come back unchanged on "Back to chat". */
#view-messages .chat-card.wm-on>:not(.wmap){display:none!important}
/* The chat pane's glass blur would make it the containing block of the date picker's position:fixed pop-up (pushed off-screen
   and clipped). The report paints its own solid background, so the blur is switched off only while the report is open. */
#view-messages .chat-card.wm-on{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.wmap.eld{flex:1;display:flex;flex-direction:column;height:auto;min-height:0;border-radius:inherit;overflow:hidden;font-size:13px;background:linear-gradient(180deg,#f8f9fb,#eef0f4)}
.wmap .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.wmap .wm-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.7)}
.wmap .wm-back{border:1px solid var(--line);background:#fff;border-radius:10px;padding:6px 11px;font-size:12px;font-weight:600;color:var(--ctl)}
.wmap .wm-back:hover{color:var(--ink);border-color:rgba(30,24,60,.22)}
.wmap .wm-title{font-size:15px;font-weight:700;margin:0 4px 0 2px}
.wmap .wm-who select{max-width:260px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:6px 10px;font-size:12.5px;font-weight:600;color:var(--ink)}
.wmap .wm-dates{margin-left:auto}
/* the shared picker's pop-over over the map / timeline: solid, so the days stay readable (its markup and behaviour are untouched;
   the Daylight / Aurora themes paint it 92% white with a stronger selector, hence !important — inside the report only) */
.wmap .rp-pop{background:#fff!important}
/* 2026-11-14: the report's pop-up is moved to <body> (work-map.js open) — shown while the picker has drawn into it, solid as before */
body>.rp-pop.wm-rp:not(:empty){display:block}
body>.rp-pop.wm-rp{background:#fff!important}
.wmap .wm-dates .act-btn{display:inline-flex;align-items:center;gap:7px}

.wmap .wm-days{display:flex;gap:6px;overflow-x:auto;padding:9px 16px;border-bottom:1px solid var(--line);scrollbar-width:thin;min-height:52px;align-items:center}
.wmap .wm-day{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:1px solid var(--line);background:rgba(255,255,255,.8);border-radius:11px;padding:5px 11px;line-height:1.2}
.wmap .wm-day b{font-size:12px}
.wmap .wm-day span{font-size:10.5px;color:var(--dim)}
.wmap .wm-day.on{background:var(--ink);border-color:var(--ink);color:#fff}
.wmap .wm-day.on span{color:rgba(255,255,255,.75)}
.wmap .wm-dim{font-size:12px;color:var(--dim)}

.wmap .wm-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px}
.wmap .wm-mapbox{position:relative;min-height:0}
.wmap .wm-map{position:absolute;inset:0}
.wmap .wm-mapmsg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:500;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:80%;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:var(--sh);text-align:center;font-size:12.5px;color:var(--ctl)}
.wmap .wm-mapmsg[hidden]{display:none}
.wmap .wm-mapmsg b{color:var(--ink)}

.wmap .wm-tl{overflow-y:auto;border-left:1px solid var(--line);background:rgba(255,255,255,.62);padding:12px 12px 18px;display:flex;flex-direction:column;gap:6px}
.wmap .wm-sum{display:flex;flex-direction:column;gap:2px;padding:2px 4px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.wmap .wm-sum b{font-size:14px}
.wmap .wm-sum span{font-size:11.5px;color:var(--ctl)}
.wmap .wm-sum .wm-src{color:var(--dim);font-size:10.5px}
.wmap .wm-sum .wm-note{margin-top:4px;padding:6px 8px;border-radius:8px;background:rgba(213,138,19,.12);color:var(--c-wait-ink);font-size:11px}
.wmap .wm-ev{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:11px;padding:7px 8px;transition:background .15s,border-color .15s}
.wmap .wm-ev:hover,.wmap .wm-ev.hot{background:#fff;border-color:var(--line)}
.wmap .wm-ev.on{background:#fff;border-color:var(--acc);box-shadow:0 0 0 3px rgba(239,99,49,.14)}
.wmap .wm-n{flex:none;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--c-stop);color:#fff;font-size:11px;font-weight:700}
.wmap .k-done .wm-n{background:var(--c-done)}
.wmap .k-start .wm-n,.wmap .k-end .wm-n{background:var(--c-drive)}
.wmap .wm-evb{display:flex;flex-direction:column;gap:2px;min-width:0}
.wmap .wm-evb>b{font-size:12.5px;line-height:1.3;overflow-wrap:anywhere}
.wmap .wm-when{font-size:11px;color:var(--dim)}
.wmap .wm-chips{display:flex;flex-direction:column;gap:3px;margin-top:3px}
.wmap .wm-chip{font-size:11px;color:var(--ctl);padding:2px 7px;border-radius:7px;background:rgba(18,161,92,.1);width:max-content;max-width:100%}
.wmap .wm-chip.delivery{background:rgba(91,91,214,.1)}
.wmap .wm-drive{font-size:10.5px;color:var(--dim);padding:0 0 0 40px;position:relative}
.wmap .wm-drive::before{content:'';position:absolute;left:18px;top:-4px;bottom:-4px;border-left:2px dotted rgba(239,99,49,.5)}
.wmap .wm-off{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:6px}
.wmap .wm-offh{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.wmap .wm-offi{display:flex;flex-direction:column;gap:1px;font-size:11px;color:var(--ctl);padding:6px 8px;border-radius:9px;background:rgba(255,255,255,.7);border:1px solid var(--line)}
.wmap .wm-offi>b{font-size:11.5px;color:var(--ink)}

/* pin pop-up (Leaflet popup inside the report) */
.wmap .wm-pop .leaflet-popup-content-wrapper{border-radius:14px;box-shadow:0 14px 34px -14px rgba(20,18,40,.5)}
.wmap .wm-pop .leaflet-popup-content{margin:12px 14px;font:12px/1.4 'IBM Plex Sans',system-ui,sans-serif;color:var(--ink)}
.wmap .wm-pt{font-size:13px;font-weight:700}
.wmap .wm-pt b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-right:4px;border-radius:999px;background:var(--ink);color:#fff;font-size:10.5px}
.wmap .wm-pw{font-size:11px;color:var(--dim);margin:2px 0 6px}
.wmap .wm-mv{display:flex;flex-direction:column;gap:1px;padding:7px 0;border-top:1px solid var(--line)}
.wmap .wm-mv>b{font-size:11.5px}
.wmap .wm-mv span{font-size:11.5px;color:var(--ctl)}
.wmap .wm-mv .wm-addr{font-size:10.5px;color:var(--dim)}
.wmap .wm-none{font-size:11px;color:var(--dim);padding-top:6px;border-top:1px solid var(--line)}

@media (max-width:1100px){
  .wmap .wm-main{grid-template-columns:1fr;grid-template-rows:minmax(320px,1fr) auto}
  .wmap .wm-tl{border-left:0;border-top:1px solid var(--line);max-height:42vh}
}
@media (max-width:860px){ .wmap .wm-mapbox{min-height:360px} }
