:root{--bg:#f4f7fb;--panel:#fff;--sidebar:#0f172a;--sidebar2:#111c32;--text:#172033;--muted:#667085;--line:#e5e9f0;--accent:#2563eb;--accent2:#0ea5e9;--success:#16a34a;--warn:#d97706;--danger:#dc2626;--shadow:0 12px 35px rgba(15,23,42,.08);--radius:14px}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.hidden{display:none!important}
.auth-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,#dbeafe 0,transparent 35%),linear-gradient(135deg,#0f172a,#12233f)}.auth-card{width:min(430px,92vw);background:#fff;border-radius:22px;padding:34px;box-shadow:0 28px 90px rgba(0,0,0,.28)}.brand{display:flex;gap:13px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#0ea5e9);display:grid;place-items:center;color:#fff;font-weight:800}.brand h1{font-size:20px;margin:0}.sub{color:var(--muted);font-size:13px}.auth-card h2{margin:30px 0 8px;font-size:25px}.auth-card p{color:var(--muted);line-height:1.55}.google-btn{width:100%;padding:13px 16px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;cursor:pointer;font-weight:700;display:flex;justify-content:center;gap:10px;align-items:center}.google-btn:hover{background:#f8fafc}.lang-row{display:flex;gap:8px;margin-top:18px;justify-content:center}.lang-row button,.lang-switch button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:5px 8px;border-radius:7px}.lang-row button.active,.lang-switch button.active{background:#eaf1ff;color:var(--accent);font-weight:700}.auth-note{font-size:12px;color:#98a2b3;text-align:center;margin-top:18px}
.app{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:linear-gradient(180deg,var(--sidebar),var(--sidebar2));color:#fff;padding:18px 14px;position:sticky;top:0;height:100vh}.sidebar .brand{padding:6px 8px 22px}.sidebar .brand h1{font-size:17px}.sidebar .sub{color:#9fb1cb}.nav{display:flex;flex-direction:column;gap:6px}.nav button{border:0;background:transparent;color:#cbd5e1;text-align:left;padding:11px 12px;border-radius:9px;cursor:pointer;display:flex;gap:10px;align-items:center}.nav button:hover,.nav button.active{background:rgba(255,255,255,.09);color:#fff}.nav .section{font-size:11px;color:#718096;padding:18px 12px 7px;text-transform:uppercase;letter-spacing:.08em}.sidebar-footer{position:absolute;bottom:16px;left:14px;right:14px}.user-card{padding:11px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04)}.user-card .name{font-weight:700;font-size:13px}.user-card .mail{font-size:11px;color:#8ea0b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout{width:100%;margin-top:9px;padding:9px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#dbe5f3;cursor:pointer}
.main{min-width:0}.topbar{height:68px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:10}.topbar-title{font-weight:800}.top-actions{display:flex;align-items:center;gap:12px}.region-chip{font-size:12px;padding:7px 10px;border-radius:999px;background:#eef4ff;color:#3157a4}.content{padding:24px;max-width:1600px;margin:0 auto}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:20px}.page-head h2{margin:0;font-size:25px}.page-head p{margin:6px 0 0;color:var(--muted);font-size:13px}.btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:9px 13px;border-radius:9px;cursor:pointer;font-weight:650}.btn:hover{background:#f8fafc}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}.btn.small{padding:6px 9px;font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 2px 8px rgba(15,23,42,.03)}.metric-label{font-size:12px;color:var(--muted);font-weight:650}.metric-value{font-size:28px;font-weight:800;margin-top:8px}.metric-foot{font-size:12px;color:#98a2b3;margin-top:5px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 8px rgba(15,23,42,.03);overflow:hidden}.panel-head{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.filters{display:flex;gap:9px;flex-wrap:wrap}.filters input,.filters select,.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #d8dee8;border-radius:9px;padding:9px 10px;background:#fff;outline:none}.filters input:focus,.filters select:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#8ab4ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table th{position:sticky;top:0;background:#f8fafc;color:#475467;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:12px;border-bottom:1px solid #edf0f4;white-space:nowrap}.data-table tr:hover td{background:#fbfdff}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750;background:#eef2f7;color:#475467}.badge.active,.badge.available{background:#ecfdf3;color:#067647}.badge.maintenance,.badge.replacement{background:#fffaeb;color:#b54708}.badge.out_of_service,.badge.blacklisted{background:#fef3f2;color:#b42318}.badge.archived,.badge.inactive{background:#f2f4f7;color:#667085}.badge.admin{background:#eef4ff;color:#3538cd}.badge.editor{background:#ecfdf3;color:#067647}.badge.viewer{background:#f2f4f7;color:#475467}.empty{padding:40px;text-align:center;color:#98a2b3}.warn-banner{padding:12px 14px;border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:10px;margin-bottom:14px;font-size:13px;font-weight:650}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.52);display:grid;place-items:center;padding:20px;z-index:100}.modal{width:min(760px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 30px 100px rgba(15,23,42,.35)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:17px 19px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0}.modal-body{padding:18px}.modal-foot{padding:14px 18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#475467}.field textarea{min-height:86px;resize:vertical}.details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.detail{padding:12px;border:1px solid var(--line);border-radius:10px}.detail .k{font-size:11px;color:var(--muted);text-transform:uppercase}.detail .v{font-weight:700;margin-top:5px}.toast{position:fixed;right:22px;bottom:22px;background:#111827;color:#fff;padding:12px 15px;border-radius:10px;box-shadow:var(--shadow);z-index:200;font-size:13px}.toast.error{background:#991b1b}.loading{position:fixed;inset:0;background:rgba(255,255,255,.62);display:grid;place-items:center;z-index:180;font-weight:750}.spinner{width:34px;height:34px;border:3px solid #dbe4f0;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin:auto auto 9px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.app{grid-template-columns:210px 1fr}.details-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.app{display:block}.sidebar{position:relative;height:auto}.sidebar-footer{position:relative;left:auto;right:auto;bottom:auto;margin-top:20px}.content{padding:16px}.cards{grid-template-columns:1fr}.topbar{padding:0 14px}.form-grid,.details-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.page-head{align-items:flex-start;flex-direction:column}}

.badge.owner{background:#f3e8ff;color:#7e22ce}.badge.pending{background:#fff7ed;color:#c2410c}.badge.approved{background:#ecfdf3;color:#067647}.badge.rejected{background:#fef2f2;color:#b91c1c}.muted{color:var(--muted);font-size:11px}
.form-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:-4px 0 18px}.form-tab{border:0;background:transparent;padding:10px 14px;cursor:pointer;color:var(--muted);font-weight:750;border-bottom:2px solid transparent}.form-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.tab-panel{display:none}.tab-panel.active{display:grid}.tab-panel[data-vpanel="contract"].active{display:block}.subsection-title{font-weight:800;font-size:14px;margin:4px 0 12px}.contract-history{margin-bottom:18px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.contract-history .subsection-title{padding:12px 14px;margin:0;background:#f8fafc;border-bottom:1px solid var(--line)}.empty.compact{padding:20px}.comparison-panel{overflow:visible}.comparison-filters{align-items:center}.check-filter{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#475467;padding:7px 8px}.comparison-cards{padding:16px;margin:0;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid var(--line)}.comparison-table tr.rent-up td{background:#fff7f7}.comparison-table tr.rent-down td{background:#f3fff7}.comparison-table tr.rent-same td{background:#fbfcfd}.comparison-table tr.rent-new td{background:#f8fbff}.delta{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.delta.up{background:#fef2f2;color:#b91c1c}.delta.down{background:#ecfdf3;color:#067647}.delta.same{background:#f2f4f7;color:#667085}.total-row td{background:#eef4ff!important;border-top:2px solid #c7d7fe}.muted{color:var(--muted);font-size:11px}
@media(max-width:1100px){.comparison-cards{grid-template-columns:repeat(2,1fr)}}

/* === Anex Thailand Transport Operation — Visual V5 === */
:root{--anex-navy:#071b3d;--anex-navy2:#0b2d68;--anex-blue:#1268f3;--anex-red:#ed1c24;--surface:#ffffff;--soft:#f5f8fd;--text:#10213f;--muted:#6c7d99;--line:#dce5f0}
body{background:linear-gradient(180deg,#f7fbff 0,#eef4fb 100%);color:var(--text)}
.app{grid-template-columns:264px minmax(0,1fr)}
.sidebar{padding:18px 12px;background:
 radial-gradient(circle at 18% 72%,rgba(37,99,235,.22),transparent 28%),
 linear-gradient(165deg,#061633 0%,#082657 52%,#061a3b 100%);overflow:hidden}
.sidebar:after{content:"";position:absolute;left:-70px;bottom:-120px;width:390px;height:390px;border-radius:50%;background:radial-gradient(circle,rgba(56,139,255,.22),rgba(5,27,62,0) 66%);pointer-events:none}
.sidebar .brand{align-items:flex-start;padding:0 14px 24px;display:block}
.anex-logo{display:block;width:165px;height:auto;object-fit:contain;margin:0 0 10px}
.sidebar .brand h1{font-size:14px;line-height:1.3;color:#fff;font-weight:800;max-width:205px}.sidebar .sub{font-size:11px;color:#95add0;margin-top:4px}
.nav{gap:7px;position:relative;z-index:2}.nav button{font-size:14px;padding:13px 14px;border-radius:10px;gap:13px;color:#eef5ff}.nav button span{width:19px;text-align:center;font-size:16px}.nav button:hover{background:rgba(255,255,255,.08)}.nav button.active{background:linear-gradient(90deg,#0b54c5,#1268f3);box-shadow:0 7px 18px rgba(18,104,243,.28)}
.nav .section{margin-top:5px;padding:17px 14px 8px;border-top:1px solid rgba(255,255,255,.11);color:#7592be;letter-spacing:.13em}
.sidebar-ambient{position:absolute;left:16px;right:16px;bottom:18px;height:150px;border-radius:18px;background:linear-gradient(180deg,transparent,rgba(255,255,255,.03));pointer-events:none}
.main{min-width:0;background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(245,249,254,.95))}
.topbar{height:72px;padding:0 28px;background-image:linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.8)),url('./assets/header-bg.jpg');background-size:cover;background-position:center;border-bottom:1px solid #dce6f2;box-shadow:0 5px 18px rgba(30,64,175,.04)}
.topbar-title{font-weight:800;font-size:15px;color:#253858}.top-actions{gap:10px}.region-chip{background:#fff;border:1px solid #d9e4f1;border-radius:8px;color:#385a94;padding:8px 10px;box-shadow:0 2px 7px rgba(15,23,42,.03)}
.lang-switch{display:flex;gap:2px}.lang-switch button{min-width:34px;padding:7px 9px}.lang-switch button.active{background:#e9f2ff;color:#1268f3}
.header-user{display:flex;align-items:center;gap:9px;padding-left:8px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#b9d7ff,#84b8ff);color:#0b2d68;font-weight:850}.header-user-copy{display:flex;flex-direction:column;line-height:1.2}.header-user-copy strong{font-size:12px}.header-user-copy span{font-size:10px;color:#64748b;margin-top:3px}.header-logout{border:0;background:transparent;color:#46648f;font-size:18px;cursor:pointer;padding:6px;border-radius:8px}.header-logout:hover{background:#edf4ff}
.content{padding:22px 28px 32px;max-width:none}.page-head{margin-bottom:16px;align-items:center}.page-head h2{font-size:27px;color:#10213f;letter-spacing:-.02em}.page-head p{color:#6d7f9b;font-size:13px}.fleet-hero{padding-top:2px}
.cards{gap:12px}.fleet-cards{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}.card.metric-card{display:flex;align-items:center;gap:14px;padding:15px 16px;border:1px solid #dce6f2;border-radius:13px;box-shadow:0 8px 20px rgba(37,99,235,.05);background:rgba(255,255,255,.96)}.metric-icon{width:48px;height:48px;border-radius:13px;background:linear-gradient(145deg,#e5f1ff,#f2f7ff);display:grid;place-items:center;color:#1268f3;font-weight:900;font-size:22px;flex:0 0 auto}.metric-card:nth-child(3) .metric-icon{background:#fff0df;color:#f28b1f}.metric-card:nth-child(4) .metric-icon{background:#e7fbf3;color:#12a96a}.metric-card:nth-child(5) .metric-icon{background:#f2ecff;color:#7655e8}.metric-copy{min-width:0}.metric-label{color:#405575;font-size:11px}.metric-value{font-size:27px;margin-top:2px;color:#10213f}.metric-foot{margin-top:1px}
.panel{border:1px solid #dce6f2;border-radius:13px;box-shadow:0 8px 24px rgba(34,72,120,.055)}.fleet-panel{overflow:hidden}.fleet-panel-head{padding:14px 16px}.fleet-panel-head>div:first-child{display:flex;flex-direction:column;gap:2px}.fleet-panel-head strong{font-size:18px;color:#12233f}.fleet-panel-head span{font-size:11px;color:#7b8da8}.filters input,.filters select{height:38px;border-color:#d8e3ef;border-radius:9px;background:#fff}.filters input{min-width:290px}.add-vehicle-btn{box-shadow:0 8px 18px rgba(18,104,243,.22)}
.data-table{font-size:12px}.data-table th{background:#f7faff;color:#4d6384;padding:10px 11px}.data-table td{padding:9px 11px;vertical-align:middle}.data-table tr:hover td{background:#f9fbff}.fleet-table td:first-child{width:118px}.vehicle-thumb{width:100px;height:48px;border-radius:9px;overflow:hidden;background:linear-gradient(145deg,#f5f8fc,#eaf0f7);display:flex;align-items:center;justify-content:center;border:1px solid #e3eaf2}.vehicle-thumb.photo img{width:100%;height:100%;object-fit:cover}.vehicle-thumb.fallback span{font-size:11px;letter-spacing:.08em;font-weight:850;color:#6f86a6}.type-pill{display:inline-flex;padding:5px 10px;border-radius:9px;background:#e8f1ff;color:#1268f3;font-size:10px;font-weight:800;text-transform:uppercase}.muted-line{font-size:10px;color:#8291a8;margin-top:3px;text-transform:uppercase}.action-group{display:flex;gap:5px}.icon-btn{width:30px;height:30px;border-radius:8px;border:1px solid #dbe5f0;background:#fff;color:#35537d;cursor:pointer;display:grid;place-items:center}.icon-btn:hover{background:#f1f6fd}.icon-btn.danger{background:#fff5f5;border-color:#ffd9dc;color:#d9363e}.icon-btn.primary{color:#1268f3;background:#edf4ff}.badge{padding:5px 10px}.badge.active,.badge.available{background:#ddf8ee;color:#0c9b63}.badge.maintenance{background:#fff2df;color:#e27b11}
.modal{border-radius:18px;border:1px solid #dce6f2}.modal-head{background:linear-gradient(180deg,#ffffff,#fbfdff)}.modal-head h3{color:#142542}.form-tabs{margin-top:-2px}.form-tab.active{color:#1268f3;border-bottom-color:#1268f3}.subsection-title{color:#213655}.form-grid input,.form-grid select,.form-grid textarea{background:#fff;border-color:#d6e1ed}.contract-history{border-color:#dce6f2}
.comparison-panel .panel-head{background:#fbfdff}.comparison-cards .card{border-color:#dce6f2}
.auth-shell{background:radial-gradient(circle at 70% 18%,rgba(37,99,235,.25),transparent 30%),linear-gradient(145deg,#061633,#0a2a61)}.auth-card .brand-mark{display:none}.auth-card .brand:before{content:"";display:block;width:185px;height:48px;background:url('./assets/anex-logo.png') center/contain no-repeat}.auth-card .brand h1{font-size:15px}
@media(max-width:1250px){.fleet-cards{grid-template-columns:repeat(3,1fr)}.header-user-copy{display:none}}
@media(max-width:900px){.app{grid-template-columns:220px 1fr}.fleet-cards{grid-template-columns:repeat(2,1fr)}.filters input{min-width:180px}.content{padding:18px}.topbar{padding:0 18px}}
@media(max-width:760px){.app{display:block}.sidebar{position:relative;height:auto}.anex-logo{width:145px}.sidebar-ambient{display:none}.header-user-copy{display:none}.fleet-cards{grid-template-columns:1fr}.fleet-panel-head{align-items:flex-start;flex-direction:column}.filters{width:100%}.filters input,.filters select{width:100%;min-width:0}.topbar{position:relative}.topbar-title{display:none}.header-user{padding-left:0}.content{padding:14px}}

/* === Visual V6 — approved mockup alignment === */
body{background:#eef4fb}.main{background:linear-gradient(180deg,#f8fbff 0,#edf3fa 100%)}
.sidebar{width:auto;background:linear-gradient(180deg,#061630 0%,#0a2d68 55%,#071f49 100%)}
.sidebar:before{content:"";position:absolute;inset:auto 0 0 0;height:42%;background:linear-gradient(180deg,rgba(4,24,55,0),rgba(6,30,67,.25)),url('./assets/header-bg.jpg') center bottom/cover no-repeat;opacity:.25;mix-blend-mode:screen;pointer-events:none}
.sidebar .brand{padding:2px 16px 26px}.anex-logo{width:172px;margin-bottom:9px}.sidebar .brand h1{font-size:15px;line-height:1.22;max-width:220px}.sidebar .sub{font-size:11px}.nav button{min-height:46px;padding:12px 14px}.nav button.active{background:linear-gradient(90deg,#0d58cc 0,#1a6ef5 100%)}
.topbar{height:72px;background-image:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.80)),url('./assets/header-bg.jpg');background-position:center 42%;background-size:cover}.topbar-title{font-size:14px}.header-user{min-width:220px;justify-content:flex-end}.avatar{width:40px;height:40px}.header-user-copy strong{font-size:12px}.header-user-copy span{font-size:10px}.content{padding:24px 28px 38px}.page-head{margin-bottom:18px}.page-head h2{font-size:31px;line-height:1.05}.page-head p{margin-top:5px;font-size:13px}
.dashboard-grid{display:grid;gap:12px}.top-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.sub-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.fleet-kpis{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}
.metric-card{min-height:104px}.card.metric-card{padding:17px 18px;gap:15px}.metric-icon{width:52px;height:52px;font-size:24px}.metric-label{font-size:12px;font-weight:750}.metric-value{font-size:31px}.metric-foot{font-size:10px;color:#8ca0ba}.top-metrics .metric-card:nth-child(3) .metric-icon,.fleet-kpis .metric-card:nth-child(3) .metric-icon{background:#fff0de;color:#ef8a1b}.top-metrics .metric-card:nth-child(4) .metric-icon,.fleet-kpis .metric-card:nth-child(4) .metric-icon{background:#e8fbf4;color:#11a667}.sub-metrics .metric-card:nth-child(1) .metric-icon,.fleet-kpis .metric-card:nth-child(5) .metric-icon{background:#f0ebff;color:#7258e6}
.dashboard-recent{margin-top:0}.dashboard-panel-head{display:flex;align-items:center;justify-content:space-between}.dashboard-panel-head>div{display:flex;flex-direction:column;gap:2px}.dashboard-panel-head strong{font-size:18px}.dashboard-panel-head span{font-size:11px;color:#7d8faa}.link-btn{border:0;background:transparent;color:#1268f3;font-weight:750;cursor:pointer}
.fleet-panel-head{gap:16px}.fleet-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.fleet-tools select{height:40px;border:1px solid #d8e3ef;border-radius:9px;background:#fff;padding:0 34px 0 11px;color:#39516f}.searchbox{height:40px;display:flex;align-items:center;gap:8px;border:1px solid #d8e3ef;background:#fff;border-radius:9px;padding:0 11px;min-width:320px}.searchbox span{color:#58749a;font-size:18px}.searchbox input{border:0;outline:0;background:transparent;width:100%;min-width:0;height:36px}.searchbox:focus-within{border-color:#9ec4ff;box-shadow:0 0 0 3px rgba(18,104,243,.08)}
.fleet-table th{font-size:10px;letter-spacing:.015em;padding-top:11px;padding-bottom:11px}.fleet-table td{height:66px}.fleet-table td:first-child{width:128px}.vehicle-thumb{width:112px;height:52px;border:none;background:transparent}.vehicle-thumb.photo{background:#fff}.vehicle-thumb.photo img{object-fit:contain}.vehicle-thumb.fallback{border:1px solid #dde6f0;background:linear-gradient(145deg,#f8fbff,#edf2f8)}.vehicle-thumb.fallback span{font-size:10px}.type-pill{min-width:58px;justify-content:center}.action-group{justify-content:flex-end}.icon-btn{width:32px;height:32px}.data-table th:last-child,.data-table td:last-child{text-align:right}
.panel{background:rgba(255,255,255,.98)}.fleet-panel{border-radius:15px}.fleet-panel-head{padding:16px 18px}.table-wrap{overflow-x:auto}.data-table tbody tr:last-child td{border-bottom:0}
.modal-backdrop{background:rgba(8,22,46,.52);backdrop-filter:blur(3px)}.modal{max-width:960px;box-shadow:0 30px 80px rgba(7,27,61,.28)}.modal-head{padding:18px 20px}.modal-body{padding:18px 20px}.modal-foot{padding:14px 20px}.form-tab{padding:12px 16px}.contract-history{background:#fbfdff}
.comparison-panel{border-radius:15px}.comparison-cards{gap:12px}.comparison-cards .card{min-height:95px}
@media(max-width:1300px){.fleet-kpis{grid-template-columns:repeat(3,1fr)}.top-metrics{grid-template-columns:repeat(2,1fr)}.header-user{min-width:auto}.searchbox{min-width:250px}}
@media(max-width:980px){.sub-metrics{grid-template-columns:1fr}.fleet-kpis{grid-template-columns:repeat(2,1fr)}.fleet-panel-head{align-items:flex-start;flex-direction:column}.fleet-tools{width:100%}.searchbox{flex:1;min-width:220px}}
@media(max-width:760px){.top-metrics,.fleet-kpis{grid-template-columns:1fr}.sub-metrics{grid-template-columns:1fr}.vehicle-thumb{width:86px}.content{padding:14px}.header-user{min-width:0}.fleet-tools{display:grid;grid-template-columns:1fr}.searchbox,.fleet-tools select{width:100%;min-width:0}}


/* === Visual V7 — strict mockup parity pass === */
.sidebar:before{height:44%;background:linear-gradient(180deg,rgba(6,22,48,0) 0%,rgba(6,22,48,.12) 15%,rgba(6,22,48,.82) 100%),url('./assets/sidebar-bus-bg.png') center bottom/cover no-repeat;opacity:.95;mix-blend-mode:normal}
.sidebar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:18%;background:linear-gradient(180deg,rgba(6,22,48,0),rgba(5,20,43,.97));pointer-events:none}
.sidebar .brand,.nav{position:relative;z-index:2}.sidebar .section{color:#7897c4;border-top:1px solid rgba(255,255,255,.11);padding-top:14px;margin-top:14px}
.anex-logo{width:178px;max-height:46px;object-fit:contain;object-position:left center}.sidebar .brand h1{font-size:15px;font-weight:800;line-height:1.25}.sidebar .sub{font-size:11px;color:#b9c9df}
.topbar{height:76px;background-image:linear-gradient(90deg,rgba(255,255,255,.93),rgba(255,255,255,.77)),url('./assets/header-bg-clean.png');background-position:center top;background-size:cover;border-bottom:1px solid #dce6f1}.topbar-title{font-size:13px;font-weight:800;color:#203452}.top-actions{gap:10px}.region-chip{height:36px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid #d8e3ef;border-radius:9px;background:#fff;color:#375678}.lang-switch button{height:36px;min-width:36px;border-radius:8px}.header-user{gap:10px;padding-left:8px}.avatar{width:40px;height:40px;font-size:14px}.header-user-copy strong{font-size:12px}.header-user-copy span{font-size:10px;color:#697f9c}
.content{padding:26px 28px 40px}.page-head h2{font-size:32px}.page-head p{font-size:14px}.card.metric-card{min-height:108px}.metric-icon{width:54px;height:54px;border-radius:14px}.metric-value{font-size:32px}.metric-label{font-size:12px}.metric-foot{min-height:12px}
.dashboard-recent,.fleet-panel{border-radius:15px;overflow:hidden}.dashboard-panel-head,.fleet-panel-head{padding:17px 18px}.dashboard-panel-head strong,.fleet-panel-head strong{font-size:20px}.dashboard-panel-head span,.fleet-panel-head span{font-size:11px}.fleet-tools{gap:9px}.fleet-tools .btn{height:40px;border-radius:9px}.searchbox{min-width:360px}.fleet-tools select{min-width:120px}
.data-table{font-size:12px}.data-table th{height:40px;padding:10px 12px}.fleet-table td{height:72px;padding:9px 12px}.fleet-table td:first-child{width:132px}.vehicle-thumb{width:116px;height:56px;border-radius:8px}.vehicle-thumb.photo img{object-fit:contain;background:#fff}.vehicle-thumb.fallback{background:#f2f6fb;border:1px solid #dce6f1}.vehicle-thumb.fallback span{font-size:10px;color:#6880a0}.type-pill{padding:6px 10px;border-radius:10px;font-size:10px}.muted-line{font-size:10px}.action-group{gap:6px}.icon-btn{width:33px;height:33px;border-radius:8px}
.panel-head{border-bottom:1px solid #e2e9f2}.data-table thead th{background:#f8fbff}.data-table tbody tr:hover td{background:#fbfdff}
.modal{max-width:980px}.modal-body{background:#fff}.form-tabs{background:#fff}.form-tab{font-weight:750}
@media(max-width:1200px){.searchbox{min-width:240px}.fleet-tools select{min-width:105px}}

/* V7.1 sidebar background scale refinement */
.sidebar:before{
  height:36%;
  background:
    linear-gradient(180deg,rgba(6,22,48,0) 0%,rgba(6,22,48,.10) 24%,rgba(6,22,48,.76) 100%),
    url('./assets/sidebar-bus-bg.png') center bottom 18px/215px auto no-repeat;
  opacity:.70;
}
.sidebar:after{
  height:16%;
  background:linear-gradient(180deg,rgba(6,22,48,0),rgba(5,20,43,.96));
}

/* V8 seat capacity + sidebar bus visibility */
.seat-pill{display:inline-flex;min-width:34px;justify-content:center;align-items:center;padding:5px 10px;border-radius:999px;background:#eef4ff;color:#1859d8;font-weight:800}
.sidebar:before{height:50%!important;opacity:1!important;background:linear-gradient(180deg,rgba(6,22,48,0) 0%,rgba(6,22,48,.04) 12%,rgba(6,22,48,.62) 100%),url('./assets/sidebar-bus-bg.png') center bottom/72% auto no-repeat!important}

/* V8.3 vehicle type thumbnail fallback */
.vehicle-icon-thumb{display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f8fbff,#eef4fb);}
.vehicle-emoji{font-size:34px;line-height:1;filter:saturate(.85);transform:scaleX(1.06);}
.badge.out_of_service{background:#eef1f5;color:#667085;border-color:#d7dce3;}

.inline-status{min-width:118px;border:1px solid #d8e2f0;border-radius:999px;padding:7px 10px;background:#fff;font-weight:700;color:#334155}.maintenance-chip{border:0;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}.maintenance-chip.scheduled{background:#eef4ff;color:#2563eb}.maintenance-chip.in_maintenance{background:#fff3dc;color:#d97706}.maintenance-chip.completed{background:#e8f8ef;color:#15803d}.maintenance-chip.cancelled{background:#f3f4f6;color:#64748b}.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.report-filters{padding:6px}.badge.in_maintenance{background:#fff3dc;color:#d97706}.badge.scheduled{background:#eef4ff;color:#2563eb}.badge.completed{background:#e8f8ef;color:#15803d}.badge.cancelled{background:#f3f4f6;color:#64748b}


/* ===== Operations Cover ===== */
.op-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.op-toolbar .field{min-width:155px}
.op-toolbar .field label{display:block;font-size:11px;font-weight:800;color:#64748b;margin-bottom:5px;text-transform:uppercase}
.op-toolbar input,.op-toolbar select{height:40px;border:1px solid #d7e0ec;border-radius:9px;padding:0 10px;background:#fff;color:#0b1f44;font-weight:700}
.op-hero{position:relative;overflow:hidden;border-radius:18px;background:linear-gradient(105deg,#fff 0%,#f8fbff 55%,#e7f4ff 100%);box-shadow:0 8px 26px rgba(15,42,86,.08);border:1px solid #e0e9f4;margin-bottom:12px;padding:18px 22px 0}
.op-hero:after{content:"";position:absolute;inset:0 0 auto auto;width:42%;height:100%;background:url('./assets/header-bg-clean.png') center/cover no-repeat;opacity:.62;pointer-events:none}
.op-hero-brand{position:relative;z-index:2;display:flex;align-items:center;gap:22px;min-height:80px}
.op-hero-brand img{width:190px;max-height:62px;object-fit:contain;object-position:left center}
.op-hero-brand h1{margin:0;color:#0b2453;font-size:30px;letter-spacing:.2px}
.op-hero-brand p{margin:5px 0 0;color:#587096;font-weight:700;font-size:12px;letter-spacing:.5px}
.op-hero-image{position:absolute;right:18px;top:8px;z-index:3;width:250px;height:110px;display:flex;justify-content:flex-end;align-items:center}
.op-hero-image img{max-width:100%;max-height:108px;object-fit:contain;filter:drop-shadow(0 9px 8px rgba(15,23,42,.18));border-radius:14px}
.op-metrics{position:relative;z-index:4;display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 12px;padding-right:270px}
.op-metrics>div{min-width:175px;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;background:rgba(239,247,255,.9);border-radius:10px;padding:10px 12px;border:1px solid #deebf8}
.op-metrics>div>span{grid-row:1/3;font-size:26px;color:#126ac2;align-self:center}
.op-metrics small{font-size:10px;color:#577397;font-weight:800}
.op-metrics strong{font-size:18px;color:#102a56}
.op-metrics .active strong,.op-metrics .active>span{color:#16a34a}
.op-legend{position:relative;z-index:4;display:flex;gap:18px;flex-wrap:wrap;padding:10px 0 12px;border-top:1px solid #e6edf6;font-size:11px;font-weight:800;color:#18355e}
.op-legend span{display:flex;align-items:center;gap:7px}
.op-legend i{width:22px;height:14px;border-radius:3px;display:inline-block}
.op-cover-panel{background:#fff;border:1px solid #dfe8f2;border-radius:14px;overflow:hidden;box-shadow:0 7px 20px rgba(15,42,86,.06)}
.op-grid-wrap{overflow-x:auto;overflow-y:visible;max-height:none}
.op-grid{border-collapse:separate;border-spacing:0;min-width:1450px;width:max-content;font-size:11px}
.op-grid th,.op-grid td{border-right:1px solid #cfdae7;border-bottom:1px solid #cfdae7}
.op-grid thead th{position:sticky;top:0;z-index:7;background:#102f61;color:#fff;padding:10px 8px;text-align:center;font-size:11px;letter-spacing:.2px}
.op-grid thead .op-job-head{min-width:180px;background:#102f61;color:#fff;font-size:15px}
.op-grid thead .op-job-head:nth-child(9){background:#102f61}
.op-grid thead .op-job-head:nth-child(10){background:#102f61}
.op-grid thead .op-job-head:nth-child(11){background:#102f61}
.op-grid thead .op-job-head:nth-child(12){background:#102f61}
.op-job-head small{display:block;font-size:9px;margin-top:3px}
.op-grid th:nth-child(-n+7),.op-grid td:nth-child(-n+7){position:sticky;z-index:5;background:#fff}
.op-grid th:nth-child(1),.op-grid td:nth-child(1){left:0;width:38px;min-width:38px}
.op-grid th:nth-child(2),.op-grid td:nth-child(2){left:38px;width:92px;min-width:92px}
.op-grid th:nth-child(3),.op-grid td:nth-child(3){left:130px;width:120px;min-width:120px}
.op-grid th:nth-child(4),.op-grid td:nth-child(4){left:250px;width:58px;min-width:58px}
.op-grid th:nth-child(5),.op-grid td:nth-child(5){left:308px;width:120px;min-width:120px}
.op-grid th:nth-child(6),.op-grid td:nth-child(6){left:428px;width:105px;min-width:105px}
.op-grid th:nth-child(7),.op-grid td:nth-child(7){left:533px;width:95px;min-width:95px;border-right:2px solid #8ba5c5}
.op-grid thead th:nth-child(-n+7){z-index:9;background:#102f61}
.op-grid tbody td{padding:7px;text-align:center;color:#0f274c;vertical-align:middle;height:78px}
.op-grid tbody tr:nth-child(even) td:nth-child(-n+7){background:#f8fbff}
.op-no{font-weight:900}
.op-status select{border:0;border-radius:7px;color:white;font-weight:900;font-size:10px;padding:8px 5px;width:82px;text-align:center}
.op-job-cell{position:relative;min-width:180px;padding:5px!important}
.op-job-cell input,.op-job-cell textarea{display:block;width:100%;border:0;background:transparent;text-align:center;outline:none;color:inherit;font-weight:800;font-family:inherit;resize:none}
.op-job-cell .op-area{font-size:11px;text-transform:uppercase}
.op-job-cell .op-time{font-size:12px;margin:2px 0}
.op-job-cell .op-job-text{height:38px;font-size:10px;line-height:1.15;overflow:hidden}
.op-color-btn{position:absolute;right:3px;top:3px;border:0;background:rgba(255,255,255,.8);border-radius:50%;width:18px;height:18px;cursor:pointer;font-size:10px;color:#334155}
.op-palette{display:none;position:absolute;z-index:25;right:2px;top:23px;background:white;border:1px solid #cbd5e1;padding:5px;border-radius:8px;box-shadow:0 8px 20px rgba(15,23,42,.18);grid-template-columns:repeat(5,22px);gap:4px}
.op-palette.show{display:grid}
.op-color{width:22px;height:22px;border:1px solid #cbd5e1;border-radius:4px;cursor:pointer}
.op-color.selected{outline:2px solid #0f2f61;outline-offset:1px}
.op-empty{padding:60px;text-align:center;display:flex;flex-direction:column;gap:8px;color:#64748b}
.op-empty strong{font-size:18px;color:#102a56}
.panel-access-checks{display:flex;gap:24px;align-items:center;padding:8px 0}
.panel-access-checks label{display:flex;gap:7px;align-items:center;font-weight:700}
@media(max-width:1100px){
 .op-hero-image{display:none}
 .op-metrics{padding-right:0}
 .op-hero-brand h1{font-size:24px}
}

.op-monthly-note{font-size:11px;color:#64748b;margin:-2px 2px 10px;padding-left:2px}

.op-mode-tabs{display:flex;gap:8px;margin-bottom:12px;background:#eaf1fa;border:1px solid #d5e1ef;border-radius:12px;padding:5px;width:max-content}
.op-mode-tabs button{border:0;background:transparent;color:#45617f;font-weight:900;padding:10px 24px;border-radius:9px;cursor:pointer;font-size:13px}
.op-mode-tabs button.active{background:#102f61;color:#fff;box-shadow:0 4px 12px rgba(16,47,97,.18)}

/* V10.3: Operations Cover uses normal page scrolling vertically. */
.op-cover-panel{overflow:visible}
.op-grid-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
.op-grid{margin-bottom:18px}

/* V10.6 compact Operations Cover */
.content{padding-top:10px}
.op-mode-tabs{margin-bottom:6px;padding:3px;border-radius:9px}
.op-mode-tabs button{padding:6px 17px;font-size:11px;border-radius:7px}
.op-toolbar{gap:6px;margin-bottom:7px;align-items:end}
.op-toolbar .field{min-width:132px}
.op-toolbar .field label{font-size:8px;margin-bottom:2px}
.op-toolbar input,.op-toolbar select{height:32px;border-radius:7px;padding:0 7px;font-size:11px}
.op-toolbar .btn{min-height:32px;padding:6px 10px;font-size:11px}
.op-hero{border-radius:13px;margin-bottom:7px;padding:8px 14px 0}
.op-hero-brand{gap:13px;min-height:48px}
.op-hero-brand img{width:132px;max-height:40px}
.op-hero-brand h1{font-size:21px}
.op-hero-brand p{font-size:8px;margin-top:1px}
.op-hero-image{right:12px;top:5px;width:170px;height:70px}
.op-hero-image img{max-height:68px;border-radius:9px}
.op-metrics{gap:7px;margin:3px 0 6px;padding-right:190px}
.op-metrics>div{min-width:128px;grid-template-columns:26px 1fr;padding:6px 8px;border-radius:7px}
.op-metrics>div>span{font-size:18px}.op-metrics small{font-size:7px}.op-metrics strong{font-size:14px}
.op-legend{gap:10px;padding:5px 0 6px;font-size:8px}.op-legend i{width:15px;height:9px}
.op-grid-wrap{overflow-x:auto!important;overflow-y:visible!important;max-height:none!important}
.op-cover-panel{overflow:visible!important}
.op-grid thead th{padding:6px 5px;font-size:9px}
.op-grid thead .op-job-head{font-size:12px;background:#102f61!important;color:#fff!important}
.op-grid thead .op-job-head small{display:block;color:#dbe7ff;font-size:7px;margin-top:2px}
.op-filter-row th{background:#f4f7fb!important;color:#102f61!important;padding:4px 3px;position:sticky;top:29px;z-index:8}
.op-filter-row th:nth-child(-n+7){background:#f4f7fb!important}
.op-filter-row input,.op-filter-row select{width:100%;height:25px;border:1px solid #c9d5e6;border-radius:5px;padding:3px 5px;font-size:9px;color:#102f61;background:#fff}
.op-grid tbody td{height:62px;padding:4px}.op-status select{padding:5px 3px;font-size:8px}
.op-job-cell .op-area{font-size:9px}.op-job-cell .op-time{font-size:10px}.op-job-cell .op-job-text{height:29px;font-size:8px}
.op-no-filter-results{text-align:center!important;color:#64748b!important;padding:22px!important;background:#fff!important}
@media(max-width:1100px){.op-hero-image{display:none}.op-metrics{padding-right:0}.op-hero-brand h1{font-size:18px}}

/* V10.17 Stabilization: collapsible sidebar */
.sidebar{transition:width .18s ease,padding .18s ease}.app{transition:grid-template-columns .18s ease}
.sidebar-toggle{position:absolute;z-index:20;right:-13px;top:72px;width:27px;height:42px;border:1px solid #b9c8dc;border-radius:0 9px 9px 0;background:#fff;color:#102f61;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 3px 10px rgba(15,42,86,.14)}
.app.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}
.app.sidebar-collapsed .sidebar{padding-left:8px;padding-right:8px}
.app.sidebar-collapsed .sidebar .brand h1,.app.sidebar-collapsed .sidebar .brand .sub,.app.sidebar-collapsed .nav .section{display:none}
.app.sidebar-collapsed .sidebar .brand{padding:4px 2px 20px;text-align:center}
.app.sidebar-collapsed .anex-logo{width:52px;margin:0 auto 8px;object-fit:contain}
.app.sidebar-collapsed .nav button{justify-content:center;padding:12px 6px;gap:0;font-size:0;min-height:44px}
.app.sidebar-collapsed .nav button span{font-size:15px}
.app.sidebar-collapsed .sidebar:before{background-size:cover!important}
@media(max-width:760px){.sidebar-toggle{display:none}.app.sidebar-collapsed{display:block}.app.sidebar-collapsed .sidebar .brand h1,.app.sidebar-collapsed .sidebar .brand .sub{display:block}.app.sidebar-collapsed .nav button{justify-content:flex-start;font-size:inherit;gap:10px}}

/* V10.17 JOB cell formatting/copy */
.op-job-cell{min-width:210px!important;user-select:text}
.op-job-cell input,.op-job-cell textarea{font-size:var(--op-font-size,11px)!important;user-select:text!important;-webkit-user-select:text!important;line-height:1.25!important}
.op-job-cell .op-area{font-size:calc(var(--op-font-size,11px) + 1px)!important}
.op-job-cell .op-time{font-size:calc(var(--op-font-size,11px) + 1px)!important}
.op-job-cell .op-job-text{height:42px!important;font-size:var(--op-font-size,11px)!important;overflow:auto!important}
.op-color-btn{right:4px;top:4px;width:20px;height:20px}
.op-copy-btn{position:absolute;right:27px;top:4px;border:0;background:rgba(255,255,255,.9);border-radius:5px;width:22px;height:20px;cursor:pointer;font-size:12px;color:#0f2f61;box-shadow:0 1px 3px rgba(15,42,86,.12)}
.op-palette{display:none;position:absolute!important;z-index:60!important;right:2px!important;top:27px!important;background:#fff!important;border:1px solid #cbd5e1!important;padding:9px!important;border-radius:10px!important;box-shadow:0 12px 30px rgba(15,23,42,.24)!important;width:222px!important;grid-template-columns:none!important;gap:0!important;color:#0f274c!important}
.op-palette.show{display:block!important}
.op-palette-grid,.op-text-colors{display:grid;grid-template-columns:repeat(6,26px);gap:6px;margin:5px 0 8px}
.op-color,.op-text-color{width:26px;height:26px;border:1px solid #cbd5e1;border-radius:5px;cursor:pointer}
.op-tool-title{font-size:10px;font-weight:900;color:#334155;margin-top:4px;text-align:left}
.op-custom-color,.op-font-size{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:800;color:#475569;padding:5px 0}
.op-custom-color input[type=color]{width:42px;height:26px;border:0;padding:0;background:transparent;cursor:pointer}.op-font-size select{height:28px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#0f274c}

/* V10.18: floating JOB style panel - must never resize the operation grid */
.op-palette{
  position:fixed!important;
  z-index:500!important;
  width:232px!important;
  max-height:min(360px,calc(100vh - 16px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  right:auto!important;
  top:auto;
  margin:0!important;
  box-sizing:border-box;
}
.op-grid-wrap{overflow-x:auto!important;overflow-y:visible!important;max-height:none!important;}
.op-cover-panel{overflow:visible!important;}
.op-job-cell{overflow:visible!important;}
.op-job-cell .op-job-text{overflow:hidden!important;}
@media(max-width:700px){.op-palette{width:210px!important;}}
