:root {
    --bg: #061524;
    --panel: rgba(9, 31, 52, .86);
    --panel-2: rgba(12, 43, 70, .88);
    --line: rgba(148, 178, 210, .22);
    --text: #edf6ff;
    --muted: #9fb2c8;
    --blue: #1268ff;
    --blue-2: #15b7ff;
    --green: #18d6a0;
    --orange: #ff8d45;
    --red: #ff5a5f;
    --purple: #8f5cff;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 16% 8%, rgba(18, 104, 255, .2), transparent 32%),
        radial-gradient(circle at 82% 24%, rgba(20, 198, 212, .14), transparent 34%),
        linear-gradient(135deg, #061524 0%, #071d31 50%, #04111f 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-layout { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 224px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    background: rgba(4, 18, 31, .92);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
    width: 168px;
    max-width: 100%;
    height: auto;
    display: block;
}
.logo-mark {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
    color: #fff; font-weight: 950; font-size: 24px;
    box-shadow: 0 12px 30px rgba(18, 104, 255, .32);
}
.brand strong, .brand small { display: block; }
.brand small, .user-menu span, .plan-card span, .muted { color: var(--muted); }
.main-nav { display: grid; gap: 6px; }
.main-nav a, .bottom-nav a {
    min-height: 42px; display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--radius);
    color: var(--muted); font-weight: 760;
}
.main-nav a .nav-icon, .bottom-nav a .nav-icon {
    width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 7px; background: rgba(18, 104, 255, .13); color: #91c4ff; font-size: 12px; font-weight: 900;
}
.nav-icon img {
    width: 17px;
    height: 17px;
    display: block;
    object-fit: contain;
    opacity: .92;
}
.asset-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
}
.main-nav a:hover, .main-nav a.is-active, .bottom-nav a.is-active {
    background: rgba(18, 104, 255, .24); color: #fff;
}
.plan-card {
    margin-top: auto; display: grid; gap: 8px; padding: 16px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(18,104,255,.18), rgba(5,21,36,.72));
}
.plan-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.plan-card-head strong {
    color: #fff;
    line-height: 1.12;
}
.plan-icon {
    width: 30px;
    height: 30px;
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    margin-bottom: 0;
}
.plan-icon img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}
.plan-card a { color: var(--green); font-weight: 800; }
.app-main { min-height: 100vh; margin-left: 224px; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    width: 100%;
    margin-inline: 0;
    min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 0 22px !important;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    transition: background .18s ease, backdrop-filter .18s ease, box-shadow .18s ease;
}
.topbar.is-stuck {
    background: linear-gradient(180deg, rgba(4, 18, 31, .82), rgba(4, 18, 31, .34) 72%, transparent);
    backdrop-filter: blur(18px);
}
.global-search { position: relative; flex: 1 1 520px; max-width: 560px; }
.global-search span {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 12px; font-weight: 900;
}
.global-search input { padding-left: 66px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.period-pill, .icon-button, .avatar-link {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: rgba(3, 16, 29, .54); color: var(--text);
}
.period-pill { gap: 8px; padding: 0 14px; border-radius: var(--radius); white-space: nowrap; }
.period-menu {
    position: relative;
}
.period-menu summary {
    list-style: none;
    cursor: pointer;
}
.period-menu summary::-webkit-details-marker {
    display: none;
}
.period-chevron {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    opacity: .82;
    transition: transform .18s ease;
}
.period-chevron img {
    width: 16px;
    height: 16px;
    display: block;
}
.period-menu[open] .period-chevron {
    transform: rotate(180deg);
}
.period-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    width: 292px;
    display: grid;
    gap: 5px;
    padding: 7px;
    border: 1px solid rgba(148,178,210,.26);
    border-radius: 10px;
    background: rgba(4,18,31,.98);
    box-shadow: 0 22px 56px rgba(0,0,0,.42);
}
.period-panel a {
    min-height: 48px;
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #e8f4ff;
}
.period-panel a:hover,
.period-panel a.is-active {
    background: rgba(18,104,255,.2);
}
.period-panel a span {
    font-weight: 900;
}
.period-panel a small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.icon-button { min-width: 40px; padding: 0 10px; border-radius: var(--radius); color: #9fc9ff; font-weight: 900; }
.notification-trigger {
    position: relative;
}
.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #061524;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}
.nav-icon.inline {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: currentColor;
}
.nav-icon.inline img { width: 17px; height: 17px; }
.avatar-link { width: 42px; border-radius: 999px; background: var(--blue); border-color: transparent; color: #fff; font-weight: 900; }
.avatar-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}
.user-menu strong, .user-menu span { display: block; white-space: nowrap; }
.account-menu {
    position: relative;
}
.account-menu summary {
    list-style: none;
}
.account-menu summary::-webkit-details-marker {
    display: none;
}
.profile-button {
    min-height: 44px;
    display: grid;
    grid-template-columns: 38px minmax(0, max-content) 24px;
    align-items: center;
    gap: 10px;
    padding: 3px 0 3px 3px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}
.profile-button:hover,
.account-menu[open] .profile-button {
    background: transparent;
}
.profile-button .avatar-link {
    width: 38px;
    min-height: 38px;
    border: 0;
    pointer-events: none;
}
.profile-button .user-menu {
    min-width: 0;
    padding-right: 2px;
}
.profile-button .user-menu strong {
    max-width: 180px;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.18;
    text-overflow: ellipsis;
}
.profile-button .user-menu span {
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.18;
}
.profile-chevron {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    opacity: .88;
    transition: transform .18s ease;
}
.profile-chevron img {
    width: 22px;
    height: 22px;
    display: block;
}
.account-menu[open] .profile-chevron {
    transform: rotate(180deg);
}
.account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    min-width: 180px;
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(148,178,210,.26);
    border-radius: 8px;
    background: rgba(4,18,31,.98);
    box-shadow: 0 18px 42px rgba(0,0,0,.42);
}
.account-panel a {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    color: #e8f4ff;
    font-size: 13px;
    font-weight: 800;
}
.account-panel a:hover {
    background: rgba(18,104,255,.18);
}
.account-panel a:last-child {
    color: #ff8589;
}
.notification-backdrop {
    position: fixed;
    inset: 0;
    z-index: 84;
    background: rgba(0, 0, 0, .24);
    backdrop-filter: blur(7px);
}
.notification-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 85;
    width: min(420px, calc(100vw - 18px));
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 22px;
    border-left: 1px solid rgba(148,178,210,.26);
    background:
        radial-gradient(circle at 8% 0%, rgba(18,104,255,.2), transparent 34%),
        linear-gradient(180deg, rgba(8,31,53,.98), rgba(3,16,29,.99));
    box-shadow: -30px 0 80px rgba(0,0,0,.48);
    transform: translateX(100%);
    transition: transform .2s ease;
}
.notification-drawer.is-open {
    transform: translateX(0);
}
.notification-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148,178,210,.18);
}
.notification-head h2 {
    margin: 0;
    font-size: 24px;
}
.notification-list {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding-right: 3px;
}
.notification-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(148,178,210,.2);
    border-radius: 10px;
    background: rgba(3,16,29,.42);
}
.notification-mark {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 999px;
    background: #44a0ff;
    box-shadow: 0 0 0 5px rgba(68,160,255,.12);
}
.notification-item.warn .notification-mark {
    background: #ffb000;
    box-shadow: 0 0 0 5px rgba(255,176,0,.14);
}
.notification-item.success .notification-mark {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(24,214,160,.13);
}
.notification-item strong {
    display: block;
    color: #fff;
    font-size: 14px;
}
.notification-item p {
    margin: 4px 0 7px;
    color: #bdd1e5;
    font-size: 13px;
    line-height: 1.4;
}
.notification-item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}
.notification-settings-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18,104,255,.55);
    border-radius: var(--radius);
    color: #44a0ff;
    font-weight: 900;
}
.button-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.button-with-icon .button-icon {
    width: 21px;
    height: 21px;
}

