/* CFS unified product layout — 23 November 2026
 * One visual system across real desktop Dashboard (including detached host),
 * Fleet, Jobs, Compliance, Reports, Settings and technician workflows.
 * Do not conceal operational warnings, disable actions, or rewrite values.
 */
:root{
  --cfs-ui-surface:#0e2335;
  --cfs-ui-surface-2:#122a3e;
  --cfs-ui-border:rgba(134,177,200,.20);
  --cfs-ui-text:#edf5fc;
  --cfs-ui-muted:#b0c5d5;
  --cfs-ui-teal:#81dce2;
  --cfs-ui-radius:14px;
}
#admin *,#tech *,#ffGoalDashboard *{box-sizing:border-box}
:is(#admin,#tech,#ffGoalDashboard) :is(button,a,input,select,textarea,summary):focus-visible{
  outline:2px solid #8df1e3!important;outline-offset:3px!important;
}
:is(#admin,#tech,#ffGoalDashboard) summary{cursor:pointer}
:is(#admin,#tech,#ffGoalDashboard) button{touch-action:manipulation}
:is(#admin,#tech,#ffGoalDashboard) :is(p,span,small,td,th){overflow-wrap:break-word}

/* 1. Dashboard — target the real element, even after JS detaches it from #admin. */
#ffGoalDashboard{
  --cfs-dashboard-gap:12px;
  max-width:1460px!important;
  padding-bottom:24px!important;
}
#ffGoalDashboard .ff-goal-topbar{
  display:flex!important;align-items:center!important;gap:14px 20px!important;
  flex-wrap:wrap!important;margin:0 0 14px!important;padding:4px 0 12px!important;
}
#ffGoalDashboard .ff-goal-greeting h1{
  font-size:clamp(24px,2.5vw,33px)!important;letter-spacing:-.03em!important;
  line-height:1.18!important;margin:0 0 4px!important;
}
#ffGoalDashboard .ff-goal-greeting p{
  font-size:12px!important;color:var(--cfs-ui-muted)!important;margin:0!important;
}
#ffGoalDashboard .ff-goal-top-tools{gap:9px!important;flex-wrap:wrap}
#ffGoalDashboard .ff-goal-search{width:clamp(195px,21vw,290px)!important}
#ffGoalDashboard .ff-goal-kpis{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:var(--cfs-dashboard-gap)!important;margin-bottom:var(--cfs-dashboard-gap)!important;
}
#ffGoalDashboard .ff-goal-kpis.cfs-home-core-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#ffGoalDashboard .ff-goal-kpi{
  min-height:86px!important;max-height:none!important;
  gap:12px!important;padding:13px 16px!important;border-radius:var(--cfs-ui-radius)!important;
  border:1px solid var(--cfs-ui-border)!important;
  box-shadow:0 6px 19px rgba(0,7,19,.13)!important;
}
#ffGoalDashboard .ff-goal-kpi-icon{
  width:36px!important;height:36px!important;flex:0 0 36px!important;font-size:18px!important;
}
#ffGoalDashboard .ff-goal-kpi strong{
  font-size:26px!important;line-height:1.06!important;font-variant-numeric:tabular-nums;
}
#ffGoalDashboard .ff-goal-kpi span{
  margin-top:5px!important;font-size:12px!important;color:#dceaf4!important;line-height:1.2!important;
}
#ffGoalDashboard .ff-goal-kpi small{
  margin-top:5px!important;font-size:10px!important;letter-spacing:0!important;line-height:1.3!important;
}

/* Thin Keycafe summary bars: no duplicated donut charts or empty 230px panels. */
#ffGoalDashboard .ff-goal-primary-grid.cfs-trend-dashboard-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:var(--cfs-dashboard-gap)!important;align-items:start!important;
  grid-auto-rows:min-content!important;margin:0 0 var(--cfs-dashboard-gap)!important;
}
#ffGoalDashboard .cfs-keycafe-summary-card.ff-goal-panel{
  display:block!important;min-height:0!important;height:auto!important;max-height:none!important;
  margin:0!important;padding:13px 15px!important;border-radius:var(--cfs-ui-radius)!important;
  border:1px solid var(--cfs-ui-border)!important;
  background:linear-gradient(135deg,#112a3c,#0c2032)!important;
  box-shadow:0 6px 19px rgba(0,7,19,.13)!important;
}
#ffGoalDashboard .cfs-keycafe-summary-weekly.ff-goal-panel{
  background:linear-gradient(135deg,#102b37,#0c2032)!important;
}
#ffGoalDashboard .cfs-keycafe-summary-primary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;gap:9px 15px!important;
  min-height:57px!important;
}
#ffGoalDashboard .cfs-keycafe-summary-label{min-width:0}
#ffGoalDashboard .cfs-keycafe-summary-eyebrow{
  color:var(--cfs-ui-teal);font-size:9px;font-weight:800;letter-spacing:.09em;
}
#ffGoalDashboard .cfs-keycafe-summary-label h2{
  color:#ecf5fa!important;font-size:15px!important;margin:3px 0!important;
  line-height:1.25!important;letter-spacing:-.01em!important;
}
#ffGoalDashboard .cfs-keycafe-summary-label p{
  margin:0!important;color:var(--cfs-ui-muted)!important;font-size:10px!important;
  line-height:1.3!important;
}
#ffGoalDashboard .cfs-keycafe-summary-number{
  display:flex;flex-direction:column;align-items:flex-end;gap:1px;white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
