:root {
    --ink: #0d2516;
    --muted: #46604f;
    --line: #d8e4db;
    --surface: #ffffff;
    --canvas: #eef3ee;
    --navy: #02681e;
    --navy-deep: #00491e;
    --blue: #919f02;
    --green: #02681e;
    --amber: #ffc600;
    --brand-900: #00491e;
    --brand-800: #015923;
    --brand-700: #02681e;
    --brand-500: #919f02;
    --accent: #ffc600;
    --shadow: 0 16px 40px rgba(0, 73, 30, .1);
}

/* Vehicle history and maintenance */
.vehicle-history-page {
    display: grid;
    gap: 18px;
}

.vehicle-history-header,
.vehicle-history-selector,
.vehicle-history-summary,
.vehicle-history-panel,
.vehicle-history-empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 57, 33, .06);
}

.vehicle-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #f7fbf7, #edf5ef);
}

.vehicle-history-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-700);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vehicle-history-header h1 {
    margin: 0 0 4px;
    color: var(--brand-900);
    font-size: 1.4rem;
    font-weight: 800;
}

.vehicle-history-header p,
.vehicle-history-selector p,
.vehicle-history-panel__heading p {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
}

.vehicle-history-header__plate {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: var(--brand-800);
    background: #fff;
    border: 1px solid #d6e5d9;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}

.vehicle-history-selector {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
}

.vehicle-history-selector h2,
.vehicle-history-panel__heading h2 {
    margin: 0 0 3px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 800;
}

.vehicle-history-selector__form {
    display: flex;
    gap: 8px;
    width: min(100%, 540px);
}

.vehicle-history-selector__form .form-select {
    min-width: 0;
}

.vehicle-history-selector__form .btn {
    white-space: nowrap;
}

.vehicle-history-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(190px, 1fr)) auto;
    overflow: hidden;
}

.vehicle-history-summary > article,
.vehicle-history-summary__action {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid #e4ebe5;
}

.vehicle-history-summary > article small,
.vehicle-history-summary > article strong,
.vehicle-history-summary > article span {
    display: block;
}

.vehicle-history-summary > article small {
    margin-bottom: 5px;
    color: #66746a;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.vehicle-history-summary > article strong {
    color: var(--brand-900);
    font-size: 1.05rem;
    font-weight: 800;
}

.vehicle-history-summary > article span {
    margin-top: 5px;
    color: var(--muted);
    font-size: .67rem;
    line-height: 1.4;
}

.vehicle-history-summary__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vehicle-history-summary__icon {
    display: grid !important;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    color: #fff !important;
    background: var(--brand-700);
    border-radius: 10px;
    font-size: 1.35rem !important;
}

.vehicle-history-summary__service {
    background: #fbfdf9;
}

.vehicle-history-summary__action {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border-right: 0;
    text-align: center;
}

.vehicle-history-summary__action small {
    max-width: 180px;
    color: var(--muted);
    font-size: .61rem;
    line-height: 1.35;
}

.vehicle-history-panel {
    overflow: hidden;
}

.vehicle-history-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fbfdfb;
    border-bottom: 1px solid var(--line);
}

.vehicle-history-panel__heading > span {
    padding: 5px 9px;
    color: var(--brand-800);
    background: #edf5ef;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
}

.vehicle-history-table,
.vehicle-maintenance-table {
    font-size: .72rem;
}

.vehicle-history-table thead th,
.vehicle-maintenance-table thead th {
    padding: 11px 14px;
    color: #536158;
    background: #f5f8f5;
    border-bottom-color: var(--line);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vehicle-history-table tbody td,
.vehicle-maintenance-table tbody td {
    padding: 13px 14px;
    border-color: #edf1ee;
    vertical-align: top;
}

.vehicle-history-table td strong,
.vehicle-history-table td small {
    display: block;
}

.vehicle-history-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .61rem;
}

.vehicle-history-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    color: #8a5b00;
    background: #fff8e7;
    border-radius: 999px;
    font-size: .61rem;
    font-weight: 750;
    white-space: nowrap;
}

.vehicle-history-details-cell {
    min-width: 122px;
}

.vehicle-history-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
    color: var(--brand-800);
    background: #edf6ef;
    border: 1px solid #cee3d2;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.vehicle-history-details-toggle:hover,
.vehicle-history-details-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.vehicle-history-details-toggle__expanded,
.vehicle-history-details-toggle[aria-expanded="true"] .vehicle-history-details-toggle__collapsed {
    display: none;
}

.vehicle-history-details-toggle[aria-expanded="true"] .vehicle-history-details-toggle__expanded {
    display: inline;
}

.vehicle-history-details-row > td {
    padding: 0 12px 12px !important;
    background: #fff;
    border-top: 0;
}

.vehicle-history-details-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f6f9f6;
    border: 1px solid #dce7de;
    border-radius: 10px;
}

.vehicle-history-details-panel__destination {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #edf6ef;
    border: 1px solid #cee3d2;
    border-radius: 9px;
}

.vehicle-history-details-panel__destination span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-800);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vehicle-history-details-panel__destination strong {
    color: var(--ink);
    font-size: .72rem;
    text-align: right;
}

.vehicle-history-details-panel__item {
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #e3eae4;
    border-radius: 9px;
}

.vehicle-history-details-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.vehicle-history-details-panel__heading > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-800);
    font-size: .68rem;
    font-weight: 850;
}

.vehicle-history-details-panel__recorder {
    color: var(--muted);
    font-size: .59rem;
}

.vehicle-history-details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
}

.vehicle-history-details-list > div {
    min-width: 0;
    padding: 8px 9px;
    background: #f8faf8;
    border-radius: 7px;
}

.vehicle-history-details-list__remarks {
    grid-column: 1 / -1;
}

.vehicle-history-details-list dt {
    margin-bottom: 3px;
    color: #748078;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vehicle-history-details-list dd {
    margin: 0;
    color: var(--ink);
    font-size: .68rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.vehicle-history-details-panel__pending {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8a5b00 !important;
}

.vehicle-history-pagination {
    padding: 14px 18px 4px;
    border-top: 1px solid var(--line);
}

.vehicle-history-empty {
    padding: 62px 24px;
    text-align: center;
}

.vehicle-history-empty > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    color: #fff;
    background: var(--brand-700);
    border-radius: 50%;
    font-size: 1.7rem;
}

.vehicle-history-empty h2 {
    margin: 0 0 5px;
    color: var(--brand-900);
    font-size: 1.05rem;
    font-weight: 800;
}

.vehicle-history-empty p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: .73rem;
}

.vehicle-maintenance-modal {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(13, 37, 22, .22);
}

.vehicle-maintenance-modal .modal-header {
    align-items: flex-start;
    background: #f4f8f4;
    border-bottom-color: var(--line);
}

.vehicle-maintenance-warning {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 11px 12px;
    color: #35543e;
    background: #edf6ef;
    border: 1px solid #d4e8d8;
    border-radius: 9px;
}

.vehicle-maintenance-warning i {
    font-size: 1.25rem;
}

.vehicle-maintenance-warning p {
    margin: 0;
    font-size: .72rem;
    line-height: 1.5;
}