.page-shell { width: calc(100% - 44px); max-width: none; margin-left: 22px; margin-right: 22px; }
.section { padding: 26px 0 42px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.eyebrow { margin: 0 0 7px; color: #44a0ff; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 14px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.two-col { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .metric, .filter-bar, .auth-card, .drawer, .mini-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(13,43,70,.88), rgba(5,21,36,.84)), var(--panel);
    box-shadow: var(--shadow);
}
.card, .filter-bar { padding: 18px; }
.metric { min-height: 120px; padding: 16px; position: relative; overflow: hidden; }
.metric span, .card-title span, table small { color: var(--muted); }
.metric strong { display: block; margin-top: 14px; font-size: 26px; }
.metric::after {
    content: ""; position: absolute; right: 16px; bottom: 14px; width: 42px; height: 4px;
    border-radius: 999px; background: rgba(148, 178, 210, .22);
}
.metric.gain strong, .text-gain { color: var(--green); }
.metric.expense strong, .text-expense { color: var(--orange); }
.metric.net strong, .text-net { color: #9fc9ff; }
.text-danger { color: #ff5f52; }
.metric.gain::after { background: var(--green); }
.metric.expense::after { background: var(--orange); }
.metric.net::after { background: var(--blue); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2 { margin: 0; font-size: 18px; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
label { display: grid; gap: 7px; color: var(--text); font-weight: 800; }
input, select, textarea {
    width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid rgba(148,178,210,.3);
    border-radius: var(--radius); background: rgba(3,16,29,.62); color: var(--text); outline: 0;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(18,104,255,.75); box-shadow: 0 0 0 3px rgba(18,104,255,.22); }
.button {
    min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(9,31,52,.86); color: var(--text); font-weight: 900;
}
.button.primary { background: linear-gradient(135deg, var(--blue-2), var(--blue)); border-color: transparent; color: #fff; }
.button.danger { color: #ff8589; border-color: rgba(255,90,95,.45); }
.button.full { width: 100%; }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3,16,29,.38); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 12px 13px; border-bottom: 1px solid rgba(148,178,210,.15); text-align: left; vertical-align: top; }
th { background: rgba(3,16,29,.62); color: var(--muted); font-size: 12px; text-transform: uppercase; }
tr:hover td { background: rgba(18,104,255,.07); }
td strong, td small { display: block; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.status, .badge {
    display: inline-flex; min-height: 28px; align-items: center; padding: 5px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 900;
}
.status.active, .badge.green { background: rgba(24,214,160,.13); color: var(--green); }
.status.turn { background: rgba(20,198,212,.13); color: #56d9ff; border: 1px solid rgba(20,198,212,.35); }
.status.docs { background: rgba(255,170,55,.13); color: #ffb23f; border: 1px solid rgba(255,170,55,.4); }
.status.maintenance { background: rgba(255,170,55,.13); color: #ffb23f; border: 1px solid rgba(255,170,55,.4); }
.status.inactive, .badge.gray { background: rgba(148,178,210,.13); color: var(--muted); }
.badge.orange { background: rgba(255,141,69,.13); color: var(--orange); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3,16,29,.42); }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 999px; background: var(--blue); font-weight: 950; }
.tile p { margin: 0; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 76px; }
.password-field button { position: absolute; right: 7px; top: 50%; min-height: 30px; transform: translateY(-50%); }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: 18px; min-height: 18px; }
.flash { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); font-weight: 800; }
.flash.success { background: rgba(24,214,160,.13); color: var(--green); border: 1px solid rgba(24,214,160,.36); }
.flash.error { background: rgba(255,90,95,.13); color: #ff8b8f; border: 1px solid rgba(255,90,95,.35); }

.auth-page { display: grid; min-height: 100vh; }
.auth-topbar, .auth-footer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.auth-topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.auth-shell { width: min(1120px, calc(100% - 32px)); display: grid; place-items: center; margin: auto; padding: 40px 0 70px; }
.auth-card { width: min(480px, 100%); padding: 30px; position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--blue-2), var(--blue), var(--green)); }
.auth-card h1 { margin: 0; font-size: 34px; }
.auth-card p { color: var(--muted); }
.auth-info { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,104,255,.11); }
.auth-info { overflow-wrap: anywhere; }
.auth-footer { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 18px; }
.error-box { white-space: pre-wrap; color: #ffb4b6; }

.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.settings-nav { position: sticky; top: 84px; align-self: start; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(3,16,29,.42); }
.settings-nav a { padding: 13px 14px; border-bottom: 1px solid rgba(148,178,210,.12); color: var(--muted); font-weight: 800; }
.settings-nav a.is-active, .settings-nav a:hover { background: rgba(18,104,255,.22); color: #fff; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(148,178,210,.12); }
.switch-row input { width: 42px; min-height: 22px; accent-color: var(--blue); }
.color-dot { width: 24px; height: 24px; border-radius: 999px; display: inline-block; border: 2px solid rgba(255,255,255,.18); }
.distribution { display: flex; overflow: hidden; height: 18px; border-radius: 999px; background: rgba(148,178,210,.18); }
.distribution i { display: block; }

.vehicles-dashboard { max-width: none; padding-top: 24px; }
.vehicle-page-head { margin-bottom: 12px; }
.vehicle-page-head h1 { font-size: clamp(28px, 2.5vw, 36px); letter-spacing: 0; }
.vehicle-page-head p { margin-top: 7px; color: #a9bfd5; }
.vehicle-page-head .button { min-width: 172px; min-height: 44px; }
.vehicle-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.vehicle-filter-form {
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(170px, 1fr));
}
.vehicle-view-switch {
    display: inline-flex;
    gap: 8px;
    height: 44px;
    align-self: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(3,16,29,.5);
}
.vehicle-view-switch button,
.vehicle-view-switch a {
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
}
.vehicle-view-switch .asset-icon {
    width: 21px;
    height: 21px;
}
.vehicle-view-switch span {
    display: none;
}
.vehicle-view-switch button.is-active,
.vehicle-view-switch a.is-active { background: rgba(18,104,255,.32); color: #fff; }
.vehicle-summary-grid {
    display: grid;
    grid-template-columns: 178px 178px 204px;
    gap: 12px;
    width: min(100%, 584px);
    margin-bottom: 14px;
}
.vehicle-kpi {
    min-height: 56px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 2px;
    padding: 10px 14px;
    background: rgba(11,41,68,.72);
    box-shadow: none;
}
.vehicle-kpi strong {
    grid-column: 2;
    align-self: end;
    font-size: 17px;
    line-height: 1;
}
.vehicle-kpi small {
    grid-column: 2;
    align-self: start;
    display: block;
    color: #b2c5d8;
    font-size: 11px;
    line-height: 1.15;
}
.vehicle-kpi-icon,
.vehicle-kpi-dot,
.vehicle-kpi-tool {
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: #9fc9ff;
    font-weight: 950;
}
.vehicle-kpi .asset-icon {
    width: 26px;
    height: 26px;
}
.vehicle-kpi-dot { color: #66d89b; }
.vehicle-kpi-tool {
    color: #ffb23f;
}
.fleet-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.fleet-vehicle-card {
    min-height: 422px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148,178,210,.2);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 18% 0%, rgba(18,104,255,.14), transparent 32%),
        linear-gradient(145deg, rgba(13,43,70,.78), rgba(5,21,36,.74));
    box-shadow: none;
}
.fleet-vehicle-card.maintenance { border-color: rgba(255,170,55,.35); }
.fleet-vehicle-top {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.fleet-vehicle-img {
    width: 128px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 16px 18px rgba(0,0,0,.34));
}
.vehicle-image-ae456cd,
.vehicle-image-ag789ef,
.fleet-vehicle-card:nth-child(2n) .fleet-vehicle-img { filter: drop-shadow(0 16px 18px rgba(0,0,0,.34)); }
.fleet-vehicle-top h2 {
    margin: 0 0 2px;
    font-size: 19px;
    line-height: 1.1;
}
.fleet-vehicle-top p { margin: 0 0 8px; color: #c6d6e7; font-size: 15px; }
.fleet-vehicle-facts {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 34px;
    row-gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(148,178,210,.16);
    border-bottom: 1px solid rgba(148,178,210,.16);
}
.fleet-vehicle-facts span,
.vehicle-money-list dt,
.vehicle-performance > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.fleet-vehicle-facts strong { font-size: 13px; }
.fleet-platforms {
    align-items: end;
    justify-content: flex-end;
    justify-self: end;
    margin-top: 0;
}
.fleet-platforms span {
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 760;
}
.maintenance-alert {
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(255,170,55,.38);
    border-radius: 7px;
    background: rgba(255,170,55,.1);
    color: #ffb23f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.18;
}
.maintenance-alert.is-placeholder {
    visibility: hidden;
}
.fleet-card-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(168px, .85fr);
    align-items: start;
    gap: 14px;
    min-height: 112px;
}
.assigned-drivers { display: grid; gap: 8px; margin-top: 9px; }
.driver-chip {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}
.driver-chip .driver-avatar {
    width: 34px;
    height: 34px;
}
.driver-chip b,
.avatar-stack span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6fbff, #9fc9ff);
    color: #09213a;
    font-size: 12px;
    font-weight: 950;
    border: 2px solid rgba(255,255,255,.16);
}
.driver-chip em {
    min-width: 0;
    color: #d9e8f8;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.driver-chip small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.vehicle-money-list {
    display: grid;
    gap: 8px;
    margin: 0;
}
.vehicle-money-list div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.vehicle-money-list dd {
    margin: 0;
    white-space: nowrap;
    font-weight: 850;
}
.vehicle-performance {
    margin-top: 0;
    min-height: 112px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,178,210,.16);
}
.vehicle-sparkline {
    width: 100%;
    height: auto;
    aspect-ratio: 700 / 64;
    display: block;
    margin-top: 8px;
    overflow: visible;
}
.vehicle-sparkline .vehicle-spark-grid {
    fill: none;
    stroke: rgba(148,178,210,.1);
    stroke-width: 1;
}
.vehicle-sparkline .vehicle-spark-vgrid {
    fill: none;
    stroke: rgba(148,178,210,.08);
    stroke-width: 1;
}
.vehicle-sparkline polyline {
    fill: none;
    stroke: #20e0ce;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vehicle-sparkline circle {
    fill: #09213a;
    stroke: #20e0ce;
    stroke-width: 2;
}
.vehicle-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
}
.vehicle-days span { min-width: 0; }
.vehicle-days b {
    display: block;
    margin-top: 2px;
    color: #c6d6e7;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vehicle-performance.modal-performance {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.fleet-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}
.fleet-card-actions > a,
.vehicle-control-card .row-actions > a {
    color: #44a0ff;
    font-weight: 900;
}
.vehicle-control-card {
    padding: 14px;
    box-shadow: none;
}
.vehicle-control-card .card-title { margin-bottom: 10px; }
.vehicle-control-card .table-wrap {
    overflow: visible;
}
.vehicle-control-card table { min-width: 1080px; }
.vehicle-control-card th,
.vehicle-control-card td {
    vertical-align: middle;
}
.vehicle-control-card tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}
.vehicle-control-card th:last-child,
.vehicle-control-card td.row-actions {
    width: 168px;
    text-align: center;
}
.vehicle-control-card td.row-actions {
    display: table-cell;
    vertical-align: middle;
    padding-block: 12px;
}
.vehicle-control-card .table-actions {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    white-space: nowrap;
}
.vehicle-control-card .table-actions .driver-profile-link {
    min-height: 28px;
}
.vehicle-control-card .table-actions .driver-more {
    flex: 0 0 38px;
}
.fleet-table-vehicle {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.vehicle-table-img {
    width: 58px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.3));
}
.avatar-stack {
    display: flex;
    align-items: center;
}
.avatar-stack .driver-avatar + .driver-avatar,
.avatar-stack span + span { margin-left: -10px; }
.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,8,16,.58);
    backdrop-filter: blur(4px);
}
.side-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 90;
    width: min(440px, calc(100vw - 24px));
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(7,27,47,.98), rgba(3,16,29,.98));
    box-shadow: -26px 0 80px rgba(0,0,0,.36);
}
.side-drawer h2 { margin: 0; }
.drawer-form { gap: 12px; }
.vehicle-template-field {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148,178,210,.22);
    border-radius: var(--radius);
    background: rgba(3,16,29,.32);
}
.vehicle-template-field img {
    width: 126px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 14px 16px rgba(0,0,0,.32));
}
.vehicle-template-field label {
    min-width: 0;
    margin: 0;
}
@media (max-width: 640px) {
    .vehicle-template-field {
        grid-template-columns: 1fr;
    }
    .vehicle-template-field img {
        width: 100%;
        max-width: 190px;
        justify-self: center;
    }
}
.driver-photo-field {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148,178,210,.22);
    border-radius: var(--radius);
    background: rgba(3,16,29,.34);
}
.driver-avatar.drawer-avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
}
.driver-form-section {
    display: grid;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(148,178,210,.2);
    border-radius: var(--radius);
    background: rgba(3,16,29,.25);
}
.driver-form-section h3 {
    margin: 0 0 2px;
    color: #eaf6ff;
    font-size: 14px;
}
.drawer-help,
.drawer-file-link {
    display: inline-flex;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.drawer-file-link {
    color: #44a0ff;
    width: max-content;
}
.driver-profile-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 91;
    width: min(780px, calc(100vw - 34px));
    max-height: min(86vh, 760px);
    display: grid;
    gap: 16px;
    padding: 18px;
    overflow: auto;
    border: 1px solid rgba(148,178,210,.28);
    border-radius: 14px;
    background:
        radial-gradient(circle at 15% 0%, rgba(18,104,255,.16), transparent 34%),
        linear-gradient(180deg, rgba(8,31,53,.98), rgba(3,16,29,.98));
    box-shadow: 0 28px 90px rgba(0,0,0,.48);
    transform: translate(-50%, -50%);
}
.profile-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148,178,210,.18);
}
.profile-driver-summary {
    min-width: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.driver-avatar.profile-modal-avatar {
    width: 68px;
    height: 68px;
    font-size: 23px;
}
.profile-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-title-line h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.05;
}
.profile-driver-summary p:not(.eyebrow) {
    margin: 8px 0 8px;
    color: #bdd1e5;
    font-size: 13px;
}
.profile-driver-summary .driver-platforms {
    margin-top: 9px;
}
.profile-driver-summary .driver-platforms span {
    min-height: 22px;
    padding-inline: 8px;
}
.vehicle-profile-summary {
    grid-template-columns: 150px minmax(0, 1fr);
}
.vehicle-modal-image {
    width: 146px;
    height: 86px;
    display: block;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 16px 20px rgba(0,0,0,.36));
}
.vehicle-profile-drivers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.vehicle-profile-driver {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid rgba(148,178,210,.16);
    border-radius: 9px;
    background: rgba(5,24,40,.42);
}
.vehicle-profile-driver strong,
.vehicle-profile-driver span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vehicle-profile-driver strong {
    color: #fff;
    font-size: 13px;
}
.vehicle-profile-driver span {
    margin-top: 2px;
    color: #9fb2c8;
    font-size: 11px;
    font-weight: 760;
}
.profile-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}
.profile-modal-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.profile-block {
    display: grid;
    gap: 11px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(148,178,210,.2);
    border-radius: 10px;
    background: rgba(3,16,29,.34);
}
.profile-block.full {
    grid-column: 1 / -1;
}
.profile-block h3 {
    margin: 0;
    color: #eef7ff;
    font-size: 14px;
}
.profile-info-list {
    display: grid;
    gap: 8px;
}
.profile-info-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148,178,210,.12);
}
.profile-info-line:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.profile-info-line span {
    color: #9fb2c8;
    font-size: 12px;
    font-weight: 760;
}
.profile-info-line strong {
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}
.profile-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.profile-doc-card {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(24,214,160,.22);
    border-radius: 10px;
    background: rgba(24,214,160,.07);
}
.profile-doc-card.warn {
    border-color: rgba(255,170,55,.34);
    background: rgba(255,170,55,.08);
}
.profile-doc-card strong {
    display: block;
    color: #fff;
    font-size: 13px;
}
.profile-doc-card span {
    display: block;
    margin-top: 3px;
    color: #b8c9dc;
    font-size: 12px;
    font-weight: 760;
}
.profile-doc-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}
.profile-doc-action {
    width: 38px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(68,160,255,.32);
    border-radius: 8px;
    background: rgba(18,104,255,.12);
    color: #44a0ff;
}
.profile-doc-action:hover {
    background: rgba(18,104,255,.2);
}
.profile-doc-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.profile-doc-action .asset-icon {
    width: 20px;
    height: 20px;
}
.profile-doc-empty {
    color: #7f93aa;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.profile-notes {
    margin: 0;
    color: #c9daeb;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.driver-form-modal {
    width: min(920px, calc(100vw - 34px));
}
.driver-modal-form {
    display: grid;
    gap: 14px;
}
.driver-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.driver-modal-grid .span-full {
    grid-column: 1 / -1;
}
.driver-modal-form .driver-form-section {
    align-content: start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(3,16,29,.38);
}
.driver-modal-form .driver-form-section h3 {
    font-size: 15px;
}
.driver-modal-form label {
    gap: 7px;
}
.driver-modal-form textarea {
    min-height: 106px;
}
.driver-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}
.driver-modal-footer .button {
    min-width: 150px;
}
.vehicle-form-modal .vehicle-template-section {
    gap: 12px;
}
.vehicle-form-modal .vehicle-template-field {
    grid-template-columns: 138px minmax(0, 1fr);
    padding: 11px;
}
.vehicle-form-modal .vehicle-template-field img {
    width: 132px;
    height: 82px;
}