#ffGoalDashboard .cfs-keycafe-summary-number strong{
  font-size:23px!important;font-weight:800!important;letter-spacing:-.03em!important;
  color:#d6faff!important;line-height:1.1!important;
}
#ffGoalDashboard .cfs-keycafe-summary-number span{
  font-size:10px!important;color:#bad5df!important;
}
#ffGoalDashboard .cfs-keycafe-summary-weekly .cfs-keycafe-summary-number strong{
  color:#a4f1d1!important;
}
#ffGoalDashboard .cfs-keycafe-summary-link{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  border:1px solid rgba(120,212,224,.23)!important;background:rgba(35,101,125,.2)!important;
  padding:8px 10px!important;min-height:36px!important;border-radius:9px!important;
  color:#a3e8ef!important;font-size:11px!important;font-weight:750!important;
  white-space:nowrap!important;cursor:pointer!important;
}
#ffGoalDashboard .cfs-keycafe-summary-link:hover{background:rgba(40,128,145,.3)!important}
#ffGoalDashboard .cfs-keycafe-summary-notes{
  margin:8px 0 0!important;border-top:1px solid rgba(131,178,199,.14);
  padding:5px 0 0!important;
}
#ffGoalDashboard .cfs-keycafe-summary-notes summary{
  display:inline-block;padding:2px 0;font-size:10px;font-weight:700;color:#9ac4d2;
}
#ffGoalDashboard .cfs-keycafe-summary-notes summary:hover{color:#c1eef1}
#ffGoalDashboard .cfs-keycafe-summary-notes p{
  font-size:11px;color:#bed1db;line-height:1.5;margin:6px 0 2px;
}

