html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNjcuMzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-section {
    position: fixed;
    inset: 0;
    background-color: #0c1322; /* Void Black — always dark */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.truck-loader {
    position: relative;
    width: 80%;
    max-width: 600px;
}

.truck-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.track-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #1f2937; /* Navy Surface */
    transform: translateY(-50%);
    border-radius: 3px;
}

.track-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--fill-width, 0px);
    background: #f83812; /* Scarlet Fire */
    border-radius: 3px;
}

.track-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1f2937; /* Navy Surface */
    border: 4px solid #2d3a4d;
    position: relative;
    z-index: 1;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.track-node.completed {
    background: #22c55e;
    border-color: #16a34a;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.truck-icon {
    position: absolute;
    width: 162px;
    height: auto;
    bottom: 50%;
    left: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.truck-cargo {
    position: absolute;
    bottom: calc(50% + 42px);
    left: 0;
    transform: translateX(-130%);
    z-index: 1;
    display: flex;
    gap: 2px;
    justify-content: center;
}

/* Package styles */
.package {
    width: 20px;
    height: 20px;
    background: #d97706;
    border: 2px solid #92400e;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.package::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    right: 2px;
    height: 2px;
    background: #92400e;
    transform: translateY(-50%);
}

.package::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 2px;
    bottom: 2px;
    width: 2px;
    background: #92400e;
    transform: translateX(-50%);
}

/* Pickup state - packages waiting at node */
.package.pickup {
    position: absolute;
    top: -30px;
    z-index: 3;
}

.package.pickup[data-pkg="A"] {
    left: 10px;
}

.package.pickup[data-pkg="B"] {
    left: 30px;
}

.package.pickup[data-pkg="C"] {
    left: 20px;
}

/* Loaded state - on the truck */
.package.loaded {
    position: relative;
    top: auto;
    left: auto;
}

