:root{
  --verdant-950:#082719;--verdant-900:#0a2e1b;--verdant-800:#123f26;--verdant-700:#1d5b35;
  --verdant-600:#2f7d4a;--verdant-100:#eaf3ed;--verdant-50:#f4f8f5;
  --ink:#16221a;--muted:#657268;--subtle:#8a958d;--line:#dde5df;--line-strong:#cad5cd;
  --surface:#fff;--surface-2:#f8faf8;--bg:#f4f7f5;--info:#256b8a;--warning:#9b6815;--danger:#a92f2f;
  --radius-sm:8px;--radius:12px;--radius-lg:16px;
  --shadow-sm:0 2px 8px rgba(10,46,27,.05);--shadow:0 10px 30px rgba(10,46,27,.08);
  --sidebar:248px;--topbar:68px
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{margin:0;background:var(--bg);min-height:100vh}
a{color:inherit;text-decoration:none}
p{margin:.35rem 0 0;max-width:75ch}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%}
strong{font-weight:700}
.numeric,.amount,.kpi-value,.big-number{font-variant-numeric:tabular-nums}
.ui-icon{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

.offline-banner{display:none;background:#fff4d6;color:#74500d;border-bottom:1px solid #edd9a1;padding:10px 16px;font-weight:650;text-align:center}
.offline .offline-banner{display:block}

.topbar{height:var(--topbar);background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;z-index:40;backdrop-filter:blur(10px)}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:750;letter-spacing:.12em;color:var(--verdant-800);min-width:0}
.brand-logo{width:34px;height:34px;display:block;object-fit:contain}
.brand-word{font-size:.94rem;white-space:nowrap}
.top-actions{display:flex;align-items:center;gap:10px}
.user-chip{display:flex;align-items:center;gap:9px;padding:6px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.84rem;font-weight:600}
.user-avatar{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--verdant-100);color:var(--verdant-800);font-size:.72rem;font-weight:750}
.lang-form select{
  appearance:none;-webkit-appearance:none;
  border:1px solid var(--line);
  background-color:#fff;
  background-image:url("../img/chevron-down.794f36b1c0f0.svg");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:16px 16px;
  border-radius:10px;
  padding:8px 34px 8px 11px;
  min-height:38px;
  color:var(--ink);
  font-weight:650;
  cursor:pointer;
  transition:border-color .15s,box-shadow .15s,background-color .15s
}
.lang-form select:hover{border-color:#b7c6bc;background-color:var(--verdant-50)}
.lang-form select:focus{outline:0;border-color:var(--verdant-600);box-shadow:0 0 0 3px rgba(47,125,74,.12)}

.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:calc(100vh - var(--topbar))}
.sidebar{background:linear-gradient(180deg,var(--verdant-900),#0d3521);color:#eff6f1;padding:18px 12px 24px;position:sticky;top:var(--topbar);height:calc(100vh - var(--topbar));overflow:auto;border-right:1px solid rgba(255,255,255,.04)}
.nav-group{margin-bottom:24px}
.nav-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.13em;color:#99b4a3;padding:6px 12px 8px;font-weight:700}
.nav-link{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;color:#e9f2ec;font-weight:580;margin:2px 0;min-height:42px;position:relative}
.nav-link:hover{background:rgba(255,255,255,.075)}
.nav-link.active{background:rgba(255,255,255,.13);color:#fff;font-weight:680}
.nav-link.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:999px;background:#8cc79e}
.nav-icon{width:20px;display:grid;place-items:center;color:#b9d1c0}

.main{padding:28px 30px 42px;min-width:0;max-width:1800px;width:100%;margin:0 auto}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}
.page-heading{min-width:0}
.page-title{font-size:1.86rem;line-height:1.18;font-weight:720;letter-spacing:-.025em;margin:0;color:var(--verdant-900)}
.page-subtitle{color:var(--muted);margin:6px 0 0;font-size:.94rem}
.page-actions,.action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.action-row{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:9px 14px;font-weight:650;min-height:44px;line-height:1.2;transition:background .16s,border-color .16s,transform .08s;color:inherit}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--verdant-800);color:white;border-color:var(--verdant-800)}
.btn-primary:hover{background:var(--verdant-900);border-color:var(--verdant-900)}
.btn-secondary{background:#fff;color:var(--verdant-800);border-color:var(--line-strong)}
.btn-secondary:hover{background:var(--verdant-50);border-color:#b9c8bd}
.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn-ghost:hover{background:var(--surface-2);color:var(--ink)}
.btn-danger{background:#fff;color:var(--danger);border-color:#e9baba}
.btn-danger:hover{background:#fff3f3}
.btn-block{width:100%}
.btn-icon{width:44px;padding:0}
.btn-lg{min-height:52px;padding:12px 18px;font-size:1rem}

.grid{display:grid;gap:16px}
.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm);min-width:0}
.kpi-label{font-size:.79rem;color:var(--muted);font-weight:650;margin-bottom:7px}
.kpi-value{font-size:1.8rem;line-height:1.1;font-weight:730;letter-spacing:-.025em;color:var(--verdant-900)}
.kpi-note{font-size:.78rem;color:var(--muted);margin-top:6px}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}
.card-head{padding:15px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff}
.card-title{font-weight:690;color:var(--verdant-900);font-size:1rem}
.section-subtitle{font-size:.78rem;color:var(--muted);margin-top:3px}
.card-body{padding:18px}
.card-quiet{box-shadow:none}
.section-space{margin-top:20px}
.split{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:18px}

.toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.toolbar .form-control{width:auto;min-width:180px}
.search-wrap{position:relative;min-width:260px;max-width:520px;width:100%}
.search-wrap .ui-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}
.search-wrap .form-control{padding-left:40px}

.table-wrap{overflow:auto}
table{border-collapse:separate;border-spacing:0;width:100%;min-width:720px}
th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{font-size:.72rem;letter-spacing:.035em;color:var(--muted);font-weight:700;background:#fafcfb;position:sticky;top:0;z-index:1}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover td{background:#fbfdfb}
.amount,.numeric{text-align:right}
.table-secondary{font-size:.76rem;color:var(--muted);margin-top:2px}
.table-link{font-weight:680;color:var(--verdant-800)}
.table-actions{display:flex;gap:6px;justify-content:flex-end}

.status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:700;background:#eef2ef;color:#435148;white-space:nowrap}
.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.7}
.status-COLLECTED,.status-COMPLETED,.status-PAID,.status-ACTIVE,.status-AVAILABLE,.status-RECEIVED,.status-DISPOSED,.status-CONFIRMED{background:#e7f4eb;color:#176032}
.status-EXCEPTION,.status-SKIPPED,.status-OVERDUE,.status-FAILED,.status-OUT{background:#fceaea;color:#992b2b}
.status-PLANNED,.status-ISSUED,.status-EN_ROUTE,.status-ARRIVED,.status-ASSIGNED,.status-IN_USE,.status-IN_TRANSIT{background:#e9f1f6;color:#225f7e}
.status-DRAFT,.status-PARTIAL,.status-MAINTENANCE,.status-PENDING{background:#fff4d8;color:#835d0e}

.form-card{max-width:980px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.form-row{display:flex;flex-direction:column;gap:6px;min-width:0}
.form-row label{font-weight:620;font-size:.84rem;color:#334239}
.form-control{width:100%;border:1px solid #cdd8d0;background:#fff;border-radius:9px;padding:10px 11px;min-height:44px;color:var(--ink);transition:border-color .15s,box-shadow .15s,background-color .15s}
select.form-control{
  appearance:none;-webkit-appearance:none;
  background-color:#fff;
  background-image:url("../img/chevron-down.794f36b1c0f0.svg");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px 18px;
  padding-right:42px;
  cursor:pointer
}
select.form-control:hover{background-color:#fbfdfb}
select.form-control:disabled{cursor:not-allowed;opacity:.7;background-color:#f3f6f4}
.form-control:hover{border-color:#b7c6bc}
.form-control:focus{outline:0;border-color:var(--verdant-600);box-shadow:0 0 0 3px rgba(47,125,74,.12)}
textarea.form-control{min-height:96px;resize:vertical}
.form-check-input{width:18px;height:18px;accent-color:var(--verdant-700)}
.helptext{font-size:.74rem;color:var(--muted)}
.errorlist{margin:0;padding-left:18px;color:var(--danger);font-size:.8rem}
fieldset{border:0;margin:0;padding:0}
.checkbox-list ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.checkbox-list label{display:flex;align-items:center;gap:8px}

.alert{padding:12px 14px;border-radius:10px;margin-bottom:14px;font-weight:600;border:1px solid transparent}
.alert-success{background:#e7f4eb;color:#176032;border-color:#c7e2cf}
.alert-warning{background:#fff5db;color:#7a560e;border-color:#eedca7}
.alert-error{background:#fceaea;color:#942828;border-color:#efc6c6}

.muted{color:var(--muted)}
.big-number{font-size:2rem;font-weight:730;color:var(--verdant-900)}
.meta{display:flex;flex-wrap:wrap;gap:8px 15px;color:var(--muted);font-size:.84rem;align-items:center}
.meta-item{display:inline-flex;align-items:center;gap:5px}
.empty{padding:36px 22px;text-align:center;color:var(--muted)}
.empty-title{font-weight:680;color:var(--ink);font-size:1rem;margin-bottom:4px}
.progress{height:8px;background:#e7ede9;border-radius:999px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--verdant-600);border-radius:999px;transition:width .2s}
.progress-lg{height:10px}
.progress-label{display:flex;justify-content:space-between;gap:10px;font-size:.78rem;color:var(--muted);margin-bottom:7px}

.tabs{display:flex;gap:4px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:20px}
.tabs a{padding:10px 12px;font-size:.84rem;font-weight:630;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}
.tabs a:hover,.tabs a.active{color:var(--verdant-800);border-bottom-color:var(--verdant-600)}

.ops-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.45fr);gap:18px}
.ops-map{min-height:330px;border-radius:10px;background:
 linear-gradient(rgba(18,63,38,.03) 1px,transparent 1px),
 linear-gradient(90deg,rgba(18,63,38,.03) 1px,transparent 1px),
 radial-gradient(circle at 55% 40%,#e8f2eb 0,#f4f8f5 55%,#eef3ef 100%);
 background-size:26px 26px,26px 26px,auto;position:relative;overflow:hidden;border:1px solid var(--line)}
.ops-map:before,.ops-map:after{content:"";position:absolute;border-radius:999px;background:rgba(47,125,74,.13)}
.ops-map:before{width:420px;height:120px;left:8%;top:38%;transform:rotate(-18deg)}
.ops-map:after{width:330px;height:86px;right:6%;top:20%;transform:rotate(29deg)}
.map-pin{position:absolute;width:18px;height:18px;border:4px solid white;background:var(--verdant-600);border-radius:50%;box-shadow:0 2px 9px rgba(10,46,27,.22);z-index:2}
.map-pin.p1{left:22%;top:36%}.map-pin.p2{left:47%;top:55%}.map-pin.p3{left:68%;top:28%}.map-pin.p4{left:76%;top:65%}
.map-legend{position:absolute;left:14px;bottom:14px;right:14px;background:rgba(255,255,255,.91);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:10px;padding:10px 12px;z-index:3;display:flex;gap:14px;flex-wrap:wrap;font-size:.78rem;color:var(--muted)}
.map-legend strong{color:var(--ink)}
.exception-list{display:grid;gap:10px}
.exception-item{display:flex;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.exception-item .ui-icon{color:var(--warning);margin-top:2px}

.dispatch-layout{display:grid;grid-template-columns:minmax(250px,.65fr) minmax(360px,1.2fr) minmax(270px,.65fr);gap:16px;align-items:start}
.dispatch-column{min-width:0}
.dispatch-map{min-height:560px}
.route-mini{display:block;padding:12px 0;border-bottom:1px solid var(--line)}
.route-mini:last-child{border-bottom:0}
.route-mini:hover .route-mini-title{color:var(--verdant-700)}
.route-mini-title{font-weight:680}

.job-list{display:grid;gap:12px}
.job-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;transition:border-color .15s,box-shadow .15s}
.job-card:hover{border-color:#bccdc1;box-shadow:var(--shadow-sm)}
.job-card.current{border-color:#87b796;box-shadow:0 0 0 3px rgba(47,125,74,.08)}
.job-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.job-seq{width:34px;height:34px;background:var(--verdant-800);color:white;border-radius:9px;display:grid;place-items:center;font-weight:750;flex:0 0 auto}
.job-name{font-weight:700;font-size:1rem;line-height:1.25}
.job-address{color:var(--muted);font-size:.86rem;margin-top:4px}
.job-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}

.driver-shell{max-width:920px;margin:0 auto;padding:14px 16px 100px}
.driver-header{background:linear-gradient(135deg,var(--verdant-900),var(--verdant-700));color:#fff;margin:-14px -16px 18px;padding:18px 18px 20px;position:sticky;top:0;z-index:20;box-shadow:0 8px 24px rgba(8,39,25,.16)}
.driver-header .brand{color:#fff;letter-spacing:.1em}
.driver-header .brand-logo{filter:none}
.driver-title{margin:16px 0 4px;font-size:1.5rem;line-height:1.2;font-weight:700;letter-spacing:-.015em}
.driver-subtitle{color:#d4e4d8;font-size:.9rem}
.driver-stat{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.driver-pill{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.19);border-radius:999px;padding:7px 10px;font-size:.78rem;font-weight:650}
.driver-progress{margin-top:14px}
.driver-progress .progress{background:rgba(255,255,255,.17)}
.driver-progress .progress span{background:#b8dfc3}
.driver-progress-label{display:flex;justify-content:space-between;color:#dceade;font-size:.78rem;margin-bottom:6px}
.driver-actions{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));z-index:30;display:flex;gap:9px}
.driver-actions .btn{flex:1;min-height:54px}
.driver-primary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.driver-action{min-height:64px;font-size:1.03rem}
.driver-action-success{background:var(--verdant-800);color:#fff;border-color:var(--verdant-800)}
.driver-action-alert{background:#fff8e8;color:#7d560d;border-color:#e9d59d}
.driver-panel{margin-top:14px}
.driver-fieldset{display:none;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.driver-fieldset.active{display:block}
.driver-nav-btn{display:flex;justify-content:center;align-items:center;gap:8px;min-height:52px;background:#eef5f0;border:1px solid #cfe0d4;border-radius:10px;color:var(--verdant-800);font-weight:680}
.driver-address{font-size:1.05rem;font-weight:650;color:var(--ink);line-height:1.4}

.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);background:#fff}
.login-visual{background:
 radial-gradient(circle at 18% 20%,rgba(129,190,145,.16),transparent 28%),
 radial-gradient(circle at 78% 72%,rgba(122,177,139,.11),transparent 28%),
 linear-gradient(145deg,#082719,#164d2f 58%,#1d5b35);
 color:#fff;padding:72px clamp(42px,6vw,92px);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.login-visual:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(255,255,255,.07);border-radius:50%;right:-170px;bottom:-180px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}
.login-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.login-logo{width:58px;height:58px;filter:none}
.login-brand-word{font-size:1.2rem;font-weight:750;letter-spacing:.18em}
.login-copy{position:relative;z-index:1;max-width:640px;margin-top:44px}
.login-copy h1{font-size:clamp(2.4rem,4vw,4rem);line-height:1.02;letter-spacing:-.04em;margin:0 0 18px;font-weight:720}
.login-copy p{color:#d9e9dd;font-size:1.03rem;line-height:1.65;max-width:58ch}
.login-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:34px;max-width:560px}
.login-feature{display:flex;align-items:center;gap:10px;color:#e6f1e9;font-size:.86rem}
.login-feature .ui-icon{color:#a8d2b4}
.login-panel{display:grid;place-items:center;padding:38px;background:#fbfcfb}
.login-box{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px;box-shadow:0 18px 50px rgba(8,39,25,.08)}
.login-mobile-brand{display:none;text-align:center;margin-bottom:24px}
.login-mobile-brand img{width:54px;height:54px}
.login-box h2{margin:0;color:var(--verdant-900);font-size:1.65rem;font-weight:720;letter-spacing:-.02em}
.login-box .form-row{margin:16px 0}
.login-box .btn{margin-top:4px}

.mobile-nav{display:none}

@media(max-width:1280px){
  .main{padding:24px}
  .ops-layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr)}
  .dispatch-layout{grid-template-columns:minmax(250px,.72fr) minmax(390px,1.28fr)}
  .dispatch-layout>.dispatch-column:last-child{grid-column:1/-1}
}
@media(max-width:1050px){
  .kpis{grid-template-columns:repeat(2,1fr)}
  .split,.ops-layout{grid-template-columns:1fr}
  .dispatch-layout{grid-template-columns:1fr 1fr}
  .dispatch-map{grid-column:1/-1;min-height:420px;order:-1}
}
@media(max-width:820px){
  :root{--topbar:60px}
  .topbar{padding:0 14px}
  .shell{display:block}
  .sidebar{display:none}
  .main{padding:18px 14px 92px}
  .mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.98);backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:50;padding:6px 5px calc(5px + env(safe-area-inset-bottom))}
  .mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.72rem;color:#526258;font-weight:600;padding:6px 2px;min-height:52px}
  .mobile-nav a.active{color:var(--verdant-800)}
  .page-head{align-items:flex-start;margin-bottom:18px}
  .page-title{font-size:1.5rem}
  .page-actions{width:100%}
  .page-head{flex-wrap:wrap}
  .form-grid{grid-template-columns:1fr}
  .toolbar{align-items:stretch}
  .toolbar>*{width:100%}
  .toolbar .form-control{width:100%}
  .customer-summary-grid{grid-template-columns:1fr!important}
  .dispatch-layout{grid-template-columns:1fr}
  .dispatch-map{grid-column:auto;min-height:320px}
  .table-wrap.mobile-cards table{min-width:0}
  .top-actions .user-chip{display:none}
  .login-page{grid-template-columns:1fr}
  .login-visual{display:none}
  .login-panel{min-height:100vh;padding:20px}
  .login-mobile-brand{display:block}
  .login-box{padding:26px 22px}
  .driver-shell{padding-left:12px;padding-right:12px}
  .driver-header{margin-left:-12px;margin-right:-12px;padding-left:14px;padding-right:14px}
}
@media(max-width:560px){
  .kpis{grid-template-columns:1fr 1fr;gap:10px}
  .kpi{padding:14px}
  .kpi-value{font-size:1.48rem}
  .btn{min-height:46px}
  .driver-primary-grid{grid-template-columns:1fr}
  .driver-action{min-height:60px}
  .job-top{flex-direction:column}
  .job-top>.status{align-self:flex-start}
  .page-actions .btn{flex:1}
  .search-wrap{min-width:0}
}
@media(max-width:390px){
  .kpis{grid-template-columns:1fr}
  .mobile-nav a{font-size:.68rem}
  .brand-word{font-size:.84rem}
}

a:focus-visible,button:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(47,125,74,.3);outline-offset:2px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Verdant UI finishing pass */
.kpi-critical .kpi-value{color:var(--danger)}
.status-SENT{background:#e7f4eb;color:#176032}
.status-QUEUED{background:#fff4d8;color:#835d0e}
.status-CANCELLED,.status-REVERSED{background:#f1f2f1;color:#606b63}
.status-LOADED{background:#e9f1f6;color:#225f7e}
.customer-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.subnav{display:flex;gap:4px;overflow:auto;border-bottom:1px solid var(--line);margin:-4px 0 20px}
.subnav a{padding:10px 12px;font-size:.84rem;font-weight:630;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}
.subnav a:hover,.subnav a.active{color:var(--verdant-800);border-bottom-color:var(--verdant-600)}
.btn-sm{min-height:36px;padding:7px 10px;font-size:.82rem}
.table-primary{font-weight:680;color:var(--ink)}
.driver-header .brand-logo,.login-logo{filter:none}
@media(max-width:820px){.customer-summary-grid{grid-template-columns:1fr}}


/* Premium shell refinement — 2026-09 */
:root{
  --bg:#f6f8f7;
  --surface:#ffffff;
  --surface-2:#f7faf8;
  --line:#e2e8e4;
  --line-strong:#d3ddd6;
  --ink:#152119;
  --muted:#68756d;
  --subtle:#8b978f;
  --sidebar:260px;
  --topbar:70px;
  --shadow-sm:0 1px 2px rgba(14,35,23,.035),0 6px 18px rgba(14,35,23,.035);
}
html{
  font-family:"Segoe UI Variable Text","Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14.5px;
  line-height:1.5;
  font-feature-settings:"kern" 1,"liga" 1;
}
.page-title,.kpi-value,.big-number,.driver-title,.login-copy h1{
  font-family:"Segoe UI Variable Display","Inter","SF Pro Display","Segoe UI",sans-serif;
}
.topbar{
  height:var(--topbar);
  padding:0 24px;
  border-bottom:1px solid #e7ece9;
  box-shadow:0 1px 0 rgba(15,40,25,.015);
}
.brand{gap:11px;font-weight:720;letter-spacing:.115em}
.brand-logo{width:31px;height:31px}
.brand-word{font-size:.9rem}
.top-actions{gap:8px}
.user-chip{
  min-height:40px;
  padding:4px 12px 4px 5px;
  border-color:#e1e8e3;
  background:#fbfcfb;
  box-shadow:0 1px 1px rgba(12,40,24,.02);
  font-size:.82rem;
  font-weight:620
}
.user-avatar{width:30px;height:30px;font-size:.72rem;background:#eaf4ed}
.lang-form select{min-width:64px}

.shell{grid-template-columns:var(--sidebar) minmax(0,1fr)}
.sidebar{
  display:flex;
  flex-direction:column;
  padding:18px 12px 14px;
  background:linear-gradient(180deg,#0b3523 0%,#082f1f 100%);
  border-right:1px solid rgba(255,255,255,.055);
  box-shadow:inset -1px 0 rgba(0,0,0,.08);
  scrollbar-width:none;
}
.sidebar::-webkit-scrollbar{width:0;height:0}
.sidebar-primary{
  display:flex;
  flex-direction:column;
  gap:clamp(16px,2.15vh,24px);
  min-height:0;
}
.sidebar-footer{
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid rgba(255,255,255,.08);
}
.nav-group{margin:0}
.nav-label{
  padding:0 11px 7px;
  color:rgba(221,238,227,.56);
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.14em;
}
.nav-link{
  min-height:42px;
  margin:2px 0;
  padding:0 11px;
  border-radius:9px;
  color:rgba(245,250,247,.89);
  font-size:.91rem;
  font-weight:590;
  letter-spacing:-.006em;
  transition:background .14s ease,color .14s ease,transform .14s ease;
}
.nav-link:hover{
  background:rgba(255,255,255,.065);
  color:#fff;
}
.nav-link.active{
  background:rgba(255,255,255,.105);
  color:#fff;
  font-weight:650;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
.nav-link.active:before{
  left:0;
  top:10px;
  bottom:10px;
  width:2px;
  background:#9fd0ad;
}
.nav-icon{
  width:20px;
  color:rgba(211,233,218,.76);
}
.nav-link.active .nav-icon{color:#dff0e4}
.nav-link .ui-icon{width:18px;height:18px;stroke-width:1.75}

.main{
  max-width:1760px;
  padding:30px 30px 48px;
}
.page-head{
  align-items:center;
  margin-bottom:22px;
}
.page-title{
  font-size:1.92rem;
  line-height:1.14;
  font-weight:710;
  letter-spacing:-.037em;
}
.page-subtitle{
  margin-top:7px;
  color:#6f7d74;
  font-size:.92rem;
}
.btn{
  border-radius:10px;
  min-height:42px;
  padding:9px 14px;
  font-size:.9rem;
  font-weight:640;
  box-shadow:none;
}
.btn-primary{
  background:#104b30;
  border-color:#104b30;
  box-shadow:0 1px 2px rgba(8,47,31,.14);
}
.btn-primary:hover{background:#0b3e28;border-color:#0b3e28}
.btn-secondary{
  color:#184a31;
  border-color:#d6dfd9;
  box-shadow:0 1px 1px rgba(11,49,30,.025);
}
.btn-secondary:hover{background:#f7faf8;border-color:#c7d4cb}

.kpis{
  gap:14px;
  margin-bottom:18px;
}
.kpi{
  min-height:112px;
  padding:18px 19px;
  border-radius:13px;
  border-color:#e2e8e4;
  box-shadow:var(--shadow-sm);
}
.kpi-label{
  font-size:.76rem;
  color:#66746b;
  font-weight:650;
  letter-spacing:.005em;
}
.kpi-value{
  margin-top:7px;
  font-size:1.92rem;
  font-weight:700;
  letter-spacing:-.04em;
  color:#0d3c27;
}
.kpi-note{
  margin-top:5px;
  font-size:.76rem;
  color:#718078;
}

.card{
  border-radius:13px;
  border-color:#e1e8e3;
  box-shadow:var(--shadow-sm);
}
.card-quiet{box-shadow:var(--shadow-sm)}
.card-head{
  min-height:68px;
  padding:15px 17px;
  border-color:#e7ece9;
}
.card-title{
  font-size:.97rem;
  font-weight:680;
  letter-spacing:-.012em;
  color:#132d20;
}
.section-subtitle{
  margin-top:3px;
  font-size:.77rem;
  color:#78857d;
}
.card-body{padding:17px}

.ops-layout{
  grid-template-columns:minmax(0,1.62fr) minmax(275px,.48fr);
  gap:16px;
}
.ops-layout>.card,.ops-layout>aside{min-height:430px}
.ops-map{
  min-height:326px;
  border-radius:11px;
  border:1px solid #e1e8e3;
  background:
    linear-gradient(rgba(23,75,48,.027) 1px,transparent 1px),
    linear-gradient(90deg,rgba(23,75,48,.027) 1px,transparent 1px),
    radial-gradient(circle at 50% 45%,#fbfdfb 0,#f4f8f5 68%,#f0f5f1 100%);
  background-size:32px 32px,32px 32px,auto;
}
.ops-map:before,.ops-map:after,.map-pin{display:none}
.map-legend{
  left:12px;right:12px;bottom:12px;
  padding:9px 12px;
  border-radius:9px;
  border-color:#dde6e0;
  background:rgba(255,255,255,.94);
  box-shadow:0 4px 16px rgba(19,55,34,.045);
}
.map-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 24px 64px;
  text-align:center;
  z-index:2;
}
.map-empty-inner{max-width:340px}
.map-empty-icon,.empty-state-icon{
  width:42px;
  height:42px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eaf3ed;
  color:#286947;
}
.map-empty-title{
  font-weight:690;
  color:#173424;
  letter-spacing:-.012em;
}
.map-empty-copy{
  margin:5px auto 0;
  max-width:38ch;
  color:#77837b;
  font-size:.8rem;
}
.exception-list{height:100%}
.empty-premium{
  min-height:300px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  padding:24px;
}
.empty-premium .empty-title{font-size:.95rem}
.empty-premium .muted{max-width:30ch;margin-top:5px;font-size:.8rem}

.section-space{margin-top:16px}
.split{gap:16px}

table{font-size:.88rem}
th{
  padding:11px 14px;
  color:#708078;
  font-size:.68rem;
  letter-spacing:.045em;
  background:#fafcfb;
}
td{padding:12px 14px}
.status{font-size:.69rem;padding:4px 8px}

@media(max-width:1280px){
  .ops-layout{grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr)}
}
@media(max-width:1050px){
  .ops-layout>.card,.ops-layout>aside{min-height:auto}
  .empty-premium{min-height:190px}
}

.nav-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-link .nav-icon+*{min-width:0}

/* Premium authentication experience */
.auth-page{
  grid-template-columns:minmax(520px,54%) minmax(420px,46%);
  min-height:100svh;
  background:#f7f9f8;
}
.auth-visual{
  padding:54px clamp(54px,6vw,96px) 44px;
  justify-content:space-between;
  background:
    radial-gradient(circle at 14% 18%,rgba(129,190,145,.10),transparent 26%),
    radial-gradient(circle at 82% 70%,rgba(155,210,169,.08),transparent 28%),
    linear-gradient(148deg,#0a3523 0%,#10492f 55%,#1a5d3b 100%);
}
.auth-visual:before{
  content:"";
  position:absolute;
  inset:auto -110px -190px auto;
  width:580px;
  height:580px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.055);
  box-shadow:0 0 0 72px rgba(255,255,255,.018),0 0 0 144px rgba(255,255,255,.012);
}
.auth-visual:after{
  width:470px;height:470px;
  right:-230px;bottom:-210px;
  border-color:rgba(255,255,255,.035);
  box-shadow:none;
}
.login-brand{gap:13px}
.login-logo{
  width:52px;height:52px;
  border-radius:13px;
  background:#fff;
  padding:6px;
  box-shadow:0 10px 28px rgba(0,0,0,.10);
}
.login-brand-word{font-size:1rem;font-weight:720;letter-spacing:.19em}
.login-copy{margin-top:0;max-width:620px}
.auth-eyebrow{
  margin-bottom:12px;
  font-size:.68rem;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:700;
  color:#b8d8c2;
}
.auth-eyebrow-dark{color:#577565;margin-bottom:10px}
.login-copy h1{
  max-width:560px;
  font-size:clamp(2.7rem,4vw,3.65rem);
  line-height:1.03;
  letter-spacing:-.047em;
  margin-bottom:18px;
  font-weight:700;
}
.login-copy p{
  max-width:58ch;
  margin:0;
  color:#d8e7dc;
  font-size:.98rem;
  line-height:1.7;
}
.login-feature-list{
  max-width:570px;
  margin-top:30px;
  gap:10px 16px;
}
.login-feature{
  min-height:38px;
  padding:0;
  color:#eaf3ed;
  font-size:.82rem;
  font-weight:550;
}
.login-feature .ui-icon{color:#9cc7a9;stroke-width:1.7}
.auth-visual-footer{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(235,246,238,.64);
  font-size:.76rem;
  letter-spacing:.002em;
}
.auth-panel{
  position:relative;
  min-height:100svh;
  padding:64px 44px;
  background:
    radial-gradient(circle at 80% 22%,rgba(30,87,55,.035),transparent 28%),
    #f8faf9;
}
.auth-language{
  position:absolute;
  top:28px;
  right:30px;
}
.auth-language .lang-form select{
  min-width:108px;
  min-height:40px;
  background-color:rgba(255,255,255,.86);
}
.auth-card{
  width:min(430px,100%);
  border-radius:18px;
  padding:32px 30px 27px;
  border:1px solid #dfe7e2;
  box-shadow:0 20px 58px rgba(17,50,30,.075),0 2px 8px rgba(17,50,30,.03);
}
.auth-icon{
  width:38px;height:38px;
  display:grid;place-items:center;
  margin-bottom:17px;
  border-radius:11px;
  color:#245f40;
  background:#eaf3ed;
  border:1px solid #dce9e0;
}
.auth-card h2{
  font-size:1.68rem;
  line-height:1.15;
  letter-spacing:-.035em;
  font-weight:700;
}
.auth-subtitle{
  margin:7px 0 0;
  color:#6b786f;
  line-height:1.55;
  font-size:.9rem;
}
.auth-form{margin-top:24px}
.auth-field{margin:0 0 17px!important}
.auth-field label{
  font-size:.78rem;
  font-weight:650;
  color:#2a3b31;
}
.auth-label-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  margin-bottom:6px;
}
.auth-label-row label{margin:0}
.auth-link{
  color:#1c6542;
  font-size:.77rem;
  font-weight:650;
  text-decoration:none;
}
.auth-link:hover{text-decoration:underline;text-underline-offset:3px}
.auth-input{
  min-height:48px;
  border-radius:10px;
  border-color:#cfd9d2;
  background:#fbfcfb;
  font-size:.92rem;
  padding:11px 12px;
}
.auth-input:hover{background:#fff;border-color:#bdcbc1}
.auth-input:focus{
  background:#fff;
  border-color:#3f8059;
  box-shadow:0 0 0 3px rgba(47,125,74,.10);
}
.password-input-wrap{position:relative}
.password-input-wrap .auth-input{padding-right:46px}
.password-toggle{
  position:absolute;
  top:50%;right:7px;
  transform:translateY(-50%);
  width:34px;height:34px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#718078;
  display:grid;
  place-items:center;
}
.password-toggle:hover{background:#eef4f0;color:#285f41}
.auth-submit{
  min-height:48px;
  margin-top:5px!important;
  border-radius:10px;
  font-size:.88rem;
  box-shadow:0 7px 18px rgba(13,66,42,.12);
}
.auth-security-note{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #edf1ee;
  color:#849087;
  font-size:.73rem;
}
.auth-alert{margin-top:18px}
.auth-info-box{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:22px;
  padding:13px 14px;
  border:1px solid #dce8df;
  border-radius:11px;
  background:#f4f8f5;
  color:#586b5f;
  font-size:.79rem;
  line-height:1.5;
}
.auth-info-box .ui-icon{flex:0 0 auto;color:#397553;margin-top:1px}
.auth-back{
  margin-top:20px;
  text-align:center;
}
.auth-card .errorlist{
  margin-top:6px;
  list-style:none;
  padding:0;
  font-size:.75rem;
}
.auth-card .helptext{
  display:block;
  margin-top:6px;
  line-height:1.45;
}
@media(max-width:980px){
  .auth-page{grid-template-columns:1fr}
  .auth-visual{display:none}
  .auth-panel{padding:88px 22px 34px}
  .auth-language{top:22px;right:22px}
  .auth-card{padding:28px 24px}
  .login-mobile-brand{display:block}
}
@media(max-width:480px){
  .auth-panel{padding:82px 14px 24px}
  .auth-language{right:14px;top:16px}
  .auth-card{
    width:100%;
    padding:25px 20px 22px;
    border-radius:16px;
    box-shadow:0 12px 36px rgba(17,50,30,.06);
  }
  .auth-card h2{font-size:1.52rem}
}

.nav-external{margin-left:auto;display:grid;place-items:center;color:rgba(211,233,218,.5)}
.nav-link:hover .nav-external{color:rgba(255,255,255,.82)}

/* Self-registration and management approvals */
.auth-register-callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:20px;
  padding:14px;
  border:1px solid #dfe8e2;
  border-radius:12px;
  background:#f7faf8;
}
.auth-register-callout>div{display:grid;gap:2px;min-width:0}
.auth-register-callout strong{font-size:.8rem;color:#244132}
.auth-register-callout span{font-size:.72rem;line-height:1.4;color:#78857d;max-width:31ch}
.auth-register-callout .btn{flex:0 0 auto;min-height:38px;padding:8px 12px;font-size:.78rem}

.registration-page{grid-template-columns:minmax(500px,46%) minmax(560px,54%)}
.registration-panel{padding-top:82px;padding-bottom:54px;overflow:auto}
.registration-card{width:min(650px,100%)}
.registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.registration-full{grid-column:1/-1}
.registration-card textarea.auth-input{min-height:82px;resize:vertical}
.registration-consent{
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:12px 13px;
  margin-top:2px;
  border:1px solid #e1e9e4;
  border-radius:10px;
  color:#68776e;
  background:#fafcfb;
  font-size:.73rem;
  line-height:1.5;
}
.registration-consent .ui-icon{color:#3d7654;flex:0 0 auto;margin-top:1px}
.registration-steps{display:grid;gap:14px;margin-top:32px;max-width:550px}
.registration-steps>div{
  display:grid;
  grid-template-columns:34px 1fr;
  column-gap:12px;
  align-items:center;
}
.registration-steps>div>span{
  grid-row:1/3;
  width:32px;height:32px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  background:rgba(255,255,255,.07);
  color:#dcece1;
  font-size:.75rem;
  font-weight:700;
}
.registration-steps strong{font-size:.83rem;color:#f4f8f5}
.registration-steps small{font-size:.74rem;color:#bcd3c3;margin-top:1px}

.nav-badge{
  margin-left:auto;
  min-width:21px;height:21px;
  padding:0 6px;
  border-radius:999px;
  display:grid;place-items:center;
  background:#dff0e4;
  color:#154c30;
  font-size:.67rem;
  font-weight:750;
}
.approval-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.approval-tabs{
  display:flex;
  gap:6px;
  margin:0 0 14px;
  padding:4px;
  width:max-content;
  max-width:100%;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:11px;
  background:#eef3ef;
}
.approval-tabs a{
  padding:8px 12px;
  border-radius:8px;
  color:#66746b;
  font-size:.78rem;
  font-weight:650;
  white-space:nowrap;
}
.approval-tabs a.active{
  background:#fff;
  color:#17472f;
  box-shadow:0 1px 4px rgba(15,50,30,.08);
}
.approval-table{min-width:1080px}
.approval-address{max-width:260px;white-space:normal;line-height:1.4;color:#53645a}
.approval-category{
  display:inline-flex;
  padding:5px 8px;
  border:1px solid #dce6df;
  border-radius:8px;
  background:#f7faf8;
  font-size:.74rem;
  font-weight:650;
  color:#345341;
}
.approval-actions{display:flex;justify-content:flex-end;gap:7px;align-items:center}
.approval-actions form{margin:0}
.approval-actions .btn{min-height:36px;padding:7px 10px;font-size:.75rem}
.status-APPROVED{background:#e7f4eb;color:#176032}
.status-REJECTED{background:#fceaea;color:#992b2b}
.status-PENDING{background:#fff4d8;color:#835d0e}

.client-account-page{background:var(--bg);min-height:100vh}
.client-account-shell{width:min(760px,calc(100% - 28px));margin:52px auto;display:grid;gap:16px}
.client-welcome h1{margin:0;font-size:1.8rem;color:var(--verdant-900);letter-spacing:-.03em}
.client-welcome p{margin-top:8px;color:var(--muted);max-width:62ch}
.client-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.client-profile-grid>div{display:grid;gap:4px}
.client-profile-grid span{font-size:.72rem;color:var(--muted);font-weight:650}
.client-profile-grid strong{font-size:.9rem}
.client-profile-wide{grid-column:1/-1}

@media(max-width:980px){
  .registration-page{grid-template-columns:1fr}
  .registration-panel{padding-top:88px}
  .registration-card{width:min(650px,100%)}
}
@media(max-width:620px){
  .registration-grid{grid-template-columns:1fr}
  .registration-full{grid-column:auto}
  .auth-register-callout{align-items:flex-start;flex-direction:column}
  .auth-register-callout .btn{width:100%}
  .approval-kpis{grid-template-columns:1fr}
  .client-profile-grid{grid-template-columns:1fr}
  .client-profile-wide{grid-column:auto}
}

/* Client finance portal */
.client-portal-shell{width:min(1180px,calc(100% - 36px));margin:38px auto 56px}
.client-hero{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  margin-bottom:18px;padding:6px 2px 2px;
}
.client-hero h1{margin:0;font-size:2rem;line-height:1.08;letter-spacing:-.04em;color:#153723}
.client-hero p{margin:7px 0 0;color:var(--muted)}
.client-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.client-kpis .kpi{min-height:108px}
.client-payment-shell{width:min(620px,calc(100% - 28px));margin:86px auto}
.client-payment-card h1{margin:0;font-size:1.65rem;letter-spacing:-.03em;color:#183823}
.client-payment-card p{color:var(--muted);line-height:1.6}
.client-payment-summary{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  margin-top:20px;padding:14px 15px;border:1px solid var(--line);border-radius:11px;background:#f7faf8
}
.client-payment-summary span{font-size:.78rem;color:var(--muted);font-weight:650}
.client-payment-summary strong{font-size:1rem;color:#143b25}
.approval-form{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.approval-customer-select{min-width:200px;max-width:260px;min-height:36px!important;padding-top:7px!important;padding-bottom:7px!important;font-size:.75rem}
@media(max-width:1050px){
  .client-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .client-portal-shell{width:min(100% - 22px,1180px);margin-top:24px}
  .client-kpis{grid-template-columns:1fr}
  .client-hero{flex-direction:column}
  .approval-form{align-items:stretch;flex-direction:column}
  .approval-customer-select{min-width:180px;max-width:none}
}


/* Verdant responsive hardening — 2026-09-25 */
.btn,.btn-sm,.approval-actions .btn,.auth-register-callout .btn,.lang-form select{
  min-height:44px;
}
.password-toggle{
  width:40px;
  height:40px;
  right:4px;
}

/* Collapse the desktop shell on portrait tablets and smaller.
   This final block intentionally comes after the premium shell rules
   so later desktop declarations cannot re-enable the sidebar. */
@media(max-width:1024px){
  :root{--topbar:60px}
  .topbar{padding:0 14px}
  .shell{display:block}
  .sidebar{display:none!important}
  .main{
    max-width:none;
    width:100%;
    margin:0;
    padding:18px 14px calc(92px + env(safe-area-inset-bottom));
  }
  .mobile-nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
    z-index:50;
    padding:6px 5px calc(5px + env(safe-area-inset-bottom));
    box-shadow:0 -6px 22px rgba(12,40,24,.055);
  }
  .mobile-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    min-height:52px;
    padding:6px 2px;
    font-size:.72rem;
    font-weight:600;
    color:#526258;
    text-align:center;
  }
  .mobile-nav a span{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .mobile-nav a.active{color:var(--verdant-800)}
  .page-head{
    align-items:flex-start;
    flex-wrap:wrap;
    margin-bottom:18px;
  }
  .page-title{font-size:1.6rem}
  .page-actions{width:100%}
  .form-grid{grid-template-columns:1fr}
  .toolbar{align-items:stretch}
  .toolbar>*{width:100%}
  .toolbar .form-control{width:100%}
  .search-wrap{min-width:0;max-width:none}
  .customer-summary-grid{grid-template-columns:1fr!important}
  .dispatch-layout{grid-template-columns:1fr}
  .dispatch-map{grid-column:auto;min-height:320px}
  .ops-layout{grid-template-columns:1fr}
  .ops-layout>.card,.ops-layout>aside{min-height:auto}
  .top-actions .user-chip{display:none}
  .card-head{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .card-head>form{max-width:100%}
}

/* Compact phone refinement. */
@media(max-width:560px){
  .main{padding-left:12px;padding-right:12px}
  .topbar{padding-left:12px;padding-right:12px}
  .page-actions .btn{flex:1 1 100%}
  .card-head>.btn{width:100%}
  .card-head>form{width:100%}
  .card-head>form .form-control{width:100%}
  .mobile-nav a{font-size:.69rem}
  .brand-word{font-size:.84rem}
}

/* Mobile-card tables: opt-in via .mobile-cards on the table wrapper. */
@media(max-width:700px){
  .table-wrap.mobile-cards{overflow:visible}
  .table-wrap.mobile-cards table,
  .table-wrap.mobile-cards tbody,
  .table-wrap.mobile-cards tr,
  .table-wrap.mobile-cards td{
    display:block;
    width:100%;
  }
  .table-wrap.mobile-cards table{min-width:0}
  .table-wrap.mobile-cards thead{display:none}
  .table-wrap.mobile-cards tbody{
    display:grid;
    gap:12px;
    padding:12px;
  }
  .table-wrap.mobile-cards tr{
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    padding:7px 12px;
    box-shadow:var(--shadow-sm);
  }
  .table-wrap.mobile-cards td{
    display:grid;
    grid-template-columns:minmax(92px,38%) minmax(0,1fr);
    gap:12px;
    align-items:start;
    padding:8px 0;
    border-bottom:1px solid #edf1ee;
    text-align:left!important;
    overflow-wrap:anywhere;
  }
  .table-wrap.mobile-cards td:last-child{border-bottom:0}
  .table-wrap.mobile-cards td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:.71rem;
    font-weight:700;
    line-height:1.35;
  }
  .table-wrap.mobile-cards td[colspan]{
    display:block!important;
    padding:20px 8px;
    border-bottom:0;
  }
  .table-wrap.mobile-cards td[colspan]::before{display:none}
  .table-wrap.mobile-cards .table-actions{
    justify-content:flex-start;
    width:100%;
  }
  .table-wrap.mobile-cards .table-actions .btn{width:100%}
}


/* ============================================================
   Client collection ordering + tracking — 2026-09-25
   ============================================================ */
.client-collection-workspace{
  display:grid;
  gap:14px;
  margin-top:2px;
}
.client-collection-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:3px 2px 0;
}
.client-collection-section-head h2{
  margin:4px 0 5px;
  font-size:1.42rem;
  line-height:1.15;
  font-weight:690;
  letter-spacing:-.025em;
  color:#153723;
}
.client-collection-section-head p{
  margin:0;
  max-width:720px;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.52;
}
.client-collection-section-head>.btn{
  flex:0 0 auto;
}
.client-collection-grid{
  display:grid;
  grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  gap:14px;
}
.client-current-collection,
.client-planned-collections,
.client-collection-request-card{
  overflow:hidden;
}
.client-current-collection .card-head,
.client-planned-collections .card-head,
.client-collection-request-card .card-head{
  min-height:66px;
  padding:14px 16px;
}
.client-collection-count{
  min-width:32px;
  min-height:28px;
  display:grid;
  place-items:center;
  padding:0 8px;
  border-radius:999px;
  background:#eef5f0;
  color:#2f5c3d;
  font-size:.74rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.client-collection-list{
  display:grid;
  gap:9px;
  padding:11px 12px 12px;
}
.client-collection-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:11px;
  align-items:start;
  padding:12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
}
.client-collection-item.is-current{
  border-color:#cfe2d5;
  background:#fbfefc;
}
.client-collection-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#edf6f0;
  color:#1f6a3d;
}
.client-collection-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
}
.client-collection-title-row strong{
  min-width:0;
  font-size:.9rem;
  font-weight:680;
  color:#183823;
}
.client-collection-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  margin-top:5px;
  color:#677970;
  font-size:.76rem;
}
.client-collection-route{
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #edf1ee;
  color:#486354;
  font-size:.72rem;
  font-weight:620;
}
.client-collection-empty{
  display:grid;
  justify-items:center;
  gap:6px;
  padding:24px 16px;
  text-align:center;
}
.client-collection-empty.compact{
  padding:18px 14px;
}
.client-collection-empty strong{
  color:#244831;
  font-size:.86rem;
}
.client-collection-empty span{
  max-width:42ch;
  color:var(--muted);
  font-size:.75rem;
  line-height:1.45;
}
.client-collections-table{
  min-width:720px;
}
.client-collections-table td{
  vertical-align:middle;
}
.client-requested-badge,
.client-request-label{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 8px;
  border-radius:999px;
  background:#edf6f0;
  color:#245e38;
  font-size:.7rem;
  font-weight:700;
  white-space:nowrap;
}
.client-collection-request-card{
  scroll-margin-top:86px;
}
.client-collection-request-form{
  padding:16px;
}
.client-request-form-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px 14px;
}
.client-request-form-grid label{
  display:grid;
  gap:6px;
  min-width:0;
}
.client-request-form-grid label>span{
  color:#405b49;
  font-size:.75rem;
  font-weight:650;
}
.client-request-form-grid .form-control{
  width:100%;
  min-height:44px;
}
.client-request-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.client-request-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  max-width:720px;
  color:#6a7b71;
  font-size:.75rem;
  line-height:1.45;
}
.client-request-note .ui-icon{
  flex:0 0 16px;
  margin-top:1px;
  color:#547965;
}
.client-request-unavailable{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:14px 16px 16px;
  padding:14px;
  border:1px solid #e3e9e4;
  border-radius:11px;
  background:#f8faf8;
}
.client-request-unavailable>div:last-child{
  display:grid;
  gap:4px;
}
.client-request-unavailable strong{
  color:#284b33;
  font-size:.84rem;
}
.client-request-unavailable span{
  color:var(--muted);
  font-size:.76rem;
  line-height:1.45;
}

@media(max-width:980px){
  .client-collection-grid{
    grid-template-columns:1fr;
  }
  .client-request-form-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .client-collection-section-head{
    align-items:stretch;
    flex-direction:column;
  }
  .client-collection-section-head>.btn{
    width:100%;
  }
  .client-request-form-grid{
    grid-template-columns:1fr;
  }
  .client-request-footer{
    align-items:stretch;
    flex-direction:column;
  }
  .client-request-footer .btn{
    width:100%;
  }
  .client-collection-title-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .client-collections-table{
    min-width:0;
  }
}


/* ============================================================
   Client collection history + proof of service — 2026-09-25
   ============================================================ */
.client-collection-history{
  overflow:hidden;
}
.client-history-table{
  min-width:940px;
}
.client-history-table th,
.client-history-table td{
  vertical-align:middle;
}
.client-history-table td:first-child strong,
.client-history-table td:nth-child(3) strong,
.client-history-table td.amount strong{
  color:#244831;
  font-weight:680;
}
.client-history-table td.amount{
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.client-proof-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:40px;
  padding:7px 10px;
  white-space:nowrap;
}
.client-proof-missing{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2f4f3;
  color:#7a8980;
  font-size:.7rem;
  font-weight:650;
  white-space:nowrap;
}
.client-history-note{
  padding:10px 15px;
  border-top:1px solid var(--line);
  background:#fafcfa;
  color:#718177;
  font-size:.72rem;
}
@media(max-width:700px){
  .client-history-table{
    min-width:0;
  }
  .client-proof-btn{
    width:100%;
    min-height:44px;
  }
}


/* ============================================================
   Driver job operational timeline — 2026-09-25
   ============================================================ */
.driver-header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.driver-job-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-top:15px;
}
.driver-job-heading .driver-title{
  margin:0 0 4px;
}
.driver-current-status{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  max-width:48%;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:.72rem;
  font-weight:700;
  line-height:1.3;
  text-align:center;
}
.driver-location-card,
.driver-destination-card,
.driver-status-card,
.driver-next-action-card{
  margin-bottom:14px;
}
.driver-location-label{
  margin-bottom:5px;
  color:#63806c;
  font-size:.68rem;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.driver-location-note{
  margin-top:5px;
}
.driver-location-alert{
  margin-top:11px;
}
.driver-job-meta{
  margin-top:11px;
}
.driver-location-nav{
  margin-top:13px;
}
.driver-destination-card{
  border-color:#d8e5dc;
  background:#fbfdfb;
}

.driver-timeline-progress{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef5f0;
  color:#28593a;
  font-size:.7rem;
  font-weight:700;
}
.driver-status-timeline{
  padding:12px 16px 16px;
}
.driver-status-step{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:11px;
  min-height:64px;
}
.driver-status-step:not(:last-child)::before{
  content:"";
  position:absolute;
  left:16px;
  top:33px;
  bottom:-1px;
  width:2px;
  background:#e2e8e4;
}
.driver-status-step.is-done:not(:last-child)::before{
  background:#afd0ba;
}
.driver-step-marker{
  position:relative;
  z-index:1;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #d9e2dc;
  border-radius:50%;
  background:#fff;
  color:#7a8980;
  font-size:.72rem;
  font-weight:700;
}
.driver-status-step.is-done .driver-step-marker{
  border-color:#acd0b8;
  background:#eaf5ed;
  color:#24633a;
}
.driver-status-step.is-next .driver-step-marker{
  border-color:#4f8e62;
  box-shadow:0 0 0 4px rgba(47,125,74,.10);
  color:#235f37;
}
.driver-status-step.is-current .driver-step-marker{
  background:#1d5b35;
  border-color:#1d5b35;
  color:#fff;
}
.driver-step-content{
  min-width:0;
  padding:3px 0 13px;
}
.driver-step-title{
  color:#254532;
  font-size:.85rem;
  font-weight:680;
  line-height:1.35;
}
.driver-status-step.is-future .driver-step-title{
  color:#87958c;
  font-weight:620;
}
.driver-step-time{
  margin-top:3px;
  color:#566b5d;
  font-size:.72rem;
  font-variant-numeric:tabular-nums;
}
.driver-step-user,
.driver-step-pending{
  margin-top:2px;
  color:#8a978f;
  font-size:.68rem;
}
.driver-status-step.is-next .driver-step-pending{
  color:#2e6b42;
  font-weight:700;
}

.driver-next-action-card .card-body{
  padding:16px;
}
.driver-collection-evidence{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  margin-bottom:13px;
  padding:13px;
  border:1px solid #dce8df;
  border-radius:10px;
  background:#f8fbf9;
}
.driver-note-row{
  margin-top:0;
}
.driver-next-status-btn{
  min-height:58px;
  margin-top:14px;
  font-size:.94rem;
}
.driver-incident-panel{
  margin-top:14px;
  border:1px solid #eadfc2;
  border-radius:10px;
  background:#fffdf7;
  overflow:hidden;
}
.driver-incident-panel summary{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  cursor:pointer;
  color:#805d17;
  font-size:.8rem;
  font-weight:680;
  list-style:none;
}
.driver-incident-panel summary::-webkit-details-marker{display:none}
.driver-incident-fields{
  display:grid;
  gap:12px;
  padding:0 12px 12px;
  border-top:1px solid #eee4cb;
}
.driver-incident-fields>.form-row:first-child{
  padding-top:12px;
}
.driver-gps-info{
  margin-top:13px;
  font-size:.71rem;
  text-align:center;
}
.driver-job-complete-state{
  display:grid;
  justify-items:center;
  gap:8px;
  padding:18px 8px 6px;
  text-align:center;
}
.driver-job-complete-state strong{
  color:#245637;
  font-size:.96rem;
}
.driver-job-complete-state span{
  max-width:44ch;
  color:#738278;
  font-size:.77rem;
  line-height:1.45;
}
.driver-job-complete-state .btn{
  width:100%;
  margin-top:7px;
}
.driver-disposal-pending{
  border-color:#ddcfaa;
  background:#fff9e9;
  color:#775511;
}

/* Detailed job-status colours */
.status-op-CREATED{
  background:#f0f2f1;
  color:#66736a;
}
.status-op-RECEIVED{
  background:#eaf1f6;
  color:#35627c;
}
.status-op-EN_ROUTE_COLLECTION,
.status-op-EN_ROUTE_DISPOSAL{
  background:#e9f1f6;
  color:#225f7e;
}
.status-op-ARRIVED_COLLECTION,
.status-op-ARRIVED_DISPOSAL{
  background:#fff4d8;
  color:#835d0e;
}
.status-op-WASTE_COLLECTED{
  background:#e9f5ed;
  color:#23673b;
}
.status-op-WASTE_DUMPED{
  background:#e3f3e8;
  color:#155b30;
}

@media(max-width:620px){
  .driver-job-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .driver-current-status{
    max-width:100%;
    align-self:flex-start;
  }
  .driver-collection-evidence{
    grid-template-columns:1fr;
  }
  .driver-status-timeline{
    padding-left:13px;
    padding-right:13px;
  }
}


/* ============================================================
   Supervisor active jobs — 2026-09-26
   ============================================================ */
.supervisor-page-head{
  align-items:center;
}
.supervisor-eyebrow{
  margin-bottom:7px;
  color:#4d745c;
  font-size:.69rem;
  font-weight:750;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.supervisor-page-actions{
  justify-content:flex-end;
}
.supervisor-refresh-note{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:6px 9px;
  border-radius:999px;
  background:#f2f6f3;
  color:#64766b;
  font-size:.72rem;
  font-weight:620;
  white-space:nowrap;
}
.supervisor-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-bottom:16px;
}
.supervisor-kpi{
  position:relative;
  text-decoration:none;
  transition:border-color .15s,box-shadow .15s,transform .08s;
}
.supervisor-kpi:hover{
  border-color:#c5d5ca;
}
.supervisor-kpi.is-selected{
  border-color:#a9c7b2;
  box-shadow:0 0 0 3px rgba(47,125,74,.07);
}
.supervisor-kpi-ok .kpi-value{color:#23673b}
.supervisor-kpi-delayed .kpi-value{color:#8b6518}
.supervisor-kpi-overdue .kpi-value{color:#a12f2f}

.supervisor-filters{
  display:grid;
  grid-template-columns:minmax(280px,1.5fr) minmax(150px,.55fr) minmax(210px,.8fr) minmax(145px,.5fr) auto auto;
  gap:8px;
  align-items:center;
  padding:10px;
  margin-bottom:16px;
}
.supervisor-filter-search{
  position:relative;
  min-width:0;
}
.supervisor-filter-icon{
  position:absolute;
  left:12px;
  top:50%;
  z-index:1;
  transform:translateY(-50%);
  color:#809087;
}
.supervisor-filter-search .form-control{
  padding-left:38px;
}
.supervisor-filters .btn{
  min-height:44px;
}

.supervisor-table-card{
  overflow:hidden;
}
.supervisor-table-card>.card-head{
  min-height:68px;
}
.supervisor-legend{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
.supervisor-jobs-table{
  min-width:1440px;
}
.supervisor-jobs-table th{
  white-space:nowrap;
}
.supervisor-jobs-table td{
  vertical-align:top;
}
.supervisor-job-row td{
  transition:background-color .12s;
}
.supervisor-job-row.row-health-OVERDUE td{
  background:#fffafa;
}
.supervisor-job-row.row-health-DELAYED td{
  background:#fffdf8;
}
.supervisor-job-row:hover td{
  background:#f9fcfa;
}
.supervisor-job-row.row-health-OVERDUE:hover td{
  background:#fff6f6;
}
.supervisor-job-row.row-health-DELAYED:hover td{
  background:#fffaf0;
}
.supervisor-health{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:29px;
  padding:5px 9px;
  border-radius:999px;
  font-size:.69rem;
  font-weight:750;
  white-space:nowrap;
}
.supervisor-health::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  opacity:.78;
}
.health-ON_TIME{
  background:#eaf5ed;
  color:#25633a;
}
.health-DELAYED{
  background:#fff3d7;
  color:#835d0e;
}
.health-OVERDUE{
  background:#fce9e9;
  color:#9c2d2d;
}
.supervisor-time{
  color:#314e3b;
  font-size:.78rem;
  font-weight:660;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.supervisor-duration{
  display:inline-flex;
  min-height:29px;
  align-items:center;
  padding:4px 7px;
  border-radius:7px;
  background:#f3f6f4;
  color:#50635a;
  font-size:.75rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.supervisor-next{
  display:block;
  max-width:220px;
  color:#294c36;
  font-size:.78rem;
  font-weight:680;
  line-height:1.38;
}
.supervisor-reason{
  max-width:260px;
  margin-top:5px;
  color:#6d7c73;
  font-size:.71rem;
  line-height:1.4;
}
.row-health-OVERDUE .supervisor-reason{
  color:#8d4444;
}
.row-health-DELAYED .supervisor-reason{
  color:#816729;
}
.supervisor-unassigned{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  background:#fff0dd;
  color:#8a5b19;
  font-size:.7rem;
  font-weight:700;
}
.supervisor-route-link{
  font-size:.79rem;
}
.supervisor-row-action{
  width:54px;
  text-align:right;
}
.supervisor-row-action .btn{
  min-width:36px;
}
.supervisor-empty{
  padding:42px 20px;
}
.supervisor-sla-card{
  margin-top:16px;
}
.supervisor-sla-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
}
.supervisor-sla-grid>div{
  display:grid;
  gap:5px;
  padding:14px 15px;
  border-right:1px solid var(--line);
}
.supervisor-sla-grid>div:last-child{
  border-right:0;
}
.supervisor-sla-grid strong{
  color:#2b4c36;
  font-size:.78rem;
  font-weight:700;
}
.supervisor-sla-grid span{
  color:#75847b;
  font-size:.71rem;
  line-height:1.45;
}

@media(max-width:1280px){
  .supervisor-filters{
    grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(145px,.6fr)) auto;
  }
  .supervisor-filters>.btn-ghost{
    grid-column:1/-1;
    width:max-content;
  }
  .supervisor-sla-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .supervisor-sla-grid>div:nth-child(3){
    border-right:0;
  }
  .supervisor-sla-grid>div:nth-child(n+4){
    border-top:1px solid var(--line);
  }
}
@media(max-width:900px){
  .supervisor-kpis{
    grid-template-columns:1fr 1fr;
  }
  .supervisor-filters{
    grid-template-columns:1fr 1fr;
  }
  .supervisor-filter-search{
    grid-column:1/-1;
  }
  .supervisor-filters .btn{
    width:100%;
  }
  .supervisor-filters>.btn-ghost{
    grid-column:auto;
    width:100%;
  }
  .supervisor-table-card>.card-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .supervisor-legend{
    justify-content:flex-start;
  }
}
@media(max-width:700px){
  .supervisor-page-head{
    align-items:flex-start;
  }
  .supervisor-page-actions{
    width:100%;
    justify-content:stretch;
  }
  .supervisor-page-actions>*{
    flex:1;
  }
  .supervisor-refresh-note{
    white-space:normal;
  }
  .supervisor-kpis{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .supervisor-filters{
    grid-template-columns:1fr;
  }
  .supervisor-filter-search{
    grid-column:auto;
  }
  .supervisor-table-wrap{
    overflow:visible;
  }
  .supervisor-jobs-table{
    min-width:0;
  }
  .supervisor-job-row.row-health-OVERDUE,
  .supervisor-job-row.row-health-DELAYED{
    border-left-width:3px!important;
  }
  .supervisor-job-row.row-health-OVERDUE{
    border-left-color:#cf7373!important;
  }
  .supervisor-job-row.row-health-DELAYED{
    border-left-color:#d0a853!important;
  }
  .supervisor-row-action{
    width:auto;
  }
  .supervisor-row-action .btn{
    width:100%;
  }
  .supervisor-sla-grid{
    grid-template-columns:1fr;
  }
  .supervisor-sla-grid>div{
    border-right:0;
    border-top:1px solid var(--line);
  }
  .supervisor-sla-grid>div:first-child{
    border-top:0;
  }
}
@media(max-width:430px){
  .supervisor-kpis{
    grid-template-columns:1fr;
  }
}


/* ============================================================
   Supervisor job actions — 2026-09-26
   ============================================================ */
.supervisor-jobs-table{
  min-width:1680px;
}
.supervisor-row-action{
  width:300px;
  min-width:300px;
}
.supervisor-actions-menu{
  width:100%;
}
.supervisor-actions-menu>summary{
  width:100%;
  cursor:pointer;
  list-style:none;
}
.supervisor-actions-menu>summary::-webkit-details-marker{
  display:none;
}
.supervisor-actions-panel{
  display:grid;
  gap:12px;
  margin-top:9px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fbfdfb;
  box-shadow:0 8px 22px rgba(20,50,31,.06);
}
.supervisor-open-job{
  width:100%;
}
.supervisor-action-form{
  display:grid;
  gap:7px;
  padding-top:10px;
  border-top:1px solid #e6ece8;
}
.supervisor-action-form:first-of-type{
  padding-top:0;
  border-top:0;
}
.supervisor-action-form label{
  color:#355341;
  font-size:.72rem;
  font-weight:700;
}
.supervisor-action-inline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
}
.supervisor-action-inline .form-control{
  min-width:0;
}
.supervisor-action-help{
  display:block;
  color:#7a8980;
  font-size:.67rem;
  line-height:1.45;
}
.supervisor-action-info{
  padding:9px 10px;
  border:1px solid #e3e9e5;
  border-radius:9px;
  background:#f5f8f6;
  color:#718077;
  font-size:.7rem;
  line-height:1.45;
}
.supervisor-delay-input{
  min-height:72px!important;
  resize:vertical;
}
.supervisor-ack-form{
  padding:10px;
  border:1px solid #ecd5d5;
  border-radius:10px;
  background:#fffafa;
}
.supervisor-action-acknowledged{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid #cfe2d5;
  border-radius:9px;
  background:#eef7f1;
  color:#2b6540;
  font-size:.72rem;
  font-weight:700;
}
.supervisor-delay-note{
  display:grid;
  gap:2px;
  margin-top:7px;
  padding:7px 8px;
  border-left:2px solid #d1ae5c;
  border-radius:0 7px 7px 0;
  background:#fffaf0;
  color:#6f5d32;
  font-size:.69rem;
  line-height:1.4;
}
.supervisor-delay-note strong{
  font-weight:750;
}
.supervisor-delay-note span{
  color:#8b7a52;
  font-size:.64rem;
}
.supervisor-ack-badge{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 6px;
  margin-top:7px;
  padding:6px 8px;
  border-radius:8px;
  background:#eef7f1;
  color:#2d6741;
  font-size:.67rem;
  font-weight:700;
}
.supervisor-ack-badge small{
  width:100%;
  color:#6c8072;
  font-size:.62rem;
  font-weight:600;
}
.alert-info{
  background:#eaf1f6;
  color:#245f7e;
  border-color:#cbdde8;
}

@media(max-width:900px){
  .supervisor-row-action{
    width:260px;
    min-width:260px;
  }
}
@media(max-width:700px){
  .supervisor-row-action{
    width:auto;
    min-width:0;
  }
  .supervisor-actions-panel{
    box-shadow:none;
    background:#fafcfa;
  }
  .supervisor-action-inline{
    grid-template-columns:1fr;
  }
  .supervisor-action-inline .btn,
  .supervisor-action-form>.btn{
    width:100%;
  }
}


/* ============================================================
   Supervisor action history — 2026-09-26
   ============================================================ */
.supervisor-history-card{
  margin-top:16px;
  overflow:hidden;
}
.supervisor-history-card>.card-head{
  min-height:66px;
}
.supervisor-history-count{
  display:grid;
  place-items:center;
  min-width:32px;
  min-height:28px;
  padding:0 8px;
  border-radius:999px;
  background:#eef5f0;
  color:#2f5c3d;
  font-size:.72rem;
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
.supervisor-history-table{
  min-width:1180px;
}
.supervisor-history-table td{
  vertical-align:top;
}
.supervisor-history-time{
  color:#314f3b;
  font-size:.76rem;
  font-weight:680;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.supervisor-history-user{
  color:#2f4d38;
  font-size:.79rem;
  font-weight:680;
}
.supervisor-history-action{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 8px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:750;
  white-space:nowrap;
}
.supervisor-history-action.action-ROUTE_CHANGED{
  background:#eaf1f6;
  color:#2c627e;
}
.supervisor-history-action.action-DRIVER_REASSIGNED{
  background:#edf3fa;
  color:#375f94;
}
.supervisor-history-action.action-DELAY_REASON{
  background:#fff3da;
  color:#805b12;
}
.supervisor-history-action.action-OVERDUE_ACKNOWLEDGED{
  background:#eaf5ed;
  color:#24643a;
}
.supervisor-history-details{
  display:grid;
  gap:5px;
  max-width:430px;
}
.supervisor-history-change{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 7px;
  color:#53675a;
  font-size:.72rem;
}
.supervisor-history-change>span:first-child{
  color:#74837a;
  font-weight:650;
}
.supervisor-history-change strong{
  color:#2e4f38;
  font-size:.74rem;
  font-weight:700;
}
.supervisor-history-arrow{
  color:#97a59d;
  font-weight:700;
}
.supervisor-history-note{
  padding:7px 9px;
  border-radius:8px;
  background:#f7faf8;
  color:#4f6256;
  font-size:.73rem;
  line-height:1.45;
  white-space:pre-wrap;
}
.history-action-DELAY_REASON .supervisor-history-note{
  background:#fffaf0;
  color:#715c2a;
}
.history-action-OVERDUE_ACKNOWLEDGED .supervisor-history-note{
  background:#f0f7f2;
  color:#3c6248;
}
.supervisor-history-extra-note{
  padding-top:3px;
  font-style:italic;
}
.supervisor-history-empty{
  padding:34px 18px;
}

@media(max-width:700px){
  .supervisor-history-wrap{
    overflow:visible;
  }
  .supervisor-history-table{
    min-width:0;
  }
  .supervisor-history-details{
    max-width:none;
  }
  .supervisor-history-change{
    align-items:flex-start;
  }
}


/* ============================================================
   Supervisor action history filters — 2026-09-26
   ============================================================ */
.supervisor-history-filters{
  display:grid;
  grid-template-columns:
    minmax(170px,.75fr)
    minmax(170px,.75fr)
    minmax(180px,.9fr)
    minmax(190px,.85fr)
    minmax(138px,.55fr)
    minmax(138px,.55fr)
    auto auto;
  gap:8px;
  align-items:end;
  padding:11px 12px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fafcfa;
}
.supervisor-history-filters>.form-control,
.supervisor-history-filters .form-control{
  min-height:44px;
}
.supervisor-history-search{
  position:relative;
  min-width:0;
}
.supervisor-history-search>span{
  position:absolute;
  left:11px;
  top:50%;
  z-index:1;
  transform:translateY(-50%);
  color:#809087;
  pointer-events:none;
}
.supervisor-history-search .form-control{
  width:100%;
  padding-left:36px;
}
.supervisor-history-date-field{
  display:grid;
  gap:4px;
  min-width:0;
}
.supervisor-history-date-field>span{
  padding-left:2px;
  color:#65766c;
  font-size:.66rem;
  font-weight:700;
}
.supervisor-history-filters>.btn{
  min-height:44px;
  white-space:nowrap;
}
.supervisor-history-count{
  white-space:nowrap;
}

@media(max-width:1380px){
  .supervisor-history-filters{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .supervisor-history-filters>.btn{
    width:100%;
  }
}
@media(max-width:900px){
  .supervisor-history-filters{
    grid-template-columns:1fr 1fr;
  }
  .supervisor-history-search{
    grid-column:1/-1;
  }
}
@media(max-width:620px){
  .supervisor-history-filters{
    grid-template-columns:1fr;
    padding:10px;
  }
  .supervisor-history-search{
    grid-column:auto;
  }
}


/* ============================================================
   Verdant bilingual segmented language switch — 2026-09-26
   Inspired by the Factures FR / EN control, adapted to Verdant.
   ============================================================ */
.verdant-langswitch{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:#f5f8f6;
  box-shadow:0 1px 2px rgba(8,39,25,.035);
  vertical-align:middle;
}
.verdant-langswitch form{
  display:flex;
  margin:0;
}
.verdant-lang-btn{
  min-width:48px;
  height:44px;
  padding:0 11px;
  border:1px solid #d5e0d8;
  border-radius:9px;
  background:#fff;
  color:#52685a;
  font-size:.77rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.015em;
  cursor:pointer;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    box-shadow .14s ease,
    transform .08s ease;
}
.verdant-lang-btn:hover:not(:disabled){
  background:var(--verdant-50);
  border-color:#b8cbbc;
  color:var(--verdant-800);
}
.verdant-lang-btn:active:not(:disabled){
  transform:translateY(1px);
}
.verdant-lang-btn.active,
.verdant-lang-btn:disabled{
  background:var(--verdant-100);
  border-color:#b8d0bf;
  color:var(--verdant-800);
  box-shadow:0 1px 4px rgba(18,63,38,.07);
  cursor:default;
  opacity:1;
}
.verdant-lang-btn:focus-visible{
  outline:0;
  border-color:var(--verdant-600);
  box-shadow:0 0 0 3px rgba(47,125,74,.14);
}

/* Authentication screens keep the control floating at the upper right. */
.auth-language .verdant-langswitch{
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(8px);
}

/* Dark driver/tablet headers use an inverse treatment. */
.driver-header .verdant-langswitch{
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.10);
  box-shadow:none;
}
.driver-header .verdant-lang-btn{
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#eef7f1;
}
.driver-header .verdant-lang-btn:hover:not(:disabled){
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.34);
  color:#fff;
}
.driver-header .verdant-lang-btn.active,
.driver-header .verdant-lang-btn:disabled{
  background:#fff;
  border-color:#fff;
  color:var(--verdant-800);
  box-shadow:0 2px 7px rgba(4,24,13,.16);
}

/* Small screens retain full touch targets while using tighter chrome. */
@media(max-width:560px){
  .verdant-langswitch{
    gap:3px;
    padding:2px;
    border-radius:11px;
  }
  .verdant-lang-btn{
    min-width:44px;
    height:44px;
    padding:0 8px;
    border-radius:8px;
    font-size:.74rem;
  }
}


/* ============================================================
   Sidebar vertical overflow fix — 2026-09-26
   Keep the primary navigation and pinned management footer
   in separate layout regions on short viewport heights.
   ============================================================ */
.sidebar{
  overflow:hidden;
}
.sidebar-primary{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-bottom:10px;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.sidebar-primary::-webkit-scrollbar{
  width:0;
  height:0;
}
.sidebar-footer{
  flex:0 0 auto;
  margin-top:10px;
  padding-top:12px;
  background:linear-gradient(180deg,rgba(8,47,31,.98),#082f1f 22%);
  position:relative;
  z-index:2;
}
.sidebar-footer .nav-group{
  margin:0;
}

/* On especially short desktop windows, slightly tighten only
   vertical group spacing before requiring scroll. */
@media (min-width:1025px) and (max-height:820px){
  .sidebar-primary{
    gap:12px;
  }
  .nav-link{
    min-height:40px;
  }
  .sidebar-footer{
    margin-top:8px;
    padding-top:9px;
  }
}


/* Management performance metrics */
.metrics-filter-card{margin-bottom:0}
.metrics-filter-grid{display:grid;grid-template-columns:minmax(150px,1.05fr) minmax(135px,.85fr) minmax(135px,.85fr) minmax(190px,1.2fr) minmax(150px,1fr) auto;gap:14px;align-items:end}
.metrics-filter-action{display:flex;align-items:flex-end}
.metrics-filter-action .btn{min-height:42px;white-space:nowrap}
.metrics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.metric-progress-cell{display:grid;gap:6px;min-width:120px}
.metric-progress-cell .progress{margin:0}
@media(max-width:1100px){
  .metrics-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .metrics-filter-action .btn{width:100%}
  .metrics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .metrics-filter-grid{grid-template-columns:1fr}
  .metrics-kpis{grid-template-columns:1fr}
  .metric-progress-cell{min-width:0}
}

@media(max-width:1024px){
  .mobile-nav.mobile-nav-admin{grid-template-columns:repeat(6,minmax(0,1fr))}
  .mobile-nav.mobile-nav-admin a{font-size:.68rem}
}

/* Metrics charts and configurable targets */
.metrics-target-card{margin-top:18px}
.metrics-target-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:14px;align-items:end}
.metrics-target-action{display:flex;align-items:flex-end}
.metrics-target-action .btn{min-height:42px;white-space:nowrap}
.metrics-target-summary{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:14px;padding-top:13px;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.metrics-target-updated{font-size:.76rem}
.metrics-section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:12px}
.metrics-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.metric-chart-card .card-body{padding-top:10px}
.metric-chart{width:100%;min-height:238px;overflow:hidden}
.metric-chart svg{display:block;width:100%;height:auto;overflow:visible}
.metric-chart-gridline{stroke:var(--line);stroke-width:1}
.metric-chart-axis{fill:var(--muted);font-size:10px;font-family:inherit}
.metric-chart-actual-line{stroke:var(--verdant-600);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.metric-chart-target-line{stroke:var(--warning);stroke-width:1.8;stroke-dasharray:6 5;stroke-linecap:round;opacity:.9}
.metric-chart-point{fill:var(--surface);stroke:var(--verdant-600);stroke-width:2}
.metric-chart-legend{display:flex;gap:18px;align-items:center;margin-top:8px;font-size:.75rem;color:var(--muted)}
.metric-chart-legend span{display:inline-flex;align-items:center;gap:7px}
.metric-chart-legend span:before{content:"";width:22px;border-top:2px solid var(--verdant-600)}
.metric-chart-legend .legend-target:before{border-top-color:var(--warning);border-top-style:dashed}
@media(max-width:1100px){.metrics-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics-target-action .btn{width:100%}}
@media(max-width:760px){.metrics-chart-grid{grid-template-columns:1fr}.metrics-target-grid{grid-template-columns:1fr}.metrics-target-action .btn{width:100%}.metrics-section-head{align-items:flex-start}.metric-chart{min-height:220px}}