.drivers-dashboard { padding-top: 24px; }
.driver-page-head { margin-bottom: 12px; }
.driver-page-head h1 { font-size: clamp(28px, 2.5vw, 36px); letter-spacing: 0; }
.driver-page-head p { margin-top: 7px; color: #a9bfd5; }
.driver-page-head .button { min-width: 174px; min-height: 44px; }
.driver-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.driver-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(170px, 1fr));
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.driver-filter-form input,
.driver-filter-form select {
    width: 100%;
    min-height: 44px;
    border-color: rgba(148,178,210,.26);
    background: rgba(4,18,31,.56);
    color: #dcecff;
}
.driver-filter-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 60px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23dcecff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 18px 18px;
}
.driver-filters .vehicle-view-switch {
    height: 44px;
    align-self: center;
    padding: 4px;
    gap: 6px;
}
.driver-filters .vehicle-view-switch a {
    width: 38px;
    min-width: 38px;
    min-height: 34px;
}
.driver-summary-grid {
    display: grid;
    grid-template-columns: 220px 160px 270px 280px;
    gap: 12px;
    margin-bottom: 12px;
}
.driver-kpi {
    min-height: 56px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 2px;
    padding: 10px 14px;
    background: rgba(11,41,68,.72);
    box-shadow: none;
}
.driver-kpi strong {
    grid-column: 2;
    align-self: end;
    font-size: 17px;
    line-height: 1;
}
.driver-kpi small {
    grid-column: 2;
    align-self: start;
    display: block;
    color: #b2c5d8;
    font-size: 11px;
    line-height: 1.15;
}
.driver-kpi-icon,
.driver-kpi-dot,
.driver-kpi-tool,
.driver-kpi-car {
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: #9fc9ff;
    font-weight: 950;
}
.driver-kpi-dot { background: transparent; color: #66d89b; }
.driver-kpi-tool { color: #ffb23f; background: transparent; }
.driver-kpi-car { color: #44a0ff; background: transparent; }
.driver-kpi .asset-icon {
    width: 26px;
    height: 26px;
}
.driver-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.driver-card {
    position: relative;
    min-height: 224px;
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(148,178,210,.2);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 18% 0%, rgba(18,104,255,.14), transparent 32%),
        linear-gradient(145deg, rgba(13,43,70,.78), rgba(5,21,36,.74));
    box-shadow: none;
}
@supports (content-visibility: auto) {
    .driver-card {
        content-visibility: auto;
        contain-intrinsic-size: 320px;
    }
    .fleet-vehicle-card {
        content-visibility: auto;
        contain-intrinsic-size: 460px;
    }
}
.driver-card.docs { border-color: rgba(255,170,55,.32); }
.driver-card-top {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
}
.driver-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(18,104,255,.88), rgba(20,198,212,.62));
    color: #fff;
    font-weight: 950;
    border: 2px solid rgba(255,255,255,.16);
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
    overflow: hidden;
    flex: 0 0 auto;
}
img.driver-avatar {
    display: block;
    object-fit: cover;
    object-position: center;
}
span.driver-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.driver-avatar.small {
    width: 30px;
    height: 30px;
    font-size: 10px;
}
.driver-main { min-width: 0; }
.driver-name-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.driver-name-line h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.1;
}
.driver-main p {
    margin: 0px 0 6px;
    color: #c7d7e8;
    font-size: 12px;
    line-height: 1.28;
}
.driver-main a,
.driver-card-actions > a,
.driver-control-card .row-actions > a {
    color: #2d95ff;
    font-weight: 850;
}
.driver-platforms {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}
.driver-platforms span {
    min-height: 20px;
    padding: 3px 7px;
    border: 1px solid rgba(18,104,255,.34);
    border-radius: 5px;
    background: rgba(18,104,255,.19);
    color: #9fc9ff;
    font-size: 11px;
    font-weight: 760;
}
.driver-platforms span:nth-child(2n) {
    border-color: rgba(143,92,255,.38);
    background: rgba(143,92,255,.16);
    color: #c8b8ff;
}
.driver-platforms.compact { margin-top: 0; }
.driver-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(148,178,210,.13);
}
.driver-stats-row div {
    min-width: 0;
    padding: 0 7px;
    border-right: 1px solid rgba(148,178,210,.12);
}
.driver-stats-row div:first-child { padding-left: 0; }
.driver-stats-row div:last-child { padding-right: 0; border-right: 0; }
.driver-stats-row span {
    display: block;
    color: #9fb2c8;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.driver-stats-row strong {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
}
.driver-performance {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.driver-sparkline {
    width: 100%;
    height: auto;
    aspect-ratio: 700 / 64;
    display: block;
    overflow: visible;
}
.driver-sparkline .driver-spark-grid {
    fill: none;
    stroke: rgba(148,178,210,.1);
    stroke-width: 1;
}
.driver-sparkline .driver-spark-vgrid {
    fill: none;
    stroke: rgba(148,178,210,.08);
    stroke-width: 1;
}
.driver-sparkline polyline {
    fill: none;
    stroke: #20e0ce;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.driver-sparkline circle {
    fill: #09213a;
    stroke: #20e0ce;
    stroke-width: 2;
}
.driver-performance .vehicle-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}
.driver-performance .vehicle-days span {
    display: block;
    text-align: center;
}
.driver-performance .vehicle-days b {
    color: #f0f7ff;
    font-weight: 780;
}
.driver-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 7px;
    border-top: 1px solid rgba(148,178,210,.13);
    color: #d8e8f8;
    font-size: 11px;
}
.driver-doc-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.driver-doc-row .asset-icon {
    width: 17px;
    height: 17px;
    color: #8ff2c9;
}
.driver-doc-row span.warn { color: #ffb23f; }
.driver-doc-row span.warn .asset-icon {
    color: #ffb23f;
}
.driver-card-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}
.driver-card-actions > a { justify-self: end; }
.driver-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #24a4ff;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
}
.driver-profile-link .asset-icon {
    width: 16px;
    height: 16px;
}
.driver-icon-action,
.driver-more {
    width: 38px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(148,178,210,.2);
    border-radius: 6px;
    background: rgba(3,16,29,.46);
    color: #dcecff;
    font-size: 11px;
    font-weight: 850;
}
.driver-icon-action .asset-icon,
.driver-more .asset-icon {
    width: 19px;
    height: 19px;
}
.driver-icon-action.whatsapp { color: #18d6a0; border-color: rgba(24,214,160,.22); }
.driver-more { min-width: 34px; color: #fff; }
.driver-menu {
    position: relative;
    justify-self: end;
}
.driver-menu summary {
    list-style: none;
    cursor: pointer;
}
.driver-menu summary::-webkit-details-marker {
    display: none;
}
.driver-menu-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 40;
    min-width: 164px;
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(148,178,210,.26);
    border-radius: 8px;
    background: rgba(4,18,31,.98);
    box-shadow: 0 18px 42px rgba(0,0,0,.42);
}
.driver-menu-panel a,
.driver-menu-panel button {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #e8f4ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
}
.driver-menu-panel a:hover,
.driver-menu-panel button:hover {
    background: rgba(18,104,255,.18);
}
.driver-menu-panel button {
    color: #ff8589;
}
.driver-menu-panel form {
    margin: 0;
}
.assign-vehicle-menu {
    position: relative;
    width: max-content;
    margin-top: 5px;
}
.assign-vehicle-menu.header-assign {
    position: static;
    justify-self: end;
    align-self: start;
    margin-top: 0;
}
.assign-vehicle-menu summary {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(36,164,255,.5);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(21,183,255,.24), rgba(18,104,255,.18));
    color: #38b8ff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}
.assign-vehicle-menu summary::-webkit-details-marker {
    display: none;
}
.assign-vehicle-menu[open] summary {
    border-color: rgba(36,164,255,.78);
    background: rgba(18,104,255,.28);
    color: #eaf6ff;
}
.assign-vehicle-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    z-index: 45;
    width: min(280px, calc(100vw - 42px));
    display: grid;
    gap: 5px;
    padding: 7px;
    border: 1px solid rgba(148,178,210,.26);
    border-radius: 8px;
    background: rgba(4,18,31,.98);
    box-shadow: 0 18px 42px rgba(0,0,0,.42);
}
.header-assign .assign-vehicle-panel {
    left: auto !important;
    right: 11px !important;
    top: 47px;
    width: min(270px, calc(100% - 22px));
}
.assign-vehicle-panel form {
    margin: 0;
}
.assign-vehicle-panel button {
    width: 100%;
    min-height: 44px;
    display: grid;
    gap: 3px;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: rgba(18,104,255,.12);
    color: #eaf6ff;
    text-align: left;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}
