/* A warm copper interface, with quiet light effects on interaction. */
.client-portal{background:radial-gradient(ellipse at 90% 0,#efddc84f,transparent 42%),#f8f6f2}
.portal-topbar{background:#fffdfa}.portal-heading-row h1{color:#382c23}
.portal-account{position:relative}.portal-account-photo{box-shadow:0 0 0 4px #f9f3eb}.portal-account strong{color:#684932}
.portal-stat,.portal-track-card,.portal-section{border-radius:16px;border-color:#e7ded3;box-shadow:0 4px 16px #6b462604}
.portal-stat,.portal-track-card,.portal-nav button,.portal-table-action,.portal-primary,.portal-assist-card button,.portal-new-support{position:relative;isolation:isolate;transition:border-color .25s,box-shadow .25s,transform .25s,background .25s}
.portal-stat,.portal-track-card,.portal-nav button,.portal-table-action,.portal-primary,.portal-assist-card button,.portal-new-support{overflow:hidden}
.portal-stat::after,.portal-track-card::after,.portal-nav button::after,.portal-table-action::after,.portal-primary::after,.portal-assist-card button::after,.portal-new-support::after{content:'';position:absolute;inset:-15% auto -15% -50%;width:30%;background:linear-gradient(105deg,transparent,#edc79640,transparent);transform:skewX(-18deg);pointer-events:none;z-index:2;opacity:0}
.portal-stat:hover::after,.portal-track-card:hover::after,.portal-nav button:hover::after,.portal-table-action:hover::after,.portal-primary:hover::after,.portal-assist-card button:hover::after,.portal-new-support:hover::after{animation:portal-light-sweep .8s ease}
.portal-stat:hover,.portal-track-card:hover{border-color:#d2ac89;box-shadow:0 8px 28px #8053340e}
.portal-track-card:has(.shipment-map):hover::after{display:none}
.portal-stat:active,.portal-primary:active,.portal-assist-card button:active{transform:scale(.985)}
.portal-stat-top svg{width:40px;height:40px;filter:drop-shadow(0 3px 5px #bb6e3418)}
.portal-stat-top{color:#83634b}.portal-stat small{color:#91775f}.portal-stat strong{color:#7d4c29}
.portal-nav button.is-active{background:linear-gradient(110deg,#f5e5d5,#faf0e6);box-shadow:inset 3px 0 #bb6e34}
.portal-nav button:hover svg{filter:drop-shadow(0 0 4px #bb6e3430);animation:portal-icon-hover .8s ease}
.portal-global-search{background:#fff;border-color:#e4d4c4;box-shadow:0 2px 12px #794f2505;transition:box-shadow .25s,border-color .25s}.portal-global-search:focus-within{border-color:#bb6e34;box-shadow:0 0 0 4px #bb6e340c,0 4px 16px #bb6e340c}
.portal-table tbody tr{transition:background .25s}.portal-table tbody tr:hover{background:linear-gradient(90deg,#fdf9f3,#fffdfa)}
.portal-table tbody tr:hover .portal-order-icon{background:#f7e9da;color:#bb6e34;box-shadow:0 0 14px #bb6e3415}
.portal-primary{background:#bb6e34;box-shadow:0 3px 10px #bb6e3415}.portal-primary:hover{background:#a75e2a;box-shadow:0 5px 15px #bb6e3424}
.portal-table-action:hover,.portal-new-support:hover{border-color:#c79366;background:#fff9f1}
.portal-assist-card{border-radius:16px;background:linear-gradient(115deg,#80512f,#ad7343);box-shadow:0 5px 20px #7b4a2910}
.portal-assist-card::before{content:'';position:absolute;top:-100px;bottom:-100px;left:-70%;width:35%;pointer-events:none;background:linear-gradient(110deg,transparent,#ffe9c81a,transparent);transform:skewX(-20deg);animation:portal-ambient-light 11s ease-in-out infinite}
.portal-main>*{animation:portal-content-arrive .4s ease both}.portal-main>*:nth-child(2){animation-delay:.045s}.portal-main>*:nth-child(3){animation-delay:.09s}.portal-main>*:nth-child(4){animation-delay:.135s}
.portal-stat:nth-child(2) .portal-stat-top svg{animation-delay:.3s}.portal-stat:nth-child(3) .portal-stat-top svg{animation-delay:.6s}
.portal-shipment-track .phase-transit.is-moving .phase-icon{box-shadow:0 0 0 7px #bb6e3410,0 0 23px #bb6e3426;animation:portal-stage-glow 3.6s ease-in-out infinite}
.portal-shipment-track .phase-delivered.is-pending .phase-icon{border-style:dashed}
.portal-shipment-grid.has-map{grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);align-items:start}.portal-shipment-grid.has-map>section{min-width:0}
.portal-shipment-info dl{gap:20px 18px}.portal-shipment-info .portal-primary{width:100%;margin-top:25px;line-height:1.5}
.shipment-events{border-top:1px solid #eee1d4;padding-top:22px;margin-top:25px}.shipment-events h3{font-size:15px;color:#775135;margin:0 0 20px;font-weight:600}.shipment-events ol{list-style:none;padding:0;margin:0}.shipment-events li{position:relative;padding:0 0 23px 26px;color:#73553d}.shipment-events li:last-child{padding-bottom:0}.shipment-events li::before{content:'';position:absolute;left:0;top:5px;width:9px;height:9px;background:#bb6e34;border:2px solid #bb6e34;border-radius:50%;box-shadow:0 0 0 4px #f7ecdf}.shipment-events li::after{content:'';position:absolute;left:5px;top:20px;bottom:3px;width:1px;background:#e2c7ac}.shipment-events li:last-child::after{display:none}.shipment-events li.is-expected::before{background:#fff;border-style:dashed;box-shadow:0 0 0 4px #faf3eb;animation:portal-stage-glow 3.5s ease-in-out infinite}.shipment-events strong{display:block;font-size:14px;font-weight:500}.shipment-events small{display:block;font-size:13px;color:#9c8068;margin-top:5px}
.shipment-map-card{padding:24px!important;overflow:hidden;background:#fff}.shipment-map-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.shipment-map-heading h2{font-size:18px;margin:6px 0 0;line-height:1.4}.shipment-map-eyebrow{color:#aa6838;font-size:11px;letter-spacing:1.25px;display:flex;align-items:center;gap:7px;font-weight:500}.shipment-map-eyebrow i{width:6px;height:6px;border-radius:50%;background:#bb6e34;box-shadow:0 0 0 4px #bb6e340c;animation:portal-stage-glow 2.7s ease-in-out infinite}
.shipment-route-labels{display:flex;align-items:center;gap:20px;margin:22px 0 20px}.shipment-route-labels>div{position:relative;padding-left:22px;flex:1}.shipment-route-labels small{display:block;font-size:10px;letter-spacing:1.3px;color:#a38871}.shipment-route-labels strong{display:block;font-size:15px;font-weight:500;color:#765035;margin-top:4px}.shipment-origin-dot,.shipment-destination-dot{position:absolute;left:0;top:21px;width:10px;height:10px;border-radius:50%;border:2px solid #bb6e34;background:#bb6e34}.shipment-destination-dot{background:#fff}.shipment-route-arrow{font-size:22px;color:#b69475}
.shipment-map-shell{position:relative;border-radius:12px;isolation:isolate;overflow:hidden;border:1px solid #e8ddce;background:#f4efdf}.shipment-map{height:330px;width:100%;font:inherit;z-index:0;background:#e9edde}.shipment-map .leaflet-tile-pane{filter:saturate(.55) sepia(.08)}.shipment-map .leaflet-control-zoom{border:1px solid #e4d4bf;box-shadow:0 2px 10px #56351a15}.shipment-map .leaflet-control-zoom a{background:#fffdf9;color:#8e633e;font-size:18px;line-height:30px;width:30px;height:30px}.shipment-map .leaflet-control-attribution{font-size:10px!important;background:#ffffffde;color:#786950}.shipment-map .leaflet-control-attribution a{color:#8c5a32;text-decoration:underline}.shipment-map .leaflet-tooltip{font-family:Inter,Arial,sans-serif}
.shipment-map .shipment-city-label{background:#fffcf4;border:1px solid #deccb4;color:#805732;font-size:12px;font-weight:500;padding:5px 9px;border-radius:6px;box-shadow:0 2px 7px #6b44241a}.shipment-city-label::before{display:none}
.shipment-map-loader{display:grid;place-items:center;position:absolute;inset:0;text-align:center;padding:25px;color:#a07950;font-size:14px;background:linear-gradient(110deg,#f9f1e4,#fffaf2);z-index:2}.shipment-map-loader:not(.has-error)::after{content:'';position:absolute;width:90px;height:2px;left:calc(50% - 45px);top:57%;background:linear-gradient(90deg,transparent,#bb6e34,transparent);animation:shipment-loader 1.8s ease-in-out infinite}.shipment-map-loader[hidden]{display:none!important}
.shipment-map-pin{display:grid;place-items:center}.shipment-pin-origin,.shipment-pin-destination{display:block;width:14px;height:14px;background:#bb6e34;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 8px #65381644}.shipment-pin-destination{background:#fff;border-color:#bb6e34}
.shipment-truck-marker{display:grid;place-items:center;position:absolute}.shipment-truck-body{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fffaf0;border:2px solid #bb6e34;color:#bb6e34;box-shadow:0 3px 12px #66432238;position:relative;z-index:1}.client-portal .shipment-truck-body svg{width:23px;height:23px;transform:scaleX(-1);stroke-width:1.7}.shipment-truck-tooltip{border-color:#d3ae88;color:#8b5c33;background:#fffbf4;font-size:12px}
.shipment-map-legend{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;font-size:11px;color:#9b8169;padding:13px 1px 17px}.shipment-map-legend>span{display:flex;align-items:center;gap:6px}.shipment-map-legend i{display:block;width:16px;height:3px;border-radius:5px;background:#bb6e34}.shipment-map-legend .route-remaining{height:0;border-top:2px dashed #b59679;background:transparent}.shipment-road-distance{margin-left:auto}
@keyframes portal-light-sweep{0%{left:-50%;opacity:0}20%{opacity:.9}100%{left:120%;opacity:0}}
@keyframes portal-icon-hover{0%,100%{transform:translateY(0)}45%{transform:translateY(-2px)}}
@keyframes portal-ambient-light{0%,65%{left:-70%;opacity:0}70%{opacity:.75}100%{left:140%;opacity:0}}
@keyframes portal-content-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes portal-stage-glow{0%,100%{filter:drop-shadow(0 0 1px #bb6e3410)}50%{filter:drop-shadow(0 0 6px #bb6e3440)}}
@keyframes shipment-loader{0%,100%{transform:scaleX(.3);opacity:.5}50%{transform:scaleX(1);opacity:1}}
@media(max-width:1150px){.portal-shipment-grid.has-map{grid-template-columns:1fr}.shipment-map{height:390px}.shipment-map-heading h2{font-size:20px}.shipment-events ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.shipment-events li{padding-bottom:0}.shipment-events li::after{display:none}.shipment-map-card{order:-1}}
@media(max-width:800px){.portal-stat-top svg{width:32px;height:32px}.shipment-map-card{padding:20px!important}.shipment-map{height:330px}.shipment-events ol{display:block}.shipment-events li{padding-bottom:23px}.shipment-events li::after{display:block}.shipment-events li:last-child::after{display:none}}
@media(max-width:500px){.shipment-map-heading{gap:12px}.shipment-map-heading h2{font-size:17px}.shipment-map-card{padding:16px!important}.shipment-route-labels{gap:10px}.shipment-route-labels strong{font-size:14px}.shipment-map{height:310px}.shipment-map-legend{font-size:10px;gap:10px}}
@media(prefers-reduced-motion:reduce){.client-portal .portal-main *,.client-portal .portal-main *::before,.client-portal .portal-main *::after,.portal-nav *,.portal-assist-card::before{animation:none!important;transition:none!important}.portal-main>*{animation:none}.portal-stat::after,.portal-track-card::after,.portal-nav button::after,.portal-table-action::after,.portal-primary::after,.portal-assist-card button::after,.portal-new-support::after,.portal-assist-card::before{display:none}.portal-stat:hover,.portal-stat:active,.portal-primary:active{transform:none}}

/* Static location and a brighter, quieter map focused on this route. */
.shipment-map-heading{align-items:flex-start;gap:20px}.shipment-map-heading h2{font-size:17px;max-width:220px}.shipment-map-eyebrow i{animation:none}.shipment-delivery-date{flex:none;text-align:right;line-height:1.5;padding-top:1px}.shipment-delivery-date small{display:block;font-size:10px;letter-spacing:.7px;color:#a0876e}.shipment-delivery-date strong{display:block;font-size:14px;font-weight:600;color:#805333;margin-top:4px}.shipment-delivery-date span{display:block;font-size:12px;color:#a07652;margin-top:2px}.shipment-map{height:430px;background:#fbfaf7}.shipment-map .leaflet-tile-pane{filter:grayscale(1);opacity:.32}.shipment-map .shipment-city-label{background:#fff;border-color:#dfd5c9;color:#6f5039;box-shadow:0 2px 8px #6b442412}.shipment-map-legend{font-size:12px;color:#8a715c;padding-bottom:0;padding-top:17px}.shipment-map-legend .route-remaining{border-color:#a8937e}.shipment-truck-body{background:#fff;box-shadow:0 3px 12px #6643222b}
@media(max-width:1150px){.shipment-map{height:460px}}@media(max-width:800px){.shipment-map{height:420px}}@media(max-width:500px){.shipment-map{height:380px}.shipment-map-heading{gap:12px}.shipment-map-heading h2{font-size:16px;max-width:145px}.shipment-delivery-date strong{font-size:13px}.shipment-delivery-date small{font-size:9px;letter-spacing:.4px}.shipment-delivery-date span{font-size:11px}.shipment-map-legend{font-size:11px;gap:12px}}

/* Truck location stays fixed; light and wheel details animate in place. */
.overview-delivery-card{display:flex;flex-direction:column;justify-content:space-between;min-height:240px}.overview-delivery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.overview-delivery-heading h2{font-size:15px;margin:0}.overview-delivery-status{font-size:11px;color:#aa6938;background:#fff2e5;border:1px solid #efdbc5;border-radius:5px;padding:3px 7px;white-space:nowrap}.overview-delivery-order{display:block;font-size:14px;font-weight:500;color:#8f5934!important;margin:13px 0 0}.overview-delivery-order span{color:#a18a75;font-weight:400}.overview-delivery-order:hover{text-decoration:underline}.overview-route{position:relative;margin:32px 8px 12px;height:3px;border-top:2px dashed #d8b899}.overview-road-completed{position:absolute;left:0;top:-2px;width:58%;height:3px;background:#bb6e34;border-radius:3px}.overview-route-start,.overview-route-end{position:absolute;top:-6px;width:11px;height:11px;border:2px solid #bb6e34;border-radius:50%;background:#fff;z-index:1}.overview-route-start{left:-5px;background:#bb6e34}.overview-route-end{right:-5px}.overview-truck{display:grid;place-items:center;position:absolute;left:calc(58% - 17px);top:-26px;width:43px;height:36px;color:#bb6e34;background:#fff;transform:translateX(-50%);animation:none}.client-portal .overview-truck svg{width:34px;height:34px;filter:drop-shadow(0 2px 3px #bb6e3412)}.overview-route-places{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#a08b77;margin:0 0 15px}.overview-route-places strong{color:#926340;font-weight:500}.overview-all-deliveries{align-self:flex-start;text-align:left;padding:5px 0;color:#bb6e34;font-size:12px!important;line-height:1.5}.overview-all-deliveries:hover{text-decoration:underline}

@media(max-width:1100px){.overview-delivery-card{min-height:220px}.overview-route{margin-top:38px}}
@media(prefers-reduced-motion:reduce){.overview-truck{animation:none;left:calc(58% - 17px);opacity:1}}

/* Leaflet owns the overlay size; the site's media reset must not shrink it. */
#shipment-map .leaflet-overlay-pane canvas{max-width:none!important;max-height:none!important}
.shipment-map-legend .route-remaining{border-top:3px dashed #bb6e34}
.overview-route-preview{display:block;border-radius:8px;cursor:pointer}.overview-route-preview:hover .overview-truck{color:#9f5d2a}

/* A soft halo highlights the stationary truck. */
.shipment-truck-aura{position:absolute;inset:-7px;border-radius:50%;border:1px solid #bb6e3470;background:radial-gradient(circle,#bb6e3414 20%,#bb6e3409 65%,transparent 75%);box-shadow:0 0 15px #bb6e3426;pointer-events:none;animation:shipment-location-halo 2.8s ease-out infinite}.shipment-truck-aura::after{content:'';position:absolute;inset:5px;border-radius:50%;border:1px solid #bb6e3430}
@keyframes shipment-location-halo{0%{transform:scale(.8);opacity:.65}75%,100%{transform:scale(1.65);opacity:0}}
@media(prefers-reduced-motion:reduce){.shipment-truck-aura{animation:none;transform:scale(1);opacity:.35}}

/* Map geometry keeps its own dimensions, independent of interface icons. */
#shipment-map .leaflet-overlay-pane>svg{width:auto!important;height:auto!important;max-width:none!important;max-height:none!important}
#shipment-map .shipment-route-remaining{animation:shipment-route-flow 1.8s linear infinite}
@keyframes shipment-route-flow{to{stroke-dashoffset:-26px}}
@media(prefers-reduced-motion:reduce){#shipment-map .shipment-route-remaining{animation:none!important}}

/* Continuous motion cues without changing the shipment position. */
.overview-truck::before{content:"";position:absolute;inset:-5px 0;border-radius:50%;border:1px solid #bb6e3438;background:radial-gradient(circle,#bb6e3410,transparent 72%);pointer-events:none;animation:overview-truck-halo 2.8s ease-out infinite}.client-portal .overview-truck svg{position:relative;animation:overview-truck-glow 2.8s ease-in-out infinite}.overview-truck .truck-wheel{stroke-dasharray:2.5 1.5;animation:overview-wheel-roll 1.4s linear infinite}.overview-truck .truck-light{fill:currentColor;stroke:none;animation:overview-truck-light 2.8s ease-in-out infinite}
@keyframes overview-truck-halo{0%{transform:scale(.85);opacity:.6}80%,100%{transform:scale(1.4);opacity:0}}
@keyframes overview-truck-glow{0%,100%{filter:drop-shadow(0 2px 3px #bb6e3412)}50%{filter:drop-shadow(0 2px 5px #bb6e3438)}}
@keyframes overview-wheel-roll{to{stroke-dashoffset:-8}}
@keyframes overview-truck-light{0%,100%{opacity:.35}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.overview-truck::before,.client-portal .overview-truck svg,.overview-truck .truck-wheel,.overview-truck .truck-light{animation:none!important}}
