:root {
    --color-primary: #0f766e;
    --color-primary-hover: #115e59;
    --color-primary-light: #ccfbf1;
    --color-surface: #FFFFFF;
    --color-surface-muted: #F1F5F9;
    --color-background: #F5F7FB;
    --color-border: #E2E8F0;
    --color-border-strong: #CBD5E1;
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-tertiary: #94A3B8;
    --color-success: #16A34A;
    --color-success-light: #DCFCE7;
    --color-warning: #D97706;
    --color-warning-light: #FEF3C7;
    --color-error: #DC2626;
    --color-error-light: #FEE2E2;
    --color-info: #2563EB;
    --color-info-light: #DBEAFE;
    --color-purple: #0f766e;
    --color-purple-light: #ccfbf1;
    --color-pink: #DB2777;
    --color-pink-light: #FCE7F3;
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 12px -6px rgba(15, 23, 42, 0.18), 0 4px 8px -8px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 30px -20px rgba(15, 23, 42, 0.3);
    --shadow-xl: 0 30px 45px -28px rgba(15, 23, 42, 0.35);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --sidebar-width: 248px;
    --shell-rail-surface: #FFFFFF;
    --shell-rail-border: #E2E8F0;
    --shell-rail-accent: rgba(15, 118, 110, 0.08);
    --shell-rail-active: rgba(15, 118, 110, 0.1);
    --shell-rail-hover: rgba(15, 118, 110, 0.05);
    --shell-topbar-surface: #FFFFFF;
    --shell-topbar-border: #E2E8F0;
    --shell-backdrop: linear-gradient(180deg, rgba(226, 232, 240, 0.4) 0%, rgba(255, 255, 255, 0) 40%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}

/* Shell Foundation */
.fleet-console-shell {
    min-height: 100vh;
    display: flex;
    background: var(--shell-backdrop);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.app-nav-rail {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
    border-right: 1px solid var(--shell-rail-border);
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.app-nav-rail__header {
    background: transparent;
    border-bottom: none;
    padding-bottom: 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.25rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
    border-left: none;
    border-radius: 14px;
    margin: 0 0.75rem;
    position: relative;
}

.nav-links a::before {
    content: "";
    position: absolute;
    left: -0.3rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    border-radius: 999px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--shell-rail-hover);
    color: var(--color-text-primary);
}

.nav-links a.active {
    background-color: var(--shell-rail-active);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
    color: var(--color-text-primary);
    font-weight: 600;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon-svg {
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
    width: 100%;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.app-logout {
    color: var(--color-text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.app-logout:hover {
    background-color: var(--shell-rail-hover);
    color: var(--color-text-primary);
}

/* Main Content */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-shell {
    flex: 1;
    position: relative;
}

.topbar {
    background-color: var(--shell-topbar-surface);
    border-bottom: 1px solid var(--shell-topbar-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-context {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu:hover {
    background-color: var(--color-background);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.container {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
}

main.container {
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.page-header-copy {
    display: grid;
    gap: 0.35rem;
}

.page-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.page-summary {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 42rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    margin-right: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--color-background);
}

.btn-danger {
    background-color: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.vehicle-board-toolbar {
    align-items: flex-end;
}

.vehicle-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.vehicle-status-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: grid;
    gap: 1rem;
    min-height: 100%;
    outline: none;
    padding: 1.4rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vehicle-status-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(90deg, var(--color-primary) 0%, #34d399 100%);
}

.vehicle-status-card:hover,
.vehicle-status-card:focus-visible {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.vehicle-card-identity {
    display: grid;
    gap: 0.35rem;
}

.vehicle-card-eyebrow {
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vehicle-card-plate {
    color: var(--color-text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.vehicle-card-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.vehicle-card-rental {
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
}

.vehicle-card-rental-label {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vehicle-card-rental-range {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.vehicle-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.vehicle-card-metric {
    background: var(--color-surface);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
}

.vehicle-card-metric span {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.vehicle-card-metric strong {
    color: var(--color-text-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.vehicle-card-meta {
    display: grid;
    gap: 0.65rem;
}

.vehicle-card-meta-item {
    align-items: center;
    color: var(--color-text-secondary);
    display: flex;
    font-size: 0.85rem;
    gap: 1rem;
    justify-content: space-between;
}

.vehicle-card-meta-item strong {
    color: var(--color-text-primary);
    font-weight: 600;
    text-align: right;
}

.vehicle-card-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.vehicle-risk-badge {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
}

.vehicle-risk-badge--success {
    background: var(--color-success-light);
    border-color: rgba(22, 163, 74, 0.18);
    color: var(--color-success);
}

.vehicle-risk-badge--info {
    background: var(--color-info-light);
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--color-info);
}

.vehicle-risk-badge--warning {
    background: var(--color-warning-light);
    border-color: rgba(217, 119, 6, 0.18);
    color: var(--color-warning);
}

.vehicle-risk-badge--danger {
    background: var(--color-error-light);
    border-color: rgba(220, 38, 38, 0.18);
    color: var(--color-error);
}

.vehicle-card-link {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vehicle-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.vehicle-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.vehicle-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.vehicle-card p {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.inline-state {
    background: var(--color-surface-muted);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    padding: 1rem 1.1rem;
}

.inline-state--success {
    background: var(--color-success-light);
    border-color: rgba(22, 163, 74, 0.18);
    color: var(--color-success);
}

.inline-state--info {
    background: var(--color-info-light);
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--color-info);
}

.inline-state--error {
    background: var(--color-error-light);
    border-color: rgba(220, 38, 38, 0.18);
    color: var(--color-error);
}

.vehicle-info {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-item {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.info-item strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.vehicle-workspace-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.vehicle-overview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
}

.vehicle-workspace-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.detail-summary-grid--section {
    margin-bottom: 1rem;
}

.detail-summary-item {
    background: var(--color-surface);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    text-align: left;
}

.detail-summary-item span {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-summary-item strong {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.detail-summary-item--interactive {
    appearance: none;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-summary-item--interactive:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.vehicle-detail-layout {
    display: grid;
    gap: 1.25rem;
}

.detail-section-shell {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.1rem;
}

.detail-section-header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-section-header h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.login-console-shell {
    background: linear-gradient(180deg, #f8faf9 0%, #eef4f2 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.login-atmosphere {
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.72;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.login-atmosphere--top {
    background: rgba(204, 232, 233, 0.92);
    height: 22rem;
    left: -10rem;
    top: -12rem;
    width: 22rem;
}

.login-atmosphere--bottom {
    background: rgba(168, 239, 244, 0.88);
    bottom: -14rem;
    height: 24rem;
    right: -10rem;
    width: 24rem;
}

.login-bottom-bar {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 67, 71, 0.22) 50%, transparent 100%);
    bottom: 0;
    height: 4px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 0;
}

.login-single-stage {
    display: grid;
    min-height: 100vh;
    padding: 2rem 1.5rem 3rem;
    place-items: center;
    position: relative;
    z-index: 1;
}

.login-panel {
    display: grid;
    gap: 2rem;
    width: min(100%, 420px);
}

.login-panel-header {
    display: grid;
    gap: 0.8rem;
    justify-items: center;
    text-align: center;
}

.login-mark {
    align-items: center;
    background: linear-gradient(135deg, #004347 0%, #005c61 100%);
    border-radius: 14px;
    box-shadow: 0 12px 28px -18px rgba(0, 67, 71, 0.55);
    color: white;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 3rem;
    justify-content: center;
    letter-spacing: 0.12em;
    width: 3rem;
}

.login-panel-title {
    color: var(--color-text-primary);
    font-size: clamp(2rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.login-panel-copy {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 24rem;
}

.login-access-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(190, 200, 201, 0.45);
    border-radius: 28px;
    box-shadow: 0 22px 48px -30px rgba(15, 23, 42, 0.24);
    padding: 1.75rem;
}

.login-form {
    display: grid;
    gap: 1.15rem;
}

.login-form .form-group {
    margin-bottom: 0;
    padding: 0;
}

.login-form .form-group:first-child {
    padding-top: 0;
}

.login-field-group label {
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.55rem;
    padding-left: 0.15rem;
    text-transform: uppercase;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap input {
    background: #e6ebeb;
    border: none;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(190, 200, 201, 0.4);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    min-height: 3.25rem;
    padding: 0 4rem 0 1rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.login-input-wrap input::placeholder {
    color: #8b9899;
}

.login-input-wrap input:focus {
    background: #f4f7f7;
    box-shadow: 0 0 0 3px rgba(0, 67, 71, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.login-input-hint {
    color: #8ea0a1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.login-panel-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    padding: 0.1rem 0 0.25rem;
}

.login-checkbox {
    align-items: center;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    font-size: 0.88rem;
    gap: 0.65rem;
}

.login-checkbox input {
    accent-color: var(--color-primary);
    height: 1rem;
    width: 1rem;
}

.login-secondary-link {
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.login-error-message {
    background: rgba(255, 218, 214, 0.92);
    border: 1px solid rgba(186, 26, 26, 0.12);
    border-radius: 14px;
    color: #a52121;
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
}

.login-submit {
    background: linear-gradient(135deg, #004347 0%, #005c61 100%);
    border-radius: 14px;
    box-shadow: 0 16px 28px -18px rgba(0, 67, 71, 0.58);
    font-size: 0.98rem;
    justify-content: center;
    min-height: 3.5rem;
    width: 100%;
}

.login-submit:hover {
    background: linear-gradient(135deg, #00484d 0%, #0a686e 100%);
    box-shadow: 0 18px 30px -18px rgba(0, 67, 71, 0.62);
}

.login-panel-footer {
    display: grid;
    gap: 1.4rem;
    justify-items: center;
}

.login-footer-note {
    color: #7b8788;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.8;
    text-align: center;
    text-transform: uppercase;
}

.login-footer-links {
    align-items: center;
    display: flex;
    gap: 1.25rem;
}

.login-footer-link {
    align-items: center;
    color: var(--color-text-secondary);
    display: inline-flex;
    font-size: 0.8rem;
    gap: 0.4rem;
}

.login-footer-link::before {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 50%;
    content: "";
    height: 0.38rem;
    width: 0.38rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
}

.section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rentals-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rentals-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ledger-filter-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.ledger-filter-bar label {
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.ledger-filter-bar select {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    min-width: 11rem;
    outline: none;
}

.ledger-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ledger-stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0.3rem;
    padding: 1.25rem 1.35rem;
}

.ledger-stat-card p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.ledger-stat-card strong {
    color: var(--color-text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.ledger-stat-card span {
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
}

.rentals-ledger-shell {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.1rem;
}

.ledger-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ledger-table-header h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.rentals-ledger-table {
    border: none;
    box-shadow: none;
    margin: 0;
}

.rental-plate-stack {
    display: grid;
    gap: 0.45rem;
    justify-items: flex-start;
}

.rental-plate-value {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.table-state-row td {
    border-top: none;
}

.table-state-row--error td {
    color: var(--color-error);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

table {
    width: 100%;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--shadow-sm);
}

thead {
    background-color: var(--color-background);
}

th, td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
}

th {
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.75rem;
}

td {
    color: var(--color-text-secondary);
}

tbody tr {
    border-top: 1px solid var(--color-border);
    transition: all 0.2s;
}

tbody tr:hover {
    background-color: var(--color-background);
}

.empty-message {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 2rem;
    font-size: 0.875rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--color-surface);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.modal-content h3 {
    padding: 1.5rem;
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.close {
    color: var(--color-text-secondary);
    float: right;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--color-text-primary);
}

.form-group {
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
}

.modal-content form {
    padding: 1.5rem;
    padding-top: 0;
}

.form-group:first-child {
    padding-top: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.filter-bar {
    background: var(--color-surface);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.filter-bar label {
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.filter-bar select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}

.editable-amount {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 500;
}

.editable-amount:hover {
    text-decoration: underline;
}

.editable-date {
    cursor: pointer;
    color: var(--color-primary);
}

.editable-date:hover {
    text-decoration: underline;
}

.inline-date-input {
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: inherit;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-surface);
    outline: none;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.dashboard-alert-strip,
.dashboard-status-board,
.dashboard-metric-panel,
.dashboard-activity-panel {
    grid-column: 1 / -1;
}

.panel-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.panel-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.4rem;
}

.dashboard-alert-strip {
    background: linear-gradient(120deg, rgba(254, 226, 226, 0.6), rgba(254, 243, 199, 0.5));
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.alert-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.alert-strip-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alert-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-pill--danger {
    color: var(--color-error);
    background: var(--color-error-light);
    border-color: rgba(220, 38, 38, 0.3);
}

.alert-pill--warning {
    color: var(--color-warning);
    background: var(--color-warning-light);
    border-color: rgba(217, 119, 6, 0.25);
}

.alert-pill--info {
    color: var(--color-info);
    background: var(--color-info-light);
    border-color: rgba(37, 99, 235, 0.25);
}

.alert-strip-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.alert-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-plate {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-primary);
}

.alert-dates {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.alert-footer {
    display: flex;
    justify-content: flex-start;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-badge--danger {
    color: var(--color-error);
    background: var(--color-error-light);
    border-color: rgba(220, 38, 38, 0.2);
}

.status-badge--warning {
    color: var(--color-warning);
    background: var(--color-warning-light);
    border-color: rgba(217, 119, 6, 0.2);
}

.status-badge--success {
    color: var(--color-success);
    background: var(--color-success-light);
    border-color: rgba(22, 163, 74, 0.2);
}

.status-badge--info {
    color: var(--color-info);
    background: var(--color-info-light);
    border-color: rgba(37, 99, 235, 0.2);
}

.status-badge--neutral {
    color: var(--color-text-secondary);
    background: var(--color-surface-muted);
    border-color: rgba(148, 163, 184, 0.22);
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.overview-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: var(--radius-md);
}

.overview-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.overview-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.overview-note {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.35rem;
}

/* Cost Ranking */
.cost-ranking {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rank-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.rank-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.rank-bar {
    height: 32px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-purple));
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    min-width: 2px;
}

.rank-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
}

/* Category Stats */
.category-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.category-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.category-bar {
    height: 32px;
    background: linear-gradient(90deg, var(--color-success), var(--color-info));
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    min-width: 2px;
}

.category-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
}

/* Rented Vehicles */
#rentedVehiclesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.rented-item {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rented-plate {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.rented-date {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.rented-days {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Period Toggle */
.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.overview-header h3 {
    margin: 0;
}

.period-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--color-background);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.period-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    color: var(--color-text-primary);
    background: var(--color-surface);
}

.period-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Status Board */
.dashboard-status-board {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.6));
}

/* Metric Panel */
.dashboard-metric-panel {
    background: var(--color-surface);
}

/* Activity Panel */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.activity-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.activity-card h4,
.activity-table h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.activity-table {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.activity-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.table-hint {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

.activity-table table {
    margin: 0;
}

/* Editable Field */
.editable-field {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.editable-field:hover {
    background-color: var(--color-primary-light);
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-success);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.toast-error {
    background: var(--color-error);
}

.toast.toast-warning {
    background: var(--color-warning);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.menu-toggle:hover {
    background-color: var(--color-background);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

@media (max-width: 960px) {
    .login-atmosphere--top {
        height: 18rem;
        left: -9rem;
        top: -10rem;
        width: 18rem;
    }

    .login-atmosphere--bottom {
        bottom: -12rem;
        height: 20rem;
        right: -9rem;
        width: 20rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Show menu toggle button */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Show overlay when sidebar is active */
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }

    /* Main wrapper adjustments */
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .login-single-stage {
        padding: 1.5rem 1rem 2rem;
    }

    .login-panel {
        gap: 1.5rem;
    }

    .login-access-card {
        border-radius: 24px;
        padding: 1.5rem 1.25rem;
    }

    .login-panel-title {
        font-size: 1.8rem;
    }

    .login-panel-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-footer-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    /* Topbar adjustments */
    .topbar {
        padding: 1rem;
    }

    .topbar-title {
        font-size: 1rem;
    }

    /* Container adjustments */
    main.container {
        padding: 1rem;
    }

    /* Page header adjustments */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    /* Button adjustments for touch */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        min-height: 36px;
    }

    /* Vehicle grid adjustments */
    .vehicle-board-grid,
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vehicle-board-toolbar {
        align-items: stretch;
    }

    .vehicle-card-header,
    .vehicle-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .vehicle-workspace-header,
    .detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .detail-section-header,
    .vehicle-workspace-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Dashboard grid adjustments */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Overview stats adjustments */
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Stats summary adjustments */
    .stats-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ledger-stat-row {
        grid-template-columns: 1fr;
    }

    /* Rented vehicles list adjustments */
    #rentedVehiclesList {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Table responsive wrapper */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    /* Form adjustments for touch */
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Filter bar adjustments */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-bar select {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .rentals-toolbar,
    .rentals-toolbar-actions,
    .ledger-table-header,
    .ledger-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ledger-filter-bar select {
        min-width: 0;
        width: 100%;
    }

    /* Period toggle adjustments */
    .overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .period-toggle {
        width: 100%;
    }

    .period-btn {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    /* Stat value font size */
    .stat-value {
        font-size: 1.75rem;
    }

    .overview-value {
        font-size: 1.75rem;
    }

    /* Vehicle card adjustments */
    .vehicle-status-card,
    .vehicle-card {
        padding: 1.25rem;
    }

    .vehicle-card-plate,
    .vehicle-card h3 {
        font-size: 1.125rem;
    }

    /* Dashboard card adjustments */
    .dashboard-card {
        padding: 1.25rem;
    }

    /* Section header adjustments */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Toast notification adjustments */
    .toast {
        padding: 1rem;
        font-size: 0.9375rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .vehicle-board-grid,
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    main.container {
        padding: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .topbar-title {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .overview-value {
        font-size: 1.5rem;
    }
}
