:root {
    --navy-950: #061426;
    --navy-900: #071a2f;
    --navy-800: #0c2946;
    --navy-700: #123d63;
    --amber: #f3a712;
    --paper: #f4f5f6;
    --white: #fff;
    --ink: #142232;
    --muted: #74808d;
    --line: #e1e5e8;
    --success: #16835a;
    --danger: #b63e44;
    --shadow: 0 18px 50px rgba(8, 25, 44, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.admin-body {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: 255px;
    color: var(--white);
    background: var(--navy-950);
    flex-direction: column;
}

.sidebar__brand {
    display: flex;
    min-height: 92px;
    padding: 0 25px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-brand__mark {
    width: 40px;
    color: var(--amber);
}

.admin-brand__mark svg {
    fill: currentColor;
}

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

.admin-brand strong {
    font-size: 16px;
    letter-spacing: -.3px;
}

.admin-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .44);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.sidebar__nav {
    flex: 1;
    padding: 24px 14px;
    overflow-y: auto;
}

.sidebar__label {
    display: block;
    margin: 11px 13px 9px;
    color: rgba(255, 255, 255, .3);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.sidebar__nav a {
    position: relative;
    display: flex;
    min-height: 48px;
    margin-bottom: 4px;
    padding: 0 13px;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 650;
    transition: .2s ease;
}

.sidebar__nav a:hover,
.sidebar__nav a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.sidebar__nav a.is-active::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -14px;
    width: 3px;
    content: "";
    background: var(--amber);
}

.nav-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.sidebar__nav a.is-active .nav-icon {
    color: var(--navy-950);
    border-color: var(--amber);
    background: var(--amber);
}

.nav-badge {
    min-width: 22px;
    margin-left: auto;
    padding: 4px 6px;
    border-radius: 11px;
    color: var(--navy-950);
    background: var(--amber);
    font-size: 9px;
    text-align: center;
}

.sidebar__user {
    display: grid;
    min-height: 82px;
    padding: 16px 18px;
    align-items: center;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-950);
    background: var(--amber);
    font-size: 13px;
    font-weight: 850;
}

.sidebar__user strong,
.sidebar__user small {
    display: block;
}

.sidebar__user strong {
    font-size: 11px;
}

.sidebar__user small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .4);
    font-size: 9px;
}

.sidebar__user form {
    margin: 0;
}

.sidebar__user button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .08);
    font-size: 17px;
}

.admin-shell {
    min-height: 100vh;
    margin-left: 255px;
}

.admin-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 92px;
    padding: 0 42px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
}

.admin-topbar small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.5px;
}

.topbar-site-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-700);
    font-size: 11px;
    font-weight: 800;
}

.topbar-site-link span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--navy-900);
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: transparent;
}

.sidebar-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px 0;
    background: var(--navy-900);
}

.admin-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 38px 42px 65px;
}

.admin-alert {
    margin-bottom: 25px;
    padding: 15px 18px;
    border-left: 4px solid;
    font-size: 12px;
    line-height: 1.5;
}

.admin-alert--success {
    border-color: var(--success);
    color: #0e6543;
    background: #e7f6ef;
}

.admin-alert--error {
    border-color: var(--danger);
    color: #912f35;
    background: #ffeded;
}

.welcome-row,
.page-heading {
    display: flex;
    margin-bottom: 34px;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.welcome-row > div > span,
.page-heading > div > span {
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.welcome-row h2,
.page-heading h2 {
    margin: 7px 0 7px;
    color: var(--navy-950);
    font-size: 31px;
    letter-spacing: -1.2px;
}

.welcome-row p,
.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.admin-button {
    display: inline-flex;
    min-height: 44px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 25, 44, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.admin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(8, 25, 44, .12);
}

.admin-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(8, 25, 44, .08);
}

.admin-button--primary {
    color: var(--navy-950);
    background: var(--amber);
    border-color: #e2990d;
}

.admin-button--secondary {
    color: var(--white);
    background: var(--navy-900);
    border-color: var(--navy-800);
}

.admin-button--success {
    color: var(--white);
    background: var(--success);
    border-color: #126f4c;
}

.admin-button--full {
    width: 100%;
}

.stat-grid {
    display: grid;
    margin-bottom: 26px;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    display: grid;
    min-height: 142px;
    padding: 24px;
    align-items: center;
    grid-template-columns: 48px 1fr;
    gap: 17px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 7px 30px rgba(8, 25, 44, .035);
}

.stat-card--accent {
    color: var(--white);
    border-color: var(--navy-800);
    background: var(--navy-800);
}

.stat-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #dce1e4;
    border-radius: 50%;
    color: var(--navy-700);
    background: var(--paper);
    font-size: 10px;
    font-weight: 850;
}

