/* CENTRAL FLEET SYSTEMS — 2026-11-08 unified premium visual layer
   Visual-only: no authentication, navigation, API or record mutations.
   Applied after legacy styles; existing .hidden rules and role boundaries stay intact. */
:root{
 --cfs-premium-ink:#f5f9fd;
 --cfs-premium-muted:#a2b9c9;
 --cfs-premium-line:rgba(150,191,217,.17);
 --cfs-premium-line-strong:rgba(122,218,238,.33);
 --cfs-premium-card:#0e2030;
 --cfs-premium-card-raised:#132a3c;
 --cfs-premium-cyan:#65e5ef;
 --cfs-premium-mint:#73e9bd;
 --cfs-premium-blue:#61a8ff;
 --cfs-premium-shadow:0 18px 50px rgba(1,8,17,.28);
}
body:not(.cfs-platform-admin-mode){
 background:
   radial-gradient(ellipse 880px 500px at 88% -4%,rgba(28,135,182,.13),transparent 70%),
   radial-gradient(ellipse 550px 430px at 4% 3%,rgba(54,153,174,.08),transparent 68%),
   #07121f;
 color:var(--cfs-premium-ink);
}
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver){
 --cfs-finish-surface:#0d2030;
 --cfs-finish-surface-soft:#112839;
 --cfs-finish-stroke:var(--cfs-premium-line);
 --cfs-finish-tint:var(--cfs-premium-cyan);
}
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver) :is(h1,h2,h3){
 text-wrap:balance;letter-spacing:-.035em;
}
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver) :is(.muted,.small){
 color:var(--cfs-premium-muted);
}
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver) a{
 text-underline-offset:3px;
}
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver) a:focus-visible,
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver) button:focus-visible,
body:not(.cfs-platform-admin-mode) :is(#admin,#tech,#garage,#recovery,#driver) :is(input,select,textarea):focus-visible{
 outline:2px solid var(--cfs-premium-cyan)!important;outline-offset:3px;
}
body:not(.cfs-platform-admin-mode) #top.top:not(.hidden){
 background:rgba(8,22,36,.91)!important;
 border-bottom:1px solid rgba(130,197,219,.22)!important;
 box-shadow:0 8px 26px rgba(0,7,17,.17)!important;
 backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