.vehicle-maintenance-snapshot {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px;
    background: #f8faf8;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.vehicle-maintenance-snapshot > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.vehicle-maintenance-snapshot dt,
.vehicle-maintenance-snapshot dd {
    margin: 0;
    font-size: .68rem;
}

.vehicle-maintenance-snapshot dt {
    color: var(--muted);
}

.vehicle-maintenance-snapshot dd {
    color: var(--ink);
    font-weight: 800;
    text-align: right;
}

@media (max-width: 1199.98px) {
    .vehicle-history-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-history-summary__action {
        grid-column: 1 / -1;
        border-top: 1px solid #e4ebe5;
        flex-direction: row;
    }
}

@media (max-width: 767.98px) {
    .vehicle-history-header,
    .vehicle-history-selector {
        align-items: stretch;
        flex-direction: column;
        padding: 17px;
    }

    .vehicle-history-header__plate {
        align-self: flex-start;
    }

    .vehicle-history-selector__form {
        width: 100%;
    }

    .vehicle-history-summary {
        grid-template-columns: 1fr;
    }

    .vehicle-history-summary > article,
    .vehicle-history-summary__action {
        border-right: 0;
        border-bottom: 1px solid #e4ebe5;
    }

    .vehicle-history-summary__action {
        grid-column: auto;
        border-bottom: 0;
        flex-direction: column;
    }

    .vehicle-history-table,
    .vehicle-history-table tbody,
    .vehicle-history-table tr,
    .vehicle-history-table td,
    .vehicle-maintenance-table,
    .vehicle-maintenance-table tbody,
    .vehicle-maintenance-table tr,
    .vehicle-maintenance-table td {
        display: block;
        width: 100%;
    }

    .vehicle-history-table thead,
    .vehicle-maintenance-table thead {
        display: none;
    }

    .vehicle-history-table tbody,
    .vehicle-maintenance-table tbody {
        display: grid;
        gap: 10px;
        padding: 12px;
    }

    .vehicle-history-table tbody tr,
    .vehicle-maintenance-table tbody tr {
        padding: 11px 12px;
        border: 1px solid var(--line);
        border-radius: 9px;
    }

    .vehicle-history-table tbody td,
    .vehicle-maintenance-table tbody td {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0 !important;
        text-align: left !important;
        border: 0;
    }

    .vehicle-history-table tbody td::before,
    .vehicle-maintenance-table tbody td::before {
        color: #748078;
        content: attr(data-label);
        font-size: .57rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .vehicle-history-table tbody tr.vehicle-history-details-row {
        padding: 0;
        border: 0;
    }

    .vehicle-history-table tbody tr.vehicle-history-details-row > td {
        display: block;
        padding: 0 !important;
    }

    .vehicle-history-table tbody tr.vehicle-history-details-row > td::before {
        display: none;
    }

    .vehicle-history-details-panel {
        grid-template-columns: 1fr;
    }

    .vehicle-history-details-panel__destination {
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicle-history-details-panel__destination strong {
        text-align: left;
    }

    .vehicle-history-details-list {
        grid-template-columns: 1fr;
    }

    .vehicle-history-details-list__remarks {
        grid-column: auto;
    }
}

@media (max-width: 479.98px) {
    .vehicle-history-selector__form {
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 8%, rgba(145, 159, 2, .18) 0, rgba(145, 159, 2, 0) 32%),
        radial-gradient(circle at 90% 10%, rgba(2, 104, 30, .14) 0, rgba(2, 104, 30, 0) 30%),
        linear-gradient(180deg, #f9fbf7 0%, var(--canvas) 100%);
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    height: 72px;
    color: var(--brand-900);
    background: rgba(241, 245, 239, .94);
    border-bottom: 1px solid rgba(0, 73, 30, .12);
    box-shadow: 0 10px 28px rgba(0, 73, 30, .1);
    backdrop-filter: blur(12px);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-inline: 24px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-900);
    text-decoration: none;
}

.app-brand__mark,
.login-brand-mark,
.login-card__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #102018;
    background: linear-gradient(145deg, var(--brand-500), #b4c228);
    box-shadow: 0 8px 20px rgba(145, 159, 2, .3);
}

.app-brand strong,
.app-brand small {
    display: block;
}

.app-brand strong {
    font-size: 1rem;
    letter-spacing: .01em;
}

.app-brand small {
    color: var(--muted);
    font-size: .72rem;
}

.app-menu-toggle {
    color: var(--brand-900);
    font-size: 1.5rem;
}

.app-account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-account__copy {
    text-align: right;
}

.app-account__copy strong,
.app-account__copy span {
    display: block;
}

.app-account__copy strong {
    font-size: .88rem;
}

.app-account__copy span {
    color: var(--muted);
    font-size: .7rem;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 112px);
}

.app-sidebar {
    flex: 0 0 252px;
    width: 252px;
    color: #f5f9f2;
    background: linear-gradient(180deg, #003b18 0%, var(--brand-900) 52%, #012f12 100%);
    border-right: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 6px 0 24px rgba(0, 45, 18, .18);
}

.app-sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
    padding: 28px 18px 20px;
}

.app-sidebar__navigation {
    min-height: 0;
}

.app-nav-label {
    margin: 0 10px 9px;
    color: rgba(245, 249, 242, .62);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.app-nav {
    display: grid;
    gap: 5px;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    color: #f5f9f2;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    transition: .18s ease;
}

.app-nav a i {
    font-size: 1.25rem;
}

.app-nav a:hover {
    color: #fff;
    background: rgba(255, 198, 0, .2);
    transform: translateX(3px);
}

.app-nav a.active {
    color: #102018;
    background: linear-gradient(135deg, var(--brand-500), #b4c228);
    box-shadow: 0 8px 20px rgba(145, 159, 2, .3);
}

.app-sidebar__footer {
    margin-top: auto;
    padding: 18px 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.app-sidebar__footer > span,
.app-sidebar__footer > strong {
    display: block;
}

.app-sidebar__footer > span {
    color: rgba(245, 249, 242, .65);
    font-size: .72rem;
}

.app-sidebar__footer > strong {
    margin-top: 2px;
    font-size: .86rem;
}

.app-role-pill {
    padding: 4px 7px;
    border-radius: 999px;
    color: #102018;
    background: rgba(184, 194, 40, .92);
    font-size: .64rem;
    font-weight: 750;
}

.app-main {
    min-width: 0;
    flex: 1;
}

.app-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 30px;
}

.app-alert {
    border: 0;
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 68px;
    padding: 13px 30px 13px 282px;
    color: var(--muted);
    background: rgba(248, 251, 247, .92);
    border-top: 1px solid var(--line);
    font-size: .72rem;
}

.app-footer__identity strong,
.app-footer__identity span {
    display: block;
}

.app-footer__identity strong {
    margin-bottom: 3px;
    color: var(--brand-900);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.app-footer__identity span {
    line-height: 1.45;
}

.app-footer__system {
    flex: 0 0 auto;
    color: var(--brand-700);
    font-weight: 750;
    letter-spacing: .025em;
}

.app-footer__system b {
    padding-inline: 7px;
    color: var(--brand-500);
    font-weight: 650;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 205px;
    padding: 38px 40px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 198, 0, .3), transparent 26%),
        radial-gradient(circle at 70% 110%, rgba(145, 159, 2, .34), transparent 36%),
        linear-gradient(130deg, #003b18, var(--brand-900) 65%, var(--brand-700));
    box-shadow: var(--shadow);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: 9%;
    bottom: -85px;
    width: 260px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transform: rotate(-10deg);
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero h1 {
    max-width: 730px;
    margin: 7px 0 9px;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 760;
    letter-spacing: -.035em;
}

.dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: #dcebdd;
}

.dashboard-eyebrow {
    color: var(--brand-700);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dashboard-hero .dashboard-eyebrow {
    color: #dce55b;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.dashboard-stats--dispatcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 25px rgba(0, 73, 30, .06);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    padding: 20px;
    border-radius: 16px;
}

.metric-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.35rem;
}

.metric-card__icon--navy { color: var(--brand-900); background: #e3eee6; }
.metric-card__icon--amber { color: #735d00; background: #fff3bf; }
.metric-card__icon--blue { color: #596300; background: #eef1cb; }
.metric-card__icon--green { color: var(--brand-700); background: #dff0e4; }

.metric-card span,
.metric-card strong {
    display: block;
}

.metric-card div > span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 650;
}

.metric-card strong {
    margin-top: 3px;
    font-size: 1.7rem;
    line-height: 1;
}

.content-card {
    overflow: hidden;
    border-radius: 18px;
}

.content-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 24px 18px;
}

.content-card__header h2 {
    margin: 3px 0 0;
    font-size: 1.1rem;
    font-weight: 750;
}

.vehicle-board__header {
    align-items: flex-start;
    flex-wrap: wrap;
}

.vehicle-board__actions,
.vehicle-board__totals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.vehicle-total {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}

.vehicle-total--available {
    color: var(--brand-700);
    background: #dff0e4;
}

.vehicle-total--unavailable {
    color: #a1271b;
    background: #fee4e2;
}

.vehicle-availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    align-content: start;
    gap: 8px;
    max-height: clamp(320px, 52vh, 520px);
    padding: 0 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(0, 73, 30, .28) transparent;
    scrollbar-width: thin;
}

.vehicle-availability-scroll:focus-visible {
    outline: 2px solid rgba(0, 73, 30, .32);
    outline-offset: -2px;
}

.vehicle-availability-scroll::-webkit-scrollbar {
    width: 8px;
}

.vehicle-availability-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(0, 73, 30, .28);
    background-clip: padding-box;
}

.vehicle-availability-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.vehicle-availability-card {
    align-self: start;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.vehicle-availability-card:hover {
    transform: translateY(-2px);
}

.vehicle-availability-card--available {
    background: linear-gradient(145deg, #fbfefb, #edf7ef);
    border-color: #bddbc5;
    box-shadow: 0 8px 20px rgba(2, 104, 30, .08);
}

.vehicle-availability-card--unavailable {
    background: linear-gradient(145deg, #fffafa, #fff0ee);
    border-color: #f3aaa3;
    box-shadow: 0 8px 20px rgba(180, 35, 24, .1);
}

.vehicle-availability-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.vehicle-availability-card__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--brand-700);
    background: #dff0e4;
    font-size: .9rem;
}

.vehicle-availability-card--unavailable .vehicle-availability-card__icon {
    color: #a1271b;
    background: #fee4e2;
}

.vehicle-availability-label {
    padding: 4px 6px;
    border-radius: 999px;
    font-size: .52rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vehicle-availability-label--available {
    color: var(--brand-700);
    background: #dff0e4;
}

.vehicle-availability-label--unavailable {
    color: #fff;
    background: #b42318;
    box-shadow: 0 5px 12px rgba(180, 35, 24, .2);
}

.vehicle-availability-card__identity {
    margin-top: 8px;
}

.vehicle-availability-card__identity strong,
.vehicle-availability-card__identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-availability-card__identity strong {
    color: var(--ink);
    font-size: .82rem;
}

.vehicle-availability-card__identity span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .62rem;
}

.vehicle-availability-card__assignment,
.vehicle-availability-card__ready {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(180, 35, 24, .13);
}

.vehicle-availability-card__assignment > a,
.vehicle-availability-card__assignment > span,
.vehicle-availability-card__assignment > small {
    display: block;
}

.vehicle-availability-card__assignment > a {
    color: #7d2119;
    font-size: .66rem;
    font-weight: 800;
}

.vehicle-availability-card__requester {
    color: #7d2119;
    font-size: .62rem;
    line-height: 1.35;
}

.vehicle-availability-card__requester b {
    font-weight: 800;
}

.vehicle-availability-card__assignment > small {
    margin-top: 2px;
    color: #9a4a43;
    font-size: .55rem;
}

.vehicle-availability-card__ready {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-700);
    border-top-color: rgba(2, 104, 30, .13);
    font-size: .62rem;
    font-weight: 750;
}

.dashboard-table thead th {
    padding: 11px 24px;
    color: var(--brand-700);
    background: #edf5ef;
    border-color: var(--line);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-table tbody td {
    padding: 15px 24px;
    border-color: #e5eee7;
    color: #385544;
    font-size: .82rem;
}

.dashboard-table tbody td:first-child small,
.dashboard-ticket-link {
    display: block;
}

.dashboard-ticket-link {
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}

.dashboard-ticket-link:hover {
    color: var(--brand-700);
}

.dashboard-table small {
    margin-top: 2px;
    color: #708579;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #4d5b70;
    background: #edf1f5;
    font-size: .67rem;
    font-weight: 750;
    white-space: nowrap;
}

.status-pill--for-approval { color: #685800; background: #fff3bf; }
.status-pill--reapproval { color: #9a3412; background: #ffedd5; }
.status-pill--approved { color: var(--brand-700); background: #dff0e4; }
.status-pill--dispatched { color: #596300; background: #eef1cb; }
.status-pill--completed { color: var(--brand-900); background: #dcebdd; }
.status-pill--rejected, .status-pill--cancelled { color: #a23e3e; background: #fbeaea; }
.status-pill--returned { color: #9a6318; background: #fff0d9; }

.empty-state {
    display: grid;
    place-items: center;
    padding: 50px 24px;
    text-align: center;
}

.empty-state > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    border-radius: 18px;
    color: var(--brand-700);
    background: #e3eee6;
    font-size: 1.7rem;
}

.empty-state h3 {
    margin: 0;
    font-size: 1rem;
}

.empty-state p {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: .82rem;
}

.role-list {
    display: grid;
    gap: 8px;
    padding: 0 24px;
}

.role-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5eee7;
}

.role-list__item > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: var(--brand-700);
    background: #dff0e4;
}

.role-list__item strong,
.role-list__item small {
    display: block;
}

.role-list__item strong {
    font-size: .85rem;
}

.role-list__item small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .7rem;
}

.completion-summary {
    margin: 22px 24px 24px;
    padding: 19px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
}

.completion-summary span,
.completion-summary strong,
.completion-summary small {
    display: block;
}

.completion-summary span {
    color: #d8e8da;
    font-size: .72rem;
}

.completion-summary strong {
    margin: 5px 0 1px;
    font-size: 1.7rem;
}

.completion-summary small {
    color: #c6ddca;
}

.login-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(145, 159, 2, .16), transparent 28%),
        linear-gradient(160deg, #f8faf6 0%, #e8f0e9 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr);
    min-height: 100vh;
}

.login-story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(36px, 5vw, 72px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 198, 0, .22), transparent 24%),
        radial-gradient(circle at 9% 94%, rgba(145, 159, 2, .42), transparent 32%),
        linear-gradient(145deg, #003516 0%, var(--brand-900) 53%, #076c29 100%);
}

.login-story::before,
.login-story::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.login-story::before {
    top: -28%;
    right: -22%;
    width: 640px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.login-story::after {
    right: -12%;
    bottom: -26%;
    width: 520px;
    aspect-ratio: 1;
    border: 110px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
}

.login-story__content,
.login-story__foot {
    position: relative;
    z-index: 1;
}

.login-story__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.login-story__watermark {
    position: absolute;
    right: -4%;
    bottom: -14%;
    z-index: -1;
    width: min(48%, 430px);
    opacity: .065;
    pointer-events: none;
    transform: rotate(8deg);
}

.login-story__watermark img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1) brightness(2.2);
}

.login-story__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-story__logo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 68px;
    height: 86px;
    padding: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 19px;
    box-shadow: 0 18px 38px rgba(0, 27, 11, .28);
}

.login-story__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-story__brand-copy small,
.login-story__brand-copy strong {
    display: block;
}

.login-story__brand-copy small {
    margin-bottom: 4px;
    color: #dcebdc;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.login-story__brand-copy strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.login-story__copy {
    max-width: 760px;
    margin: auto 0;
    padding: clamp(46px, 7vh, 82px) 0 34px;
}

.login-kicker {
    color: var(--brand-500);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-story .login-kicker {
    color: #e3ed67;
}

.login-story h1 {
    max-width: 780px;
    margin: 18px 0 22px;
    font-size: clamp(2.7rem, 5vw, 4.85rem);
    font-weight: 760;
    letter-spacing: -.06em;
    line-height: 1.01;
}

.login-story h1 span {
    color: var(--accent);
}

.login-story p {
    max-width: 620px;
    margin: 0;
    color: #d8e8da;
    font-size: clamp(.98rem, 1.35vw, 1.15rem);
    line-height: 1.75;
}

.login-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.login-flow span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #eef7ef;
    background: rgba(255, 255, 255, .075);
    font-size: .78rem;
    font-weight: 650;
}

.login-story__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    color: #cfe3d1;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .76rem;
    font-weight: 650;
}

.login-story__secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f0f7f1;
}

.login-story__secure i {
    color: var(--accent);
    font-size: 1.05rem;
}

.login-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    padding: clamp(28px, 4.4vw, 68px);
    background:
        radial-gradient(circle at 92% 8%, rgba(145, 159, 2, .14), transparent 24%),
        linear-gradient(160deg, rgba(251, 253, 249, .98), rgba(237, 244, 237, .96));
}

.login-card {
    width: min(100%, 470px);
    padding: clamp(30px, 4vw, 48px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 73, 30, .1);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 55, 23, .13);
    backdrop-filter: blur(16px);
}