.assign-vehicle-panel button:hover {
    background: rgba(18,104,255,.22);
}
.assign-vehicle-panel button strong {
    font-size: 12px;
    font-weight: 850;
}
.assign-vehicle-panel button span,
.assign-vehicle-empty {
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
}
.assign-vehicle-empty {
    padding: 8px 9px;
}
.driver-control-card {
    padding: 12px;
    box-shadow: none;
}
.driver-control-card .table-wrap {
    overflow: visible;
}
.driver-control-card table { min-width: 1080px; }
.driver-control-card .card-title { margin-bottom: 10px; }
.driver-control-card th,
.driver-control-card td {
    vertical-align: middle;
}
.driver-control-card tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}
.driver-control-card th:last-child,
.driver-control-card td.row-actions {
    width: 168px;
    text-align: center;
}
.driver-control-card td.row-actions {
    display: table-cell;
    vertical-align: middle;
    padding-block: 12px;
}
.driver-control-card .table-actions {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    white-space: nowrap;
}
.driver-control-card .table-actions .driver-profile-link {
    min-height: 28px;
}
.driver-control-card .table-actions .driver-more {
    flex: 0 0 38px;
}
.table-driver {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}
.table-vehicle-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.table-vehicle-cell .assign-vehicle-menu {
    margin-top: 0;
}
.table-vehicle-cell .assign-vehicle-menu summary {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 12px;
}
.table-vehicle-cell .assign-vehicle-panel {
    top: auto;
    bottom: calc(100% + 7px);
    z-index: 90;
}
.doc-checks {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    min-height: 30px;
}
.doc-checks span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(24,214,160,.18);
    color: #8ff2c9;
    font-size: 11px;
    font-weight: 950;
}
.doc-checks .asset-icon {
    width: 15px;
    height: 15px;
}
.table-menu .driver-menu-panel {
    top: auto;
    bottom: calc(100% + 8px);
    z-index: 90;
}
.doc-checks span.warn {
    background: rgba(255,170,55,.18);
    color: #ffb23f;
}
.table-more { height: 26px; min-width: 26px; }
.driver-platform-checks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(148,178,210,.22);
    border-radius: var(--radius);
}
.driver-platform-checks legend {
    padding: 0 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.driver-platform-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.driver-platform-checks input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--blue);
}
.driver-platform-checks.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}
.driver-platform-checks.compact label {
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid rgba(148,178,210,.14);
    border-radius: 9px;
    background: rgba(2,11,21,.25);
}