.stat-card--accent .stat-card__icon {
    color: var(--navy-950);
    border-color: var(--amber);
    background: var(--amber);
}

.stat-card small,
.stat-card strong,
.stat-card p {
    display: block;
}

.stat-card small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.stat-card--accent small,
.stat-card--accent p {
    color: rgba(255, 255, 255, .5);
}

.stat-card strong {
    margin: 5px 0 2px;
    font-size: 31px;
    letter-spacing: -1.5px;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .65fr);
    gap: 20px;
}

.panel-card {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 8px 35px rgba(8, 25, 44, .035);
}

.panel-card__header {
    display: flex;
    min-height: 83px;
    padding: 20px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--line);
}

.panel-card__header span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.panel-card__header h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.3px;
}

.panel-card__header > a {
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 800;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.admin-table th {
    padding: 13px 18px;
    color: #8c959d;
    background: #fafafa;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .8px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 17px 18px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fbfcfc;
}

.admin-table td strong,
.admin-table td small {
    display: block;
    white-space: nowrap;
}

.admin-table td strong {
    color: #263544;
    font-size: 10px;
}

.admin-table td small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.status {
    display: inline-flex;
    min-height: 25px;
    padding: 0 9px;
    align-items: center;
    border-radius: 13px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.status--new {
    color: #9a6500;
    background: #fff2d3;
}

.status--contacted {
    color: #1f608b;
    background: #e5f3fd;
}

.status--approved {
    color: #14714d;
    background: #def4e9;
}

.status--closed {
    color: #6c7277;
    background: #eceeef;
}

.table-action {
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.bar-list {
    padding: 25px;
}

.bar-item {
    margin-bottom: 21px;
}

.bar-item > div {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 10px;
}

.bar-item span {
    color: #455363;
}

.bar-item strong {
    color: var(--navy-800);
}

.bar-item i {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf0f2;
}

.bar-item i b {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--amber);
}

.panel-link {
    display: flex;
    min-height: 55px;
    padding: 0 25px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 800;
}

.empty-state {
    padding: 70px 25px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.empty-state p {
    margin: 8px 0 0;
    font-size: 10px;
}

.empty-state--small {
    padding: 45px 20px;
}

.heading-count {
    min-width: 120px;
    padding: 18px 22px;
    border-left: 3px solid var(--amber);
    background: var(--white);
}

.heading-count strong,
.heading-count span {
    display: block;
}

.heading-count strong {
    font-size: 24px;
    letter-spacing: -1px;
}

.heading-count span {
    color: var(--muted);
    font-size: 9px;
}

.filter-card {
    display: flex;
    margin-bottom: 20px;
    padding: 13px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid var(--line);
    background: var(--white);
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.filter-tabs a {
    display: flex;
    min-height: 35px;
    padding: 0 12px;
    align-items: center;
    gap: 7px;
    border-radius: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.filter-tabs a.is-active {
    color: var(--white);
    background: var(--navy-800);
}

.filter-tabs b {
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border-radius: 9px;
    background: rgba(0, 0, 0, .07);
    font-size: 8px;
}

.filter-tabs a.is-active b {
    color: var(--navy-950);
    background: var(--amber);
}

.search-form {
    display: flex;
    min-width: 315px;
}

.search-form input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-right: 0;
    outline: 0;
    font-size: 10px;
}

.search-form button {
    padding: 0 15px;
    border: 0;
    color: var(--white);
    background: var(--navy-800);
    font-size: 9px;
    font-weight: 800;
}

.request-id {
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 800;
}

.request-code {
    display: inline-flex;
    min-height: 28px;
    padding: 0 10px;
    align-items: center;
    border: 1px solid rgba(18, 61, 99, .14);
    border-radius: 6px;
    color: var(--navy-950);
    background: #f4f7f9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .6px;
}

.detail-toolbar {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}

.detail-toolbar > a {
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 800;
}

.request-detail-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .55fr);
    gap: 20px;
}

.request-detail-grid > aside {
    display: grid;
    gap: 20px;
}

.request-hero {
    display: flex;
    padding: 30px;
    align-items: center;
    gap: 18px;
    color: var(--white);
    background: var(--navy-800);
}

.request-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-950);
    background: var(--amber);
    font-size: 20px;
    font-weight: 850;
}

