:root {
    --admin-bg: #f3f6fb;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8fafc;
    --admin-border: #dbe3ef;
    --admin-text: #18212f;
    --admin-muted: #6b778c;
    --admin-primary: #153e75;
    --admin-primary-strong: #0d2b55;
    --admin-accent: #0f9d58;
    --admin-danger: #c53929;
    --admin-warning: #d98324;
    --admin-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
    --admin-sidebar-width: 280px;
    --admin-topbar-height: 72px;
}

body.admin-shell {
    background: var(--admin-bg);
    color: var(--admin-text);
    display: block; /* override style.css flex */
}

/* Prevent style.css from collapsing .btn-group into a column on mobile */
@media (max-width: 768px) {
    .admin-shell .btn-group {
        flex-direction: row;
    }
    .admin-shell .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
}

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

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--admin-sidebar-width);
    background: linear-gradient(180deg, #0d2b55 0%, #153e75 100%);
    color: #fff;
    z-index: 1040;
    overflow-y: auto;
    box-shadow: var(--admin-shadow);
}

.admin-sidebar-inner {
    padding: 20px 16px 24px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.1rem;
}

.admin-brand-title {
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.admin-brand-subtitle {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
}

.admin-nav-group {
    margin-bottom: 18px;
}

.admin-nav-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.56);
    padding: 0 12px;
    margin-bottom: 8px;
}

.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateX(2px);
}

.admin-nav-link-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-nav-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffd166;
    color: #3d2c00;
    font-size: 0.73rem;
    font-weight: 700;
}

.admin-user-card {
    margin-top: 20px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-user-name {
    font-weight: 700;
}

.admin-user-role {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.74);
}

.admin-main {
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--admin-topbar-height);
    background: rgba(243, 246, 251, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--admin-border);
}

.admin-topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
}

.admin-topbar-left,
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--admin-border);
    background: var(--admin-surface);
    border-radius: 12px;
    color: var(--admin-primary);
}

.admin-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-muted);
    font-size: 0.88rem;
}

.admin-breadcrumbs strong {
    color: var(--admin-text);
}

.admin-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.admin-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-quick-link.is-primary {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #fff;
}

.admin-content {
    padding: 24px;
}

.admin-flash-stack .alert {
    border: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.admin-auth-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at top left, rgba(21, 62, 117, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 157, 88, 0.10), transparent 25%),
        var(--admin-bg);
}

.admin-auth-card {
    width: min(100%, 520px);
}

.admin-auth-panel {
    position: relative;
    overflow: hidden;
    background: var(--admin-surface);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.admin-auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(21, 62, 117, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15, 157, 88, 0.10), transparent 28%);
    pointer-events: none;
}

.admin-auth-panel > * {
    position: relative;
}

.admin-auth-panel-header {
    padding: 28px 28px 16px;
}

.admin-auth-panel-body {
    padding: 0 28px 28px;
}

.admin-auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #153e75 0%, #1d74d8 100%);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 16px 30px rgba(21, 62, 117, 0.26);
    margin-bottom: 18px;
}

.admin-auth-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.admin-auth-subtitle {
    margin: 0;
    color: var(--admin-muted);
}

.admin-auth-footer {
    padding-top: 18px;
    margin-top: 22px;
    border-top: 1px solid var(--admin-border);
    color: var(--admin-muted);
    text-align: center;
}

.admin-overlay {
    display: none;
}

@media (max-width: 1199px) {
    .admin-quick-actions {
        display: none;
    }
}

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

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

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

    .admin-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1035;
    }

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

@media (max-width: 767px) {
    .admin-topbar-inner,
    .admin-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-page-title {
        font-size: 1rem;
    }

    .admin-breadcrumbs {
        display: none;
    }
}

.admin-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #245aa6 100%);
    box-shadow: var(--admin-shadow);
    margin-bottom: 24px;
}

.admin-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.admin-hero > * {
    position: relative;
}