/* Lower dashboard: two useful columns and a full-width activity feed. */
#ffGoalDashboard .ff-goal-secondary-grid{
  display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
  gap:var(--cfs-dashboard-gap)!important;align-items:start!important;
}
#ffGoalDashboard .ff-goal-secondary-grid>.ff-goal-panel{
  min-width:0!important;min-height:0!important;
  border:1px solid var(--cfs-ui-border)!important;border-radius:var(--cfs-ui-radius)!important;
  box-shadow:0 7px 22px rgba(0,7,19,.11)!important;
}
#ffGoalDashboard .ff-goal-secondary-grid>.cfs-dashboard-activity-panel{
  grid-column:1/-1!important;
}
#ffGoalDashboard .ff-goal-panel>header{
  min-height:43px!important;padding:10px 14px!important;
}
#ffGoalDashboard .ff-goal-panel>header h2{
  font-size:14px!important;line-height:1.3!important;
}
#ffGoalDashboard .ff-goal-panel>header button{
  font-size:11px!important;color:#90dce6!important;padding:5px 2px!important;
}
#ffGoalDashboard .ff-goal-panel-icon{
  width:25px!important;height:25px!important;min-width:25px!important;font-size:14px!important;
}
#ffGoalDashboard .ff-goal-fleet-overview.cfs-fleet-chart{
  display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;
  align-items:center!important;gap:14px!important;min-height:0!important;
  padding:13px 15px!important;
}
#ffGoalDashboard .ff-goal-donut.cfs-fleet-chart-donut{
  width:116px!important;height:116px!important;min-width:116px!important;
  flex:0 0 116px!important;margin:0 auto!important;
}
#ffGoalDashboard .cfs-fleet-chart-donut strong{font-size:26px!important}
#ffGoalDashboard .cfs-fleet-chart-ring-area{
  display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;
  width:120px!important;min-width:0!important;gap:7px!important;
}
#ffGoalDashboard .cfs-fleet-ring-caption{
  font-size:10px!important;color:#b6cddd!important;text-align:center;
}
#ffGoalDashboard .ff-goal-fleet-legend.cfs-fleet-chart-legend{
  gap:6px!important;min-width:0!important;
}
#ffGoalDashboard .cfs-fleet-chart-legend>.cfs-fleet-legend-row{
  display:grid!important;
  grid-template-areas:"dot title count"!important;
  grid-template-columns:10px minmax(0,1fr) auto!important;
  column-gap:9px!important;row-gap:0!important;
  align-items:center!important;min-height:20px!important;
  padding:2px 0!important;
}
#ffGoalDashboard .cfs-fleet-legend-row>i{
  display:block;grid-area:dot!important;width:9px!important;height:9px!important;
  margin:0!important;border-radius:50%;box-shadow:none!important;
}
#ffGoalDashboard .cfs-fleet-legend-row>i.road{background:#5ae1be!important}
#ffGoalDashboard .cfs-fleet-legend-row>i.workshop{background:#729fff!important}
#ffGoalDashboard .cfs-fleet-legend-row>i.spare{background:#f2bd64!important}
#ffGoalDashboard .cfs-fleet-legend-row>i.vor{background:#ff7e89!important}
#ffGoalDashboard .cfs-fleet-legend-row>i.other{background:#73849d!important}
#ffGoalDashboard .cfs-fleet-chart-legend .cfs-fleet-bar{display:none!important}
#ffGoalDashboard .cfs-fleet-legend-row>span{
  grid-area:title!important;font-size:11px!important;line-height:1.28!important;
  min-width:0!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;
}
#ffGoalDashboard .cfs-fleet-legend-row>strong{
  grid-area:count!important;font-size:12px!important;justify-self:end;
}
#ffGoalDashboard .cfs-fleet-meter-more{
  margin-top:9px;padding-top:7px;border-top:1px solid rgba(130,178,198,.15);
}
#ffGoalDashboard .cfs-fleet-meter-more>summary{
  font-size:11px;font-weight:750;color:#92dce9;padding:5px 2px;
}
#ffGoalDashboard .cfs-fleet-meter-more .cfs-fleet-utilisation-meter{
  padding:10px 0 0!important;margin:4px 0 0!important;
}
#ffGoalDashboard .ff-goal-quick-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;padding:12px!important;
}
#ffGoalDashboard .ff-goal-quick-actions button{
  min-width:0!important;min-height:60px!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  padding:9px 6px!important;gap:7px!important;border-radius:9px!important;
  font-size:11px!important;line-height:1.25!important;font-weight:750!important;
}
#ffGoalDashboard .ff-goal-quick-actions button span{font-size:17px!important}
#ffGoalDashboard .cfs-more-quick-actions{
  margin:0 12px 12px;border-top:1px solid rgba(130,175,198,.14);
}
#ffGoalDashboard .cfs-more-quick-actions summary{
  display:flex;justify-content:space-between;align-items:center;min-height:40px;
  padding:8px 3px;color:#9bdeeb;font-size:11px;font-weight:750;list-style:none;
}
#ffGoalDashboard .cfs-more-quick-actions summary::-webkit-details-marker{display:none}
#ffGoalDashboard .cfs-more-quick-actions[open] summary span{transform:rotate(180deg)}
#ffGoalDashboard .cfs-quick-actions-secondary{padding:4px 0 0!important}
#ffGoalDashboard .cfs-dashboard-activity-panel .ff-goal-activity{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  padding:11px 15px!important;gap:0 22px!important;
}
#ffGoalDashboard .ff-goal-activity-row{
  min-height:39px!important;margin:0!important;padding:5px 0!important;
  gap:8px!important;
}
#ffGoalDashboard .ff-goal-activity-row strong{font-size:12px!important;line-height:1.3!important}
#ffGoalDashboard .ff-goal-activity-row span{font-size:11px!important;line-height:1.4!important}