.request-hero span {
    color: rgba(255, 255, 255, .48);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.request-hero h2 {
    margin: 5px 0;
    font-size: 23px;
    letter-spacing: -.8px;
}

.request-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .52);
    font-size: 9px;
}

.detail-section {
    padding: 28px 30px;
    border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
    border-bottom: 0;
}

.detail-section__title {
    display: flex;
    margin-bottom: 25px;
    align-items: center;
    gap: 10px;
}

.detail-section__title span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-950);
    background: var(--amber);
    font-size: 8px;
    font-weight: 850;
}

.detail-section__title h3 {
    margin: 0;
    font-size: 14px;
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-list--three {
    grid-template-columns: repeat(3, 1fr);
}

.detail-list > div {
    padding: 14px;
    border: 1px solid var(--line);
    background: #fafbfb;
}

.detail-list span,
.detail-list strong {
    display: block;
}

.detail-list span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.detail-list strong {
    color: #2d3a46;
    font-size: 10px;
}

.contact-actions {
    display: flex;
    margin-top: 18px;
    gap: 10px;
}

.route-line {
    display: grid;
    margin-bottom: 24px;
    align-items: center;
    grid-template-columns: 1fr 70px 1fr;
    gap: 15px;
}

.route-line > div {
    position: relative;
    padding-left: 23px;
}

.route-line i {
    position: absolute;
    top: 3px;
    left: 0;
    width: 11px;
    height: 11px;
    border: 3px solid var(--amber);
    border-radius: 50%;
}

.route-line span,
.route-line strong {
    display: block;
}

.route-line span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.route-line strong {
    font-size: 12px;
}

.route-line > b {
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px);
}

.customer-note {
    padding: 20px;
    color: #4f5c68;
    background: #f8f9f9;
    font-size: 11px;
    line-height: 1.7;
}

.customer-note span {
    color: var(--muted);
}

.status-card form {
    padding: 22px;
}

.status-options {
    display: grid;
    margin-bottom: 20px;
    gap: 8px;
}

.status-option input {
    position: absolute;
    opacity: 0;
}

.status-option > span {
    display: flex;
    min-height: 43px;
    padding: 0 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    cursor: pointer;
}

.status-option i {
    width: 13px;
    height: 13px;
    border: 3px solid var(--white);
    border-radius: 50%;
    outline: 1px solid #bdc4c9;
}

.status-option strong {
    font-size: 10px;
}

.status-option input:checked + span {
    border-color: var(--navy-700);
    background: #f0f5f8;
}

.status-option input:checked + span i {
    background: var(--amber);
    outline-color: var(--amber);
}

.quick-info {
    padding: 24px;
}

