/* Xtreme Delivery 5.0.2 — Night Ops final pass.
   Loaded last to keep third-party/page-specific surfaces inside the dark system. */
:root{color-scheme:dark}
html,body{background-color:#080d13}

/* Third-party maps */
.leaflet-control-zoom a,.leaflet-control-layers,.leaflet-bar a,.leaflet-popup-content-wrapper,.leaflet-popup-tip{
  background:#111a24!important;color:#dce4ed!important;border-color:#293849!important
}
.leaflet-bar a:hover{background:#192532!important;color:#fff!important}
.leaflet-control-attribution{background:rgba(9,14,21,.84)!important;color:#7c8b9e!important}.leaflet-control-attribution a{color:#9fb5ca!important}

/* Native controls that can otherwise flash light */
select,input,textarea{color-scheme:dark}
input[type="file"]::file-selector-button{background:#17222f;border:1px solid #2c3c4d;color:#cbd5df;border-radius:8px;padding:7px 10px}

/* Generic overlays and menus used by legacy modules */
.dropdown-menu,.popover,.modal-content,.menu-popover,[role="dialog"] .dialog-card{
  background:#101821!important;border-color:#293746!important;color:#dce4ed!important
}

/* Keep readable focus rings on dark surfaces */
:focus-visible{outline:2px solid rgba(125,183,255,.7);outline-offset:2px}

/* Avoid accidental white surfaces from late page-specific rules */
.panel-body .panel-card,.panel-body .stat-card,.panel-body .commerce-product-card,.panel-body .driver-offer-card,
body:not(.panel-body) .summary-card,body:not(.panel-body) .checkout-card,body:not(.panel-body) .profile-card,
body:not(.panel-body) .address-card,body:not(.panel-body) .state-card,body:not(.panel-body) .support-card{
  background-color:#111923!important
}