.admin-hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.admin-hero-eyebrow {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.admin-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.admin-hero-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-hero--locations {
    background: linear-gradient(135deg, #153e75 0%, #0f9d58 100%);
}

.admin-hero--dashboard {
    background: linear-gradient(135deg, #2a4f88 0%, #5e7ce2 100%);
}

.admin-hero--clients {
    background: linear-gradient(135deg, #153e75 0%, #1d74d8 52%, #0f9d58 100%);
}

.admin-hero--facturation {
    background: linear-gradient(135deg, #1f3c72 0%, #2a5298 52%, #0f9d58 100%);
}

.admin-hero--form {
    background: linear-gradient(135deg, #153e75 0%, #245aa6 52%, #5b9bd5 100%);
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.admin-panel,
.data-table,
.finance-widget,
.filter-card,
.locations-table,
.calendar-preview,
.pagination-container,
.stat-card,
.stats-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.admin-section-header,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 16px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-text);
}

.section-title i {
    color: var(--admin-primary);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-header,
.locations-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--admin-shadow);
    margin-bottom: 24px;
}

.dashboard-header {
    background: linear-gradient(135deg, #2a4f88 0%, #5e7ce2 100%);
}

.locations-header {
    background: linear-gradient(135deg, #153e75 0%, #0f9d58 100%);
}

.dashboard-header::before,
.locations-header::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -50px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.dashboard-header > *,
.locations-header > * {
    position: relative;
}

.dashboard-header h1,
.locations-header h1 {
    margin-bottom: 8px;
    font-size: 1.85rem;
    font-weight: 800;
}

.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-card,
.stats-card {
    height: 100%;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.stats-card:hover,
.data-table:hover,
.finance-widget:hover,
.calendar-preview:hover,
.filter-card:hover,
.locations-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
    border-color: #c7d5ea;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.stat-card-icon.users { background: linear-gradient(135deg, #e0ecff 0%, #ffe0f1 100%); color: #4a63d3; }
.stat-card-icon.vehicles { background: linear-gradient(135deg, #e3f9e8 0%, #bff0c9 100%); color: #0f9d58; }
.stat-card-icon.clients { background: linear-gradient(135deg, #e1f0ff 0%, #c9ddff 100%); color: #2463eb; }
.stat-card-icon.revenue { background: linear-gradient(135deg, #ffe6f2 0%, #e8ddff 100%); color: #c13ba1; }

.stat-card-value,
.stats-number {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--admin-text);
}

.stat-card-label,
.stats-label {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--admin-muted);
}

.stat-card-details {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stats-card {
    border-left: 4px solid var(--admin-primary);
}

.stats-card.success { border-left-color: var(--admin-accent); }
.stats-card.warning { border-left-color: var(--admin-warning); }
.stats-card.danger { border-left-color: var(--admin-danger); }
.stats-card.info { border-left-color: #1d74d8; }
.stats-card.blue { border-left-color: var(--admin-primary); }
.stats-card.green { border-left-color: var(--admin-accent); }
.stats-card.secondary { border-left-color: #6c757d; }

.stats-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.finance-widget,
.calendar-preview,
.filter-card,
.pagination-container {
    padding: 20px;
}

.finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--admin-border);
}

.finance-item:last-child {
    border-bottom: 0;
}

.finance-item-label,
.table-item-subtitle,
.date-label {
    color: var(--admin-muted);
}

.finance-item-value,
.table-item-title,
.amount-cell {
    font-weight: 700;
    color: var(--admin-text);
}

.finance-item-positive { color: var(--admin-accent); }
.finance-item-negative { color: var(--admin-danger); }
.finance-item-neutral { color: var(--admin-text); }

.data-table,
.locations-table {
    overflow: hidden;
}

.data-table-header,
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--admin-surface-soft);
    border-bottom: 1px solid var(--admin-border);
}

.data-table-body {
    max-height: 420px;
    overflow-y: auto;
}

.table-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.table-item:last-child {
    border-bottom: 0;
}

.table-item-main {
    flex: 1;
}

.table-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-item-amount {
    font-size: 1rem;
    font-weight: 800;
}

.data-mini-grid,
.quick-actions-grid {
    display: grid;
    gap: 14px;
}

.data-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.data-mini-item {
    padding: 14px;
    border-radius: 14px;
    background: var(--admin-surface-soft);
    border: 1px solid var(--admin-border);
    text-align: center;
}

.data-mini-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--admin-primary);
}

.data-mini-label {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 144px;
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid var(--admin-border);
    background: var(--admin-surface);
    text-decoration: none;
    color: var(--admin-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
    border-color: #c7d5ea;
    color: var(--admin-primary);
}

.quick-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.quick-action-label {
    font-weight: 700;
    text-align: center;
}

.alert-widget {
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--admin-border);
    border-left: 4px solid var(--admin-warning);
}

.alert-widget.warning {
    border-left-color: var(--admin-warning);
    background: linear-gradient(135deg, #fff8eb 0%, #fff1cf 100%);
}

.alert-widget.danger {
    border-left-color: var(--admin-danger);
    background: linear-gradient(135deg, #fff1f0 0%, #ffe2df 100%);
}

.quick-filters,
.table-actions,
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-filter-btn {
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

.quick-filter-btn.active {
    background: var(--admin-primary);
    color: #fff;
    border-color: var(--admin-primary);
}

.calendar-header,
.calendar-grid,
.client-info,
.vehicle-info {
    display: flex;
}

.calendar-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    min-height: 84px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid var(--admin-border);
    background: var(--admin-surface-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.calendar-day.today {
    border-color: var(--admin-accent);
    background: #effcf4;
}

.calendar-day.has-booking {
    color: #fff;
    border-color: #245aa6;
    background: linear-gradient(135deg, #245aa6 0%, #153e75 100%);
}

.calendar-day.today.has-booking {
    border-color: #0b7a43;
    background: linear-gradient(135deg, #0f9d58 0%, #0b7a43 100%);
}

.client-info,
.vehicle-info {
    align-items: center;
    gap: 10px;
}

.client-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef7;
    color: var(--admin-primary);
    font-weight: 800;
}

.client-card {
    border-left: 4px solid var(--admin-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
}

.client-card.actif { border-left-color: var(--admin-accent); }
.client-card.inactif { border-left-color: #6c757d; }
.client-card.suspendu { border-left-color: var(--admin-warning); }
.client-card.blacklist { border-left-color: var(--admin-danger); }

.client-detail-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd166 0%, #f97316 100%);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.client-detail-summary {
    padding: 20px;
}

.client-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--admin-surface-soft);
    border: 1px solid var(--admin-border);
    font-size: 0.84rem;
    font-weight: 600;
}

.client-avatar--large {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1d74d8 0%, #153e75 100%);
    color: #fff;
    font-size: 1.05rem;
}

.score-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
}

.score-excellent {
    background-color: #198754;
    color: #fff;
}

.score-bon {
    background-color: #20c997;
    color: #fff;
}

.score-moyen {
    background-color: #ffc107;
    color: #212529;
}

.score-faible {
    background-color: #fd7e14;
    color: #fff;
}

.score-critique {
    background-color: #dc3545;
    color: #fff;
}

.quick-action-btn {
    min-width: 148px;
    padding: 10px 15px;
}

.filter-badge {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.filter-badge:hover,
.filter-badge:focus {
    opacity: 0.88;
    transform: scale(1.04);
}

.client-type-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.client-list-item {
    transition: background 0.2s ease, border-color 0.2s ease;
    border-left: 3px solid transparent;
}

.client-list-item:hover {
    background-color: #f8fbff;
    border-left-color: #1d74d8;
}

.view-toggle .btn {
    border-radius: 0;
}

.view-toggle .btn:first-child {
    border-radius: 10px 0 0 10px;
}

.view-toggle .btn:last-child {
    border-radius: 0 10px 10px 0;
}

.table-wrapper {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
    overflow: hidden;
}

.invoice-number {
    font-weight: 800;
    color: var(--admin-primary);
}

.financial-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.financial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.financial-border {
    width: 4px;
    height: 60px;
    border-radius: 2px;
    flex-shrink: 0;
}

.financial-border.blue { background-color: var(--admin-primary); }
.financial-border.green { background-color: var(--admin-accent); }
.financial-border.warning { background-color: var(--admin-warning); }
.financial-border.danger { background-color: var(--admin-danger); }

.financial-content {
    flex: 1;
}

.financial-label {
    font-size: 0.82rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.financial-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--admin-text);
}

.detail-section-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.wizard-shell {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
    padding: 24px;
}

.wizard-progress {
    height: 8px;
    background-color: #e9eef7;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 28px;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #153e75 0%, #1d74d8 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    gap: 12px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-color: #e9eef7;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9eef7;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px;
    border: 4px solid #fff;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #153e75 0%, #1d74d8 100%);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(29, 116, 216, 0.16);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #0f9d58 0%, #35b76b 100%);
    color: #fff;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-muted);
}

.step.active .step-label {
    color: #1d74d8;
}

.step.completed .step-label {
    color: var(--admin-accent);
}

.wizard-step {
    display: none;
    animation: adminFadeIn 0.3s ease-in-out;
}

.wizard-step.active {
    display: block;
}

.form-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
    margin-bottom: 20px;
}

.form-section-title {
    color: var(--admin-primary);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.required-field::after {
    content: ' *';
    color: var(--admin-danger);
}

.client-preview-card {
    border: 2px dashed var(--admin-border);
    border-radius: 16px;
    padding: 20px;
    background-color: var(--admin-surface-soft);
}

.client-preview-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8edf5;
}

.client-preview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.client-preview-label {
    font-weight: 700;
    color: #495057;
    min-width: 150px;
}

.client-preview-value {
    color: #212529;
}

.dual-input-group {
    display: flex;
    gap: 15px;
}

.dual-input-group > div {
    flex: 1;
}

.client-status-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}

.edit-warning {
    border-left: 4px solid #ffc107;
    padding: 15px;
    background-color: #fff8e1;
    margin-bottom: 20px;
    border-radius: 10px;
}

.invoice-item {
    border: 1px solid #e0e8f3;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fafcff;
    position: relative;
}

.invoice-item:hover {
    border-color: #1d74d8;
    background: #fff;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0.7;
}

.remove-btn:hover {
    opacity: 1;
}

.location-info {
    background: #f0f7ff;
    border-left: 4px solid var(--admin-accent);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header-volcimet {
    background: linear-gradient(135deg, #153e75 0%, #2a5298 100%);
    color: #fff;
}

.btn-volcimet {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #fff;
}

.btn-volcimet:hover {
    background: var(--admin-primary-strong);
    border-color: var(--admin-primary-strong);
    color: #fff;
}

.summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 18px;
    padding: 20px;
    border-left: 4px solid var(--admin-accent);
    border: 1px solid var(--admin-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 2px solid var(--admin-primary);
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--admin-primary);
}

/* ── Mobile : barre total sticky ─────────────────────────────────────────── */
.mobile-total-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0; z-index: 1050;
    background: #fff;
    border-top: 2px solid #1B2E5C;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.mobile-total-label { font-size: .75rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mobile-total-amount { font-size: 1.35rem; font-weight: 800; color: #1B2E5C; }

/* ── Mobile : améliorations formulaire facturation ───────────────────────── */
@media (max-width: 767.98px) {
    /* Padding en bas pour ne pas masquer par la barre sticky */
    .container-lg.py-4 { padding-bottom: 90px !important; }

    /* Article items plus grands sur touch */
    .invoice-item { padding: 12px 12px 12px 12px; }
    .invoice-item .form-control-sm { min-height: 40px; font-size: .95rem; }

    /* Bouton supprimer article : inline en haut à droite mais plus grand */
    .remove-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }

    /* Bouton "Ajouter article" pleine largeur sur mobile */
    #add-item-btn { width: 100%; justify-content: center; padding: .6rem; font-size: .95rem; }

    /* Résumé côté droit masqué sur mobile – remplacé par la barre sticky */
    .col-lg-4 .sticky-top .summary-box { display: none; }
    .col-lg-4 .sticky-top .card { display: none; }

    /* Inputs numériques plus grands sur touch */
    input[type="number"] { min-height: 40px; }

    /* Champs formulaire : taille confortable */
    .form-control, .form-select { min-height: 44px; font-size: 1rem; }
    .form-label { font-size: .9rem; margin-bottom: .3rem; }
}

/* ── Mobile : liste des factures ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Masquer les colonnes secondaires dans le tableau factures */
    .invoice-table-mobile-hide { display: none; }

    /* Carte facture sur mobile */
    .invoice-mobile-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
    }
    .invoice-mobile-card .inv-num   { font-weight: 800; color: #1B2E5C; font-size: 1rem; }
    .invoice-mobile-card .inv-client { font-size: .9rem; color: #334155; }
    .invoice-mobile-card .inv-amount { font-size: 1.1rem; font-weight: 700; color: #1B2E5C; }
    .invoice-mobile-card .inv-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
    .invoice-mobile-card .inv-actions .btn { flex: 1; min-width: 0; padding: .45rem .5rem; font-size: .8rem; }
}


.multi-location-sidebar {
    top: 20px;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.selection-summary {
    padding: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
}

.vehicle-card {
    cursor: pointer;
    border: 2px solid #dee6f1;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vehicle-card:hover,
.vehicle-card:focus-visible {
    border-color: var(--admin-accent);
    box-shadow: 0 12px 26px rgba(29, 116, 216, 0.16);
    transform: translateY(-2px);
    outline: none;
}

.vehicle-card.selected {
    border-color: #1f9d63;
    background: #f1fbf5;
    box-shadow: 0 12px 26px rgba(31, 157, 99, 0.16);
}

.price-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.price-item.total {
    padding-top: 12px;
    border-top: 2px solid var(--admin-primary);
    border-bottom: none;
    font-weight: 700;
    font-size: 1.06rem;
    color: #198754;
}

.price-badge {
    font-size: 0.84rem;
    padding: 6px 10px;
}

.corridor-price-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.selected-vehicle-entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e4ebf4;
    border-radius: 14px;
}

.selected-vehicle-meta {
    flex: 1;
}

.selected-vehicle-remove {
    flex-shrink: 0;
}

.summary-list {
    padding-left: 18px;
}

.multi-check-summary-card {
    height: 100%;
}

.multi-check-card {
    border-left: 5px solid var(--admin-accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.multi-check-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.multi-check-card--completed {
    border-left-color: #198754;
    background: #f2fbf5;
}

.multi-check-header {
    align-items: center;
}

.multi-check-help {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.multi-check-km-diff {
    font-weight: 700;
    color: var(--admin-accent);
}

/* ==== Checkout comparison layout ==== */
.co-checkin-banner {
    background: linear-gradient(90deg, #d1fae5, #ecfdf5);
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-checkin-banner--missing {
    background: linear-gradient(90deg, #fee2e2, #fef2f2);
    border-color: #fca5a5;
    color: #991b1b;
}

.co-ref-panel {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.co-ref-panel-header {
    background: #eef2f9;
    border-bottom: 1px solid #dbe3ef;
    padding: 8px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3b5280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.co-ref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #eef2f9;
    font-size: 0.85rem;
}

.co-ref-label {
    color: #6b7a8d;
}

.co-ref-value {
    font-weight: 600;
    color: #1e3a5f;
}

.co-ref-section {
    padding: 5px 14px 2px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    background: #f3f6fb;
    border-top: 1px solid #eff2f8;
}

.co-ref-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px;
    font-size: 0.82rem;
}

.co-ref-item.co-ref-ok { color: #166534; }
.co-ref-item.co-ref-nok { color: #991b1b; }

.co-ref-obs {
    padding: 8px 14px;
    background: #fefce8;
    border-top: 1px solid #fde68a;
    font-size: 0.83rem;
}

.co-form-panel {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.co-form-panel-header {
    background: #f0f5ff;
    border-bottom: 1px solid #dbe3ef;
    padding: 8px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.co-form-panel-body { padding: 14px; }

.co-form-checklist-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 5px 0 2px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

.co-form-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.co-ci-badge {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-ci-badge.ok  { background: #d1fae5; color: #166534; }
.co-ci-badge.nok { background: #fee2e2; color: #991b1b; }

.allocation-stat-card {
    height: 100%;
    background: var(--admin-surface-soft);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.allocation-table thead th {
    border-bottom-width: 1px;
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.allocation-info-card {
    background: linear-gradient(135deg, rgba(21, 62, 117, 0.08) 0%, rgba(29, 116, 216, 0.08) 100%);
}

.allocation-vehicle-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.allocation-vehicle-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.allocation-vehicle-card.selected {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.allocation-sidebar-sticky {
    position: sticky;
    z-index: 100;
}

.allocation-tips-card {
    background: var(--admin-surface-soft);
}

.allocation-alt-chip {
    border-radius: 999px;
}

.payments-header {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.payment-context-card {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-context-card .detail-section-body {
    padding: 25px;
}

.payment-context-text {
    color: rgba(255, 255, 255, 0.92);
}

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

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-card.total { border-top: 4px solid #198754; }
.summary-card.paye { border-top: 4px solid #28a745; }
.summary-card.restant { border-top: 4px solid #fd7e14; }
.summary-card.acompte { border-top: 4px solid #0d6efd; }

.summary-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.summary-amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
}

.summary-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-form-card,
.payments-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.payment-form-card {
    padding: 25px;
    margin-bottom: 25px;
}

.payments-table {
    overflow: hidden;
}

.table-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.payment-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.payment-btn {
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-money-section,
.bank-transfer-section,
.cheque-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.mobile-money-section.active,
.bank-transfer-section.active,
.cheque-section.active {
    display: block;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.payment-summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    color: #198754;
}

.payment-timeline {
    position: relative;
    padding-left: 30px;
}

.payment-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.payment-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.payment-timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 3px #0d6efd;
}

.payment-timeline-item.success::before {
    background: #28a745;
    box-shadow: 0 0 0 3px #28a745;
}

.payment-timeline-item.warning::before {
    background: #ffc107;
    box-shadow: 0 0 0 3px #ffc107;
}

.payment-timeline-item.danger::before {
    background: #dc3545;
    box-shadow: 0 0 0 3px #dc3545;
}

.stat-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card.active-filter {
    box-shadow: 0 0 0 3px #f97316;
}

.badge-statut {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-en_attente  { background: #fef9c3; color: #ca8a04; }
.badge-acceptee    { background: #dcfce7; color: #16a34a; }
.badge-refusee     { background: #fee2e2; color: #dc2626; }
.badge-traitee     { background: #dbeafe; color: #2563eb; }

.demande-row:hover {
    background: #f8fafc;
}

.action-btn {
    font-size: 0.8rem;
}

.notes-preview {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-create-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.vehicle-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vehicle-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.vehicle-card.selected {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.vehicle-image {
    height: 120px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-image i {
    font-size: 3rem;
    color: #6c757d;
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.option-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.option-card.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.price-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #198754;
    border-bottom: 2px solid #198754;
    margin-top: 15px;
}

.calendar-preview {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day {
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.calendar-day.selected {
    background-color: #0d6efd;
    color: white;
}

.calendar-day.unavailable {
    background-color: #dc3545;
    color: white;
    opacity: 0.5;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #495057;
    margin-right: 15px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px auto;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #0d6efd;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 500;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

.bg-gradient-green {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: white;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4776e6 0%, #8e54e9 100%) !important;
    color: white;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) !important;
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%) !important;
    color: white;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
    color: white;
}

.bg-gradient-blue .text-muted,
.bg-gradient-green .text-muted,
.bg-gradient-purple .text-muted,
.bg-gradient-orange .text-muted,
.bg-gradient-primary .text-muted,
.bg-gradient-info .text-muted,
.bg-gradient-warning .text-muted,
.bg-gradient-danger .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.supplier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.supplier-row:last-child {
    border-bottom: none;
}

.supplier-badge {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    background: #667eea;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

.view-content {
    transition: all 0.3s ease;
}

.corridor-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.progress {
    background-color: rgba(255, 255, 255, 0.2);
}

.checkin-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.vehicle-status-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.status-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.status-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-option:hover {
    background-color: #f8f9fa;
}

.status-option.selected {
    background-color: #e7f1ff;
    border: 1px solid #0d6efd;
}

.status-radio {
    width: 20px;
    height: 20px;
}

.status-label {
    flex: 1;
    font-weight: 500;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.fuel-indicator {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.fuel-level {
    width: 20px;
    height: 60px;
    background-color: #e9ecef;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.fuel-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #198754;
    transition: height 0.3s ease;
}

.damage-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.damage-none { background-color: #198754; }
.damage-minor { background-color: #ffc107; }
.damage-major { background-color: #fd7e14; }
.damage-severe { background-color: #dc3545; }

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.photo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.signature-area {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    height: 200px;
    margin-top: 20px;
    background-color: #f8f9fa;
    cursor: crosshair;
    touch-action: none;
}

.signature-clear {
    margin-top: 10px;
}

.checkin-summary-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: sticky;
    top: 20px;
}

.checkin-summary-card .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.locations-calendar-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.locations-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.locations-calendar-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.locations-calendar-nav-btn:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.locations-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.locations-calendar-day-header {
    background: #f8f9fa;
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.locations-calendar-day {
    background: white;
    padding: 10px;
    min-height: 120px;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s;
}

.locations-calendar-day:hover {
    background: #f8f9fa;
}

.locations-calendar-day.today {
    background: #e7f1ff;
}

.locations-calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.locations-calendar-day-number {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.locations-calendar-day-number .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.locations-calendar-reservation-item {
    font-size: 0.75rem;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s;
}

.locations-calendar-reservation-item:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.locations-calendar-reservation-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.locations-calendar-reservation-status.confirmed,
.locations-calendar-reservation-status.planifiee {
    background: #198754;
}

.locations-calendar-reservation-status.pending {
    background: #ffc107;
}

.locations-calendar-reservation-status.active,
.locations-calendar-reservation-status.en_cours {
    background: #0d6efd;
}

.locations-calendar-reservation-status.completed,
.locations-calendar-reservation-status.terminee {
    background: #6c757d;
}

.locations-calendar-reservation-status.cancelled,
.locations-calendar-reservation-status.annulee {
    background: #dc3545;
}

.locations-calendar-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.locations-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #495057;
}

.locations-calendar-filters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.locations-calendar-vehicle-filter-item {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.locations-calendar-vehicle-filter-item:hover {
    background: #e9ecef;
}

.locations-calendar-vehicle-filter-item.active {
    background: #0d6efd;
    color: white;
}

.locations-calendar-vehicle-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.locations-calendar-actions {
    position: sticky;
    bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.locations-calendar-day-popup {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1000;
    min-width: 300px;
    display: none;
}

.locations-calendar-day-popup-title {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.locations-analytics-advanced {
    --volcimet-blue-dark: #1e3c72;
    --volcimet-blue: #2a5298;
    --volcimet-blue-light: #4a6fb8;
    --volcimet-green: #28a745;
    --volcimet-green-light: #34ce57;
    --volcimet-red: #dc3545;
    --volcimet-red-light: #e4606d;
    --volcimet-orange: #fd7e14;
    --volcimet-yellow: #ffc107;
    --volcimet-purple: #6f42c1;
}

.locations-analytics-advanced .card-gradient-blue {
    background: linear-gradient(135deg, var(--volcimet-blue-dark) 0%, var(--volcimet-blue) 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

.locations-analytics-advanced .card-gradient-green {
    background: linear-gradient(135deg, #1e7e34 0%, var(--volcimet-green) 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.locations-analytics-advanced .card-gradient-red {
    background: linear-gradient(135deg, #c82333 0%, var(--volcimet-red) 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.locations-analytics-advanced .card-gradient-orange {
    background: linear-gradient(135deg, #e0a800 0%, var(--volcimet-orange) 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.locations-analytics-advanced .card-gradient-purple {
    background: linear-gradient(135deg, #5a2d9c 0%, var(--volcimet-purple) 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

.locations-analytics-advanced .badge-volcimet {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
}

.locations-analytics-advanced .table-analytics {
    font-size: 0.9rem;
}

.locations-analytics-advanced .table-analytics th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--volcimet-blue);
    color: var(--volcimet-blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.locations-analytics-advanced .table-analytics tr:hover {
    background-color: rgba(30, 60, 114, 0.05);
}

.locations-analytics-advanced .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.locations-analytics-advanced .filter-tag {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.locations-analytics-advanced .filter-tag.active {
    background: var(--volcimet-blue);
    color: white;
    border-color: var(--volcimet-blue);
}

.locations-analytics-advanced .metric-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.locations-analytics-advanced .metric-card:hover {
    transform: translateY(-5px);
}

.locations-analytics-advanced .metric-card .card-header {
    border-bottom: none;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.locations-analytics-advanced .metric-card .card-body {
    padding: 1.5rem;
}

.locations-analytics-advanced .trend-up {
    color: var(--volcimet-green);
}

.locations-analytics-advanced .trend-down {
    color: var(--volcimet-red);
}

.locations-analytics-advanced .trend-neutral {
    color: #6c757d;
}

.locations-analytics-advanced .custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1000;
}

.locations-analytics-advanced .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.locations-analytics-advanced .comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.locations-analytics-advanced .comparison-badge.positive {
    background: rgba(40, 167, 69, 0.1);
    color: var(--volcimet-green);
}

.locations-analytics-advanced .comparison-badge.negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--volcimet-red);
}

.locations-analytics-advanced .export-btn-group {
    display: flex;
    gap: 10px;
}

.locations-analytics-advanced .export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.locations-analytics-advanced .export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.locations-analytics-advanced .timeline-item {
    border-left: 3px solid var(--volcimet-blue);
    padding-left: 15px;
    margin-bottom: 15px;
    position: relative;
}

.locations-analytics-advanced .timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--volcimet-blue);
}

.locations-analytics-advanced .performance-meter {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.locations-analytics-advanced .performance-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.locations-analytics-advanced .loading {
    animation: pulse 1.5s infinite;
}

.locations-analytics-advanced .legend-color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.locations-analytics-advanced .floating-error-alert {
    z-index: 9999;
}

@media (max-width: 768px) {
    .location-create-section,
    .checkin-section {
        padding: 20px;
    }

    .step-indicator {
        flex-direction: column;
        gap: 15px;
    }

    .step-indicator::before {
        display: none;
    }

    .step {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .step-circle {
        margin: 0;
        width: 30px;
        height: 30px;
    }

    .equipment-list {
        grid-template-columns: 1fr;
    }

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

    .locations-calendar-container {
        padding: 15px;
    }

    .locations-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.85rem;
    }

    .locations-calendar-day {
        min-height: 80px;
        padding: 5px;
    }

    .locations-calendar-reservation-item {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .locations-calendar-legend {
        justify-content: center;
    }

    .locations-analytics-advanced .stats-grid {
        grid-template-columns: 1fr;
    }

    .locations-analytics-advanced .card-body {
        padding: 1rem;
    }

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

    .payment-actions {
        flex-direction: column;
    }

    .payment-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

#vehiculesList {
    max-height: 400px;
    overflow-y: auto;
}

.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--admin-surface-soft);
    border-bottom: 1px solid var(--admin-border);
}

.detail-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-text);
}

.detail-section-body {
    padding: 20px;
}

.detail-key-value {
    margin-bottom: 18px;
}

.detail-key-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--admin-muted);
}

.detail-key-value:last-child {
    margin-bottom: 0;
}

.prewrap-text {
    white-space: pre-wrap;
}

.status-stamp {
    max-width: 90px;
    max-height: 90px;
}

.status-stamp--large {
    max-width: 120px;
    max-height: 120px;
}

.progress-tall {
    height: 1.5rem;
}

.payment-history {
    max-height: 250px;
    overflow-y: auto;
}

.nav-tabs-custom {
    border-bottom: 1px solid var(--admin-border);
    margin-bottom: 0;
    padding: 0 18px;
    display: flex;
    gap: 10px;
    background: var(--admin-surface-soft);
}

.nav-tab-btn {
    background: none;
    border: none;
    padding: 14px 4px;
    font-weight: 700;
    color: var(--admin-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-tab-btn:hover,
.nav-tab-btn.active {
    color: var(--admin-primary);
}

.nav-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background-color: var(--admin-primary);
}

.nav-tabs-custom ~ .tab-content {
    display: none;
}

.nav-tabs-custom ~ .tab-content.active {
    display: block;
}

.pagination-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 20px 0;
}

.pagination-section .btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.9rem;
}

.pagination-section .btn.active {
    background-color: var(--admin-primary);
    color: #fff;
    border-color: var(--admin-primary);
}

.vehicle-icon {
    font-size: 1.15rem;
    color: var(--admin-muted);
}

.location-row {
    transition: background 0.2s ease, transform 0.2s ease;
}

.location-row:hover {
    background: #f8fbff;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-reserve { background-color: #ffc107; }
.status-confirme { background-color: #17a2b8; }
.status-checked_in { background-color: #28a745; }
.status-en_cours { background-color: #0d6efd; }
.status-checked_out { background-color: #6c757d; }
.status-termine { background-color: #198754; }
.status-annule { background-color: #dc3545; }
.status-incident { background-color: #fd7e14; }
.status-reservee { background-color: #ffc107; }
.status-confirmee { background-color: #17a2b8; }
.status-terminee { background-color: #198754; }
.status-annulee { background-color: #dc3545; }

.action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.empty-state {
    padding: 56px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #d0d9e8;
    margin-bottom: 16px;
}

.fade-in {
    animation: adminFadeIn 0.45s ease-out;
}

.admin-delay-1 { animation-delay: 0.1s; }
.admin-delay-2 { animation-delay: 0.2s; }
.admin-delay-3 { animation-delay: 0.3s; }
.admin-delay-4 { animation-delay: 0.4s; }
.admin-delay-5 { animation-delay: 0.5s; }
.admin-delay-6 { animation-delay: 0.6s; }
.admin-delay-7 { animation-delay: 0.7s; }
.admin-delay-8 { animation-delay: 0.8s; }
.admin-delay-9 { animation-delay: 0.9s; }
.admin-delay-10 { animation-delay: 1s; }
.admin-delay-11 { animation-delay: 1.1s; }
.admin-delay-12 { animation-delay: 1.2s; }
.admin-delay-13 { animation-delay: 1.3s; }
.admin-delay-14 { animation-delay: 1.4s; }
.admin-delay-15 { animation-delay: 1.5s; }
.admin-delay-16 { animation-delay: 1.6s; }
.admin-delay-17 { animation-delay: 1.7s; }
.admin-delay-18 { animation-delay: 1.8s; }
.admin-delay-19 { animation-delay: 1.9s; }

.progress-thin {
    height: 6px;
}

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

.amount-subtext {
    font-size: 0.8rem;
}

.is-hidden {
    display: none !important;
}

.quick-action-icon--location {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #10b981;
}

.quick-action-icon--vehicle {
    background: linear-gradient(135deg, #a3bffa 0%, #6991c7 100%);
    color: #3b82f6;
}

.quick-action-icon--client {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #667eea;
}

.quick-action-icon--invoice {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #ec4899;
}

.quick-action-icon--cash {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
}

.quick-action-icon--users {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

@keyframes adminFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .dashboard-header,
    .locations-header,
    .admin-hero {
        padding: 22px 18px;
    }

    .dashboard-header h1,
    .locations-header h1 {
        font-size: 1.45rem;
    }

    .quick-actions-grid,
    .data-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .admin-hero-side,
    .admin-hero-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .table-actions,
    .quick-filters,
    .action-buttons,
    .calendar-header,
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .client-info,
    .vehicle-info {
        align-items: flex-start;
    }

    .client-detail-summary {
        padding: 18px;
    }

    .admin-auth-panel-header,
    .admin-auth-panel-body,
    .wizard-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .client-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .dual-input-group,
    .step-indicator {
        flex-direction: column;
    }

    .step-indicator::before {
        display: none;
    }

    .nav-tabs-custom {
        padding: 0 14px;
        flex-wrap: wrap;
    }
}


/* ============================================================
   LOCATIONS – DETAIL PAGE  (.locations-detail-page)
   ============================================================ */

.locations-detail-page {
    --lp-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --lp-success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --lp-warning-gradient: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --lp-danger-gradient:  linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --lp-info-gradient:    linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
}

/* Header */
.locations-detail-page .location-header {
    background: linear-gradient(135deg, #153e75 0%, #1a6fc4 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(21, 62, 117, 0.18);
}

/* Status badge */
.locations-detail-page .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #fff;
    backdrop-filter: blur(4px);
}

.locations-detail-page .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: lp-pulse 2s infinite;
}
.locations-detail-page .status-dot.status-reservee   { background: #ffd200; }
.locations-detail-page .status-dot.status-confirmee  { background: #38ef7d; }
.locations-detail-page .status-dot.status-en_cours   { background: #26d0ce; }
.locations-detail-page .status-dot.status-terminee   { background: #aab; animation: none; }
.locations-detail-page .status-dot.status-annulee    { background: #ff4b2b; animation: none; }
.locations-detail-page .status-dot.status-incident   { background: #ff416c; }

/* Quick stats grid */
.locations-detail-page .quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.locations-detail-page .stat-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}
.locations-detail-page .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.locations-detail-page .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.locations-detail-page .stat-card.stat-info    .stat-icon { background: rgba(26, 41, 128, 0.4); color: #7eb3ff; }
.locations-detail-page .stat-card.stat-success .stat-icon { background: rgba(17, 153, 142, 0.4); color: #38ef7d; }
.locations-detail-page .stat-card.stat-warning .stat-icon { background: rgba(247, 151, 30, 0.4); color: #ffd200; }
.locations-detail-page .stat-card.stat-danger  .stat-icon { background: rgba(255, 65, 108, 0.4); color: #ff9b9b; }

.locations-detail-page .stat-content { flex: 1; }

.locations-detail-page .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.locations-detail-page .stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* Action buttons */
.locations-detail-page .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.locations-detail-page .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    width: auto;
    height: auto;
    min-width: 0;
    white-space: nowrap;
    justify-content: flex-start;
}
.locations-detail-page .action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: inherit;
}
.locations-detail-page .action-btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.locations-detail-page .action-btn-success  { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; }
.locations-detail-page .action-btn-warning  { background: linear-gradient(135deg, #f7971e, #ffd200); color: #fff; }
.locations-detail-page .action-btn-danger   { background: linear-gradient(135deg, #ff416c, #ff4b2b); color: #fff; }

/* Info cards */
.locations-detail-page .info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    height: 100%;
}
.locations-detail-page .info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}
.locations-detail-page .info-card.client::before  { background: linear-gradient(135deg, #667eea, #764ba2); }
.locations-detail-page .info-card.vehicle::before { background: linear-gradient(135deg, #11998e, #38ef7d); }
.locations-detail-page .info-card.dates::before   { background: linear-gradient(135deg, #1a2980, #26d0ce); }
.locations-detail-page .info-card.pricing::before { background: linear-gradient(135deg, #f7971e, #ffd200); }

.locations-detail-page .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    float: right;
}
.locations-detail-page .card-icon.client-icon  { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.locations-detail-page .card-icon.vehicle-icon { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; }
.locations-detail-page .card-icon.dates-icon   { background: linear-gradient(135deg, #1a2980, #26d0ce); color: #fff; }
.locations-detail-page .card-icon.pricing-icon { background: linear-gradient(135deg, #f7971e, #ffd200); color: #fff; }

/* Detail items */
.locations-detail-page .detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
}
.locations-detail-page .detail-item:last-child { border-bottom: none; }

.locations-detail-page .detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b778c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.locations-detail-page .detail-value {
    font-size: 0.95rem;
    color: #18212f;
    font-weight: 500;
}

/* Timeline */
.locations-detail-page .timeline-container { position: relative; padding: 8px 0; }

.locations-detail-page .timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}
.locations-detail-page .timeline-item:last-child { padding-bottom: 0; }

.locations-detail-page .timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #eef2f7;
}
.locations-detail-page .timeline-item:last-child::before { display: none; }

.locations-detail-page .timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.locations-detail-page .timeline-content {
    flex: 1;
    padding-top: 8px;
}

.locations-detail-page .timeline-date {
    font-size: 0.78rem;
    color: #6b778c;
    margin-top: 4px;
}

/* Payment progress */
.locations-detail-page .payment-progress {
    background: #eef2f7;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.locations-detail-page .progress-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    transition: width 0.6s ease;
}
.locations-detail-page .progress-fill.bg-success-gradient { background: linear-gradient(135deg, #11998e, #38ef7d); }
.locations-detail-page .progress-fill.bg-warning-gradient { background: linear-gradient(135deg, #f7971e, #ffd200); }
.locations-detail-page .progress-fill.bg-danger-gradient  { background: linear-gradient(135deg, #ff416c, #ff4b2b); }

/* Incident cards */
.locations-detail-page .incident-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}
.locations-detail-page .incident-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.locations-detail-page .incident-card.critical { border-left: 4px solid #ff416c; }
.locations-detail-page .incident-card.major    { border-left: 4px solid #f7971e; }
.locations-detail-page .incident-card.minor    { border-left: 4px solid #ffd200; }

.locations-detail-page .severity-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.locations-detail-page .severity-badge.severity-critique { background: #ffe4e6; color: #c53929; }
.locations-detail-page .severity-badge.severity-majeur   { background: #fef3c7; color: #d98324; }
.locations-detail-page .severity-badge.severity-mineur   { background: #fef9c3; color: #a16207; }

/* Vehicles summary */
.locations-detail-page .vehicle-summary-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
}

/* Keyframes */
@keyframes lp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(1.35); }
}

@keyframes lp-shimmer {
    0%   { background-position: -468px 0; }
    100% { background-position:  468px 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .locations-detail-page .location-header { padding: 18px 20px; }
    .locations-detail-page .quick-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-detail-page .action-buttons { flex-direction: column; }
    .locations-detail-page .action-buttons .action-btn { width: 100%; justify-content: center; }
}


/* ============================================================
   LOCATIONS – CHECK-IN PAGE  (.locations-checkin-page)
   ============================================================ */

/* Header */
.locations-checkin-page .checkin-header {
    background: linear-gradient(135deg, #153e75 0%, #0f9d58 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(15, 157, 88, 0.18);
}

/* Progress alert */
.locations-checkin-page .alert-section { margin-bottom: 20px; }

.locations-checkin-page .checklist-progress {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-top: 8px;
}
.locations-checkin-page .checklist-progress-bar {
    height: 100%;
    border-radius: 8px;
    background: #38ef7d;
    transition: width 0.4s ease;
    width: 0%;
}

/* Vehicle preview card */
.locations-checkin-page .vehicle-preview-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}

.locations-checkin-page .vehicle-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8fafc;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.locations-checkin-page .vehicle-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}
.locations-checkin-page .vehicle-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b778c;
    font-size: 0.85rem;
    padding: 24px;
    text-align: center;
}
.locations-checkin-page .vehicle-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(21, 62, 117, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/* Section titles */
.locations-checkin-page .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #153e75;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: 8px;
}
.locations-checkin-page .section-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #153e75, #0f9d58);
    color: #fff;
    border-radius: 7px;
    font-size: 0.78rem;
}

/* Checklist */
.locations-checkin-page .checklist-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkin-page .checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.locations-checkin-page .checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    transition: all 0.15s;
    cursor: pointer;
}
.locations-checkin-page .checklist-item:hover {
    background: #eef7f2;
    border-color: #0f9d58;
}
.locations-checkin-page .checklist-label {
    flex: 1;
    font-size: 0.9rem;
    color: #18212f;
}
.locations-checkin-page .checklist-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}
.locations-checkin-page .checklist-status.status-ok      { background: #dcfce7; color: #166534; }
.locations-checkin-page .checklist-status.status-warning { background: #fef3c7; color: #92400e; }
.locations-checkin-page .checklist-status.status-danger  { background: #fee2e2; color: #991b1b; }

/* Photo upload */
.locations-checkin-page .photo-upload-section {
    background: #f8fafc;
    border: 2px dashed #dbe3ef;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.locations-checkin-page .photo-upload-section:hover {
    border-color: #0f9d58;
    background: #f0faf5;
}
.locations-checkin-page .photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.locations-checkin-page .photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}
.locations-checkin-page .photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.locations-checkin-page .photo-remove-btn {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255, 65, 108, 0.9);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: background 0.2s;
}
.locations-checkin-page .photo-remove-btn:hover { background: #ff416c; }

/* Damage markers */
.locations-checkin-page .damage-markers { position: relative; width: 100%; }

.locations-checkin-page .damage-marker {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #ff416c;
    border: 2px solid #fff;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.4);
    transform: translate(-50%, -50%);
    transition: transform 0.15s;
}
.locations-checkin-page .damage-marker:hover { transform: translate(-50%, -50%) scale(1.3); }

/* Signature */
.locations-checkin-page .signature-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkin-page .signature-pad {
    border: 2px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    cursor: crosshair;
    display: block;
    width: 100%;
}
.locations-checkin-page .signature-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    color: #6b778c;
    font-size: 0.9rem;
    gap: 8px;
}

/* Summary card (sticky sidebar) */
.locations-checkin-page .summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    position: sticky;
    top: 88px;
}
.locations-checkin-page .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 0.9rem;
}
.locations-checkin-page .summary-item:last-child { border-bottom: none; }
.locations-checkin-page .summary-item.total {
    font-weight: 700;
    font-size: 1rem;
    color: #153e75;
    border-top: 2px solid #eef2f7;
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
}

/* Equipment */
.locations-checkin-page .equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.locations-checkin-page .equipment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
}
.locations-checkin-page .equipment-item:hover {
    border-color: #0f9d58;
    background: #f0faf5;
}

/* Fuel indicator */
.locations-checkin-page .fuel-indicator { margin: 16px 0; }
.locations-checkin-page .fuel-bar {
    height: 24px;
    background: #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}
.locations-checkin-page .fuel-level {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    transition: width 0.4s ease;
    min-width: 4px;
}
.locations-checkin-page .fuel-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #6b778c;
}

/* Action buttons */
.locations-checkin-page .action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* Keyframes */
@keyframes checkAnimation {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .locations-checkin-page .checkin-header { padding: 18px 20px; }
    .locations-checkin-page .checklist-grid { grid-template-columns: 1fr; }
    .locations-checkin-page .equipment-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-checkin-page .summary-card   { position: static; }
}


/* ============================================================
   LOCATIONS – CHECK-OUT PAGE  (.locations-checkout-page)
   ============================================================ */

/* Header */
.locations-checkout-page .checkout-header {
    background: linear-gradient(135deg, #153e75 0%, #ff416c 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(255, 65, 108, 0.18);
}

/* Comparison section */
.locations-checkout-page .comparison-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkout-page .comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}
.locations-checkout-page .comparison-item  { padding: 12px 0; }
.locations-checkout-page .comparison-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b778c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.locations-checkout-page .comparison-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18212f;
}
.locations-checkout-page .comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #6b778c;
    font-size: 1.2rem;
}

/* Penalty card */
.locations-checkout-page .penalty-card {
    background: #fff8f8;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #fcd5d7;
    margin-bottom: 16px;
}
.locations-checkout-page .penalty-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.locations-checkout-page .penalty-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #fcd5d7;
}

/* Damage comparison */
.locations-checkout-page .damage-comparison {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkout-page .damage-list { list-style: none; padding: 0; margin: 0; }
.locations-checkout-page .damage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 8px;
    border: 1px solid #eef2f7;
    font-size: 0.9rem;
}
.locations-checkout-page .damage-severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.locations-checkout-page .damage-severity.severity-leger { background: #fef9c3; color: #a16207; }
.locations-checkout-page .damage-severity.severity-moyen { background: #fef3c7; color: #92400e; }
.locations-checkout-page .damage-severity.severity-grave { background: #fee2e2; color: #991b1b; }

/* Deposit section */
.locations-checkout-page .deposit-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkout-page .deposit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.locations-checkout-page .deposit-option {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #dbe3ef;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #f8fafc;
}
.locations-checkout-page .deposit-option:hover,
.locations-checkout-page .deposit-option.active {
    border-color: #153e75;
    background: #eef2f7;
    box-shadow: 0 4px 12px rgba(21, 62, 117, 0.12);
}
.locations-checkout-page .deposit-option-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #153e75, #1a6fc4);
    color: #fff;
}

/* Photo comparison */
.locations-checkout-page .photo-comparison {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkout-page .photo-group { margin-bottom: 24px; }
.locations-checkout-page .photo-group-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #153e75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}
.locations-checkout-page .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.locations-checkout-page .photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.locations-checkout-page .photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.locations-checkout-page .photo-item:hover img { transform: scale(1.05); }
.locations-checkout-page .photo-badge {
    position: absolute;
    bottom: 6px; left: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

/* Late / fuel calculators */
.locations-checkout-page .late-calculator,
.locations-checkout-page .fuel-calculator {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkout-page .late-time {
    display: flex;
    align-items: center;
    gap: 8px;
}
.locations-checkout-page .late-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b778c;
}
.locations-checkout-page input[type="range"].fuel-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #eef2f7;
    outline: none;
    cursor: pointer;
}
.locations-checkout-page input[type="range"].fuel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #153e75, #1a6fc4);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(21, 62, 117, 0.3);
}
.locations-checkout-page .fuel-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #153e75;
}

/* Summary box */
.locations-checkout-page .summary-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}
.locations-checkout-page .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 0.9rem;
}
.locations-checkout-page .summary-item:last-child { border-bottom: none; }
.locations-checkout-page .summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #153e75;
    border-top: 2px solid #eef2f7;
    border-bottom: none;
    padding-top: 14px;
}
.locations-checkout-page .summary-item.penalty { color: #c53929; }
.locations-checkout-page .summary-item.deposit { color: #0f9d58; }

/* Status badges */
.locations-checkout-page .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}
.locations-checkout-page .status-badge.status-on-time { background: #dcfce7; color: #166534; }
.locations-checkout-page .status-badge.status-late    { background: #fee2e2; color: #991b1b; }
.locations-checkout-page .status-badge.status-early   { background: #dbeafe; color: #1e40af; }

/* Timeline */
.locations-checkout-page .timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
}
.locations-checkout-page .timeline-step:last-child { border-bottom: none; }
.locations-checkout-page .timeline-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    background: #eef2f7;
    color: #6b778c;
    border: 2px solid #dbe3ef;
}
.locations-checkout-page .timeline-icon.completed {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
    border-color: transparent;
}
.locations-checkout-page .timeline-icon.current {
    background: linear-gradient(135deg, #153e75, #1a6fc4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(21, 62, 117, 0.15);
}
.locations-checkout-page .timeline-content {
    flex: 1;
    padding-top: 6px;
}

/* Notes section */
.locations-checkout-page .notes-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}
.locations-checkout-page .notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}
.locations-checkout-page .notes-list { list-style: none; padding: 0; margin: 0; }
.locations-checkout-page .note-item {
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    margin-bottom: 10px;
}
.locations-checkout-page .note-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: #153e75;
}
.locations-checkout-page .note-date {
    font-size: 0.75rem;
    color: #6b778c;
    margin-left: 8px;
}
.locations-checkout-page .note-content {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #18212f;
    line-height: 1.5;
}

/* Section title */
.locations-checkout-page .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #153e75;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action buttons */
.locations-checkout-page .action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* Utility */
.is-hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .locations-checkout-page .checkout-header   { padding: 18px 20px; }
    .locations-checkout-page .comparison-grid   { grid-template-columns: 1fr; }
    .locations-checkout-page .comparison-divider { display: none; }
    .locations-checkout-page .deposit-options   { grid-template-columns: repeat(2, 1fr); }
    .locations-checkout-page .photo-grid        { grid-template-columns: repeat(2, 1fr); }
}