.quick-info > span {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.quick-info > div {
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.quick-info small,
.quick-info strong {
    display: block;
}

.quick-info small {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 8px;
}

.quick-info strong {
    font-size: 10px;
}

.vehicle-admin-grid {
    display: grid;
    margin-bottom: 25px;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.admin-vehicle-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    transition: .2s ease;
}

.admin-vehicle-card.is-passive {
    opacity: .64;
}

.admin-vehicle-card__visual {
    position: relative;
    display: grid;
    min-height: 165px;
    padding: 20px;
    place-items: end center;
    overflow: hidden;
    background: linear-gradient(145deg, #123858, #061426);
}

.admin-vehicle-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-vehicle-card__visual svg {
    position: relative;
    z-index: 2;
    max-height: 120px;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .24));
}

.vehicle-body { fill: #f4f6f7; }
.vehicle-glass { fill: #53738e; }
.vehicle-detail { fill: none; stroke: #c8cfd4; stroke-width: 4; }
.vehicle-wheel { fill: #07111d; stroke: #5b6771; stroke-width: 4; }
.wheel-hub { fill: #b4bcc2; }
.vehicle-light { fill: var(--amber); }

.visibility {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    padding: 6px 8px;
    border-radius: 2px;
    color: var(--navy-950);
    background: var(--amber);
    font-size: 8px;
    font-weight: 850;
}

.admin-vehicle-card__body {
    padding: 20px;
}

.admin-vehicle-card__body > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-vehicle-card__body > div {
    display: flex;
    margin-top: 5px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-vehicle-card h3 {
    margin: 0;
    font-size: 16px;
}

.admin-vehicle-card b {
    color: var(--navy-700);
    font-size: 10px;
    white-space: nowrap;
}

.admin-vehicle-card p {
    min-height: 48px;
    margin: 13px 0 17px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.vehicle-km-cost {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    margin: 8px 0 0;
    padding: 0 10px;
    align-items: center;
    border: 1px solid rgba(18, 61, 99, .12);
    border-radius: 6px;
    color: var(--navy-800);
    background: #f5f8fa;
    font-size: 9px;
    font-weight: 850;
}

.vehicle-admin-actions {
    display: flex;
    padding-top: 15px;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
}

.vehicle-admin-actions a,
.vehicle-admin-actions button {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3e8;
    border-radius: 999px;
    color: var(--navy-700);
    background: #fff;
    font-size: 9px;
    font-weight: 850;
    box-shadow: 0 6px 16px rgba(8, 25, 44, .04);
    transition: .18s ease;
}

.vehicle-admin-actions a:hover,
.vehicle-admin-actions button:hover {
    border-color: rgba(18, 61, 99, .22);
    background: #f7fafc;
    transform: translateY(-1px);
}

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

.form-panel {
    scroll-margin-top: 112px;
}

.admin-form,
.settings-layout .form-panel {
    padding: 27px;
}

.settings-layout .form-panel .panel-card__header {
    margin: -27px -27px 27px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.admin-form-grid--triple {
    grid-template-columns: repeat(3, 1fr);
}

.admin-field {
    display: block;
}

.admin-field > span {
    display: block;
    margin-bottom: 8px;
    color: #3d4b59;
    font-size: 9px;
    font-weight: 750;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.password-field input {
    width: 100%;
    border: 1px solid #d8dde1;
    border-radius: 2px;
    outline: 0;
    color: var(--ink);
    background: var(--white);
    font-size: 11px;
    transition: .2s ease;
}

.admin-field input,
.admin-field select,
.password-field input {
    height: 44px;
    padding: 0 12px;
}

.admin-field textarea {
    min-height: 100px;
    padding: 12px;
    resize: vertical;
    line-height: 1.55;
}

.admin-field input:focus,
.admin-field textarea:focus,
.password-field input:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(18, 61, 99, .08);
}

.admin-field > small {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 8px;
}

.admin-field--full {
    grid-column: 1 / -1;
}

.file-upload {
    position: relative;
    display: flex;
    min-height: 138px;
    padding: 20px 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    border: 1px dashed #aebbc5;
    border-radius: 8px;
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(18, 61, 99, .035), rgba(255, 255, 255, 0)),
        #fbfcfd;
    cursor: pointer;
    text-align: center;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.file-upload::before {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-950);
    background: var(--amber);
    box-shadow: 0 10px 24px rgba(243, 167, 18, .28);
    content: "+";
    font-size: 22px;
    font-weight: 850;
    line-height: 1;
}

.file-upload::after {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(18, 61, 99, .06);
    border-radius: 6px;
    content: "";
    pointer-events: none;
}

.file-upload:hover,
.file-upload:focus-within,
.file-upload.is-dragging {
    border-color: var(--navy-700);
    background: #fff;
    box-shadow: 0 12px 28px rgba(8, 25, 44, .08);
    transform: translateY(-1px);
}

.file-upload.is-dragging {
    border-style: solid;
    background: #f4f9fd;
}

.file-upload.has-file {
    border-style: solid;
    border-color: rgba(22, 131, 90, .38);
    background: #f3fbf7;
}

.file-upload.has-file::before {
    color: #fff;
    background: var(--success);
    box-shadow: 0 10px 24px rgba(22, 131, 90, .22);
    content: "✓";
}

.file-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-upload b {
    color: var(--navy-700);
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
}

.file-upload small {
    max-width: 260px;
    margin-top: 0;
    color: #84909a;
    font-size: 8px;
    line-height: 1.5;
}

.vehicle-gallery-admin {
    margin-top: 22px;
}

.vehicle-gallery-admin__body {
    padding: 24px;
}

.vehicle-gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vehicle-gallery-admin-card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 250px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(8, 25, 44, .045);
}

.vehicle-gallery-admin-card img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
    background: #10243a;
}

.vehicle-gallery-admin-card > div {
    padding: 15px;
}

.vehicle-gallery-admin-card strong,
.vehicle-gallery-admin-card span {
    display: block;
}

.vehicle-gallery-admin-card strong {
    color: var(--ink);
    font-size: 11px;
}

.vehicle-gallery-admin-card span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.vehicle-gallery-admin-card form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

.vehicle-gallery-admin-card button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(182, 62, 68, .22);
    border-radius: 999px;
    color: var(--danger);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(8, 25, 44, .14);
    font-size: 8px;
    font-weight: 850;
    transition: .18s ease;
}

.vehicle-gallery-admin-card button:hover {
    background: #fff2f2;
    transform: translateY(-1px);
}

.vehicle-gallery-admin-card.is-main::before {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 7px 9px;
    border-radius: 999px;
    color: var(--navy-950);
    background: var(--amber);
    content: "Ana";
    font-size: 8px;
    font-weight: 900;
}

.gallery-limit {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 9px;
}

.gallery-limit strong {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--navy-950);
    background: #f2f5f7;
    font-size: 10px;
}

.gallery-limit a {
    color: var(--navy-700);
    font-weight: 850;
}

.gallery-limit-full {
    display: flex;
    margin-top: 24px;
    padding: 18px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(182, 62, 68, .16);
    border-radius: 8px;
    color: #7d3539;
    background: #fff6f6;
}

.gallery-limit-full strong,
.gallery-limit-full span {
    display: block;
}

.gallery-limit-full strong {
    color: var(--danger);
    font-size: 12px;
}

.gallery-limit-full span {
    color: #8b565a;
    font-size: 10px;
    line-height: 1.5;
}

.vehicle-gallery-upload {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.vehicle-gallery-upload .admin-form-grid {
    align-items: end;
}

.vehicle-gallery-upload .admin-form-footer {
    margin-top: 20px;
}

.check-field,
.switch-field {
    display: flex;
    margin-top: 12px;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 9px;
    cursor: pointer;
}

.check-field input {
    width: 14px;
    height: 14px;
}

.switch-field input {
    position: absolute;
    opacity: 0;
}

.switch-field i {
    position: relative;
    width: 34px;
    height: 19px;
    border-radius: 12px;
    background: #cbd1d5;
    transition: .2s ease;
}

.switch-field i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    content: "";
    border-radius: 50%;
    background: var(--white);
    transition: .2s ease;
}

.switch-field input:checked + i {
    background: var(--success);
}

.switch-field input:checked + i::after {
    transform: translateX(15px);
}

.admin-form-footer {
    display: flex;
    margin-top: 25px;
    padding-top: 23px;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
}

.settings-layout {
    display: grid;
    gap: 20px;
}

.settings-save {
    position: sticky;
    z-index: 10;
    bottom: 15px;
    display: flex;
    padding: 18px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: var(--white);
    background: var(--navy-800);
    box-shadow: 0 15px 50px rgba(6, 20, 38, .22);
}

.settings-save strong,
.settings-save span {
    display: block;
}

.settings-save strong {
    margin-bottom: 4px;
    font-size: 11px;
}

.settings-save span {
    color: rgba(255, 255, 255, .5);
    font-size: 9px;
}

.profile-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
}

.profile-card {
    padding: 35px 25px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 75px;
    height: 75px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-950);
    background: var(--amber);
    font-size: 25px;
    font-weight: 850;
}

.profile-card h3 {
    margin: 0;
    font-size: 16px;
}

.profile-card p {
    margin: 5px 0 18px;
    color: var(--muted);
    font-size: 10px;
}

.profile-card > span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 12px;
    color: var(--navy-700);
    background: #eaf1f6;
    font-size: 8px;
    font-weight: 800;
}

.profile-stack {
    display: grid;
    gap: 20px;
}

.form-divider {
    margin: 26px 0 20px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 65px;
}

.password-field button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    color: var(--navy-700);
    background: transparent;
    font-size: 8px;
    font-weight: 800;
}