.login-card__brand {
    display: none;
}

.login-card h2 {
    margin: 8px 0 10px;
    color: var(--brand-900);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 780;
    letter-spacing: -.045em;
}

.login-card__intro p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
}

.login-form {
    margin-top: 30px;
}

.login-card .form-label {
    color: var(--brand-900);
    font-size: .76rem;
    font-weight: 780;
}

.login-input {
    position: relative;
}

.login-input > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: var(--brand-700);
    font-size: 1.15rem;
    transform: translateY(-50%);
}

.login-input .form-control {
    min-height: 55px;
    padding-left: 43px;
    border-color: rgba(0, 73, 30, .2);
    border-radius: 14px;
    background: #fbfdfb;
    font-size: .9rem;
}

.login-input .form-control::placeholder {
    color: #91a097;
}

.login-input .form-control:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 .2rem rgba(145, 159, 2, .18);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--brand-700);
    background: transparent;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
}

.login-submit {
    min-height: 55px;
    border: 0;
    border-radius: 14px;
    font-size: .92rem;
    font-weight: 750;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
    box-shadow: 0 14px 28px rgba(2, 104, 30, .24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-submit:hover {
    background: linear-gradient(135deg, var(--brand-900), #003114);
    box-shadow: 0 17px 32px rgba(0, 73, 30, .28);
    transform: translateY(-1px);
}

.desktop-app-install {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    color: var(--brand-900);
    background: linear-gradient(135deg, rgba(238, 245, 240, .96), rgba(255, 255, 255, .98));
    border: 1px solid rgba(8, 117, 45, .18);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 73, 30, .07);
}

.desktop-app-install[hidden] {
    display: none;
}

.desktop-app-install > img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 55, 23, .18);
}

