/* ??????????????? BASE ??????????????? */
html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

.mud-layout,
.mud-main-content {
    max-width: 100%;
    overflow-x: clip;
}

a, .btn-link {
    color: #4B49AC;
}

.btn-primary {
    color: #fff;
    background-color: #4B49AC;
    border-color: #3B3990;
}

.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 #7978C9;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #2EAF5D;
}

.invalid {
    outline: 1px solid #D44050;
}

.validation-message {
    color: #D44050;
}

/* ??????????????? HERO SECTION ??????????????? */
.hero-section {
    background: linear-gradient(135deg, #2E2C6E 0%, #4B49AC 50%, #5E6FBF 100%);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(121,120,201,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23,162,184,0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.search-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
}

.search-form-stop {
    flex: 1 1 12rem;
    min-width: 0;
}

.search-form-stop > *,
.search-form-date > * {
    width: 100%;
    min-width: 0;
}

.search-form-row .mud-input-control-root,
.search-form-row .mud-input-root {
    min-width: 0;
}

.search-form-date {
    flex: 0 1 10rem;
    min-width: 0;
}

.search-form-btn-wrap {
    flex: 0 0 auto;
    min-width: 0;
}

.search-form-btn {
    height: 56px;
    font-weight: 600;
    min-width: 0;
    text-transform: none;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home-section-divider {
    margin-left: 2rem;
    margin-right: 2rem;
}

@media (max-width: 599px) {
    .home-section-divider {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero-section .mud-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .search-card {
        padding: 1rem !important;
    }

    .search-form-stop,
    .search-form-date,
    .search-form-btn-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-form-btn {
        width: 100%;
    }
}

/* ??????????????? APPBAR GLASS EFFECT ??????????????? */
.appbar-glass {
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
}

/* App bar: hide redundant buy-ticket CTA on mobile (available in drawer menu) */
@media (max-width: 959px) {
    .appbar-buy-ticket-btn {
        display: none !important;
    }
}

/* ??????????????? NAV DRAWER BRANDING ??????????????? */
.nav-brand {
    padding: 12px 16px 4px 16px;
}

.nav-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.nav-brand + .mud-divider {
    margin: 2px 0 0 0 !important;
}

#nav-drawer .mud-nav-menu .mud-divider {
    margin: 6px 0 !important;
}

#nav-drawer .mud-divider-fullwidth {
    flex-grow: 0 !important;
}

/* ??????????????? GOOGLE MAPS INFOWINDOW ??????????????? */
.gm-style-iw {
    text-align: center;
}

.gm-style-iw-d {
    overflow: hidden !important;
}

/* ??????????????? DATEPICKER ??????????????? */
/* The input width is constrained via a wrapper <div> around the picker, NOT via the
   picker's Style (MudBlazor copies that Style onto the calendar paper and would shrink
   it). Keep the popped-out calendar at its natural width and above other layers. */
.mud-picker-inline-paper {
    z-index: 1400;
    min-width: 312px;
}

.mud-input-slot > input[type="text"] {
    min-width: 0;
}

/* ??????????????? FEATURE CARDS ??????????????? */
.feature-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ??????????????? ADMIN PAGE HEADERS ??????????????? */
.page-header {
    margin-bottom: 24px;
}

.page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card {
    border-radius: 16px;
}

/* ??????????????? ROUTE EDITOR (add/edit) ??????????????? */
.route-editor-page {
    max-width: 100%;
    overflow-x: clip;
}

.route-active-toggle {
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-grey);
}

.route-editor-tabs .mud-tabs-toolbar {
    background: var(--mud-palette-background-grey);
    border-radius: 12px;
    padding: 4px;
}

.route-editor-tab-panel {
    padding-top: 1.25rem;
}

.route-add-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.route-add-bar-input {
    flex: 1 1 16rem;
    min-width: 0;
}

.route-add-bar-btn {
    flex: 0 0 auto;
    height: 56px;
}

