/* PLANNING screen (reference/maxoptra-ui/20, 21). Real CSS pixels: the captures are 1568 px wide screenshots of a
   ~2560 px wide window (scale 0.6125), 12 px type, so 1 screenshot px = 1.63 CSS px. */

.planning { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; font-size: 12px; }
.planning button { font-size: 12px; }

/* past day banner */
.p-banner { flex: none; height: 34px; background: var(--past-banner); color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; }
.p-banner[hidden] { display: none; }
.p-banner svg { margin-left: 14px; }
.p-banner-link { background: none; border: 0; color: #fff; padding: 0; font-size: 13px; cursor: pointer; }
.p-banner-link:hover { text-decoration: underline; }

/* toolbar, row 1 */
.p-toolbar { flex: none; height: 41px; background: var(--toolbar-plan); display: flex; align-items: center; padding: 0 8px; gap: 8px; position: relative; }
.p-toolbar .mx-select, .p-toolbar .df-text { font-size: 12px; }
.tb-dc { width: 144px; height: 30px; background-color: #fff; border-color: #E4E4E4; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tb-date { display: flex; align-items: center; height: 30px; background: #fff; border: 1px solid #E4E4E4; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.date-step { width: 24px; height: 28px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; color: #222; padding: 0; }
.date-step:hover { background: #F2F2F2; }
.tb-datebox { width: 112px; height: 28px; }
.datefield { position: relative; display: inline-flex; align-items: center; border: 1px solid #D9D9D9; border-radius: 3px; background: #fff; }
.datefield:focus-within { border-color: var(--blue); }
.datefield .df-text { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; padding: 0 0 0 7px; font-size: 12px; color: #222; outline: none; box-shadow: none; }
.datefield .df-cal { flex: none; width: 24px; height: 100%; border: 0; background: none; color: #A6A6A6; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.datefield .df-cal:hover:not(:disabled) { color: #444; }
.tb-datebox { border: 0; border-left: 1px solid #E4E4E4; border-right: 1px solid #E4E4E4; border-radius: 0; }

.opt-split { display: flex; height: 30px; }
.opt-main { height: 30px; background: var(--past-banner); color: #fff; border: 1px solid var(--past-banner); border-radius: 4px 0 0 4px; padding: 0 14px 0 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.opt-caret { width: 32px; height: 30px; background: var(--past-banner); color: #fff; border: 1px solid var(--past-banner); border-left: 1px solid rgba(255,255,255,.45); border-radius: 0 4px 4px 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.opt-main:hover:not(:disabled), .opt-caret:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }
.opt-main:disabled, .opt-caret:disabled { background: #F5F5F5; border-color: #E4E4E4; color: #BDBDBD; cursor: not-allowed; }
.opt-main:disabled + .opt-caret { border-left-color: #E4E4E4; }

.tb-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: #222; border-radius: 4px; padding: 0; }
.tb-icon.boxed { background: #F2F2F2; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tb-icon.plain { color: #8C8C8C; width: 26px; }
.tb-icon:hover:not(:disabled) { background: #E9E9E9; }
.tb-icon:disabled { color: #BDBDBD; cursor: not-allowed; }
.tb-icon.plain:disabled { color: #C8C8C8; }

.tb-search { position: absolute; left: 50%; top: 5.5px; transform: translateX(-50%); display: flex; width: 220px; height: 30px; border: 1px solid #D9D9D9; background: #fff; border-radius: 3px; }
.tb-search input { flex: 1; min-width: 0; border: 0; padding: 0 9px; font-size: 12px; background: transparent; outline: none; }
.tb-search input::placeholder { color: #BDBDBD; }
.tb-search button { width: 30px; border: 0; background: none; color: #222; display: flex; align-items: center; justify-content: center; padding: 0; }
.tb-btn-w { height: 30px; padding: 0 12px; background: #fff; border: 1px solid #E4E4E4; border-radius: 4px; color: #222; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tb-btn-w:hover:not(:disabled) { background: #F7F7F7; }
.tb-btn-w:disabled { color: #BDBDBD; background: #F5F5F5; cursor: not-allowed; }
.tb-btn-w.warn { border-color: var(--danger); color: var(--danger); }
.tb-blue { height: 30px; padding: 0 12px; background: var(--past-banner); border: 1px solid var(--past-banner); color: #fff; border-radius: 4px; font-size: 12px; }
.tb-blue:hover:not(:disabled) { background: var(--blue-hover); }
.tb-blue:disabled { background: #F5F5F5; border-color: #E4E4E4; color: #BDBDBD; cursor: not-allowed; }

.p-main { flex: 1; min-height: 0; display: flex; position: relative; }
.p-center { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.gantt-wrap { flex: none; position: relative; overflow: hidden; background: #fff; min-height: 0; }
.gantt-wrap.full { flex: 1; height: auto !important; }
.gantt { display: grid; grid-template-columns: 318px minmax(0, 1fr); height: 100%; }
.g-left { display: flex; flex-direction: column; min-height: 0; background: #fff; position: relative; z-index: 2; }
.g-right { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

/* row 2: "6/7 vehicles used" + filter and sort; summary + view and zoom controls */
.g-lhead1 { flex: none; height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #fff; }
.g-lhead1 .spacer, .g-rhead1 .spacer { flex: 1; }
.g-lhead1 .used { font-size: 13px; color: #222; white-space: nowrap; }
.g-lhead1 .used b { font-weight: 700; }
.hd-ic { width: 28px; height: 28px; border: 0; background: none; color: #222; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding: 0; }
.hd-ic:hover { background: #F0F0F0; }
.hd-ic.active { color: var(--blue); }
.g-rhead1 { flex: none; height: 36px; display: flex; align-items: center; padding: 0 8px 0 10px; background: #fff; gap: 12px; }
.p-summary { display: flex; gap: 28px; font-size: 13px; color: #222; }
.sum-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sum-d { color: var(--muted-2); white-space: pre; }
.sum-i u { text-decoration: underline; text-underline-offset: 2px; }
.vg-pin { width: 24px; height: 26px; border: 0; background: none; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vgrp { display: flex; background: #EEE; border-radius: 4px; padding: 2px; gap: 2px; }
.vgrp .vopt { width: 28px; height: 24px; border: 0; background: none; border-radius: 3px; color: #222; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vgrp .vopt.on { background: #D9ECFF; color: var(--past-banner); }
.vgrp .vopt:hover:not(.on) { background: #E2E2E2; }
.zoom { display: flex; align-items: center; background: #EEE; border-radius: 4px; padding: 2px; gap: 0; }
.zoom[hidden], .vg-pin[hidden], .zb[hidden] { display: none; }
.zb { background: none; border: 0; border-radius: 3px; height: 24px; min-width: 32px; padding: 0 6px; font-size: 12px; color: #222; }
.zb:hover:not(.on) { background: #E2E2E2; }
.zb.on { background: var(--past-banner); color: #fff; }

/* row 3: lock / unlock, Send to all, Print */
.g-lhead2 { flex: none; height: 33px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid var(--line); background: #fff; }
.g-lhead2 .spacer { flex: 1; }
.sm-ic { width: 26px; height: 26px; border: 0; background: #F2F2F2; border-radius: 4px; color: #222; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sm-ic:hover:not(:disabled) { background: #E6E6E6; }
.sm-btn { height: 26px; padding: 0 9px; border: 0; background: #F2F2F2; border-radius: 4px; color: #222; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.sm-btn:hover:not(:disabled) { background: #E6E6E6; }
.sm-ic:disabled, .sm-btn:disabled { color: #C2C2C2; cursor: not-allowed; }
.sm-split { display: flex; gap: 1px; }
.sm-split .sm-main { border-radius: 4px 0 0 4px; }
.sm-split .sm-caret { border-radius: 0 4px 4px 0; padding: 0 7px; }

.g-lbody { flex: 1; min-height: 0; overflow: hidden; }
.g-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; background: #fff; }
.g-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.g-scroll::-webkit-scrollbar-thumb { background: #8C8C8C; border-radius: 6px; border: 2px solid #fff; }
.g-axis { position: sticky; top: 0; z-index: 4; height: 33px; background: #fff; border-bottom: 1px solid var(--line); border-top: 0; }
.g-tick { position: absolute; top: 15px; bottom: 0; border-left: 1px solid #D0D0D0; }
.g-tick-l { position: absolute; left: 3px; bottom: 3px; font-size: 13px; color: #333; white-space: nowrap; line-height: 14px; }
.g-tick-l .tsup sup { font-size: .6em; top: -.5em; }
.g-date { position: absolute; left: 3px; top: -14px; font-size: 10px; color: #8C8C8C; white-space: nowrap; line-height: 12px; }
.g-rows { position: relative; }
.g-row { position: relative; border-bottom: 1px solid var(--line); background: #fff; }
.g-row.drop-over { background: #F0F7FF; }
.g-row.sel { background: #F5FAFF; }
.g-hatch { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #F6F6F6 0 3px, #F9F9F9 3px 6px); pointer-events: none; }
.g-drop { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1px; background: var(--blue); z-index: 6; border-radius: 2px; pointer-events: none; }

/* vehicle rows */
.g-lrow { position: relative; padding: 5px 10px 0 8px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; cursor: default; background: #fff; }
.g-lrow:hover { background: #FAFBFD; }
.g-lrow.sel { background: #D6E9FF; }
.g-lrow.drop-over { background: #E3F0FF; }
.g-lrow .cbar { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: var(--vc); }
.g-lrow .l1 { display: flex; align-items: center; gap: 6px; height: 20px; min-width: 0; }
.g-lrow .spacer { flex: 1; }
.vname { background: none; border: 0; padding: 0; color: var(--blue-link); font-size: 13px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vname:hover { text-decoration: underline; }
.vname.bad { color: var(--danger); }
.vmenu { background: none; border: 0; padding: 2px; color: #555; display: flex; border-radius: 3px; opacity: 0; margin-right: 4px; }
.g-lrow:hover .vmenu, .vmenu:focus-visible { opacity: 1; }
.vmenu:hover { background: rgba(27,28,65,.08); }
.g-lrow .l23 { display: flex; align-items: flex-start; gap: 6px; flex: 1; min-height: 0; }
.vmap { background: none; border: 0; padding: 2px 0 0; color: var(--blue-link); display: flex; flex: none; align-self: flex-start; }
.vmap.off { color: #B4B7C2; }
.vicons { display: flex; align-items: flex-start; gap: 4px; flex: none; }
.vmail { background: none; border: 0; padding: 2px 0 0; color: var(--blue-link); display: flex; flex: none; animation: vflash 1s ease-in-out infinite; }
@keyframes vflash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .vmail { animation: none; } }
.lstats { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 2px; }
.lstats.inline { flex-direction: row; align-items: center; gap: 8px; padding: 0; flex: 0 1 auto; }
.g-lrow .l2, .g-lrow .l3 { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.g-lrow .pins { display: inline-flex; align-items: center; gap: 2px; color: #222; }
.g-lrow .vbar { width: 1px; height: 12px; background: #CFCFCF; margin: 0 2px; }
.g-lrow .units { color: #222; }
.g-lrow .spare { font-size: 11px; }
.g-lrow .spare.ok { color: var(--green-text); }
.g-lrow .spare.over { color: var(--danger); }
.g-lrow .pill { display: inline-flex; align-items: center; gap: 3px; background: var(--pill); border-radius: 3px; padding: 1px 6px; color: #222; font-size: 12px; line-height: 16px; }
.g-lrow.off { padding-top: 0; justify-content: center; }
.g-lrow.off .l1 { height: 100%; }
.g-lrow .offtxt { color: #7B7F91; font-size: 12px; }
.gantt.compact .g-lrow { padding: 0 10px 0 8px; justify-content: center; }

/* timeline blocks */
.gb { position: absolute; top: 2px; bottom: 2px; border: 1px solid #D5D6DE; border-radius: 2px; background: #fff; overflow: hidden; min-width: 4px; }
.gb-main { padding: 2px 3px 0 4px; height: calc(100% - 5px); overflow: hidden; font-size: 11px; line-height: 13.5px; white-space: nowrap; }
.gb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; }
.gb-bar i { display: block; height: 100%; min-width: 0; }
.gb-bar .drive { background: var(--drive); } .gb-bar .op { background: var(--wait); } .gb-bar .load { background: #7BC47F; }
.gb-order { cursor: grab; }
.gb-order:hover { background: #EEF5FF; }
.gb-order.sel { background: #CFE4FF; border-color: #7FB4FF; z-index: 3; }
.gb-order.is-late { border-color: #F3A1AB; }
.gb-order:focus-visible { z-index: 4; box-shadow: 0 0 0 2px var(--blue); }
.gb-l1 { display: flex; align-items: center; gap: 3px; height: 16px; }
.gb-ref { color: #222; font-size: 11px; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.gb-ref i { font-style: normal; font-weight: 400; color: var(--blue-link); }
.dbadge { flex: none; width: 15px; height: 15px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.gb-st { flex: none; display: inline-flex; }
.gb-st.ok { color: #3FB950; } .gb-st.bad { color: var(--danger); }
.gb-l2 { color: #7B7F91; overflow: hidden; text-overflow: ellipsis; }
.gb-l3 { color: #444; }
.gb-l4 { color: #7B7F91; display: flex; align-items: center; gap: 2px; }
.gb-late { color: var(--danger); margin-left: 4px; display: inline-flex; }
.gb-end { background: #F5F5F5; border-color: #E1E3E8; }
.gb-end .gb-main { color: #222; }
.ge-t { font-weight: 400; font-size: 11px; color: #7B7F91; } .ge-n { font-size: 11px; color: #7B7F91; margin-top: 12px; } .ge-s { color: #7B7F91; font-size: 11px; }
.gb-load .gb-bar .op { background: #2F4A63; } .gb-route-end .gb-bar .drive { background: var(--drive); }
.g-break { position: absolute; bottom: 3px; height: 5px; background: var(--break); z-index: 2; }
.g-break span { display: none; }
.gantt.compact .gb-main { padding: 2px 4px; display: flex; align-items: center; gap: 5px; line-height: 16px; }
.gantt.compact .gb { top: 3px; bottom: 3px; }
.gantt.compact .gb-bar { height: 3px; } .gantt.compact .gb-main { height: calc(100% - 3px); }
.gantt.compact .cn { font-weight: 700; color: var(--text-strong); } .gantt.compact .ct { color: var(--blue-link); } .gantt.compact .cc { color: #7B7F91; overflow: hidden; text-overflow: ellipsis; }
/* locked, sent and finished runs (and every run on a past day) are drawn faded; the selected block keeps full strength */
.gb.fixed, .g-break.fixed { opacity: .5; }
.gb.fixed.sel { opacity: 1; }
.g-runbg { position: absolute; top: 0; bottom: 0; }
.g-runbg.hl::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--blue-link); border-radius: 2px; z-index: 5; pointer-events: none; }
.gb, .g-break { z-index: 1; }
.ghost-chip { background: var(--vc, #4B505E); color: #fff; padding: 5px 11px; border-radius: 4px; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.35); max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .95; }
.drag-src { opacity: .4; }
body.is-dragging { cursor: grabbing; user-select: none; }
body.is-dragging * { cursor: grabbing !important; }

/* hover card */
.hc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.18); }
.hc-head .spacer { flex: 1; } .hc-head .dbadge { background: #3FB950; }
.hc-kv { display: flex; justify-content: space-between; padding: 2px 0; color: #D6D8E6; } .hc-kv b { color: #fff; }
.hc-steps { margin: 10px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.hc-step { display: grid; grid-template-columns: 42px 20px 1fr; gap: 6px; align-items: start; }
.hc-time { font-weight: 700; } .hc-ic { color: #fff; } .hc-title { font-weight: 700; } .hc-sub { color: #B9BCD0; }
.hc-kv2 { display: grid; grid-template-columns: 138px 1fr; padding: 2px 0; color: #D6D8E6; } .hc-kv2 b { color: #fff; }
.hc-run { margin: 10px 0 2px; font-weight: 700; color: #fff; }
.hc-warn { display: flex; flex-direction: column; gap: 4px; color: #fff; }
.hc-head .dbadge { background: #3FB950; }
.hc-client { display: flex; gap: 8px; margin: 10px 0 8px; align-items: flex-start; }
.hc-client .ic { flex: none; margin-top: 2px; }
.hc-name { color: #B9BCD0; margin-bottom: 2px; }
.hc-win { border-top: 1px solid rgba(255,255,255,.18); padding-top: 8px; } .hc-win div { color: #D6D8E6; }

/* splitter and map */
.p-splitter { flex: none; height: 6px; background: #D5D6DE; cursor: row-resize; position: relative; z-index: 5; }
.split-grip { position: absolute; left: 50%; top: -5px; width: 40px; height: 14px; margin-left: -20px; background: #8A8FA0; border: 0; border-radius: 3px; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.split-grip .ic { transform: scale(.8); }
.map-wrap { flex: 1; min-height: 0; position: relative; }
.p-map { position: absolute; inset: 0; background: #E8EBEF; }
.map-wrap[hidden] { display: none; }
.orders-toggle { position: absolute; right: 0; top: 40px; width: 15px; height: 26px; background: #4B505E; color: #fff; border: 0; border-radius: 4px 0 0 4px; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 0; }
.orders-toggle:hover { background: #2F3340; }
.mp-ctl { position: relative; width: 190px; height: 110px; pointer-events: none; }
.mp-counts { left: 38px; top: 36px; width: 124px; display: flex; flex-direction: column; gap: 8px; }
.mp-counts .mp-count { position: static; width: auto; }
.mp-counts .mp-sel[hidden] { display: none; }
.mp-ctl > * { pointer-events: auto; position: absolute; }
.leaflet-top.leaflet-left .leaflet-control { margin-top: 10px; margin-left: 8px; }
.mp-zoom { left: 0; top: 0; width: 30px; background: #fff; border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.25); overflow: hidden; }
.mp-zoom button, .mp-btn { width: 30px; height: 30px; background: #fff; border: 0; color: #222; display: flex; align-items: center; justify-content: center; padding: 0; }
.mp-zoom button + button { border-top: 1px solid #ECECEC; }
.mp-zoom button:hover, .mp-btn:hover { background: #F4F6FA; color: var(--blue); }
.mp-btn { border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.mp-filter { left: 38px; top: 0; }
.mp-gear { left: 0; top: 70px; }
.mp-count { background: rgba(255,255,255,.93); border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.2); padding: 5px 9px; font-size: 12px; color: #222; }
.mp-count > div { display: flex; justify-content: space-between; gap: 14px; line-height: 20px; }
.mp-count b { font-weight: 400; }
.mp-detach { background: #fff; border: 1px solid #DADADA; border-radius: 3px; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #222; box-shadow: 0 1px 3px rgba(0,0,0,.15); cursor: pointer; }
.mp-detach:hover { background: #F6F6F6; }
.leaflet-top.leaflet-right .leaflet-control { margin-top: 10px; margin-right: 22px; }
.leaflet-bottom.leaflet-left { margin-bottom: 6px; }
.leaflet-container { font-family: var(--font); }
.is-picking .leaflet-container, .is-picking.leaflet-container { cursor: crosshair; }
.pick-banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1100; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* map pins: van-coloured squares with the stop number, navy squares for unplanned orders */
.pin-wrap { background: none !important; border: 0 !important; }
.pin { position: relative; min-width: 22px; height: 22px; margin: 0 4px; padding: 0 4px; border-radius: 4px; background: var(--pc); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; border: 1px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); transform-origin: 50% 100%; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--pc); border-bottom: 0; }
.pin sup { font-size: 8px; position: relative; top: -3px; margin-left: 1px; vertical-align: baseline; }
.pin.unplanned { font-weight: 400; font-size: 11px; }
.pin-prio { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); display: flex; gap: 2px; }
.pin-prio i { width: 4px; height: 4px; border-radius: 50%; background: var(--pp); display: block; }
.pin.future { opacity: .4; }
.pin-cluster { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.end-flag { width: 20px; height: 20px; border-radius: 50%; background: var(--pc); color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.van-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--pc); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.5); position: relative; }
.van-dot::after { content: ""; position: absolute; inset: 5px 3px; border-radius: 2px; background: #fff; }
.mp-rubber { position: absolute; z-index: 1200; border: 1px dashed var(--blue-link); background: rgba(27,122,78,.12); pointer-events: none; }
.mp-gray .leaflet-tile-pane { filter: grayscale(1); }
.mp-menu { min-width: 250px; }
.mp-kinds { display: flex; gap: 22px; margin-bottom: 12px; }
.mp-future { display: flex; align-items: center; gap: 8px; }
.mp-days { width: 56px; height: 26px; }
.pin.nolabel { min-width: 18px; height: 18px; padding: 0; }
.pin.done { opacity: .5; }
.pin-b { position: absolute; right: -7px; top: -7px; width: 13px; height: 13px; border-radius: 50%; background: #D9F5D9; color: #1E9E3A; font-style: normal; font-size: 9px; line-height: 13px; text-align: center; font-weight: 700; border: 1px solid #fff; }
.pin-b.bad { background: #FDE0E4; color: var(--danger); }
.pin-b.play { background: var(--success); color: #fff; font-size: 7px; text-indent: 1px; }
.pin-b.pause { background: var(--warning); color: #fff; font-size: 6px; letter-spacing: -1px; }
.pin.late { box-shadow: 0 0 0 2px #E5334B, 0 1px 3px rgba(0,0,0,.45); }
.pin.is-selected { transform: scale(1.2); background: #fff; color: var(--pc); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pc), 0 2px 8px rgba(0,0,0,.5); }
.depot-pin { width: 30px; height: 30px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1C41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V9l9-6 9 6v12'/%3E%3Cpath d='M7 21v-8h10v8M7 15.5h10M7 18h10'/%3E%3C/svg%3E") center / 20px no-repeat; border: 1px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin-tip { background: #fff; border: 1px solid #D5D6DE; border-radius: 4px; padding: 6px 9px; font-size: 12px; color: var(--text-strong); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pin-tip::before { display: none; }
.pin-tip-in .muted { font-size: 11px; }

/* orders panel (reference: 256 px, cards on a white ground, green "..." menu) */
.p-orders { flex: none; width: 256px; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; position: relative; }
.p-orders[hidden] { display: none; }
.p-orders.drop-over { outline: 2px dashed var(--blue); outline-offset: -3px; }
.o-head { flex: none; height: 36px; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 9px; }
.ocount { font-size: 13px; color: #222; }
.o-list { flex: 1; min-height: 0; overflow: auto; padding: 0 7px 14px 8px; }
.o-empty { padding: 36px 12px; text-align: center; color: #555; display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 10px; }
.o-empty-ic { color: #C9CCD6; }
.ocard { background: #fff; border: 1px solid #E8E8E8; border-radius: 4px; padding: 5px 8px 5px 8px; margin: 0 0 4px; cursor: grab; font-size: 12px; line-height: 15.5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ocard:hover { border-color: #C5CAD6; }
.ocard.sel { background: #CFE4FF; border-color: #7FB4FF; }
.ocard:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.ocard.noloc { cursor: default; }
.oc-l1 { display: flex; align-items: center; gap: 4px; }
.oc-pc { font-weight: 700; color: #111; margin-left: 1px; }
.oc-sep { margin-left: -3px; color: #111; }
.oc-ref { color: var(--blue-link); text-decoration: none; }
.oc-ref:hover { text-decoration: underline; }
/* the three dots are only an indicator: colour = priority, count = days left to plan it */
.oc-prio { display: flex; gap: 2px; padding: 4px 2px; pointer-events: none; }
.oc-prio i { width: 4px; height: 4px; border-radius: 50%; background: var(--success); display: block; }
.oc-prio.prio-medium i { background: var(--warning); }
.oc-prio.prio-high i { background: var(--danger); }
.oc-l2 { color: #222; display: flex; align-items: center; gap: 4px; min-width: 0; }
.oc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-bang { flex: none; width: 13px; height: 13px; border-radius: 3px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 13px; text-align: center; cursor: default; }
.oc-l3 { color: #111; font-weight: 700; }
.oc-l4 { color: #222; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.oc-warn { margin-left: auto; color: var(--danger); display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.oc-warn.amber { color: var(--amber-text); }

/* search popover */
.search-popover { max-height: 70vh; }
.search-pop { display: flex; flex-direction: column; max-height: 70vh; }
.sp-h { padding: 10px 14px 4px; color: var(--muted-2); font-size: 13px; }
.sp-tabs { display: flex; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.sp-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 6px 0 5px; color: var(--text); font-size: 12px; }
.sp-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.sp-list { overflow: auto; padding: 4px 0; }
.sp-item { width: 100%; text-align: left; background: none; border: 0; padding: 7px 14px; display: block; position: relative; cursor: pointer; }
.sp-filter { padding: 0 14px 4px; color: var(--muted); font-size: 12px; }
.sp-l2 b { font-weight: 700; color: var(--text-strong); }
.sp-open { position: absolute; right: 12px; top: 9px; display: none; color: var(--blue-link); }
.sp-item:hover .sp-open, .sp-item:focus-within .sp-open { display: inline-flex; }
.hd-x { width: 14px; height: 14px; border: 0; background: #E6E6E6; border-radius: 50%; color: #444; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin-left: -4px; }
.hd-x[hidden] { display: none; }
.hd-ic.active { color: var(--blue); }
.dlg-filter .dlg-body { padding: 8px 18px; }
.ft-cols { gap: 0 46px; }
.ft-row .flabel { flex: 0 0 150px; text-align: left; font-size: 12px; }
.ft-row .mx-input, .ft-row .mx-select { height: 26px; }
.sp-item:hover { background: var(--panel); }
.sp-l1 { display: flex; align-items: center; gap: 8px; color: var(--text-strong); font-size: 13px; } .sp-st { margin-left: auto; color: var(--muted); font-style: normal; }
.sp-l2 { color: var(--muted); font-size: 12px; padding-left: 23px; }

/* states */
.p-busy { position: absolute; top: 41px; left: 0; right: 0; height: 3px; z-index: 50; overflow: hidden; }
.p-busy::after { content: ""; position: absolute; top: 0; height: 3px; width: 30%; background: var(--blue); animation: slide 1s ease-in-out infinite alternate; }
@keyframes slide { from { left: 0; } to { left: 70%; } }
.is-busy .g-scroll, .is-busy .o-list { opacity: .85; }
.p-error { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); z-index: 60; background: #fff; border: 1px solid #F3B5BD; border-radius: 4px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; color: #8E1F2F; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.p-error[hidden] { display: none; }
.planning.is-loading .p-main { opacity: .55; pointer-events: none; }
.opt-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.opt-box { background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; padding: 20px 26px; display: flex; gap: 16px; align-items: center; box-shadow: 0 8px 30px rgba(27,28,65,.25); }
.opt-t { color: var(--muted-2); margin-top: 2px; }
.result-table tr.grp td { background: var(--panel); text-align: center; color: var(--text-strong); }
.p-table-wrap { position: absolute; inset: 0; top: 69px; overflow: auto; background: #fff; }
.p-table-wrap[hidden], .gantt[hidden] { display: none; }
.ptable tbody tr { cursor: default; } .ptable tbody tr:hover td { background: var(--grid-hover); } .ptable tbody tr.sel td { background: #CFE4FF; }
.ptable .vsw { vertical-align: -2px; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dlg .flabel.wide { flex-basis: 280px; }
.radios { display: flex; flex-direction: column; gap: 6px; }

.p-loadbox { position: absolute; left: 50%; top: 45%; z-index: 55; margin-left: -14px; }
.p-loadbox[hidden] { display: none; }

/* detached map window */
.planning.map-only .p-toolbar, .planning.map-only .p-banner, .planning.map-only .gantt-wrap, .planning.map-only .p-splitter, .planning.map-only .p-orders { display: none; }
.planning.map-only .map-wrap { flex: 1; }

/* narrower windows (1280 to 1920 px): keep the toolbar on one row */
@media (max-width: 1700px) {
  .tb-search { width: 170px; }
  .tb-dc { width: 120px; }
}
@media (max-width: 1500px) {
  .tb-search { width: 160px; }
  .tb-dc { width: 100px; }
  .gantt { grid-template-columns: 290px minmax(0, 1fr); }
  .p-summary { gap: 16px; }
  .p-orders { width: 230px; }
}

/* a sent order whose OrderWise data changed (or was removed), a van with an older run still open */
.gb-order.has-owchange { box-shadow: inset 0 0 0 2px var(--warning); }
.gb-ow { display: inline-flex; margin-left: 4px; }
.gb-order .ow-warn { color: var(--warning); }
.vstale { display: inline-flex; flex: none; width: 13px; height: 13px; border-radius: 3px; background: var(--danger); color: #fff; align-items: center; justify-content: center; }
.hc-ow b { color: #FFC266; display: inline-flex; align-items: center; gap: 4px; text-align: right; }

/* Optimise: busy and success states, the "..." menu */
.opt-main.busy:disabled { background: var(--past-banner); border-color: var(--past-banner); color: #fff; opacity: .85; cursor: progress; }
.opt-main.recalc, .opt-main.recalc:hover:not(:disabled) { background: var(--warning); border-color: var(--warning); color: #fff; }
.opt-main.success { background: var(--success); border-color: var(--success); }
.opt-main.success:hover:not(:disabled) { background: var(--success); border-color: var(--success); }
.ic.spin { animation: spin 0.9s linear infinite; }
.opt-menu .menu-title { padding: 8px 14px; }
.opt-days { display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; color: var(--text-strong); font-weight: 700; }
.opt-days .mx-input { width: 54px; height: 26px; }

/* Run start time editing */
.rs-note { background: var(--warning-tint); border: 1px solid #F5DDA8; color: #7A5A12; padding: 7px 10px; border-radius: 3px; margin-bottom: 14px; }
.rs-field { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; }
.rs-field .rs-time { border: 0; width: 70px; height: 28px; box-shadow: none; }
.rs-clock { background: none; border: 0; color: var(--blue-link); width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.rs-err { color: var(--danger); font-size: 12px; min-height: 18px; margin-top: 6px; }
.hour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 8px; }
.hour-grid button { background: none; border: 0; padding: 7px 4px; border-radius: 3px; color: var(--text); }
.hour-grid button:hover { background: var(--panel); }
.hour-grid button.on { background: var(--blue); color: #fff; }

/* autoresequencing toggle (the grid icon right of the gear) */
.tb-icon.toggle.on { background: var(--blue-tint-2); color: var(--past-banner); box-shadow: inset 0 0 0 1px var(--blue-link); }

/* vehicle dialog ("CJ23TLK settings for 08/10/2026") */
.dlg-vehicle .dlg-body { padding: 8px 12px 6px; }
.vd-header .date-chip { border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 8px; font-size: 13px; color: var(--text-strong); }
.vd-body { display: flex; flex-direction: column; gap: 10px; }
.vd-sec { border: 1px solid var(--line-soft); border-radius: 4px; background: #fff; }
.vd-sh { width: 100%; display: flex; align-items: center; justify-content: space-between; background: #F5F5F5; border: 0; padding: 12px 14px; font-size: 14px; color: var(--text-strong); text-align: left; border-radius: 4px; }
.vd-sec.open .vd-sh { background: #fff; font-weight: 400; }
.vd-sec.open .vd-sh .ic { transform: rotate(180deg); }
.vd-sb { display: none; padding: 4px 14px 14px; }
.vd-sec.open .vd-sb { display: block; }
.vd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.vd-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vd-f.wide, .vd-row3.wide { grid-column: 1 / -1; }
.vd-l { font-size: 12px; color: var(--text-strong); display: flex; align-items: center; gap: 4px; }
.vd-i { display: inline-flex; color: var(--muted); }
.vd-f .mx-input, .vd-f .mx-select { width: 100%; height: 32px; }
.vd-colour-row { display: flex; gap: 10px; align-items: center; }
.vd-swatch { position: relative; flex: none; width: 82px; height: 30px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); overflow: hidden; }
.vd-colour { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.vd-suffix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; }
.vd-suffix .mx-input { border: 0; box-shadow: none; background: transparent; }
.vd-suffix > span { padding: 0 8px; color: var(--text-strong); font-size: 12px; }
.vd-suffix:has(:disabled) { background: #F5F5F5; }
.vd-row3 { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px 14px; }
.vd-check-row { display: flex; align-items: center; gap: 6px; }
.vd-check-row .vd-suffix { flex: 1; min-width: 0; }
.vd-footer { justify-content: flex-end; }

/* Help Center */
.dlg-help .dlg-body { padding: 8px 28px 24px; }
.hc2 { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hc2 h3 { font-size: 20px; font-weight: 400; margin: 8px 0 4px; color: var(--text-strong); }
.hc2-search { display: flex; width: 280px; border: 1px solid var(--line-strong); border-radius: 3px; }
.hc2-search input { flex: 1; border: 0; height: 30px; box-shadow: none; }
.hc2-search button { width: 32px; border: 0; background: #fff; color: #555; }
.hc2-sub { font-size: 15px; color: var(--text-strong); margin: 6px 0 2px; }
.hc-list { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.hc2-card { text-align: left; background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; padding: 9px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.hc2-card:hover { border-color: var(--blue-link); }
.hc2-card b { font-weight: 700; color: var(--text-strong); }
.hc2-text { color: var(--muted-2); line-height: 1.45; }
.hc2-tiles { display: flex; gap: 14px; margin-top: 14px; }
.hc2-tile { width: 130px; height: 120px; border: 1px solid var(--line-strong); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--blue-link); text-decoration: none; }
.hc2-tile span { color: var(--text-strong); text-decoration: underline; }

.hovercard:has(.hc-kv2) { width: auto; min-width: 330px; }
.hc-kv2 b { white-space: nowrap; }
.hc2-desc { color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hd-ic[hidden] { display: none; }
.ocard { user-select: none; }
.mp-counts { width: 164px; }

/* map view: the vehicle list at full height on the left, the map filling the centre (no timeline) */
.planning.view-map .gantt-wrap { flex: 1; height: auto !important; }
.planning.view-map .g-scroll, .planning.view-map .p-splitter { display: none; }
.planning.view-map .g-lbody { overflow: auto; }
.planning.view-map .map-wrap { position: absolute; left: 318px; top: 36px; right: 0; bottom: 0; }
@media (max-width: 1500px) { .planning.view-map .map-wrap { left: 290px; } }

/* stop and run hover cards (TL-5), the waiting stripe (TL-6), the drop that starts a run (TL-9) */
.hc-legend { display: flex; gap: 14px; font-size: 12px; margin-bottom: 8px; color: #D6D8E6; }
.hc-legend .lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.hc-legend .lg.drive { background: var(--drive); } .hc-legend .lg.op { background: var(--aqua); }
.hc-veh { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.hc-vr { display: inline-flex; align-items: center; gap: 6px; }
.hc-drv { color: #B9BCD0; font-size: 12px; }
.hc-addr { margin-top: 8px; }
.gb-bar .idle { background: #BFC3CE; }
.g-drop.newrun { background: rgba(27,122,78,.08); border: 2px dashed var(--blue-link); border-radius: 3px; margin-left: 0; }
.lstats.clickable { cursor: pointer; }

/* run panel */
.runpanel { position: absolute; right: 16px; top: 42px; width: 500px; min-width: 380px; max-width: calc(100% - 20px); max-height: calc(100% - 20px); z-index: 30; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.28); display: flex; flex-direction: column; resize: both; overflow: auto; font-size: 12px; }
.runpanel[hidden], .rp-tab[hidden] { display: none; }
.rp-tab { position: absolute; right: 0; top: 60px; z-index: 30; width: 26px; height: 34px; background: #4B505E; color: #fff; border: 0; border-radius: 4px 0 0 4px; display: flex; align-items: center; justify-content: center; padding: 0; }
.rp-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: move; border-bottom: 1px solid var(--line-soft); flex: none; }
.rp-head b { font-weight: 400; font-size: 13px; color: var(--text-strong); }
.rp-head .spacer, .rp-foot .spacer { flex: 1; }
.rp-ic { background: none; border: 0; padding: 3px; color: #333; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.rp-ic:hover:not(:disabled) { background: #EEE; }
.rp-ic:disabled { color: #BDBDBD; cursor: not-allowed; }
.rp-body { padding: 8px 10px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rp-card { border: 1px solid var(--line-strong); border-radius: 5px; padding: 6px 8px 8px; }
.rp-card.on { border: 2px solid var(--blue-link); padding: 5px 7px 7px; }
.rp-card.fixed .rp-table { opacity: .75; }
.rp-top { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.rp-top b { font-weight: 400; font-size: 13px; margin-right: 6px; }
.rp-top .spacer { flex: 1; }
.rp-tablewrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; }
.rp-table th { text-align: left; font-weight: 400; color: var(--muted-2); padding: 4px 6px; font-size: 11px; white-space: nowrap; }
.rp-table td { padding: 5px 6px; border-top: 1px solid #F0F0F2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-table .num { text-align: right; }
.rp-table .rp-n { width: 22px; color: var(--muted-2); }
.rp-table .rp-act { width: 52px; text-align: right; white-space: nowrap; }
.rp-table tbody tr { cursor: default; }
.rp-table tbody tr.sel td { background: var(--blue-tint); }
.rp-table tr.ins-before td { box-shadow: inset 0 2px 0 var(--blue-link); }
.rp-table tr.ins-after td { box-shadow: inset 0 -2px 0 var(--blue-link); }
.rp-total td { font-weight: 700; }
.rp-totals { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 11px; }
.rp-totals div { display: flex; flex-direction: column; gap: 2px; }
.rp-totals span { color: var(--muted-2); }
.rp-totals b { font-weight: 400; color: var(--text-strong); }
.rp-foot { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-top: 1px solid var(--line-soft); flex: none; }
.rp-i { display: inline-flex; align-items: center; gap: 4px; }
.rp-empty { color: var(--muted); padding: 14px 4px; }
.rp-cols { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; }

/* Suggest allocations */
.dlg-suggest .dlg-title { font-size: 14px; }
.sg-table td.bad { color: var(--danger); }
.sg-table td { height: 34px; }
.dlg-max { width: 96vw !important; }
.dlg-max .od-tablewrap { max-height: 70vh; }

/* order form: priority select, location chip, paged tables */
.od-prio-wrap { position: relative; width: 100%; }
.od-pdot { position: absolute; left: 9px; top: 8px; width: 12px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 1; }
.od-psel { width: 100%; height: 28px; padding-left: 28px; font-size: 12px; }
.od-prio-wrap.off .od-psel { background-color: #F5F5F5; color: #9A9A9A; border-color: #E8E8E8; }
.od-emailwrap { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.mx-input.bad { border-color: var(--danger); }
.loc-box { position: relative; }
.loc-acts { margin-left: auto; display: flex; gap: 2px; flex: none; }
.loc-acts .icon-btn:disabled { color: #BDBDBD; }
.od-gearcell { width: 30px; text-align: right; }
.od-gear { color: #333; }
.od-pager { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.od-pager .spacer { flex: 1; }
.od-pager .pg { min-width: 26px; height: 26px; background: none; border: 1px solid transparent; border-radius: 3px; color: #777; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.od-pager .pg.cur { border-color: var(--blue); color: var(--blue); }
.od-pager .pg:disabled { color: #CCC; }
.od-size { height: 26px; width: 92px; font-size: 12px; }
.od-new { min-height: 0; }

/* Import from file: the OrderWise row on top (the dialog's own styles are in orders-reports.css) */
.imp-ow { display: flex; align-items: center; gap: 12px; }
.imp-ow b { font-weight: 700; }
.imp-ow .imp-last { margin-left: auto; font-size: 12px; }
.imp-sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* Dispatcher settings */
.dlg-dispatcher .dlg-body { padding: 4px 18px 8px; min-height: 330px; }
.ds-tabs { display: flex; gap: 14px; padding: 10px 0 8px; }
.ds-tab { background: none; border: 0; padding: 2px 0; font-size: 12px; color: var(--text-strong); border-bottom: 2px solid transparent; }
.ds-tab.on { color: var(--blue-link); border-bottom-color: var(--blue-link); }
.ds-group { font-size: 12px; margin: 12px 0 6px; }
.ds-row { margin-bottom: 6px; align-items: flex-start; min-height: 28px; }
.ds-row .flabel.wide { flex: 0 0 250px; font-size: 12px; text-align: right; padding-top: 6px; }
.ds-row .fcontrol { align-items: flex-start; padding-top: 3px; }
.ds-nu { display: flex; flex-direction: column; gap: 2px; }
.ds-num { width: 60px; height: 26px; text-align: right; }
.ds-unit { width: 96px; height: 26px; }
.ds-num.bad { border-color: var(--danger); }
.ds-err { color: var(--danger); font-size: 11px; }
.ds-pane .radio-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.tb-search input[type=search]::-webkit-search-cancel-button { display: none; }
.p-map { z-index: 0; }