.management-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .65fr);
    gap: 20px;
}

.management-layout--reverse {
    margin-top: 20px;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.row-actions form,
.inline-form {
    margin: 0;
}

.row-actions button,
.inline-form button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dce3e8;
    border-radius: 999px;
    background: #fff;
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 850;
    box-shadow: 0 6px 16px rgba(8, 25, 44, .04);
    transition: .18s ease;
}

.row-actions button:hover,
.inline-form button:hover {
    border-color: rgba(18, 61, 99, .22);
    background: #f7fafc;
    transform: translateY(-1px);
}

.danger-action {
    color: var(--danger) !important;
    border-color: rgba(182, 62, 68, .22) !important;
    background: #fff8f8 !important;
}

.metric-grid {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    min-height: 105px;
    padding: 23px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 7px 30px rgba(8, 25, 44, .035);
}

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

.metric-card span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.metric-card strong {
    margin-top: 9px;
    color: var(--navy-950);
    font-size: 26px;
    letter-spacing: -1px;
}

.metric-card--income {
    border-color: rgba(22, 131, 90, .18);
    background: #f2fbf6;
}

.metric-card--expense {
    border-color: rgba(182, 62, 68, .16);
    background: #fff5f5;
}

.summary-panel {
    margin-bottom: 20px;
}