/* 2. Shared page hierarchy for every admin tab; no fixed-height panels. */
#admin :is(.admin-tab-panel,.ff-shell-hub){
  min-width:0;
}
#admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head,.ff-dispatch-head){
  display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;
  gap:12px 18px!important;margin:0 0 18px!important;
}
#admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head,.ff-dispatch-head) h1{
  font-size:clamp(24px,2.3vw,31px)!important;line-height:1.17!important;
  letter-spacing:-.026em!important;margin:0 0 6px!important;
}
#admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head,.ff-dispatch-head) p{
  font-size:13px!important;line-height:1.54!important;color:var(--cfs-ui-muted)!important;
  margin:4px 0 0!important;max-width:700px;
}
#admin :is(.ff-page-eyebrow,.ff2-page-eyebrow,.ff-report-eyebrow){
  font-size:10px!important;letter-spacing:.10em!important;font-weight:800!important;
}
#admin :is(.ff-hub-card,.ff2-action-card,.ff-settings-card,.ff-report-card,
           .ff-report-summary,.ff-settings-page-card,.ff2-integration-card){
  min-width:0;border:1px solid var(--cfs-ui-border)!important;
  border-radius:var(--cfs-ui-radius)!important;
  box-shadow:0 7px 21px rgba(0,8,21,.09)!important;
}
#admin :is(.ff-hub-card,.ff2-action-card,.ff-settings-card,.ff-report-card){
  padding:16px!important;gap:11px!important;
}
#admin :is(.ff-hub-card,.ff2-action-card,.ff-settings-card,.ff-report-card) h3{
  font-size:15px!important;line-height:1.3!important;margin:0 0 4px!important;
}
#admin :is(.ff-hub-card,.ff2-action-card,.ff-settings-card,.ff-report-card) p{
  color:var(--cfs-ui-muted)!important;font-size:12px!important;line-height:1.5!important;
  margin:4px 0 0!important;
}
#admin :is(.ff-hub-grid,.ff2-action-grid,.ff-settings-grid,.ff-reports-grid){
  gap:12px!important;align-items:stretch;
}
#admin .ff-reports-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr))!important;
}
#admin .ff-report-card{min-height:105px!important;align-items:flex-start!important}
#admin .ff-report-card .ff-report-card-copy p{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-clamp:2;overflow:hidden;
}
#admin .ff-reports-grid .ff-report-card[hidden],
#admin .cfs-report-no-matches[hidden]{display:none!important}
#admin .cfs-report-finder{
  display:flex;justify-content:space-between;align-items:end;gap:12px 18px;
  flex-wrap:wrap;margin:5px 0 18px;
}
#admin .cfs-report-finder label{
  display:flex;flex-direction:column;gap:7px;flex:0 1 420px;
  min-width:min(100%,290px);font-size:12px;font-weight:750;color:#c5dce8;
}
#admin .cfs-report-finder input{
  width:100%;min-height:43px;padding:10px 14px;
  border-radius:10px;background:#092136;border:1px solid rgba(135,183,204,.34);
  color:#ecf7ff;
}
#admin .cfs-report-finder-hint{
  font-size:12px;color:#aec7d6;padding-bottom:10px;
}
#admin .cfs-report-no-matches{
  padding:16px;border:1px dashed rgba(123,167,188,.38);border-radius:12px;
  color:#b8cbd8;
}
#admin :is(.ff-settings-preview,.ff-settings-page-card){max-width:100%}
#admin .ff-settings-preview .ff-setting-row{
  min-height:62px!important;padding:12px 15px!important;gap:12px!important;
}
#admin :is(.ff-report-table-scroll,.ff-audit-table-wrap,.table-wrap,.ff-table-scroll){
  max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
}
#admin :is(.ff-report-table-scroll,.ff-audit-table-wrap,.table-wrap) :is(th,td){
  padding:11px 13px;line-height:1.45;vertical-align:middle;
}
#admin :is(.ff-report-table-scroll,.ff-audit-table-wrap,.table-wrap) th{
  font-size:11px;color:#b3cedc;
}
#admin :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  max-width:100%;min-width:0;
}