/* Delivered state - at destination with checkmark */
.package.delivered {
    position: absolute;
    bottom: -38px;
    width: 28px;
    height: 28px;
    background: #16a34a;
    border: 2px solid #15803d;
    border-radius: 4px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.package.delivered[data-pkg="A"] {
    left: 50%;
    transform: translateX(-50%);
}

.package.delivered[data-pkg="B"] {
    left: -2px;
}

.package.delivered[data-pkg="C"] {
    left: 34px;
}

/* Remove tape lines from delivered packages */
.package.delivered::before,
.package.delivered::after {
    display: none;
}

/* Checkmark for delivered packages */
.package.delivered .checkmark {
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.loading-progress-text {
    margin-top: 3.5rem;
    text-align: center;
    font-weight: bold;
    color: #9fb1bc; /* Cool Steel */
    font-size: 0.9rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@media (max-width: 767px) {
    .truck-icon {
        width: 125px;
    }

    .truck-cargo {
        bottom: calc(50% + 32px);
        transform: translateX(-125%);
    }

    .package {
        width: 14px;
        height: 14px;
    }

    .package.delivered {
        width: 22px;
        height: 22px;
    }

    .package.delivered .checkmark {
        font-size: 13px;
    }
}

code {
    color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

@media (prefers-color-scheme: dark) {
    .loading-section { background-color: #0c1322; }
    .loading-progress circle { stroke: #191f2f; }
    .loading-progress circle:last-child { stroke: #f83812; }
    .loading-progress-text { color: #9fb1bc; }
}

/* ================================================================
   Kinetic Monolith Design System — Scarlet Fire Edition
   ================================================================ */

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0c1322; }
::-webkit-scrollbar-thumb { background: #2e3545; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }

/* Dot grid overlay */
.km-dot-grid {
    background-image: radial-gradient(circle, rgba(220, 226, 247, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Glow blobs */
.km-glow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    z-index: 0;
}

.km-glow-blob-scarlet {
    background: radial-gradient(circle, rgba(248, 56, 18, 0.22) 0%, transparent 70%);
}

.km-glow-blob-blue {
    background: radial-gradient(circle, rgba(40, 147, 247, 0.18) 0%, transparent 70%);
}

/* Auth page wrapper */
.km-auth-page {
    position: relative;
    min-height: calc(100vh - 64px - 120px); /* viewport minus AppBar minus footer */
    overflow: hidden;
}

/* Glass card */
.km-glass {
    background: rgba(20, 27, 43, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(93, 63, 57, 0.35) !important;
}

/* Stat card with colored top-accent bar */
.km-stat-card {
    position: relative;
    overflow: hidden;
    background-color: #191f2f;
    border: 1px solid rgba(93, 63, 57, 0.4);
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.km-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.km-stat-card::before {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.km-stat-card.accent-scarlet::before { background: #f83812; }
.km-stat-card.accent-orange::before  { background: linear-gradient(90deg, #f83812, #ff5635); }
.km-stat-card.accent-blue::before    { background: #2893f7; }
.km-stat-card.accent-teal::before    { background: #9ecaff; }
.km-stat-card.accent-green::before   { background: #10b981; }
.km-stat-card.accent-amber::before   { background: #f59e0b; }

/* Section heading with left scarlet bar */
.km-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.km-section-heading::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #f83812 0%, #ff5635 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Active nav link — MudBlazor override */
.mud-nav-link.active {
    background-color: #2f222c !important;
    border-left: 3px solid #f83812 !important;
    color: #f8fafc !important;
}

.mud-nav-link.active .mud-nav-link-icon-wrapper svg,
.mud-nav-link.active .mud-icon-root {
    color: #f8fafc !important;
}

/* Primary button scarlet glow */
.mud-button-filled-primary,
.mud-button[style*="linear-gradient"] {
    box-shadow: 0 0 15px rgba(248, 56, 18, 0.2);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.mud-button-filled-primary:hover,
.mud-button[style*="linear-gradient"]:hover {
    box-shadow: 0 0 24px rgba(248, 56, 18, 0.4);
    transform: translateY(-1px);
}

/* Panel with left scarlet accent */
.km-panel-accent {
    border-left: 4px solid #f83812 !important;
}

/* Stat card number styling */
.km-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

/* MudTable dark styling enhancements */
.mud-table-root .mud-table-head .mud-table-cell {
    background-color: #191f2f !important;
    color: #b7c9d4 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #5d3f39 !important;
}

.mud-table-root .mud-table-body .mud-table-row {
    border-bottom: 1px solid rgba(93, 63, 57, 0.4) !important;
}

.mud-table-root .mud-table-row:hover .mud-table-cell {
    background-color: #232a3a !important;
}

/* MudTabs active tab indicator */
.mud-tab.mud-tab-active {
    color: #f83812 !important;
    font-weight: 600 !important;
}

.mud-tab-slider {
    background-color: #f83812 !important;
}

/* Info field boxes (company details, etc.) */
.km-info-field {
    background: #141b2b;
    border: 1px solid #2e3545;
    border-radius: 6px;
    padding: 12px 16px;
}

.km-info-field .km-info-label {
    color: #9fb1bc;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* Upload drop zone enhancement */
.km-upload-zone {
    background-color: #141b2b;
    border: 2px dashed rgba(93, 63, 57, 0.8);
    border-radius: 12px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.km-upload-zone:hover {
    border-color: rgba(248, 56, 18, 0.6);
    background-color: rgba(248, 56, 18, 0.04);
}

/* ================================================================
   A-theme atoms — shared utility classes for the redesigned pages.
   These mirror the design tokens in /tmp/design-fetch/fuvar/project/web/tokens.jsx.
   Coexist with the older .km-* classes (kept for legacy pages).
   ================================================================ */

:root {
    --fv-bg:         #0c1322;
    --fv-bg-deep:    #070e1d;
    --fv-bg-deeper:  #040814;
    --fv-surface:    #191f2f;
    --fv-surface-2:  #222a3d;
    --fv-line:       #2e3545;
    --fv-line-soft:  #232a3a;
    --fv-line-faint: #1c2333;
    --fv-text:       #ffffff;
    --fv-muted:      #9fb1bc;
    --fv-muted-dim:  #6b7a86;
    --fv-muted-deep: #4b5563;
    --fv-primary:        #f83812;
    --fv-primary-deep:   #c42e0e;
    --fv-primary-lite:   #ff6b4a;
    --fv-primary-glow:   rgba(248, 56, 18, 0.18);
    --fv-primary-soft:   rgba(248, 56, 18, 0.10);
    --fv-primary-border: rgba(248, 56, 18, 0.30);
    --fv-amber:   #ffae03;
    --fv-info:    #3b82f6;
    --fv-success: #10b981;
    --fv-warning: #f59e0b;
    --fv-error:   #ef4444;
    --fv-font:        'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --fv-font-mono:   'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --fv-eyebrow-spacing: 1.4px;
}

.fv-font      { font-family: var(--fv-font); }
.fv-mono      { font-family: var(--fv-font-mono); }
.fv-tabular   { font-variant-numeric: tabular-nums; }

/* Eyebrow — small uppercase tracking label */
.fv-eyebrow {
    font-family: var(--fv-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: var(--fv-eyebrow-spacing);
    text-transform: uppercase;
    color: var(--fv-muted-dim);
    line-height: 1.2;
}

    .fv-eyebrow.fv-eyebrow--primary { color: var(--fv-primary); }
    .fv-eyebrow.fv-eyebrow--success { color: var(--fv-success); }
    .fv-eyebrow.fv-eyebrow--warning { color: var(--fv-warning); }
    .fv-eyebrow.fv-eyebrow--error   { color: #fca5a5; }
    .fv-eyebrow.fv-eyebrow--info    { color: #9ecaff; }
    .fv-eyebrow.fv-eyebrow--muted   { color: var(--fv-muted); }

/* Card — surface tile with rounded border */
.fv-card {
    background: var(--fv-surface);
    border: 1px solid var(--fv-line-soft);
    border-radius: 14px;
    padding: 16px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .fv-card.fv-card--padless     { padding: 0; }
    .fv-card.fv-card--dense       { padding: 12px; }
    .fv-card.fv-card--spacious    { padding: 24px; }
    .fv-card.fv-card--accent-primary { border-color: var(--fv-primary-border); box-shadow: 0 0 0 1px rgba(248,56,18,0.08), 0 4px 24px -10px rgba(248,56,18,0.18); }
    .fv-card.fv-card--accent-info    { border-color: rgba(59,130,246,0.30); }
    .fv-card.fv-card--accent-warning { border-color: rgba(245,158,11,0.30); }
    .fv-card.fv-card--accent-error   { border-color: rgba(239,68,68,0.30); }
    .fv-card.fv-card--accent-success { border-color: rgba(16,185,129,0.30); }
    .fv-card.fv-card--hover { cursor: pointer; }
    .fv-card.fv-card--hover:hover {
        border-color: var(--fv-line);
        background: var(--fv-surface-2);
        transform: translateY(-1px);
    }

/* Field cell — eyebrow label + value tile (data grid building block) */
.fv-field-cell {
    background: var(--fv-surface);
    border: 1px solid var(--fv-line-soft);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

    .fv-field-cell.fv-field-cell--dense { padding: 10px 12px; gap: 4px; }
    .fv-field-cell .fv-field-cell__value {
        font-family: var(--fv-font);
        font-size: 15px;
        font-weight: 600;
        color: var(--fv-text);
        letter-spacing: -0.005em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fv-field-cell.fv-field-cell--dense .fv-field-cell__value { font-size: 13.5px; }
    .fv-field-cell .fv-field-cell__value--mono {
        font-family: var(--fv-font-mono);
        letter-spacing: 0.01em;
    }
    .fv-field-cell .fv-field-cell__value--empty { color: var(--fv-muted-dim); }
    .fv-field-cell .fv-field-cell__value--custom {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

/* Icon tile — rounded square tinted icon container */
.fv-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(40,147,247,0.15);
    color: #075985;
    flex-shrink: 0;
}

    .fv-icon-tile.fv-icon-tile--sm { width: 36px; height: 36px; border-radius: 9px; }
    .fv-icon-tile.fv-icon-tile--lg { width: 56px; height: 56px; border-radius: 14px; }
    .fv-icon-tile.fv-icon-tile--primary { background: var(--fv-primary-soft); color: #9f250c; }
    .fv-icon-tile.fv-icon-tile--info    { background: rgba(40,147,247,0.15); color: #075985; }
    .fv-icon-tile.fv-icon-tile--success { background: rgba(16,185,129,0.14); color: #047857; }
    .fv-icon-tile.fv-icon-tile--warning { background: rgba(245,158,11,0.14); color: #92400e; }
    .fv-icon-tile.fv-icon-tile--error   { background: rgba(239,68,68,0.16); color: #b91c1c; }
    .fv-icon-tile.fv-icon-tile--surface { background: var(--fv-surface); color: var(--fv-muted); }
    .fv-icon-tile.fv-icon-tile--muted   { background: rgba(159,177,188,0.10); color: var(--fv-muted); }

/* Chip — status / category pill */
.fv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(159,177,188,0.10);
    color: var(--fv-muted);
    font-family: var(--fv-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(159,177,188,0.28);
    white-space: nowrap;
    line-height: 1.2;
}

    .fv-chip.fv-chip--md { font-size: 11px; padding: 5px 10px; }
    .fv-chip.fv-chip--lg { font-size: 12px; padding: 6px 12px; }
    .fv-chip.fv-chip--primary { background: var(--fv-primary-soft); color: #9f250c; border-color: var(--fv-primary-border); }
    .fv-chip.fv-chip--info    { background: rgba(158,202,255,0.12); color: #075985; border-color: rgba(158,202,255,0.28); }
    .fv-chip.fv-chip--success { background: rgba(16,185,129,0.14); color: #047857; border-color: rgba(16,185,129,0.28); }
    .fv-chip.fv-chip--warning { background: rgba(245,158,11,0.14); color: #92400e; border-color: rgba(245,158,11,0.28); }
    .fv-chip.fv-chip--error   { background: rgba(239,68,68,0.16); color: #b91c1c; border-color: rgba(239,68,68,0.28); }
    .fv-chip__dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        flex-shrink: 0;
    }

/* Timestamp pending animation */
.fv-chip--ts-pending .mud-icon-root {
    animation: fv-ts-pulse 1.8s ease-in-out infinite;
}

@keyframes fv-ts-pulse {
    0%, 100% { opacity: 1; transform: rotate(0deg); }
    50% { opacity: 0.5; transform: rotate(180deg); }
}

/* Section heading — left bar accent + title + optional eyebrow + right slot */
.fv-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
}

    .fv-section-heading__left {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    .fv-section-heading__row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    .fv-section-heading__bar {
        width: 3px;
        height: 18px;
        border-radius: 2px;
        background: var(--fv-primary);
        flex-shrink: 0;
    }
    .fv-section-heading__underline {
        width: 24px;
        height: 2px;
        background: var(--fv-primary);
        margin-left: 4px;
        flex-shrink: 0;
    }
    .fv-section-heading__title {
        font-family: var(--fv-font);
        font-size: 15px;
        font-weight: 700;
        color: var(--fv-text);
        letter-spacing: -0.005em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fv-section-heading__right { flex-shrink: 0; }

/* Page header — eyebrow + h1 + status chip + actions */
.fv-page-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

    .fv-page-header__row {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
    }
    .fv-page-header__title-block {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    .fv-page-header__title-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .fv-page-header__title {
        margin: 0;
        font-family: var(--fv-font);
        font-size: 28px;
        font-weight: 800;
        color: var(--fv-text);
        letter-spacing: -0.02em;
    }
    .fv-page-header__actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
    @media (max-width: 599px) {
        .fv-page-header__row { flex-direction: column; align-items: flex-start; }
        .fv-page-header__title { font-size: 22px; }
        .fv-page-header__actions { align-self: stretch; }
    }

/* Primary gradient button — consolidates the inline-styled gradient buttons */
.fv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f83812 0%, #ff5635 100%);
    color: #1f0e08;
    border: 1px solid transparent;
    font-family: var(--fv-font);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 20px -8px rgba(248,56,18,0.5);
    transition: box-shadow .2s ease, transform .1s ease;
}

    .fv-btn-primary:hover {
        background: linear-gradient(135deg, #ff5635 0%, #f83812 100%);
        box-shadow: 0 0 24px rgba(248,56,18,0.4);
        transform: translateY(-1px);
    }
    .fv-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

/* Tabular helpers + scoped MudBlazor overrides for tabbed pages */
.fv-tabs .mud-tab {
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

@media (max-width: 599px) {
    .fv-tabs-with-mobile-picker .mud-tabs-toolbar {
        display: none !important;
    }
}

.fv-mobile-picker-only,
.fv-picker-tabs.fv-picker-tabs__mobile {
    display: none;
}

.fv-picker-tabs.fv-picker-tabs__mobile--force {
    display: flex;
}

@media (max-width: 599px) {
    .fv-mobile-picker-only {
        display: block;
    }

    .fv-picker-tabs__desktop {
        display: none;
    }

    .fv-picker-tabs.fv-picker-tabs__mobile {
        display: flex;
    }
}

/* Form section scoped to redesigned pages */
.fv-form .mud-input-control .mud-input,
.fv-form .mud-input-control .mud-input-slot {
    background: var(--fv-bg-deep) !important;
    border-radius: 10px !important;
}

/* Banner alert variant used on recalc/salary pages */
.fv-banner {
    border-radius: 12px !important;
    border: 1px solid var(--fv-line-soft) !important;
}

/* KvList — definition list with eyebrow labels + values */
.fv-kv {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .fv-kv__row {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 0;
        border-bottom: 1px solid var(--fv-line-faint);
    }
    .fv-kv__row:last-child { border-bottom: none; }
    .fv-kv.fv-kv--dense .fv-kv__row { padding: 4px 0; }
    .fv-kv__value {
        font-family: var(--fv-font);
        font-size: 12.5px;
        font-weight: 600;
        color: var(--fv-text);
        text-align: right;
    }
    .fv-kv__value--mono { font-family: var(--fv-font-mono); }

/* Empty state card */
.fv-empty-state {
    background: var(--fv-surface);
    border: 1px solid var(--fv-line-soft);
    border-radius: 14px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    min-height: 220px;
}

    .fv-empty-state__title {
        font-family: var(--fv-font);
        font-size: 16px;
        font-weight: 700;
        color: var(--fv-text);
        margin-top: 6px;
    }
    .fv-empty-state__body {
        font-family: var(--fv-font);
        font-size: 12.5px;
        color: var(--fv-muted-dim);
        max-width: 360px;
        line-height: 1.5;
    }

/* Stepper — lifecycle pips */
.fv-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 0;
}

    .fv-stepper__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .fv-stepper__pip {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--fv-surface);
        border: 2px solid var(--fv-muted-dim);
        color: var(--fv-muted-dim);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: var(--fv-font-mono);
        font-size: 12px;
        font-weight: 800;
    }
    .fv-stepper__item--done .fv-stepper__pip { background: rgba(16,185,129,0.16); border-color: var(--fv-success); color: var(--fv-success); }
    .fv-stepper__item--current .fv-stepper__pip { background: var(--fv-primary-soft); border-color: var(--fv-primary); color: var(--fv-primary); box-shadow: 0 0 0 5px rgba(248,56,18,0.08); }
    .fv-stepper__item--error .fv-stepper__pip { background: rgba(239,68,68,0.16); border-color: var(--fv-error); color: var(--fv-error); }
    .fv-stepper__label {
        font-family: var(--fv-font);
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        color: var(--fv-muted-dim);
        white-space: nowrap;
    }
    .fv-stepper__item--current .fv-stepper__label { color: var(--fv-text); }
    .fv-stepper__sep {
        flex: 1;
        height: 2px;
        background: var(--fv-line-faint);
        margin: 0 4px -22px;
        min-width: 24px;
    }
    .fv-stepper__sep--done { background: var(--fv-success); }

/* Timeline — vertical event list (route nodes, stops, history) */
.fv-timeline {
    display: flex;
    flex-direction: column;
}

    .fv-timeline-node {
        display: flex;
        gap: 14px;
        position: relative;
    }
    .fv-timeline-node__rail {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    .fv-timeline-node__pip {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-family: var(--fv-font-mono);
        font-size: 11px;
        font-weight: 700;
        z-index: 2;
        background: var(--fv-surface);
        border: 2px solid var(--fv-line);
        color: var(--fv-muted);
    }
    .fv-timeline-node--done    .fv-timeline-node__pip { background: rgba(16,185,129,0.18); border-color: var(--fv-success); color: var(--fv-success); }
    .fv-timeline-node--current .fv-timeline-node__pip { background: var(--fv-primary-soft); border-color: var(--fv-primary); color: var(--fv-primary); box-shadow: 0 0 0 5px rgba(248,56,18,0.10); }
    .fv-timeline-node--paused  .fv-timeline-node__pip { background: rgba(245,158,11,0.18); border-color: var(--fv-warning); color: var(--fv-warning); }
    .fv-timeline-node--error   .fv-timeline-node__pip { background: rgba(239,68,68,0.18); border-color: var(--fv-error); color: var(--fv-error); }
    .fv-timeline-node__connector {
        width: 2px;
        flex: 1;
        background: var(--fv-line-soft);
        margin-top: -1px;
        margin-bottom: -1px;
    }
    .fv-timeline-node--done .fv-timeline-node__connector { background: var(--fv-success); }
    .fv-timeline-node__body {
        flex: 1;
        min-width: 0;
        padding-bottom: 20px;
    }
    .fv-timeline-node--last .fv-timeline-node__body { padding-bottom: 0; }
    .fv-timeline-node__title {
        font-family: var(--fv-font);
        font-size: 14px;
        font-weight: 700;
        color: var(--fv-text);
        line-height: 1.3;
    }
    .fv-timeline-node--pending .fv-timeline-node__title { color: var(--fv-muted); }
    .fv-timeline-node__sub {
        margin-top: 3px;
        font-size: 12px;
        font-weight: 500;
        color: var(--fv-muted-dim);
        line-height: 1.4;
    }
    .fv-timeline-node__meta {
        margin-top: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

/* PickerTabs — mobile picker + prev/next, desktop tabs */
.fv-picker-tabs {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

    .fv-picker-tabs__nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--fv-surface);
        border: 1px solid var(--fv-line-soft);
        color: var(--fv-muted);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .fv-picker-tabs__nav-btn:disabled {
        color: var(--fv-muted-dim);
        cursor: not-allowed;
        opacity: 0.6;
    }
    .fv-picker-tabs__main {
        flex: 1;
        height: 44px;
        border-radius: 12px;
        background: var(--fv-primary-soft);
        border: 1px solid var(--fv-primary-border);
        color: #ff8a6e;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        gap: 10px;
        font-family: var(--fv-font);
    }
    .fv-picker-tabs__main-left {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.9px;
        text-transform: uppercase;
        min-width: 0;
        overflow: hidden;
    }
    .fv-picker-tabs__main-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fv-picker-tabs__main-right {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--fv-muted-dim);
        font-family: var(--fv-font-mono);
        font-size: 10.5px;
        font-weight: 600;
        flex-shrink: 0;
    }
    .fv-picker-tabs__menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        font-family: var(--fv-font);
        font-size: 13px;
        font-weight: 600;
    }
    .fv-picker-tabs__menu-item--active {
        background: var(--fv-primary-soft);
        color: #ff8a6e;
    }

/* PickerTabs sheet — opens below the picker button on toggle */
.fv-picker-tabs__main-wrap {
    flex: 1;
    position: relative;
    display: flex;
    min-width: 0;
}

.fv-picker-tabs__sheet-popover {
    width: 100%;
    margin-top: 6px;
    border-radius: 14px !important;
    background: var(--fv-surface) !important;
    border: 1px solid var(--fv-line) !important;
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.fv-picker-tabs__sheet {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    max-height: 60vh;
    overflow-y: auto;
}

.fv-picker-tabs__sheet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--fv-text);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--fv-font);
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

    .fv-picker-tabs__sheet-item:hover:not(:disabled) {
        background: var(--fv-surface-2);
    }
    .fv-picker-tabs__sheet-item:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .fv-picker-tabs__sheet-item--active {
        background: var(--fv-primary-soft);
        color: #ff8a6e;
    }
    .fv-picker-tabs__sheet-item-label {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.fv-picker-tabs__backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

/* Auth split layout */
.fv-auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px - 120px);
    gap: 0;
}

    @media (max-width: 899px) {
        .fv-auth-split { grid-template-columns: 1fr; }
        .fv-auth-split__brand { display: none; }
    }
    .fv-auth-split__brand {
        position: relative;
        background: radial-gradient(circle at 30% 30%, rgba(248,56,18,0.22) 0%, transparent 55%), var(--fv-bg);
        padding: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
    .fv-auth-split__form-side {
        padding: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Quick stats strip */
.fv-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

    @media (max-width: 899px) { .fv-quick-stats { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 599px) { .fv-quick-stats { grid-template-columns: repeat(2, 1fr); } }

    .fv-quick-stat {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
        background: var(--fv-surface);
        border: 1px solid var(--fv-line-soft);
        border-radius: 12px;
        min-width: 0;
    }
    .fv-quick-stat__value {
        font-family: var(--fv-font-mono);
        font-size: 24px;
        font-weight: 800;
        color: var(--fv-text);
        line-height: 1;
    }
    .fv-quick-stat__label {
        font-family: var(--fv-font);
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 1.1px;
        text-transform: uppercase;
        color: var(--fv-muted-dim);
    }

/* Field cell grid helper — 3 column on desktop, collapses */
.fv-field-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

    @media (max-width: 899px) { .fv-field-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 599px) { .fv-field-grid { grid-template-columns: 1fr; } }

/* Money value formatting */
.fv-money {
    font-family: var(--fv-font-mono);
    font-weight: 700;
    color: var(--fv-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

    .fv-money__suffix {
        font-weight: 500;
        color: var(--fv-muted);
        margin-left: 4px;
        letter-spacing: 0.5px;
        font-size: 0.65em;
    }