.vehicle-profit-grid {
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profit-card {
    padding: 19px;
    border: 1px solid var(--line);
    background: #fbfcfc;
}

.profit-card > div > span,
.profit-card dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.profit-card h3 {
    margin: 5px 0 16px;
    font-size: 15px;
}

.profit-card dl {
    display: grid;
    margin: 0;
    gap: 9px;
}

.profit-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.profit-card dd {
    margin: 0;
    color: #263544;
    font-size: 10px;
    font-weight: 850;
}

.profit-card .is-positive {
    color: var(--success);
}

.profit-card .is-negative {
    color: var(--danger);
}

.profit-card > a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 850;
}

.filter-card--compact {
    margin: 0;
    border-width: 0 0 1px;
    align-items: end;
    justify-content: flex-start;
}

.filter-card--compact .admin-field {
    min-width: 240px;
}

.date-jump {
    display: flex;
    align-items: end;
    gap: 10px;
}

.date-jump input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 11px;
}

.day-switcher {
    display: flex;
    min-height: 56px;
    margin-bottom: 20px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    background: var(--white);
}

.day-switcher a {
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 850;
}

.day-switcher strong {
    font-size: 13px;
}

.schedule-board {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.schedule-item {
    display: grid;
    align-items: center;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 17px;
    border: 1px solid var(--line);
    background: #fbfcfc;
}

.schedule-item time {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--navy-800);
}

.schedule-item time strong,
.schedule-item time span {
    display: block;
}

.schedule-item time strong {
    font-size: 14px;
}

.schedule-item time span {
    color: rgba(255, 255, 255, .54);
    font-size: 8px;
}

.schedule-item__main {
    min-width: 0;
}

.schedule-item__main h3 {
    margin: 8px 0 5px;
    font-size: 14px;
    letter-spacing: -.3px;
}

.schedule-item__main p,
.schedule-item__main small {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.status--planned {
    color: #755b12;
    background: #fff4cf;
}

.status--confirmed {
    color: #1f608b;
    background: #e5f3fd;
}

.status--completed {
    color: #14714d;
    background: #def4e9;
}

.status--cancelled {
    color: #6c7277;
    background: #eceeef;
}

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

/* Login */
.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1.12fr .88fr;
    background: var(--white);
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 48px 55px;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-950) url("../images/hero-fleet.png") center / cover no-repeat;
    flex-direction: column;
    justify-content: space-between;
}