/* 3. Fleet tab: one clear vehicle row; optional detailed records. */
#adminFleetTab .cfs-fleet-overview{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;margin:0 0 14px!important;
}
#adminFleetTab .cfs-fleet-metric{
  min-height:82px!important;padding:12px 15px!important;
  border:1px solid var(--cfs-ui-border)!important;
  background:var(--cfs-ui-surface)!important;border-radius:var(--cfs-ui-radius)!important;
}
#adminFleetTab .cfs-fleet-metric>strong{
  font-size:25px!important;line-height:1.15!important;margin-top:4px!important;
}
#adminFleetTab .cfs-fleet-metric>span{font-size:10px!important}
#adminFleetTab .cfs-fleet-metric>small{font-size:10px!important;color:var(--cfs-ui-muted)!important}
#adminFleetTab .cfs-fleet-metric-alert>strong{color:#ffc28e!important}
#adminFleetTab .cfs-fleet-register-context{
  margin-bottom:19px;padding:10px 13px;
  border-radius:10px;border:1px solid var(--cfs-ui-border);
  background:rgba(13,35,51,.50);
}
#adminFleetTab .cfs-fleet-register-context summary{
  font-size:12px;font-weight:750;color:#a7dfe9;
}
#adminFleetTab .cfs-fleet-register-context p{
  color:#b8cbda;font-size:12px;line-height:1.6;
}
#adminFleetTab .cfs-fleet-register-link{margin:6px 0 1px!important}
#adminFleetTab .cfs-fleet-list-head{
  margin:0 0 12px!important;padding:0!important;
  align-items:center!important;
}
#adminFleetTab .cfs-fleet-list-head h3{font-size:20px!important}
#adminFleetTab .cfs-fleet-list-head p{color:var(--cfs-ui-muted)!important}
#adminFleetTab .cfs-fleet-register-rows{display:flex;flex-direction:column;gap:8px}
#adminFleetTab .cfs-fleet-vehicle-card{
  min-width:0;border:1px solid var(--cfs-ui-border);border-radius:12px;
  background:linear-gradient(130deg,rgba(18,41,60,.75),rgba(11,28,43,.82));
  padding:12px 15px;
}
#adminFleetTab .cfs-fleet-vehicle-card.cfs-fleet-attention{
  border-left:3px solid #efae6e;
}
#adminFleetTab .cfs-fleet-vehicle-main{
  display:grid;grid-template-columns:minmax(180px,1fr) auto auto;
  gap:12px 18px;align-items:center;min-width:0;
}
#adminFleetTab .cfs-fleet-vehicle-ident{min-width:0}
#adminFleetTab .cfs-fleet-vehicle-ident .cfs-fleet-vehicle b{
  font-size:15px!important;color:#e5f6fd!important;
}
#adminFleetTab .cfs-fleet-vehicle-ident .cfs-fleet-vehicle span{
  font-size:11px!important;color:#adc8d7!important;
}
#adminFleetTab .cfs-fleet-vehicle-ident>small{
  font-size:11px!important;color:#91b5c7!important;
}
#adminFleetTab .cfs-fleet-vehicle-status{
  display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:7px;
}
#adminFleetTab .cfs-fleet-inline-alert{
  font-size:10px;color:#ffd49b;font-weight:750;
}
#adminFleetTab .cfs-fleet-vehicle-more summary{
  min-width:115px;display:flex;justify-content:space-between;gap:6px;
  align-items:center;padding:9px 11px;
  font-size:11px;font-weight:750;color:#9bdee9;
  background:rgba(62,129,154,.12);border:1px solid rgba(131,189,213,.25);
  border-radius:9px;list-style:none;
}
#adminFleetTab .cfs-fleet-vehicle-more summary::-webkit-details-marker{display:none}
#adminFleetTab .cfs-fleet-vehicle-more[open]{
  grid-column:1/-1;grid-row:2;
  border-top:1px solid rgba(120,168,191,.18);padding-top:10px;
}
#adminFleetTab .cfs-fleet-vehicle-more[open] summary{
  width:max-content;margin:0 0 12px;
}
#adminFleetTab .cfs-fleet-vehicle-more[open] summary span{transform:rotate(180deg)}
#adminFleetTab .cfs-fleet-vehicle-extra{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;margin-bottom:13px;
}
#adminFleetTab .cfs-fleet-vehicle-extra>div{
  display:flex;flex-direction:column;align-items:flex-start;gap:7px;
  padding:12px 14px;background:rgba(4,18,30,.34);
  border:1px solid rgba(123,171,192,.14);border-radius:10px;
}
#adminFleetTab .cfs-fleet-vehicle-extra>div>small:first-child{
  color:#9dbccc;font-size:11px;
}
#adminFleetTab .cfs-fleet-vehicle-extra strong{font-size:13px}
#adminFleetTab .cfs-fleet-record-button{
  min-height:40px;cursor:pointer;border-radius:9px;padding:9px 14px;
  color:#c5eff3;background:rgba(32,104,132,.30);
  border:1px solid rgba(111,194,217,.27);font-weight:750;font-size:12px;
}


