/* DG Smart Delivery Live 0.4.2 — scoped private/public map, no third-party JS */
.dgdl-map-app{--dgdl-navy:#09213e;--dgdl-ink:#163050;--dgdl-blue:#1b85dc;--dgdl-cyan:#37daee;--dgdl-green:#3ce4b6;--dgdl-soft:#eef4fa;--dgdl-muted:#66809b;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--dgdl-ink);width:100%;max-width:1400px;margin:0 auto 28px;box-sizing:border-box}
.dgdl-map-app *, .dgdl-map-app *::before,.dgdl-map-app *::after{box-sizing:border-box}
.dgdl-map-app button,.dgdl-map-app select,.dgdl-map-app input{font:inherit}
.dgdl-map-app button{cursor:pointer}
.dgdl-map-app button:focus-visible,.dgdl-map-app select:focus-visible,.dgdl-map-app input:focus-visible{outline:3px solid #57d4e9;outline-offset:2px}
.dgdl-map-app [hidden]{display:none!important}
.dgdl-map-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:29px 36px;border-radius:20px 20px 0 0;background:radial-gradient(circle at 80% -40%,#237cb1 0,transparent 42%),linear-gradient(108deg,#09233f 0%,#0e3f70 69%,#136d99 100%);color:#fff;position:relative;overflow:hidden;min-height:176px}
.dgdl-map-hero:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(122,212,248,.17);border-radius:50%;right:17%;top:-165px;box-shadow:0 0 0 48px rgba(57,156,212,.04),0 0 0 98px rgba(57,156,212,.025);pointer-events:none}
.dgdl-map-hero-copy{position:relative;z-index:1;min-width:0}
.dgdl-map-eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:2px;font-weight:800;color:#a9dff3}
.dgdl-map-signal{background:#46f0c2;width:7px;height:7px;border-radius:50%;box-shadow:0 0 14px #39d4bd;flex-shrink:0}
.dgdl-map-divider-dot{opacity:.55}
.dgdl-map-hero h2{color:#fff!important;font-size:clamp(24px,3.1vw,36px);font-weight:800;letter-spacing:-1.1px;line-height:1.2;margin:15px 0 10px!important;border:0;padding:0;text-transform:none}
.dgdl-map-hero h2 em{font-style:normal;color:#64dbed}
.dgdl-map-hero p{font-size:13px!important;line-height:1.6;color:#c8e4f4!important;max-width:620px;margin:0!important}
.dgdl-map-hero-badge{border:1px solid rgba(130,223,245,.28);border-radius:15px;padding:12px 17px;white-space:nowrap;font-size:11px;letter-spacing:.8px;font-weight:800;color:#e1fbf9;position:relative;z-index:1;background:rgba(255,255,255,.065);text-align:left}
.dgdl-map-hero-badge .dgdl-map-badge-led{display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#3ce4b6;box-shadow:0 0 9px rgba(60,228,182,.8)}
.dgdl-map-hero-badge small{display:block;color:#bfdded;letter-spacing:0;font-size:11px;font-weight:400;margin:6px 0 0 17px}
.dgdl-map-admin-ribbon{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;background:#e9f4fe;border-left:3px solid #2996dd;font-size:12px;line-height:1.45;color:#234c70}
.dgdl-map-ribbon-alert{color:#985a00;font-weight:700}
.dgdl-map-body{background:#f6f9fd;padding:23px 24px 18px;border:1px solid #e2ebf5;border-top:0;border-radius:0 0 20px 20px}
.dgdl-map-controls{display:flex;align-items:end;gap:12px 18px;flex-wrap:wrap;margin-bottom:18px}
.dgdl-map-grouping{min-width:220px;max-width:340px}
.dgdl-map-grouping-help{flex:1 1 100%;order:5;font-size:11px;color:#557993;margin:-4px 0 0;line-height:1.5}
.dgdl-map-grouping select{max-width:340px}
.dgdl-map-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.dgdl-map-field-label{font-size:10px;letter-spacing:1px;font-weight:850;color:#577594;margin-bottom:0}
.dgdl-map-pills{display:flex;gap:4px;padding:4px;border:1px solid #dbe8f6;background:#ebf2fa;border-radius:11px}
.dgdl-map-pill{border:0!important;background:transparent!important;color:#4c6d8b!important;border-radius:8px!important;min-height:37px;padding:8px 15px!important;font-size:12px!important;font-weight:700!important;white-space:nowrap;box-shadow:none!important;transition:background .16s,color .16s}
.dgdl-map-pill:hover{background:#dce8f5!important;color:#174b78!important}
.dgdl-map-pill.active{background:#196db3!important;color:#fff!important;box-shadow:0 2px 8px rgba(19,91,162,.25)!important}
.dgdl-map-field select{min-height:44px;border:1px solid #d7e4f1!important;border-radius:9px!important;background:#fff!important;color:#264968!important;font-size:12px!important;padding:7px 30px 7px 12px;max-width:240px;box-shadow:none}
.dgdl-map-preview-select select{max-width:260px}
.dgdl-map-dates{display:flex;flex-wrap:wrap;align-items:end;gap:10px;flex-basis:100%;padding:12px;background:#edf4fb;border-radius:11px;border:1px solid #dae6f3}
.dgdl-map-dates label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:750;color:#446582}
.dgdl-map-dates input{height:38px;border:1px solid #cedfed;border-radius:7px;background:#fff;padding:7px 10px;color:#254665;min-width:145px}
.dgdl-map-apply{height:38px;border:0;border-radius:8px;color:#fff!important;background:#1366aa!important;padding:8px 18px;font-weight:800;font-size:12px!important}
.dgdl-map-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:17px}
.dgdl-map-metric{background:#fff;border:1px solid #e5edf5;border-radius:12px;min-height:96px;padding:17px 18px;position:relative;box-shadow:0 4px 17px rgba(23,60,97,.035)}
.dgdl-map-metric-icon{position:absolute;right:15px;top:13px;width:29px;height:29px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;color:#1a6eba;background:#e9f2ff}
.dgdl-map-metric-icon.violet{background:#f0e5ff;color:#8753cb}.dgdl-map-metric-icon.aqua{background:#dbf5f9;color:#1588a5}.dgdl-map-metric-icon.mint{background:#dcfaed;color:#189b75}.dgdl-map-metric-icon.peach{background:#fff0dc;color:#c17b1c}
.dgdl-map-metric small{display:block;color:#748aa3;font-size:10px;font-weight:800;letter-spacing:.45px;margin-bottom:10px}
.dgdl-map-metric strong{display:block;font-size:28px;line-height:1.1;color:#0c2f56;font-variant-numeric:tabular-nums;font-weight:820}
.dgdl-map-stage{border:1px solid #204c71;background:#0c2742;border-radius:18px;overflow:hidden;box-shadow:0 11px 32px rgba(16,58,94,.14)}
.dgdl-map-topline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 20px;background:#08213e;border-bottom:1px solid rgba(157,214,252,.13);color:#fff}
.dgdl-map-topline>div:first-child{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.dgdl-map-topline strong{font-size:13px;color:#f2f9ff}
.dgdl-map-topline small{font-size:11px;color:#92bbd2;margin-left:8px}
.dgdl-map-topline-pulse{width:7px;height:7px;border-radius:50%;background:#35d7b1;box-shadow:0 0 12px #27c5b9}
.dgdl-map-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:#b4d4e5}
.dgdl-map-refresh{border:1px solid rgba(120,210,226,.25)!important;border-radius:7px!important;background:rgba(19,79,112,.45)!important;color:#c9eef3!important;font-size:11px!important;font-weight:700!important;padding:6px 9px!important;line-height:1.2;white-space:nowrap}.dgdl-map-refresh:hover{background:#15517a!important}
.dgdl-map-legend>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.dgdl-map-legend-line{display:inline-block;width:20px;height:3px;background:#48ddf6;border-radius:4px;box-shadow:0 0 6px #30cde0}.dgdl-map-legend-line.delivery{background:repeating-linear-gradient(90deg,#c59bff 0 4px,transparent 4px 10px);box-shadow:0 0 7px #9871ea;height:4px}.dgdl-map-legend-line.delivered{background:#4de5a7;box-shadow:0 0 6px #36c58c}
.dgdl-map-legend-dot{width:8px;height:8px;background:#ffc672;border-radius:50%}
.dgdl-map-canvas{position:relative;height:490px;background:#08233e;overflow:hidden;touch-action:pan-y;cursor:grab;user-select:none}
.dgdl-map-canvas.dragging{cursor:grabbing;touch-action:none}
.dgdl-map-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse at 47% 50%,rgba(15,79,111,.4),transparent 64%),linear-gradient(135deg,#09253f,#103350);pointer-events:none}
.dgdl-map-backdrop:before{position:absolute;inset:0;content:"";background-image:linear-gradient(rgba(91,164,198,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(91,164,198,.045) 1px,transparent 1px);background-size:42px 42px}
.dgdl-map-svg{position:absolute;left:0;top:0;width:100%;height:100%;display:block;overflow:hidden}
.dgdl-map-svg .dgdl-country{fill:#194461;stroke:#457c9e;stroke-opacity:.55;stroke-width:.8;vector-effect:non-scaling-stroke}
.dgdl-map-svg .dgdl-country.highlight{fill:#1b526e;stroke:#5d9bad}
.dgdl-map-svg .dgdl-route{fill:none;stroke-width:2.2;stroke-linecap:round;opacity:.92;pointer-events:stroke;cursor:pointer}
.dgdl-map-svg .dgdl-route.transit{stroke:#52dffa;stroke-dasharray:6 8;animation:dgdl-route-pulse 1.1s linear infinite;filter:drop-shadow(0 0 5px #28ccec)}
.dgdl-map-svg .dgdl-route.delivery{stroke:#c59bff;stroke-width:3;stroke-dasharray:2 9;animation:dgdl-route-delivery-pulse .75s linear infinite;filter:drop-shadow(0 0 6px #a477f9);opacity:.99}
.dgdl-map-svg .dgdl-route.delivered{stroke:#4ee7af;stroke-width:2;filter:drop-shadow(0 0 4px #25bf86)}
@keyframes dgdl-route-pulse{to{stroke-dashoffset:-28}}
@keyframes dgdl-route-delivery-pulse{to{stroke-dashoffset:-22}}
.dgdl-map-svg .dgdl-route-halo{fill:none;stroke-width:10;stroke-opacity:.1;stroke-linecap:round;pointer-events:none}
.dgdl-map-svg .dgdl-route-halo.delivery{stroke:#ae86ff;stroke-width:12;stroke-opacity:.19}.dgdl-map-svg .dgdl-route-halo.transit{stroke:#54dafa}.dgdl-map-svg .dgdl-route-halo.delivered{stroke:#3ada9d}
.dgdl-map-svg .dgdl-origin-outer{fill:rgba(83,226,247,.17);stroke:#79eafb;stroke-width:1;animation:dgdl-origin-ring 2.7s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes dgdl-origin-ring{50%{opacity:.35;transform:scale(1.4)}}
.dgdl-map-svg .dgdl-origin-dot{fill:#fff;stroke:#40dbfb;stroke-width:4;filter:drop-shadow(0 0 5px #50edff)}
.dgdl-map-svg .dgdl-marker{cursor:pointer;outline:none}
.dgdl-map-svg .dgdl-marker circle{fill:#133b5e;stroke:#6be7fa;stroke-width:2;filter:drop-shadow(0 0 5px rgba(61,221,244,.55))}
.dgdl-map-svg .dgdl-marker.delivery circle{stroke:#c59bff;filter:drop-shadow(0 0 6px rgba(177,117,255,.68))}
.dgdl-map-svg .dgdl-marker.delivered circle{stroke:#61e8b3}.dgdl-map-svg .dgdl-marker.prepared circle{stroke:#ffc06d}
.dgdl-map-svg .dgdl-marker.delivery circle.dgdl-delivery-ring{fill:none;stroke:#c59bff;stroke-width:1.5;stroke-dasharray:none;filter:none;pointer-events:none;animation:dgdl-delivery-ring-pulse 1.15s ease-in-out infinite}
@keyframes dgdl-delivery-ring-pulse{0%,100%{opacity:.25;stroke-width:1}50%{opacity:.85;stroke-width:2.8}}
.dgdl-map-svg .dgdl-marker text{fill:#fff;font-size:11px;font-family:Inter,-apple-system,"Segoe UI",Arial,sans-serif;font-weight:800;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.dgdl-map-svg .dgdl-marker:focus-visible circle{stroke-width:4}
.dgdl-map-svg .dgdl-marker.aggregated circle{stroke-dasharray:3 3;stroke-width:2.5;fill:#153856}
.dgdl-map-svg .dgdl-marker.delivery.aggregated circle.dgdl-delivery-ring{fill:none;stroke-dasharray:none;stroke-width:1.5}
/* v0.4.6: labels contrast with the map, including on dark Warehouse templates.
 * The matching inline SVG styles are a fallback when a stale stylesheet is served. */
.dgdl-map-svg .dgdl-label-pill{pointer-events:none}
.dgdl-map-svg .dgdl-label-pill rect{fill:rgba(8,38,60,.94);stroke:rgba(120,215,240,.55);stroke-width:.9}
.dgdl-map-svg .dgdl-label-pill.aggregated rect{fill:rgba(10,51,73,.94);stroke:rgba(103,227,210,.7);stroke-dasharray:4 2}
.dgdl-map-svg .dgdl-label-pill text{fill:#edfcff;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:12px;font-weight:750;stroke:none;paint-order:normal}
.dgdl-map-svg .dgdl-map-label{fill:#d7f8ff;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:12px;font-weight:800;paint-order:stroke;stroke:#0c2944;stroke-width:4;stroke-linejoin:round;pointer-events:none}
.dgdl-map-svg .dgdl-origin-label{fill:#fff;font-size:13px;font-weight:850;paint-order:stroke;stroke:#0a314c;stroke-width:4;pointer-events:none}
.dgdl-map-canvas .dgdl-map-zoom{position:absolute;right:16px;top:18px;display:flex;flex-direction:column;gap:2px;z-index:2;background:rgba(9,31,51,.89);border:1px solid rgba(160,231,246,.25);padding:5px;border-radius:10px}
.dgdl-map-zoom button{display:grid;place-items:center;border:0;background:transparent!important;border-radius:6px!important;width:35px;height:34px;font-size:23px;color:#e3f9ff!important;line-height:1;padding:0!important}
.dgdl-map-zoom button:hover{background:rgba(64,188,238,.25)!important}
.dgdl-map-watermark{position:absolute;left:15px;bottom:12px;color:#8bb7cf;font-size:9px;letter-spacing:1px;font-weight:750;opacity:.85;pointer-events:none}.dgdl-map-watermark span{padding:0 6px;opacity:.6}
.dgdl-map-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(350px,calc(100% - 44px));text-align:center;padding:24px;background:rgba(6,29,51,.86);border:1px solid rgba(113,193,221,.32);border-radius:15px;color:#e7f9ff;box-shadow:0 14px 30px rgba(0,0,0,.3);pointer-events:none}
.dgdl-map-empty-icon{display:block;font-size:30px;color:#52cbea;margin-bottom:9px}
.dgdl-map-empty strong{display:block;font-size:15px;line-height:1.4}.dgdl-map-empty p{font-size:11px;line-height:1.6;color:#afd0df;margin:10px 0 0!important}
.dgdl-map-loading{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:rgba(6,25,44,.86);color:#e3fbff;font-size:14px;font-weight:750;letter-spacing:.2px}
.dgdl-map-inspector{position:absolute;left:16px;bottom:25px;z-index:3;max-width:270px;min-width:220px;background:rgba(5,28,49,.94);border:1px solid rgba(89,210,234,.48);padding:17px 18px;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.24);color:#fff}
.dgdl-map-inspector button{position:absolute;right:8px;top:7px;border:0;background:transparent;color:#b4e4f0;font-size:22px;line-height:22px}
.dgdl-map-inspector small{display:block;font-size:10px;font-weight:800;letter-spacing:.7px;color:#64d5ee;padding-right:16px}.dgdl-map-inspector strong{display:block;font-size:16px;margin:8px 0;line-height:1.3}.dgdl-map-inspector span{display:block;color:#b9dce9;font-size:12px;line-height:1.5}
.dgdl-map-footline{padding:12px 18px;background:#0d2e4d;display:flex;gap:10px 20px;flex-wrap:wrap;justify-content:space-between;font-size:10px;color:#a6c7d8;line-height:1.5}
.dgdl-map-note{display:flex;gap:12px;align-items:flex-start;padding:15px 0 0;color:#54718d;line-height:1.7;font-size:11px}
.dgdl-map-note>span{font-size:18px}.dgdl-map-note p{margin:0!important;color:#54718d!important;font-size:11px!important;line-height:1.6}
.dgdl-map-app .dgdl-flag-error{color:#f1a0a0}
.dgdl-map-app .dgdl-map-public-help{display:inline-flex;align-items:center;gap:8px;margin:16px 0;color:#2773ad;text-decoration:none;font-weight:750;font-size:12px}
@media (max-width:950px) and (min-width:601px){.dgdl-map-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:850px){.dgdl-map-hero{padding:26px 25px}.dgdl-map-hero-badge{display:none}.dgdl-map-body{padding:16px}.dgdl-map-metrics{gap:9px}.dgdl-map-metric{padding:14px 12px;min-height:87px}.dgdl-map-metric small{font-size:9px}.dgdl-map-metric strong{font-size:25px}.dgdl-map-canvas{height:440px}}
@media (max-width:600px){.dgdl-map-app{margin-bottom:15px}.dgdl-map-hero{padding:23px 19px;border-radius:14px 14px 0 0;min-height:auto}.dgdl-map-eyebrow{font-size:9px;letter-spacing:1px}.dgdl-map-hero h2{font-size:26px;letter-spacing:-.5px}.dgdl-map-hero p{font-size:12px!important}.dgdl-map-body{padding:11px;border-radius:0 0 14px 14px}.dgdl-map-pills{width:100%;justify-content:space-between}.dgdl-map-field:first-child{width:100%}.dgdl-map-pill{padding:7px 10px!important;flex:1}.dgdl-map-field select{max-width:none;width:100%}.dgdl-map-field:not(:first-child){flex:1;min-width:calc(50% - 8px)}.dgdl-map-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dgdl-map-metric:last-child{grid-column:span 2}.dgdl-map-metric{padding:12px 13px;min-height:80px}.dgdl-map-metric strong{font-size:26px}.dgdl-map-topline{padding:13px 12px}.dgdl-map-topline small{margin-left:0}.dgdl-map-legend{gap:9px;font-size:10px}.dgdl-map-canvas{height:380px}.dgdl-map-zoom{right:8px!important;top:8px!important}.dgdl-map-zoom button{width:31px;height:31px;font-size:21px}.dgdl-map-footline{padding:11px;font-size:10px}.dgdl-map-admin-ribbon{padding:11px 14px}}
@media (prefers-reduced-motion:reduce){.dgdl-map-svg .dgdl-route.transit,.dgdl-map-svg .dgdl-route.delivery,.dgdl-map-svg .dgdl-marker.delivery circle.dgdl-delivery-ring,.dgdl-map-svg .dgdl-origin-outer{animation:none!important}.dgdl-map-pill{transition:none!important}}

/* v0.4.6 — dynamic density clusters, internal exception/return diagnostics. */
.dgdl-map-svg .dgdl-marker.mixed circle{stroke:#f9d598;fill:#3a344b;filter:drop-shadow(0 0 6px rgba(249,213,152,.3))}
.dgdl-map-svg .dgdl-route.mixed{stroke:#f9d598;stroke-width:2.4;stroke-dasharray:4 6;animation:none;opacity:.86;filter:drop-shadow(0 0 3px rgba(249,213,152,.5))}
.dgdl-map-svg .dgdl-route-halo.mixed{stroke:#f9d598;stroke-opacity:.14}
.dgdl-map-svg .dgdl-marker.exception circle{stroke:#f29b77;fill:#543c49}
.dgdl-map-svg .dgdl-marker.returned circle{stroke:#9fb1c6;fill:#2b4157}
.dgdl-map-legend-dot.exception{background:#f29b77}.dgdl-map-legend-dot.returned{background:#9fb1c6}
.dgdl-map-legend-line.mixed{background:repeating-linear-gradient(90deg,#f9d598 0 5px,transparent 5px 10px);box-shadow:none}
.dgdl-map-internal-status{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:#51738b;margin:-7px 0 13px}
.dgdl-map-internal-status strong{color:#264a65}