body:not(.cfs-platform-admin-mode) #top .ff-logo-mark,
body:not(.cfs-platform-admin-mode) #fixFleetAdminSidebar .ff-logo-mark{
 background:linear-gradient(145deg,#1c87b5,#2bd4bd)!important;
 color:#052032!important;box-shadow:0 5px 20px rgba(35,205,200,.19);
}
body.cfs-nav-collapsible #ffMasterSidebar{
 background:linear-gradient(180deg,#102a3b 0%,#081727 65%,#071521 100%)!important;
 border-right:1px solid rgba(110,197,214,.23)!important;
}
body.cfs-nav-collapsible #ffMasterSidebar :is(button,a):focus-visible{
 outline:2px solid var(--cfs-premium-cyan)!important;outline-offset:2px;
}
#admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-dispatch-head,.ff-audit-head,.ff-report-head,.ff-calendar-page-head){
 min-width:0;align-items:center;gap:16px;margin-bottom:18px!important;
}
#admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-dispatch-head,.ff-audit-head,.ff-report-head,.ff-calendar-page-head) h1{
 font-weight:790!important;font-size:clamp(23px,2.6vw,33px)!important;
 line-height:1.13!important;color:#f5fbff!important;letter-spacing:-.045em!important;
}
#admin :is(.ff-page-eyebrow,.ff2-page-eyebrow){
 color:var(--cfs-premium-mint)!important;opacity:.92!important;
 letter-spacing:.14em!important;font-size:10px!important;font-weight:850!important;
}
#admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head) p{
 max-width:68ch;line-height:1.55!important;
}
#admin :is(.ff-goal-topbar,.ff-goal-greeting,.ff2-dashboard-hero,.ff-premium-dashboard-heading){
 border-radius:20px;
}
#admin .ff-goal-greeting{
 background:
 linear-gradient(115deg,rgba(20,72,95,.94),rgba(12,38,59,.97) 58%,rgba(12,31,49,.96))!important;
 border:1px solid rgba(91,221,230,.26)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.045),0 12px 32px rgba(0,10,20,.20);
 padding:clamp(18px,2.5vw,30px)!important;
}
#admin .ff-goal-greeting :is(h1,h2){
 color:#fff!important;letter-spacing:-.055em!important;
}
#admin .ff-goal-kpi{
 background:linear-gradient(155deg,rgba(20,48,68,.99),rgba(10,28,45,.97))!important;
 border:1px solid var(--cfs-premium-line)!important;
 border-radius:17px!important;box-shadow:inset 0 1px rgba(255,255,255,.025);
 min-width:0;
}
#admin .ff-goal-kpi:hover{border-color:rgba(108,216,226,.38)!important;transform:translateY(-1px)}
#admin .ff-goal-panel,
#admin :is(.ff2-integration-card,.ff-settings-card,.ff-settings-page-card,.ff-audit-panel,.ff-dispatch-panel,.ff-wp-day,.ff-wp-lane,.ff2-attention-card,.ff-goal-search-results){
 background:linear-gradient(150deg,rgba(18,41,58,.98),rgba(10,27,43,.98))!important;
 border:1px solid var(--cfs-premium-line)!important;
 border-radius:17px!important;box-shadow:var(--cfs-premium-shadow);
 min-width:0;
}
#admin :is(.ff-hub-card,.ff2-action-card,.ff-report-card){
 background:linear-gradient(140deg,#142f43 0%,#102337 100%)!important;
 border:1px solid var(--cfs-premium-line)!important;
 border-radius:17px!important;
 box-shadow:inset 0 1px rgba(255,255,255,.025),0 9px 22px rgba(0,10,20,.14)!important;
 transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
 min-width:0;
}
#admin :is(button.ff-hub-card,button.ff2-action-card,button.ff-report-card):hover{
 background:linear-gradient(140deg,#1b3d53,#132b40)!important;
 transform:translateY(-2px)!important;border-color:rgba(103,221,232,.42)!important;
 box-shadow:0 15px 30px rgba(0,10,20,.23)!important;
}
#admin :is(.ff-hub-icon,.ff2-action-icon,.ff-report-icon){
 background:rgba(73,201,212,.12)!important;
 border:1px solid rgba(108,218,230,.14);
 border-radius:13px!important;
}
#admin :is(.ff-hub-grid,.ff2-action-grid,.ff-reports-grid,.ff-settings-grid){
 gap:12px!important;min-width:0;
}
#admin .ff-reports-grid{
 grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;
}
#admin .ff-report-card{
 min-height:104px!important;padding:15px!important;gap:12px!important;
}
#admin .ff-report-card :is(h3,p){max-width:100%;overflow-wrap:anywhere}
#admin .ff-report-card h3{font-size:15px!important;line-height:1.25!important}
#admin .ff-report-card p{font-size:12px!important;opacity:.80!important}
#admin .ff-report-summary > div,
#admin :is(.ff-wp-stat,.ff-dispatch-stat,.ff-audit-stat){
 background:rgba(93,182,207,.065)!important;
 border:1px solid var(--cfs-premium-line)!important;
 border-radius:13px!important;
}
#admin :is(.ff-report-table-scroll,.ff-audit-table-wrap,.ff-calendar-scroll){
 max-width:100%!important;overflow-x:auto!important;
 border:1px solid var(--cfs-premium-line);border-radius:13px;
 -webkit-overflow-scrolling:touch;
}
#admin :is(.ff-report-table,.ff-audit-table) thead th{
 background:#173347!important;color:#bfd8e5!important;
 letter-spacing:.07em!important;font-weight:750!important;
}
#admin :is(.ff-report-table,.ff-audit-table) tbody tr:hover{
 background:rgba(105,218,225,.065)!important;
}
#admin :is(.button,.ff2-quick-action,.ff-wp-toggle,.ff-dispatch-toggle){
 border-radius:11px!important;min-height:40px;
 font-weight:730!important;letter-spacing:.005em!important;
 transition:transform .14s ease,filter .14s ease,box-shadow .14s ease;
}
#admin :is(.button,.ff2-quick-action):hover:not(:disabled){
 transform:translateY(-1px);filter:brightness(1.08);
}
#admin :is(.button.primary,.button.success,.ff2-quick-action.primary){
 background:linear-gradient(110deg,#127b9d,#1caeaa)!important;
 color:#f7feff!important;
 border:1px solid rgba(124,237,233,.24)!important;
 box-shadow:0 7px 20px rgba(6,125,148,.19)!important;
}
#admin :is(input,select,textarea,.field,.ff-wp-field,.ff-dispatch-field){
 max-width:100%;min-width:0;border-radius:11px!important;
 border-color:rgba(139,188,210,.27)!important;
 background-color:#0c2132!important;color:#f7fbff!important;
}
#admin :is(input,select,textarea):focus{
 border-color:rgba(103,226,232,.68)!important;
 box-shadow:0 0 0 3px rgba(87,215,225,.10)!important;
}
#admin :is(.ff-goal-panel,.ff-report-card,.ff-hub-card,.ff2-action-card,.card) :is(p,.small){
 line-height:1.5;
}
#admin .ff-report-actions{flex-wrap:wrap}
#admin :is(.ff-report-card,.ff-hub-card,.ff2-action-card) :is(h3,strong){
 color:#f3fafd!important;
}
/* Technician screens — designed for gloved, mobile and workshop use. */
#tech.cfs-fitter-home:not(.hidden){
 --cfs-tech-border:rgba(137,200,217,.20);
 --cfs-tech-card:#102538;--cfs-tech-card-raised:#173248;
}
#tech .cfs-fitter-welcome{
 background:linear-gradient(116deg,rgba(15,80,98,.78),rgba(12,40,59,.97))!important;
 border:1px solid rgba(100,219,223,.29)!important;
 border-radius:19px!important;box-shadow:0 15px 35px rgba(0,8,20,.17);
 padding:clamp(19px,4vw,29px)!important;
}
#tech .cfs-fitter-welcome h1{font-size:clamp(28px,5vw,37px)!important;letter-spacing:-.05em}
#tech :is(.tech-job-card,.workshop-job-card,.cfs-fitter-type,.cfs-safety-confirm){
 background:linear-gradient(155deg,#142d41,#0c2031)!important;
 border:1px solid rgba(148,195,217,.19)!important;
 border-radius:17px!important;box-shadow:0 8px 25px rgba(0,9,20,.15);
 min-width:0;
}
#tech :is(.cfs-fitter-type.active,.cfs-fitter-type[aria-selected="true"]){
 border-color:rgba(115,237,220,.58)!important;
 box-shadow:inset 0 0 0 1px rgba(115,237,220,.15),0 8px 25px rgba(0,8,18,.15)!important;
}
#tech :is(.cfs-fitter-type,.button,.breakdown-tab,.workshop-subtabs button){
 min-height:46px!important;border-radius:12px!important;
}
#tech :is(.button.primary,.button.success){
 background:linear-gradient(115deg,#137e9e,#17a99d)!important;
 box-shadow:0 8px 22px rgba(3,123,144,.20)!important;
}
#tech :is(input,textarea,select){max-width:100%;min-width:0;border-radius:11px!important}
/* Partner and platform portals — preserve independent role/auth layout. */
:is(#garage,#recovery,#driver):not(.hidden) :is(.card,.item,.garage-job-card){
 background:linear-gradient(145deg,#142d42,#0c2032)!important;
 border:1px solid var(--cfs-premium-line)!important;border-radius:17px!important;
}
body.cfs-platform-admin-mode #platformAdmin :is(.cfsAdminInfo,.cfsExecPanel,.cfsHealthStat){
 border-radius:16px!important;
 border-color:rgba(134,192,218,.22)!important;
}
body.cfs-platform-admin-mode #platformAdmin :is(button,input,select,textarea):focus-visible{
 outline:2px solid #65e5ef!important;outline-offset:3px;
}
@media (max-width:900px){
 #admin :is(.ff-hub-grid,.ff2-action-grid,.ff-settings-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important}
 #admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head){align-items:flex-start!important}
}
@media (max-width:680px){
 #admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head,.ff-dispatch-head){
  flex-direction:column!important;align-items:stretch!important;gap:11px!important;
 }
 #admin :is(.ff-page-heading,.ff2-page-heading,.ff-wp-head,.ff-report-head) h1{font-size:25px!important}
 #admin :is(.ff-hub-grid,.ff2-action-grid,.ff-reports-grid,.ff-settings-grid){grid-template-columns:minmax(0,1fr)!important}
 #admin :is(.ff-hub-card,.ff2-action-card,.ff-report-card){min-height:unset!important;padding:15px!important}
 #admin :is(.ff-report-summary,.ff-goal-kpis){gap:8px!important}
 #admin :is(.ff-report-actions,.actions){flex-wrap:wrap!important;gap:8px!important}
 #admin :is(.ff-report-actions,.actions) .button{min-width:110px}
 #tech .cfs-fitter-job-types{gap:8px!important}
 #tech .cfs-fitter-type{padding:12px!important}
 #tech .cfs-fitter-type small{font-size:11px!important}
}
@media (prefers-reduced-motion:reduce){
 #admin :is(.ff-hub-card,.ff2-action-card,.ff-report-card,.ff-goal-kpi,.button),
 #tech :is(.cfs-fitter-type,.button){transition:none!important;transform:none!important}
}