.route-builder-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    border: 2px dashed var(--mud-palette-lines-default);
    background: var(--mud-palette-background-grey);
    text-align: center;
}

.route-builder-empty--compact {
    padding: 2rem 1rem;
}

.route-builder-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    margin: 0 -0.25rem;
    -webkit-overflow-scrolling: touch;
}

.route-builder-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-width: min-content;
    padding: 0.25rem;
}

.route-builder-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.35rem;
    min-width: 88px;
    flex-shrink: 0;
}

.route-builder-segment-line {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-primary) 35%, transparent), var(--mud-palette-lines-default));
    border-radius: 2px;
}

.route-builder-segment-minutes {
    width: 72px;
}

.route-builder-segment-minutes .mud-input-root {
    font-size: 0.8rem;
}

.route-builder-card {
    flex: 0 0 220px;
    width: 220px;
    min-height: 168px;
    padding: 0.85rem !important;
    border-radius: 14px !important;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.route-builder-card:hover {
    box-shadow: 0 4px 16px rgba(75, 73, 172, 0.12);
}

.route-builder-card--start {
    border-color: color-mix(in srgb, #2EAF5D 55%, var(--mud-palette-lines-default));
    border-top: 3px solid #2EAF5D;
}

.route-builder-card--end {
    border-color: color-mix(in srgb, #D44050 55%, var(--mud-palette-lines-default));
    border-top: 3px solid #D44050;
}

.route-editor-link-card {
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.route-editor-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 40%, var(--mud-palette-lines-default));
}

.route-editor-actions {
    position: sticky;
    bottom: 12px;
    z-index: 2;
}

@media (max-width: 599px) {
    .route-add-bar-btn {
        width: 100%;
    }

    .route-builder-card {
        flex: 0 0 200px;
        width: 200px;
    }

    .route-editor-actions {
        position: static;
    }
}

/* Stats pages — filters and mobile tables without horizontal scroll */
.stats-page {
    max-width: 100%;
    overflow-x: clip;
}

.stats-page-toolbar {
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.stats-page-filters {
    flex-wrap: wrap;
    min-width: 0;
}

.stats-filter-date {
    width: 170px;
    min-width: 0;
    max-width: 100%;
}

.stats-table-card {
    max-width: 100%;
    overflow-x: clip;
}

.stats-table-card .mud-table-container {
    overflow-x: clip;
}

.stats-cell-value {
    min-width: 0;
    flex: 1 1 auto;
    text-align: end;
}

@media (max-width: 959px) {
    .stats-filter-date {
        width: 100%;
        flex: 1 1 100%;
    }

    .stats-table-card {
        padding: 12px !important;
    }

    /* Keep MudBlazor flex layout (label left, value right) — same as dashboard */
    .stats-table-card .mud-table .mud-table-cell {
        min-width: 0;
        align-items: flex-start;
        gap: 12px;
        overflow-wrap: anywhere;
    }

    .stats-table-card .mud-table .mud-table-cell::before {
        flex-shrink: 0;
        max-width: 42%;
        overflow-wrap: break-word;
    }
}

/* ??????????????? AUTH PAGES ??????????????? */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-background)) 0%, var(--mud-palette-background) 55%);
}

.auth-card {
    border-radius: 20px !important;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
}