.login-visual__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 18, 34, .96), rgba(5, 18, 34, .58)), linear-gradient(0deg, rgba(5, 18, 34, .8), transparent);
}

.login-brand,
.login-visual__copy,
.login-visual__footer {
    position: relative;
    z-index: 2;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand > span {
    width: 45px;
    color: var(--amber);
}

.login-brand svg {
    fill: currentColor;
}

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

.login-brand strong {
    font-size: 18px;
}

.login-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .5);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-visual__copy {
    max-width: 585px;
}

.login-visual__copy > span {
    color: var(--amber);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-visual__copy h1 {
    margin: 15px 0 22px;
    font-size: clamp(44px, 5vw, 66px);
    letter-spacing: -2.8px;
    line-height: 1.02;
}

.login-visual__copy p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 14px;
    line-height: 1.8;
}

.login-visual__footer {
    color: rgba(255, 255, 255, .36);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.login-panel {
    display: grid;
    min-height: 100vh;
    padding: 50px;
    place-items: center;
    background: var(--white);
}

.login-box {
    width: min(100%, 390px);
}

.login-back {
    display: inline-block;
    margin-bottom: 65px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.login-kicker {
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.login-box h2 {
    margin: 10px 0 9px;
    color: var(--navy-950);
    font-size: 31px;
    letter-spacing: -1.2px;
}

.login-box > p {
    margin: 0 0 31px;
    color: var(--muted);
    font-size: 11px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-form label > span {
    display: block;
    margin-bottom: 8px;
    color: #3d4b59;
    font-size: 9px;
    font-weight: 750;
}

.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #d8dde1;
    border-radius: 2px;
    outline: 0;
    font-size: 11px;
}

.login-form input:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(18, 61, 99, .08);
}

.login-form .admin-button {
    min-height: 49px;
    margin-top: 5px;
}

.login-help {
    display: block;
    margin-top: 22px;
    color: #9aa2a8;
    font-size: 8px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 1180px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-open .sidebar-overlay {
        display: block;
    }

    .admin-shell {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-topbar {
        padding: 0 28px;
        justify-content: flex-start;
        gap: 18px;
    }

    .topbar-site-link {
        margin-left: auto;
    }

    .admin-main {
        padding: 32px 28px 55px;
    }

    .dashboard-grid,
    .request-detail-grid,
    .management-layout,
    .management-layout--reverse {
        grid-template-columns: 1fr;
    }

    .vehicle-profit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .login-visual {
        display: none;
    }
}

@media (max-width: 720px) {
    .admin-main {
        padding: 25px 16px 45px;
    }

    .admin-topbar {
        min-height: 76px;
        padding: 0 16px;
    }

    .topbar-site-link {
        font-size: 0;
    }

    .welcome-row,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-row h2,
    .page-heading h2 {
        font-size: 27px;
    }

    .stat-grid,
    .metric-grid,
    .vehicle-admin-grid,
    .vehicle-gallery-admin-grid,
    .admin-form-grid,
    .admin-form-grid--two,
    .admin-form-grid--triple,
    .profile-layout {
        grid-template-columns: 1fr;
    }

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

    .schedule-item {
        align-items: start;
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .schedule-item time {
        width: 52px;
        height: 52px;
    }

    .schedule-item > .row-actions {
        grid-column: 1 / -1;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .date-jump,
    .day-switcher,
    .filter-card--compact {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-card {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        min-width: 0;
    }

    .detail-list,
    .detail-list--three {
        grid-template-columns: 1fr;
    }

    .route-line {
        grid-template-columns: 1fr;
    }

    .route-line > b {
        width: 1px;
        height: 25px;
        margin-left: 5px;
        background: repeating-linear-gradient(0deg, var(--line) 0 5px, transparent 5px 9px);
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-field--full {
        grid-column: auto;
    }

    .settings-save {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-footer .admin-button {
        width: 100%;
    }

    .login-panel {
        padding: 30px 22px;
    }

    .login-back {
        margin-bottom: 45px;
    }
}