.desktop-app-install__content {
    min-width: 0;
}

.desktop-app-install__content > strong {
    display: block;
    font-size: .82rem;
}

.desktop-app-install__content > p {
    margin: 3px 0 10px;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.45;
}

.desktop-app-install__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
    border: 0;
    border-radius: 10px;
}

.desktop-app-install__button:hover,
.desktop-app-install__button:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-900), #003114);
}

.desktop-app-install__button:disabled {
    color: rgba(255, 255, 255, .88);
    cursor: wait;
    opacity: .7;
}

.desktop-app-install__steps {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.5;
}

.desktop-app-install__steps[hidden] {
    display: none;
}

.desktop-app-install__steps li + li {
    margin-top: 4px;
}

.login-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 24px;
    padding-top: 20px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 73, 30, .1);
}

.login-help i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--brand-700);
    font-size: 1rem;
}

.btn-primary,
.btn-success {
    color: #f8fffc;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
    border-color: var(--brand-700);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-900), #003114);
    border-color: var(--brand-900);
}

.btn-outline-primary {
    color: var(--brand-700);
    background: rgba(236, 242, 235, .84);
    border-color: var(--brand-700);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.btn-outline-secondary {
    color: #657000;
    background: rgba(245, 247, 226, .84);
    border-color: var(--brand-500);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #102018;
    background: var(--brand-500);
    border-color: var(--brand-500);
}

.app-header .btn-outline-light {
    color: var(--brand-900);
    border-color: rgba(0, 73, 30, .32);
}

.app-header .btn-outline-light:hover,
.app-header .btn-outline-light:focus {
    color: #fff;
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 .2rem rgba(145, 159, 2, .16);
}

.form-check-input:checked {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
}

.text-primary {
    color: var(--brand-700) !important;
}

.bg-primary {
    background-color: var(--brand-700) !important;
}

.page-link {
    color: var(--brand-700);
}

.page-link:hover,
.page-link:focus {
    color: var(--brand-900);
    background-color: #edf5ef;
}

@media (max-width: 1199.98px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        width: 280px;
    }

    .app-sidebar .offcanvas-body {
        min-height: calc(100vh - 64px);
    }

    .app-content {
        padding: 22px 18px;
    }

    .app-footer {
        padding-inline: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-story {
        min-height: 470px;
        padding: 40px;
    }

    .login-story__copy {
        padding: 58px 0 34px;
    }

    .login-story h1 {
        max-width: 700px;
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .login-panel {
        padding-block: 54px;
    }
}

@media (max-width: 575.98px) {
    .app-header {
        height: 64px;
    }

    .app-header__inner {
        padding-inline: 15px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 24px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .app-footer {
        align-items: center;
        flex-direction: column;
        gap: 10px;
        padding-block: 17px;
        text-align: center;
    }

    .app-footer__system {
        white-space: nowrap;
    }

    .login-story {
        min-height: 116px;
        padding: 20px 22px;
    }

    .login-story__copy,
    .login-flow,
    .login-story__foot,
    .login-story__watermark {
        display: none;
    }

    .login-story__logo {
        width: 52px;
        height: 66px;
        padding: 5px;
        border-radius: 15px;
    }

    .login-story__brand {
        gap: 12px;
    }

    .login-story__brand-copy small {
        font-size: .62rem;
    }

    .login-story__brand-copy strong {
        font-size: .92rem;
    }

    .login-panel {
        align-items: start;
        padding: 26px 16px 34px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 22px;
        box-shadow: 0 18px 44px rgba(0, 55, 23, .12);
    }

    .login-card h2 {
        font-size: 1.75rem;
    }

    .login-form {
        margin-top: 24px;
    }
}

/* Simple web interface ----------------------------------------------------- */
:root {
    --ink: #17351f;
    --muted: #64766a;
    --line: #dfe8e1;
    --surface: #ffffff;
    --canvas: #f4f7f4;
    --brand-900: #06451f;
    --brand-700: #08752d;
    --brand-500: #94a51a;
    --accent: #f4c522;
    --shadow: 0 8px 24px rgba(20, 67, 35, .07);
}

body:not(.login-page) {
    color: var(--ink);
    background: var(--canvas);
    font-size: .9rem;
    line-height: 1.55;
}

.app-header {
    height: 68px;
    color: var(--ink);
    background: rgba(255, 255, 255, .97);
    border-bottom-color: var(--line);
    box-shadow: none;
}

.app-header__inner {
    padding-inline: 22px;
}

.app-brand {
    gap: 10px;
}

.app-brand__mark {
    width: 38px;
    height: 44px;
    padding: 4px;
    overflow: hidden;
    color: var(--brand-900);
    background: #fff;
    border: 1px solid #dce6de;
    border-radius: 9px;
    box-shadow: none;
}

.app-brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-brand strong {
    color: var(--brand-900);
    font-size: .94rem;
    font-weight: 800;
}

.app-brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: .68rem;
}

.app-account {
    gap: 14px;
}

.app-account__copy strong {
    color: var(--ink);
    font-size: .82rem;
}

.app-account__copy span {
    color: var(--muted);
    font-size: .65rem;
}

.app-shell {
    min-height: calc(100vh - 132px);
}

.app-sidebar {
    flex-basis: 238px;
    width: 238px;
    background: #06451f !important;
    border-right: 0;
    box-shadow: none;
}

.app-sidebar .offcanvas-body {
    min-height: calc(100vh - 68px);
    padding: 22px 14px 18px;
}

.app-nav-label {
    margin: 0 10px 7px;
    color: rgba(255, 255, 255, .55);
    font-size: .61rem;
    letter-spacing: .12em;
}

.app-nav {
    gap: 3px;
}

.app-nav a {
    gap: 11px;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .84);
    font-size: .82rem;
    font-weight: 650;
    transition: color .15s ease, background-color .15s ease;
}

.app-nav a i {
    width: 20px;
    color: rgba(255, 255, 255, .68);
    font-size: 1.15rem;
    text-align: center;
}

.app-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: none;
}

