:root {
    --fleet-navy: #16324f;
    --fleet-blue: #287ca3;
    --fleet-sky: #e9f5fa;
    --fleet-green: #23845d;
    --fleet-border: #dce5ec;
}

.fleet-login-page { background: linear-gradient(145deg, #edf7fb 0%, #dcecf4 55%, #d3e4ed 100%); }
.fleet-login-card { border-top: 4px solid var(--fleet-blue); }
.fleet-login-card .login-logo-text small,
.fleet-sidebar-logo small { display: block; font-size: 10px; letter-spacing: .09em; opacity: .72; }
.fleet-logo-mark {
    width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 20px; background: linear-gradient(145deg, var(--fleet-blue), var(--fleet-navy));
    box-shadow: 0 5px 12px rgba(22, 50, 79, .2);
}
.fleet-logo-mark--small { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; flex: 0 0 auto; }
.fleet-sidebar-logo { color: inherit; text-decoration: none; gap: 10px; }
.fleet-sidebar-phase { margin: auto 16px 18px; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: rgba(255,255,255,.76); font-size: 11px; }
.fleet-sidebar-phase span { display: block; color: #75c5df; font-weight: 700; letter-spacing: .08em; margin-bottom: 3px; }
.fleet-header-right { gap: 18px; }
.fleet-user-summary { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.fleet-user-summary strong { font-size: 13px; }
.fleet-user-summary span { font-size: 11px; color: #748494; }
.fleet-office-selector { display: flex; align-items: center; gap: 8px; }
.fleet-office-selector label { font-size: 11px; color: #6d7d8a; font-weight: 600; }
.fleet-office-selector select { min-width: 145px; border: 1px solid #cbd8e2; border-radius: 5px; background: #fff; padding: 7px 28px 7px 9px; color: #304250; }
.fleet-main { max-width: 1440px; width: 100%; }
.fleet-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.fleet-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; margin-bottom: 20px; border-radius: 10px; color: #fff; background: linear-gradient(125deg, var(--fleet-navy), #245d7d); box-shadow: 0 8px 24px rgba(22, 50, 79, .14); }
.fleet-welcome h2 { font-size: 23px; margin: 3px 0 6px; }
.fleet-welcome p { color: rgba(255,255,255,.76); }
.fleet-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.fleet-role-badge { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fleet-role-badge--small { padding: 4px 9px; color: #245d7d; background: #e8f4f8; border-color: #cbe3ed; }
.fleet-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.fleet-summary-card { background: #fff; border: 1px solid var(--fleet-border); border-radius: 9px; padding: 18px 20px; box-shadow: 0 3px 12px rgba(40, 62, 82, .04); }
.fleet-summary-card > span { display: block; font-size: 12px; color: #738390; font-weight: 600; }
.fleet-summary-card strong { display: block; color: var(--fleet-navy); font-size: 25px; margin: 8px 0 6px; }
.fleet-summary-card small { display: block; color: #8795a1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-progress-card .card-body { padding: 22px; }
.fleet-progress-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; list-style: none; }
.fleet-progress-list li { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--fleet-border); border-radius: 8px; background: #f9fbfc; }
.fleet-progress-list li > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #dbe5eb; color: #526875; font-weight: 700; flex: 0 0 auto; }
.fleet-progress-list strong, .fleet-progress-list small { display: block; }
.fleet-progress-list small { color: #7b8993; margin-top: 4px; line-height: 1.45; }
.fleet-progress-list .is-complete > span { background: #dff3ea; color: var(--fleet-green); }
.fleet-progress-list .is-current { border-color: #93c8dc; background: var(--fleet-sky); }
.fleet-progress-list .is-current > span { background: var(--fleet-blue); color: #fff; }

.fleet-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.fleet-page-actions p { color: #637480; line-height: 1.6; }
.fleet-detail-actions,.fleet-row-actions { display: flex; align-items: center; gap: 8px; }
.fleet-detail-actions form,.fleet-row-actions form { margin: 0; }
.fleet-table-wrap { overflow-x: auto; padding: 0; }
.data-table { width: 100%; border-collapse: collapse; color: #2d424f; font-size: 13px; }
.data-table th,.data-table td { padding: 11px 13px; border-bottom: 1px solid #e4ebef; text-align: left; vertical-align: top; }
.data-table th { background: #f5f8fa; color: #50636f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child td,.data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfdfe; }
.fleet-account-table, .fleet-audit-table { min-width: 820px; }
.fleet-account-table th, .fleet-account-table td, .fleet-audit-table th, .fleet-audit-table td { padding: 12px 14px; vertical-align: middle; }
.fleet-cell-sub { display: block; color: #84919b; font-size: 11px; margin-top: 3px; }
.fleet-status { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; }
.fleet-status.is-active { color: #1e7753; background: #e3f4ec; }
.fleet-status.is-inactive { color: #6f7880; background: #edf0f2; }
.fleet-empty { color: #778691; text-align: center; padding: 32px !important; }

.fleet-account-form { display: grid; gap: 16px; }
.fleet-account-form .card { margin: 0; }
.fleet-account-form .card-body { padding: 20px; }
.fleet-role-field { max-width: 420px; }
.fleet-help { display: block; color: #7b8994; font-size: 11px; line-height: 1.5; margin-top: 5px; }
.fleet-checkbox-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: #435662; }
.fleet-office-scope { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e6ecef; transition: opacity .15s; }
.fleet-office-scope.is-disabled { opacity: .45; }
.fleet-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 12px; margin-top: 10px; }
.fleet-check-grid label { display: flex; align-items: center; gap: 7px; border: 1px solid #dce5ea; border-radius: 6px; padding: 9px 10px; background: #fbfcfd; }
.fleet-permission-help { margin: 0 0 15px; }
.fleet-permission-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.fleet-permission-group { min-width: 0; border: 1px solid #dfe7ec; border-radius: 8px; padding: 12px; }
.fleet-permission-group legend { padding: 0 6px; color: var(--fleet-navy); font-size: 13px; font-weight: 700; }
.fleet-permission-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #edf1f3; }
.fleet-permission-row:last-child { border-bottom: 0; }
.fleet-permission-row span { min-width: 0; }
.fleet-permission-row strong, .fleet-permission-row small { display: block; }
.fleet-permission-row strong { font-size: 12px; }
.fleet-permission-row small { margin-top: 2px; color: #88959e; font-size: 10px; overflow-wrap: anywhere; }
.fleet-permission-row select { max-width: 155px; border: 1px solid #ccd8df; border-radius: 5px; padding: 6px 7px; background: #fff; font-size: 11px; }
.fleet-form-actions { position: sticky; bottom: 0; z-index: 4; padding: 12px 16px; border: 1px solid var(--fleet-border); background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-radius: 8px; justify-content: flex-end; }
.fleet-form-errors ul { margin: 7px 0 0 20px; }

.fleet-filter-card { margin-bottom: 16px; }
.fleet-filter-card .card-body { padding: 18px; }
.fleet-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 12px; align-items: end; }
.fleet-filter-actions { display: flex; gap: 7px; padding-bottom: 1px; }
.fleet-vehicle-table { min-width: 980px; }
.fleet-vehicle-table th,.fleet-vehicle-table td { padding: 12px 13px; vertical-align: middle; }
.fleet-plate { white-space: nowrap; font-weight: 700; letter-spacing: .04em; }
.fleet-vehicle-status { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; }
.fleet-vehicle-status.is-available { color: #176b49; background: #dcf3e8; }
.fleet-vehicle-status.is-rented { color: #a34914; background: #fff0df; }
.fleet-vehicle-status.is-maintenance { color: #1d6085; background: #e2f0f8; }
.fleet-vehicle-status.is-other { color: #606d76; background: #edf0f2; }
.fleet-form-grid { display: grid; gap: 13px 16px; }
.fleet-form-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.fleet-form-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.fleet-form-span-2 { grid-column: span 2; }
.fleet-plate-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.2fr; gap: 13px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6ecef; }
.fleet-back-link { color: var(--fleet-blue); font-size: 12px; text-decoration: none; }
.fleet-detail-title { color: var(--fleet-navy); font-size: 21px; margin-top: 7px; }
.fleet-detail-title span { color: #657886; font-size: 15px; margin-left: 10px; }
.fleet-vehicle-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.fleet-vehicle-summary>div { padding: 15px 17px; border: 1px solid var(--fleet-border); border-radius: 8px; background: #fff; }
.fleet-vehicle-summary span { display: block; color: #7b8993; font-size: 11px; margin-bottom: 7px; }
.fleet-vehicle-summary strong { color: var(--fleet-navy); font-size: 13px; }
.fleet-detail-tabs { display: flex; gap: 4px; margin: 0 0 16px; padding: 0 4px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--fleet-border); scrollbar-width: thin; }
.fleet-detail-tab { flex: 0 0 auto; position: relative; padding: 12px 15px 11px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: #5d707c; background: transparent; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.fleet-detail-tab:hover,.fleet-detail-tab:focus-visible { color: var(--fleet-blue); background: #eef7fa; }
.fleet-detail-tab.is-active { margin-bottom: -1px; border-color: var(--fleet-border); color: var(--fleet-navy); background: #fff; box-shadow: inset 0 3px 0 var(--fleet-blue); }
.fleet-detail-section { margin-bottom: 16px; }
.fleet-detail-section .card-body { padding: 18px; }
.fleet-tab-placeholder { min-height: 180px; display: grid; place-content: center; gap: 8px; padding: 30px; color: #627681; text-align: center; }
.fleet-tab-placeholder strong { color: var(--fleet-navy); font-size: 16px; }
.fleet-tab-placeholder p { max-width: 640px; margin: 0; line-height: 1.7; }
.fleet-cert-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fleet-cert-toolbar p { margin: 7px 0 0; color: #617780; font-size: 12px; }
.fleet-cert-access { flex-shrink: 0; padding: 5px 10px; border-radius: 20px; background: #edf6f8; color: #28697b; font-size: 12px; }
.fleet-cert-scroll { overflow-x: auto; padding: 18px; background: #f3f8fa; }
.fleet-cert-paper { min-width: 1220px; width: 100%; margin: 0; padding: 22px; border: 4px double #83b8c6; background: #eaf6fa; color: #244c5e; }
.fleet-cert-paper-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.fleet-cert-paper-heading h3 { margin: 0 0 0 18px; color: #244c5e; font-size: 29px; font-weight: 500; letter-spacing: 7px; }
.fleet-cert-paper-heading>div { display: flex; gap: 18px; }
.fleet-cert-grid,.fleet-cert-person { display: grid; grid-template-columns: repeat(24,minmax(0,1fr)); }
.fleet-cert-grid { border-top: 1px solid #6b94a5; border-left: 1px solid #6b94a5; }
.fleet-cert-cell,.fleet-cert-section-label,.fleet-cert-person { grid-column: span var(--cert-span); min-width: 0; }
.fleet-cert-cell { padding: 0; border-right: 1px solid #6b94a5; border-bottom: 1px solid #6b94a5; }
.fleet-cert-field>label,.fleet-cert-label,.fleet-cert-plate-label { display: flex; align-items: center; justify-content: center; min-height: 29px; margin: 0; padding: 5px 4px; background: #d2eaf2; color: #244c5e; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; }
.fleet-cert-field>.fleet-cert-label { display: flex; }
.fleet-cert-input-line { display: flex; align-items: center; gap: 4px; min-height: 39px; padding: 4px 6px; }
.fleet-cert-input-line input,.fleet-cert-input-line select,.fleet-cert-input-line textarea { display: block; flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; padding: 5px 4px; border: 1px solid transparent; border-radius: 3px; background: rgba(255,255,255,.7); color: #173f55; font: inherit; font-size: 13px; line-height: 1.4; }
.fleet-cert-input-line input:focus,.fleet-cert-input-line select:focus,.fleet-cert-input-line textarea:focus { border-color: #2684a1; outline: 2px solid #87cadb; outline-offset: 0; background: #fff; }
.fleet-cert-input-line input[type=number] { appearance: textfield; text-align: right; }
.fleet-cert-input-line input[type=number]::-webkit-inner-spin-button,.fleet-cert-input-line input[type=number]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.fleet-cert-input-line textarea { resize: vertical; }
.fleet-cert-unit { flex-shrink: 0; color: #6e8793; font-size: 11px; }
.fleet-cert-plate { display: grid; grid-template-columns: 1.3fr .9fr .7fr 1fr; }
.fleet-cert-plate .fleet-cert-field>label { min-height: 23px; padding: 2px; background: transparent; font-size: 10px; font-weight: 400; }
.fleet-cert-plate .fleet-cert-input-line { padding: 1px 3px 4px; }
.fleet-cert-plate input { text-align: center; }
.fleet-cert-section-label { display: flex; align-items: center; justify-content: center; padding: 10px; border-right: 1px solid #6b94a5; border-bottom: 1px solid #6b94a5; background: #dceff5; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; }
.fleet-cert-check { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: #315e6f; font-size: 11px; font-weight: 400; white-space: nowrap; }
.fleet-cert-cell>.fleet-cert-check { margin: 0 7px 5px; }
.fleet-cert-check input { margin: 0; accent-color: #287e9a; }
.fleet-cert-readonly { padding: 9px; color: #355565; text-align: right; font-size: 14px; }
.fleet-cert-readonly small { color: #6e8793; }
.fleet-cert-record-help { margin: 12px 0 0; font-size: 11px; color: #587885; }
.fleet-cert-paper:disabled input,.fleet-cert-paper:disabled select,.fleet-cert-paper:disabled textarea { opacity: 1; -webkit-text-fill-color: #244c5e; background: transparent; color: #244c5e; }
.fleet-cert-savebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--fleet-border); }
.fleet-cert-savebar p { margin: 0; color: #687e89; font-size: 12px; line-height: 1.5; }
.fleet-cert-savebar>div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fleet-cert-error-summary { margin: 16px 18px 0; }
.fleet-cert-error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.fleet-cert-error-summary a { color: #a42f3a; }
.fleet-cert-field.is-invalid { background: #fff0f1; }
.fleet-cert-field.is-invalid input,.fleet-cert-field.is-invalid select,.fleet-cert-field.is-invalid textarea { border-color: #c74655; background: #fff; }
.fleet-cert-error { display: block; padding: 3px 6px 6px; color: #b12c3d; font-size: 11px; line-height: 1.4; }
.fleet-maintenance-period { margin: 17px 0; padding: 14px; border: 1px solid var(--fleet-border); border-radius: 6px; }
.fleet-maintenance-period legend { padding: 0 7px; color: var(--fleet-navy); font-size: 13px; font-weight: 700; }
.fleet-maintenance-cost-mode { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #597380; font-size: 12px; }
.fleet-maintenance-item-section>summary { margin-bottom: 12px; cursor: pointer; color: var(--fleet-navy); font-weight: 700; font-size: 13px; }
.fleet-maintenance-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fleet-maintenance-history-table { min-width: 1130px; }
.fleet-maintenance-history-table th,.fleet-maintenance-history-table td { padding: 13px 12px; }
.fleet-maintenance-history-table th { white-space: nowrap; }
.fleet-maintenance-history-table td:nth-child(2) { min-width: 240px; max-width: 350px; }
.fleet-maintenance-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.fleet-maintenance-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fleet-maintenance-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fleet-maintenance-state { display: inline-block; padding: 3px 8px; border-radius: 20px; background: #e7edf0; color: #556b78; font-size: 11px; font-weight: 700; }
.fleet-maintenance-state.is-completed { background: #e0f3e8; color: #287350; }
.fleet-maintenance-state.is-active { background: #deeff7; color: #226a8e; }
.fleet-maintenance-state.is-planned { background: #fff0da; color: #98641b; }
.fleet-maintenance-state.is-cancelled { background: #f7e5e7; color: #a34852; }
.fleet-location-history-table { min-width: 620px; table-layout: fixed; }
.fleet-location-history-table .fleet-location-date-col { width: 170px; }
.fleet-location-history-table .fleet-location-move-col { width: 38%; }
.fleet-location-history-table th,.fleet-location-history-table td { padding: 12px 15px; }
.fleet-location-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fleet-location-route { display: inline-flex; align-items: center; gap: 8px; color: #263f4e; font-weight: 600; white-space: nowrap; }
.fleet-location-arrow { color: var(--fleet-blue); font-size: 15px; line-height: 1; }
.fleet-location-reason { overflow-wrap: anywhere; line-height: 1.55; }
.fleet-reservation-history-table { min-width: 720px; table-layout: fixed; }
.fleet-reservation-history-table .fleet-reservation-number-col { width: 180px; }
.fleet-reservation-history-table .fleet-reservation-status-col { width: 120px; }
.fleet-reservation-number,.fleet-reservation-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fleet-reservation-number { color: #233e4d; font-weight: 700; letter-spacing: .02em; }
.fleet-reservation-status { display: inline-flex; align-items: center; min-width: 64px; justify-content: center; padding: 4px 9px; border-radius: 999px; background: #e8edf0; color: #53646e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fleet-reservation-status.is-provisional { background: #edf0f2; color: #68757d; }
.fleet-reservation-status.is-reservation { background: #dff3f7; color: #16718a; }
.fleet-reservation-status.is-renting { background: #fff0dc; color: #a25b14; }
.fleet-reservation-status.is-returned { background: #e1f3e9; color: #24704e; }
.fleet-reservation-status.is-cancelled { background: #fde7e7; color: #aa3f3f; }
.fleet-reservation-status.is-no_show { background: #e8ebee; color: #59646c; }
.fleet-definition-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.fleet-definition-grid>div { padding: 11px 13px; border-bottom: 1px solid #edf1f3; }
.fleet-definition-grid dt { color: #7b8993; font-size: 11px; }
.fleet-definition-grid dd { margin: 4px 0 0; color: #314550; font-weight: 600; overflow-wrap: anywhere; }
.fleet-entry-panel { margin-bottom: 16px; border: 1px solid #cfe0e8; border-radius: 8px; background: #f9fcfd; }
.fleet-entry-panel>summary { cursor: pointer; padding: 12px 15px; color: var(--fleet-navy); font-weight: 700; }
.fleet-inline-form { padding: 4px 15px 15px; }
.fleet-entry-error { margin: 0 15px 12px; }
.fleet-entry-error small { display: block; margin-top: 4px; }
.fleet-inline-form>.btn { margin-top: 13px; }
.fleet-checkbox-row { display: flex; gap: 20px; margin: 13px 0; }
.fleet-admin-label { display: inline-block; margin-left: 8px; padding: 3px 7px; color: #7c5814; background: #fff3ce; border-radius: 999px; font-size: 10px; }
.fleet-provisional-note { margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid #d99c30; background: #fff9e9; color: #695321; font-size: 12px; }

.fleet-schedule-toolbar { margin-bottom: 13px; }
.fleet-schedule-toolbar .card-body { padding: 14px 16px; }
.fleet-schedule-filter { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.fleet-schedule-filter .form-group { flex:1 1 130px; min-width:130px; margin-bottom:0; }
.fleet-accident-table { min-width:1350px; }
.fleet-lease-table { min-width:980px; }
.fleet-lease-table td { vertical-align:top; white-space:normal; }
.fleet-voucher-frame { width:100%; min-height:1120px; border:1px solid #d4e0e8; background:white; border-radius:6px; }
.fleet-accident-table td { vertical-align:top; white-space:normal; overflow-wrap:anywhere; }
.fleet-accident-table th:nth-child(2),.fleet-accident-table th:nth-child(9) { min-width:180px; }
.fleet-month-switch { display: flex; gap: 5px; align-items: center; }
.fleet-month-switch input { min-width: 150px; }
.fleet-schedule-headline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0; }
.fleet-schedule-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.fleet-schedule-legend span { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 700; }
.fleet-schedule-legend .is-provisional,.fleet-schedule-event.is-provisional { background: #8b6cb7; }
.fleet-schedule-legend .is-reservation,.fleet-schedule-event.is-reservation { background: #267fa4; }
.fleet-schedule-legend .is-renting,.fleet-schedule-event.is-renting { background: #dd782d; }
.fleet-schedule-legend .is-returned,.fleet-schedule-event.is-returned { background: #3b8d65; }
.fleet-schedule-legend .is-maintenance,.fleet-schedule-event.is-maintenance { background: #4d6577; }
.fleet-schedule-legend .is-unavailable,.fleet-schedule-event.is-unavailable { background: #c44f58; }
.fleet-schedule-legend .is-transfer,.fleet-schedule-event.is-transfer { background: #7c8790; }
.fleet-live-status { color: #71828d; font-size: 11px; }
.fleet-live-status.is-error { color: #b23b45; }
.fleet-block-entry { margin-bottom: 13px; }
.fleet-schedule-card { overflow: hidden; }
.fleet-schedule-scroll { max-height: calc(100vh - 280px); min-height: 420px; overflow: auto; }
.fleet-schedule-grid { min-width: calc(230px + var(--timeline-width)); }
.fleet-schedule-header { position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: 230px var(--timeline-width); height: 45px; border-bottom: 1px solid #cfdce4; background: #f7fafb; }
.fleet-resource-heading { position: sticky; left: 0; z-index: 10; padding: 13px 15px; border-right: 1px solid #cfdce4; background: #f1f6f8; color: var(--fleet-navy); font-size: 12px; }
.fleet-resource-heading small { color: #7e8c95; margin-left: 5px; }
.fleet-days { display: flex; }
.fleet-day { box-sizing: border-box; flex: 0 0 auto; padding: 6px 0 4px; border-right: 1px solid #dde6eb; text-align: center; color: #566976; }
.fleet-day strong,.fleet-day small { display: block; }
.fleet-day small { font-size: 9px; color: #8a969e; }
.fleet-day.is-saturday { background: #eef6fb; color: #31749a; }
.fleet-day.is-sunday { background: #fff1f1; color: #b94d55; }
.fleet-day.is-today { box-shadow: inset 0 -3px #e5a62f; }
.has-hours .fleet-schedule-header { height: 64px; }
.has-hours .fleet-day strong small { display:inline; font-size:11px; }
.fleet-hour-labels { display:flex; margin-top:8px; font-size:10px; color:#6c7b85; }
.fleet-hour-labels span { flex:1; border-left:1px solid #d5e0e6; }
.has-hours .fleet-row-timeline { background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--tick-width) - 1px),#dfe7ec calc(var(--tick-width) - 1px),#dfe7ec var(--tick-width)); }
.fleet-resource-cell.fleet-inspection-soon { background:#fff4ce; box-shadow:inset 4px 0 #deab21; }
.fleet-resource-cell.fleet-inspection-overdue { background:#ffe3e3; box-shadow:inset 4px 0 #d95353; }
.fleet-resource-cell .fleet-inspection-text { font-size:10px; font-weight:700; color:#8b3b24; }
.fleet-inspection-badge { display:inline-block; padding:4px 8px; border-radius:5px; background:#edf2f6; font-size:12px; font-weight:700; }
.fleet-inspection-badge.is-soon { background:#fff1bd; color:#795200; }
.fleet-inspection-badge.is-overdue { background:#ffe0e0; color:#9d2828; }
.fleet-schedule-row { display: grid; grid-template-columns: 230px var(--timeline-width); min-height: 54px; border-bottom: 1px solid #e7edf0; }
.fleet-resource-cell { position: sticky; left: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 7px 12px; border-right: 1px solid #d5e0e6; background: #fff; color: inherit; text-decoration: none; }
.fleet-resource-cell strong { color: var(--fleet-navy); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-resource-cell span,.fleet-resource-cell small { color: #71818c; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-row-timeline { position: relative; min-height: 54px; background: #fff; }
.fleet-row-day { position: absolute; top: 0; bottom: 0; box-sizing: border-box; border-right: 1px solid #edf1f3; pointer-events: none; }
.fleet-row-day.is-saturday { background: rgba(63,137,178,.055); }
.fleet-row-day.is-sunday { background: rgba(196,79,88,.055); }
.fleet-row-day.is-today { background: rgba(229,166,47,.09); }
.fleet-event-layer { position: absolute; inset: 0; }
.fleet-schedule-event { position: absolute; top: 12px; z-index: 2; height: 30px; min-width: 8px; padding: 0 8px; border: 0; border-radius: 5px; color: #fff; font-size: 12px; font-weight: 700; line-height: 30px; text-align: left; white-space: nowrap; overflow: visible; box-shadow: 0 2px 4px rgba(29,52,68,.14); }
.fleet-schedule-event:hover,.fleet-schedule-event:focus { z-index: 12; }
.fleet-schedule-event>span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.fleet-schedule-event.is-draggable { cursor: grab; touch-action: none; }
.fleet-schedule-event.is-dragging { z-index: 20; cursor: grabbing; opacity: .82; box-shadow: 0 7px 18px rgba(20,46,64,.3); }
.fleet-schedule-event.is-readonly { cursor: pointer; opacity: .86; }
.fleet-schedule-tooltip { display: none; position: absolute; z-index: 30; left: 4px; bottom: 37px; width: 280px; padding: 11px 13px; border-radius: 7px; background: #152c3e; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.6; white-space: normal; pointer-events: none; box-shadow: 0 6px 20px rgba(10,29,42,.28); }
.fleet-schedule-event.is-tooltip-below .fleet-schedule-tooltip { top: 37px; bottom: auto; }
.fleet-schedule-event.is-tooltip-align-right .fleet-schedule-tooltip { right: 4px; left: auto; }
.fleet-schedule-tooltip strong { display: block; color: #86cee5; }
.fleet-schedule-event:hover .fleet-schedule-tooltip,.fleet-schedule-event:focus .fleet-schedule-tooltip { display: block; }
.fleet-schedule-empty { padding: 40px; color: #778691; text-align: center; }
.fleet-modal { width: min(920px,calc(100vw - 32px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(17,40,57,.3); }
.fleet-modal::backdrop { background: rgba(15,34,47,.5); }
.fleet-modal-head,.fleet-modal-actions { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.fleet-modal-head { border-bottom: 1px solid #e1e8ec; }
.fleet-modal-head h2 { color: var(--fleet-navy); font-size: 16px; }
.fleet-modal-head button { border: 0; background: transparent; color: #71818c; font-size: 25px; cursor: pointer; }
.fleet-modal-body { padding: 18px; }
.fleet-modal .fleet-form-grid,.fleet-modal .form-group { min-width: 0; }
.fleet-modal .form-control { width: 100%; min-width: 0; }
.fleet-modal input[type="date"].form-control { width: 138px !important; min-width: 112px; flex: 1 1 138px; }
.fleet-modal .form-control--sm { width: 62px; min-width: 56px; flex: 0 0 62px; }
.fleet-modal-actions { justify-content: flex-end; gap: 8px; border-top: 1px solid #e1e8ec; }
.fleet-modal-definition { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
.fleet-modal-definition>div { padding: 10px 12px; border-bottom: 1px solid #edf1f3; }
.fleet-modal-definition dt { color: #7b8993; font-size: 10px; }
.fleet-modal-definition dd { margin: 4px 0 0; color: #334954; font-weight: 600; }
.fleet-change-preview { margin-top: 13px; padding: 9px 11px; background: #edf7fa; color: #35647a; border-radius: 6px; font-size: 11px; }
.fleet-inline-message { display: inline-block; margin-left: 10px; color: var(--fleet-green); font-size: 12px; }
.fleet-inline-message.is-error { color: #b23b45; }

.fleet-sales-heading h2 { color: var(--fleet-navy); font-size: 22px; margin: 2px 0 5px; }
.fleet-eyebrow--dark { color: var(--fleet-blue) !important; }
.fleet-sales-filter { display: grid; grid-template-columns: 170px repeat(3,minmax(150px,1fr)) auto; gap: 12px; align-items: end; }
.fleet-sales-summary .fleet-summary-card.is-positive strong,.fleet-profit.is-positive { color: #17734f; }
.fleet-sales-summary .fleet-summary-card.is-negative strong,.fleet-profit.is-negative { color: #b13d47; }
.fleet-sales-definition { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; margin: 0 0 15px; padding: 11px 14px; border: 1px solid #d7e4ea; border-radius: 8px; background: #f7fbfc; color: #637681; font-size: 11px; }
.fleet-sales-definition strong { color: var(--fleet-navy); }
.fleet-sales-definition span { padding-left: 15px; border-left: 1px solid #d7e4ea; }
.fleet-sales-table { min-width: 1500px; }
.fleet-sales-table th,.fleet-sales-table td { padding: 11px 12px; vertical-align: middle; }
.fleet-sales-table th.is-number,.fleet-sales-table td.is-number { text-align: right; white-space: nowrap; }
.fleet-sales-table td:first-child a { color: var(--fleet-navy); text-decoration: none; }
.fleet-sales-table tfoot th { border-top: 2px solid #c9d8df; background: #f3f7f9; }
.fleet-utilization { display: block; width: 72px; height: 4px; margin: 5px 0 0 auto; overflow: hidden; border-radius: 999px; background: #e4eaed; }
.fleet-utilization i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#3b91b4,#2d8b65); }
.fleet-sales-note { display: block; color: #75622f; line-height: 1.45; }

.fleet-invoice-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.fleet-invoice-action { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; overflow: hidden; border: 1px solid #cfe0e8; border-radius: 9px; background: linear-gradient(135deg,#fff,#f4fafc); color: inherit; text-decoration: none; box-shadow: 0 3px 12px rgba(40,62,82,.04); }
.fleet-invoice-action::after { content: '→'; position: absolute; right: 18px; top: 50%; color: var(--fleet-blue); font-size: 22px; transform: translateY(-50%); }
.fleet-invoice-action>span { color: var(--fleet-blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.fleet-invoice-action>strong { color: var(--fleet-navy); font-size: 15px; }
.fleet-invoice-action>small { color: #7c8c96; }
.fleet-invoice-filter { display: grid; grid-template-columns: 145px 145px 160px minmax(170px,1fr) auto; gap: 12px; align-items: end; }
.fleet-invoice-rental-filter { display: grid; grid-template-columns: minmax(170px,1.2fr) repeat(4,minmax(130px,1fr)) auto; gap: 12px; align-items: end; }
.fleet-invoice-table { min-width: 1060px; }
.fleet-invoice-table th,.fleet-invoice-table td { padding: 11px 12px; vertical-align: middle; }
.fleet-invoice-table .is-number,.fleet-invoice-items .is-number { text-align: right; white-space: nowrap; }
.fleet-invoice-pending { margin-top: 12px; padding: 10px 13px; border-left: 3px solid #d8a03c; background: #fff9e9; color: #6d5828; font-size: 11px; }
.fleet-invoice-preview .card-body { padding: 24px; }
.fleet-invoice-preview-head { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 18px; }
.fleet-invoice-preview-head>div { display: flex; flex-direction: column; min-height: 108px; padding: 16px 18px; border: 1px solid #d9e2e7; background: #fbfcfd; }
.fleet-invoice-preview-head small { color: #7c8b95; }
.fleet-invoice-preview-head strong { margin: 13px 0 7px; color: var(--fleet-navy); font-size: 17px; }
.fleet-invoice-preview-head span { color: #657580; font-size: 12px; }
.fleet-invoice-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 16px; margin-bottom: 18px; padding: 14px 18px; border: 2px solid #9fb2bd; background: #f8fbfc; }
.fleet-invoice-total span { font-weight: 700; }
.fleet-invoice-total strong { color: var(--fleet-navy); font-size: 26px; }
.fleet-invoice-total small { color: #71818c; }
.fleet-invoice-items { min-width: 860px; }
.fleet-invoice-bank { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 15px; padding: 13px 15px; border: 1px solid #dce4e8; background: #fbfcfd; font-size: 12px; }
.fleet-invoice-issue-row { display: flex; align-items: end; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.fleet-invoice-office-select { max-width: 420px; }
.fleet-free-invoice-form { display: grid; gap: 16px; }
.fleet-free-invoice-form>.card { margin: 0; }
.fleet-free-invoice-form .card-body { padding: 20px; }
.fleet-invoice-corporate-search { position: relative; max-width: 560px; margin-bottom: 18px; }
.fleet-invoice-corporate-search>div { position: relative; }
#fleet-corporate-results { position: absolute; z-index: 20; top: calc(100% + 2px); right: 0; left: 0; max-height: 230px; margin: 0; padding: 0; overflow-y: auto; border: 1px solid #c7d7df; border-radius: 6px; background: #fff; list-style: none; box-shadow: 0 8px 22px rgba(23,49,66,.14); }
#fleet-corporate-results button { width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #edf1f3; background: #fff; color: #304650; text-align: left; cursor: pointer; }
#fleet-corporate-results button:hover { background: #edf7fa; }
.fleet-invoice-party-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.fleet-invoice-party-grid fieldset { min-width: 0; padding: 16px; border: 1px solid #dce5ea; border-radius: 8px; }
.fleet-invoice-party-grid legend { padding: 0 7px; color: var(--fleet-navy); font-weight: 700; }
.fleet-radio-row { display: flex; gap: 16px; padding-top: 8px; }
.fleet-invoice-items-head { align-items: center; }
.fleet-invoice-items-head>div { margin-left: auto; color: #657681; font-size: 12px; }
.fleet-invoice-items-head strong { margin-left: 8px; color: var(--fleet-navy); font-size: 20px; }
.fleet-invoice-items-head small { display: block; text-align: right; }
.fleet-free-items { min-width: 720px; }
.fleet-free-items td { padding: 5px 10px; }
.fleet-free-items td:last-child { width: 220px; }
.fleet-free-items input.is-number { text-align: right; }
.fleet-invoice-bank-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.fleet-invoice-bank-option { display: flex; flex-direction: column; gap: 7px; padding: 13px; border: 1px solid #dce5ea; border-radius: 7px; background: #fbfcfd; }
.fleet-invoice-bank-option>span { color: var(--fleet-navy); font-weight: 700; }
.fleet-invoice-bank-option small { color: #6f7f89; line-height: 1.45; }

.fleet-master-create-card { margin-bottom: 16px; }
.fleet-master-create-form { display: grid; grid-template-columns: minmax(240px,2fr) minmax(100px,.7fr) minmax(100px,.6fr) auto auto; gap: 12px; align-items: end; }
.fleet-master-active { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; white-space: nowrap; }
.fleet-master-table { min-width: 720px; }
.fleet-master-table td { vertical-align: middle; }
.fleet-master-table tr.is-inactive { opacity: .56; background: #f3f5f6; }
.fleet-unit-input { max-width: 100px; }
.fleet-order-input { max-width: 100px; }
.fleet-maintenance-item-section { margin: 18px 0; }
.fleet-maintenance-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.fleet-maintenance-item-heading strong { display: block; color: var(--fleet-navy); }
.fleet-maintenance-item-heading small { display: block; margin-top: 3px; color: #73838d; }
.fleet-maintenance-item-scroll { max-height: 460px; overflow: auto; border: 1px solid #dce5ea; border-radius: 7px; }
.fleet-maintenance-item-table { min-width: 1040px; }
.fleet-maintenance-item-table thead th { position: sticky; top: 0; z-index: 2; }
.fleet-maintenance-item-table tbody th { min-width: 165px; color: var(--fleet-navy); background: #f8fafb; text-align: left; }
.fleet-maintenance-item-table td { min-width: 125px; padding: 6px; }
.fleet-maintenance-item-table td:last-child { min-width: 220px; }
.fleet-maintenance-item-table tr.is-selected th,.fleet-maintenance-item-table tr.is-selected td { background: #eef8f5; }
.fleet-maintenance-unit { max-width: 75px; }
.fleet-maintenance-history-items { margin: 6px 0 4px; padding: 0; list-style: none; color: #4e626f; font-size: 11px; line-height: 1.55; }
.fleet-maintenance-history-items li { display: inline; }
.fleet-maintenance-history-items li:not(:last-child)::after { content: " / "; color: #9aa8b0; }

.fleet-error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eef4f7; }
.fleet-error-card { max-width: 520px; padding: 36px; background: #fff; text-align: center; border-radius: 10px; box-shadow: 0 10px 30px rgba(22,50,79,.12); }
.fleet-error-card > span { color: #a4b3be; font-size: 48px; font-weight: 800; }
.fleet-error-card h1 { color: var(--fleet-navy); margin: 4px 0 12px; }
.fleet-error-card p { color: #667783; line-height: 1.7; margin-bottom: 22px; }

@media (max-width: 980px) {
    .fleet-header-right { gap: 8px; }
    .fleet-user-summary { display: none; }
    .fleet-summary-grid { grid-template-columns: 1fr; }
    .fleet-progress-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-form-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-vehicle-summary,.fleet-definition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-schedule-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-sales-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-invoice-filter,.fleet-invoice-rental-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fleet-invoice-party-grid { grid-template-columns: 1fr; }
    .fleet-master-create-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .fleet-office-selector label { display: none; }
    .fleet-office-selector select { min-width: 110px; max-width: 135px; }
    .fleet-header .btn-logout { padding: 6px 8px; }
    .fleet-welcome { align-items: flex-start; padding: 20px; }
    .fleet-welcome h2 { font-size: 19px; }
    .fleet-summary-grid, .fleet-progress-list, .fleet-permission-groups, .fleet-check-grid { grid-template-columns: 1fr; }
    .fleet-page-actions { align-items: flex-start; flex-direction: column; }
    .fleet-permission-row { align-items: flex-start; flex-direction: column; }
    .fleet-permission-row select { width: 100%; max-width: none; }
    .fleet-filter-grid,.fleet-form-grid--3,.fleet-form-grid--4,.fleet-plate-grid,.fleet-vehicle-summary,.fleet-definition-grid { grid-template-columns: 1fr; }
    .fleet-form-span-2 { grid-column: auto; }
    .fleet-schedule-filter { grid-template-columns: 1fr; }
    .fleet-sales-filter { grid-template-columns: 1fr; }
    .fleet-invoice-actions,.fleet-invoice-filter,.fleet-invoice-rental-filter,.fleet-invoice-bank-grid { grid-template-columns: 1fr; }
    .fleet-invoice-preview-head { grid-template-columns: 1fr; }
    .fleet-invoice-total,.fleet-invoice-issue-row { align-items: stretch; flex-direction: column; }
    .fleet-schedule-headline { align-items: flex-start; flex-direction: column; }
    .fleet-modal-definition { grid-template-columns: 1fr; }
    .fleet-master-create-form { grid-template-columns: 1fr; }
}