.auth-card-accent {
    height: 5px;
    background: linear-gradient(90deg, #4B49AC, #17A2B8);
}

.auth-card-body {
    padding: 2rem 2rem 1.75rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.auth-brand-title {
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* ??????????????? KPI CARDS (dashboard / stats) ??????????????? */
.kpi-card {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.kpi-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.kpi-card-accent-primary { background: linear-gradient(90deg, #4B49AC, #7978C9); }
.kpi-card-accent-secondary { background: linear-gradient(90deg, #17A2B8, #5BC8DB); }
.kpi-card-accent-success { background: linear-gradient(90deg, #2EAF5D, #5EC48E); }
.kpi-card-accent-warning { background: linear-gradient(90deg, #E5A100, #E8B84D); }

/* ??????????????? LOADING / EMPTY STATES ??????????????? */
.loading-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
}

.empty-state-panel {
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 16px;
}

/* ??????????????? ROUTE MAP ??????????????? */
.route-map-container {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
}

.route-map-marker {
    position: absolute;
    background: var(--mud-palette-surface);
    border: 2px solid var(--mud-palette-primary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--mud-palette-primary);
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.route-map-marker.selected {
    background: var(--mud-palette-primary);
    color: #fff;
}

.route-map-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.route-map-stop-item {
    border-radius: 12px;
}

/* ??????????????? BOOKING / TICKETS ??????????????? */
.ticket-header {
    background: linear-gradient(135deg, #3B3990, #4B49AC, #5E6FBF);
    padding: 20px 24px;
    color: #fff;
}

.trip-summary-card {
    border-radius: 16px;
    border-left: 4px solid var(--mud-palette-primary);
}

.owner-preview-panel {
    border-radius: 16px;
    border: 2px solid var(--mud-palette-warning);
}

/* ??????????????? NAV DRAWER ??????????????? */
.nav-section-title {
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    opacity: 0.72;
    margin: 8px 0 4px 12px !important;
}

.nav-user-panel {
    margin: 12px 12px 8px;
    padding: 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
    border: 1px solid var(--mud-palette-lines-default);
}

.nav-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    word-break: break-word;
}

/* ??????????????? FILTER TOOLBAR ??????????????? */
.filter-toolbar {
    gap: 12px;
}

.filter-toolbar .mud-input-root,
.filter-toolbar .mud-select {
    min-width: 160px;
}

/* ??????????????? NOT FOUND ??????????????? */
.not-found-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.not-found-card {
    border-radius: 20px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

/* ??????????????? BOOKING FLOW ??????????????? */
.booking-step-card {
    border-radius: 16px;
}

.seat-grid-container {
    max-width: 420px;
    margin: 0 auto;
}

.seat-bus-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seat-bus-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2.25rem 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.seat-bus-aisle {
    border-left: 2px dashed var(--mud-palette-lines-default);
    border-right: 2px dashed var(--mud-palette-lines-default);
    border-radius: 4px;
    min-height: 48px;
    opacity: 0.45;
}

.seat-cell {
    min-height: 48px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: #fff;
    cursor: pointer;
}

.seat-cell:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.seat-cell:not(:disabled):hover {
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.seat-cell--empty {
    min-height: 48px;
    visibility: hidden;
    pointer-events: none;
}

.seat-cell--available {
    background: var(--mud-palette-success);
}

.seat-cell--available.seat-cell--locked:disabled {
    background: var(--mud-palette-success);
    opacity: 0.45;
}

.seat-cell--selected {
    background: var(--mud-palette-info);
}

.seat-cell--held {
    background: var(--mud-palette-warning);
    color: rgba(0, 0, 0, 0.75);
}

.seat-cell--booked {
    background: var(--mud-palette-error);
}

.seat-cell--blocked:disabled {
    background: var(--mud-palette-action-disabled-background);
    color: var(--mud-palette-text-disabled);
    opacity: 0.85;
}

/* Capacity mode (no seat numbering) */
.capacity-booking-card {
    border-radius: 20px;
    border: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
    background: var(--mud-palette-surface);
}

.capacity-booking-hero {
    background: linear-gradient(135deg, #2E2C6E 0%, #4B49AC 48%, #6B69D6 100%);
    color: #fff;
    padding: 2rem 2rem 2.25rem;
    position: relative;
    overflow: hidden;
}

.capacity-booking-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.capacity-booking-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.capacity-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.capacity-stat-value {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.capacity-stat-label {
    opacity: 0.88;
    font-size: 0.95rem;
}

.capacity-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.capacity-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
}

.capacity-booking-body {
    padding: 2rem 1.5rem 2.25rem;
}

.capacity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--mud-palette-background-grey);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--mud-palette-lines-default);
}

.capacity-stepper-value {
    min-width: 120px;
    text-align: center;
}

.capacity-stepper-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(75, 73, 172, 0.2);
}

.capacity-summary-panel {
    border-radius: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-top: 4px solid #4B49AC;
    height: 100%;
}

.capacity-online-meter .mud-progress-linear {
    border-radius: 6px;
}

@media (max-width: 599px) {
    .capacity-booking-hero {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .capacity-stat-value {
        font-size: 2.5rem;
    }

    .capacity-stepper {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }
}

/* ??????????????? TICKET-STYLE CONFIRMATION ??????????????? */
.ticket-card {
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4B49AC, #17A2B8);
}

/* ??????????????? DEPARTURE RESULT CARDS ??????????????? */
.departure-card {
    border-radius: 12px;
    border-left: 4px solid var(--mud-palette-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.departure-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.departure-stop-autocomplete {
    flex: 1;
    min-width: 0;
}

/* ??????????????? FOOTER ??????????????? */
.app-footer {
    background: #1E1D3D;
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px 0;
    margin-top: 48px;
}

.app-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-footer a:hover {
    color: #5BC8DB;
}

/* ??????????????? STATUS CHIPS ??????????????? */
.status-active {
    color: var(--mud-palette-success, #2EAF5D);
    background-color: color-mix(in srgb, var(--mud-palette-success, #2EAF5D) 12%, transparent);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.status-inactive {
    color: var(--mud-palette-error, #D44050);
    background-color: color-mix(in srgb, var(--mud-palette-error, #D44050) 12%, transparent);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.status-maintenance {
    color: var(--mud-palette-warning, #E5A100);
    background-color: color-mix(in srgb, var(--mud-palette-warning, #E5A100) 12%, transparent);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

/* ??????????????? BLAZOR ERROR ??????????????? */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ??????????????? GOOGLE MAPS AUTOCOMPLETE ??????????????? */
.pac-container {
    z-index: 10000 !important;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-family: Inter, Roboto, Arial, sans-serif;
    font-size: 14px;
}

.pac-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #e6e6e6;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

.pac-item-selected {
    background-color: #e8f0fe;
}

.pac-icon {
    margin-right: 8px;
}

.pac-item-query {
    font-size: 13px;
    color: #000;
}

.pac-matched {
    font-weight: bold;
}

/* Dashboard KPI carousel */
.dashboard-kpi-carousel {
    position: relative;
}

.dashboard-kpi-window {
    flex: 1;
    overflow: hidden;
    padding: 0 30px;
    touch-action: pan-y;
}

.dashboard-kpi-grid {
    align-items: stretch;
}

.dashboard-kpi-item {
    display: flex;
}

.dashboard-kpi-item > div {
    display: flex;
}

.dashboard-kpi-card {
    border-radius: 16px;
    height: 100%;
    min-height: 164px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.dashboard-carousel-arrow {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    box-shadow: 0 6px 18px rgba(20, 20, 40, 0.14);
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.dashboard-carousel-arrow-left {
    left: 0;
}

.dashboard-carousel-arrow-right {
    right: 0;
}

.dashboard-fleet-vehicle {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 44px;
    padding: 6px;
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.dashboard-fleet-vehicle:hover,
.dashboard-fleet-vehicle:focus-visible,
.dashboard-fleet-vehicle.selected {
    background: color-mix(in srgb, var(--fleet-vehicle-color, #4B49AC) 10%, transparent);
    border-color: color-mix(in srgb, var(--fleet-vehicle-color, #4B49AC) 42%, var(--mud-palette-lines-default));
    outline: none;
}

.dashboard-fleet-vehicle.selected {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fleet-vehicle-color, #4B49AC) 70%, transparent);
}

@media (max-width: 600px) {
    .dashboard-kpi-window {
        padding: 0 22px;
    }

    .dashboard-kpi-card {
        min-height: 172px;
    }

    .dashboard-carousel-arrow-left {
        left: -2px;
    }

    .dashboard-carousel-arrow-right {
        right: -2px;
    }
}
