
/* Distributor — four-stage specialized redesign; never change settlement or route state. */

body[data-nextest-role="distributor"] #roleContent .distributor-workspace{color:#f7fcff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage{max-width:1730px!important;gap:14px!important;padding:clamp(8px,1.1vw,18px)!important}/* Round 1: departure command and premium identity */










body[data-nextest-role="distributor"] #roleContent #distOnePage #distClock{background:linear-gradient(135deg,#0a3769bd,#092554e0)!important;border-radius:15px!important;border-color:#79c5ff62!important;box-shadow:inset 0 1px 0 #ffffff20!important;padding:14px!important;color:#edf9ff!important;font-variant-numeric:tabular-nums}

/* Round 2: visual financial and delivery KPIs based on actual server data */














/* Round 3: mission progression and real stops, no synthetic steps or numbers */

body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview{border-radius:22px!important;background:linear-gradient(145deg,#103e77,#08244c 75%)!important;border:1px solid #68bfff69!important;box-shadow:0 15px 31px #00152794!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{padding:18px 21px!important;display:flex;align-items:center;gap:18px;border-bottom:1px solid #6fa5e94f!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head h2{font-size:clamp(19px,1.5vw,25px)!important;font-weight:800!important;color:#f7fbff!important;margin-bottom:5px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head p{font-size:12px;color:#c0dbf2!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-progress{height:13px!important;background:#061d3e!important;border:1px solid #4b95d277;border-radius:999px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-progress i{background:linear-gradient(90deg,#17cd7f,#47ead5)!important;box-shadow:0 0 12px #2cebc25a}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tools{margin:14px!important;background:linear-gradient(130deg,#123e71,#0a2a51)!important;border:1px solid #569feb66!important;border-radius:16px!important;padding:15px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-copy b{font-size:15px;font-weight:800;color:#fff}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important;padding:16px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{border-radius:18px!important;min-height:169px!important;background:linear-gradient(145deg,#144579,#0b2d5b 80%)!important;border:1px solid #59a9ed6e!important;box-shadow:0 10px 20px #00142675,inset 0 1px 0 #ffffff1a!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-top{padding:13px 14px!important;gap:11px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-number{width:38px!important;height:38px!important;border-radius:12px!important;background:linear-gradient(125deg,#08c6ff,#155ee8)!important;border:1px solid #82e3ff8c!important;box-shadow:0 8px 16px #00143a91!important;font-size:13px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-name{font-size:15px;font-weight:800;color:#fff!important;overflow-wrap:anywhere;line-height:1.5}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-meta{font-size:12px!important;color:#c9e0f3!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions{padding:11px 14px!important;gap:9px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions button{min-height:41px!important;flex:1 1 145px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-status{border-radius:999px!important;font-weight:800!important;padding:5px 10px!important}

/* Round 4: custody, vehicle location, route close safety and mobile */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-complete-banner,.dist-alert,.dist-route-finish-row,.dist-cash-v2,.dist-location-surface){border-radius:19px!important;border:1px solid #75bfff5b!important;background:linear-gradient(135deg,#0d3b70,#0a2750)!important;box-shadow:0 13px 27px #0014258f,inset 0 1px 0 #ffffff16!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-complete-banner{border-color:#3bde9c85!important;background:linear-gradient(125deg,#086048,#073e45)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row{margin:14px!important;padding:16px!important;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-copy{flex:1 1 260px;display:flex;flex-direction:column;gap:5px}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-copy b{font-size:17px;font-weight:800;color:#fff}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-copy span{color:#badcf2;font-size:12px;line-height:1.65}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row button{min-height:45px!important;padding-inline:17px!important;font-weight:800!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-end-btn{background:linear-gradient(110deg,#ee9d21,#ee7215)!important;border-color:#ffce74!important;color:#201a12!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-note{flex:1 1 100%;font-size:12px;color:#e8eeff!important;background:linear-gradient(120deg,#165fa9,#1164ad);padding:9px 12px;border-radius:10px;border:1px solid #79bdff40}
body[data-nextest-role="distributor"] #roleContent #distOnePage #distributorLocationPanel{min-height:125px;scroll-margin-top:85px}

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,select,textarea){min-height:42px!important;color-scheme:dark}
@media(max-width:1250px){body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:820px){body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{grid-template-columns:1fr!important}}
@media(max-width:470px){body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{padding:9px!important}}



/* Distributor reference-aligned layout — placed in the distributor's existing stylesheet. */

body[data-nextest-role="distributor"] #roleContent #distOnePage {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;column-gap:14px;row-gap:13px;
  background:linear-gradient(155deg,#05122f 0%,#081b48 58%,#07132e 100%)!important;
  border:1px solid #268eff4b;border-radius:24px;position:relative;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage > * {min-width:0;grid-column:1/-1;}
body[data-nextest-role="distributor"] #roleContent #distOnePage > #distRouteCustodyCollections,
body[data-nextest-role="distributor"] #roleContent #distOnePage > #distRouteCustodyAcknowledgement,
body[data-nextest-role="distributor"] #roleContent #distOnePage > #distributorLocationPanel {grid-column:auto;min-width:0;}
body[data-nextest-role="distributor"] #roleContent #distOnePage > #distRouteCustodyCollections:last-child,
body[data-nextest-role="distributor"] #roleContent #distOnePage > #distributorLocationPanel:last-child:not(:nth-child(even)) {grid-column:auto;}










body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview{border:1px solid #139bffb5!important;box-shadow:inset 0 0 0 1px #0d5bbd57,0 15px 34px #0007,0 0 23px #1573ff26!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{background:linear-gradient(180deg,#0864c67a,#08356924)!important;min-height:64px}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview .dist-tools{border-color:#00bfff6e!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel){border:1px solid #169cffa1!important;box-shadow:0 12px 25px #0006,0 0 20px #177cff24!important;overflow:hidden;border-radius:19px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel) :is(table,.table-wrap){max-width:100%;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel) table{font-size:clamp(11px,.85vw,14px)}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card {border-color:#298bffae!important;background:linear-gradient(140deg,#103973,#092552)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card button {background:linear-gradient(105deg,#075ff7,#159bfa)!important;border:1px solid #5ccaff!important;box-shadow:inset 0 1px 0 #fff3!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section {scroll-margin-top:18px;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,[role="button"]):focus-visible{outline:3px solid #6be4ff!important;outline-offset:3px}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more {grid-column:1/-1;display:flex;justify-content:center;width:100%;min-height:44px;border-radius:12px;border:1px solid #31bfff;background:linear-gradient(110deg,#0369d0,#0651a4);color:white;font-weight:800;cursor:pointer;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more[hidden]{display:none!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-hidden{display:none!important}
@media(max-width:900px){body[data-nextest-role="distributor"] #roleContent #distOnePage{grid-template-columns:minmax(0,1fr)}body[data-nextest-role="distributor"] #roleContent #distOnePage > :is(#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel){grid-column:1/-1}}
@media(max-width:580px){}/* Hero content alignment: right-hand title must never overlay the truck. */








@media(max-width:680px){}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{margin:12px 15px 0;padding:14px 16px 9px;background:linear-gradient(115deg,#0f3871,#123f83 45%,#07265a);border:1px solid #288dff98;border-radius:15px;min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;position:relative}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol::before{content:'';position:absolute;top:18px;left:10%;right:10%;height:3px;background:linear-gradient(90deg,#2de0a9,#1faef9,#5078cb);opacity:.85}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-step{position:relative;display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0;color:#eaf8ff;font-size:12px;font-weight:800;text-align:center}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{height:38px;width:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#0a5cad,#0a2f73);border:2px solid #5cbfff;box-shadow:0 0 14px #1aafff4f;font-size:16px;color:#fff;z-index:1}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-step:last-child .nx-dist-timeline-dot{background:linear-gradient(120deg,#ff9700,#d66c00);border-color:#ffbd4c}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline small{display:block;text-align:center;color:#b5d5ef;margin-top:11px;font-size:12px;line-height:1.6}
@media(max-width:470px){body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{margin:9px 7px 0;padding:11px 6px 8px}body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{height:30px;width:30px;font-size:13px}body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol::before{top:14px}body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-step{font-size:9px}}/* Original high-resolution artwork, never cropped or upscaled from a screenshot. */








@media(max-width:580px){


}


/* Distributor-native UI controls — fully rendered in CSS/DOM, never sampled from a reference screenshot. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --nx-field-ink:#f0f9ff;--nx-field-muted:#bbd5ed;--nx-field-edge:#4ba9ea77;
 --nx-action-a:#147df9;--nx-action-b:#1764db;
}

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-actions,.dist-tools,.dist-route-finish-row,.dist-cash-v2,.dist-location-surface) button:not([disabled]),
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more{
 border:1px solid #75d8ff99!important;border-radius:12px!important;
 background:linear-gradient(125deg,var(--nx-action-a),var(--nx-action-b))!important;
 color:#fff!important;font-weight:800!important;box-shadow:inset 0 1px #ffffff47,0 5px 14px #001b4a66!important;
 min-height:42px;padding:9px 15px;line-height:1.35;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-actions,.dist-tools,.dist-route-finish-row,.dist-cash-v2,.dist-location-surface) button:not([disabled]):hover,
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more:hover{
 filter:brightness(1.13);transform:translateY(-1px);box-shadow:inset 0 1px #ffffff66,0 8px 17px #0022598c!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage button:disabled{opacity:.54!important;cursor:not-allowed!important;filter:saturate(.64)}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 box-sizing:border-box;max-width:100%;min-width:0;min-height:43px;
 border:1px solid var(--nx-field-edge)!important;border-radius:12px!important;
 background:linear-gradient(160deg,#123c70,#0b2850)!important;
 color:var(--nx-field-ink)!important;padding:10px 12px!important;
 font-family:inherit;font-size:14px;line-height:1.45;
 box-shadow:inset 0 1px 2px #03173075!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,textarea)::placeholder{color:#abc9e1!important;opacity:1}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,textarea,select,button,[role="button"]):focus-visible{
 outline:3px solid #8ceaff!important;outline-offset:2px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(label,.field-label){color:#d6ecff;font-weight:750}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input[type="checkbox"],input[type="radio"]){accent-color:#18c8ec;width:17px;height:17px;vertical-align:middle}
body[data-nextest-role="distributor"] #roleContent #distOnePage select option{background:#0a2750;color:#f0f9ff}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.table){border-collapse:separate;border-spacing:0;width:100%;max-width:100%;font-variant-numeric:tabular-nums}
body[data-nextest-role="distributor"] #roleContent #distOnePage table th{
 position:relative;text-align:start;background:linear-gradient(120deg,#154b83,#103568)!important;
 color:#eaf8ff!important;border-bottom:1px solid #64b5fa88!important;padding:11px 12px!important;font-weight:800;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage table td{
 color:#e3f1fe!important;border-bottom:1px solid #80bfff2a!important;padding:10px 12px!important;vertical-align:middle;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage table tbody tr:hover td{background:#2078c21b!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.table-wrap,.table-responsive,[class*="table-container"]){max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3675b2 #0b2a52}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{min-width:0;overflow:hidden;display:flex;flex-direction:column}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions{margin-top:auto;display:flex;flex-wrap:wrap;align-items:stretch}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions button{min-width:0!important;flex:1 1 118px!important;overflow-wrap:anywhere}




/* Light appearance retains independently generated components with readable foregrounds. */

html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --nx-field-ink:#163154;--nx-field-muted:#4b6580;--nx-field-edge:#8bb5d6;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 background:#f5faff!important;color:#163154!important;border-color:#7aa9d0!important;box-shadow:inset 0 1px 2px #1e45701c!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,textarea)::placeholder{color:#526d88!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage select option{background:#fff;color:#163154}
@media(max-width:680px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions button{flex-basis:calc(50% - 6px)!important;min-height:44px}
 body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,select,textarea){font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn,[role="button"]){transition:none!important}}


/* Distributor clarity pass — operational information first, accessible controls, no screenshots used for UI. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{min-width:0;flex-wrap:wrap;row-gap:9px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head > div{min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-name{min-width:0;word-break:normal;overflow-wrap:anywhere}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card:focus-within{outline:2px solid #75eaff;outline-offset:2px;z-index:1}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions button:focus-visible{outline:3px solid #b2f5ff!important;outline-offset:2px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more{margin:0 16px 15px!important;width:calc(100% - 32px)!important;justify-content:center;align-items:center;letter-spacing:0!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview{overflow:hidden}
@media(max-width:580px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{padding:13px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions{gap:7px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions button{flex-basis:100%!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more{margin-inline:9px!important;width:calc(100% - 18px)!important}
}


/* Operational composition: genuine route controls beside the stage line, not a static screenshot. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{
 display:grid;grid-template-columns:minmax(0,1.18fr) minmax(310px,.82fr);gap:12px;
 padding:13px 15px 0;align-items:stretch;min-width:0;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .nx-dist-timeline{
 margin:0!important;display:flex;flex-direction:column;justify-content:center;min-height:142px;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .dist-tools{
 margin:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:space-between!important;padding:15px!important;min-height:142px;gap:12px;
 background:linear-gradient(145deg,#164480,#092959 75%)!important;border:1px solid #56a5f668!important;
 box-shadow:inset 0 1px #ffffff16,0 10px 24px #03163b5c!important;border-radius:15px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-tool-copy{
 flex:0 1 auto!important;text-align:start;min-width:0;gap:5px;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-tool-copy b{font-size:15px;color:#f5faff}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-tool-copy span{color:#c6e0f4;line-height:1.5}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-tool-actions{
 display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start!important;gap:7px;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-tool-actions button{
 flex:1 1 130px;min-height:38px!important;padding:7px 10px!important;font-size:12px;white-space:normal;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-route-finish-note{
 flex-basis:100%;margin:1px 0 0!important;color:#fce5b4!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview > .dist-alert,
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview > .dist-complete-banner{
 border-inline-start:4px solid #ffca65!important;
}
@media(max-width:1060px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .dist-tools{min-height:0}
}
@media(max-width:580px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{padding:9px 8px 0;gap:8px}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .nx-dist-timeline{min-height:120px}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .dist-tools{padding:12px!important}
}/* Distributor reference-alignment refinement — 2026-11-21: operational density, original artwork, clear controls. *//* The high-resolution original artwork is used directly. CSS changes framing, never source pixels. */

















/* Match the reference's compact stop details without hiding genuine data or actions. */

body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{
 padding:10px 14px 12px!important;gap:10px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{
 min-height:122px!important;gap:0!important;
 background:linear-gradient(145deg,#123c77,#082555 88%)!important;
 border:1px solid #238dffb0!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-top{padding:10px 12px!important;gap:9px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-number{
 width:29px!important;height:29px!important;border-radius:50%!important;flex:none!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions{padding:6px 10px 10px!important;gap:7px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-actions button{min-height:36px!important;padding:6px 10px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail:not(.hidden){
 border-top:1px solid #69bafa44;margin-top:6px;max-height:min(58vh,460px);overflow-y:auto;
 scrollbar-color:#5caaf1 #092552;scrollbar-width:thin;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{min-height:132px!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{box-shadow:0 0 10px #23b9fb7b,inset 0 1px #ffffff45}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .dist-tools{min-height:132px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid .dist-tool-actions button{
 min-height:39px!important;font-weight:800!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #distRouteSection > .dist-route-finish-row{
 margin:12px 14px!important;padding:14px!important;border-radius:16px!important;
 display:flex!important;align-items:center;flex-wrap:wrap;gap:10px;
 border:1px solid #23c99783!important;background:linear-gradient(125deg,#0b564f,#0b3563)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-copy{flex:1 1 250px;min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-note{flex-basis:100%;margin:0;color:#ffe4aa!important}

/* An informative empty state is never manufactured. Real custody/location data remain rendered by runtime. */

body[data-nextest-role="distributor"] #roleContent #distOnePage > :is(#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel){min-height:0!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage > :is(#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel) .dist-section-head{min-height:57px!important;padding:12px 17px!important}
@media(max-width:1060px){
 
 
 
}
@media(max-width:580px){
 
 
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{padding:8px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{min-height:116px!important}
}/* Restore artwork pseudo-element against the older content:none!important rule. */






/* 2026-11-21: Operational reference alignment: real last stop, closure actions, invoice overview and live location. */

body[data-nextest-role="distributor"] #roleContent #distOnePage > .nx-dist-focus-grid,
body[data-nextest-role="distributor"] #roleContent #distOnePage > .nx-dist-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;grid-column:1/-1;align-items:stretch}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-stop,
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices,
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid > .dist-route-finish-row{margin:0!important;border:1px solid #158fff!important;border-radius:18px!important;min-width:0;overflow:hidden;background:linear-gradient(145deg,#0d3b7b,#082450 90%)!important;box-shadow:0 10px 24px #00102e8c,inset 0 1px #ffffff28!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid > .dist-route-finish-row{padding:14px!important;display:flex!important;gap:10px;align-content:center;align-items:center}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:1px solid #4eafff46;background:linear-gradient(180deg,#0679e472,#0754af16)}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head h2{font-size:18px;line-height:1.3;margin:0;color:#f4fbff;font-weight:800}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-icon{font-size:22px;color:#3bd7ff}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body{padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-name{font-size:clamp(19px,2vw,27px);font-weight:800;color:#f4fbff;overflow-wrap:anywhere}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-meta{color:#c1ddf7;font-size:13px;overflow-wrap:anywhere}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status{color:#60f2bd;border-radius:20px;background:#065d5066;border:1px solid #2cd69a66;padding:4px 12px;font-weight:800}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-actions{width:100%;display:flex;justify-content:flex-start}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-jump{background:linear-gradient(120deg,#166cf7,#04a4ea)!important;border:1px solid #54d7ff!important;color:#fff!important;min-height:40px;border-radius:11px;padding:7px 15px;font-weight:800;cursor:pointer}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-scroller{max-width:100%;overflow-x:auto;scrollbar-width:thin}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:330px;color:#eaf5ff}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table th{background:#0861b57a!important;text-align:right;padding:10px;font-size:13px;border-bottom:1px solid #76adff51!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table td{padding:10px 9px!important;font-size:12px;border-bottom:1px solid #75b3ff25!important;overflow-wrap:anywhere}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tr:nth-child(even){background:#0e39717a}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-table-link{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#b9e9ff!important;cursor:pointer;text-align:right;font:inherit;font-weight:800!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status{color:#65efb9!important;font-weight:800}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-more{display:block;margin:10px auto!important;min-height:36px;border:1px solid #3dd2ff!important;border-radius:10px!important;background:#0869c9!important;color:#fff!important;padding:6px 22px;cursor:pointer;font-weight:800}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-more[hidden]{display:none!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-bottom-grid > #distributorLocationPanel{grid-column:auto!important;min-height:160px}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-jump,.nx-dist-table-link,.nx-dist-invoice-more):focus-visible{outline:3px solid #65edff!important;outline-offset:3px!important}
@media(max-width:850px){body[data-nextest-role="distributor"] #roleContent #distOnePage > :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){grid-template-columns:minmax(0,1fr)}}

/* If server does not provide close-route actions, use real custody content; no empty column. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid:has(> :only-child){grid-template-columns:minmax(0,1fr)}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid > #distRouteCustodyCollections{grid-column:auto!important;margin:0!important;min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid > #distRouteCustodyCollections .dist-section-head{padding:13px 16px!important}


/* Distributor reference fidelity pass: Cairo typography, luminance and legible hierarchy.
   All rules are restricted to the distributor workspace.  The reference image is NOT an asset. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
  --dist-ink:#ffffff;--dist-secondary:#d9edff;--dist-stroke:#1c9fff;
  font-family:"Cairo", "Segoe UI", Tahoma, sans-serif!important;
  color:var(--dist-ink)!important;font-size:14px!important;
  background:linear-gradient(150deg,#0b3275 0%,#092b68 46%,#0b367e 100%)!important;
  border:1px solid #208afc66;border-radius:20px;
  box-shadow:inset 0 1px 0 #74c9ff24!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(h1,h2,h3,b,strong,button,input,select,textarea,table,th,td){font-family:inherit!important;letter-spacing:0!important}











body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-route-overview,.dist-section,.nx-dist-last-stop,.nx-dist-invoices-section,#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement){
  background:linear-gradient(155deg,#0950aa 0%,#073e8c 30%,#083277 75%,#092e6a 100%)!important;
  border:1px solid #259eff!important;border-radius:16px!important;
  box-shadow:inset 0 1px #8ad8ff45,0 9px 24px #001e5485,0 0 14px #096eff2a!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{
  background:linear-gradient(180deg,#0875dd8c,#0861c42b)!important;
  border-bottom:1px solid #61b4ff79!important;padding:12px 17px!important;min-height:52px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head h2,.nx-dist-focus-grid h2,.nx-dist-bottom-grid h2){
  color:#fff!important;font-size:clamp(17px,1.45vw,21px)!important;line-height:1.5!important;font-weight:800!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-name,.nx-dist-last-name){font-size:clamp(15px,1.2vw,18px)!important;font-weight:800!important;color:white!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-meta,.dist-tool-copy span,.dist-route-finish-copy span,.nx-dist-timeline small){font-size:12px!important;line-height:1.7!important;color:var(--dist-secondary)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{
  background:linear-gradient(130deg,#1459b5,#0d428f 70%,#0b367a)!important;
  border-color:#49aaf9!important;box-shadow:inset 0 1px #a4d9ff33!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid > .dist-tools{
  background:linear-gradient(145deg,#125cb4,#0a418e 70%,#0a3475)!important;
  border-color:#4daffe!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{
  background:linear-gradient(145deg,#1358ac,#0a428b 84%)!important;border-color:#46a9ff!important;
  box-shadow:inset 0 1px #a0d6ff25,0 7px 15px #00205255!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table th,.nx-dist-invoices-table td){font-size:clamp(12px,.96vw,14px)!important;font-weight:600!important;color:#f7fcff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table th{font-weight:800!important;background:#1372ce!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tr:nth-child(even){background:#1257a2bb!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tr:nth-child(odd){background:#0d488fc2!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid) > *{min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn,[role="button"]){font-weight:700!important;font-size:clamp(12px,.94vw,15px)!important;line-height:1.55!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn,[role="button"]):focus-visible{outline:3px solid #c8f8ff!important;outline-offset:2px!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage{background:linear-gradient(145deg,#e9f5ff,#d6ebff)!important;color:#163f75!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.dist-route-overview,.nx-dist-last-stop,.nx-dist-invoices-section,#distributorLocationPanel,#distRouteCustodyCollections){color:#fff!important}
@media(max-width:580px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage{padding:7px!important;border-radius:12px!important}
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head h2{font-size:17px!important}
 
}


/* Sidebar and command bar share the distributor's brighter blue; no cross-role selectors. */

body[data-nextest-role="distributor"] #sideDrawer{
 background:radial-gradient(circle at 80% 70%,#147bea55,transparent 43%),linear-gradient(155deg,#0b438c,#0a3072 62%,#103a83)!important;
 border-inline-start:1px solid #4caefeaa!important;color:#f6fcff!important;
 box-shadow:-7px 0 25px #031d5180,inset 1px 0 #84d5ff22!important;
}
body[data-nextest-role="distributor"] #mgrCommandBar{
 background:linear-gradient(110deg,#0b3980,#0c4da0 56%,#0a3276)!important;
 border-bottom:1px solid #4cadff9c!important;color:#fff!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{
 color:#e6f4ff!important;font-family:"Cairo","Segoe UI",Tahoma,sans-serif!important;font-size:14px!important;font-weight:700!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{
 background:linear-gradient(110deg,#05bffd,#1665f5)!important;border-color:#7be4ff!important;color:#fff!important;
}


/* The application canvas must not retain the old charcoal/navy theme for this role. */

body[data-nextest-role="distributor"]{
 background:radial-gradient(ellipse 60% 40% at 85% 14%,rgba(50,147,255,.2),transparent 80%),
 linear-gradient(135deg,#0b377e,#0b4b99 52%,#0b347b)!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"]{background:linear-gradient(135deg,#eaf6ff,#daedff)!important}

/* NX Distributor full-surface reference alignment — 2026-11-21 */


/* Unified distributor-only palette: all functional surfaces, not just dashboard hero. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
  --nx-dist-canvas:#0c448f;--nx-dist-panel-a:#1260b4;--nx-dist-panel-b:#0c438d;
  --nx-dist-panel-deep:#0a3478;--nx-dist-border:rgba(103,218,255,.65);
  --nx-dist-text:#f9fdff;--nx-dist-muted:#d2e9ff;--nx-dist-glow:rgba(35,175,255,.17);
  color:var(--nx-dist-text)!important;
  background:radial-gradient(ellipse 80% 40% at 93% 4%,rgba(37,147,255,.37),transparent 74%),
    radial-gradient(ellipse 63% 48% at 0% 90%,rgba(57,107,240,.23),transparent 80%),
    linear-gradient(150deg,#104d9f 0%,#0c408c 50%,#0b3d8c 100%)!important;
  border-color:rgba(77,180,255,.52)!important;
}

/* Section surfaces, route panels, final-stop, invoice, custody, location and auxiliary summaries. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section,.dist-route-overview,.nx-dist-last-stop,.nx-dist-invoices,
 #distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel,
 .dist-cash-v2,.dist-location-surface,.nx-dist-timeline,
 .nx-dist-ops-grid>.dist-tools,.dist-activity-list,.dist-loading
){
  color:var(--nx-dist-text)!important;
  border-color:var(--nx-dist-border)!important;
  background:radial-gradient(circle at 15% 0%,rgba(31,165,255,.19),transparent 52%),
    linear-gradient(147deg,var(--nx-dist-panel-a),var(--nx-dist-panel-b) 73%,var(--nx-dist-panel-deep))!important;
  box-shadow:0 11px 29px rgba(3,28,78,.24),inset 0 1px rgba(190,236,255,.18),0 0 0 1px rgba(10,165,255,.075)!important;
}

/* The operational left/right layout is still owned by the existing DOM and JS. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section-head,.nx-dist-feature-head,
 #distRouteCustodyCollections .dist-section-head,#distributorLocationPanel .dist-section-head
){
 background:linear-gradient(110deg,rgba(19,137,245,.77),rgba(11,86,183,.38))!important;
 border-bottom:1px solid rgba(115,209,255,.52)!important;
 color:#fff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section-head h2,.nx-dist-feature-head h2,.dist-tool-copy b,.dist-route-finish-copy b,
 .nx-dist-last-name,.dist-stop-name,.dist-complete-banner strong
){color:#fff!important;text-shadow:0 1px 8px rgba(3,33,92,.22)}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section-head p,.dist-tool-copy span,.dist-stop-meta,.dist-route-meta,
 .nx-dist-last-meta,.nx-dist-timeline small,.dist-activity-row .meta,
 .dist-progress-label,.dist-complete-metrics,.dist-empty-route,.dist-route-finish-copy span
){color:var(--nx-dist-muted)!important}

/* Cards and collection rows receive the same upgraded surface treatment. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-stop-card,.dist-tools,.dist-alert,.dist-complete-banner,
 .dist-cash-card,.dist-cash-v2 :is(.card,.panel),
 .dist-location-surface :is(.card,.panel),.nx-dist-last-body,
 .dist-activity-row,.dist-empty-route
){
 border-color:rgba(105,197,255,.49)!important;
 background:linear-gradient(130deg,rgba(25,107,202,.82),rgba(12,68,150,.84))!important;
 color:#f5fbff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{
 box-shadow:0 7px 17px rgba(1,23,67,.18),inset 0 1px rgba(190,240,255,.19)!important;
}

/* Safety colors must still distinguish warnings from ordinary panels. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-alert,.dist-route-finish-note,.dist-route-finish-row
){background:linear-gradient(120deg,#145a9f,#125384)!important;border-color:rgba(255,199,93,.7)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-complete-banner{
 background:linear-gradient(115deg,#086c77,#126c89)!important;border-color:rgba(100,239,187,.75)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-end-btn:not(:disabled){
 background:linear-gradient(110deg,#bb424e,#8e3556)!important;border-color:#ff9cac!important;color:white!important;
}

/* Tables and records: no dark untouched islands, readable header/stripes. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table){
 color:#f7fcff!important;background:transparent!important;border-color:rgba(99,190,255,.35)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) thead,
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) th{
 background:rgba(21,129,224,.73)!important;color:#fff!important;border-color:rgba(125,218,255,.52)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:nth-child(odd){background:rgba(21,108,199,.46)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:nth-child(even){background:rgba(18,83,166,.68)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) td{color:#eef9ff!important;border-color:rgba(120,192,255,.28)!important}

/* Compact true controls retain native click handlers and form semantics. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 background:linear-gradient(150deg,#185ea8,#0e4389)!important;
 color:#fff!important;border-color:#65c2ff!important;box-shadow:inset 0 1px rgba(208,243,255,.13)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,textarea)::placeholder{color:#c6e3fa!important;opacity:.9}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn,[role="button"]):not(:disabled){
 border-color:rgba(125,220,255,.85)!important;color:#fff!important;
}

/* Intentional warning button styling is protected from generic action gradients. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-end-btn:not(:disabled){background:linear-gradient(110deg,#b74257,#8c2d50)!important}

/* Sidebar, toolbar and role workspace match the new blue family. */

body[data-nextest-role="distributor"] #sideDrawer{
 background:radial-gradient(circle at 80% 13%,rgba(36,169,255,.30),transparent 57%),
  linear-gradient(156deg,#1159ab,#0b418f 55%,#0d3d87)!important;
 border-color:rgba(98,213,255,.64)!important;
}
body[data-nextest-role="distributor"] #mgrCommandBar,
body[data-nextest-role="distributor"] #companyBar{
 background:linear-gradient(113deg,#135db2,#116cc4 57%,#104d9c)!important;
 border-color:rgba(103,212,255,.59)!important;color:#f8fdff!important;
}

/* Consistent light-mode surfaces: fully readable dark ink, no white-on-white. */

html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --nx-dist-text:#17426f;--nx-dist-muted:#365f89;
 background:linear-gradient(142deg,#eaf6ff,#d9ebff)!important;color:#17426f!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section,.dist-route-overview,.nx-dist-last-stop,.nx-dist-invoices,
 #distRouteCustodyCollections,#distRouteCustodyAcknowledgement,#distributorLocationPanel,
 .dist-cash-v2,.dist-location-surface,.nx-dist-timeline,.nx-dist-ops-grid>.dist-tools
){
 background:linear-gradient(135deg,#f7fbff,#e7f3ff)!important;
 color:#194b83!important;border-color:#83b9eb!important;
 box-shadow:0 9px 22px rgba(17,91,165,.11),inset 0 1px #fff!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-stop-card,.dist-tools,.dist-alert,.dist-complete-banner,.dist-activity-row,.dist-empty-route
){background:linear-gradient(140deg,#e7f3ff,#dcecff)!important;color:#194b83!important;border-color:#9ccaf3!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section-head,.nx-dist-feature-head
){background:linear-gradient(105deg,#d4edff,#e9f5ff)!important;border-color:#a9d4f5!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section-head h2,.nx-dist-feature-head h2,.dist-tool-copy b,
 .dist-stop-name,.nx-dist-last-name,.dist-route-finish-copy b
){color:#10447c!important;text-shadow:none!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section-head p,.dist-tool-copy span,.dist-stop-meta,.dist-route-meta,
 .nx-dist-last-meta,.nx-dist-timeline small,.dist-progress-label
){color:#356389!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table){color:#124677!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) th{background:#d5eaff!important;color:#124b82!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:nth-child(odd){background:#eff8ff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:nth-child(even){background:#e2f2ff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) td{color:#174f81!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 background:#f9fcff!important;color:#174777!important;border-color:#91bfea!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,textarea)::placeholder{color:#688ba9!important}
@media(max-width:620px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-section,.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel
 ){border-radius:15px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{padding:12px 13px!important}
}

/* Light-theme finishing pass for dynamically inserted distributor summaries. */

html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .nx-dist-last-body,.nx-dist-invoices-table,.nx-dist-focus-grid>.dist-route-finish-row
){background:linear-gradient(140deg,#f6fbff,#e5f2ff)!important;color:#174777!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .nx-dist-last-body *, .nx-dist-invoices-table td,.nx-dist-invoices-table td *,
 .nx-dist-invoices-table tbody tr,.nx-dist-invoice-status,.nx-dist-last-status,
 .nx-dist-last-meta,.nx-dist-last-name,.dist-stop-status,.dist-stop-card span,
 .dist-stop-card b,.dist-stop-card strong
){color:#174b80!important;text-shadow:none!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(button,.nx-dist-table-link){color:#0754b3!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(
 .dist-stop-card button,.nx-dist-jump,.nx-dist-invoice-more
){color:#fff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-alert{
 background:linear-gradient(115deg,#fff6dc,#fbeacb)!important;border-color:#ecb65b!important;color:#744111!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-alert :is(b,span){color:#744111!important}


/* DISTRIBUTOR REFERENCE FIDELITY — COMPACT OPERATIONS v2 */


/* Original DOM, handlers, data and permissions remain untouched. Reference is never embedded. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
  --dist-ref-text:#f7fcff; --dist-ref-muted:#d9efff; --dist-ref-border:#36b8ff;
  gap:11px!important; padding:12px!important;
  background:radial-gradient(ellipse at 90% 0%,#177edb44,transparent 46%),linear-gradient(155deg,#0e58a5,#0b438b 54%,#09417f)!important;
  font-family:"Cairo",Tahoma,"Segoe UI",sans-serif!important;
}/* Main hero: cinematic delivery art, balanced with genuinely selectable text/UI. */







/* Reference has four compact, lively status tiles instead of heavy plain blocks. */












/* Route flow: visual overview + genuine command controls, no invented confirmations. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview{border-radius:16px!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview>.dist-section-head{min-height:49px!important;padding:7px 14px!important;background:linear-gradient(110deg,#0a8df3aa,#0954b7ad)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{gap:10px!important;padding:11px 12px 4px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid>.nx-dist-timeline{
 min-height:126px!important;background:linear-gradient(115deg,#1a6ec0,#10529c)!important;border:1px solid #54bcff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid>.dist-tools{
 min-height:126px!important;background:linear-gradient(112deg,#136fbb,#0c549b)!important;border:1px solid #51baff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{box-shadow:0 0 0 3px #69baff20,0 0 12px #4ec5ff53!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions{gap:5px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button{min-height:40px!important;padding:5px 8px!important;font-weight:800!important}

/* Three visible stops are genuine native actions, compact for efficient scanning. */

body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{gap:8px!important;padding:8px 12px 7px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{
 min-height:80px!important;padding:10px 12px!important;border-radius:12px!important;
 background:linear-gradient(125deg,#1369b9,#10539c)!important;border:1px solid #69bdff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid .dist-stop-name{font-size:clamp(14px,1.04vw,17px)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid .dist-stop-actions button{min-height:40px!important;padding-block:4px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-stops-more{min-height:32px!important;margin-bottom:8px!important;font-weight:800!important}

/* Match reference panel hierarchy in the bottom pair, remove visual blank wells. */

body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid,
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid{gap:11px!important;align-items:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections,.dist-route-finish-row){
 border-radius:15px!important;border-color:#4ab9ff!important;box-shadow:inset 0 1px #a5e8ff45,0 6px 17px #00225261!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-feature-head,.dist-section-head){
 padding:8px 13px!important;min-height:44px!important;background:linear-gradient(105deg,#168decaa,#1267c9b2)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-feature-head h2,.dist-section-head h2){font-size:clamp(16px,1.35vw,20px)!important;font-weight:800!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body{padding:13px!important;gap:6px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-name{font-size:clamp(18px,1.55vw,24px)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){padding:7px 9px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-bottom-grid>#distributorLocationPanel{min-height:0!important}

/* Preserve high-contrast warning status and all actual disabled states. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn):disabled{cursor:not-allowed!important;opacity:.56!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview .nx-dist-ops-grid>.dist-tools,
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview .nx-dist-ops-grid>.nx-dist-timeline{
 background:linear-gradient(118deg,#e3f3ff,#c8eaff)!important;border-color:#69b8f6!important;color:#154475!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tool-copy b,.nx-dist-timeline-step span,.nx-dist-timeline small){color:#174c7c!important;text-shadow:none!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{background:linear-gradient(120deg,#e5f4ff,#cbe8ff)!important;color:#124577!important}
@media(max-width:850px){body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid,body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:580px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage{padding:7px!important;gap:8px!important}
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{padding:8px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{min-height:77px!important}
}

/* Operational split: avoid a third item leaving an entire empty grid cell. */

body[data-nextest-role="distributor"] #roleContent #distOnePage > .nx-dist-focus-grid > #distRouteCustodyCollections:nth-child(n+3){grid-column:1/-1!important}

/* Use original high-resolution authored illustration; avoid the tiny inset truck. */

@media(min-width:900px){}



/* DISTRIBUTOR MODAL SYSTEM — replaces removed legacy inline #distributorDetailOverlay styling.
   Scope outside the role workspace intentionally because dialogs mount under body. */

body[data-nextest-role="distributor"] #distributorDetailOverlay {
 color:#effaff!important;direction:inherit;
 background:rgba(2,26,75,.63)!important;
 backdrop-filter:blur(8px);
}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog{
 --theme-text:#f7fcff;--theme-muted:#cae8ff;--theme-border:rgba(113,216,255,.63);
 --detail-bg:#1259a7;
 color-scheme:dark;
 color:#f7fcff!important;
 background:linear-gradient(145deg,#1871c7,#0f4d9c 70%,#114988)!important;
 border:1px solid #62c6ff!important;
 box-shadow:0 24px 85px rgba(0,18,62,.46),inset 0 1px rgba(213,245,255,.25)!important;
 border-radius:19px!important;
 overflow:hidden;
 max-height:min(88dvh,950px)!important;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;
 padding:12px 16px!important;
 background:linear-gradient(115deg,#208df0,#1768c7)!important;
 border-bottom:1px solid rgba(146,229,255,.45)!important;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header nav{display:flex;flex-wrap:wrap;gap:7px}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header button{
 width:auto!important;min-height:37px!important;margin:0!important;padding:7px 13px!important;
 color:#fff!important;background:linear-gradient(120deg,#257bc9,#165aab)!important;
 border:1px solid #85d5ff!important;border-radius:10px!important;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header button:disabled{opacity:.55!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-report{
 min-height:0;max-height:calc(88dvh - 95px);overflow:auto;overscroll-behavior:contain;
 scrollbar-gutter:stable;padding:13px 16px 18px!important;
 background:linear-gradient(145deg,#1762b4,#104c98)!important;color:#f7fcff!important;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(.wh-detail-trail,.wh-detail-note){color:#cae8ff!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(h2,h3,strong,td,th){color:#fff!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(.wh-detail-field,th){
 background:rgba(51,143,232,.45)!important;border-color:rgba(137,221,255,.5)!important;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay tr:hover td{background:rgba(51,153,255,.25)!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(button,[tabindex]):focus-visible{outline:2px solid #b6faff!important;outline-offset:2px}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog{
 color-scheme:light;color:#174777!important;background:linear-gradient(140deg,#f7fbff,#ddecff)!important;border-color:#8dc8f7!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header{background:linear-gradient(120deg,#d8efff,#bcddff)!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-report{background:linear-gradient(130deg,#f8fcff,#e7f3ff)!important;color:#174777!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(h2,h3,strong,td,th){color:#174777!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(.wh-detail-field,th){background:#daeeff!important;border-color:#a5d4f8!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay :is(.wh-detail-trail,.wh-detail-note){color:#3c6791!important}
@media (max-width:620px){body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog{max-height:94dvh!important;max-width:100%!important}body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-report{max-height:calc(94dvh - 110px)}}
@media print{body[data-nextest-role="distributor"] #distributorDetailOverlay :is(.wh-detail-dialog,.wh-detail-report,td,th){background:#fff!important;color:#172b45!important}}



/* Typography/accessibility calibration: all selectors scoped to the distributor. */

body[data-nextest-role="distributor"] #roleContent #distOnePage {
 --dist-label: #dcefff; --dist-muted: #c5e5fc; --dist-ink: #f8fcff;
 font-family: "Cairo", Tahoma, "Segoe UI", sans-serif!important;
 font-size: 14px; line-height: 1.6; font-synthesis: none;
 text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,input,select,textarea,table) {font-family:inherit!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-meta,.dist-section-head p,.dist-tool-copy span,.nx-dist-invoices-table td,.nx-dist-invoices-table th) {
 font-size:max(12px, .875rem)!important;line-height:1.6!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tool-actions button,.dist-stop-actions button,.nx-dist-stops-more) {
 min-height:40px!important;line-height:1.45!important;font-weight:700!important;letter-spacing:0;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,input,select,textarea):focus-visible {
 outline:3px solid #a6ebff!important;outline-offset:2px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-name,.nx-dist-last-name){line-height:1.45!important;overflow-wrap:break-word}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(button,input,select,textarea,td,th) {font-family:"Cairo",Tahoma,"Segoe UI",sans-serif!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay button{min-height:40px!important}
@media(max-width:580px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tool-actions button,.dist-stop-actions button,.nx-dist-stops-more){min-height:42px!important}
 
}

/* The light palette keeps the color-metric cards saturated but uses readable dark ink on pale operational panels. */

html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage {
 --dist-label:#174873;--dist-muted:#376589;--dist-ink:#133f68;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-card,.dist-tools,.nx-dist-invoices,.nx-dist-last-stop,.dist-location-surface){color:#143f66!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-card,.dist-tools,.nx-dist-invoices,.nx-dist-last-stop,.dist-location-surface) :is(.dist-stop-meta,.dist-tool-copy span,.nx-dist-invoices-table td){color:#285a80!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-card,.dist-tools,.nx-dist-invoices,.nx-dist-last-stop) :is(.dist-stop-name,.nx-dist-last-name,.dist-tool-copy b){color:#113e67!important}/* Keep critical status/danger meaning; no unqualified button background overrides. *//* Light theme regression fix: don't turn saturated distributor hero and KPIs into white cards. */













html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-note{color:#fff!important;background:linear-gradient(115deg,#2368b2,#174e91)!important}




/* RECOVERY PASS — reference fidelity and preserved native operations (2026-11-21)
   Scoped exclusively to distributor. Keep all business handlers and server-owned state. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --dist-glow-blue:#08bfff; --dist-glow-orange:#ff9d1e;
 --dist-glow-green:#1fe894; --dist-glow-violet:#bc48ff;
 background:radial-gradient(ellipse at 76% -6%,#155bbb78,transparent 44%),linear-gradient(180deg,#062657,#073b82 48%,#062a66)!important;
}







body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-card,.dist-section,.nx-dist-last-stop,.nx-dist-invoices,.dist-route-overview){min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.dist-route-overview,.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections){border:1px solid #15b5ff!important;box-shadow:inset 0 1px 0 #b9efff36,0 0 13px #078aff27,0 8px 23px #001b4e90!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head){background:linear-gradient(110deg,#156dcb,#07478e)!important;border-bottom:1px solid #29b8ff66!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1.3fr) minmax(270px,.75fr)!important;align-items:stretch!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid>.nx-dist-timeline{min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid>.dist-tools{min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tools,.dist-stop-actions,.dist-route-finish-row) button:not(:disabled),
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-jump,.nx-dist-invoice-more,.nx-dist-stops-more):not(:disabled){min-height:44px!important;border:1px solid #56c9ff!important;border-radius:11px!important;color:#fff!important;background:linear-gradient(180deg,#2099ff,#0756cc)!important;box-shadow:inset 0 1px 0 #fff5,0 5px 12px #001a51a0!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:first-child:not(:disabled){background:linear-gradient(180deg,#12d595,#009661)!important;border-color:#70ffcf!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row button:not(:disabled){background:linear-gradient(180deg,#ffb62e,#ea7909)!important;border-color:#ffe090!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-actions,.dist-tool-actions) button:disabled{min-height:44px!important;opacity:.58!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status,
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status{color:#d7edff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status[data-delivery-state="complete"],
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="complete"]{color:#74ffd2!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status[data-delivery-state="pending"],
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="pending"]{color:#ffce69!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status[data-delivery-state="unknown"],
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="unknown"]{color:#c7d4e4!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table td{font-variant-numeric:tabular-nums}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table th{white-space:normal}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.nx-dist-table-link):focus-visible{outline:3px solid #affaff!important;outline-offset:2px!important}
@media(max-width:900px){body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:580px){
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tool-actions,.dist-stop-actions){display:flex!important;flex-wrap:wrap!important;gap:7px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tool-actions,.dist-stop-actions) button{flex:1 1 120px;white-space:normal!important}
}/* Light palette: operational panels can become pale, but critical KPI hue remains saturated. */







html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status[data-delivery-state="complete"],.nx-dist-invoice-status[data-delivery-state="complete"]){color:#08724b!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status[data-delivery-state="pending"],.nx-dist-invoice-status[data-delivery-state="pending"]){color:#9b5100!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status[data-delivery-state="unknown"],.nx-dist-invoice-status[data-delivery-state="unknown"]){color:#475d73!important}/* Original truck is authored on the right of the source artwork. Mirror only its art layer,
   not Arabic labels, buttons, route state or the application DOM. */







@media(max-width:580px){}


/* DISTRIBUTOR RECOVERY — PASS 2 (2026-11-21)
   Reference-driven visual alignment; all business logic, live values, and handlers remain native.
   This final block is intentionally scoped to the distributor to resolve older conflicting rules. */

body[data-nextest-role="distributor"] #roleContent #distOnePage {
 --dist-p2-blue:#00c8ff;--dist-p2-orange:#ffa126;--dist-p2-green:#16e5a1;
 --dist-p2-panel:#052657;
 background:radial-gradient(ellipse at 10% 0%,rgba(5,114,218,.25),transparent 42%),linear-gradient(170deg,#061c48,#063c80 65%,#072652)!important;
}/* Previous content:none / display:none rules suppressed the illustration. Explicitly restore the
   original full-resolution artwork, mirroring artwork alone and never interactive content. */









/* Decorative sparklines must not resemble an additional operational state. */







/* Keep two balanced command panels and meaningful chronology at desktop width. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{
 grid-template-columns:minmax(0,1.3fr) minmax(285px,.8fr)!important;gap:11px!important;align-items:stretch!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.nx-dist-ops-grid>.dist-tools){
 background:linear-gradient(135deg,#12539d,#072a66)!important;border:1px solid #30aef6!important;
 box-shadow:inset 0 1px #b0edff38,0 0 12px #1487ff2c!important;border-radius:15px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button{
 flex:1 1 100px!important;min-height:44px!important;white-space:normal!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:first-child:not(:disabled){background:linear-gradient(180deg,#0bdf93,#008e64)!important;border-color:#58ffcf!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:is(:last-child):not(:disabled){background:linear-gradient(180deg,#178bff,#0754bc)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{
 border-radius:13px!important;border:1px solid #38aaff!important;
 background:linear-gradient(150deg,#1359a4,#082e6d)!important;
 box-shadow:inset 0 1px 0 #bbf4ff3b,0 6px 16px #00153266!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-actions button,.nx-dist-stops-more,.nx-dist-jump,.nx-dist-invoice-more){min-height:44px!important;border-radius:11px!important}

/* Lower operations: preserve native controls and truthful status, reduce visual empty wells. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,.nx-dist-invoices,#distRouteCustodyCollections,#distributorLocationPanel,.nx-dist-focus-grid>.dist-route-finish-row){
 background:linear-gradient(140deg,#0b3e85,#072758)!important;border:1px solid #2cadff!important;
 box-shadow:inset 0 1px #9fe7ff47,0 0 13px #048dff2e,0 8px 19px #00183c80!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row{
 border-color:#ffad42!important;background:linear-gradient(115deg,#123e73,#093365)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-feature-head,.dist-section-head){
 background:linear-gradient(105deg,#0c86ee,#0950a4)!important;border-bottom:1px solid #54c3ff77!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tr:nth-child(even){background:#1261a250!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:hover{background:#1764bb70!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-meta,.dist-stop-meta,.nx-dist-invoices-table td){line-height:1.55!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoice-status,.nx-dist-last-status)[data-delivery-state="pending"]{color:#ffcd68!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoice-status,.nx-dist-last-status)[data-delivery-state="unknown"]{color:#d4e0ed!important}

/* Side navigation follows the same glowing hierarchy, scoped to this signed-in role. */

body[data-nextest-role="distributor"] #sideDrawer{
 background:linear-gradient(185deg,#041944,#061e50 68%,#072c6a)!important;
 border-inline-start:1px solid #248fff8a!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{
 border:1px solid transparent!important;border-radius:12px!important;min-height:44px!important;
 color:#ecf6ff!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{
 color:#fff!important;background:linear-gradient(112deg,#03bdf5,#0861f0)!important;
 border-color:#7be8ff!important;box-shadow:0 0 14px #14a8ff8c,inset 0 1px #ffffff91!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:hover:not(.active){background:#0a43897a!important;border-color:#227ee5aa!important}
@media(max-width:950px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)!important}
 
}
@media(max-width:580px){
 
 
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-scroller{overflow-x:auto!important}
}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #roleContent #distOnePage *{scroll-behavior:auto!important}}


/* DISTRIBUTOR REFERENCE FIDELITY — focused round 3, 2026-11-21.
   Visual-only overrides. No business actions, source states or content are fabricated.
   All rules scoped to authenticated distributor dashboard. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --nx-dist-r3-border:#21bfff;--nx-dist-r3-text:#f4faff;
 --nx-dist-r3-panel:#06265a;
}

/* Strong reference-like typography, without compressing operational labels. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head h2,.nx-dist-feature-head h2,.nx-dist-last-heading,.nx-dist-invoice-heading){
 font-size:clamp(16px,1.5vw,21px)!important;font-weight:800!important;line-height:1.5!important;letter-spacing:0!important;
 text-shadow:0 2px 8px #001638b0;
}




/* Saturated and distinctly colored metrics with legible first- and second-line labels. */












/* Route stage and command panels need distinct surfaces and usable controls. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{
 gap:12px!important;grid-template-columns:minmax(0,1.18fr) minmax(285px,.82fr)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.nx-dist-ops-grid>.dist-tools){
 min-height:164px!important;background:linear-gradient(145deg,#1154a3 0%,#082c69 100%)!important;
 border:1px solid #39b9ff!important;box-shadow:inset 0 1px #b5eeff65,0 7px 18px #00183885!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{
 border-color:#5ad6ff!important;box-shadow:0 0 0 3px #04b7ff20,0 0 15px #11bfff65!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:not(:disabled){
 min-height:44px!important;font-weight:800!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:not(:disabled):first-child{
 background:linear-gradient(#13de9e,#039461)!important;border-color:#8affd1!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-actions button,.nx-dist-stops-more,.nx-dist-jump,.nx-dist-invoice-more):not(:disabled){
 min-height:44px!important;padding:8px 13px!important;font-weight:800!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{
 min-height:126px!important;padding:12px 13px!important;border-radius:14px!important;
 background:linear-gradient(150deg,#145aa5,#082e6b)!important;border:1px solid #37b6ff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card .dist-stop-name{
 font-size:clamp(14px,1.1vw,17px)!important;font-weight:800!important;color:#fff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-meta,.nx-dist-last-meta){color:#cce6ff!important;font-size:12px!important}

/* Explicit statuses must be read as statuses rather than an undifferentiated green panel. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status,.nx-dist-invoice-status)[data-delivery-state="complete"]{color:#56ffb6!important;font-weight:800!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status,.nx-dist-invoice-status)[data-delivery-state="pending"]{color:#ffcb61!important;font-weight:800!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status,.nx-dist-invoice-status)[data-delivery-state="unknown"]{color:#d0ddef!important;font-weight:700!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table{
 width:100%!important;border-collapse:separate!important;border-spacing:0!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){padding:10px 9px!important;vertical-align:middle!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table thead{background:#1675c8!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(even){background:#1d72bd36!important}

/* Lower control surfaces are part of the operational layout, not separate full-width blocks. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,.nx-dist-invoices,#distRouteCustodyCollections,#distributorLocationPanel,.nx-dist-focus-grid>.dist-route-finish-row){
 border:1px solid #20aaff!important;border-radius:15px!important;
 background:linear-gradient(145deg,#0a438b,#072a63)!important;
 box-shadow:inset 0 1px #b0ebff55,0 7px 20px #001b4596!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row{
 border-color:#ffb64c!important;box-shadow:inset 0 1px #ffe3b266,0 7px 17px #00183b99!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head){
 min-height:50px!important;background:linear-gradient(100deg,#1684df,#0b4d9e)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.nx-dist-table-link):focus-visible{
 outline:3px solid #a5f7ff!important;outline-offset:3px!important;
}

/* Keep the same visual hierarchy on small screens while preventing horizontal scroll. */

@media(max-width:1050px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid :is(.nx-dist-timeline,.dist-tools){min-height:130px!important}
}
@media(max-width:470px){
 
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-scroller{overflow-x:auto!important}
}

/* Round 3 regression fix: native stop actions can be direct children, not only .dist-stop-actions descendants. */

body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card button:not(:disabled){min-height:44px!important;padding-block:9px!important;border-radius:10px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card button:disabled{min-height:44px!important}/* ROUND 4 — native high-resolution UI geometry, no screenshot-derived assets. */















body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-route-overview,.nx-dist-last-stop,.nx-dist-invoices,#distRouteCustodyCollections,#distributorLocationPanel){box-shadow:inset 0 1px #a7e7ff51,0 10px 25px #00142c97,0 0 10px #007bff29!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card{position:relative!important;box-shadow:inset 0 1px #b6eaff52,0 8px 19px #001933b3!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-number{box-shadow:inset 0 1px #ffffff77,0 0 13px #00c5ff80!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-section-head{border-bottom:1px solid #66c7ff95!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:not(:disabled){min-height:44px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions #manualRouteBtn:not(:disabled){background:linear-gradient(145deg,#147cf2,#0653ca)!important;border-color:#70c8ff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions #lockRouteBtn:not(:disabled){background:linear-gradient(145deg,#315ca5,#123b80)!important;border-color:#80b3f8!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tool-actions,.dist-route-finish-row) .dist-end-btn:not(:disabled){background:linear-gradient(145deg,#ffc045,#ec7b09)!important;border-color:#ffe092!important;color:#09234a!important}
@media(max-width:850px){}
@media(max-width:470px){}

/* ROUND 5 — reference-led operational hierarchy. Native DOM + CSS only; no screenshot fragments. */

body[data-nextest-role="distributor"] #roleContent #distOnePage {
 --nx-r5-cyan:#10c9ff; --nx-r5-edge:#32baff; --nx-r5-orange:#ffac27;
}

/* Two substantial columns: native closure panel next to last stop, never a detached full-width warning. */

body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:14px!important;align-items:stretch!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:center!important;gap:13px!important;padding:16px 19px!important;
 border:1px solid #ffb844!important;border-top:3px solid #ffbb50!important;
 background:linear-gradient(135deg,#12447e 0%,#102e5c 70%,#0b2a55 100%)!important;
 box-shadow:inset 0 1px #ffe5a459,0 0 17px #ff982226,0 10px 24px #001b4090!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-copy b{
 font-size:clamp(16px,1.35vw,19px)!important;font-weight:850!important;color:#fff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-copy span{
 opacity:1!important;color:#ffe3b7!important;font-size:clamp(12px,1vw,14px)!important;line-height:1.75!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row .dist-end-btn{
 min-height:46px!important;min-width:155px!important;align-self:flex-start!important;
 background:linear-gradient(150deg,#ffc34e,#f18b0d)!important;color:#102a49!important;
 border:1px solid #ffe0a0!important;font-weight:900!important;
 box-shadow:inset 0 1px #fff2cc90,0 5px 13px #e482204d!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row .dist-end-btn:disabled{
 opacity:.65!important;box-shadow:none!important;filter:saturate(.6)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-stop{
 border-top:3px solid #25d4ff!important;
 background:linear-gradient(152deg,#11539d,#0b326a 78%)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body{
 min-height:137px!important;justify-content:center!important;gap:10px!important;padding:15px 18px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-name{
 font-size:clamp(21px,2vw,29px)!important;line-height:1.3!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status[data-delivery-state="pending"],
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="pending"]{
 background:#7b410a55!important;border-color:#f2ad40!important;color:#ffd281!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-status[data-delivery-state="unknown"],
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="unknown"]{
 background:#5e71903c!important;border-color:#9bb6da!important;color:#e3ecfa!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-jump{
 min-height:46px!important;width:100%!important;font-size:13px!important;
 background:linear-gradient(105deg,#0784ee,#06b6eb)!important;
 box-shadow:inset 0 1px #bdfaff6b,0 5px 14px #0024537c!important;
}

/* Reference's lower row is a dense two-column functional surface. */

body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid{
 grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)!important;gap:14px!important;align-items:stretch!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid>*{
 min-width:0!important;border-top:2px solid #37b7ff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){
 padding:11px 10px!important;line-height:1.5!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table th{
 font-size:13px!important;letter-spacing:0!important;background:linear-gradient(110deg,#157bd4,#0a549f)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table td{
 font-size:12px!important;font-weight:650!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-more{
 min-height:44px!important;width:calc(100% - 24px)!important;
 margin:12px!important;background:linear-gradient(130deg,#1578ed,#0751c1)!important;
 box-shadow:inset 0 1px #d5f8ff5b,0 5px 12px #00205d80!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections) :is(h2,.dist-section-head b){
 text-shadow:0 1px 4px #001c479e!important;
}

/* Gloss and ornament are made with CSS, no imported illustration or image snippets. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head{
 background:linear-gradient(105deg,#117fe1,#0952a0)!important;
 border-bottom:1px solid #74d1ff85!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{
 background:radial-gradient(circle at 33% 25%,#58cfff,#1172d7 68%,#123a81)!important;
 color:white!important;border:2px solid #70dbff!important;
 box-shadow:inset 0 1px #ddffff84,0 0 0 3px #09b9ff20,0 0 13px #18ccff6e!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-step:last-child .nx-dist-timeline-dot{
 background:radial-gradient(circle at 35% 25%,#ffde7b,#ff980f 70%,#9a4300)!important;
 border-color:#ffcb73!important;box-shadow:0 0 14px #ffaa468c!important;
}

/* The layout compacts at tablet size without clipping original actions. */

@media(max-width:850px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid,
 body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid{
  grid-template-columns:minmax(0,1fr)!important;
 }
 body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row{
  min-width:0!important;
 }
}
@media(max-width:470px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body{min-height:0!important;padding:12px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row{padding:12px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table{min-width:320px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){padding:9px 7px!important}
}


/* Keep a server-supplied close action usable even when the test fixture has no explanatory content. */

body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row:not(:has(.dist-route-finish-copy)){min-height:0!important;justify-content:center!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row:not(:has(.dist-route-finish-copy)) .dist-end-btn{align-self:center!important}


/* ROUND 6 — high-fidelity vector geometry and surface hierarchy.
   Scoped to distributor; original business elements and event handlers remain intact. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
  --dist-neon-blue:#11b6ff;--dist-neon-orange:#ff9e16;
  --dist-surface-ink:#071e4a;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot svg{
  width:21px!important;height:21px!important;display:block!important;flex:none!important;
  filter:drop-shadow(0 0 3px rgba(174,238,255,.55));
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-step:last-child .nx-dist-timeline-dot svg{
  filter:drop-shadow(0 0 4px rgba(255,214,114,.65));
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol::before{
  background:linear-gradient(90deg,#ff9e16 0%,#18e5ae 40%,#0fc9f9 75%,#6ac0ff 100%)!important;
  box-shadow:0 0 8px #20dbff80!important;
}



body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-stop,
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices,
body[data-nextest-role="distributor"] #roleContent #distOnePage #distributorLocationPanel{
  min-width:0!important;overflow:hidden!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head h2{
  font-size:clamp(16px,1.45vw,22px)!important;line-height:1.4!important;font-weight:800!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="complete"]{
  color:#54ffc0!important;background:#00795739!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="pending"]{
  color:#ffd27e!important;background:#9f550235!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status[data-delivery-state="unknown"]{
  color:#d6e1f3!important;background:#526a8a34!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:hover{
  background:#125ba770!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-actions button,
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card button{
  min-height:44px!important;line-height:1.35!important;
}
@media(max-width:470px){
  body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot svg{width:17px!important;height:17px!important}
  body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head h2{font-size:15px!important}
  body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){padding:8px 5px!important;font-size:10px!important}
}


/* Preserve native finish controls while giving the closure area a readable heading. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row .nx-dist-close-heading{
  margin:0 0 10px!important;align-self:stretch!important;text-align:start!important;
  font-size:clamp(16px,1.4vw,21px)!important;font-weight:850!important;color:#fff!important;
  padding-bottom:12px!important;border-bottom:1px solid #ffbe6163!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row{
  min-height:185px!important;justify-content:center!important;
}


/* ROUND 7 — substantial geometry pass, based on the distributor reference.
   Original DOM/actions and statuses retained. No screenshot fragments. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --r7-edge:#18baff;--r7-ink:#051b49;--r7-glass:#083575;
 max-width:1550px!important;margin-inline:auto!important;
}



/* Four visual identities remain separate; icon, value, title and sparkline are vector/CSS. */











/* Route hierarchy: wide progress map + compact original controls. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview{
 padding-bottom:13px!important;border-radius:18px!important;
 background:linear-gradient(150deg,#1055a4,#092d6a)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview>.dist-section-head{
 min-height:57px!important;padding:10px 18px!important;
 background:linear-gradient(105deg,#137bda,#07509d)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{
 grid-template-columns:minmax(0,1.34fr) minmax(280px,.76fr)!important;
 gap:15px!important;padding:13px 15px 8px!important;align-items:stretch!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{
 min-height:190px!important;border-radius:16px!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 background:radial-gradient(ellipse at 46% 20%,#1b80d64a,transparent 80%),linear-gradient(130deg,#0f458d,#0a316f)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol{padding-inline:20px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{
 width:41px!important;height:41px!important;box-shadow:0 0 17px #25ddff80,inset 0 2px #e5ffff9a!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot svg{width:23px!important;height:23px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tools{
 min-height:190px!important;border-radius:16px!important;padding:15px!important;
 display:flex!important;flex-direction:column!important;justify-content:space-between!important;
 background:linear-gradient(140deg,#155ba9,#07356f)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-copy b{font-size:18px!important;font-weight:900!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:not(:disabled){min-height:46px!important;font-weight:800!important;box-shadow:inset 0 1px #ffffff4f,0 4px 12px #001b5090!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{gap:10px!important;padding-inline:15px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{
 padding:15px 17px!important;min-height:133px!important;
 background:linear-gradient(152deg,#1357a1,#082b61)!important;
 border-color:#4abaff!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-name{font-size:clamp(14px,1.1vw,17px)!important;font-weight:850!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-status{font-size:12px!important;line-height:1.5!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){gap:14px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row{
 min-height:0!important;justify-content:flex-start!important;align-items:stretch!important;
 padding:16px 19px!important;gap:12px!important;
 background:radial-gradient(circle at 8% 20%,#ff9d1633,transparent 45%),linear-gradient(145deg,#104b90,#092f69)!important;
 border:1px solid #ffba5f!important;border-top:3px solid #ffaf26!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row:has(.nx-dist-close-heading):not(:has(.dist-route-finish-copy))::after{
 content:'تُحدد جاهزية الإغلاق وفق بيانات الجولة الفعلية';
 display:block!important;color:#ffdda5!important;font-size:12px!important;line-height:1.6!important;
 text-align:start!important;font-weight:600!important;
}
html[lang^="en"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row:has(.nx-dist-close-heading):not(:has(.dist-route-finish-copy))::after{content:'Closure availability is determined by the live route data'}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row .dist-end-btn{align-self:stretch!important;width:100%!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body{padding:16px!important;min-height:0!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-name{font-size:clamp(20px,1.8vw,27px)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-bottom-grid>*{min-height:0!important;align-self:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head{min-height:55px!important;padding:10px 16px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #distributorLocationPanel{padding-bottom:15px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table{font-variant-numeric:tabular-nums!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr{height:44px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){border-bottom:1px solid #8ccdff2a!important}

/* Real shell sidebar, not a mock sidebar in screenshots. */

body[data-nextest-role="distributor"] #sideDrawer{
 background:radial-gradient(ellipse at 95% 75%,#0873db4f,transparent 60%),linear-gradient(170deg,#061942,#061d50 65%,#092d70)!important;
 border-left:1px solid #46bdff9c!important;box-shadow:-6px 0 26px #000f35ad,inset 1px 0 #76d9ff56!important;
}
body[data-nextest-role="distributor"] #sideDrawer .drawer-brand{background:linear-gradient(120deg,#082658,#071e48)!important;border-bottom:1px solid #1bbcff92!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{
 min-height:49px!important;margin-bottom:5px!important;gap:12px!important;border-radius:12px!important;
 font-weight:800!important;color:#e9f5ff!important;transition:background .15s ease,border-color .15s ease!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{
 background:linear-gradient(105deg,#0cc9f6,#0760f0)!important;border:1px solid #8df1ff!important;
 box-shadow:inset 0 1px #ffffff88,0 0 17px #00baff74!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item .dn-icon{width:25px!important;height:25px!important;flex-shrink:0!important}
body[data-nextest-role="distributor"] #drawerUser{border-top:1px solid #229aff78!important;background:linear-gradient(160deg,#072a68,#061f50)!important}
body[data-nextest-role="distributor"] #mgrCommandBar{background:linear-gradient(95deg,#061841,#082858 60%,#04173d)!important;border-bottom:1px solid #3ab8ff87!important}
@media(max-width:1050px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tools{min-height:0!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{min-height:155px!important}
}
@media(max-width:850px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid,
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-bottom-grid{grid-template-columns:minmax(0,1fr)!important}
 
 
}
@media(max-width:500px){
 
 
 
 
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{padding:9px!important;gap:9px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol{padding-inline:8px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{width:29px!important;height:29px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot svg{width:17px!important;height:17px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid{padding-inline:9px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-scroller{overflow-x:auto!important}
}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{transition:none!important}}

/* ROUND 8 – reference-focused structural finishing pass.
   All details authored in CSS using existing real controls and semantic content.
   Strictly scoped to distributor; no cutouts from reference images. */

body[data-nextest-role="distributor"] #roleContent #distOnePage {
 --nx-r8-cyan:#13d5ff; --nx-r8-blue:#007bff; --nx-r8-amber:#ff9f1b;
 --nx-r8-line:rgba(67,192,255,.78); --nx-r8-panel:#061d49;
}










body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview {
 border:1px solid var(--nx-r8-line)!important; border-radius:16px!important;
 box-shadow:0 10px 25px #0011378a,inset 0 1px #82e5ff62!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview>.dist-section-head {
 min-height:51px!important;
 background:linear-gradient(95deg,#0765c7,#083b82)!important;
 border-bottom:1px solid #41c7ff72!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid {
 grid-template-columns:minmax(0,1.35fr) minmax(290px,.78fr)!important;
 gap:12px!important;padding:12px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.dist-tools) {
 border:1px solid #39afff80!important;
 box-shadow:inset 0 1px #99e6ff32,0 4px 13px #001b4382!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline {
 min-height:170px!important;
 background:radial-gradient(ellipse at 45% 30%,#1888d42e,transparent 68%),linear-gradient(145deg,#0b4081,#082752)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot {
 width:41px!important;height:41px!important;border-width:2px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tools {
 min-height:170px!important;background:linear-gradient(140deg,#12559e,#082b61)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button {
 min-height:46px!important;white-space:normal!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card {
 background:linear-gradient(145deg,#1459a4 0%,#0c3676 58%,#072558 100%)!important;
 border:1px solid #51baffb0!important;border-radius:12px!important;
 box-shadow:inset 0 1px #d5fcff19,0 4px 13px #00112c85!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card button {
 min-height:44px!important;background:linear-gradient(110deg,#0787f8,#0054d9)!important;
 border:1px solid #8de3ff86!important;font-weight:800!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid {
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid>.dist-route-finish-row {
 min-height:150px!important;max-height:none!important;justify-content:center!important;
 border-color:#ffae41!important;
 background:radial-gradient(circle at 12% 10%,#df7d1836,transparent 40%),linear-gradient(145deg,#104c8e,#072b62)!important;
 box-shadow:inset 0 1px #ffdfa55c,0 0 13px #ff920c24!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row .nx-dist-close-heading {
 font-size:19px!important;line-height:1.35!important;margin-bottom:4px!important;
 padding-bottom:7px!important;text-align:start!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row .dist-end-btn {
 max-width:100%!important;min-height:46px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-stop {
 border-color:#3cc5ff!important;
 box-shadow:inset 0 1px #b3f0ff50,0 5px 15px #00183d8c!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body {
 min-height:138px!important;display:flex!important;flex-direction:column!important;
 justify-content:space-between!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid {
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections) {
 border-color:#3bbcffb0!important;
 background:linear-gradient(155deg,#0f4486,#082c67 70%,#061f4c)!important;
 box-shadow:inset 0 1px #c6f6ff32,0 5px 15px #00152b75!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-feature-head {
 background:linear-gradient(90deg,#127cdb,#0a4d9d)!important;
 border-bottom:1px solid #67d6ff74!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table {
 border-collapse:separate!important;border-spacing:0!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(odd) {
 background:rgba(20,105,185,.22)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(even) {
 background:rgba(2,28,77,.35)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,a,input,select):focus-visible {
 outline:3px solid #8eebff!important;outline-offset:2px!important;
}

/* App shell – use the real drawer only, never a screenshot-backed replica. */

body[data-nextest-role="distributor"] #sideDrawer {
 background:radial-gradient(ellipse at 90% 65%,#0854c26b,transparent 63%),linear-gradient(180deg,#05173d,#07245e)!important;
 border-inline-start:1px solid #22beff!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item {
 min-height:51px!important;border:1px solid transparent!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active {
 background:linear-gradient(130deg,#09d8f9,#0b51e9)!important;
 border-color:#90f5ff!important;box-shadow:0 0 17px #13aaff8c,inset 0 1px #ffffff75!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:not(.active):hover {
 background:#0b499b9c!important;border-color:#3cc7ff76!important;
}
@media(max-width:1050px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:850px){
 body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-focus-grid,
 body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:520px){
 
 
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{min-height:132px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-body{min-height:115px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row .nx-dist-close-heading{font-size:17px!important}
}

/* ROUND 9 — targeted conflict resolution across native distributor states.
   Only distributor-scoped styling. No reference-image crops, synthetic business data or handlers. */

body[data-nextest-role="distributor"] #roleContent #distOnePage,
body[data-nextest-role="distributor"] #distributorDetailOverlay {
  --nx-d9-surface:#082653;--nx-d9-raised:#0b3b7c;
  --nx-d9-bright:#1d8af3;--nx-d9-line:rgba(52,193,255,.69);
  --nx-d9-text:#f4faff;--nx-d9-muted:#c6e3ff;
  font-family:"Cairo",Tahoma,"Segoe UI",sans-serif!important;
  text-rendering:optimizeLegibility;
}

/* Consolidate native expandable stop detail, including the closed state.
   Backgrounds apply to the actual expanded region and not to the surrounding card only. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail:not(.hidden),
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail[aria-expanded="true"] {
  background:linear-gradient(155deg,rgba(16,93,171,.93),rgba(5,37,86,.98))!important;
  border:1px solid rgba(72,203,255,.66)!important;
  border-radius:11px!important;padding:13px!important;
  box-shadow:inset 0 1px 0 rgba(201,248,255,.19),0 8px 22px rgba(0,17,50,.27)!important;
  color:var(--nx-d9-text)!important;
  max-height:min(62dvh,550px)!important;overflow-y:auto!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail.hidden {display:none!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(.meta,.itemline,label,p,small,span) {
  color:var(--nx-d9-muted)!important;opacity:1!important;line-height:1.55!important;
  font-size:clamp(12px,.9rem,14px)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(b,strong,h3,h4){color:#fff!important;font-weight:800!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(input,select,textarea){
  color:#f7fcff!important;background:#092955!important;border:1px solid #5dbbfa!important;
  border-radius:9px!important;min-height:44px!important;padding:8px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(input,select,textarea)::placeholder{color:#bfdfff!important;opacity:1!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail button:not(:disabled){
  min-height:44px!important;border:1px solid rgba(128,225,255,.85)!important;
  color:#fff!important;text-shadow:0 1px 1px #092451!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 3px 10px rgba(0,18,56,.32)!important;
}

/* Preserve genuinely disabled controls and destructive semantic states. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,[role="button"]):disabled {opacity:.58!important;cursor:not-allowed!important;box-shadow:none!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-card,.nx-dist-last-stop,.nx-dist-invoices,.dist-tools,#distributorLocationPanel,#distRouteCustodyCollections) {
  background-clip:padding-box;
}

/* Native section headers and all bottom panels, including empty/limited-data states. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,.nx-dist-invoices,.nx-dist-last-stop) {
  border:1px solid #42bfff9c!important;border-radius:14px!important;
  background:radial-gradient(circle at 96% 0%,rgba(28,146,247,.16),transparent 46%),linear-gradient(145deg,#0b448c,#061e4b)!important;
  box-shadow:inset 0 1px 0 #b8ecff29,0 8px 20px #00193d5e!important;
  color:#f3faff!important;overflow:hidden;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,.nx-dist-invoices,.nx-dist-last-stop) :is(.dist-section-head,.nx-dist-feature-head) {
  background:linear-gradient(106deg,#168bf1,#0d4c9e)!important;
  color:#fff!important;border-bottom:1px solid #70d5ff85!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-status,[data-delivery-state="unknown"]){font-weight:750!important}

/* Table readability independent of legacy global table rules. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table :is(th,td){
  font-size:clamp(12px,.92rem,14px)!important;line-height:1.5!important;
  border-color:rgba(80,166,246,.38)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table th{background:linear-gradient(#196fbd,#0a478c)!important;color:#fff!important;font-weight:850!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table td{color:#e9f6ff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(even){background:rgba(6,36,88,.62)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(odd){background:rgba(17,92,164,.56)!important}

/* The actual app drawer, rather than a simulated sidebar. */

body[data-nextest-role="distributor"] #sideDrawer {background:radial-gradient(circle at 95% 78%,#0b56ab82,transparent 49%),linear-gradient(180deg,#051438,#061e50 70%,#06285b)!important;border-inline-start:1px solid #37c9ff!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{color:#ebf5ff!important;font-size:14px!important;font-weight:750!important;min-height:52px!important;border-radius:12px!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{color:#fff!important;background:linear-gradient(110deg,#0ccbf6,#0653e9)!important;border-color:#92efff!important;box-shadow:0 0 15px #009fff8a,inset 0 1px #dffbff85!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:not(.active):focus-visible{outline:2px solid #8adfff!important;outline-offset:2px!important}

/* Real modal state. Modal is outside #roleContent; overrides therefore deliberately remain role-scoped. */

body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog {
  background:linear-gradient(150deg,#0c4595,#082b66 70%,#061f4e)!important;
  box-shadow:0 26px 82px #000c2dbd,0 0 0 1px #4ee1ff55,inset 0 1px #dcfbff55!important;
  border:1px solid #63ccff!important;color:#f4faff!important;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-report{
  background:linear-gradient(155deg,#114b98,#082858)!important;color:#f4faff!important;
  scrollbar-color:#52bbff #092d62;
}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header{background:linear-gradient(105deg,#1b88ef,#0d4c9a)!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(button,input,select,textarea){font-family:"Cairo",Tahoma,"Segoe UI",sans-serif!important;font-size:clamp(13px,.94rem,15px)!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(button,.wh-detail-field){min-height:44px!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(input,select,textarea){background:#092d65!important;color:#f5fcff!important;border:1px solid #6acaff!important;border-radius:9px!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay :is(input,textarea)::placeholder{color:#c9e8ff!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(h2,h3,h4,strong,th,td){text-shadow:none!important;color:#f5fbff!important}
body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(.wh-detail-note,.wh-detail-trail){color:#c9e7ff!important;opacity:1!important}

/* Light mode is intentionally blue-white, not legacy grey-white or light text on a pale field. */

html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail:not(.hidden){background:linear-gradient(155deg,#eef8ff,#d0e8ff)!important;border-color:#69b7ef!important;color:#16426a!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(.meta,.itemline,label,p,small,span){color:#28567d!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(b,strong,h3,h4){color:#103d68!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(input,select,textarea){background:#fff!important;color:#143e68!important;border-color:#66ade6!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(input,select,textarea)::placeholder{color:#517594!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,.nx-dist-invoices,.nx-dist-last-stop){background:linear-gradient(145deg,#e6f4ff,#cbe5ff)!important;color:#153e68!important;border-color:#64b2ed!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement,.nx-dist-invoices,.nx-dist-last-stop) :is(.dist-section-head,.nx-dist-feature-head){background:linear-gradient(105deg,#1376d1,#0b4c9c)!important;color:#fff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table td{color:#173f68!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(even){background:#e1f0ff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table tbody tr:nth-child(odd){background:#cde6ff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog{background:linear-gradient(145deg,#f6fbff,#d9ebff)!important;color:#153e68!important;border-color:#83c5f3!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-report{background:linear-gradient(145deg,#f4faff,#dfedff)!important;color:#153e68!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header{background:linear-gradient(120deg,#d3eaff,#b9d9ff)!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(h2,h3,h4,strong,td,th){color:#163e68!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay :is(input,select,textarea){background:#fff!important;color:#163e68!important;border-color:#7cbced!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay :is(input,textarea)::placeholder{color:#52789c!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog :is(.wh-detail-note,.wh-detail-trail){color:#426a8d!important}
@media(max-width:620px){
 body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-dialog{width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;max-height:94dvh!important}
 body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header{padding:10px!important;gap:7px!important}
 body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-report{padding:10px!important;max-height:calc(94dvh - 110px)!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail:not(.hidden){padding:10px!important}
}

/* Regression corrections from computed-style audit: header's earlier 37px rule and transparent native input reset. */

body[data-nextest-role="distributor"] #distributorDetailOverlay .wh-detail-header button{min-height:44px!important;padding-block:9px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail input,
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail select,
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail textarea{background-color:#092955!important;background-image:none!important;color:#f5fcff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-card .dist-stop-detail :is(input,select,textarea){background-color:#fff!important;color:#143e68!important}



/* Dual-role precision pass | Distributor: keep live process controls and original art. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{--nx-edge:#35bfff;--nx-deep:#061e4b;font-family:Cairo,'Segoe UI',Tahoma,Arial,sans-serif!important}









/* Reference: timeline and operational controls are peers on desktop, never two large stacked empty slabs. */

@media(min-width:1050px){body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1.35fr) minmax(310px,.86fr)!important;align-items:stretch!important}body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.dist-tools){min-height:185px!important}}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{background:radial-gradient(ellipse at 65% 16%,#0e8bff38,transparent 65%),linear-gradient(152deg,#135ca5,#082655)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tools{background:linear-gradient(160deg,#135b9e,#082954)!important;gap:10px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions{gap:7px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button{font-weight:850!important;min-height:44px!important;text-shadow:0 1px 2px #001a49b2!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{min-height:130px!important;padding:2px!important;align-self:start!important;transition:border-color .2s,filter .2s!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card:not(:has(.dist-stop-detail:not(.hidden))){min-height:125px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card :is(h3,strong){font-weight:850!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid{align-items:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row{min-height:175px!important;padding:15px!important;align-content:center!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row .nx-dist-close-heading{font-size:clamp(17px,1.65vw,22px)!important;color:#ffdc99!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-stop{min-height:175px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-bottom-grid{align-items:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(#distributorLocationPanel,#distRouteCustodyCollections,.nx-dist-invoices){min-height:0!important;align-self:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,.dist-stop-detail) :is(th,td){line-height:1.5!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoices-table td{border-bottom:1px solid #65c5ff30!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-detail,.nx-dist-last-body) :is(input,select,textarea){min-height:44px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,[role="button"]):focus-visible{outline:3px solid #ffb944!important;outline-offset:3px!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{min-height:44px!important;border-radius:10px!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{background:linear-gradient(110deg,#00c9fb,#0058ed)!important;border:1px solid #a3efff!important;box-shadow:inset 0 1px #fff9,0 0 18px #11a9ff6e!important;color:#fff!important}
@media(max-width:1049px){body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-ops-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:850px){body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid,body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-bottom-grid{grid-template-columns:1fr!important}}
@media(max-width:520px){}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{transition:none!important}}


/* NextEst · Distributor precision consolidation | 2026-11-21.
   Role-scoped surfaces, no business-state overrides, no reference image cutouts. */

body[data-nextest-role="distributor"]{--dist-precision-edge:#42c3ff;--dist-precision-deep:#051d49;--dist-precision-panel:linear-gradient(148deg,#135da4,#0a3674 53%,#061f4e);}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.dist-tools,.dist-stop-card,.nx-dist-last-stop,.dist-route-finish-row,#distributorLocationPanel,#distRouteCustodyCollections,.nx-dist-invoices){background-clip:padding-box!important;color:#eef8ff!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.dist-tools,.nx-dist-last-stop,#distributorLocationPanel,#distRouteCustodyCollections,.nx-dist-invoices){border:1px solid #36baffab!important;box-shadow:inset 0 1px #99eaff4b,0 10px 24px #00102b81!important;border-radius:15px!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.dist-tools){background:radial-gradient(ellipse at 70% 5%,#1b99ff2a,transparent 60%),var(--dist-precision-panel)!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,#distRouteCustodyCollections,.nx-dist-invoices,#distributorLocationPanel){background:radial-gradient(ellipse at 10% 0%,#1c93ff2c,transparent 55%),var(--dist-precision-panel)!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row{background:linear-gradient(155deg,#124b82,#08295d)!important;border:1px solid #ffb13cb8!important;box-shadow:inset 0 1px #ffe0a04d,0 0 17px #ff95002f!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-close-heading{color:#ffe5ae!important;font-weight:900!important;font-size:clamp(17px,1.4vw,22px)!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-panel-title,.nx-dist-last-head){color:#fff!important;font-weight:850!important;line-height:1.45!important;}

/* State-colored controls: preserve the original native buttons and event handlers. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,[role="button"]){font-weight:800!important;line-height:1.35!important;text-wrap:pretty;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button{min-height:44px!important;border-radius:10px!important;box-shadow:inset 0 1px #fff6,0 3px 9px #00123a63!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tool-actions button:is(:hover,:focus-visible){filter:brightness(1.15)!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,input,select,textarea):focus-visible{outline:3px solid #ffdd81!important;outline-offset:2px!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,input,select,textarea):disabled{opacity:.57!important;cursor:not-allowed!important;}

/* Cards keep readable data and status controls, including long Arabic client names. */

body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{background:linear-gradient(155deg,#186ab2,#0c3d7b 70%,#082a5c)!important;border:1px solid #58bfffaa!important;box-shadow:inset 0 1px #adf0ff4a,0 7px 16px #00153875!important;overflow:hidden;}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card:has(.dist-stop-detail:not(.hidden)){border-color:#3ee3ff!important;box-shadow:inset 0 1px #e8ffff69,0 0 16px #18c4ff45!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card :is(h3,strong){font-size:clamp(14px,1.12vw,17px)!important;line-height:1.45!important;overflow-wrap:anywhere;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail{background:linear-gradient(145deg,#104580,#072452)!important;border:1px solid #61c3ff85!important;border-radius:11px!important;padding:12px!important;color:#f2fbff!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(label,strong,p,span){line-height:1.55!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(input,select,textarea){background:#082b58!important;color:#fff!important;border:1px solid #63c2ffb5!important;border-radius:9px!important;min-height:44px!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail :is(input,textarea)::placeholder{color:#d0e5f7!important;opacity:1!important;}

/* Table readability, headings and status meaning. Avoid coloring unknown deliveries green. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table){font-variant-numeric:tabular-nums;line-height:1.55!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) :is(th,td){padding:8px 10px!important;border-bottom:1px solid #5ebaff40!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) th{background:linear-gradient(115deg,#1675c2,#0b4b92)!important;color:#fff!important;font-weight:850!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) tbody tr:nth-child(even) td{background:#0c3f7a3b!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) tbody tr:hover td{background:#1460a13f!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices,.nx-dist-last-stop,#distRouteCustodyCollections,#distributorLocationPanel) :is(button,[role="button"]){min-height:44px!important;}

/* Real accessible modals/dialogs, open and closed panels. Avoid global theme remnants. */

body[data-nextest-role="distributor"] :is(dialog[open],[role="dialog"]:not([hidden])){color:#f3faff!important;background:linear-gradient(154deg,#10477f,#082d63 60%,#051b40)!important;border:1px solid #5bc9ffb0!important;box-shadow:0 20px 58px #001028c9,inset 0 1px #9ce9ff5e!important;}
body[data-nextest-role="distributor"] dialog::backdrop{background:rgba(0,10,31,.8)!important;backdrop-filter:blur(5px)!important;}
body[data-nextest-role="distributor"] :is(dialog[open],[role="dialog"]:not([hidden])) :is(input,select,textarea){background:#092e61!important;color:#fff!important;border:1px solid #64baffb0!important;border-radius:10px!important;min-height:44px!important;}
body[data-nextest-role="distributor"] :is(dialog[open],[role="dialog"]:not([hidden])) :is(input,textarea)::placeholder{color:#b9d9f4!important;opacity:1!important;}
body[data-nextest-role="distributor"] :is(dialog[open],[role="dialog"]:not([hidden])) :is(button,[role="button"]){min-height:44px!important;border-radius:10px!important;}
body[data-nextest-role="distributor"] :is(dialog[open],[role="dialog"]:not([hidden])) :is(h2,h3,strong,label){color:#fff!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage details{border:1px solid #50bfff94!important;border-radius:12px!important;background:linear-gradient(148deg,#124a83,#072953)!important;color:#edf8ff!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage details>summary{min-height:44px!important;background:linear-gradient(120deg,#176fc0,#0a3e83)!important;color:#fff!important;font-weight:800!important;padding:10px 13px!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage details[open]>summary{border-bottom:1px solid #6bceff9c!important;}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{min-height:45px!important;font-weight:800!important;}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{background:linear-gradient(115deg,#09cefa,#0665f2)!important;border:1px solid #95eaff!important;box-shadow:inset 0 1px #fff8,0 0 17px #04bbff85!important;}
@media(max-width:850px){body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){grid-template-columns:minmax(0,1fr)!important;}body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{min-height:0!important;}}
@media(max-width:520px){body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-detail{padding:10px!important;}body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) :is(th,td){padding:7px 6px!important;font-size:12px!important;}}

/* Explicit specificity resolution: legacy focus-row selector must not restore neutral blue on closure requirements. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid > .dist-route-finish-row{background:linear-gradient(155deg,#174d82,#092b61)!important;border-color:#ffc05bc4!important;box-shadow:inset 0 1px #ffe7a35b,0 0 17px #ff9e0036!important;}



/* ROUND 12 | final structural design reconciliation scoped only to distributor. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{
 --nx-r12-edge:#40c3ff;--nx-r12-text:#f7fcff;
 font-family:Cairo,system-ui,sans-serif!important;color:var(--nx-r12-text)!important;
 text-rendering:optimizeLegibility;font-synthesis:none;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(h1,h2,h3,th,button,summary){letter-spacing:0!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(h1,h2,h3){
 font-weight:850!important;line-height:1.35!important;color:#fff!important;text-shadow:0 2px 10px #01143880!important;
}




/* Actual runtime markup uses a dedicated icon and copy container. Fixture fallback keeps its literal labels. */







body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-route-overview,.dist-section,.nx-dist-last-stop,.nx-dist-invoices,.dist-cash-v2,.dist-location-surface){
 border-color:#39bfff9c!important;box-shadow:inset 0 1px #9ce2ff45,0 8px 19px #00143082!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head){
 background:linear-gradient(90deg,#1476ca,#084282)!important;
 border-bottom:1px solid #62d1ff78!important;color:white!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head) h2{font-size:clamp(16px,1.35vw,21px)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-overview{
 background:linear-gradient(155deg,#0d427e,#082d64 65%,#041c42)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-tools,.nx-dist-timeline,.nx-dist-last-stop,.dist-stop-card){
 border:1px solid #55bcff84!important;border-radius:12px!important;
 box-shadow:inset 0 1px #a1e6ff34,0 6px 14px #00245257!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-tools{
 background:linear-gradient(135deg,#105da5,#0a3a7a 70%)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{
 background:linear-gradient(135deg,#115fa7,#0c3c7b 70%)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{
 box-shadow:0 0 0 2px #5cd8ff52,0 0 15px #00cfff88,inset 0 1px #fff9!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{
 background:linear-gradient(155deg,#1466ad,#0b3977 75%)!important;
 min-width:0!important;overflow-wrap:anywhere!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-stop-name{
 color:#fff!important;font-weight:850!important;font-size:clamp(14px,1.13vw,17px)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-meta,.nx-dist-last-meta){font-variant-numeric:tabular-nums;color:#d5eaff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card:focus-within{outline:2px solid #ffc76a!important;outline-offset:2px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row{
 border-color:#ffbc56c7!important;background:linear-gradient(150deg,#125084,#062d62)!important;
 box-shadow:inset 0 1px #ffdf8e60,0 0 15px #ff94001c!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-note{color:#ffe1aa!important;font-weight:700!important}

/* State meaning is determined by runtime data; avoid falsely painting all rows as completed. */

body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-invoice-status{
 font-weight:800!important;line-height:1.4!important;border-radius:100px!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table){width:100%!important;border-collapse:separate!important;border-spacing:0!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) th{
 background:linear-gradient(180deg,#1676c9,#0b468a)!important;color:#fff!important;
 font-weight:850!important;line-height:1.5!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) td{font-weight:650!important;color:#f5fbff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) tbody tr:nth-child(even){background:#1764ac31!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) tbody tr:hover td{background:#13549365!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn){
 min-height:44px!important;border-radius:10px!important;font-weight:800!important;line-height:1.4!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn):disabled{opacity:.53!important;cursor:not-allowed!important;filter:saturate(.52)!important;}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn):focus-visible{outline:3px solid #ffd478!important;outline-offset:2px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage details:not([open])>*:not(summary){display:none!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage details>summary{min-height:46px!important;font-weight:850!important;cursor:pointer!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,select,textarea){min-height:44px!important;font-size:16px!important;color:#fff!important;background:#082d59!important;border-color:#61bfff!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(input,select,textarea):focus-visible{outline:3px solid #ffcd71!important;outline-offset:2px!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal[open],.modal.show){color:#f8fcff!important;background:linear-gradient(150deg,#0c417a,#041b40)!important;border:1px solid #59caff!important;box-shadow:0 25px 70px #000c!important}
body[data-nextest-role="distributor"] dialog::backdrop{background:#000d28d9!important;backdrop-filter:blur(5px)!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{min-height:46px!important;font-weight:800!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(:hover,:focus-visible){background:linear-gradient(110deg,#1269b7,#082f66)!important;border-color:#72dfff!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item.active{background:linear-gradient(110deg,#0ad2fa,#065cf2)!important}
@media(max-width:850px){body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:520px){
 
 
 
 body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{padding:11px!important}
 body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table){font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #roleContent #distOnePage *{animation-duration:.01ms!important;transition-duration:.01ms!important}}



/* === R13: distribution operational density and structural fidelity ===
   No new orders, statuses or data; only native role controls receive these treatments. */

body[data-nextest-role="distributor"]{--nx-d13-panel:linear-gradient(152deg,#0d417e,#07295c 70%,#041936);--nx-d13-line:#39c7ff}
@media(min-width:900px){
 body[data-nextest-role="distributor"] #sideDrawer{border-inline-start:1px solid #39c8ffad!important;background:radial-gradient(ellipse at 55% 72%,#1772cc65,transparent 58%),linear-gradient(175deg,#061b48,#03122c)!important;box-shadow:-10px 0 35px #00122daa,inset 2px 0 #b9edff22!important;scrollbar-width:thin;scrollbar-color:#3299da #0a2859}
 body[data-nextest-role="distributor"] #drawerNav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important}
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{
 display:flex!important;align-items:center!important;gap:11px!important;min-height:48px!important;
 padding:10px 13px!important;border-radius:11px!important;border:1px solid transparent!important;
 background:linear-gradient(105deg,#0b367555,#08214833)!important;color:#eff8ff!important;
 transition:background .18s,border-color .18s!important;
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item :is(svg,i){width:21px;height:21px;min-width:21px;flex:none;filter:drop-shadow(0 0 5px #38bfff55)}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(:hover,:focus-visible){background:linear-gradient(105deg,#0d6dbc,#083569)!important;border-color:#4ddcff!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(.active,[aria-current="page"]){background:linear-gradient(115deg,#14d9ff,#0679f6 67%,#0950bb)!important;border-color:#adf5ff!important;box-shadow:inset 0 1px #fff9,0 0 18px #06bfff93!important;color:white!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-route-overview,.dist-section,.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement){
 min-width:0!important;border:1px solid #39bfff9c!important;border-radius:14px!important;
 box-shadow:inset 0 1px #c7eeff40,0 11px 25px #00122e9a!important;
 background:radial-gradient(ellipse at 6% 0%,#1b9dff32,transparent 52%),var(--nx-d13-panel)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){gap:13px!important;align-items:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections){min-height:0!important;align-self:start!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head){
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 min-height:49px!important;padding:11px 15px!important;
 background:linear-gradient(106deg,#1884dc,#0b4c94)!important;border-bottom:1px solid #78d4ff80!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head) h2{font-size:clamp(16px,1.3vw,21px)!important;line-height:1.35!important;color:white!important;font-weight:850!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline{
 border-color:#35ceff94!important;background:radial-gradient(ellipse at 45% 50%,#188feb30,transparent 68%),linear-gradient(155deg,#115394,#082857)!important;
}
body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot{box-shadow:0 0 0 2px #b6ebff5e,0 0 13px #02d0ff8f,inset 0 1px #fff9!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row{border:1px solid #ffb753c9!important;box-shadow:inset 0 1px #ffe2a06b,0 0 19px #ff9c0042!important;background:linear-gradient(145deg,#175c99,#092a5c)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row :is(button,.btn):not(:disabled){border-color:#ffbf6e!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{min-width:0!important;border:1px solid #4dbbff9e!important;border-radius:12px!important;background:linear-gradient(156deg,#1568ad,#0a3976 78%)!important;box-shadow:inset 0 1px #a7e4ff38,0 5px 14px #00153774!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card:focus-within{outline:3px solid #ffc56f!important;outline-offset:2px!important}

/* Dense data tables with visible row boundaries, no forced green for pending states. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table){width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-variant-numeric:tabular-nums!important;line-height:1.5!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) :is(th,td){padding:9px 11px!important;border-bottom:1px solid #53b1f849!important;vertical-align:middle!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) th{color:white!important;background:linear-gradient(160deg,#197bd0,#0b427f)!important;font-size:clamp(12px,.94vw,14px)!important;font-weight:850!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) tr:nth-child(even) td{background:#1c80c422!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoices-table,table) tr:hover td{background:#1279c03c!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-invoice-status,.dist-stop-status,[class*="status"]){font-weight:750!important;line-height:1.45!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn,[role="button"]):disabled{opacity:.48!important;filter:saturate(.45)!important;cursor:not-allowed!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(button,.btn,[role="button"]):focus-visible{outline:3px solid #ffcb70!important;outline-offset:2px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage details:not([open])>*:not(summary){display:none!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage details>summary{min-height:45px!important;font-weight:800!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]){background:radial-gradient(ellipse at 10% 0%,#158fff30,transparent 52%),linear-gradient(150deg,#0b4279,#041b3b)!important;border:1px solid #63cfff!important;border-radius:16px!important;box-shadow:0 30px 75px #000d,inset 0 1px #c6efff3b!important;color:#f8fcff!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]) :is(input,select,textarea){background:#092c58!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #4ebcff!important;min-height:44px!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]) :is(input,textarea)::placeholder{color:#c1dfff!important;opacity:1!important;-webkit-text-fill-color:#c1dfff!important}

/* Light surfaces stay genuinely light; header strips preserve white lettering. */

html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-route-overview,.dist-section,.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement){background:linear-gradient(153deg,#e7f5ff,#cee6ff)!important;border-color:#5aaceb!important;color:#123d6b!important;box-shadow:inset 0 1px #fff,0 7px 18px #0c467c27!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-route-overview,.dist-section,.nx-dist-last-stop,.nx-dist-invoices,#distributorLocationPanel,#distRouteCustodyCollections,#distRouteCustodyAcknowledgement) :is(p,small,label){color:#164878!important;text-shadow:none!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head) :is(h2,p,small,label){color:white!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) td{color:#17436d!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tr:nth-child(even) td{background:#d2eaff77!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) th{color:white!important}
@media(max-width:850px){body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:520px){body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) :is(th,td){padding:8px 6px!important;font-size:12px!important}}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{transition:none!important}}



/* R14 — complete distributor visual hierarchy, scoped to authentic controls and information. */

body[data-nextest-role="distributor"] #roleContent #distOnePage{--nx-d14-cyan:#06d5f5;--nx-d14-orange:#ffab29;--nx-d14-green:#00d993;--nx-d14-purple:#b84afd}
@media(min-width:900px){body[data-nextest-role="distributor"] #sideDrawer{background:radial-gradient(ellipse at 10% 82%,#078bfa48,transparent 47%),radial-gradient(ellipse at 96% 5%,#124b9659,transparent 46%),linear-gradient(170deg,#061b40,#041128 76%,#061a41)!important}body[data-nextest-role="distributor"] #drawerNav{padding-block:10px!important}}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{position:relative;font-size:clamp(13px,1.08vw,16px)!important;line-height:1.5!important;font-weight:800!important;letter-spacing:0!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(.active,[aria-current="page"]){background:linear-gradient(105deg,#03d7fb,#0a87f7 53%,#074fdd)!important;box-shadow:inset 0 1px #ffffffaf,inset 0 -2px #075bb3,0 0 0 1px #38daff,0 5px 23px #008afc78!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(.active,[aria-current="page"])::before{content:"";position:absolute;inset-inline-start:0;top:20%;height:60%;width:3px;border-radius:4px;background:#d3ffff;box-shadow:0 0 11px #e4ffff;pointer-events:none}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item svg{stroke-width:2.2!important;overflow:visible}/* Meaningful color roles: do not turn pending stops green. */





body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-focus-grid,.nx-dist-bottom-grid){gap:12px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-last-stop,.nx-dist-invoices,.dist-section,#distributorLocationPanel,#distRouteCustodyCollections){overflow:clip;min-width:0}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head){padding:11px 14px!important;min-height:47px!important;background:linear-gradient(104deg,#147dd0,#0a438a)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head) :is(h2,h3){font-size:clamp(16px,1.3vw,20px)!important;font-weight:850!important;line-height:1.35!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{position:relative;min-width:0;padding:14px!important;transition:border-color .18s,box-shadow .18s!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card:hover{border-color:#8be6ff!important;box-shadow:inset 0 1px #d5f5ff72,0 5px 17px #001b3b93!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card :is(button,.btn){min-height:44px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table){font-size:clamp(12px,.98vw,14px)!important;line-height:1.5!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) th{font-weight:850!important;text-align:start!important;white-space:normal!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) td{font-weight:700!important;overflow-wrap:anywhere}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) :is(.badge,.status-pill,[class*="status"]){font-variant-numeric:tabular-nums;line-height:1.4!important}

/* Enhance original SVG/canvas only, never supply fictional operational metrics. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-chart,.dist-chart-wrap,.dist-analytics,.chart-container){position:relative;min-width:0;max-width:100%;background:linear-gradient(#8bc4fa19 1px,transparent 1px) 0 0/100% 25%,linear-gradient(90deg,#8bc4fa12 1px,transparent 1px) 0 0/25% 100%,linear-gradient(150deg,#08366c,#031938)!important;border:1px solid #339ee78c!important;border-radius:12px!important;overflow:hidden}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-chart,.dist-chart-wrap,.dist-analytics,.chart-container) :is(svg,canvas){max-width:100%;position:relative;z-index:1}
body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-route-finish-row{border-color:#ffc56d!important;background:linear-gradient(135deg,#165b92,#082855)!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage details>summary{min-height:46px!important;align-content:center;cursor:pointer}
body[data-nextest-role="distributor"] #roleContent #distOnePage details[open]>summary{border-bottom:1px solid #62caff88!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]){max-height:calc(100dvh - 36px)!important;overflow-y:auto;overscroll-behavior:contain}
body[data-nextest-role="distributor"] dialog::backdrop{background:#00122dc2!important;backdrop-filter:blur(5px)}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.nx-dist-invoices,.nx-dist-last-stop) :is(h2,h3,p,small,label){color:#154675!important;text-shadow:none!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head) :is(h2,h3,p,small,label){color:white!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:hover td{background:#9cceff68!important}
@media(max-width:699px){body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{padding:11px!important}body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) :is(th,td){padding:8px 7px!important}}



/* R15 — operational data-state fidelity, actual route metrics. */

body[data-nextest-role="distributor"] #distRouteSection .dist-route-meta{display:flex!important;align-items:center!important;gap:8px!important;font-size:12px!important}
body[data-nextest-role="distributor"] #distRouteSection .dist-route-meta>span{padding:9px 12px;border:1px solid #269fe78a;background:linear-gradient(130deg,#0b4480,#082a57);border-radius:10px;color:#effaff;font-weight:800;white-space:normal;line-height:1.5;font-variant-numeric:tabular-nums}
body[data-nextest-role="distributor"] #distRouteSection .dist-route-meta>span:nth-child(2){border-color:#ffb54795;background:linear-gradient(120deg,#744116,#3b291d)}
body[data-nextest-role="distributor"] #distRouteSection .dist-route-meta>span:nth-child(3){border-color:#9a6eff95;background:linear-gradient(120deg,#442079,#1e2854)}
body[data-nextest-role="distributor"] #stopsGrid .dist-stop-status.is-unknown{background:#544a6275!important;border:1px solid #a9b4c8!important;color:#f5f7ff!important}
body[data-nextest-role="distributor"] #stopsGrid .dist-stop-status.is-pending{background:#b8741233!important;border:1px solid #eeb24d!important;color:#ffe4a6!important}
body[data-nextest-role="distributor"] #stopsGrid .dist-stop-status.is-done{background:#087c5d4a!important;border:1px solid #19e7a4!important;color:#c0ffe4!important}
body[data-nextest-role="distributor"] #distRouteSection .dist-progress-wrap{padding:11px 14px;border:1px solid #278ddb80;border-radius:12px;background:linear-gradient(150deg,#0b3a77,#082857)}
body[data-nextest-role="distributor"] #distRouteSection .dist-progress{height:11px!important;background:#061a37!important;border:1px solid #3a83c188!important}
body[data-nextest-role="distributor"] #distRouteSection .dist-progress>i{display:block;height:100%;background:linear-gradient(90deg,#00a9ed,#1fe9b4)!important;border-radius:inherit;box-shadow:0 0 12px #1fdfd180}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #distRouteSection .dist-route-meta>span{color:#fff!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #stopsGrid .dist-stop-status:is(.is-pending,.is-unknown,.is-done){color:#fff!important;text-shadow:0 1px 2px #00204a}
@media(max-width:520px){body[data-nextest-role="distributor"] #distRouteSection .dist-route-meta>span{padding:8px 10px;font-size:11px}}



/* R16 • Actual route operations: visual hierarchy and state clarity. */

@media(min-width:900px){
 body[data-nextest-role="distributor"] #sideDrawer{border-inline-start:1px solid #30bfffb0!important;box-shadow:inset 1px 0 #7bdcff4a,-16px 0 45px #00112962!important}
 body[data-nextest-role="distributor"] #drawerNav{display:flex!important;flex-direction:column!important;gap:5px!important;overflow-y:auto!important;max-height:calc(100dvh - 175px)!important;scrollbar-width:thin;scrollbar-color:#279ce5 transparent}
}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{display:flex!important;align-items:center!important;gap:10px!important;min-height:48px!important;border-radius:12px!important;border:1px solid transparent!important;background:linear-gradient(105deg,#11427a50,#06245036)!important;color:#eaf7ff!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(:hover,:focus-visible){border-color:#60caff9e!important;background:linear-gradient(115deg,#167fc1a8,#0b4487a5)!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item:is(.active,[aria-current="page"]){color:#fff!important;border-color:#5be6ff!important;background:linear-gradient(105deg,#07c6f9,#137ef0 65%,#0655d1)!important;box-shadow:inset 0 1px #fff9,0 0 20px #00bfff6f!important}
body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item :is(svg,.dn-icon){flex:0 0 22px!important;width:22px!important;height:22px!important;filter:drop-shadow(0 0 4px #40c7ff77)}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.nx-dist-last-stop,.nx-dist-invoices,.dist-stop-card){border-radius:14px!important;border:1px solid #2caaf6b8!important;background:radial-gradient(ellipse at 100% 0%,#0e89ff25,transparent 48%),linear-gradient(155deg,#0d3c77,#072755 68%,#051934)!important;box-shadow:inset 0 1px #b1eaff51,0 8px 19px #00112f89!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head){min-height:49px!important;padding:10px 14px!important;background:linear-gradient(100deg,#197fd8,#08418a)!important;border-bottom:1px solid #55c7ff9c!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card{min-width:0!important;padding:13px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage #stopsGrid>.dist-stop-card :is(button,.btn){min-height:44px!important;font-weight:800!important;border-radius:9px!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table){width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-variant-numeric:tabular-nums!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) :is(th,td){padding:10px 12px!important;border-bottom:1px solid #5fbfff47!important;vertical-align:middle!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) th{background:linear-gradient(#166dbb,#0d458d)!important;color:#fff!important;font-weight:850!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:nth-child(even) td{background:#1d81d31c!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) tbody tr:focus-within td{background:#1476bd51!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]){border:1px solid #52c9ff!important;border-radius:16px!important;color:#f5fbff!important;background:radial-gradient(ellipse at 90% 0%,#168ffa3a,transparent 55%),linear-gradient(155deg,#0d3a78,#051d43)!important;box-shadow:0 23px 75px #000c,inset 0 1px #e9faff4a!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]) :is(button,.btn,input,select,textarea){min-height:44px!important;border-radius:8px!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]) :is(input,select,textarea){color:#fff!important;background:#092856!important;border:1px solid #49a9fa!important}
body[data-nextest-role="distributor"] :is(dialog[open],.modal.show,.modal[open]) :is(button,input,select,textarea):focus-visible{outline:3px solid #ffd172!important;outline-offset:2px!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.nx-dist-last-stop,.nx-dist-invoices,.dist-stop-card){background:linear-gradient(155deg,#f3faff,#d8eaff)!important;border-color:#3b97e3!important;box-shadow:inset 0 1px #fff,0 8px 20px #0d4d8428!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.nx-dist-last-stop,.nx-dist-invoices,.dist-stop-card) :is(h2,h3,p,label){color:#16416c!important;text-shadow:none!important}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section-head,.nx-dist-feature-head) :is(h2,h3,p,label){color:#fff!important}
@media(max-width:899px){body[data-nextest-role="distributor"] #drawerNav{max-height:calc(100dvh - 110px)!important;overflow-y:auto!important}}
@media(max-width:620px){body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) :is(th,td){padding:8px 7px!important;font-size:12px!important}}
@media(prefers-reduced-motion:reduce){body[data-nextest-role="distributor"] #drawerNav .drawer-nav-item{transition:none!important}}


/* R16 QA correction: operational status labels remain compact rather than stretching like action buttons. */

body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-stop-status,.nx-dist-status,.status-pill){display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;justify-self:start!important;width:max-content!important;max-width:100%!important;min-width:0!important;min-height:25px!important;padding:4px 10px!important;border-radius:999px!important;font-size:clamp(11px,.85vw,13px)!important;line-height:1.3!important;text-align:center!important;white-space:normal!important}
body[data-nextest-role="distributor"] #roleContent #distOnePage :is(table,.nx-dist-invoices-table) :is(.dist-stop-status,.nx-dist-status,.status-pill){margin-inline:auto!important;vertical-align:middle!important}




/* R17 / all observed route status states preserve semantic distinction */

body[data-nextest-role="distributor"] .dist-stop-status.is-unknown{background:linear-gradient(125deg,#35465f,#4b5269)!important;color:#f8faff!important;border:1px solid #adb8cd!important}
body[data-nextest-role="distributor"] .dist-stop-status.is-pending{background:linear-gradient(125deg,#805019,#aa6c19)!important;color:#fff2d2!important;border:1px solid #f1b356!important}
body[data-nextest-role="distributor"] .dist-stop-status.is-done{background:linear-gradient(125deg,#076e53,#099f73)!important;color:#e9fff8!important;border:1px solid #2cefb4!important}
body[data-nextest-role="distributor"] .dist-stop-status{font-size:12px!important;line-height:1.35!important;min-height:27px!important;white-space:nowrap!important;font-weight:900!important;padding:5px 11px!important;box-shadow:inset 0 1px #ffffff2c}
body[data-nextest-role="distributor"] #distRouteSection :is(.dist-progress-wrap,.dist-route-meta){min-width:0}

/* Distributor reference layout, based on the current route and the delivered monthly ledger. */
body[data-nextest-role="distributor"] {
  --dist-ref-panel:linear-gradient(155deg,#0a3d84,#06285f 43%,#051b46);
  --dist-ref-edge:#2e9be8;--dist-ref-text:#f3f9ff;--dist-ref-muted:#bed9ef;
  --dist-ref-field:#08295b;--dist-ref-focus:#ffcb69;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage {
  display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px!important;
  background:#041c43!important;color:var(--dist-ref-text)!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage {
  background:#e7f2ff!important;
}
html[data-color-mode="light"] body[data-nextest-role="distributor"] {
  --dist-ref-panel:linear-gradient(155deg,#e1f0ff,#f5faff 51%,#eaf4ff);
  --dist-ref-edge:#82b2dc;--dist-ref-text:#142e53;--dist-ref-muted:#36567d;
  --dist-ref-field:#eef6ff;--dist-ref-focus:#125ea1;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero {
  min-height:clamp(162px,15vw,224px)!important;padding:14px clamp(12px,2.6vw,31px)!important;
  position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;
  border:1px solid #329fec;border-radius:16px;
  background:#062451!important;justify-content:flex-start!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:0!important;width:100%!important;opacity:1!important;
  background:url('/assets/distributor-city-r28.webp') left center / auto 118% no-repeat!important;
  mask-image:linear-gradient(90deg,#000 41%,#000b 56%,transparent 83%);
}
html[dir="ltr"] body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero::before {
  background-position:left center!important;transform:scaleX(-1);
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero::after {display:none!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main h1 {
  font-size:clamp(27px,3.4vw,49px)!important;color:#fff!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-side {
  display:flex;align-items:center;gap:7px;z-index:2;
  align-self:end!important;position:absolute!important;inset-inline-end:11px;inset-block-end:8px;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-datetime {min-width:0!important;display:flex;gap:5px;font-size:11px;color:#d5e9ff!important;background:#051c4ae8!important;padding:5px 7px}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0!important;gap:11px!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid>.dist-kpi {
  display:flex;align-items:flex-start;min-width:0;gap:8px;border-radius:13px;cursor:pointer;
  min-height:126px!important;padding:13px!important;background:linear-gradient(145deg,var(--dist-kpi-top),var(--dist-kpi-base) 60%,var(--dist-kpi-top))!important;
  border:1px solid var(--dist-kpi-line)!important;box-shadow:inset 0 0 15px color-mix(in srgb,var(--dist-kpi-line) 40%,transparent)!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi:nth-child(1) {--dist-kpi-top:#6321a1;--dist-kpi-base:#331552;--dist-kpi-line:#d082ff}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi:nth-child(2) {--dist-kpi-top:#075ab3;--dist-kpi-base:#082a61;--dist-kpi-line:#57bcff}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi:nth-child(3) {--dist-kpi-top:#08755f;--dist-kpi-base:#053b39;--dist-kpi-line:#48e4b4}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi:nth-child(4) {--dist-kpi-top:#995306;--dist-kpi-base:#543009;--dist-kpi-line:#ffbe4c}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid .dist-kpi::after {content:none!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid .dist-kpi :is(strong,span,small) {color:#fff!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid .dist-kpi-icon {
  display:grid;place-items:center;flex:0 0 40px;width:40px!important;height:40px!important;color:var(--dist-kpi-line)!important;background:transparent!important;border:0!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-section,.nx-dist-last-stop,.dist-route-finish-row,.dist-month-ledger) {
  background:var(--dist-ref-panel)!important;color:var(--dist-ref-text)!important;border-color:var(--dist-ref-edge)!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-month-ledger {
  min-width:0;border:1px solid var(--dist-ref-edge);border-radius:14px;overflow:hidden;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-month-ledger h2 {margin:0;font-size:16px;color:#fff!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-month-ledger .nx-dist-invoices-scroller {overflow:auto}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-month-ledger .nx-dist-invoices-table {margin:0;min-width:380px}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-month-ledger td {color:var(--dist-ref-text)!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline li[data-stage="finish"] .nx-dist-timeline-dot {
  background:#a65a00!important;color:white!important;border-color:#ffc85b!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage [data-route-delivery-complete="true"] .nx-dist-timeline li[data-stage="delivery"] .nx-dist-timeline-dot {
  background:#087758!important;border-color:#50e8b0!important;color:#fff!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage #distributorLocationPanel {position:relative;isolation:isolate}
html body[data-nextest-role="distributor"] #roleContent #distOnePage #distributorLocationPanel::after {
  content:"";position:absolute;inset:auto 0 0;width:100%;height:65px;z-index:-1;opacity:.48;pointer-events:none;
  background:url('/assets/representative-orbits.svg') center / 100% 100% no-repeat;
}
@media(min-width:1000px){
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage>.nx-dist-bottom-grid {grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.dist-route-finish-row {grid-column:1;grid-row:1}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.nx-dist-last-stop {grid-column:2;grid-row:1}
}
@media(max-width:760px){
  html body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero {min-height:205px!important;justify-content:end!important;padding-bottom:38px!important}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero::before {background-size:auto 100%!important;mask-image:linear-gradient(#000,#000c 50%,transparent 96%)}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main {flex:none!important}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid>.dist-kpi {min-height:110px!important;padding:8px!important}
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main {
  inset:auto!important;width:auto!important;max-width:58%;z-index:2!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol::before {
  background:linear-gradient(to left,#23cb92 0 var(--dist-current-progress,0%),#6186b4 var(--dist-current-progress,0%) 100%)!important;
}
html[dir="ltr"] body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline ol::before {
  background:linear-gradient(to right,#23cb92 0 var(--dist-current-progress,0%),#6186b4 var(--dist-current-progress,0%) 100%)!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-actions {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-actions button {
  margin:0;min-height:42px!important;white-space:normal;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-last-actions button:disabled {opacity:.65;cursor:not-allowed}
html body[data-nextest-role="distributor"] #roleContent #distOnePage::after {
  content:"";display:block;height:52px;background:url('/assets/representative-orbits.svg') center / 100% 100% no-repeat;pointer-events:none;
}
@media(max-width:760px){
 html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main {max-width:100%}
}
@media print{html body[data-nextest-role="distributor"] #roleContent #distOnePage::after {display:none}}
@media(min-width:1000px){
 html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-focus-grid>.nx-dist-last-stop:only-child {grid-column:1/-1}
}

html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main p {
  margin:5px 0 0;color:#e6f3ff!important;font-size:clamp(12px,1.3vw,16px);line-height:1.55;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-brand-mark {
  width:36px;height:36px;color:#ffc061;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.dist-brand-mark,.dist-kpi-icon) svg {
  display:block;width:100%;height:100%;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-icon svg {width:28px;height:28px}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi strong {
  display:block;font-size:clamp(23px,2.5vw,36px);line-height:1.25;font-variant-numeric:tabular-nums;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi span {display:block;font-size:12px;line-height:1.55}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi:focus-visible {
  outline:2px solid #ffca62!important;outline-offset:2px;
}

/* Same reading surface for collapsed panels, expanded panels and portaled dialogs. */
html[data-color-mode] body[data-nextest-role="distributor"] :is(
  #roleContent #distOnePage :is(details,.dist-stop-detail),
  #distributorDetailOverlay :is(.wh-detail-dialog,.wh-detail-header,.wh-detail-report,.wh-detail-field),
  #noDeliveryOverlay>.card,dialog[open],.modal.show,.modal[open]
) {
  background:var(--dist-ref-panel)!important;color:var(--dist-ref-text)!important;border-color:var(--dist-ref-edge)!important;
}
html[data-color-mode] body[data-nextest-role="distributor"] #roleContent #distOnePage details>summary {
  background:transparent!important;color:var(--dist-ref-text)!important;
  font-size:14px;line-height:1.5;outline-offset:-3px;
}
html[data-color-mode] body[data-nextest-role="distributor"] #roleContent #distOnePage details[open]>summary {
  border-block-end:1px solid var(--dist-ref-edge)!important;
}
html[data-color-mode] body[data-nextest-role="distributor"] :is(#distributorDetailOverlay,#noDeliveryOverlay) :is(h2,h3,h4,strong,td,label) {
  color:var(--dist-ref-text)!important;text-shadow:none;
}
html[data-color-mode] body[data-nextest-role="distributor"] :is(#distributorDetailOverlay,#noDeliveryOverlay,#distOnePage) :is(.wh-detail-note,.wh-detail-trail,.meta,.sub) {
  color:var(--dist-ref-muted)!important;
}
html[data-color-mode] body[data-nextest-role="distributor"] :is(#distributorDetailOverlay,#noDeliveryOverlay,dialog[open]) :is(input,textarea,select) {
  background:var(--dist-ref-field)!important;color:var(--dist-ref-text)!important;
  -webkit-text-fill-color:var(--dist-ref-text)!important;border-color:var(--dist-ref-edge)!important;
}
html[data-color-mode] body[data-nextest-role="distributor"] :is(#distributorDetailOverlay,#noDeliveryOverlay,dialog[open]) :is(input,textarea)::placeholder {
  color:var(--dist-ref-muted)!important;-webkit-text-fill-color:var(--dist-ref-muted)!important;
}
html[data-color-mode] body[data-nextest-role="distributor"] :is(#distributorDetailOverlay,#noDeliveryOverlay,#distOnePage) :is(summary,button,input,textarea,select,[tabindex]):focus-visible {
  outline:2px solid var(--dist-ref-focus)!important;
}
html body[data-nextest-role="distributor"] :is(#distOnePage,#distributorDetailOverlay,#noDeliveryOverlay) {
  font-family:Cairo,system-ui,Tahoma,sans-serif!important;font-size:14px;line-height:1.6;
}
html body[data-nextest-role="distributor"] #distOnePage .dist-kpi span {font-size:clamp(12px,1.13vw,15px);line-height:1.55}
html body[data-nextest-role="distributor"] #distOnePage .dist-kpi small {font-size:11px!important;opacity:1!important;color:#ebf5ff!important}
html body[data-nextest-role="distributor"] #distOnePage .dist-kpi-icon svg {filter:drop-shadow(0 0 5px color-mix(in srgb,currentColor 45%,transparent))}
html body[data-nextest-role="distributor"] #distOnePage .dist-month-ledger td bdi {font-variant-numeric:tabular-nums}
html body[data-nextest-role="distributor"] #distOnePage .dist-month-ledger td {line-height:1.5}
@media(max-width:560px){
  html body[data-nextest-role="distributor"] :is(#distOnePage,#distributorDetailOverlay,#noDeliveryOverlay) :is(input,select,textarea) {font-size:16px!important}
}

@media(max-width:899px) {
  body[data-nextest-role="distributor"] #sideDrawer:not(.open) {visibility:hidden}
  body[data-nextest-role="distributor"] #sideDrawer.open {visibility:visible}
}
@media(max-height:560px) and (orientation:landscape) {
  html body[data-nextest-role="distributor"] #roleContent #distOnePage>.dist-hero {min-height:150px!important}
}

html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid > .dist-kpi {min-height:100px!important;padding-block:10px!important}
html body[data-nextest-role="distributor"] #roleContent #distOnePage :is(.nx-dist-timeline,.dist-complete-banner,.dist-tools) :is(.meta,.sub,small,p) {
  color:#e8f5ff!important;opacity:1!important;
}

body[data-nextest-role="distributor"] #distOnePage .nx-dist-invoices-table tr[data-dd-route] {cursor:pointer}
body[data-nextest-role="distributor"] #distOnePage .nx-dist-invoices-table tr[data-dd-route]:hover {background:color-mix(in srgb,#4cbbff 14%,transparent)}

/* Distributor visual refinement: route, custody, and invoices share the workspace palette. */
html[data-color-mode] body[data-nextest-role="distributor"] :is(#mgrCommandBar,#sideDrawer) {
  background:var(--nextest-shell-blue,linear-gradient(152deg,#174980,#113565 60%,#102d58))!important;
  border-color:#589ed0!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage > .dist-hero {
  background:linear-gradient(115deg,#154c87,#0b3062 72%)!important;border-color:#6db8e7!important;
  box-shadow:inset 0 1px #d8f5ff3d,0 8px 20px #0a28594d;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main h1 {font-weight:900;text-wrap:balance;line-height:1.2}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-hero-main p {color:#e9f6ff!important;line-height:1.55;text-wrap:pretty}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid > .dist-kpi {
  align-items:center;gap:9px;padding-inline:clamp(8px,1.1vw,14px)!important;
  background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--dist-kpi-line) 19%,transparent),transparent 62%),
    linear-gradient(150deg,var(--dist-kpi-top),var(--dist-kpi-base) 78%)!important;
  box-shadow:inset 0 1px #fff3,0 4px 12px #09294d49!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi strong {
  font-size:clamp(22px,2.62vw,39px);font-weight:900;overflow-wrap:anywhere;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi small {line-height:1.5;overflow-wrap:anywhere}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline {
  background:linear-gradient(153deg,#154d85,#0b2f60 72%)!important;
  border-color:#6ab6e4!important;box-shadow:inset 0 1px #c8edff36!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline :is(li,p,small) {color:#e9f6ff!important;line-height:1.5}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .nx-dist-timeline-dot {
  box-shadow:inset 0 1px #fff5,0 0 0 2px #7bdeff48!important;
}
html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-progress-label {color:#e9f6ff!important;font-variant-numeric:tabular-nums}
html[data-color-mode="light"] body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-month-ledger h2 {color:var(--dist-ref-text)!important}
html body[data-nextest-role="distributor"] :is(#distributorDetailOverlay,#distOnePage .dist-month-ledger) :is(th,td) {
  font-size:clamp(12px,1.02vw,14px);line-height:1.55;
}
html body[data-nextest-role="distributor"] #distOnePage .nx-dist-table-link {min-height:36px}
@media(max-width:560px) {
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi strong {font-size:clamp(21px,5.7vw,29px)}
  html body[data-nextest-role="distributor"] #roleContent #distOnePage .dist-kpi-grid .dist-kpi-icon {flex-basis:28px;width:28px!important;height:28px!important}
}
