:root {
  --bg: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #172033;
  --muted: #6e7a90;
  --navy: #0b1220;
  --navy-2: #111c31;
  --blue: #2b6ff6;
  --blue-2: #4a86ff;
  --green: #169b62;
  --orange: #d97706;
  --red: #c93d4d;
  --border: #dfe6ef;
  --shadow: 0 12px 35px rgba(20, 35, 60, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { letter-spacing: .12em; font-weight: 800; font-size: 10px; color: var(--muted); }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(43,111,246,.28), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(43,111,246,.18), transparent 30%),
    var(--navy);
}
.login-card { width: min(430px, 100%); background: var(--surface); padding: 34px; border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.login-card h1 { margin: 24px 0 4px; }
.demo-note { margin-top: 18px; padding: 14px; border-radius: 14px; background: #edf4ff; color: #42506a; font-size: 13px; line-height: 1.55; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--blue), #6da0ff); font-weight: 900; font-size: 22px; box-shadow: 0 8px 22px rgba(43,111,246,.35); }
.brand-title { font-weight: 900; letter-spacing: .1em; }
.brand-subtitle { color: var(--blue-2); font-weight: 800; font-size: 12px; letter-spacing: .14em; }

.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 255px; background: var(--navy); color: white; padding: 24px 16px; display: flex; flex-direction: column; z-index: 20; }
.sidebar-brand { padding: 4px 10px 26px; }
.nav-list { display: grid; gap: 7px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #c7d0df; padding: 13px 14px; border-radius: 12px; text-align: left; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.nav-item span { width: 22px; text-align: center; font-size: 18px; }
.nav-item:hover, .nav-item.active { color: white; background: linear-gradient(90deg, rgba(43,111,246,.95), rgba(43,111,246,.62)); }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 18px 8px 0; display: grid; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip small { display: block; color: #94a2b7; margin-top: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #22324f; font-weight: 800; }

.main { margin-left: 255px; min-height: 100vh; padding: 28px 34px 80px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.topbar h2 { margin: 4px 0 0; font-size: 28px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.month-pill { padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: #4d5b73; font-weight: 700; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 20px; }
#mobileLogoutBtn { display: none; }

.page { display: none; }
.page.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.hero-card { background: linear-gradient(120deg, #183d8c, var(--blue)); color: white; border-radius: 24px; padding: 28px; display: flex; align-items: end; justify-content: space-between; gap: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -100px; top: -140px; border: 50px solid rgba(255,255,255,.08); }
.hero-card h1 { margin: 5px 0 8px; font-size: clamp(26px, 4vw, 38px); max-width: 680px; }
.hero-card p { margin: 0; color: #dce7ff; max-width: 620px; }
.hero-kicker { text-transform: uppercase; font-size: 11px; letter-spacing: .15em; font-weight: 900; color: #dbe7ff; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 6px 18px rgba(20,35,60,.05); }
.stat-icon { width: 48px; height: 48px; border-radius: 15px; background: #edf4ff; display: grid; place-items: center; font-size: 23px; }
.stat-card small { display: block; color: var(--muted); margin-bottom: 5px; }
.stat-card strong { font-size: 22px; }

.content-grid.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 18px rgba(20,35,60,.05); }
.panel.compact { padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h3 { margin: 4px 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-card { border: 1px solid var(--border); background: var(--surface-2); border-radius: 15px; padding: 15px; text-align: left; color: var(--ink); }
.quick-card:hover { border-color: #b9cffd; background: #f2f6ff; }
.quick-card span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e8f0ff; margin-bottom: 10px; font-size: 18px; }
.quick-card b, .quick-card small { display: block; }
.quick-card small { color: var(--muted); margin-top: 3px; }
.quick-card-mobile-oil { display: none; }
.activity-list { display: grid; gap: 10px; }
.activity-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-item small { color: var(--muted); }

.oil-alert-panel { margin: 18px 0; }
.oil-alert-featured { border-width: 2px; box-shadow: 0 10px 26px rgba(20,35,60,.09); }
.oil-alert-head { margin-bottom: 14px; }
.oil-alert-title { display: flex; align-items: center; gap: 11px; }
.oil-alert-symbol { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff4df; color: var(--orange); font-size: 21px; font-weight: 900; }
.oil-alert-list { display: grid; gap: 10px; }
.oil-alert-item { border: 1px solid var(--border); border-left-width: 5px; border-radius: 13px; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); }
.oil-alert-item.red { border-left-color: var(--red); background: #fff7f8; }
.oil-alert-item.orange { border-left-color: var(--orange); background: #fffaf1; }
.oil-alert-content { display: flex; align-items: center; gap: 11px; min-width: 0; }
.oil-alert-status-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: white; border: 1px solid var(--border); }
.oil-alert-item.red .oil-alert-status-icon { color: var(--red); border-color: #f2c6cd; }
.oil-alert-item.orange .oil-alert-status-icon { color: var(--orange); border-color: #f2d5a7; }
.oil-alert-item small { color: var(--muted); display: block; margin-top: 3px; }
.field-help { color: var(--muted); font-weight: 500; line-height: 1.35; }
.readonly-field { background: var(--surface-2); color: #4d5b73; font-weight: 800; }
.oil-control { margin-bottom: 18px; }
.oil-control-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.oil-control-head h3 { margin: 0; }
.oil-control-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.oil-control-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px; }
.oil-control-box small { display: block; color: var(--muted); margin-bottom: 4px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.filter-bar { display: grid; grid-template-columns: 1fr 220px 220px; gap: 10px; margin-bottom: 16px; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e5; background: white; border-radius: 11px; padding: 11px 12px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,111,246,.12); }
textarea { min-height: 90px; resize: vertical; }
label { display: grid; gap: 7px; color: #4c5870; font-weight: 700; font-size: 13px; }

.btn { border: 0; border-radius: 11px; padding: 11px 15px; font-weight: 800; }
.btn.primary { background: var(--blue); color: white; box-shadow: 0 7px 16px rgba(43,111,246,.22); }
.btn.primary:hover { background: #1f62e5; }
.btn.light { background: white; color: #1d4fae; position: relative; z-index: 2; }
.btn.ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.14); }
.btn.danger { background: #fff1f2; color: var(--red); border: 1px solid #ffd7dc; }
.btn.secondary { background: #edf2f8; color: #394760; }
.btn.small { padding: 8px 10px; font-size: 12px; }
.btn.full { width: 100%; }

.card-list { display: grid; gap: 12px; }
.vehicle-card { background: var(--surface); border: 1px solid var(--border); border-radius: 17px; padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 14px; box-shadow: 0 5px 16px rgba(20,35,60,.05); }
.vehicle-main { display: flex; gap: 14px; align-items: center; }
.vehicle-badge { width: 48px; height: 48px; border-radius: 14px; background: #eaf2ff; display: grid; place-items: center; overflow: hidden; flex: 0 0 48px; }
.vehicle-type-image { width: 100%; height: 100%; object-fit: contain; display: block; padding: 3px; }
.vehicle-title { margin: 0 0 4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.blue { background: #eaf1ff; color: #2a5ec3; }
.badge.green { background: #e8f8f0; color: #148454; }
.badge.orange { background: #fff4df; color: var(--orange); }
.badge.red { background: #fff1f2; color: var(--red); }
.badge.gray { background: #eef1f5; color: #657086; }
.vehicle-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: end; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 17px; overflow: hidden; box-shadow: 0 5px 16px rgba(20,35,60,.05); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
th { background: #f7f9fc; color: #59657a; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sector-card { background: var(--surface); border: 1px solid var(--border); border-radius: 17px; padding: 18px; box-shadow: 0 5px 16px rgba(20,35,60,.05); }
.sector-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.sector-card h3 { margin: 4px 0 7px; }
.sector-card strong { font-size: 26px; color: var(--blue); }
.sector-card small { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.required::after { content: " *"; color: var(--red); }
.optional-block { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.optional-title { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 28, .68); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(760px, 100%); max-height: 90vh; overflow: auto; background: white; border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.30); }
.modal-card.wide { width: min(950px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.modal-head h3 { margin: 4px 0 0; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.detail-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px; }
.detail-box small { display: block; color: var(--muted); margin-bottom: 4px; }
.detail-history { display: grid; gap: 8px; }
.detail-history-item { border: 1px solid var(--border); border-radius: 12px; padding: 11px; display: flex; justify-content: space-between; gap: 10px; }
.detail-history-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.report-page-head { margin-bottom: 14px; }
.report-page-head .eyebrow { display: block; margin-bottom: 4px; }
.report-page-head p { margin: 0; }
.report-export-btn { white-space: nowrap; }
.report-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.report-controls label { flex: 1 1 185px; min-width: 165px; }
.report-controls .report-apply-btn { flex: 0 0 auto; min-height: 44px; }
.report-context-line { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 4px 2px 12px; color: var(--muted); }
.report-context-line div { display: grid; gap: 3px; }
.report-context-line b { color: var(--text); font-size: 16px; }
.report-context-line > span { font-size: 12px; font-weight: 700; }
.report-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.report-kpi-card { min-width: 0; display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 25px rgba(26,48,80,.04); }
.report-kpi-card > div { min-width: 0; }
.report-kpi-icon { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; font-weight: 900; font-size: 15px; background: #edf3ff; color: var(--blue); }
.report-kpi-card small, .report-kpi-card em { display: block; }
.report-kpi-card small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.report-kpi-card strong { display: block; font-size: 21px; line-height: 1.1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-kpi-card em { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.25; font-style: normal; }
.report-kpi-card.metric-green .report-kpi-icon { background: #e8f8ef; color: #179452; }
.report-kpi-card.metric-red .report-kpi-icon { background: #fff0f1; color: #d73f50; }
.report-kpi-card.metric-gold .report-kpi-icon { background: #fff6de; color: #bf7d00; }
.report-analysis-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,.8fr); gap: 14px; margin-bottom: 18px; }
.report-chart-panel, .report-period-panel { margin: 0; min-width: 0; }
.report-chart-head { align-items: center; gap: 12px; }
.report-chart-head h3, .report-period-panel h3 { margin: 3px 0 0; }
.report-chart-select { width: auto; min-width: 185px; min-height: 38px; padding: 8px 34px 8px 10px; font-size: 12px; }
.report-bars { display: grid; grid-template-columns: repeat(auto-fit,minmax(70px,1fr)); gap: 10px; min-height: 210px; align-items: end; padding: 8px 2px 0; }
.report-bar-item { min-width: 0; display: grid; grid-template-rows: 26px 138px auto; gap: 6px; align-items: end; text-align: center; }
.report-bar-value { font-size: 10px; font-weight: 800; color: #4d5b73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-bar-track { height: 138px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #dfe6f0; background: linear-gradient(to top, rgba(234,240,248,.7) 1px, transparent 1px); background-size: 100% 34px; border-radius: 8px 8px 0 0; overflow: hidden; }
.report-bar-track span { display: block; width: min(44px,64%); min-height: 8px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg,#2d7bff,#1f5fcf); box-shadow: 0 8px 18px rgba(45,123,255,.18); }
.report-bar-vehicle { min-width: 0; display: grid; justify-items: center; gap: 2px; font-size: 10px; }
.report-bar-vehicle .vehicle-type-image { width: 40px; height: 28px; object-fit: contain; }
.report-bar-vehicle b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-chart-empty { min-height: 210px; display: grid; place-items: center; padding: 20px; color: var(--muted); text-align: center; }
.report-period-list { display: grid; gap: 9px; margin-top: 14px; }
.report-period-list span { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.report-period-list span:last-child { border-bottom: 0; }
.report-period-list small { color: var(--muted); }
.report-period-list b { font-size: 16px; }
.report-data-note { margin: 12px 0 0; padding: 10px 11px; border-radius: 12px; background: #fff7e5; color: #86620d; font-size: 11px; line-height: 1.4; }
.report-highlights-section { margin-bottom: 18px; }
.report-section-title { margin: 0 2px 10px; }
.report-section-title h3 { margin: 3px 0 0; }
.report-highlight-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.report-highlight-card { min-width: 0; display: flex; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.report-highlight-card.is-empty { opacity: .68; }
.report-highlight-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #edf3ff; color: var(--blue); font-weight: 900; }
.report-highlight-copy { min-width: 0; flex: 1; }
.report-highlight-copy > small { display: block; min-height: 28px; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.3; }
.report-highlight-copy strong { display: block; margin-top: 5px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-highlight-vehicle { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 6px; font-size: 11px; }
.report-highlight-vehicle .vehicle-type-image { width: 38px; height: 27px; object-fit: contain; }
.report-highlight-vehicle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-performance { padding: 0; overflow: hidden; }
.report-performance-head { padding: 17px 19px 12px; align-items: end; }
.report-performance-head h3 { margin: 3px 0 0; }
.report-performance-head > small { max-width: 360px; text-align: right; line-height: 1.35; }
.report-table { border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
.report-table table { min-width: 900px; }
.report-table td { vertical-align: middle; }
.report-table td:last-child .badge { max-width: 180px; white-space: normal; line-height: 1.2; border-radius: 12px; }
.report-vehicle-cell { display: flex; align-items: center; gap: 9px; min-width: 170px; }
.report-vehicle-cell > span:last-child { min-width: 0; display: grid; gap: 2px; }
.report-vehicle-cell small, .report-km-range { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.report-vehicle-thumb { width: 52px; height: 40px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 12px; background: #f2f6fb; overflow: hidden; }
.report-vehicle-thumb .vehicle-type-image { width: 48px; height: 34px; object-fit: contain; }
.report-value-cell { font-weight: 700; }
.report-partial { display: block; margin-top: 2px; color: #b77b05; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.report-mobile-list { display: none; }

.empty-state { color: var(--muted); padding: 20px; text-align: center; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 150; background: #10213d; color: white; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.bottom-nav, .more-menu { display: none; }


.company-pill { display: inline-flex; align-items: center; max-width: 260px; padding: 7px 11px; border-radius: 999px; background: #eef3fb; color: #40506c; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-panel { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.company-panel h3 { margin: 3px 0 4px; }
.company-panel p { margin: 0; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid.two { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .report-controls { grid-template-columns: 1fr 1fr; }
}

.home-alerts-grid { display: contents; }
.home-alert-mobile-summary, .home-alert-mobile-action { display: none; }

@media (max-width: 760px) {
  body { background: #f2f5f9; }
  .sidebar { display: none; }
  .main { margin: 0; padding: 12px 12px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 48px; margin-bottom: 10px; gap: 10px; }
  .topbar > div:first-child { min-width: 0; }
  .topbar > div:first-child .eyebrow { display: none; }
  .topbar h2 { margin: 0; font-size: 19px; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .month-pill { display: none; }
  .company-pill { max-width: 132px; padding: 6px 9px; font-size: 11px; }
  #mobileLogoutBtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
  .hero-card { padding: 16px; align-items: stretch; flex-direction: column; gap: 10px; border-radius: 18px; }
  .hero-card h1 { font-size: 22px; line-height: 1.08; }
  .hero-card p { font-size: 13px; line-height: 1.42; }
  .hero-card .btn.light { min-height: 40px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0; }
  .stat-card { min-height: 76px; padding: 11px; gap: 9px; }
  .stat-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
  .stat-card small { margin-bottom: 3px; font-size: 11px; line-height: 1.2; }
  .stat-card strong { font-size: 18px; line-height: 1.1; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .quick-card { min-height: 82px; padding: 11px; border-radius: 14px; }
  .quick-card span { width: 32px; height: 32px; margin-bottom: 7px; border-radius: 10px; font-size: 17px; }
  .quick-card b { font-size: 13px; line-height: 1.2; }
  .quick-card small { margin-top: 2px; font-size: 10px; line-height: 1.2; }
  .quick-card-mobile-oil { display: block; }
  .quick-card-desktop-report { display: none; }
  .section-head { align-items: stretch; flex-direction: column; }
  .section-head .btn { width: 100%; }
  .company-panel { align-items: stretch; flex-direction: column; }
  .company-panel .btn { width: 100%; }
  .filter-bar { grid-template-columns: 1fr; }
  .vehicle-card { grid-template-columns: 1fr; }
  .vehicle-actions { justify-content: start; }
  .sector-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid .span-2, .form-grid .optional-block { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; gap: 8px; margin-top: 2px; }
  .form-actions .btn { width: 100%; min-height: 46px; }
  input, select, textarea { min-height: 46px; border-radius: 12px; padding: 11px 12px; font-size: 16px; }
  textarea { min-height: 94px; }
  .modal { align-items: end; padding: 10px; }
  .modal-card { width: 100%; max-height: calc(100dvh - 20px); padding: 16px; border-radius: 22px 22px 15px 15px; }
  .modal-head { margin-bottom: 14px; gap: 12px; }
  .modal-head h3 { font-size: 18px; line-height: 1.2; }
  .modal-head .icon-btn { flex: 0 0 auto; width: 40px; height: 40px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .oil-control-grid { grid-template-columns: 1fr 1fr; }
  .report-controls { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .table-wrap { overflow-x: auto; }
  table { min-width: 700px; }
  .bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(5, 1fr); bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.98); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(18,35,60,.08); padding: 6px 4px max(7px, env(safe-area-inset-bottom)); }
  .bottom-item { min-height: 54px; border: 0; background: transparent; color: #7b8798; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px 2px; border-radius: 12px; }
  .bottom-item span { font-size: 19px; }
  .bottom-item small { font-size: 10px; font-weight: 700; }
  .bottom-item.active { color: var(--blue); }
  .more-menu {
    display: block;
    position: fixed;
    z-index: 35;
    inset: 0 0 calc(67px + env(safe-area-inset-bottom)) 0;
    width: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f2f5f9;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: calc(18px + env(safe-area-inset-top)) 14px 24px;
  }
  .more-menu-header { padding: 2px 2px 16px; }
  .more-menu-header .eyebrow { color: #738299; }
  .more-menu-header h2 { margin: 4px 0 3px; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
  .more-menu-header p { margin: 0; color: var(--muted); font-size: 13px; }
  .more-menu button {
    width: 100%;
    min-height: 58px;
    margin: 0 0 9px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: left;
    padding: 15px 16px;
    border-radius: 15px;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(20,35,60,.045);
  }
  .more-menu button:hover { background: #f8fbff; }
  #moreLogoutBtn { color: #b4232f; border-color: #f0d4d7; background: #fffafa; }
  body:has(#moreMenu:not(.hidden)) .bottom-item.active { color: #7b8798; }
  body:has(#moreMenu:not(.hidden)) #moreMenuBtn { color: var(--blue); }
  .toast { left: 14px; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); text-align: center; }
  #page-dashboard .panel { padding: 14px; border-radius: 16px; }
  #page-dashboard .panel-head { margin-bottom: 11px; }
  #page-dashboard .panel-head h3 { font-size: 16px; }
  #page-dashboard .home-alerts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0; align-items: stretch; }
  #page-dashboard .home-alerts-grid.single { grid-template-columns: 1fr; }
  #page-dashboard .home-alert-card { margin: 0; min-width: 0; padding: 12px; display: flex; flex-direction: column; min-height: 150px; }
  #page-dashboard .home-alert-card .panel-head { display: grid; gap: 7px; align-content: start; margin-bottom: 7px; }
  #page-dashboard .home-alert-card .panel-head > .badge { justify-self: start; max-width: 100%; white-space: normal; font-size: 10px; line-height: 1.15; padding: 5px 7px; }
  #page-dashboard .home-alert-card .eyebrow { display: none; }
  #page-dashboard .home-alert-card .panel-head h3 { margin-top: 2px; font-size: 14px; line-height: 1.15; }
  #page-dashboard .oil-alert-title { gap: 7px; align-items: flex-start; }
  #page-dashboard .oil-alert-symbol { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  #page-dashboard .home-alert-mobile-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; margin: 1px 0 9px; min-height: 29px; }
  #page-dashboard .home-alert-mobile-action { display: inline-flex; width: 100%; min-height: 34px; margin-top: auto; justify-content: center; align-items: center; padding: 7px 9px; font-size: 11px; }
  #page-dashboard .home-alert-mobile-action.hidden { display: none; }
  #page-dashboard .home-alert-card .oil-alert-list, #page-dashboard .home-alert-card .document-alert-list { display: none; }
  #page-dashboard .oil-alert-item.red .vf-oil-overdue-text { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 900; }
  #page-dashboard .content-grid.two { gap: 12px; }
  #page-dashboard #recentActivity.empty-state { min-height: 0; padding: 8px 4px; font-size: 12px; }
}

@media (max-width: 430px) {
  .login-card { padding: 25px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { display: flex; }
  .stat-icon { margin-bottom: 0; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .report-grid { grid-template-columns: 1fr; }
  .oil-control-grid { grid-template-columns: 1fr; }
  .oil-alert-item { align-items: flex-start; flex-direction: column; }
  .oil-alert-item .btn { width: 100%; }
}


/* Usuários e permissões */
.permission-note { margin-bottom: 16px; line-height: 1.55; color: #4c5870; }
#userList .vehicle-actions { min-width: 150px; }
#userList td { vertical-align: middle; }

/* Painel do Superadministrador Venix */
.company-page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
#companyList td { vertical-align: middle; }
#companyList .vehicle-actions { min-width: 230px; }
#companyList td:first-child { min-width: 190px; }

@media (max-width: 760px) {
  .company-page-actions { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  .company-page-actions .btn { width: 100%; }
}

/* V18.7 — Documentos, vencimentos e importação */
.section-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.document-alert-panel{margin-top:16px}.document-alert-list{display:grid;gap:9px}.document-alert-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2)}.document-alert-item.red{border-left:5px solid var(--red);background:#fff7f8}.document-alert-item.orange{border-left:5px solid var(--orange);background:#fffaf1}.document-alert-item small{display:block;color:var(--muted);margin-top:3px}.document-resource-box{border:1px solid var(--border);border-radius:14px;padding:14px;background:#f8fbff;display:grid;gap:10px}.document-resource-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.document-resource-row input[type=checkbox]{width:18px;height:18px}.document-list{display:grid;gap:9px}.document-row{border:1px solid var(--border);border-radius:13px;padding:12px;display:flex;justify-content:space-between;gap:12px;align-items:center}.document-row-main{min-width:0}.document-row-main small{display:block;color:var(--muted);margin-top:3px}.import-preview-wrap{max-height:330px;overflow:auto;border:1px solid var(--border);border-radius:13px}.import-preview-table{width:100%;border-collapse:collapse}.import-preview-table th,.import-preview-table td{padding:9px 10px;font-size:12px;white-space:nowrap}.import-preview-table tr.has-error td{background:#fff7f7}.import-summary{display:flex;gap:8px;flex-wrap:wrap}.vehicle-doc-badge{cursor:pointer}.expiry-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.expiry-toolbar .btn.active{background:#eaf1ff;color:#2a5ec3}.resource-note{font-size:12px;color:var(--muted);line-height:1.45}
@media(max-width:760px){.section-head{align-items:flex-start}.section-actions{width:100%;justify-content:stretch}.section-actions .btn{flex:1;min-width:0}.document-alert-item,.document-row{align-items:flex-start;flex-direction:column}.document-alert-item .btn,.document-row .vehicle-actions{width:100%}.document-row .vehicle-actions{justify-content:flex-start}.expiry-toolbar{display:grid;grid-template-columns:1fr 1fr}.import-preview-wrap{max-height:280px}}

@media (max-width: 760px) {
  .vehicle-badge { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; }
  .vehicle-type-image { padding: 2px; }
}


/* V18.7.4 — centros compactos de alertas somente no mobile */
@media (max-width:760px) {
  .mobile-alert-center, .mobile-alert-detail { display:grid; gap:12px; }
  .mobile-alert-center-intro { display:grid; gap:3px; padding:2px 2px 4px; }
  .mobile-alert-center-intro small { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; }
  .mobile-alert-center-intro b { font-size:15px; color:var(--navy); }
  .mobile-alert-vehicle-list { display:grid; gap:9px; }
  .mobile-alert-vehicle-card { border:1px solid var(--line); background:#fff; border-radius:16px; padding:11px; display:grid; gap:10px; box-shadow:0 5px 16px rgba(23,48,79,.05); }
  .mobile-alert-vehicle-card.red { border-left:4px solid #e34b5f; }
  .mobile-alert-vehicle-card.orange { border-left:4px solid #e58a00; }
  .mobile-alert-vehicle-main { min-width:0; display:flex; align-items:center; gap:10px; }
  .mobile-alert-vehicle-main > div:last-child { min-width:0; display:grid; gap:3px; }
  .mobile-alert-vehicle-main b { color:var(--navy); font-size:14px; line-height:1.2; }
  .mobile-alert-vehicle-main small { color:var(--muted); font-size:11px; line-height:1.25; }
  .mobile-alert-vehicle-main .badge { justify-self:start; margin-top:2px; font-size:10px; }
  .mobile-alert-vehicle-icon { flex:0 0 50px; width:50px; height:50px; border-radius:13px; }
  .mobile-alert-vehicle-icon .vehicle-type-image { width:46px; height:46px; }
  .mobile-alert-vehicle-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .mobile-alert-vehicle-actions:has(> :only-child) { grid-template-columns:1fr; }
  .mobile-alert-vehicle-actions .btn { width:100%; min-height:38px; }
  .mobile-alert-back { border:0; background:transparent; color:#1d62d6; font:inherit; font-size:12px; font-weight:800; padding:2px 0; justify-self:start; cursor:pointer; }
  .mobile-alert-detail-head { display:flex; align-items:center; gap:11px; padding:11px; border:1px solid var(--line); border-radius:16px; background:#f8fbff; }
  .mobile-alert-detail-head > div:last-child { display:grid; gap:3px; }
  .mobile-alert-detail-head b { color:var(--navy); font-size:15px; }
  .mobile-alert-detail-head small { color:var(--muted); font-size:11px; }
  .mobile-alert-detail-icon { flex:0 0 58px; width:58px; height:58px; border-radius:15px; }
  .mobile-alert-detail-icon .vehicle-type-image { width:54px; height:54px; }
  .mobile-oil-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .mobile-oil-summary-grid .oil-control-box { min-height:76px; padding:10px; }
  .mobile-alert-primary { width:100%; min-height:42px; }
  .mobile-alert-section-title { display:flex; align-items:center; justify-content:space-between; gap:9px; margin-top:2px; }
  .mobile-alert-section-title > div, .mobile-alert-section-title:not(:has(> div)) { min-width:0; }
  .mobile-alert-section-title b { color:var(--navy); font-size:14px; display:block; }
  .mobile-alert-section-title small { color:var(--muted); font-size:10px; display:block; margin-top:2px; }
  .mobile-alert-history { display:grid; gap:8px; }
  .mobile-alert-history-row { display:grid; gap:8px; border:1px solid var(--line); border-radius:14px; padding:10px; }
  .mobile-alert-history-row > div:first-child { display:grid; gap:2px; }
  .mobile-alert-history-row b { font-size:13px; color:var(--navy); }
  .mobile-alert-history-row small { color:var(--muted); font-size:10px; }
  .mobile-alert-history-row .vehicle-actions { justify-content:flex-start; }
  .mobile-document-list .document-row { align-items:flex-start; gap:8px; }
  .mobile-document-actions { width:100%; display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:7px; }
  .mobile-document-actions .badge { margin-right:auto; }
}


/* V18.7.6 — identidade visual dos veículos em Abastecimentos e KM */
#fuelList td, #kmList td { vertical-align: middle; }
#fuelList tbody tr, #kmList tbody tr { transition: background .16s ease; }
#fuelList tbody tr:hover td, #kmList tbody tr:hover td { background: #fbfdff; }
.operation-vehicle-cell { min-width: 190px; }
.operation-vehicle { display: flex; align-items: center; gap: 10px; min-width: 0; }
.operation-vehicle-thumb { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: #eef5ff; border: 1px solid #e4ecf7; }
.operation-vehicle-thumb .vehicle-type-image { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.operation-vehicle-copy { min-width: 0; display: grid; gap: 3px; }
.operation-vehicle-copy b { color: var(--ink); font-size: 13px; line-height: 1.2; white-space: nowrap; }
.operation-vehicle-copy small { color: var(--muted); font-size: 11px; line-height: 1.2; white-space: nowrap; }
#confirmVehicleImportBtn:disabled { background: #e5eaf1; color: #8793a6; box-shadow: none; cursor: not-allowed; opacity: 1; }

@media (max-width:760px) {
  .operation-vehicle-cell { min-width: 170px; }
  .operation-vehicle-thumb { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  .operation-vehicle-copy b { font-size: 12px; }
  .operation-vehicle-copy small { font-size: 10px; }
}


/* V18.7.7 — Relatórios refinados */
@media (max-width: 1050px) {
  #page-reports .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #page-reports .report-highlight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #page-reports .report-analysis-grid { grid-template-columns: 1fr; }
  #page-reports .report-period-panel { padding-top: 16px; }
}

@media (max-width: 760px) {
  #page-reports .report-page-head { gap: 10px; margin-bottom: 10px; }
  #page-reports .report-page-head .eyebrow { display: none; }
  #page-reports .report-page-head p { font-size: 12px; line-height: 1.35; }
  #page-reports .report-export-btn { width: 100%; min-height: 42px; }
  #page-reports .report-filter-panel { padding: 12px; gap: 9px; margin-bottom: 12px; }
  #page-reports .report-controls { display: grid; grid-template-columns: 1fr 1fr; }
  #page-reports .report-controls label { min-width: 0; }
  #page-reports #reportSectorField, #page-reports #reportVehicleField { grid-column: 1 / -1; }
  #page-reports .report-apply-btn { grid-column: 1 / -1; width: 100%; min-height: 43px; }
  #page-reports .report-context-line { align-items: start; margin: 2px 1px 9px; }
  #page-reports .report-context-line b { font-size: 14px; }
  #page-reports .report-context-line > span { max-width: 45%; text-align: right; font-size: 10px; line-height: 1.3; }
  #page-reports .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
  #page-reports .report-kpi-card { min-height: 92px; padding: 10px; gap: 8px; border-radius: 14px; align-items: flex-start; }
  #page-reports .report-kpi-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
  #page-reports .report-kpi-card small { font-size: 8.5px; line-height: 1.2; }
  #page-reports .report-kpi-card strong { font-size: 15px; white-space: normal; }
  #page-reports .report-kpi-card em { font-size: 8.5px; line-height: 1.25; }
  #page-reports .report-analysis-grid { gap: 10px; margin-bottom: 13px; }
  #page-reports .report-chart-panel, #page-reports .report-period-panel { padding: 12px; border-radius: 15px; }
  #page-reports .report-chart-head { display: grid; gap: 8px; }
  #page-reports .report-chart-head h3 { font-size: 15px; }
  #page-reports .report-chart-select { width: 100%; min-width: 0; min-height: 40px; font-size: 12px; }
  #page-reports .report-bars { grid-template-columns: repeat(7,minmax(58px,1fr)); overflow-x: auto; min-height: 180px; padding-bottom: 4px; }
  #page-reports .report-bar-item { grid-template-rows: 24px 105px auto; }
  #page-reports .report-bar-track { height: 105px; background-size: 100% 26px; }
  #page-reports .report-bar-value { font-size: 8px; }
  #page-reports .report-bar-vehicle .vehicle-type-image { width: 34px; height: 24px; }
  #page-reports .report-period-panel { display: none; }
  #page-reports .report-highlights-section { margin-bottom: 13px; }
  #page-reports .report-section-title h3 { font-size: 16px; }
  #page-reports .report-highlight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #page-reports .report-highlight-card { min-height: 88px; padding: 10px; gap: 7px; border-radius: 14px; }
  #page-reports .report-highlight-icon { flex-basis: 27px; width: 27px; height: 27px; border-radius: 9px; font-size: 11px; }
  #page-reports .report-highlight-copy > small { min-height: 24px; font-size: 8.5px; }
  #page-reports .report-highlight-copy strong { font-size: 12px; }
  #page-reports .report-highlight-vehicle { font-size: 9px; }
  #page-reports .report-highlight-vehicle .vehicle-type-image { width: 30px; height: 21px; }
  #page-reports .report-performance { padding: 12px; border-radius: 15px; overflow: visible; }
  #page-reports .report-performance-head { padding: 0 0 10px; display: block; }
  #page-reports .report-performance-head h3 { font-size: 16px; }
  #page-reports .report-performance-head > small { display: none; }
  #page-reports .report-desktop-table { display: none; }
  #page-reports .report-mobile-list { display: grid; gap: 8px; }
  #page-reports .report-mobile-vehicle-card { padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: #fbfcfe; }
  #page-reports .report-mobile-vehicle-head { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; align-items: center; }
  #page-reports .report-mobile-vehicle-thumb { width: 42px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eff4fa; overflow: hidden; }
  #page-reports .report-mobile-vehicle-thumb .vehicle-type-image { width: 39px; height: 28px; object-fit: contain; }
  #page-reports .report-mobile-vehicle-head > div { min-width: 0; display: grid; gap: 2px; }
  #page-reports .report-mobile-vehicle-head b { font-size: 12px; }
  #page-reports .report-mobile-vehicle-head small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #page-reports .report-mobile-vehicle-head > .badge { max-width: 88px; white-space: normal; text-align: center; font-size: 8px; line-height: 1.15; padding: 5px 6px; }
  #page-reports .report-mobile-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 8px; }
  #page-reports .report-mobile-metrics span { min-width: 0; padding: 7px 8px; background: #f3f6fa; border-radius: 10px; }
  #page-reports .report-mobile-metrics small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 2px; }
  #page-reports .report-mobile-metrics b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #page-reports .report-mobile-metrics em { display: block; color: #b77b05; font-size: 7.5px; font-style: normal; font-weight: 800; text-transform: uppercase; }
}

@media (max-width: 430px) {
  #page-reports .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #page-reports .report-highlight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* V18.7.15 — Importação inteligente de veículos novos */
.vehicle-import-modal .modal-card{width:min(1080px,100%)}.vehicle-import-smart{gap:14px;padding-bottom:2px}.vehicle-import-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vehicle-import-choice{border:1px solid var(--border);border-radius:15px;background:var(--surface-2);padding:14px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:142px}.vehicle-import-choice small{display:block;color:#5d77a0;font-size:10px;font-weight:850;letter-spacing:.08em;margin-bottom:5px}.vehicle-import-choice b{display:block;font-size:15px;color:#17365f}.vehicle-import-choice p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.vehicle-import-choice .btn{align-self:flex-start}.vehicle-import-file-btn{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;border:1px solid #2b66c8;background:#2f6fed;color:#fff;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 6px 14px rgba(47,111,237,.16)}.vehicle-import-file-btn input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.vehicle-import-file-info{display:flex;align-items:center;gap:10px;border:1px solid #cfe5d8;background:#f4fbf7;border-radius:13px;padding:11px 13px}.vehicle-import-file-info>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dff5e7;color:#16834a;font-weight:900}.vehicle-import-file-info b{display:block;color:#17365f;font-size:13px}.vehicle-import-file-info small{display:block;color:#648077;margin-top:2px}.vehicle-import-mapping{border:1px solid var(--border);border-radius:15px;background:#fff;padding:14px}.vehicle-import-mapping.is-collapsed{padding:10px 12px;background:#f8fbff}.vehicle-import-map-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}.vehicle-import-map-summary>div{display:flex;align-items:center;gap:10px;min-width:0}.vehicle-import-summary-check{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:#dff5e7;color:#16834a;font-weight:900}.vehicle-import-map-summary b{display:block;color:#17365f;font-size:13px}.vehicle-import-map-summary small{display:block;color:#69809b;font-size:11px;margin-top:2px}.vehicle-import-map-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}.vehicle-import-map-head b{color:#17365f}.vehicle-import-map-head p{margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.4}.vehicle-import-required-status{margin:8px 0 10px}.vehicle-import-ok,.vehicle-import-warning{display:block;border-radius:10px;padding:8px 10px;font-size:11.5px;font-weight:750}.vehicle-import-ok{background:#effaf3;color:#1c7547;border:1px solid #d3efde}.vehicle-import-warning{background:#fff8e8;color:#8a5d00;border:1px solid #f4dfaa}.vehicle-import-map-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;max-height:none}.vehicle-import-map-row{display:grid;grid-template-columns:minmax(105px,1fr) auto minmax(145px,1fr);gap:7px;align-items:end;border:1px solid #e6edf6;border-radius:10px;padding:7px 8px;background:#fbfdff;min-width:0}.vehicle-import-source{min-width:0}.vehicle-import-source small,.vehicle-import-map-row label small{display:block;color:#7c8da4;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.vehicle-import-source b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243e62;font-size:11.5px}.vehicle-import-map-row label{margin:0;min-width:0}.vehicle-import-map-row select{width:100%;min-height:34px;padding:6px 8px;font-size:11.5px}.vehicle-import-map-arrow{align-self:center;color:#7a93b6;font-weight:900}.vehicle-import-preview-action{justify-content:flex-start;margin-top:-2px}.vehicle-import-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.vehicle-import-preview-head b{display:block;color:#17365f}.vehicle-import-preview-head small{display:block;color:var(--muted);margin-top:3px}.vehicle-import-error-text{display:inline-block;max-width:420px;white-space:normal;line-height:1.35;color:#a32c2c;font-weight:650}.vehicle-import-safety-note{margin-top:10px;border-left:3px solid #2f6fed;padding:9px 11px;background:#f6f9ff;color:#536985;font-size:11px;line-height:1.45}.vehicle-import-sticky-actions{position:sticky;bottom:-22px;z-index:8;margin:4px -22px -22px;padding:12px 22px 22px;background:linear-gradient(180deg,rgba(255,255,255,.9),#fff 28%);border-top:1px solid #e7edf5;box-shadow:0 -10px 24px rgba(20,53,92,.06)}.badge.blue{background:#eaf2ff;color:#245cb0}.hidden{display:none!important}
@media(max-width:900px){.vehicle-import-map-list{grid-template-columns:1fr}}
@media(max-width:760px){.vehicle-import-modal{align-items:stretch;padding:0}.vehicle-import-modal .modal-card{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}.vehicle-import-modal .modal-head{position:sticky;top:0;z-index:12;background:#fff;margin:-16px -16px 12px;padding:16px 16px 12px;padding-top:max(16px,env(safe-area-inset-top));border-bottom:1px solid #edf2f7}.vehicle-import-choice-grid{grid-template-columns:1fr}.vehicle-import-choice{min-height:0}.vehicle-import-map-head,.vehicle-import-preview-head{flex-direction:column}.vehicle-import-map-row{grid-template-columns:minmax(0,1fr) auto minmax(145px,1fr);align-items:center}.vehicle-import-source small,.vehicle-import-map-row label small{display:none}.vehicle-import-map-arrow{display:block}.vehicle-import-choice .btn,.vehicle-import-file-btn{width:100%}.vehicle-import-preview-action .btn{width:100%}.vehicle-import-map-summary{align-items:flex-start}.vehicle-import-map-summary>div{align-items:flex-start}.vehicle-import-map-summary .btn{flex:0 0 auto}.vehicle-import-sticky-actions{bottom:calc(-16px - env(safe-area-inset-bottom));margin:4px -16px calc(-16px - env(safe-area-inset-bottom));padding:12px 16px calc(16px + env(safe-area-inset-bottom));gap:8px}.vehicle-import-sticky-actions .btn{flex:1}.import-preview-wrap{max-height:360px}}
@media(max-width:480px){.vehicle-import-map-row{grid-template-columns:minmax(0,.9fr) auto minmax(130px,1.1fr);padding:7px}.vehicle-import-source b,.vehicle-import-map-row select{font-size:11px}.vehicle-import-map-summary{flex-direction:column}.vehicle-import-map-summary .btn{width:100%}}