.app-nav a.active {
    color: var(--brand-900);
    background: #fff;
    box-shadow: none;
}

.app-nav a.active i {
    color: #758400;
}

.app-nav__badge-slot {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.app-nav__badge-slot:empty {
    display: none;
}

.app-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    color: #fff;
    background: #c92f3b;
    box-shadow: 0 4px 12px rgba(91, 12, 20, .28);
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
}

.app-nav a.active .app-nav__badge {
    color: #fff;
    background: #c92f3b;
    border-color: #fff;
    box-shadow: 0 3px 10px rgba(91, 12, 20, .24);
}

.app-sidebar__footer {
    padding: 15px 10px 2px;
    border-top-color: rgba(255, 255, 255, .12);
}

.app-role-pill {
    padding: 3px 7px;
    color: #eff7ef;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: .59rem;
}

.app-content {
    max-width: 1440px;
    padding: 26px 28px 34px;
}

.app-footer {
    min-height: 64px;
    padding: 12px 28px 12px 266px;
    background: #fff;
    font-size: .68rem;
}

.app-footer__identity strong {
    font-size: .76rem;
}

.page-breadcrumb {
    min-height: 34px;
    color: var(--muted);
}

.page-breadcrumb .breadcrumb-title {
    color: var(--brand-900);
    border-right-color: var(--line);
    font-size: .9rem;
    font-weight: 800;
}

.page-breadcrumb .breadcrumb {
    font-size: .74rem;
}

.page-breadcrumb a {
    color: var(--brand-700);
    text-decoration: none;
}

.card,
.content-card,
.metric-card,
.modal-content,
.trip-ticket-card,
.trip-ticket-form-card,
.trip-ticket-detail-card,
.admin-record-card,
.admin-record-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px !important;
    box-shadow: none;
}

.card-header,
.modal-header {
    padding: 17px 20px;
    background: transparent;
    border-bottom-color: var(--line);
}

.card-header h5,
.modal-title {
    color: var(--brand-900);
    font-weight: 750;
}

.card-body {
    padding: 20px;
}

.card-footer,
.modal-footer {
    background: #fbfcfb;
    border-top-color: var(--line);
}

.dashboard-stats {
    gap: 12px;
    margin-top: 0;
}

.dashboard-stats--dispatcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    min-height: 88px;
    gap: 12px;
    padding: 15px 16px;
}

.metric-card__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 1.15rem;
}

.metric-card div > span {
    font-size: .7rem;
}

.metric-card strong {
    font-size: 1.45rem;
}

.content-card {
    overflow: hidden;
}

.content-card__header {
    gap: 14px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid #edf1ee;
}

.content-card__header h2 {
    font-size: 1rem;
}

.dashboard-eyebrow {
    color: #758400;
    font-size: .61rem;
    letter-spacing: .11em;
}

.vehicle-board,
.content-card.mt-4 {
    margin-top: 16px !important;
}

.vehicle-availability-grid {
    gap: 8px;
    padding: 14px 16px 16px;
}

.vehicle-availability-card {
    border-radius: 8px;
    transition: border-color .15s ease, background-color .15s ease;
}

.vehicle-availability-card:hover {
    transform: none;
}

.vehicle-availability-card--available {
    background: #fbfdfb;
    border-color: #cfe1d3;
    box-shadow: none;
}

.vehicle-availability-card--unavailable {
    background: #fffafa;
    border-color: #efb6b1;
    box-shadow: none;
}

.vehicle-total,
.vehicle-availability-label,
.status-pill,
.badge {
    box-shadow: none;
}

.dashboard-table thead th,
.table thead th {
    padding: 10px 16px;
    color: #66766b;
    background: #f7f9f7;
    border-color: var(--line);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.dashboard-table tbody td,
.table tbody td {
    padding: 12px 16px;
    color: #3f5546;
    border-color: #edf1ee;
    font-size: .79rem;
}

.table tbody tr:hover > * {
    background-color: #fbfcfb;
}

.trip-ticket-toolbar {
    padding: 10px 12px !important;
    background: #f8faf8 !important;
    border-color: var(--line) !important;
    border-radius: 9px !important;
}

.trip-ticket-panel,
.trip-ticket-empty {
    border-color: var(--line) !important;
    border-radius: 9px !important;
}

.trip-ticket-section-title {
    color: #66766b !important;
}

.trip-ticket-section-title::before {
    width: 6px !important;
    height: 6px !important;
    background: var(--brand-500) !important;
}

.trip-ticket-form-actions {
    background: #fbfcfb !important;
    border-top-color: var(--line) !important;
}

.travel-order-choice {
    margin-top: 20px;
    padding: 16px;
    background: #f8faf8;
    border: 1px solid #dce7de;
    border-radius: 10px;
}

.travel-order-choice__header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.travel-order-choice__icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--brand-700);
    background: #e8f3ea;
    border-radius: 9px;
    font-size: 1.1rem;
}

.travel-order-choice__header h6 {
    margin: 0 0 2px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 800;
}

.travel-order-choice__header p {
    margin: 0;
    color: var(--muted);
    font-size: .7rem;
}

.travel-order-choice__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.travel-order-choice__option {
    position: relative;
}

.travel-order-choice__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.travel-order-choice__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    margin: 0;
    padding: 13px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dbe4dd;
    border-radius: 9px;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.travel-order-choice__label:hover {
    border-color: #a9c6ae;
}

.travel-order-choice__check {
    display: grid;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    place-items: center;
    color: transparent;
    background: #fff;
    border: 1px solid #b9c8bc;
    border-radius: 50%;
    font-size: .85rem;
}

.travel-order-choice__label strong,
.travel-order-choice__label small {
    display: block;
}

.travel-order-choice__label strong {
    color: var(--ink);
    font-size: .76rem;
    font-weight: 800;
}

.travel-order-choice__label small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .65rem;
    line-height: 1.4;
}

.travel-order-choice__input:checked + .travel-order-choice__label {
    background: #f0f8f2;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 2px rgba(58, 122, 72, .09);
}

.travel-order-choice__input:checked + .travel-order-choice__label .travel-order-choice__check {
    color: #fff;
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.travel-order-choice__input:focus-visible + .travel-order-choice__label {
    outline: 3px solid rgba(13, 110, 253, .2);
    outline-offset: 2px;
}

.travel-order-choice__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #647168;
    font-size: .65rem;
}

.travel-order-choice__note i {
    color: var(--brand-600);
    font-size: .9rem;
}

.travel-order-choice__fields {
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe4dd;
    border-radius: 9px;
}

.travel-order-choice__fields[hidden] {
    display: none !important;
}

.travel-order-choice__fields-header {
    margin-bottom: 12px;
}

.travel-order-choice__fields-header strong,
.travel-order-choice__fields-header small {
    display: block;
}

.travel-order-choice__fields-header strong {
    color: var(--ink);
    font-size: .75rem;
    font-weight: 800;
}

.travel-order-choice__fields-header small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .65rem;
}

