/* FleetTrack — Soft Slate Theme */
:root{
  --sidebar:#334155;
  --sidebar-hover:#3d5068;
  --sidebar-active:#475569;
  --sidebar-text:#94a3b8;
  --sidebar-text-active:#ffffff;
  --sidebar-w:220px;

  --ink:#334155;
  --muted:#64748b;
  --bg:#f8fafc;
  --card:#ffffff;
  --border:#e2e8f0;

  --primary:#334155;
  --primary-hover:#475569;

  --ok:#16a34a;  --ok-bg:#dcfce7;
  --warn:#d97706; --warn-bg:#fef3c7;
  --danger:#dc2626; --danger-bg:#fee2e2;
  --focus:#64748b;

  --kpi-fleet:#e2e8f0;
  --kpi-open:#dcfce7;
  --kpi-overdue:#fee2e2;
  --kpi-spend:#dbeafe;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  color:var(--ink);background:var(--bg);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-hover)}
button,.btn,.tap,input[type=submit]{min-height:48px;min-width:48px}

/* ===== Sidebar ===== */
.sidebar{
  position:fixed;top:0;left:0;bottom:0;
  width:var(--sidebar-w);
  background:var(--sidebar);
  display:flex;flex-direction:column;
  z-index:40;
  transition:transform .25s ease;
}
.sidebar-brand{
  display:flex;align-items:center;gap:10px;
  padding:20px 18px 16px;
}
.sidebar-logo{
  width:34px;height:34px;border-radius:9px;
  background:#e2e8f0;color:#334155;
  display:grid;place-items:center;
  font-weight:800;font-size:14px;
  flex-shrink:0;
}
.sidebar-title{
  font-weight:700;font-size:17px;color:#fff;
  letter-spacing:.2px;
}
.sidebar-nav{
  flex:1;overflow-y:auto;padding:4px 8px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent;
}
.sidebar-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;margin-bottom:2px;border-radius:8px;
  color:var(--sidebar-text);font-size:14px;font-weight:500;
  text-decoration:none;cursor:pointer;
  transition:background .15s,color .15s;
  min-height:40px;
}
.sidebar-item:hover{background:var(--sidebar-hover);color:#cbd5e1}
.sidebar-item.active{background:var(--sidebar-active);color:var(--sidebar-text-active)}
.sidebar-item svg{flex-shrink:0;opacity:.7}
.sidebar-item.active svg{opacity:1}
.sidebar-footer{
  padding:14px 18px;border-top:1px solid rgba(255,255,255,.08);
}
.sidebar-user-name{color:#fff;font-size:13px;font-weight:600;line-height:1.3}
.sidebar-user-role{color:var(--sidebar-text);font-size:11px;text-transform:uppercase;letter-spacing:.4px;margin-top:2px}

.sidebar-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.4);z-index:35;
}

/* ===== Main wrap ===== */
.main-wrap{
  margin-left:var(--sidebar-w);
  min-height:100vh;
  display:flex;flex-direction:column;
}