.movements-dashboard { max-width: 1320px; }
.movement-page-head { margin-bottom: 14px; }
.movement-page-head .actions { gap: 10px; }
.movement-page-head .button { min-width: 160px; }
.movement-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.movement-kpi {
    min-height: 112px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 10% 0%, rgba(18,104,255,.15), transparent 34%),
        rgba(6, 28, 48, .74);
    box-shadow: 0 18px 54px rgba(0,0,0,.2);
}
.movement-kpi-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid currentColor;
    font-size: 24px;
    font-weight: 950;
}
.movement-kpi small { display: block; color: var(--muted); font-size: 14px; }
.movement-kpi strong { display: block; margin: 3px 0; font-size: 28px; line-height: 1.08; }
.movement-kpi em { color: var(--muted); font-size: 12px; font-style: normal; }
.movement-kpi.income .movement-kpi-icon,
.movement-kpi.income em,
.movement-kpi.balance .movement-kpi-icon,
.movement-kpi.balance em { color: var(--green); }
.movement-kpi.expense .movement-kpi-icon,
.movement-kpi.expense em { color: #ff5f52; }
.movement-kpi.count .movement-kpi-icon,
.movement-kpi.count em { color: var(--blue-2); }
.movement-kpi.count small {
    color: var(--text);
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}
.movement-kpi.count strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}
.movement-filters {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
    box-shadow: none;
}
.movement-filter-line {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 14px;
    align-items: center;
}
.movement-segment {
    min-height: 38px;
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(3,16,29,.36);
}
.movement-segment a {
    min-width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-right: 1px solid rgba(148,178,210,.18);
    color: var(--muted);
    font-weight: 750;
}
.movement-segment a:last-child { border-right: 0; }
.movement-segment a.is-active {
    color: #fff;
    background: rgba(18,104,255,.34);
    box-shadow: inset 0 0 0 1px rgba(38,132,255,.8);
}
.movement-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}
.movement-toggle input { width: 42px; min-height: 22px; accent-color: var(--blue); }
.movement-filter-form { grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(240px, 1.35fr) auto auto; }
.movement-filter-form label { color: var(--muted); font-size: 12px; }
.movement-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
}
.movement-table-card { min-width: 0; padding: 0; overflow: hidden; }
.movement-table-card .card-title { padding: 16px 18px 10px; margin-bottom: 0; }
.movement-bulk-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(18,104,255,.55);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
}
.movement-bulk-actions a { color: #44a0ff; font-weight: 850; }
.movement-bulk-actions .danger-link { color: #ff5f52; }
.movement-table { min-width: 980px; }
.movement-table th,
.movement-table td { padding: 9px 12px; }
.movement-table tr { border-bottom: 1px solid rgba(148,178,210,.12); }
.movement-table input[type="checkbox"] {
    width: 16px;
    min-height: 16px;
    accent-color: var(--blue);
}
.movement-day-row td {
    padding: 9px 16px;
    color: #d8e8f8;
    background: rgba(18,104,255,.08);
    font-weight: 850;
}
.movement-table td strong { color: var(--text); }
.movement-type {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
}
.movement-type.income {
    color: #18d6a0;
    border: 1px solid rgba(24,214,160,.42);
    background: rgba(24,214,160,.12);
}
.movement-type.expense {
    color: #ff6b53;
    border: 1px solid rgba(255,95,82,.42);
    background: rgba(255,95,82,.12);
}
.receipt-link { color: #44a0ff; font-weight: 850; }
.receipt-missing { color: var(--muted); }
.movement-table-footer {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: var(--muted);
}
.movement-pagination {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.movement-pagination strong {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
}
.movement-table-footer label {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.movement-table-footer select { width: 72px; }
.movement-side {
    display: grid;
    align-content: start;
    gap: 10px;
}
.movement-summary-card h2,
.movement-summary-card h3 { margin: 0 0 12px; }
.movement-donut {
    width: 112px;
    height: 112px;
    margin: 8px auto 14px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(6,28,48,.98) 0 41%, transparent 42%),
        conic-gradient(var(--green) 0 var(--income-share), #ff5f52 var(--income-share) 100%);
    box-shadow: 0 0 0 1px rgba(148,178,210,.2), 0 18px 44px rgba(0,0,0,.25);
}
.movement-summary-list {
    display: grid;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148,178,210,.15);
}
.movement-summary-list div {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    align-items: center;
    gap: 8px;
}
.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}
.dot.income { background: var(--green); }
.dot.expense { background: #ff5f52; }
.movement-summary-list small,
.movement-summary-list em { color: var(--muted); font-style: normal; }
.movement-summary-list strong { font-size: 16px; }
.movement-net-box {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(148,178,210,.15);
}
.movement-net-box small { color: var(--muted); }
.movement-net-box strong { color: var(--green); font-size: 22px; }
.movement-expense-bars { display: grid; gap: 11px; }
.movement-expense-bars div {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 5px 10px;
    align-items: center;
}
.movement-expense-bars span {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    color: #d8e8f8;
}
.movement-expense-bars span strong { color: var(--text); }
.movement-expense-bars i {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148,178,210,.18);
}
.movement-expense-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff5f52, #ff7f42);
}
.movement-expense-bars em { color: var(--muted); font-size: 12px; font-style: normal; text-align: right; }
.movement-warning-card {
    border-color: rgba(255,180,55,.45);
    background:
        linear-gradient(135deg, rgba(255,170,55,.1), transparent 55%),
        rgba(6,28,48,.76);
}
.movement-warning-card strong { color: #ffc34d; }
.movement-warning-card p { color: var(--muted); }
.movement-warning-card a { color: #44a0ff; font-weight: 900; }

.app-footer {
    width: calc(100% - 44px);
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 22px;
    margin-right: 22px;
    color: var(--muted);
}
.bottom-nav { display: none; }

@media (max-width: 1080px) {
    .metrics, .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-col, .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { position: static; grid-template-columns: repeat(4, minmax(0,1fr)); }
    .vehicle-filters { grid-template-columns: 1fr; }
    .vehicle-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vehicle-view-switch { justify-self: start; }
    .fleet-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .driver-filters { grid-template-columns: 1fr; }
    .driver-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .driver-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .driver-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .driver-card-actions { grid-template-columns: 1fr; }
    .driver-card-actions > a { justify-self: start; }
    .profile-modal-body,
    .profile-doc-grid,
    .driver-modal-grid { grid-template-columns: 1fr; }
    .driver-control-card .table-wrap { overflow-x: auto; }
    .vehicle-control-card .table-wrap { overflow-x: auto; }
    .movement-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .movement-layout { grid-template-columns: 1fr; }
    .movement-filter-line { grid-template-columns: 1fr; }
    .movement-toggle { justify-self: start; }
    .movement-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sidebar, .topbar .user-menu, .period-menu { display: none; }
    .app-main { margin-left: 0; padding-bottom: 86px; }
    .topbar { width: 100%; margin-inline: 0; padding: 0 12px !important; }
    .profile-button { grid-template-columns: 38px 24px; }
    .page-shell { width: min(100% - 22px, 1320px); margin-inline: auto; }
    .app-footer { width: min(100% - 22px, 1320px); margin-inline: auto; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .metrics, .three-col, .form-grid { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .vehicle-filter-form,
    .driver-filter-form,
    .vehicle-summary-grid,
    .driver-summary-grid,
    .fleet-vehicle-grid,
    .driver-card-grid,
    .fleet-card-split,
    .fleet-vehicle-facts { grid-template-columns: 1fr; }
    .fleet-vehicle-top { grid-template-columns: 96px minmax(0, 1fr); }
    .fleet-vehicle-img { width: 96px; }
    .fleet-platforms { justify-content: flex-start; }
    .fleet-card-actions { align-items: flex-start; flex-direction: column; }
    .driver-card-top { grid-template-columns: 48px minmax(0, 1fr); }
    .assign-vehicle-menu.header-assign {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }
    .driver-platforms { justify-content: flex-start; }
    .driver-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 9px; }
    .driver-stats-row div { border-right: 0; padding: 0; }
    .driver-profile-modal {
        inset: auto 11px 11px;
        width: auto;
        max-height: calc(100vh - 22px);
        padding: 15px;
        transform: none;
    }
    .profile-modal-head {
        flex-direction: column;
    }
    .profile-driver-summary {
        grid-template-columns: 58px minmax(0, 1fr);
    }
    .vehicle-profile-summary {
        grid-template-columns: 1fr;
    }
    .vehicle-modal-image {
        width: 100%;
        max-width: 190px;
        height: auto;
        justify-self: center;
    }
    .vehicle-profile-drivers {
        grid-template-columns: 1fr;
    }
    .driver-avatar.profile-modal-avatar {
        width: 56px;
        height: 56px;
    }
    .profile-title-line h2 {
        font-size: 20px;
    }
    .profile-modal-actions {
        width: 100%;
    }
    .profile-modal-actions .button {
        flex: 1;
    }
    .profile-info-line {
        display: grid;
        gap: 3px;
    }
    .profile-info-line strong {
        text-align: left;
    }
    .driver-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .driver-modal-footer .button {
        width: 100%;
    }
    .driver-platform-checks.compact {
        grid-template-columns: 1fr;
    }
    .profile-doc-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .assign-vehicle-panel,
    .header-assign .assign-vehicle-panel {
        position: fixed;
        left: 16px !important;
        right: 16px !important;
        top: auto;
        bottom: 78px;
        width: auto;
    }
    .vehicle-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .movement-page-head .actions,
    .movement-filter-form,
    .movement-kpi-grid { grid-template-columns: 1fr; }
    .movement-page-head .actions,
    .movement-filter-line,
    .movement-filter-form { display: grid; width: 100%; }
    .movement-segment { width: 100%; overflow-x: auto; }
    .movement-segment a { min-width: 96px; }
    .movement-kpi { grid-template-columns: 44px minmax(0, 1fr); }
    .movement-kpi-icon { width: 40px; height: 40px; font-size: 20px; }
    .movement-table-footer { grid-template-columns: 1fr; }
    .movement-table-footer label { justify-self: start; }
    .side-drawer { width: 100vw; padding: 18px; }
    .bottom-nav {
        position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-auto-flow: column;
        grid-auto-columns: minmax(84px, 1fr); gap: 4px; overflow-x: auto;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line); background: rgba(4,18,31,.96);
    }
    .bottom-nav a { min-height: 58px; justify-content: center; flex-direction: column; font-size: 12px; }
}