html.dark-theme .travel-order-choice,
html.dark-theme .travel-order-choice__label,
html.dark-theme .travel-order-choice__fields {
    background: rgba(255, 255, 255, .035);
    border-color: rgba(255, 255, 255, .1);
}

html.dark-theme .travel-order-choice__input:checked + .travel-order-choice__label {
    background: rgba(72, 150, 88, .13);
    border-color: #68a874;
}

@media (max-width: 575.98px) {
    .travel-order-choice__options {
        grid-template-columns: 1fr;
    }
}

.btn {
    min-height: 36px;
    padding: .42rem .78rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: none !important;
}

.btn-sm {
    min-height: 31px;
    padding: .31rem .62rem;
    border-radius: 7px;
    font-size: .7rem;
}

.btn-primary,
.btn-success {
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background: var(--brand-900);
    border-color: var(--brand-900);
}

.btn-outline-primary,
.btn-outline-secondary {
    color: var(--brand-700);
    background: #fff;
    border-color: #b8cbbd;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--brand-900);
    background: #eef4ef;
    border-color: #91ad99;
}

.app-header .btn-outline-light {
    color: var(--brand-700);
    background: #fff;
    border-color: #c8d6cc;
}

.app-header .btn-outline-light:hover,
.app-header .btn-outline-light:focus {
    color: var(--brand-900);
    background: #eef4ef;
    border-color: #9db7a4;
}

.form-label {
    margin-bottom: .35rem;
    color: #405448;
    font-size: .76rem;
    font-weight: 700;
}

.form-control,
.form-select,
.input-group-text,
.select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
    color: var(--ink);
    background-color: #fff;
    border-color: #d5dfd7 !important;
    border-radius: 8px;
    font-size: .82rem;
}

.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child),
.input-group > .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child),
.input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #8faa96 !important;
    box-shadow: 0 0 0 .18rem rgba(8, 117, 45, .1) !important;
}

.resource-override-confirmation {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.resource-override-confirmation__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(2px);
}

.resource-override-confirmation__dialog {
    position: relative;
    width: min(100%, 540px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid rgba(220, 38, 38, 0.24);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.resource-override-confirmation__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 1.4rem 1.4rem 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #b91c1c;
    background: #fee2e2;
    font-size: 1.75rem;
}

.resource-override-confirmation__content {
    padding: 1rem 1.4rem 1.25rem;
}

.resource-override-confirmation__eyebrow {
    margin-bottom: 0.2rem;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-override-confirmation__title {
    margin: 0 0 0.5rem;
    color: #7f1d1d;
    font-size: 1.35rem;
    font-weight: 750;
}

.resource-override-confirmation__message,
.resource-override-confirmation__notice {
    color: #475569;
    font-size: 0.9rem;
}

.resource-override-confirmation__details {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    color: #334155;
    background: #fff7f7;
    font-size: 0.875rem;
}

.resource-override-confirmation__details hr {
    margin: 0.7rem 0;
    border-color: #fecaca;
}

.resource-override-confirmation__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 1rem 1.4rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

html.dark-theme .resource-override-confirmation__dialog {
    border-color: rgba(248, 113, 113, 0.32);
    background: #172033;
}

html.dark-theme .resource-override-confirmation__title {
    color: #fecaca;
}

html.dark-theme .resource-override-confirmation__message,
html.dark-theme .resource-override-confirmation__notice,
html.dark-theme .resource-override-confirmation__details {
    color: #dbe4f0;
}

html.dark-theme .resource-override-confirmation__details {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.18);
}

html.dark-theme .resource-override-confirmation__actions {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 575.98px) {
    .resource-override-confirmation__actions {
        flex-direction: column-reverse;
    }

    .resource-override-confirmation__actions .btn {
        width: 100%;
    }
}

textarea.form-control {
    min-height: auto;
}

.alert {
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: none;
    font-size: .8rem;
}

.pagination {
    gap: 3px;
}

.page-link {
    border-color: var(--line);
    border-radius: 7px !important;
    font-size: .76rem;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        width: 278px;
        height: 100vh;
        height: 100dvh;
    }

    .app-sidebar .offcanvas-header {
        flex: 0 0 auto;
    }

    .app-sidebar .offcanvas-body {
        min-height: 0;
        overflow: hidden;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    .app-sidebar__navigation {
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 4px;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .app-sidebar__footer {
        flex: 0 0 auto;
        margin-top: 10px;
        padding-top: 12px;
        background: #06451f;
    }

    .app-content {
        padding: 20px 16px 28px;
    }

    .app-footer {
        padding-inline: 16px;
    }
}

@media (max-width: 575.98px) {
    .app-header {
        height: 62px;
    }

    .app-header__inner {
        padding-inline: 13px;
    }

    .app-brand__mark {
        width: 34px;
        height: 39px;
    }

    .app-brand strong {
        font-size: .85rem;
    }

    .app-brand small {
        font-size: .62rem;
    }

    .app-content {
        padding: 16px 12px 24px;
    }

    .dashboard-stats {
        gap: 9px;
    }

    .dashboard-stats--dispatcher {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 76px;
        padding: 12px 14px;
    }

    .content-card__header,
    .card-header,
    .card-body {
        padding: 15px;
    }

    .content-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicle-board__actions {
        width: 100%;
    }

    .dashboard-table thead th,
    .table thead th,
    .dashboard-table tbody td,
    .table tbody td {
        padding-inline: 12px;
    }

    .trip-ticket-table-wrap {
        overflow: visible !important;
    }

    .trip-ticket-table {
        display: block;
        width: 100%;
        table-layout: auto !important;
    }

    .trip-ticket-table thead {
        display: none;
    }

    .trip-ticket-table tbody {
        display: grid;
        gap: 10px;
    }

    .trip-ticket-table tbody tr {
        display: block;
        padding: 11px 13px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 9px;
    }

    .trip-ticket-table tbody td,
    .trip-ticket-table tbody td:last-child {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        width: 100% !important;
        padding: 6px 0 !important;
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: left !important;
        border: 0;
    }

    .trip-ticket-table tbody td::before {
        content: attr(data-label);
        color: #7a897f;
        font-size: .61rem;
        font-weight: 800;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .trip-ticket-table tbody td[data-label="Action"] {
        display: block;
        padding-top: 10px !important;
        border-top: 1px solid #edf1ee;
    }

    .trip-ticket-table tbody td[data-label="Action"]::before {
        display: none;
    }

    .trip-ticket-table tbody td[data-label="Action"] .btn {
        width: 100%;
    }
}

/* Admin user management --------------------------------------------------- */
.admin-user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-user-stats article {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.admin-user-stats article > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--brand-700);
    background: #e6f1e8;
    border-radius: 9px;
    font-size: 1.1rem;
}

.admin-user-stats small,
.admin-user-stats strong {
    display: block;
}

.admin-user-stats small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
}

.admin-user-stats strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1;
}

.admin-temporary-password {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    color: #fff;
    background: var(--brand-900);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
}

.admin-temporary-password__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #263000;
    background: var(--accent);
    border-radius: 10px;
    font-size: 1.25rem;
}

.admin-temporary-password__content {
    width: min(100%, 620px);
}

.admin-temporary-password .dashboard-eyebrow {
    color: #dce75d;
}

.admin-temporary-password h5 {
    margin: 3px 0 4px;
    font-size: 1rem;
}

.admin-temporary-password p {
    margin: 0 0 12px;
    color: #d8e6da;
    font-size: .75rem;
}

.admin-temporary-password .form-control {
    color: #17351f;
    background: #fff;
    font-family: Consolas, monospace;
    font-weight: 800;
    letter-spacing: .05em;
}

.admin-user-toolbar {
    padding: 12px;
    background: #f8faf8;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.admin-user-table {
    min-width: 940px;
    margin-bottom: 0;
}

.admin-user-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.admin-user-identity > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--brand-700);
    background: #e6f1e8;
    border-radius: 9px;
    font-size: .78rem;
    font-weight: 850;
}