/* ===== Topbar ===== */
.topbar{
  background:#ffffff;
  border-bottom:1px solid var(--border);
  height:60px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 24px;
  position:sticky;top:0;z-index:30;
}
.topbar-left{display:flex;align-items:center;gap:12px}
.topbar-right{display:flex;align-items:center;gap:12px}
.page-title{
  font-size:18px;font-weight:700;color:var(--ink);
  margin:0;letter-spacing:-.2px;
}
.hamburger{
  display:none;
  align-items:center;justify-content:center;
  background:none;border:1px solid var(--border);
  color:var(--ink);height:40px;width:40px;min-height:40px;min-width:40px;
  border-radius:8px;cursor:pointer;padding:0;
}
.tb-icon{
  background:none;border:none;
  color:var(--muted);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;min-height:40px;min-width:40px;
  border-radius:8px;padding:0;
  transition:background .15s;
}
.tb-icon:hover{background:#f1f5f9;color:var(--ink)}
.tb-user{
  font-size:14px;font-weight:500;color:var(--ink);
  white-space:nowrap;
}
.btn-signout{
  display:inline-flex;align-items:center;justify-content:center;
  height:36px;min-height:36px;min-width:auto;
  padding:0 14px;border-radius:8px;
  border:1px solid var(--border);background:#fff;
  color:var(--muted);font-size:13px;font-weight:500;
  cursor:pointer;transition:all .15s;
}
.btn-signout:hover{background:#f1f5f9;color:var(--ink);border-color:#cbd5e1}

/* ===== Content ===== */
.content{
  flex:1;padding:24px;
  background:var(--bg);
}
.page{max-width:100%;margin:0;padding:0}

/* ===== Grid ===== */
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:1fr 1fr}
.grid-3{grid-template-columns:repeat(3,1fr)}

/* ===== KPI cards (dashboard) ===== */
.kpi-cards{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
  margin-bottom:20px;
}
.kpi-card{
  border-radius:10px;padding:18px 20px;
  border:1px solid var(--border);
}
.kpi-card .kpi-val{
  font-size:28px;font-weight:800;color:var(--ink);
  line-height:1.1;letter-spacing:-.5px;
}
.kpi-card .kpi-lbl{
  font-size:12px;color:var(--muted);margin-top:4px;
  text-transform:uppercase;letter-spacing:.5px;font-weight:500;
}

/* ===== Card ===== */
.card{
  background:var(--card);border:1px solid var(--border);border-radius:10px;
  overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.card-head{
  padding:14px 16px;font-weight:700;font-size:13px;
  color:var(--ink);letter-spacing:.3px;text-transform:uppercase;
  display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--border);background:#fff;
}
.card-head .count{
  background:var(--primary);color:#fff;
  padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;
}
.card-body{padding:16px}
.card-body .stat{font-size:34px;font-weight:800;color:var(--primary);line-height:1}
.card-body .stat.amber{color:var(--warn)}
.card-body .stat.danger{color:var(--danger)}
.card-body p{color:var(--muted);margin:8px 0 0;font-size:14px}

/* ===== Badges ===== */
.badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.3px;
}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.danger{background:var(--danger-bg);color:var(--danger)}
.badge.muted{background:#f1f5f9;color:var(--muted)}
.badge.teal{background:#e0f2f1;color:#00695c}
.badge.blue{background:#e3f2fd;color:#1565c0}
.badge.purple{background:#f3e5f5;color:#6a1b9a}
.badge.amber{background:#fef3c7;color:#92400e}

/* ===== Lists inside cards ===== */
.list{list-style:none;margin:0;padding:0}
.list li{
  padding:12px 16px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.list li:last-child{border-bottom:0}
.list .title{font-weight:600}
.list .sub{font-size:12px;color:var(--muted);margin-top:2px}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:48px;padding:0 20px;border-radius:10px;border:0;cursor:pointer;
  background:var(--primary);color:#fff;font-weight:600;font-size:15px;
  transition:background .15s ease;
}
.btn:hover{background:var(--primary-hover)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn-block{width:100%}
.btn.secondary{background:#e2e8f0;color:var(--ink)}
.btn.secondary:hover{background:#cbd5e1}
.btn.amber{background:#f59e0b;color:#78350f}
.btn.amber:hover{background:#d98a08}

/* ===== Forms ===== */
label{display:block;font-size:13px;color:var(--muted);margin:14px 0 6px;font-weight:500}
input[type=text],input[type=password],input[type=email],input[type=number],select,textarea{
  width:100%;height:48px;padding:0 14px;
  border:1px solid var(--border);border-radius:10px;
  font-size:16px;font-family:inherit;background:#fff;color:var(--ink);
}
textarea{height:auto;padding:12px 14px;min-height:96px}
input:focus,select:focus,textarea:focus{
  outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus);
}
.alert{margin-top:12px;padding:10px 12px;border-radius:8px;font-size:14px}
.alert.err{background:var(--danger-bg);color:var(--danger);border:1px solid #f5c2c0}
.alert.ok{background:var(--ok-bg);color:var(--ok);border:1px solid #bfe5cc}

/* ===== Login page ===== */
.login-wrap{
  min-height:100vh;
  background:linear-gradient(160deg,#e2e8f0 0%,#f1f5f9 100%);
  display:flex;align-items:center;justify-content:center;padding:24px;
  position:relative;overflow:hidden;
}
.login-bus{
  position:absolute;bottom:-20px;right:-30px;width:600px;opacity:.06;
  pointer-events:none;
}
.login-card{
  width:100%;max-width:420px;background:#fff;border-radius:16px;
  padding:32px 28px;
  box-shadow:0 4px 24px rgba(51,65,85,.10),0 1px 3px rgba(51,65,85,.06);
  border-top:4px solid #f59e0b;
  position:relative;z-index:1;
}
.login-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:24px}
.login-brand .brand-logo{
  width:56px;height:56px;border-radius:12px;font-size:22px;font-weight:800;
  background:#334155;color:#fff;
  display:grid;place-items:center;
}
.login-brand h1{margin:4px 0 0;font-size:28px;font-weight:700;color:#1e293b}
.login-brand .tag{font-size:14px;color:#64748b}

/* Login form overrides */
.login-card label{color:#475569;font-weight:500;margin:20px 0 6px;font-size:13px}
.login-card label:first-of-type{margin-top:0}
.login-card input[type=text],
.login-card input[type=password]{
  background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:10px;
  padding:12px 16px;font-size:15px;color:#1e293b;height:48px;
}
.login-card input::placeholder{color:#94a3b8}
.login-card input:focus{border-color:#334155;background:#fff;outline:2px solid rgba(51,65,85,.15);outline-offset:1px}

/* Password field with toggle */
.pw-wrap{position:relative}
.pw-wrap input{width:100%;padding-right:48px}
.pw-toggle{
  position:absolute;right:4px;top:50%;transform:translateY(-50%);
  background:none;border:none;cursor:pointer;padding:8px;
  color:#94a3b8;display:flex;align-items:center;justify-content:center;
  min-height:40px;min-width:40px;border-radius:8px;transition:color .15s;
}
.pw-toggle:hover{color:#334155}

/* Login button */
.login-btn{background:#334155!important;color:#fff!important;font-size:15px!important;font-weight:600!important;border-radius:10px!important}
.login-btn:hover{background:#475569!important}

/* Login error */
.login-card .alert.err{color:#dc2626;background:#fee2e2;border:1px solid #fca5a5;font-size:14px;font-weight:500}

.login-foot{margin-top:16px;text-align:center;font-size:12px;color:#94a3b8}
@media(max-width:480px){.login-bus{width:400px;right:-40px}}

/* ===== Placeholder sections ===== */
.empty{padding:24px;text-align:center;color:var(--muted)}
.empty h3{color:var(--ink);margin:0 0 6px}

/* ===== Vehicle tabs ===== */
.vtab{
  background:none;border:none;padding:12px 20px;
  font-size:14px;font-weight:500;color:var(--muted);
  cursor:pointer;border-bottom:3px solid transparent;
  transition:all .15s;min-height:auto;min-width:auto;
}
.vtab.active{color:var(--primary);border-bottom-color:var(--primary)}
.vtab:hover{color:var(--ink)}

/* ===== Stats chips ===== */
.stat-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px;border-radius:20px;font-size:13px;
  background:#f1f5f9;border:1px solid var(--border);color:var(--ink);
}
.stat-chip.ok{background:#e8f5e9;border-color:#a5d6a7;color:#2e7d32}
.stat-chip.muted{background:#f5f5f5;border-color:#ddd;color:#666}
.stat-chip.teal{background:#e0f2f1;border-color:#80cbc4;color:#00695c}
.stat-chip.blue{background:#e3f2fd;border-color:#90caf9;color:#1565c0}
.stat-chip.purple{background:#f3e5f5;border-color:#ce93d8;color:#6a1b9a}

/* ===== Pagination ===== */
.page-btn{
  padding:5px 10px;border:1px solid var(--border);background:#fff;
  border-radius:6px;cursor:pointer;font-size:13px;color:var(--ink);
  transition:all .15s;min-height:auto;min-width:auto;
}
.page-btn:hover:not(:disabled){background:#f1f5f9}
.page-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.page-btn:disabled{opacity:.4;cursor:not-allowed}

/* ===== Modal ===== */
.modal-overlay{
  position:fixed;inset:0;z-index:100;
  background:rgba(0,0,0,.45);
  display:flex;align-items:flex-start;justify-content:center;
  padding:40px 16px;overflow-y:auto;
}
.modal-box{background:#fff;border-radius:12px;width:100%;max-width:840px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal-head{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.modal-body{padding:20px}
.modal-close-btn{background:none;border:none;font-size:24px;cursor:pointer;color:var(--muted);padding:4px 8px;line-height:1;min-height:36px;min-width:36px}
.modal-close-btn:hover{color:var(--ink)}

/* ===== Notification bell + dropdown ===== */
.bell-wrap{position:relative;display:inline-flex}
.notif-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:800;line-height:18px;text-align:center;pointer-events:none}
.notif-badge:empty,.notif-badge[data-count="0"]{display:none}
.notif-dropdown{display:none;position:absolute;top:calc(100% + 8px);right:0;width:360px;max-height:440px;overflow-y:auto;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,.15);z-index:50}
.notif-dropdown.open{display:block}
.notif-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);font-size:13px;font-weight:700;color:var(--ink)}
.notif-header button{background:none;border:none;color:var(--primary);cursor:pointer;font-size:12px;font-weight:600;min-height:auto;min-width:auto;padding:4px 8px}
.notif-item{padding:12px 16px;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:background .1s;font-size:13px}
.notif-item:hover{background:#f8fafc}
.notif-item.unread{background:#f0f9ff;border-left:3px solid var(--primary)}
.notif-item .ni-title{font-weight:600;color:var(--ink);margin-bottom:2px}
.notif-item .ni-msg{color:var(--muted);line-height:1.4}
.notif-item .ni-time{font-size:11px;color:var(--muted);margin-top:4px}
.notif-empty{padding:30px 16px;text-align:center;color:var(--muted);font-size:13px}
@media(max-width:480px){.notif-dropdown{width:calc(100vw - 20px);right:-60px}}

/* ===== Global search ===== */
.gs-overlay{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;padding:80px 16px 40px}
.gs-box{background:#fff;border-radius:12px;width:100%;max-width:600px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}
.gs-input-wrap{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}
.gs-input-wrap input{flex:1;border:none;outline:none;font-size:16px;font-family:inherit;color:var(--ink);background:none;min-height:auto}
.gs-input-wrap input::placeholder{color:#94a3b8}
.gs-kbd{background:#f1f5f9;color:var(--muted);font-size:11px;padding:2px 6px;border-radius:4px;font-family:monospace;border:1px solid #e2e8f0}
.gs-group{padding:6px 0}
.gs-group-label{padding:4px 16px;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.gs-item{padding:10px 16px;cursor:pointer;font-size:14px;display:flex;align-items:center;gap:10px;transition:background .1s}
.gs-item:hover,.gs-item.active{background:#f1f5f9}
.gs-item .gs-main{font-weight:600;color:var(--ink)}
.gs-item .gs-sub{font-size:12px;color:var(--muted)}
.gs-empty{padding:24px 16px;text-align:center;color:var(--muted);font-size:14px}

/* ===== Filter utilities ===== */
.filter-bar{padding:12px 16px;display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end;border-bottom:1px solid #e2e8f0}
.filter-bar label{font-size:11px;color:var(--muted);margin:0 0 3px;display:block;text-transform:uppercase;letter-spacing:.3px;font-weight:600}
.filter-bar input,.filter-bar select{height:38px;font-size:13px;padding:0 10px;min-height:38px}
.filter-bar input{min-width:140px}
.filter-count{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--primary);font-weight:600;padding:4px 8px;background:#e0f2f1;border-radius:6px}
.filter-clear{background:none;border:1px solid var(--border);color:var(--muted);height:38px;min-height:38px;min-width:auto;padding:0 12px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:500}
.filter-clear:hover{background:#f1f5f9;color:var(--ink)}

/* ===== Responsive ===== */
@media(max-width:1100px){
  .kpi-cards{grid-template-columns:repeat(3,1fr)!important}
  #statsRow{grid-template-columns:repeat(3,1fr)!important}
}
@media(max-width:860px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-overlay.open{display:block}
  .main-wrap{margin-left:0}
  .hamburger{display:inline-flex}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .content{padding:16px}
  .topbar{padding:0 16px}
  .tb-user{display:none}
}
@media(max-width:480px){
  .kpi-cards{grid-template-columns:1fr 1fr!important}
  #statsRow{grid-template-columns:repeat(2,1fr)!important}
  .page-title{font-size:16px}
}

/* ========== Inventory — Executive white theme ========== */
.inv-page{background:#F8FAFC;min-height:100%}

/* Page header + Dashboard/List toggle */
.inv-page-header{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin-bottom:16px;
}
.inv-page-header-left{min-width:240px}
.inv-page-title{
  font-size:20px;font-weight:700;color:#0f172a;letter-spacing:-.2px;line-height:1.2;
}
.inv-page-sub{font-size:13px;color:#64748b;margin-top:4px}
.inv-toggle-wrap{
  display:inline-flex;background:#fff;border:0.5px solid #e2e8f0;
  border-radius:10px;padding:4px;gap:2px;
}
.inv-toggle-btn{
  appearance:none;border:0;background:transparent;color:#475569;
  font-size:13px;font-weight:600;padding:8px 16px;border-radius:7px;
  cursor:pointer;min-height:34px;letter-spacing:.2px;
  transition:background .15s,color .15s;
}
.inv-toggle-btn:hover{background:#f1f5f9;color:#0f172a}
.inv-toggle-btn.active{background:#0f172a;color:#fff}
.inv-toggle-btn.active:hover{background:#0f172a;color:#fff}

.inv-breadcrumb{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:13px;color:#64748b;margin-bottom:14px;
}
.inv-breadcrumb a{color:#334155;text-decoration:none;font-weight:600;cursor:pointer}
.inv-breadcrumb a:hover{color:#0f172a;text-decoration:underline}
.inv-breadcrumb .sep{color:#cbd5e1;margin:0 2px}
.inv-breadcrumb .current{color:#0f172a;font-weight:700}
.inv-back{
  display:inline-flex;align-items:center;gap:6px;
  background:#fff;border:0.5px solid #e2e8f0;border-radius:8px;
  padding:6px 12px;font-size:13px;font-weight:500;color:#334155;
  cursor:pointer;min-height:32px;min-width:auto;margin-bottom:14px;
  transition:all .15s;
}
.inv-back:hover{border-color:#94a3b8;background:#f1f5f9}

.inv-row{display:grid;gap:14px;margin-bottom:14px}
.inv-row.r4{grid-template-columns:repeat(4,1fr)}
.inv-row.r3{grid-template-columns:repeat(3,1fr)}
@media(max-width:1100px){.inv-row.r4{grid-template-columns:repeat(2,1fr)}.inv-row.r3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.inv-row.r4,.inv-row.r3{grid-template-columns:1fr}}

/* Executive white card */
.inv-card{
  background:#ffffff;border:0.5px solid #e2e8f0;border-radius:12px;
  padding:18px 20px 16px;cursor:pointer;
  border-bottom:3px solid #94a3b8;
  transition:border-color .15s,box-shadow .15s,transform .1s;
  position:relative;
}
.inv-card:hover{
  box-shadow:0 4px 14px rgba(15,23,42,.10);
  border-color:#94a3b8;
}
.inv-card .inv-val{
  font-size:24px;font-weight:500;color:#0f172a;
  line-height:1.1;letter-spacing:-.3px;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.inv-card .inv-lbl{
  font-size:12px;color:#64748b;margin-top:6px;
  text-transform:uppercase;letter-spacing:.6px;font-weight:600;
}
.inv-card .inv-sub{font-size:12px;color:#94a3b8;margin-top:4px}

/* Per-KPI coloured bottom border (Executive palette) */
.inv-card.k-total       {border-bottom-color:#0F4C5C} /* teal */
.inv-card.k-active      {border-bottom-color:#1D9E75} /* green */
.inv-card.k-spare       {border-bottom-color:#EF9F27} /* amber */
.inv-card.k-at_service  {border-bottom-color:#E24B4A} /* red */
.inv-card.k-compliance  {border-bottom-color:#E24B4A} /* red */
.inv-card.k-open_repairs{border-bottom-color:#EF9F27} /* amber */
.inv-card.k-deployed    {border-bottom-color:#0F4C5C} /* teal */
.inv-card.k-sold        {border-bottom-color:#888780} /* grey */
.inv-card.k-bgt_in_hit  {border-bottom-color:#7F77DD} /* purple */
.inv-card.k-returned    {border-bottom-color:#888780} /* grey */

/* Hover: darken bottom border */
.inv-card.k-total:hover       {border-bottom-color:#083642}
.inv-card.k-active:hover      {border-bottom-color:#157255}
.inv-card.k-spare:hover       {border-bottom-color:#c47e12}
.inv-card.k-at_service:hover  {border-bottom-color:#b33837}
.inv-card.k-compliance:hover  {border-bottom-color:#b33837}
.inv-card.k-open_repairs:hover{border-bottom-color:#c47e12}
.inv-card.k-deployed:hover    {border-bottom-color:#083642}
.inv-card.k-sold:hover        {border-bottom-color:#5f5e59}
.inv-card.k-bgt_in_hit:hover  {border-bottom-color:#5a54a8}
.inv-card.k-returned:hover    {border-bottom-color:#5f5e59}

/* Company split card (level 2) */
.inv-company-card{
  background:#fff;border:0.5px solid #e2e8f0;border-radius:10px;
  padding:22px 22px 20px;cursor:pointer;border-bottom:3px solid #334155;
  transition:border-color .15s,box-shadow .15s;
}
.inv-company-card:hover{box-shadow:0 4px 14px rgba(15,23,42,.10);border-color:#94a3b8}
.inv-company-card .cc-code{
  display:inline-block;font-size:11px;font-weight:700;letter-spacing:.5px;
  padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#334155;
  text-transform:uppercase;margin-bottom:10px;
}
.inv-company-card .cc-count{font-size:34px;font-weight:700;color:#0f172a;letter-spacing:-.5px;line-height:1}
.inv-company-card .cc-label{font-size:13px;color:#64748b;margin-top:6px}

/* Data table (site list, vehicle list) */
.inv-table-card{
  background:#fff;border:0.5px solid #e2e8f0;border-radius:10px;overflow:hidden;
}
.inv-table-head{
  padding:14px 18px;border-bottom:0.5px solid #e2e8f0;
  font-size:14px;font-weight:700;color:#0f172a;letter-spacing:.2px;
  display:flex;align-items:center;justify-content:space-between;
}
.inv-table-head .ith-sub{font-size:12px;color:#64748b;font-weight:500}
.inv-table{width:100%;border-collapse:collapse;font-size:13px}
.inv-table thead th{
  text-align:left;padding:10px 18px;font-size:11px;
  font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px;
  border-bottom:0.5px solid #e2e8f0;background:#F8FAFC;
}
.inv-table tbody td{padding:12px 18px;border-bottom:0.5px solid #f1f5f9;color:#0f172a}
.inv-table tbody tr{cursor:pointer;transition:background .1s}
.inv-table tbody tr:hover{background:#F8FAFC}
.inv-table tbody tr:last-child td{border-bottom:0}
.inv-table .td-num{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}

/* Compact badges */
.inv-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.inv-pill.ok{background:#dcfce7;color:#166534}
.inv-pill.amber{background:#fef3c7;color:#92400e}
.inv-pill.red{background:#fee2e2;color:#b91c1c}
.inv-pill.muted{background:#f1f5f9;color:#475569}
.inv-pill.blue{background:#dbeafe;color:#1e40af}
.inv-pill.purple{background:#ede9fe;color:#5b21b6}
.inv-pill.teal{background:#ccfbf1;color:#115e59}

/* 360° profile */
.inv-profile-head{
  background:#fff;border:0.5px solid #e2e8f0;border-radius:12px;
  padding:20px 22px;margin-bottom:16px;
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  border-bottom:3px solid #0d9488;
}
.inv-profile-head .ph-left{flex:1;min-width:280px}
.inv-profile-head .ph-reg{font-size:26px;font-weight:800;color:#0f172a;letter-spacing:-.5px;line-height:1}
.inv-profile-head .ph-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;font-size:13px;color:#475569}
.inv-profile-head .ph-meta span{display:inline-flex;align-items:center;gap:4px}
.inv-profile-head .ph-meta strong{color:#0f172a}
.health-circle{
  width:80px;height:80px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;flex-shrink:0;
  color:#fff;font-weight:700;
}
.health-circle .hc-val{font-size:22px;letter-spacing:-.5px;line-height:1}
.health-circle .hc-lbl{font-size:9px;text-transform:uppercase;letter-spacing:.5px;margin-top:2px;opacity:.9}
.health-circle.hc-good{background:#16a34a}
.health-circle.hc-mid{background:#f59e0b}
.health-circle.hc-bad{background:#dc2626}

.inv-section{
  background:#fff;border:0.5px solid #e2e8f0;border-radius:10px;
  margin-bottom:14px;overflow:hidden;
}
.inv-section-title{
  padding:14px 18px;font-size:13px;font-weight:700;color:#0f172a;
  text-transform:uppercase;letter-spacing:.5px;
  border-bottom:0.5px solid #e2e8f0;background:#F8FAFC;
}
.inv-section-body{padding:16px 18px}

.inv-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:860px){.inv-stats-grid{grid-template-columns:repeat(2,1fr)}}
.inv-stat{
  background:#F8FAFC;border:0.5px solid #e2e8f0;border-radius:8px;padding:14px 16px;
}
.inv-stat .is-lbl{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.inv-stat .is-val{font-size:22px;font-weight:700;color:#0f172a;margin-top:4px;letter-spacing:-.3px;line-height:1.1}

.inv-timeline{list-style:none;margin:0;padding:0}
.inv-timeline li{
  display:flex;gap:14px;padding:12px 0;border-bottom:0.5px solid #f1f5f9;position:relative;
}
.inv-timeline li:last-child{border-bottom:0}
.inv-timeline .tl-date{flex-shrink:0;width:96px;font-size:12px;font-weight:600;color:#475569}
.inv-timeline .tl-body{flex:1;min-width:0}
.inv-timeline .tl-type{font-size:13px;font-weight:700;color:#0f172a}
.inv-timeline .tl-sub{font-size:12px;color:#64748b;margin-top:2px}
.inv-timeline .tl-cost{flex-shrink:0;font-size:13px;font-weight:700;color:#0f172a}

.inv-details-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 24px}
@media(max-width:640px){.inv-details-grid{grid-template-columns:1fr}}
.inv-details-grid .idg-lbl{font-size:12px;color:#64748b;font-weight:500}
.inv-details-grid .idg-val{font-size:13px;color:#0f172a;font-weight:600;text-align:right}
.inv-details-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:0.5px solid #f1f5f9}
.inv-details-row:last-child{border-bottom:0}

.inv-empty{padding:24px;text-align:center;color:#94a3b8;font-size:13px}