/* CFS SERVICE PROXIMITY: visible mileage ordering rather than empty service dates. */
#adminFleetTab .cfs-service-sort-summary{
 display:grid;grid-template-columns:minmax(240px,1fr) minmax(360px,1.2fr);
 align-items:center;gap:16px;margin:0 0 16px;padding:16px 17px;
 border:1px solid rgba(137,176,194,.27);border-radius:13px;
 background:rgba(12,34,49,.63);color:#e7f3f8
}
#adminFleetTab .cfs-service-sort-summary>div:first-child>span{
 display:block;font-size:10px;letter-spacing:.075em;font-weight:820;color:#a1cfe0;margin-bottom:4px
}
#adminFleetTab .cfs-service-sort-summary>div:first-child>strong{
 display:block;font-size:17px;line-height:1.35;font-weight:830;color:#e8f7fc
}
#adminFleetTab .cfs-service-sort-summary>div:first-child>p{
 font-size:11px;line-height:1.6;color:#aec8d4;margin:7px 0 0
}
#adminFleetTab .cfs-service-sort-numbers{display:flex;gap:9px;flex-wrap:wrap}
#adminFleetTab .cfs-service-sort-numbers>div{
 flex:1 1 120px;min-width:110px;padding:10px 11px;
 border-radius:9px;background:rgba(28,55,70,.5);border:1px solid rgba(134,175,193,.2)
}
#adminFleetTab .cfs-service-sort-numbers b{display:block;font-size:22px;line-height:1.1;color:#f5fbff}
#adminFleetTab .cfs-service-sort-numbers small{display:block;font-size:10px;line-height:1.5;color:#bed1de;margin-top:5px}
#adminFleetTab .cfs-fleet-vehicle-main.cfs-service-proximity-mode{
 grid-template-columns:minmax(170px,1fr) minmax(235px,365px) auto auto;
 gap:12px 15px
}
#adminFleetTab .cfs-service-proximity{
 display:flex;flex-direction:column;justify-content:center;
 min-width:0;gap:4px;padding:10px 12px;border:1px solid rgba(123,166,193,.28);
 background:rgba(29,63,82,.34);border-radius:10px
}
#adminFleetTab .cfs-service-proximity>span{
 font-size:9px;font-weight:840;letter-spacing:.06em;color:#abd2e3
}
#adminFleetTab .cfs-service-proximity>strong{
 font-size:14px;font-weight:860;line-height:1.32;color:#e7f6ff;overflow-wrap:anywhere
}
#adminFleetTab .cfs-service-proximity>small{
 font-size:11px;line-height:1.45;color:#bcd0dc;overflow-wrap:anywhere
}
#adminFleetTab .cfs-service-proximity.is-past-target{
 border-color:rgba(223,139,111,.50);background:rgba(129,62,51,.20)
}
#adminFleetTab .cfs-service-proximity.is-past-target>strong{color:#ffd0b8}
#adminFleetTab .cfs-service-proximity-missing>strong{color:#c3d2dc;font-size:12px}
#adminFleetTab .cfs-service-proximity-archived{opacity:.65}
@media(max-width:1000px){
 #adminFleetTab .cfs-service-sort-summary{grid-template-columns:1fr}
 #adminFleetTab .cfs-fleet-vehicle-main.cfs-service-proximity-mode{
   grid-template-columns:minmax(160px,1fr) auto;align-items:start
 }
 #adminFleetTab .cfs-service-proximity-mode>.cfs-fleet-vehicle-ident{grid-column:1;grid-row:1}
 #adminFleetTab .cfs-service-proximity-mode>.cfs-fleet-vehicle-more{grid-column:2;grid-row:1}
 #adminFleetTab .cfs-service-proximity-mode>.cfs-service-proximity{grid-column:1 / -1;grid-row:2}
 #adminFleetTab .cfs-service-proximity-mode>.cfs-fleet-vehicle-status{
   grid-column:1 / -1;grid-row:3;justify-content:flex-start
 }
 #adminFleetTab .cfs-service-proximity-mode>.cfs-fleet-vehicle-more[open]{
   grid-column:1 / -1;grid-row:4
 }
}
@media(max-width:560px){
 #adminFleetTab .cfs-service-sort-summary{padding:13px}
 #adminFleetTab .cfs-service-sort-numbers>div{min-width:90px;padding:9px}
}