.admin-user-identity strong,
.admin-user-identity small,
.admin-user-cell-primary,
.admin-user-cell-secondary {
    display: block;
}

.admin-user-identity strong,
.admin-user-cell-primary {
    color: var(--ink);
    font-size: .76rem;
    font-weight: 750;
}

.admin-user-identity small,
.admin-user-cell-secondary {
    margin-top: 1px;
    color: var(--muted);
    font-size: .65rem;
}

.admin-user-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 220px;
}

.admin-user-roles span {
    padding: 3px 6px;
    color: #536000;
    background: #f0f3d7;
    border: 1px solid #dfe5b1;
    border-radius: 999px;
    font-size: .57rem;
    font-weight: 750;
}

.admin-user-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
}

.admin-user-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.admin-user-status--active {
    color: var(--brand-700);
    background: #e2f2e6;
}

.admin-user-status--inactive {
    color: #7b8580;
    background: #edf0ee;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.admin-user-actions form {
    margin: 0;
}

.admin-user-current {
    color: var(--muted);
    font-size: .61rem;
    font-weight: 700;
}

.admin-user-form-card {
    max-width: 1100px;
}

.admin-user-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #69796e;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-user-section-title::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--brand-500);
    border-radius: 50%;
}

.admin-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.admin-permission-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.admin-permission-option:hover {
    background: #f7faf7;
    border-color: #bfd0c3;
}

.admin-permission-option--admin {
    background: #fbfceb;
    border-color: #e2e6bd;
}

.admin-permission-option .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.admin-permission-option strong,
.admin-permission-option small {
    display: block;
}

.admin-permission-option strong {
    color: var(--ink);
    font-size: .77rem;
}

.admin-permission-option small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .65rem;
    line-height: 1.45;
}

.admin-user-form-actions {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-password-field .btn {
    min-width: 44px;
}

.admin-password-reset-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    color: var(--brand-700);
    background: #e6f1e8;
    border-radius: 10px;
    font-size: 1.25rem;
}

.admin-password-reset-card h6 {
    margin-bottom: 5px;
    color: var(--brand-900);
    font-weight: 800;
}

.admin-password-reset-card p {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.55;
}

.admin-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    color: #536057;
    background: #f6f8f6;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.admin-security-note > i {
    color: var(--brand-700);
    font-size: 1.1rem;
}

.admin-security-note strong,
.admin-security-note span {
    display: block;
}

.admin-security-note strong {
    color: var(--ink);
    font-size: .7rem;
}

.admin-security-note span {
    margin-top: 2px;
    font-size: .63rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .admin-user-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .admin-user-stats {
        gap: 8px;
    }

    .admin-user-stats article {
        padding: 11px;
    }

    .admin-user-stats article > span {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .admin-user-stats small {
        font-size: .58rem;
    }

    .admin-user-stats strong {
        font-size: 1.12rem;
    }

    .admin-temporary-password {
        flex-direction: column;
        padding: 15px;
    }

    .admin-permission-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-table-wrap {
        overflow: visible;
    }

    .admin-user-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .admin-user-table thead {
        display: none;
    }

    .admin-user-table tbody {
        display: grid;
        gap: 10px;
    }

    .admin-user-table tbody tr {
        display: block;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 9px;
    }

    .admin-user-table tbody td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        padding: 6px 0 !important;
        text-align: left !important;
        border: 0;
    }

    .admin-user-table tbody td::before {
        content: attr(data-label);
        color: #7a897f;
        font-size: .58rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .admin-user-table tbody td[data-label="Actions"] {
        display: block;
        margin-top: 4px;
        padding-top: 10px !important;
        border-top: 1px solid #edf1ee;
    }

    .admin-user-table tbody td[data-label="Actions"]::before {
        display: none;
    }

    .admin-user-actions {
        justify-content: stretch;
    }

    .admin-user-actions .btn,
    .admin-user-actions form {
        flex: 1;
    }

    .admin-user-actions form .btn {
        width: 100%;
    }
}

/* Focused approver workspace */
.approver-dashboard {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 57, 33, .06);
}

.approver-dashboard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #f7fbf7 0%, #eef6ef 100%);
    border-bottom: 1px solid var(--line);
}

.approver-dashboard__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.approver-dashboard__icon {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--brand-700);
    border-radius: 11px;
    box-shadow: 0 6px 16px rgba(34, 104, 55, .18);
    font-size: 1.45rem;
}

.approver-dashboard__header h1,
.approver-dashboard__header h2 {
    margin: 1px 0 3px;
    color: var(--brand-900);
    font-size: 1.28rem;
    font-weight: 800;
}

.approver-dashboard__header p {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
}

.approver-dashboard__count {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #42604b;
    background: #fff;
    border: 1px solid #d8e7da;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.approver-dashboard__count strong {
    margin-right: 3px;
    color: var(--brand-800);
    font-size: .85rem;
}

.approver-dashboard__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.web-push-control {
    position: relative;
    max-width: 260px;
}

.web-push-control__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    color: var(--brand-800);
    background: #fff;
    border: 1px solid #cfe0d2;
    border-radius: 999px;
    font: inherit;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, background-color .18s ease;
}

.web-push-control__button:hover,
.web-push-control__button:focus-visible {
    color: var(--brand-900);
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(47, 126, 67, .12);
    outline: 0;
}

.web-push-control[data-web-push-state="enabled"] .web-push-control__button {
    color: #fff;
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.web-push-control[data-web-push-state="blocked"] .web-push-control__button,
.web-push-control[data-web-push-state="error"] .web-push-control__button {
    color: #8a4b00;
    background: #fffaf0;
    border-color: #edcf99;
}

.web-push-control__button:disabled {
    color: #78817a;
    background: #f3f5f3;
    border-color: #dde3de;
    cursor: not-allowed;
    box-shadow: none;
}

.web-push-control__icon {
    flex: 0 0 auto;
    font-size: .92rem;
}

.web-push-control__message {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    width: min(280px, calc(100vw - 40px));
    padding: 9px 11px;
    color: #465149;
    background: #fff;
    border: 1px solid #d9e2db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(27, 50, 32, .12);
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.45;
}

.approver-dashboard__list {
    display: grid;
}

.approval-request {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-bottom: 1px solid #edf1ee;
    transition: background-color .18s ease;
}

.approval-request:last-child {
    border-bottom: 0;
}

.approval-request:hover {
    background: #fbfdfb;
}

.approval-request__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 8px;
    color: var(--brand-800);
    background: #f3f8f4;
    border: 1px solid #dce9de;
    border-radius: 10px;
    line-height: 1;
    text-align: center;
}

.approval-request__date span,
.approval-request__date small {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.approval-request__date strong {
    margin: 4px 0;
    font-size: 1.45rem;
}

.approval-request__date i {
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.approval-request__details {
    min-width: 0;
}

.approval-request__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.approval-request__title-row > div {
    min-width: 0;
}

.approval-request__ticket {
    color: var(--brand-700);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.approval-request h3 {
    overflow: hidden;
    margin: 2px 0 0;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approval-request__meta,
.approval-request__assignment {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 8px;
    color: #647168;
    font-size: .67rem;
}

.approval-request__meta span,
.approval-request__assignment span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.approval-request__meta i,
.approval-request__assignment i {
    color: var(--brand-600);
    font-size: .9rem;
}

.approval-request__travel-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    padding: 5px 8px;
    color: #245a32;
    background: #edf7ef;
    border: 1px solid #cfe5d3;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
}

.approval-request__travel-order i {
    font-size: .85rem;
}

.approval-request__purpose {
    margin: 9px 0 0;
    color: #56635a;
    font-size: .69rem;
    line-height: 1.45;
}

.approval-request__purpose strong {
    color: var(--ink);
}

.approval-request__assignment {
    padding-top: 8px;
    border-top: 1px dashed #e0e7e2;
}

.approval-request__action .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.approver-dashboard__pagination {
    padding: 14px 24px 4px;
    border-top: 1px solid var(--line);
}

.approver-dashboard__empty {
    padding: 64px 24px;
    text-align: center;
}

.approver-dashboard__empty > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    color: #fff;
    background: var(--brand-700);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(34, 104, 55, .18);
    font-size: 1.75rem;
}

.approver-dashboard__empty h3 {
    margin-bottom: 5px;
    color: var(--brand-900);
    font-size: 1.05rem;
    font-weight: 800;
}

.approver-dashboard__empty p {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
}

@media (max-width: 991.98px) {
    .approval-request {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .approval-request__action {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .approver-dashboard__header {
        align-items: flex-start;
        padding: 17px;
    }

    .approver-dashboard__icon {
        display: none;
    }

    .approver-dashboard__header p {
        display: none;
    }

    .approver-dashboard__count {
        padding: 6px 9px;
        font-size: 0;
    }

    .approver-dashboard__actions {
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 7px;
    }

    .web-push-control__button {
        min-height: 31px;
        padding: 6px 9px;
        font-size: .62rem;
    }

    .web-push-control__message {
        top: calc(100% + 5px);
    }

    .approver-dashboard__count strong {
        margin: 0;
        font-size: .8rem;
    }

    .approval-request {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 15px 16px;
    }

    .approval-request__date {
        min-height: 60px;
    }

    .approval-request__date strong {
        font-size: 1.2rem;
    }

    .approval-request__title-row {
        display: block;
    }

    .approval-request__title-row .status-pill {
        display: inline-block;
        margin-top: 6px;
    }

    .approval-request__meta,
    .approval-request__assignment {
        display: grid;
        gap: 5px;
    }

    .approval-request__purpose {
        margin-top: 8px;
    }

    .approval-request__action {
        grid-column: 1 / -1;
    }

    .approval-request__action .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Approver trip review and audit trail */
.trip-review-header,
.trip-review-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f7fbf7, #edf5ef);
    border: 1px solid #dce9de;
    border-radius: 12px;
}

.trip-review-header h1,
.trip-review-detail-header h1 {
    margin: 2px 0 4px;
    color: var(--brand-900);
    font-size: 1.35rem;
    font-weight: 800;
}

.trip-review-header p,
.trip-review-detail-header p {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
}

.trip-review-header__count {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--brand-800);
    background: #fff;
    border: 1px solid #d6e5d9;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.trip-review-page > .content-card > form {
    padding: 18px 20px;
}

.trip-review-page .form-label {
    margin-bottom: 5px;
    color: #526158;
    font-size: .68rem;
    font-weight: 750;
}

.trip-review-records {
    overflow: hidden;
}

.trip-review-table td strong,
.trip-review-table td span,
.trip-review-table td small {
    display: block;
}

.trip-review-table td strong {
    color: var(--ink);
}

.trip-review-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .68rem;
}

.trip-review-table .status-pill {
    display: inline-flex;
}

.trip-review-pagination {
    padding: 14px 18px 4px;
    border-top: 1px solid var(--line);
}

.trip-review-summary {
    display: grid;
    padding: 0 20px 18px;
}

.trip-review-summary > div {
    padding: 11px 0;
    border-bottom: 1px solid #edf1ee;
}

.trip-review-summary > div:last-child {
    border-bottom: 0;
}

.trip-review-summary span,
.trip-review-summary strong {
    display: block;
}

.trip-review-summary span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.trip-review-summary strong {
    color: var(--ink);
    font-size: .78rem;
    line-height: 1.45;
}

.trip-review-movement {
    display: grid;
    gap: 10px;
    padding: 0 20px 20px;
}

.trip-review-movement article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
    background: #f7f9f7;
    border: 1px solid var(--line);
    border-left: 3px solid #bdc9c0;
    border-radius: 9px;
}

.trip-review-movement article.is-recorded {
    border-left-color: var(--brand-700);
}

.trip-review-movement article > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--brand-700);
    background: #e8f2ea;
    border-radius: 9px;
    font-size: 1.05rem;
}

.trip-review-movement small,
.trip-review-movement strong,
.trip-review-movement p {
    display: block;
}

.trip-review-movement small {
    color: var(--muted);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.trip-review-movement strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: .78rem;
}

.trip-review-movement p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .66rem;
}

.trip-review-timeline {
    padding: 2px 22px 22px;
}

.trip-review-timeline > article {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
}

.trip-review-timeline > article:not(:last-child) {
    padding-bottom: 22px;
}

.trip-review-timeline > article:not(:last-child)::after {
    position: absolute;
    top: 38px;
    bottom: 2px;
    left: 18px;
    width: 2px;
    background: #dfe8e1;
    content: '';
}

.trip-review-timeline__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--brand-700);
    border: 4px solid #edf5ef;
    border-radius: 50%;
}

.trip-review-timeline h3 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 800;
}

.trip-review-timeline__byline,
.trip-review-timeline__remarks {
    margin: 4px 0 0;
}

.trip-review-timeline__byline {
    color: var(--muted);
    font-size: .67rem;
}

.trip-review-timeline__remarks {
    color: #46564b;
    font-size: .73rem;
}

.trip-review-transition {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    color: var(--brand-800);
    background: #edf5ef;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 750;
}

.trip-review-changes {
    margin-top: 9px;
    padding: 10px 12px;
    background: #f7f9f7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.trip-review-changes > strong {
    color: var(--brand-900);
    font-size: .66rem;
}

.trip-review-changes ul {
    display: grid;
    gap: 6px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.trip-review-changes li span,
.trip-review-changes li small {
    display: block;
}

.trip-review-changes li span {
    color: #536057;
    font-size: .66rem;
    font-weight: 750;
}

.trip-review-changes li small {
    color: var(--muted);
    font-size: .63rem;
}

@media (max-width: 767.98px) {
    .trip-review-header,
    .trip-review-detail-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .trip-review-table,
    .trip-review-table tbody,
    .trip-review-table tr,
    .trip-review-table td {
        display: block;
        width: 100%;
    }

    .trip-review-table thead {
        display: none;
    }

    .trip-review-table tbody {
        display: grid;
        gap: 10px;
        padding: 12px;
    }

    .trip-review-table tbody tr {
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 9px;
    }

    .trip-review-table tbody td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0 !important;
        text-align: left !important;
        border: 0;
    }

    .trip-review-table tbody td::before {
        color: #748078;
        content: attr(data-label);
        font-size: .58rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .trip-review-table tbody td:last-child {
        display: block;
        margin-top: 5px;
        padding-top: 10px !important;
        border-top: 1px solid var(--line);
    }

    .trip-review-table tbody td:last-child::before {
        display: none;
    }

    .trip-review-table tbody td:last-child .btn {
        width: 100%;
    }
}

/* Prevent duplicate transactions while a save is being processed. */
body.transaction-loading-active {
    overflow: hidden;
}

.transaction-loading {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 33, 20, .54);
    backdrop-filter: blur(3px);
}

.transaction-loading[hidden] {
    display: none;
}

.transaction-loading__panel {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 340px);
    padding: 18px 20px;
    color: #183b25;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(4, 24, 12, .28);
}

.transaction-loading__spinner {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 4px solid #dceade;
    border-top-color: var(--brand-700);
    border-radius: 50%;
    animation: transaction-loading-spin .78s linear infinite;
}

.transaction-loading__panel div {
    min-width: 0;
}

.transaction-loading__panel strong,
.transaction-loading__panel span:not(.transaction-loading__spinner) {
    display: block;
}

.transaction-loading__panel strong {
    margin-bottom: 3px;
    font-size: .9rem;
    font-weight: 800;
}

.transaction-loading__panel span:not(.transaction-loading__spinner) {
    color: #667269;
    font-size: .73rem;
}

@keyframes transaction-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .transaction-loading__spinner {
        animation-duration: 1.8s;
    }
}