/* 4. Vehicle details: essentials first; advanced information is a disclosure. */
#detail #detailBody{max-width:1440px;margin:0 auto;min-width:0}
#detail #detailBody>.card{
  min-width:0;padding:clamp(15px,1.8vw,22px)!important;
  border:1px solid var(--cfs-ui-border)!important;border-radius:var(--cfs-ui-radius)!important;
  margin-bottom:15px!important;
}
#detail #detailBody>.card:first-child h1{
  font-size:clamp(25px,2.8vw,34px)!important;letter-spacing:-.024em!important;
  margin:0 0 4px!important;
}
#detail #detailBody>.card:first-child>.muted{
  color:#b5cbda!important;font-size:13px!important;
}
#detail #detailBody>.card:first-child>.grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;margin:16px 0 0!important;
}
#detail #detailBody>.card:first-child .stat{
  padding:13px!important;min-height:70px!important;border-radius:11px!important;
}
#detail .cfs-vehicle-more-details{
  border-top:1px solid var(--cfs-ui-border);margin-top:14px;padding-top:10px;
}
#detail .cfs-vehicle-more-details>summary,
#detail .cfs-fleet-maintenance-disclosure>summary,
#detail .cfs-vehicle-fault-more>summary{
  min-height:42px;display:flex;gap:8px;align-items:center;
  width:max-content;max-width:100%;padding:9px 5px;
  font-size:12px;font-weight:800;color:#9bdee9;list-style:none;
}
#detail :is(.cfs-vehicle-more-details,.cfs-fleet-maintenance-disclosure,.cfs-vehicle-fault-more)>summary::-webkit-details-marker{display:none}
#detail .cfs-vehicle-more-details[open]>summary span{transform:rotate(180deg)}
#detail .cfs-vehicle-extra-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;padding:8px 0 4px;
}
#detail .cfs-vehicle-extra-grid>div{
  display:flex;flex-direction:column;gap:7px;
  padding:12px 14px;background:rgba(10,32,49,.45);
  border:1px solid rgba(128,169,193,.17);border-radius:10px;
}
#detail .cfs-vehicle-extra-grid small{font-size:11px;color:#a6bed0}
#detail .cfs-vehicle-extra-grid strong{
  font-size:13px;color:#e8f4fa;word-break:break-word;
}
#detail #vehicleDetailTabs{
  gap:7px!important;border-radius:12px!important;
  border-color:var(--cfs-ui-border)!important;
  background:rgba(7,22,34,.98)!important;
}
#detail #vehicleDetailTabs button{
  min-height:40px!important;padding:9px 13px!important;
  border-radius:9px!important;font-size:11px!important;line-height:1.2!important;
}
#detail .cfs-vehicle-defect-heading{
  display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;
}
#detail .cfs-vehicle-defect-status{
  text-transform:capitalize;font-size:11px;font-weight:750;color:#c8dbea;
}
#detail .cfs-vehicle-defect-short{font-size:13px;line-height:1.5;margin:7px 0}
#detail .cfs-vehicle-fault-more{
  margin-top:9px;border-top:1px solid rgba(134,180,202,.16);
}
#detail .cfs-vehicle-fault-more>summary{min-height:32px}
#detail .cfs-vehicle-fault-more p{
  font-size:12px;line-height:1.6;color:#cbdde9;white-space:pre-wrap;overflow-wrap:anywhere;
}
#detail .cfs-fleet-maintenance-disclosure{
  margin:12px 0 16px;border:1px solid var(--cfs-ui-border);
  background:rgba(14,33,51,.55);border-radius:12px;padding:8px 13px;
}
#detail .cfs-fleet-maintenance-disclosure .cfs-fleet-detail-maintenance{
  margin:0!important;border:0!important;padding:9px 0!important;background:transparent!important;
}
#detail .card .row{gap:12px!important;flex-wrap:wrap}
#detail .card :is(input,select,textarea){max-width:100%;min-width:0}

/* 5. Workshop, Compliance, Reports and Settings use the same spacing. */
#admin :is(.ff-wp-card,.ff2-page-card,.ff-settings-card,
           .ff-report-card,.cfs-mcf-content,.cfs-audit-records){
  border-radius:var(--cfs-ui-radius)!important;
}
#admin :is(.cfs-mcf-main,.cfs-annual-audits,.cfs-util-full-report,.cfs-ops-compliance-report){
  max-width:1440px;margin-inline:auto;min-width:0;
}
#admin :is(.cfs-mcf-overflow,.cfs-audit-table-scroll){
  max-width:100%;overflow-x:auto;
}
#admin :is(.cfs-mcf-main,.cfs-annual-audits) :is(h1,h2,h3){
  letter-spacing:-.018em;
}
#admin :is(.ff-wp-head,.ff2-page-heading,.ff-settings-card) :is(button,.button){
  max-width:100%;
}

/* 6. Technician pages: consistent cards, readable labels and tap targets. */
#tech :is(.card,.tech-job-card,.workshop-job-card){
  min-width:0;border-radius:var(--cfs-ui-radius)!important;
}
#tech :is(.actions,.tech-job-actions){display:flex;gap:9px!important;flex-wrap:wrap}
#tech :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  max-width:100%;min-width:0;min-height:42px;
}
#tech :is(.button,button.primary){min-height:42px}
#tech :is(.table-wrap,.job-list){max-width:100%;overflow-x:auto}

/* Master-context banner should not cover main dashboard activities. */
body #cfsMasterWorkspaceNotice.cfs-master-workspace-notice{
  max-width:min(calc(100vw - 25px),191px)!important;
  min-height:0!important;padding:5px 7px!important;gap:6px!important;
  right:10px!important;bottom:8px!important;border-radius:9px!important;
  flex-wrap:nowrap!important;
  box-shadow:0 6px 20px rgba(0,7,19,.22)!important;
}
body #cfsMasterWorkspaceNotice strong{
  display:block;max-width:78px!important;min-width:0!important;
  font-size:10px!important;line-height:1.2!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body #cfsMasterWorkspaceReturn{
  min-height:30px!important;padding:5px 6px!important;
  max-width:104px!important;min-width:0!important;
  font-size:9px!important;line-height:1.2!important;
  white-space:nowrap!important;border-radius:7px!important;
}

/* 7. Responsive layouts — avoid micro-columns and horizontal document overflow. */
@media(max-width:1230px){
  #ffGoalDashboard .ff-goal-topbar{align-items:flex-start!important}
  #ffGoalDashboard .ff-goal-secondary-grid{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
  }
}
@media(max-width:900px){
  #ffGoalDashboard .ff-goal-kpis,
  #ffGoalDashboard .ff-goal-kpis.cfs-home-core-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #ffGoalDashboard .ff-goal-secondary-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #ffGoalDashboard .ff-goal-secondary-grid>.cfs-dashboard-activity-panel{
    grid-column:1!important;
  }
  #adminFleetTab .cfs-fleet-overview{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #adminFleetTab .cfs-fleet-vehicle-extra{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #admin :is(.ff-reports-grid,.ff-settings-grid,.ff-hub-grid,.ff2-action-grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  #ffGoalDashboard .ff-goal-topbar{margin-bottom:10px!important}
  #ffGoalDashboard .ff-goal-top-tools{width:100%;justify-content:flex-start!important}
  #ffGoalDashboard .ff-goal-search{width:min(100%,425px)!important;flex:1 1 160px}
  #ffGoalDashboard .ff-goal-primary-grid.cfs-trend-dashboard-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #ffGoalDashboard .ff-goal-kpi{
    min-height:81px!important;padding:11px!important;gap:9px!important;
  }
  #ffGoalDashboard .ff-goal-kpi-icon{
    width:31px!important;height:31px!important;flex:0 0 31px!important;font-size:16px!important;
  }
  #ffGoalDashboard .ff-goal-kpi strong{font-size:23px!important}
  #ffGoalDashboard .ff-goal-kpi span{font-size:11px!important}
  #ffGoalDashboard .cfs-keycafe-summary-primary{
    grid-template-columns:minmax(0,1fr) auto auto!important;gap:9px!important;
  }
  #ffGoalDashboard .cfs-keycafe-summary-link{grid-column:auto}
  #ffGoalDashboard .cfs-dashboard-activity-panel .ff-goal-activity{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #detail .cfs-vehicle-extra-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #adminFleetTab .cfs-fleet-vehicle-main{
    grid-template-columns:minmax(0,1fr) auto;gap:10px!important;
  }
  #adminFleetTab .cfs-fleet-vehicle-more{
    grid-column:1/-1;grid-row:2;
  }
  #adminFleetTab .cfs-fleet-vehicle-more summary{min-width:0;width:max-content}
  #admin :is(.ff-reports-grid,.ff-settings-grid,.ff-hub-grid,.ff2-action-grid){
    grid-template-columns:minmax(0,1fr)!important;
  }
  body #cfsMasterWorkspaceNotice.cfs-master-workspace-notice{
    bottom:75px!important;right:9px!important;left:9px!important;
    max-width:calc(100vw - 18px)!important;
  }
}
@media(max-width:450px){
  #ffGoalDashboard .cfs-keycafe-summary-primary{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  #ffGoalDashboard .cfs-keycafe-summary-link{grid-column:1/-1;justify-self:start}
  #ffGoalDashboard .ff-goal-fleet-overview.cfs-fleet-chart{
    grid-template-columns:105px minmax(0,1fr)!important;gap:9px!important;padding:11px!important;
  }
  #ffGoalDashboard .ff-goal-donut.cfs-fleet-chart-donut{
    width:100px!important;height:100px!important;min-width:100px!important;
  }
  #adminFleetTab .cfs-fleet-overview{gap:8px!important}
  #adminFleetTab .cfs-fleet-metric{padding:10px 12px!important}
  #adminFleetTab .cfs-fleet-vehicle-extra{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #detail #detailBody>.card:first-child>.grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #detail .cfs-vehicle-extra-grid{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(prefers-reduced-motion:reduce){
  #ffGoalDashboard :is(.ff-goal-kpi,.ff-goal-quick-actions button),
  #admin .cfs-fleet-vehicle-more summary{transition:none!important}
}
