:root {
    --ink-900: #14161F;
    --ink-800: #1E2030;
    --paper-50: #F7F8FA;
    --paper-0: #FFFFFF;
    --trust-indigo-600: #2B2F77;
    --trust-indigo-500: #363B8F;
    --trust-indigo-hover: #1e2259;
    --trust-indigo-100: rgba(43, 47, 119, 0.06);
    --route-amber-500: #F2A93B;
    --route-amber-100: rgba(242, 169, 59, 0.10);
    --circle-teal-500: #3FA796;
    --circle-teal-100: rgba(63, 167, 150, 0.10);
    --alert-coral-500: #E15B4E;
    --alert-coral-100: rgba(225, 91, 78, 0.10);
    --neutral-500: #6B7085;
    --neutral-400: #8B8FA3;
    --neutral-300: #B3B6C4;
    --neutral-200: #D1D3DC;
    --neutral-100: #ECEDF2;
    --neutral-50: #F4F5F8;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(20, 22, 31, 0.04);
    --shadow-md: 0 2px 12px rgba(20, 22, 31, 0.06);
    --shadow-lg: 0 8px 32px rgba(20, 22, 31, 0.08);
    --transition: 0.15s ease;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* ═══ Sidebar — White Theme ═══ */

.sidebar {
    background: var(--paper-0) !important;
    border-right: 1px solid var(--neutral-100) !important;
}

.sidebar .nav .nav-item .nav-link,
.sidebar .nav:not(.sub-menu) > .nav-item > .nav-link,
.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item.active > .nav-link[aria-expanded=true],
.sidebar .nav .nav-item.active > .nav-link[aria-expanded=false],
.sidebar .nav .nav-item.active > .nav-link.collapsed,
.sidebar .nav:not(.sub-menu) > .nav-item:hover > .nav-link,
.sidebar .nav:not(.sub-menu) > .nav-item > .nav-link[aria-expanded=true],
.sidebar .nav:not(.sub-menu) > .nav-item.active .nav-link,
.sidebar .nav:not(.sub-menu) > .nav-item.active .nav-link[aria-expanded=true],
.sidebar .nav:not(.sub-menu) > .nav-item.active .nav-link[aria-expanded=false] {
    background: transparent !important;
    border-radius: 0 !important;
    position: relative;
}

.sidebar .nav .nav-item .nav-link {
    color: var(--ink-900) !important;
    font-weight: 500 !important;
    font-size: 0.8125rem !important;
    padding: 9px 20px !important;
    transition: all var(--transition);
    margin: 0 !important;
    opacity: 0.65;
}
.sidebar .nav .nav-item .nav-link i,
.sidebar .nav .nav-item .nav-link .menu-title,
.sidebar .nav .nav-item .nav-link .menu-arrow {
    color: inherit !important;
}
.sidebar .nav .nav-item .nav-link i.menu-icon {
    font-size: 17px !important;
    color: var(--neutral-400) !important;
    margin-right: 10px !important;
    width: 20px;
    text-align: center;
    transition: color var(--transition);
}
.sidebar .nav .nav-item .nav-link .menu-title {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
}
.sidebar .nav .nav-item .nav-link i.menu-arrow {
    display: none !important;
}
.cv-menu-chevron {
    color: var(--neutral-400) !important;
    font-size: 14px !important;
    margin-left: auto !important;
    transition: transform var(--transition), color var(--transition) !important;
    line-height: 1 !important;
}
.sidebar .nav .nav-item .nav-link[aria-expanded="true"] .cv-menu-chevron {
    transform: rotate(90deg) !important;
    color: var(--trust-indigo-600) !important;
}

.sidebar .nav .nav-item:hover > .nav-link,
.sidebar .nav:not(.sub-menu) > .nav-item:hover > .nav-link {
    background: var(--paper-50) !important;
    opacity: 1;
}

/* Active state */
.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item .nav-link.active {
    background: var(--trust-indigo-100) !important;
    color: var(--trust-indigo-600) !important;
    opacity: 1;
}
.sidebar .nav .nav-item.active > .nav-link i.menu-icon,
.sidebar .nav .nav-item .nav-link.active i.menu-icon {
    color: var(--trust-indigo-600) !important;
}
.sidebar .nav .nav-item.active > .nav-link .menu-title,
.sidebar .nav .nav-item .nav-link.active .menu-title {
    color: var(--trust-indigo-600) !important;
    font-weight: 600 !important;
}
.sidebar .nav .nav-item.active > .nav-link i.menu-arrow,
.sidebar .nav .nav-item .nav-link.active i.menu-arrow {
    color: var(--trust-indigo-600) !important;
}

/* Expanded parent link (aria-expanded=true) */
.sidebar .nav .nav-item .nav-link[aria-expanded="true"] {
    background: var(--trust-indigo-100) !important;
    color: var(--trust-indigo-600) !important;
    opacity: 1;
}
.sidebar .nav .nav-item .nav-link[aria-expanded="true"] i.menu-icon {
    color: var(--trust-indigo-600) !important;
}
.sidebar .nav .nav-item .nav-link[aria-expanded="true"] .menu-title {
    color: var(--trust-indigo-600) !important;
    font-weight: 600 !important;
}
.sidebar .nav .nav-item .nav-link[aria-expanded="true"] i.menu-arrow {
    color: var(--trust-indigo-600) !important;
}

.sidebar .nav .nav-item.nav-category {
    color: var(--neutral-400) !important;
    text-transform: uppercase !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    padding: 20px 20px 6px !important;
    margin: 0 !important;
    border-bottom: none !important;
}

.sidebar .nav.sub-menu {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 4px 0 8px !important;
    margin: 0 !important;
}
.sidebar .nav.sub-menu .nav-item {
    padding: 0 !important;
}
.sidebar .nav.sub-menu .nav-item::before {
    display: none !important;
}
.sidebar .nav.sub-menu .nav-item .nav-link {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: var(--neutral-500) !important;
    padding: 8px 20px 8px 52px !important;
    border-radius: 0 !important;
    opacity: 1;
    position: relative !important;
}
.sidebar .nav.sub-menu .nav-item .nav-link::before {
    content: '' !important;
    position: absolute !important;
    left: 36px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: var(--neutral-200) !important;
    display: block !important;
}
.sidebar .nav.sub-menu .nav-item .nav-link:hover {
    color: var(--ink-900) !important;
    background: var(--paper-50) !important;
}
.sidebar .nav.sub-menu .nav-item .nav-link:hover::before {
    background: var(--trust-indigo-600) !important;
}
.sidebar .nav.sub-menu .nav-item .nav-link.active {
    color: var(--trust-indigo-600) !important;
    font-weight: 600 !important;
    background: var(--trust-indigo-100) !important;
}
.sidebar .nav.sub-menu .nav-item .nav-link.active::before {
    background: var(--trust-indigo-600) !important;
    width: 6px !important;
    height: 6px !important;
}

.sidebar .nav .nav-item .nav-link .badge,
.sidebar .badge-pill {
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    min-width: 18px !important;
    text-align: center !important;
    border-radius: 10px !important;
    background-color: var(--trust-indigo-600) !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin-left: auto !important;
}
.cv-sidebar-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    min-width: 18px;
    text-align: center;
    border-radius: 10px;
    line-height: 1.3;
    margin-left: auto;
    display: inline-block;
}
.cv-sidebar-badge--warning {
    background: rgba(242, 169, 59, 0.22);
    color: #96610E;
}
.cv-sidebar-badge--danger {
    background: var(--alert-coral-100);
    color: #B33D32;
}
.cv-sidebar-badge--success {
    background: var(--circle-teal-100);
    color: #2E7D6D;
}

/* ═══ Navbar ═══ */

.navbar {
    background: var(--paper-0) !important;
    border-bottom: 1px solid var(--neutral-100) !important;
    box-shadow: none !important;
}
.navbar .navbar-brand-wrapper {
    background: var(--paper-0) !important;
    border-right: 1px solid var(--neutral-100) !important;
    border-bottom: 1px solid var(--neutral-100) !important;
}
.navbar .navbar-brand-wrapper .navbar-brand img {
    height: auto;
    width: 180px;
}
.navbar .navbar-brand-wrapper .brand-logo-mini img {
    width: 36px;
    height: auto;
}
.navbar .navbar-menu-wrapper {
    border-bottom: 1px solid var(--neutral-100) !important;
}

/* ═══ Top Bar (shared between StarAdmin & EasyAdmin) ═══ */

.cv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    gap: 12px;
}
.cv-topbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.cv-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cv-topbar__toggle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--neutral-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
    flex-shrink: 0;
    padding: 0;
}
.cv-topbar__toggle:hover {
    border-color: var(--neutral-400);
    color: var(--ink-900);
    background: var(--paper-50);
}

.cv-topbar__locale {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-900);
    background: var(--paper-0);
    white-space: nowrap;
    flex-shrink: 0;
}
.cv-topbar__locale-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--circle-teal-500);
    flex-shrink: 0;
}

.cv-topbar__search {
    position: relative;
    flex: 1;
    max-width: 420px;
    min-width: 180px;
}
.cv-topbar__search--disabled {
    opacity: 0.5;
    pointer-events: none;
}
.cv-topbar__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
.cv-topbar__search-input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    padding: 0 36px 0 36px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-900);
    background: var(--paper-50);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
form.cv-topbar__search .cv-topbar__search-input {
    padding-right: 140px;
}
.cv-topbar__search-input::placeholder {
    color: var(--neutral-400);
}
.cv-topbar__search-input:focus {
    border-color: var(--trust-indigo-600);
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.08);
    background: var(--paper-0);
}
.cv-topbar__search-key {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-family: inherit;
    color: var(--neutral-400);
    background: var(--paper-0);
    line-height: 1;
    font-weight: 500;
}
.cv-topbar__search-scope {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    padding: 0 4px;
    font-size: 11px;
    font-family: inherit;
    color: var(--neutral-400);
    background: var(--paper-0);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238B8FA3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 16px;
}
.cv-topbar__search-scope:focus {
    border-color: var(--trust-indigo-600);
}

.cv-topbar__site-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
    white-space: nowrap;
}
.cv-topbar__site-link i {
    font-size: 13px;
}
.cv-topbar__site-link:hover {
    color: var(--ink-900);
}

.cv-topbar__notif-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--neutral-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    padding: 0;
    flex-shrink: 0;
}
.cv-topbar__notif-btn:hover {
    background: var(--paper-50);
    color: var(--ink-900);
}
.cv-topbar__notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--alert-coral-500);
    border: 2px solid var(--paper-0);
}

.cv-topbar__user-menu {
    display: flex;
    align-items: center;
}
.cv-topbar__user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: none !important;
    color: inherit !important;
    background: none;
    border: none;
    font-family: inherit;
}
.cv-topbar__user-trigger:hover {
    text-decoration: none;
}

.cv-topbar__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--trust-indigo-600);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    letter-spacing: 0.02em;
}
.cv-topbar__avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--alert-coral-500);
    border: 2px solid var(--paper-0);
}

.cv-topbar__user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-align: left;
}
.cv-topbar__user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-900);
}
.cv-topbar__user-role {
    font-size: 11px;
    color: var(--neutral-400);
    font-weight: 500;
}

.cv-topbar__user-chevron {
    color: var(--neutral-200);
    font-size: 16px;
    margin-left: -4px;
    transition: color var(--transition);
}
.cv-topbar__user-trigger:hover .cv-topbar__user-chevron {
    color: var(--neutral-400);
}

.cv-topbar__dropdown {
    border: 1px solid var(--neutral-100) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    min-width: 220px !important;
    padding: 0 !important;
    overflow: hidden;
}
.cv-topbar__dropdown-header {
    padding: 16px;
    text-align: center;
}
.cv-topbar__dropdown-header .cv-topbar__avatar {
    margin: 0 auto 10px;
}
.cv-topbar__dropdown-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-900);
}
.cv-topbar__dropdown-phone {
    margin: 0;
    font-size: 0.75rem;
    color: var(--neutral-400);
}
.cv-topbar__dropdown-divider {
    border-top: 1px solid var(--neutral-100);
}
.cv-topbar__dropdown-logout {
    font-size: 0.8125rem !important;
    padding: 10px 16px !important;
    color: var(--alert-coral-500) !important;
}
.cv-topbar__dropdown-logout:hover {
    background: var(--alert-coral-100) !important;
}

/* ═══ Content ═══ */

.content-wrapper {
    background: var(--paper-50) !important;
    padding: 28px 32px !important;
}

/* ═══ Dashboard Header ═══ */

.cv-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
}
.cv-dashboard-header__left {
    flex: 1;
    min-width: 0;
}
.cv-dashboard-date {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neutral-400);
    margin-bottom: 4px;
}
.cv-dashboard-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    line-height: 1.2;
}
.cv-dashboard-subtitle {
    font-size: 0.8125rem;
    color: var(--neutral-400);
    font-weight: 500;
    margin: 0;
}
.cv-dashboard-header__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}
@media (max-width: 768px) {
    .cv-dashboard-header {
        flex-direction: column;
        gap: 16px;
    }
    .cv-dashboard-header__actions {
        width: 100%;
    }
}

/* ═══ Stats Bar ═══ */

.cv-stats-bar {
    background: var(--paper-0);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
}
.cv-stats-bar__item {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
.cv-stats-bar__item + .cv-stats-bar__item {
    border-left: 1px solid var(--neutral-100);
}
.cv-stats-bar__head {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cv-stats-bar__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-400);
}
.cv-stats-bar__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cv-stats-bar__dot--danger {
    background: var(--alert-coral-500);
}
.cv-stats-bar__dot--success {
    background: var(--circle-teal-500);
}
.cv-stats-bar__action {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--trust-indigo-600);
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
}
.cv-stats-bar__action:hover {
    text-decoration: underline;
    color: #1e2259;
}
.cv-stats-bar__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.cv-stats-bar__desc {
    font-size: 0.75rem;
    color: var(--neutral-400);
    font-weight: 500;
}
.cv-stats-bar__trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.cv-stats-bar__trend--up {
    color: var(--circle-teal-500);
}
.cv-stats-bar__trend--down {
    color: var(--alert-coral-500);
}
@media (max-width: 992px) {
    .cv-stats-bar {
        flex-wrap: wrap;
    }
    .cv-stats-bar__item {
        flex: 1 1 50%;
        min-width: 0;
    }
    .cv-stats-bar__item:nth-child(3) {
        border-left: none;
        border-top: 1px solid var(--neutral-100);
    }
    .cv-stats-bar__item:nth-child(4) {
        border-top: 1px solid var(--neutral-100);
    }
}
@media (max-width: 576px) {
    .cv-stats-bar {
        flex-direction: column;
    }
    .cv-stats-bar__item + .cv-stats-bar__item {
        border-left: none;
        border-top: 1px solid var(--neutral-100);
    }
}

/* ═══ Cards ═══ */

.cv-card {
    background: var(--paper-0);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
}
.cv-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    gap: 16px;
}
.cv-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    letter-spacing: -0.01em;
}
.cv-card__subtitle {
    font-size: 0.75rem;
    color: var(--neutral-400);
    margin: 2px 0 0;
    font-weight: 500;
}
.cv-card__body {
    padding: 16px 24px 24px;
}
.cv-card__body--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cv-card__body.p-0 { padding: 0; }
.cv-card__empty {
    padding: 48px 24px;
    text-align: center;
}
.cv-card__empty i {
    font-size: 2.5rem;
    color: var(--circle-teal-500);
    opacity: 0.6;
}
.cv-card__empty p {
    color: var(--neutral-400);
    font-size: 0.8125rem;
    margin-top: 8px;
    font-weight: 500;
}

/* ═══ Tables ═══ */

.cv-table {
    width: 100%;
    border-collapse: collapse;
}
.cv-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-400);
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--neutral-100);
    text-align: left;
}
.cv-table tbody td {
    padding: 14px 16px;
    font-size: 0.8125rem;
    color: var(--ink-900);
    border-bottom: 1px solid var(--neutral-100);
    vertical-align: middle;
}
.cv-table tbody tr:last-child td {
    border-bottom: none;
}
.cv-table tbody tr {
    transition: background var(--transition);
}
.cv-table tbody tr:hover {
    background: var(--paper-50);
}
.cv-table__muted {
    color: var(--neutral-400) !important;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.cv-table__empty-row {
    text-align: center;
    color: var(--neutral-400) !important;
    padding: 32px 16px !important;
    font-weight: 500;
}

/* ═══ Buttons ═══ */

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.cv-btn--sm { padding: 8px 16px; }
.cv-btn--md { padding: 10px 20px; }
.cv-btn--primary {
    background: var(--trust-indigo-600);
    color: #fff;
}
.cv-btn--primary:hover {
    background: #1e2259;
    color: #fff;
    box-shadow: 0 4px 12px rgba(43, 47, 119, 0.2);
}
.cv-btn--outline {
    background: var(--paper-0);
    color: var(--ink-900);
    border: 1px solid var(--neutral-200);
}
.cv-btn--outline:hover {
    border-color: var(--neutral-400);
    background: var(--paper-50);
    color: var(--ink-900);
}
.cv-btn--ghost {
    background: transparent;
    color: var(--neutral-500);
    border: 1px solid var(--neutral-200);
}
.cv-btn--ghost:hover {
    color: var(--ink-900);
    border-color: var(--neutral-400);
    background: var(--paper-50);
}

/* ═══ Badges & Tags ═══ */

.cv-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--neutral-100);
    color: var(--neutral-500);
    letter-spacing: 0.02em;
}
.cv-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
}
.cv-badge--warning {
    background: var(--route-amber-100);
    color: #B87A1E;
}
.cv-badge--success {
    background: var(--circle-teal-100);
    color: #2E7D6D;
}
.cv-badge--danger {
    background: var(--alert-coral-100);
    color: #B33D32;
}

/* ═══ User Cell & Avatar ═══ */

.cv-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.cv-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}
.cv-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 0.6875rem;
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
}
.cv-avatar--navbar {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
    background: var(--trust-indigo-600);
    color: #fff;
}

/* ═══ Route Display ═══ */

.cv-route {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.cv-route__arrow {
    font-size: 0.875rem;
    color: var(--neutral-400);
}

/* ═══ Seats ═══ */

.cv-seats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ═══ Quick Links ═══ */

.cv-quick-links {
    display: flex;
    flex-direction: column;
}
.cv-quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--ink-900);
    border-bottom: 1px solid var(--neutral-100);
    transition: background var(--transition);
}
.cv-quick-link:last-child { border-bottom: none; }
.cv-quick-link:hover {
    background: var(--paper-50);
    color: var(--ink-900);
}
.cv-quick-link__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.cv-quick-link__icon--indigo {
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
}
.cv-quick-link__icon--amber {
    background: var(--route-amber-100);
    color: var(--route-amber-500);
}
.cv-quick-link__icon--teal {
    background: var(--circle-teal-100);
    color: var(--circle-teal-500);
}
.cv-quick-link__icon--neutral {
    background: var(--neutral-100);
    color: var(--neutral-500);
}
.cv-quick-link__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.cv-quick-link__body strong {
    font-size: 0.8125rem;
    font-weight: 600;
}
.cv-quick-link__body small {
    font-size: 0.6875rem;
    color: var(--neutral-400);
    font-weight: 500;
}
.cv-quick-link__chevron {
    color: var(--neutral-200);
    font-size: 1.125rem;
    transition: color var(--transition), transform var(--transition);
}
.cv-quick-link:hover .cv-quick-link__chevron {
    color: var(--neutral-400);
    transform: translateX(2px);
}

/* ═══ Login ═══ */

.cv-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-50);
    padding: 24px;
}
.cv-login__card {
    width: 100%;
    max-width: 420px;
    background: var(--paper-0);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-100);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.cv-login__logo {
    text-align: center;
    margin-bottom: 32px;
}
.cv-login__logo img {
    width: 180px;
    height: auto;
}
.cv-login__header {
    margin-bottom: 28px;
}
.cv-login__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--trust-indigo-600);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.cv-login__subtitle {
    font-size: 0.8125rem;
    color: var(--neutral-400);
    font-weight: 500;
    margin: 0;
}
.cv-login__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--alert-coral-100);
    color: #932E24;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 20px;
}
/* Le cadre porte désormais les messages du produit, pas seulement les erreurs
   d'authentification : un code renvoyé, un mot de passe changé, une connexion
   expirée. La couleur suit le sens, comme pour `cv-flash`. */
.cv-login__alert--success {
    border-color: var(--circle-teal-500);
    color: var(--circle-teal-600, var(--circle-teal-500));
    background: rgba(63, 167, 150, .08);
}
.cv-login__alert--warning {
    border-color: var(--route-amber-500);
    color: #8a5d12;
    background: rgba(242, 169, 59, .10);
}
.cv-login__alert--info {
    border-color: var(--trust-indigo-600);
    color: var(--trust-indigo-600);
    background: rgba(43, 47, 119, .06);
}
.cv-login__alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
}
.cv-login__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cv-login__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cv-login__label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--ink-900);
}
/* La mention sous un champ : ce que le code vaut, pourquoi le SMS plutôt que
   l'email. Un écran qui demande six chiffres doit dire d'où ils viennent. */
.cv-login__hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--neutral-400);
}
/* Les liens de bas de carte — mot de passe oublié, changer de compte. Discrets
   par construction : ce sont des issues, pas l'action principale. */
.cv-login__links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8125rem;
}
.cv-login__links a {
    color: var(--trust-indigo-600);
    text-decoration: none;
}
.cv-login__links a:hover {
    text-decoration: underline;
}
/* « Renvoyer un code » est une soumission de formulaire, pas un lien : il doit
   en avoir l'allure sans en avoir la balise, sinon il faudrait du JavaScript
   pour poster. */
.cv-login__link-button {
    width: 100%;
    margin-top: 10px;
    background: none;
    border: 0;
    padding: 6px;
    font-size: 0.8125rem;
    color: var(--neutral-400);
    cursor: pointer;
}
.cv-login__link-button:hover {
    color: var(--trust-indigo-600);
}
.cv-login__input-wrap {
    position: relative;
}
.cv-login__input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 1.125rem;
    pointer-events: none;
    transition: color var(--transition);
}
.cv-login__input {
    width: 100%;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 42px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--ink-900);
    background: var(--paper-0);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.cv-login__input::placeholder {
    color: var(--neutral-400);
}
.cv-login__input:focus {
    border-color: var(--trust-indigo-600);
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.1);
}
.cv-login__input:focus + .cv-login__input-icon,
.cv-login__input:focus ~ .cv-login__input-icon {
    color: var(--trust-indigo-600);
}
.cv-login__input-wrap:focus-within .cv-login__input-icon {
    color: var(--trust-indigo-600);
}
.cv-login__submit {
    width: 100%;
    padding: 12px;
    background: var(--trust-indigo-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: -0.01em;
    margin-top: 4px;
}
.cv-login__submit:hover {
    background: #1e2259;
    box-shadow: 0 4px 12px rgba(43, 47, 119, 0.25);
}
.cv-login__submit:active {
    transform: translateY(1px);
}
.cv-login__footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-100);
    font-size: 0.6875rem;
    color: var(--neutral-400);
    font-weight: 500;
}

/* Legacy support */
.auth-form-light {
    background: var(--paper-0);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-100);
}
.auth-form-btn {
    background-color: var(--trust-indigo-600) !important;
    border-color: var(--trust-indigo-600) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}
.auth .content-wrapper {
    background: var(--paper-50);
}

/* ═══ Footer ═══ */

.footer {
    background: transparent;
    border-top: 1px solid var(--neutral-100);
    color: var(--neutral-400);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ═══ StarAdmin Card Overrides ═══ */

.card-rounded {
    border: 1px solid var(--neutral-100);
    box-shadow: none;
    border-radius: var(--radius-lg);
}
.card-title-dash {
    color: var(--ink-900);
    font-weight: 700;
    font-size: 0.9375rem;
}
.card-subtitle-dash {
    color: var(--neutral-400);
    font-size: 0.75rem;
}

/* ═══ Bootstrap Overrides ═══ */

.btn-primary,
.badge-primary,
.badge.badge-primary {
    background-color: var(--trust-indigo-600) !important;
    border-color: var(--trust-indigo-600) !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e2259 !important;
    border-color: #1e2259 !important;
}
.text-primary, a.text-primary { color: var(--trust-indigo-600) !important; }
.text-success { color: var(--circle-teal-500) !important; }
.badge-opacity-warning {
    background-color: var(--route-amber-100);
    color: #B87A1E;
}
.badge-opacity-success {
    background-color: var(--circle-teal-100);
    color: #2E7D6D;
}
.badge-opacity-danger {
    background-color: var(--alert-coral-100);
    color: #B33D32;
}
.btn-danger {
    background-color: var(--alert-coral-500) !important;
    border-color: var(--alert-coral-500) !important;
}
.btn-danger:hover {
    background-color: #c84a3d !important;
    border-color: #c84a3d !important;
}

/* ═══ Scrollbar ═══ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--neutral-200);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

.list-group-item-action:hover {
    background-color: var(--paper-50);
}

/* ── Breadcrumb ── */
.cv-breadcrumb {
    padding: 20px 32px 0;
}
.cv-breadcrumb__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.cv-breadcrumb__item {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1;
}
.cv-breadcrumb__icon {
    font-size: 15px;
    margin-right: 4px;
    vertical-align: -1px;
}
.cv-breadcrumb__sep {
    color: var(--neutral-300);
    margin: 0 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.cv-breadcrumb__link {
    color: var(--trust-indigo-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.cv-breadcrumb__link:hover {
    color: var(--trust-indigo-hover);
}
.cv-breadcrumb__text {
    color: var(--neutral-400);
    font-weight: 500;
}
.cv-breadcrumb__item--active .cv-breadcrumb__text {
    color: var(--ink-900);
    font-weight: 600;
}
@media (max-width: 767px) {
    .cv-breadcrumb {
        padding: 12px 16px 0;
    }
    .cv-breadcrumb__item:not(:nth-last-child(-n+2)) {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ Item — Premium Form
   Custom two-column form layout for FaqItem new/edit pages.
   ═══════════════════════════════════════════════════════════════════════════ */

.cv-form {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* Hidden field containers */
.cv-form__hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ── Header ── */

.cv-form__header {
    margin-bottom: 28px;
}
.cv-form__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 12px;
}
.cv-form__back:hover {
    color: var(--trust-indigo-600);
}
.cv-form__back i {
    font-size: 18px;
    transition: transform 0.2s;
}
.cv-form__back:hover i {
    transform: translateX(-2px);
}
.cv-form__title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    margin: 0 0 4px;
    line-height: 1.2;
}
.cv-form__subtitle {
    font-size: 14px;
    color: var(--neutral-400);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

/* ── Global errors ── */

.cv-form__global-errors {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(225, 91, 78, 0.06);
    border: 1px solid rgba(225, 91, 78, 0.2);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--alert-coral-500);
    font-weight: 500;
}
.cv-form__global-errors > i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Two-column body ── */

.cv-form__body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ── Cards ── */

.cv-form__card {
    background: var(--paper-0);
    border: 1px solid var(--neutral-100);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.cv-form__card:focus-within {
    border-color: var(--neutral-200);
}

.cv-form__section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-400);
    margin-bottom: 20px;
}

/* ── Fields ── */

.cv-form__field {
    position: relative;
}

.cv-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 8px;
    line-height: 1.3;
}
.cv-form__separator {
    height: 1px;
    background: var(--neutral-100);
    margin: 24px 0;
}

/* ── Input & Textarea ── */

.cv-form__input {
    width: 100%;
    border: 1.5px solid var(--neutral-200) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-family: inherit;
    color: var(--ink-900);
    background: var(--paper-0);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.cv-form__input:hover {
    border-color: var(--neutral-400) !important;
}
.cv-form__input:focus {
    border-color: var(--trust-indigo-600) !important;
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.08) !important;
}
.cv-form__input::placeholder {
    color: var(--neutral-300);
    font-weight: 400;
}
.cv-form__input--sm {
    max-width: 100px;
    text-align: center;
    font-weight: 700;
    font-size: 16px !important;
}

.cv-form__textarea {
    width: 100%;
    border: 1.5px solid var(--neutral-200) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: inherit;
    color: var(--ink-900);
    background: var(--paper-0);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
    min-height: 220px;
    line-height: 1.65;
}
.cv-form__textarea:hover {
    border-color: var(--neutral-400) !important;
}
.cv-form__textarea:focus {
    border-color: var(--trust-indigo-600) !important;
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.08) !important;
}
.cv-form__textarea::placeholder {
    color: var(--neutral-300);
    font-weight: 400;
}

.cv-form__char-count {
    text-align: right;
    font-size: 12px;
    color: var(--neutral-400);
    margin-top: 8px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.cv-form__help {
    font-size: 13px;
    color: var(--neutral-400);
    margin: 10px 0 0;
    line-height: 1.5;
}

/* ── Validation errors (field-level) ── */

.cv-form .invalid-feedback,
.cv-form .form-error-message,
.cv-form .help-block {
    display: block !important;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(225, 91, 78, 0.06);
    border-radius: 8px;
    font-size: 13px;
    color: var(--alert-coral-500);
    font-weight: 500;
    line-height: 1.4;
}
.cv-form .has-error .cv-form__input,
.cv-form .has-error .cv-form__textarea,
.cv-form .is-invalid {
    border-color: var(--alert-coral-500) !important;
}

/* ── Category Visual Selector ── */

.cv-form__categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cv-form__cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px 14px;
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--paper-0);
    text-align: center;
    user-select: none;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}
.cv-form__cat-pill:hover {
    border-color: var(--neutral-300);
    background: var(--paper-50);
}
.cv-form__cat-pill:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}
.cv-form__cat-pill--active {
    border-color: var(--trust-indigo-600);
    background: rgba(43, 47, 119, 0.035);
    box-shadow: inset 0 0 0 1px var(--trust-indigo-600);
}
.cv-form__cat-pill--active:hover {
    border-color: var(--trust-indigo-600);
    background: rgba(43, 47, 119, 0.05);
}

.cv-form__cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--neutral-100);
    color: var(--neutral-400);
    transition: all 0.15s ease;
}
.cv-form__cat-pill--active .cv-form__cat-icon {
    background: rgba(43, 47, 119, 0.1);
    color: var(--trust-indigo-600);
}

.cv-form__cat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--neutral-500);
    line-height: 1.25;
    transition: color 0.15s ease;
}
.cv-form__cat-pill--active .cv-form__cat-label {
    color: var(--trust-indigo-600);
}

/* ── Publish toggle row ── */

.cv-form__publish-row {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.cv-form__publish-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.cv-form__publish-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 167, 150, 0.1);
    color: var(--circle-teal-500);
    font-size: 18px;
    flex-shrink: 0;
}
.cv-form__publish-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
}
.cv-form__publish-desc {
    font-size: 12px;
    color: var(--neutral-400);
    margin-top: 1px;
    line-height: 1.3;
}
.cv-form__publish-toggle {
    flex-shrink: 0;
}
.cv-form__publish-toggle .form-check {
    margin: 0;
    padding: 0;
    min-height: 0;
}
.cv-form__publish-toggle .form-check-input {
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

/* ── Metadata (edit mode) ── */

.cv-form__meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cv-form__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cv-form__meta-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.cv-form__meta-value {
    font-size: 13px;
    color: var(--ink-900);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ── Action Bar ── */

.cv-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 0;
    margin-top: 4px;
}
.cv-form__actions-right {
    display: flex;
    gap: 10px;
}

/* Buttons */
.cv-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
}
.cv-form__btn i {
    font-size: 18px;
}

.cv-form__btn--primary {
    background: var(--trust-indigo-600);
    color: #fff;
    border-color: var(--trust-indigo-600);
}
.cv-form__btn--primary:hover {
    background: var(--trust-indigo-hover);
    border-color: var(--trust-indigo-hover);
    color: #fff;
    box-shadow: 0 4px 14px rgba(43, 47, 119, 0.22);
}
.cv-form__btn--primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(43, 47, 119, 0.18);
}

.cv-form__btn--outline {
    background: var(--paper-0);
    color: var(--trust-indigo-600);
    border-color: var(--neutral-200);
}
.cv-form__btn--outline:hover {
    border-color: var(--trust-indigo-600);
    background: rgba(43, 47, 119, 0.03);
    color: var(--trust-indigo-600);
}

.cv-form__btn--ghost,
.ea .cv-form__btn--ghost {
    background: var(--paper-0);
    color: var(--neutral-500) !important;
    border-color: var(--neutral-200);
    padding-left: 20px;
    padding-right: 20px;
    text-decoration: none;
}
.cv-form__btn--ghost:hover,
.ea .cv-form__btn--ghost:hover {
    color: var(--ink-900) !important;
    border-color: var(--neutral-300);
    background: var(--paper-50);
    text-decoration: none;
}

/* Focus-visible for all buttons */
.cv-form__btn:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Formulaires CRUD EasyAdmin — design system `cv-form`
   Rendu par `templates/adminconsole/form/covamis_form_theme.html.twig`.
   Structure : cv-form__grid > cv-form__col > cv-form__card > cv-form__fields
               > cv-form__field-wrap (label + cv-form__control)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Grille (colonnes déclarées via FormField::addColumn) ── */

.cv-form__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
}
.cv-form__col {
    grid-column: span 12;
    min-width: 0;
    /* neutralise les largeurs/gouttières Bootstrap portées par les classes col-md-* */
    width: 100%;
    max-width: none;
    flex: none;
    padding-left: 0;
    padding-right: 0;
}
.cv-form__col.col-md-3, .cv-form__col.col-3 { grid-column: span 3; }
.cv-form__col.col-md-4, .cv-form__col.col-4 { grid-column: span 4; }
.cv-form__col.col-md-5, .cv-form__col.col-5 { grid-column: span 5; }
.cv-form__col.col-md-6, .cv-form__col.col-6 { grid-column: span 6; }
.cv-form__col.col-md-7, .cv-form__col.col-7 { grid-column: span 7; }
.cv-form__col.col-md-8, .cv-form__col.col-8 { grid-column: span 8; }
.cv-form__col.col-md-9, .cv-form__col.col-9 { grid-column: span 9; }

.cv-form__col-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-400);
    margin-bottom: 12px;
}
.cv-form__col-icon {
    font-size: 15px;
    color: var(--trust-indigo-600);
}
.cv-form__col-help {
    font-size: 13px;
    color: var(--neutral-400);
    margin: -6px 0 14px;
    line-height: 1.5;
}

/* ── Cartes ── */

.cv-form__card--flush {
    padding: 0;
    overflow: hidden;
}
.cv-form__card:last-child {
    margin-bottom: 0;
}
.cv-form__section-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cv-form__section-label--inset {
    padding: 22px 28px 0;
    margin-bottom: 14px;
}
.cv-form__section-icon {
    font-size: 16px;
    color: var(--trust-indigo-600);
}
.cv-form__section-help {
    font-size: 13px;
    color: var(--neutral-400);
    margin: -12px 0 18px;
    line-height: 1.5;
}
.cv-form__section-help--inset {
    padding: 0 28px;
}

/* ── Champs ── */

.cv-form__fields {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 22px;
}
.cv-form__field-wrap {
    grid-column: span 12;
    min-width: 0;
    /* neutralise les largeurs/gouttières Bootstrap portées par les classes col-md-* */
    width: 100%;
    max-width: none;
    flex: none;
    margin: 0;
    padding: 0;
}
.cv-form__field-wrap.col-md-3, .cv-form__field-wrap.col-3 { grid-column: span 3; }
.cv-form__field-wrap.col-md-4, .cv-form__field-wrap.col-4 { grid-column: span 4; }
.cv-form__field-wrap.col-md-5, .cv-form__field-wrap.col-5 { grid-column: span 5; }
.cv-form__field-wrap.col-md-6, .cv-form__field-wrap.col-6 { grid-column: span 6; }
.cv-form__field-wrap.col-md-8, .cv-form__field-wrap.col-8 { grid-column: span 8; }

/* Libellés (rendus par EasyAdmin avec la classe .form-control-label) */
.cv-form .form-control-label,
.cv-form .cv-form__field-wrap > label,
/* un groupe de choix déroulés est un fieldset : son libellé est un <legend> */
.cv-form .cv-form__field-wrap > legend {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.cv-form .form-control-label.required::after,
.cv-form__required {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--alert-coral-500);
    margin-left: 6px;
    vertical-align: 3px;
}
.cv-form__required {
    font-size: 0;
    color: transparent;
}

.cv-form__control {
    position: relative;
}

/* ── Contrôles de saisie ── */

.cv-form .form-control,
.cv-form .form-select {
    width: 100%;
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink-900);
    background-color: var(--paper-0);
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cv-form .form-control:hover,
.cv-form .form-select:hover {
    border-color: var(--neutral-300);
}
.cv-form .form-control:focus,
.cv-form .form-select:focus {
    border-color: var(--trust-indigo-600);
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.08);
    outline: none;
}
.cv-form .form-control::placeholder {
    color: var(--neutral-300);
    font-weight: 400;
}
.cv-form .form-control:disabled,
.cv-form .form-control[readonly],
.cv-form .form-select:disabled {
    background-color: var(--paper-50);
    color: var(--neutral-500);
    cursor: not-allowed;
}
.cv-form textarea.form-control {
    min-height: 140px;
    line-height: 1.65;
    resize: vertical;
}
.cv-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B8FA3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 12px;
    padding-right: 40px;
    appearance: none;
}

/* Champs numériques et dates : largeur contenue, chiffres tabulaires */
.cv-form input[type="number"].form-control {
    max-width: 220px;
    font-variant-numeric: tabular-nums;
}
.cv-form .datetime-widget input.form-control {
    max-width: 320px;
    font-variant-numeric: tabular-nums;
}
.cv-form .datetime-widget {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Groupes avec préfixe/suffixe (prepend / append) */
.cv-form .ea-input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--paper-0);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cv-form .ea-input-group:focus-within {
    border-color: var(--trust-indigo-600);
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.08);
}
.cv-form .ea-input-group .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.cv-form .ea-input-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--paper-50);
    color: var(--neutral-500);
    font-size: 13px;
    font-weight: 600;
    border-inline-end: 1.5px solid var(--neutral-200);
}
.cv-form .ea-input-addon-append {
    border-inline-end: none;
    border-inline-start: 1.5px solid var(--neutral-200);
}

/* Autocomplete / associations (tom-select) */
.cv-form .ts-wrapper {
    width: 100%;
}
.cv-form .ts-wrapper .ts-control {
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    padding: 9px 14px;
    min-height: 46px;
    font-size: 15px;
    font-weight: 500;
    background: var(--paper-0);
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cv-form .ts-wrapper.focus .ts-control {
    border-color: var(--trust-indigo-600);
    box-shadow: 0 0 0 3px rgba(43, 47, 119, 0.08);
}
.cv-form .ts-wrapper .ts-dropdown {
    border: 1px solid var(--neutral-100);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 6px;
}

/* Éditeur de code / text editor */
.cv-form .ea-text-editor-wrapper trix-editor,
.cv-form .CodeMirror {
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    font-size: 15px;
}

/* ── Aide & erreurs ── */

.cv-form__help,
.cv-form .form-help,
.cv-form .form-text {
    display: block;
    font-size: 13px;
    color: var(--neutral-400);
    margin: 8px 0 0;
    line-height: 1.5;
}
.cv-form .invalid-feedback {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--alert-coral-500);
    line-height: 1.45;
}
.cv-form .cv-form__field-wrap.has-error .form-control,
.cv-form .cv-form__field-wrap.has-error .form-select,
.cv-form .form-control.is-invalid,
.cv-form .form-select.is-invalid {
    border-color: var(--alert-coral-500);
}
.cv-form .cv-form__field-wrap.has-error .form-control:focus,
.cv-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(225, 91, 78, 0.12);
}

/* Erreurs globales du formulaire (rendues par EasyAdmin avant le <form>) */
.cv-form .global-invalid-feedback {
    padding: 14px 18px;
    margin-bottom: 20px;
    background: var(--alert-coral-100);
    border: 1px solid rgba(225, 91, 78, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--alert-coral-500);
}

/* ── Interrupteur (BooleanField) ── */

.cv-form__field-wrap--switch {
    padding: 2px 0;
}
.cv-form__switch {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cv-form__switch-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
    font-size: 18px;
}
.cv-form__switch-text {
    flex: 1;
    min-width: 0;
}
.cv-form .cv-form__switch-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
    margin: 0;
    cursor: pointer;
}
.cv-form__switch-desc {
    display: block;
    font-size: 12.5px;
    color: var(--neutral-400);
    line-height: 1.4;
    margin-top: 2px;
}
.cv-form__switch-control {
    flex-shrink: 0;
}

/* ── Choix déroulés (ChoiceField::renderExpanded) ──
   Lignes cochables : seule la ligne sélectionnée porte la couleur, le reste
   reste neutre, comme les lignes interrupteur du même formulaire. */

.cv-form__choices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cv-form .cv-form__choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cv-form .cv-form__choice:hover {
    background: var(--paper-50);
}
.cv-form .cv-form__choice:has(.cv-form__choice-input:checked) {
    background: var(--trust-indigo-100);
    border-color: rgba(43, 47, 119, 0.22);
}
.cv-form .cv-form__choice:has(.cv-form__choice-input:disabled) {
    cursor: not-allowed;
    opacity: 0.55;
}

.cv-form .cv-form__choice-input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    /* aligne la case sur la ligne de base du titre, pas sur le haut du bloc */
    margin: 1px 0 0;
    padding: 0;
    border: 1.5px solid var(--neutral-300);
    border-radius: 5px;
    background-color: var(--paper-0);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none;
    cursor: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cv-form .cv-form__choice-input[type="radio"] {
    border-radius: 50%;
}
.cv-form .cv-form__choice:hover .cv-form__choice-input:not(:checked) {
    border-color: var(--neutral-400);
}
.cv-form .cv-form__choice-input:checked {
    background-color: var(--trust-indigo-600);
    border-color: var(--trust-indigo-600);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m3 8.5 3.2 3.2L13 5'/%3e%3c/svg%3e");
}
.cv-form .cv-form__choice-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='3.5' fill='%23fff'/%3e%3c/svg%3e");
}
.cv-form .cv-form__choice-input:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}

.cv-form__choice-text {
    min-width: 0;
}
.cv-form .cv-form__choice-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.cv-form .cv-form__choice-desc {
    display: block;
    font-size: 12.5px;
    color: var(--neutral-400);
    line-height: 1.4;
    margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cv-form .cv-form__choice,
    .cv-form .cv-form__choice-input {
        transition: none;
    }
}

.cv-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.cv-switch__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.cv-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--neutral-200);
    transition: background-color 0.2s ease;
}
.cv-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--paper-0);
    box-shadow: 0 1px 3px rgba(20, 22, 31, 0.25);
    transition: transform 0.2s ease;
}
.cv-switch__input:checked ~ .cv-switch__track {
    background: var(--circle-teal-500);
}
.cv-switch__input:checked ~ .cv-switch__track .cv-switch__thumb {
    transform: translateX(20px);
}
.cv-switch__input:focus-visible ~ .cv-switch__track {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}
.cv-switch__input:disabled {
    cursor: not-allowed;
}
.cv-switch__input:disabled ~ .cv-switch__track {
    opacity: 0.5;
}

/* ── Page détail ── */

.cv-form__detail-card,
.cv-form__detail-rows {
    background: var(--paper-0);
}
.cv-form__detail-card {
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8px;
    padding: 0;
}
.cv-form--detail .field-group,
.cv-form__detail-card .field-group {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 14px 28px;
    border-top: 1px solid var(--neutral-100);
}
.cv-form__detail-rows > .field-group:first-child {
    border-top: none;
}
.cv-form--detail .field-group .field-label,
.cv-form__detail-card .field-label {
    flex: 0 0 210px;
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5;
}
.cv-form--detail .field-group .field-value,
.cv-form__detail-card .field-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--ink-900);
    font-weight: 500;
    word-break: break-word;
}
/* ─────────────────  Écrans de suivi (dépenses SMS)  ─────────────────
   Ces pages composent des blocs venus de deux systèmes d'espacement : la
   grille et les cartes du formulaire CRUD, qui portent leurs marges parce
   qu'elles vivent d'ordinaire dans `.cv-form`, et la barre de pavés du tableau
   de bord, qui porte les siennes. Empilés hors de leur conteneur d'origine, ils
   donnaient 20 px entre deux blocs, 4 px entre deux autres, et rien du tout
   entre la grille et ce qui la suit — la grille n'ayant ni `row-gap` ni marge
   basse, ses cartes se retrouvaient collées au bloc suivant.

   Une seule règle décide donc de l'écart, et les marges propres des composants
   sont neutralisées pour ne pas s'y ajouter. */
.cv-usage > * + * {
    margin-top: 20px;
}
.cv-usage .cv-filters,
.cv-usage .cv-stats-bar,
.cv-usage .cv-form__alert,
.cv-usage .cv-form__card {
    margin-bottom: 0;
}
.cv-usage .cv-form__grid {
    row-gap: 20px;
}
.cv-usage .cv-form__col > * + * {
    margin-top: 20px;
}

/* Un champ masqué par le formulaire (bloc « Action » d'une annonce) : la règle
   d'affichage de `.cv-form__field-wrap` l'emporterait sinon sur le comportement
   par défaut de l'attribut `hidden`, et le champ resterait visible. */
.cv-form__field-wrap[hidden] {
    display: none;
}
.cv-form--detail .field-group.field-textarea .field-value {
    line-height: 1.6;
    font-weight: 400;
}
/* Les retours à la ligne du texte sont conservés — un contenu de page légale ou
   une raison de litige en portent de vrais. Mais `pre-wrap` se pose sur le
   `<span>` qui porte la valeur, **jamais sur le conteneur** : le gabarit
   d'EasyAdmin y écrit son include sur sa propre ligne, indenté de huit espaces,
   et le conteneur rendait cette indentation-là comme du texte — un décalage
   avant le premier mot, une ligne vide au-dessus et au-dessous. */
.cv-form--detail .field-group.field-textarea .field-value > span {
    white-space: pre-wrap;
}
.cv-form--detail .cv-form__card--flush {
    padding: 0;
}
.cv-form--detail .cv-form__detail-rows:last-child > .field-group:last-child {
    border-bottom: none;
}

/* Colonnes étroites : libellé à gauche, valeur alignée à droite (façon fiche récap) */
.cv-form__col.col-md-3 .field-group,
.cv-form__col.col-md-4 .field-group,
.cv-form__col.col-md-5 .field-group {
    gap: 12px;
}
.cv-form__col.col-md-3 .field-label,
.cv-form__col.col-md-4 .field-label,
.cv-form__col.col-md-5 .field-label {
    flex: 0 1 auto;
}
.cv-form__col.col-md-3 .field-value,
.cv-form__col.col-md-4 .field-value,
.cv-form__col.col-md-5 .field-value {
    /* `0 1 auto` et non `0 0 auto` : la valeur doit pouvoir rétrécir. Sans
       flex-shrink, un identifiant de transaction — 32 caractères sans espace,
       donc sans point de césure naturel — gardait sa largeur intrinsèque et
       débordait de la carte, la césure autorisée plus bas ne pouvant jamais
       s'appliquer. */
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    text-align: right;
}
.cv-form--detail .field-group.field-datetime .field-value,
.cv-form--detail .field-group.field-date .field-value {
    white-space: nowrap;
}

/* ── Zone d'actions ── */

.cv-form__actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cv-form__actions .btn,
.cv-form__actions-right--detail .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}
.cv-form__actions-left .btn.action-delete,
.cv-form__actions-left .btn-danger {
    background: transparent;
    color: var(--alert-coral-500);
    border-color: transparent;
}
.cv-form__actions-left .btn.action-delete:hover,
.cv-form__actions-left .btn-danger:hover {
    background: var(--alert-coral-100);
    color: var(--alert-coral-500);
    border-color: transparent;
}

/* ── Le conteneur EasyAdmin s'efface au profit des cartes cv-form ── */

.content-body:has(.cv-form) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

/* ── Responsive ── */

@media (max-width: 1199px) {
    .cv-form__grid {
        column-gap: 20px;
    }
}
@media (max-width: 991px) {
    .cv-form__grid {
        grid-template-columns: 1fr;
    }
    .cv-form__col,
    .cv-form__col[class*="col-"] {
        grid-column: 1 / -1;
    }
    .cv-form__fields {
        grid-template-columns: 1fr;
    }
    .cv-form__field-wrap,
    .cv-form__field-wrap[class*="col-"] {
        grid-column: 1 / -1;
    }
}
@media (max-width: 767px) {
    .cv-form__section-label--inset {
        padding: 18px 20px 0;
    }
    .cv-form--detail .field-group,
    .cv-form__detail-card .field-group {
        flex-direction: column;
        gap: 4px;
        padding: 12px 20px;
    }
    .cv-form--detail .field-group .field-label,
    .cv-form__detail-card .field-label {
        flex: none;
    }
    .cv-form__actions-left {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}


/* ── Pages d'action métier (KYC, litiges, reversements, signalements) ── */


/* ── Encart d'information d'une page d'action métier ──
   À distinguer du flash : celui-ci annonce le résultat d'une action et
   disparaît, l'encart décrit un état permanent de la page — un plafond de
   validation dépassé, un litige déjà tranché. */

.cv-form__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
}
.cv-form__alert strong {
    font-weight: 600;
}
.cv-form__alert i {
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 1px;
}
.cv-form__alert--danger {
    background: var(--alert-coral-100);
    border: 1px solid rgba(225, 91, 78, 0.2);
    color: #932E24;
}
.cv-form__alert--warning {
    background: var(--route-amber-100);
    border: 1px solid rgba(242, 169, 59, 0.25);
    color: #8C5C10;
}

.cv-form__info-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cv-form__info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.cv-form__info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cv-form__info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 0;
    /* Une référence de prestataire n'a aucun point de césure : sans cela elle
       sort de la carte au lieu de passer à la ligne. */
    overflow-wrap: break-word;
}
.cv-form__info-value--amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--trust-indigo-600);
    letter-spacing: -0.02em;
}

.cv-form__quote {
    padding: 16px 18px;
    background: var(--paper-50);
    border: 1px solid var(--neutral-100);
    border-left: 3px solid var(--route-amber-500);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-900);
    white-space: pre-wrap;
}

.cv-form__btn--teal {
    background: var(--circle-teal-500);
    border-color: var(--circle-teal-500);
    color: #fff;
}
.cv-form__btn--teal:hover {
    background: #34907F;
    border-color: #34907F;
    color: #fff;
    box-shadow: 0 4px 14px rgba(63, 167, 150, 0.25);
}
.cv-form__btn--danger {
    background: var(--alert-coral-500);
    border-color: var(--alert-coral-500);
    color: #fff;
}
.cv-form__btn--danger:hover {
    background: #C94A3E;
    border-color: #C94A3E;
    color: #fff;
    box-shadow: 0 4px 14px rgba(225, 91, 78, 0.25);
}
.cv-form__btn--danger-ghost {
    background: var(--paper-0);
    color: var(--alert-coral-500);
    border-color: rgba(225, 91, 78, 0.35);
}
.cv-form__btn--danger-ghost:hover {
    background: var(--alert-coral-100);
    color: var(--alert-coral-500);
    border-color: var(--alert-coral-500);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pages de liste (index CRUD)
   Rendu par `templates/bundles/EasyAdminBundle/crud/index.html.twig`.
   Structure : cv-list__header + cv-list__criteria + cv-list__card
               (cv-list__scroll > table.datagrid + cv-list__footer)
               + cv-list__selection (barre flottante de sélection)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── En-tête ── */

.cv-list__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0 0 22px;
}
.cv-list__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cv-list__title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink-900);
    margin: 0;
}
.cv-list__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--neutral-500);
    background: var(--neutral-100);
    border-radius: 999px;
    padding: 3px 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}
.cv-list__subtitle {
    font-size: 14px;
    color: var(--neutral-400);
    line-height: 1.45;
    margin: 7px 0 0;
    max-width: 70ch;
}

.cv-list__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cv-list__tools .datagrid-filters,
.cv-list__tools .global-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
}
/* EasyAdmin masque ces blocs pendant une sélection : l'en-tête doit rester stable */
.cv-list__tools .datagrid-filters.d-none,
.cv-list__tools .global-actions.d-none {
    display: flex !important;
}
.ea .cv-list__tools .btn {
    padding: 9px 18px;
    font-size: 13.5px;
    border-radius: 10px !important;
}
.ea .cv-list__tools .action-filters-button {
    color: var(--ink-900) !important;
    border-color: var(--neutral-200) !important;
    background: var(--paper-0) !important;
}
.ea .cv-list__tools .action-filters-button .icon svg {
    color: var(--neutral-400);
}
.ea .cv-list__tools .action-filters-button:hover {
    border-color: var(--neutral-400) !important;
    background: var(--paper-50) !important;
}
.ea .cv-list__tools .action-filters-button.action-filters-applied {
    background: var(--trust-indigo-100) !important;
    border-color: transparent !important;
    color: var(--trust-indigo-600) !important;
}

/* ── Critères appliqués (recherche / filtres) ── */

.cv-list__criteria {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.cv-list__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--paper-0);
    border: 1px solid var(--neutral-100);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-900);
}
.cv-list__chip i {
    font-size: 14px;
    color: var(--neutral-400);
}
.cv-list__chip a {
    display: inline-flex;
    color: var(--neutral-400);
    margin-left: 2px;
}
.cv-list__chip a:hover {
    color: var(--alert-coral-500);
}
.cv-list__criteria-reset {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--neutral-400);
    text-decoration: none;
}
.cv-list__criteria-reset:hover {
    color: var(--trust-indigo-600);
}

/* ── Carte + zone de défilement ── */

.cv-list__card {
    background: var(--paper-0);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cv-list__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    /* Ombres de bord révélées uniquement quand le tableau déborde */
    background:
        linear-gradient(to right, var(--paper-0) 30%, rgba(255, 255, 255, 0)) left center,
        linear-gradient(to left, var(--paper-0) 30%, rgba(255, 255, 255, 0)) right center,
        radial-gradient(farthest-side at 0 50%, rgba(20, 22, 31, 0.13), rgba(20, 22, 31, 0)) left center,
        radial-gradient(farthest-side at 100% 50%, rgba(20, 22, 31, 0.13), rgba(20, 22, 31, 0)) right center;
    background-repeat: no-repeat;
    background-size: 48px 100%, 48px 100%, 18px 100%, 18px 100%;
    background-attachment: local, local, scroll, scroll;
}
/* Firefox (qui ne connaît pas ::-webkit-scrollbar) */
@supports (scrollbar-width: thin) and (not selector(::-webkit-scrollbar)) {
    .cv-list__scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--neutral-200) transparent;
    }
}
.cv-list__scroll::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}
.cv-list__scroll::-webkit-scrollbar-track {
    background: transparent;
}
.cv-list__scroll::-webkit-scrollbar-thumb {
    background: var(--neutral-200);
    border-radius: 999px;
    border: 4px solid var(--paper-0);
}
.cv-list__scroll::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-300);
}

/* ── Tableau ── */

.ea .cv-list .datagrid,
.cv-list .datagrid {
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.cv-list .datagrid thead th {
    padding: 13px 18px;
    background: transparent;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--neutral-400);
    white-space: nowrap;
    vertical-align: middle;
}
.cv-list .datagrid thead th a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit !important;
    text-decoration: none;
}
.cv-list .datagrid thead th a:hover {
    color: var(--ink-900) !important;
}
.cv-list .datagrid thead th .icon svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.cv-list .datagrid thead th:hover .icon svg {
    opacity: 0.55;
}
.cv-list .datagrid thead th.sorted,
.cv-list .datagrid thead th.sorted a {
    color: var(--trust-indigo-600) !important;
}
.cv-list .datagrid thead th.sorted .icon svg {
    opacity: 1;
}

.cv-list .datagrid tbody td {
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-900);
    background: transparent;
    border-bottom: 1px solid var(--neutral-100);
    border-top: none;
    vertical-align: middle;
}
.cv-list .datagrid tbody tr {
    transition: background-color 0.12s ease;
}
.cv-list .datagrid tbody tr:last-child td {
    border-bottom: none;
}
.cv-list .datagrid tbody tr:hover td {
    background: var(--paper-50);
}
.cv-list .datagrid tbody tr.selected-row td {
    background: rgba(43, 47, 119, 0.05);
}
.cv-list .datagrid th:first-child,
.cv-list .datagrid td:first-child {
    padding-left: 20px;
}
.cv-list .datagrid th:last-child,
.cv-list .datagrid td:last-child {
    padding-right: 20px;
}
.cv-list .datagrid td.batch-actions-selector,
.cv-list .datagrid thead th:has(.form-batch-checkbox-all) {
    width: 46px;
    padding-right: 0;
}

/* Colonnes typées */
.cv-list .datagrid td.field-id,
.cv-list .datagrid td.field-integer,
.cv-list .datagrid td.field-number,
.cv-list .datagrid td.field-datetime,
.cv-list .datagrid td.field-date {
    font-variant-numeric: tabular-nums;
    color: var(--neutral-500);
    white-space: nowrap;
}
.cv-list .datagrid td.field-text,
.cv-list .datagrid td.field-email,
.cv-list .datagrid td.field-telephone {
    color: var(--ink-900);
}
.cv-list .datagrid td a {
    color: var(--trust-indigo-600);
    text-decoration: none;
    font-weight: 600;
}
.cv-list .datagrid td a:hover {
    text-decoration: underline;
}

/* ── Cases à cocher sur-mesure ── */

.cv-list .datagrid .form-check {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    min-height: 0;
}
.ea .cv-list .datagrid input.form-check-input[type="checkbox"],
.cv-list .datagrid input.form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--neutral-300);
    border-radius: 5px;
    background-color: var(--paper-0);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cv-list .datagrid input.form-check-input[type="checkbox"]:hover {
    border-color: var(--neutral-400);
}
.ea .cv-list .datagrid input.form-check-input[type="checkbox"]:checked,
.cv-list .datagrid input.form-check-input[type="checkbox"]:checked {
    background-color: var(--trust-indigo-600);
    border-color: var(--trust-indigo-600);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m3 8.5 3.2 3.2L13 5'/%3e%3c/svg%3e");
}
.ea .cv-list .datagrid input.form-check-input[type="checkbox"]:indeterminate,
.cv-list .datagrid input.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--trust-indigo-600);
    border-color: var(--trust-indigo-600);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='2.5' d='M4 8h8'/%3e%3c/svg%3e");
}
.cv-list .datagrid input.form-check-input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}

/* ── Actions de ligne ── */

.cv-list .datagrid td.actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}
/* Une action qui **écrit** est rendue en `<form method="post">` plutôt qu'en
   lien : un GET la rendrait déclenchable par un préchargement de lien, un
   aperçu de messagerie ou un `<img src>` sur une page tierce. Un `<form>` étant
   un bloc, il passerait à la ligne et empilerait les boutons de la cellule ;
   `display: contents` le fait disparaître de la mise en page et laisse le
   bouton s'aligner comme les liens voisins. */
.cv-list .datagrid td.actions form,
.cv-form__actions-right form,
.cv-form__actions-left form {
    display: contents;
}
.cv-list .datagrid td.actions .btn,
.cv-list .datagrid td.actions .dropdown-toggle {
    opacity: 0.75;
    transition: opacity 0.12s ease;
}
.cv-list .datagrid tbody tr:hover td.actions .btn,
.cv-list .datagrid tbody tr:hover td.actions .dropdown-toggle,
.cv-list .datagrid td.actions .dropdown-toggle[aria-expanded="true"] {
    opacity: 1;
}
/* Actions standard : traitement discret, l'accent reste sur les données */
.ea .cv-list .datagrid td.actions .action-edit,
.ea .cv-list .datagrid td.actions .action-detail,
.ea .cv-list .datagrid td.actions .action-delete {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--neutral-500) !important;
    border-radius: 9px !important;
}
.ea .cv-list .datagrid td.actions .action-edit:hover,
.ea .cv-list .datagrid td.actions .action-detail:hover {
    background: var(--neutral-100) !important;
    color: var(--ink-900) !important;
    box-shadow: none !important;
}
.ea .cv-list .datagrid td.actions .action-delete:hover {
    background: var(--alert-coral-100) !important;
    color: var(--alert-coral-500) !important;
    box-shadow: none !important;
}
/* Actions métier : on conserve la couleur sémantique, en version compacte */
.ea .cv-list .datagrid td.actions .btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9px !important;
    box-shadow: none !important;
}
.ea .cv-list .datagrid td.actions .btn-success:not(.action-delete):not(.action-edit):not(.action-detail) {
    background: var(--circle-teal-100) !important;
    border-color: transparent !important;
    color: #2E7D6D !important;
}
.ea .cv-list .datagrid td.actions .btn-success:not(.action-delete):not(.action-edit):not(.action-detail):hover {
    background: var(--circle-teal-500) !important;
    color: #fff !important;
}
.ea .cv-list .datagrid td.actions .btn-danger:not(.action-delete):not(.action-edit):not(.action-detail) {
    background: var(--alert-coral-100) !important;
    border-color: transparent !important;
    color: #B33D32 !important;
}
.ea .cv-list .datagrid td.actions .btn-danger:not(.action-delete):not(.action-edit):not(.action-detail):hover {
    background: var(--alert-coral-500) !important;
    color: #fff !important;
}
.ea .cv-list .datagrid td.actions .btn-outline-primary:not(.action-delete):not(.action-edit):not(.action-detail) {
    background: var(--trust-indigo-100) !important;
    border-color: transparent !important;
    color: var(--trust-indigo-600) !important;
}
.ea .cv-list .datagrid td.actions .btn-outline-primary:not(.action-delete):not(.action-edit):not(.action-detail):hover {
    background: var(--trust-indigo-600) !important;
    color: #fff !important;
}
.cv-list .datagrid td.actions .btn + .btn {
    margin-left: 4px;
}

/* Actions standard en icône seule dans les lignes (libellé conservé pour les lecteurs
   d'écran, infobulle native via l'attribut title) ; les actions métier gardent leur libellé. */
.cv-list .datagrid td.actions .action-edit .action-label,
.cv-list .datagrid td.actions .action-detail .action-label,
.cv-list .datagrid td.actions .action-delete .action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ea .cv-list .datagrid td.actions .action-edit,
.ea .cv-list .datagrid td.actions .action-detail,
.ea .cv-list .datagrid td.actions .action-delete {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    justify-content: center;
}
.cv-list .datagrid td.actions .btn > .btn-icon svg {
    width: 15px;
    height: 15px;
}

/* Colonne d'actions figée à droite quand le tableau déborde horizontalement */
.cv-list__scroll--overflowing .datagrid thead th:last-child,
.cv-list__scroll--overflowing .datagrid td.actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--paper-0);
    box-shadow: -10px 0 14px -12px rgba(20, 22, 31, 0.45);
}
.cv-list__scroll--overflowing .datagrid tbody tr:hover td.actions {
    background: var(--paper-50);
}
.cv-list__scroll--overflowing .datagrid tbody tr.selected-row td.actions {
    background: #F1F1F7;
}
.cv-list__scroll--scrolled-end .datagrid thead th:last-child,
.cv-list__scroll--scrolled-end .datagrid td.actions {
    box-shadow: none;
}

/* Lignes cliquables (EasyAdmin ouvre la fiche au clic) */
.cv-list .datagrid tbody tr[data-default-action-url] {
    cursor: pointer;
}

/* ── État vide ── */

.cv-list .datagrid .cv-list__empty-row td {
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}
.cv-list .datagrid tbody tr.cv-list__empty-row:hover td {
    background: transparent;
}
.cv-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 58px 24px 62px;
}
.cv-list__empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-50);
    border: 1px solid var(--neutral-100);
    color: var(--neutral-400);
    font-size: 26px;
    margin-bottom: 16px;
}
.cv-list__empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 6px;
}
.cv-list__empty-hint {
    font-size: 13.5px;
    color: var(--neutral-400);
    line-height: 1.5;
    margin: 0;
    max-width: 380px;
}
.cv-list__empty-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 9px 18px;
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-900);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.cv-list__empty-action:hover {
    border-color: var(--trust-indigo-600);
    color: var(--trust-indigo-600);
    background: var(--trust-indigo-100);
}

/* ── Pied de carte : pagination ── */

.cv-list__footer {
    border-top: 1px solid var(--neutral-100);
    padding: 12px 20px;
    background: var(--paper-0);
}
.cv-list__footer .list-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: none;
}
.cv-list__footer .list-pagination-counter {
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-400);
}
.cv-list__footer .list-pagination-counter strong {
    color: var(--ink-900);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cv-list__footer .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}
.ea .cv-list__footer .page-item .page-link {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-500);
    background: transparent;
}
.ea .cv-list__footer .page-item .page-link:hover {
    background: var(--paper-50);
    color: var(--ink-900);
}
.ea .cv-list__footer .page-item.active .page-link {
    background: var(--trust-indigo-600);
    color: #fff;
}
.ea .cv-list__footer .page-item.disabled .page-link {
    color: var(--neutral-300);
    background: transparent;
    cursor: default;
}

/* ═══ Blocs d'entités liées sur les fiches (vue 360°) ═══ */

.cv-related {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
.cv-related__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none !important;
    color: var(--ink-900);
    transition: background-color 0.12s ease, border-color 0.12s ease;
}
a.cv-related__item:hover {
    background: var(--paper-50);
    border-color: var(--neutral-100);
}
.cv-related__label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-900);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.cv-related__item:hover .cv-related__label {
    color: var(--trust-indigo-600);
}
/* Colonne étroite : label et méta sur une seule ligne se disputent la place et
   le libellé finit en « V… ». On les empile. */
.cv-related--stacked .cv-related__item {
    flex-wrap: wrap;
    gap: 4px 10px;
}
.cv-related--stacked .cv-related__label {
    flex: 1 1 100%;
    white-space: normal;
    line-height: 1.35;
}
.cv-related--stacked .cv-related__meta {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.cv-related--stacked .cv-related__chevron {
    align-self: flex-start;
}

.cv-related__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cv-related__badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--neutral-100);
    color: var(--neutral-500);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.cv-related__badge--success {
    background: var(--circle-teal-100);
    color: #2E7D6D;
}
.cv-related__badge--warning {
    background: var(--route-amber-100);
    color: #B87A1E;
}
.cv-related__badge--danger {
    background: var(--alert-coral-100);
    color: #B33D32;
}
.cv-related__date {
    font-size: 12.5px;
    color: var(--neutral-400);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cv-related__chevron {
    font-size: 16px;
    color: var(--neutral-300);
}
a.cv-related__item:hover .cv-related__chevron {
    color: var(--trust-indigo-600);
}
.cv-related__more {
    padding: 8px 12px 2px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--neutral-400);
}
.cv-related__empty {
    font-size: 13.5px;
    color: var(--neutral-400);
    font-weight: 400;
}

/* Un bloc lié occupe toute la largeur de sa carte : le libellé est porté par
   le titre du fieldset, le champ est déclaré avec `false` comme label. */
.cv-form--detail .field-group:has(.cv-related),
.cv-form--detail .field-group:has(.cv-related__empty) {
    padding-top: 6px;
    padding-bottom: 10px;
}
.cv-form--detail .field-group:has(.cv-related) .field-value {
    width: 100%;
}

/* ═══ Messages de confirmation (flash) ═══ */

.cv-flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px 13px 16px;
    margin: 0 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    background: var(--paper-0);
    box-shadow: var(--shadow-sm);
}
.cv-flash__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
}
.cv-flash__text {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}
.cv-flash__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: 0.55;
    font-size: 17px;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.cv-flash__close:hover {
    opacity: 1;
    background: rgba(20, 22, 31, 0.06);
}

.cv-flash--success {
    background: var(--circle-teal-100);
    border-color: rgba(63, 167, 150, 0.28);
    color: #23705F;
}
.cv-flash--success .cv-flash__icon {
    color: var(--circle-teal-500);
}
.cv-flash--danger {
    background: var(--alert-coral-100);
    border-color: rgba(225, 91, 78, 0.28);
    color: #8E2E24;
}
.cv-flash--danger .cv-flash__icon {
    color: var(--alert-coral-500);
}
.cv-flash--warning {
    background: var(--route-amber-100);
    border-color: rgba(242, 169, 59, 0.3);
    color: #8A5A11;
}
.cv-flash--warning .cv-flash__icon {
    color: #C8871F;
}
.cv-flash--info {
    background: var(--trust-indigo-100);
    border-color: rgba(43, 47, 119, 0.2);
    color: var(--trust-indigo-600);
}
.cv-flash--info .cv-flash__icon {
    color: var(--trust-indigo-600);
}

/* ═══ Boîtes de dialogue de confirmation (suppression, actions par lot) ═══ */

.ea .cv-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
    max-width: 420px;
}
.ea .cv-modal .modal-content {
    width: 100%;
    border: 1px solid var(--neutral-100);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(20, 22, 31, 0.24);
    background: var(--paper-0);
}
.ea .cv-modal .modal-body {
    padding: 30px 28px 18px;
    text-align: center;
}
.ea .cv-modal .modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 15px;
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
}
.ea .cv-modal--danger .modal-icon {
    background: var(--alert-coral-100);
    color: var(--alert-coral-500);
}
.ea .cv-modal .modal-icon svg {
    width: 24px;
    height: 24px;
}
.ea .cv-modal .modal-body-content h4 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0 0 7px;
    line-height: 1.3;
}
.ea .cv-modal .modal-body-content p {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--neutral-400);
    line-height: 1.5;
    margin: 0;
}
.ea .cv-modal .modal-footer {
    display: flex;
    gap: 10px;
    justify-content: stretch;
    padding: 6px 28px 26px;
    border-top: none;
    background: transparent;
}
.ea .cv-modal .modal-footer .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px !important;
}
.ea .cv-modal .modal-footer .btn-secondary {
    background: var(--paper-0) !important;
    border: 1.5px solid var(--neutral-200) !important;
    color: var(--ink-900) !important;
}
.ea .cv-modal .modal-footer .btn-secondary:hover {
    border-color: var(--neutral-400) !important;
    background: var(--paper-50) !important;
}
.ea .cv-modal .modal-footer .btn-danger:hover {
    box-shadow: 0 6px 18px rgba(225, 91, 78, 0.28) !important;
}
.modal-backdrop.show {
    background: rgba(20, 22, 31, 0.55);
    opacity: 1;
}

/* ── Barre de sélection flottante ── */

.cv-list__selection {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 9px 10px 9px 20px;
    border-radius: 999px;
    background: var(--ink-900);
    box-shadow: 0 14px 40px rgba(20, 22, 31, 0.28);
    animation: cv-list-selection-in 0.18s ease-out;
}
.cv-list__selection.d-block {
    display: flex !important;
}
@keyframes cv-list-selection-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.cv-list__selection-count {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.cv-list__selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cv-list__selection-clear {
    padding: 7px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.cv-list__selection-clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.ea .cv-list__selection .btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px !important;
}
.ea .cv-list__selection .btn-danger {
    background: var(--alert-coral-500) !important;
    border-color: var(--alert-coral-500) !important;
}
.ea .cv-list__selection .btn-danger:hover {
    background: #C94A3E !important;
    border-color: #C94A3E !important;
    box-shadow: none !important;
}

/* ── Le conteneur EasyAdmin s'efface au profit de la carte ── */

.content-body:has(.cv-list) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

/* ── Responsive ── */

@media (max-width: 767px) {
    /* EasyAdmin bascule le tableau en fiches empilées : on réaligne le libellé
       de chaque cellule (rendu via `data-label`) avec la grille Covamis. */
    .cv-list__card {
        border: none;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }
    .cv-list__scroll {
        overflow: visible;
        background: none;
    }
    .cv-list .datagrid:not(.datagrid-empty) tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--neutral-100);
        border-radius: 12px;
        background: var(--paper-0);
        overflow: hidden;
    }
    .cv-list .datagrid:not(.datagrid-empty) tbody td {
        display: block;
        position: relative;
        min-height: 42px;
        padding: 11px 14px 11px 42% !important;
        border-bottom: 1px solid var(--neutral-100);
        box-shadow: none;
    }
    .cv-list .datagrid:not(.datagrid-empty) tbody tr td:last-child {
        border-bottom: none;
    }
    .cv-list .datagrid:not(.datagrid-empty) tbody td::before {
        content: attr(data-label);
        position: absolute;
        inset-inline-start: 14px;
        top: 11px;
        width: 34%;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--neutral-400);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cv-list .datagrid:not(.datagrid-empty) tbody td.batch-actions-selector,
    .cv-list .datagrid:not(.datagrid-empty) tbody td.actions {
        padding: 11px 14px !important;
        text-align: left;
    }
    .cv-list .datagrid:not(.datagrid-empty) tbody td.batch-actions-selector::before,
    .cv-list .datagrid:not(.datagrid-empty) tbody td.actions::before {
        display: none;
    }
    /* la colonne figée n'a plus de sens sans défilement horizontal */
    .cv-list__scroll--overflowing .datagrid thead th:last-child,
    .cv-list__scroll--overflowing .datagrid td.actions {
        position: static;
        box-shadow: none;
    }
    .cv-list__footer {
        border: 1px solid var(--neutral-100);
        border-radius: 12px;
        background: var(--paper-0);
    }

    .cv-list__header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cv-list__tools {
        flex-wrap: wrap;
    }
    .cv-list__selection {
        left: 16px;
        right: 16px;
        transform: none;
        justify-content: space-between;
        border-radius: 16px;
    }
    .cv-list__selection.d-block {
        transform: none;
    }
    @keyframes cv-list-selection-in {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .cv-list__footer .list-pagination {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* ── Responsive ── */

@media (max-width: 991px) {
    .cv-form__body {
        grid-template-columns: 1fr;
    }
    .cv-form__sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .cv-form__sidebar .cv-form__card {
        margin-bottom: 0;
    }
}
@media (max-width: 767px) {
    .cv-form__categories {
        grid-template-columns: repeat(3, 1fr);
    }
    .cv-form__sidebar {
        grid-template-columns: 1fr;
    }
    .cv-form__card {
        padding: 20px;
        border-radius: 10px;
    }
    .cv-form__detail-card .field-group {
        flex-direction: column;
        gap: 4px;
        padding: 12px 20px;
    }
    .cv-form__detail-card .field-label {
        flex: none;
    }
}
@media (max-width: 575px) {
    .cv-form__categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .cv-form__actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    .cv-form__actions-right {
        width: 100%;
        flex-direction: column;
    }
    .cv-form__btn {
        justify-content: center;
        width: 100%;
    }
    .cv-form__btn--ghost {
        width: 100%;
    }
    .cv-form__title {
        font-size: 1.375rem;
    }
    .cv-form__actions-right--detail {
        flex-wrap: wrap;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FICHE D'AMITIÉ — vue 360° d'un lien du réseau de confiance
   Composants propres à cet écran : les deux membres face à face, la frise du
   lien, le rythme des trajets partagés et la réciprocité.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Les deux membres, face à face ── */

.cv-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 20px;
}
.cv-pair__side {
    min-width: 0;
}
.cv-pair__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--trust-indigo-600);
    color: var(--paper-0);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.cv-form .cv-pair__name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    text-decoration: none;
}
.cv-form .cv-pair__name:hover {
    color: var(--trust-indigo-600);
}
.cv-pair__role {
    display: block;
    font-size: 12.5px;
    color: var(--neutral-400);
    margin-bottom: 12px;
}
.cv-pair__facts {
    margin: 0;
}
.cv-pair__facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-top: 1px solid var(--neutral-100);
}
.cv-pair__facts > div:first-child {
    border-top: none;
}
.cv-pair__facts dt {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--neutral-400);
    margin: 0;
}
.cv-pair__facts dd {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-900);
    margin: 0;
    text-align: right;
}
/* Le trait d'union entre les deux : c'est le sujet de la page. */
.cv-pair__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--route-amber-100);
    color: #8C5C10;
    font-size: 19px;
}

/* ── Frise du lien ── */

.cv-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.cv-timeline__step {
    position: relative;
    padding-top: 22px;
}
/* Le point de l'étape, et le trait qui la relie à la précédente. */
.cv-timeline__step::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--neutral-300);
    background: var(--paper-0);
}
.cv-timeline__step::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 11px;
    right: -12px;
    height: 2px;
    background: var(--neutral-100);
}
.cv-timeline__step:last-child::after {
    display: none;
}
.cv-timeline__step--done::before {
    border-color: var(--circle-teal-500);
    background: var(--circle-teal-500);
}
.cv-timeline__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cv-timeline__date {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-900);
    margin-top: 3px;
}
.cv-timeline__date em {
    font-style: normal;
    font-weight: 500;
    color: var(--neutral-400);
}

/* ── Rythme des trajets partagés ── */

.cv-rhythm {
    margin-bottom: 22px;
}
.cv-rhythm__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.cv-rhythm__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-900);
}
.cv-rhythm__bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 78px;
}
.cv-rhythm__bar {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--neutral-100) 0, var(--neutral-100) 3px, transparent 3px);
}
/* La barre est dessinée en fond, pour que le libellé du mois reste lisible. */
.cv-rhythm__bar--filled::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--h, 0%);
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--trust-indigo-600);
}
.cv-rhythm__month {
    position: relative;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--neutral-400);
    transform: translateY(16px);
}

.cv-vitality {
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.cv-vitality--active {
    background: var(--circle-teal-100);
    color: #24685C;
}
.cv-vitality--asleep {
    background: var(--route-amber-100);
    color: #8C5C10;
}
.cv-vitality--extinct,
.cv-vitality--dormant {
    background: var(--neutral-100);
    color: var(--neutral-500);
}

/* ── Réciprocité : qui conduit qui, qui écrit le plus ── */

.cv-reciprocity {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--neutral-100);
}
.cv-reciprocity__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 4px 14px;
}
.cv-reciprocity__label {
    grid-row: span 2;
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cv-reciprocity__value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-900);
}
.cv-reciprocity__bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--circle-teal-500);
    overflow: hidden;
}
.cv-reciprocity__bar--empty {
    background: var(--neutral-100);
}
.cv-reciprocity__bar > span {
    display: block;
    height: 100%;
    background: var(--trust-indigo-600);
}

.cv-form__section-count {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--neutral-400);
    background: var(--neutral-100);
    border-radius: 999px;
    padding: 1px 9px;
}

@media (max-width: 767px) {
    .cv-pair {
        grid-template-columns: 1fr;
    }
    .cv-pair__link {
        transform: rotate(90deg);
    }
    .cv-timeline {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Plan des places d'un trajet ──
   Une case par siège proposé : l'état du paiement se lit d'un coup d'œil,
   là où une liste de réservations demande d'additionner soi-même. */

.cv-seatmap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.cv-seatmap__seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 84px;
    padding: 12px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-100);
    background: var(--paper-0);
    font-size: 19px;
    color: var(--neutral-400);
}
.cv-seatmap__who {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cv-seatmap__seat--released {
    border-color: rgba(63, 167, 150, 0.35);
    background: var(--circle-teal-100);
    color: #24685C;
}
.cv-seatmap__seat--paid {
    border-color: rgba(43, 47, 119, 0.25);
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
}
.cv-seatmap__seat--booked {
    border-color: rgba(242, 169, 59, 0.35);
    background: var(--route-amber-100);
    color: #8C5C10;
}
.cv-seatmap__seat--free {
    border-style: dashed;
    color: var(--neutral-300);
}
.cv-seatmap__seat--free .cv-seatmap__who {
    font-weight: 500;
    color: var(--neutral-400);
}

.cv-seatmap__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12.5px;
    color: var(--neutral-400);
}
.cv-seatmap__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cv-seatmap__dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1px solid var(--neutral-100);
}
.cv-seatmap__dot--released { background: var(--circle-teal-500); border-color: var(--circle-teal-500); }
.cv-seatmap__dot--paid { background: var(--trust-indigo-600); border-color: var(--trust-indigo-600); }
.cv-seatmap__dot--booked { background: var(--route-amber-500); border-color: var(--route-amber-500); }
.cv-seatmap__dot--free { background: var(--paper-0); border-style: dashed; border-color: var(--neutral-300); }

/* ── Photo de profil et sa modération ──
   La photo est stockée carrée et affichée en rond : c'est ce que fait tout le
   monde, et c'est ce que l'utilisateur verra dans l'application. L'administration
   doit la voir exactement ainsi pour juger sur pièce. */

.cv-photo {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.cv-photo__frame {
    position: relative;
    width: 120px;
    height: 120px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-50);
    border: 3px solid var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-photo__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cv-photo__frame--pending { border-color: var(--route-amber-500); }
.cv-photo__frame--approved { border-color: var(--circle-teal-500); }
.cv-photo__frame--rejected { border-color: var(--alert-coral-500); }
.cv-photo__initials {
    font-size: 34px;
    font-weight: 700;
    color: var(--neutral-400);
    letter-spacing: 0.02em;
}
.cv-photo__side {
    flex: 1;
    min-width: 200px;
}
.cv-photo__reason {
    margin: 8px 0 0;
    font-size: 13.5px;
    font-style: italic;
    color: var(--alert-coral-500);
}
.cv-photo__meta {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--neutral-400);
    line-height: 1.5;
}

/* Comparaison photo / selfie : c'est le geste de la modération. */
.cv-photo-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}
.cv-photo-compare__item {
    margin: 0;
    text-align: center;
}
.cv-photo-compare__item figcaption {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cv-photo-compare__item .cv-photo__frame {
    width: 160px;
    height: 160px;
}
.cv-photo-compare__selfie {
    width: 200px;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-100);
    background: var(--paper-50);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-photo-compare__selfie img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cv-photo-compare__missing {
    font-size: 12.5px;
    color: var(--neutral-400);
    padding: 0 14px;
    text-align: center;
}

/* ── Recadrage d'une photo de profil ──
   Le cadre est rond parce que la photo sera affichée en rond : ce que l'on
   voit ici est exactement ce que verra le covoyageur. L'image est stockée
   carrée, c'est l'affichage qui l'arrondit. */

.cv-cropper {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}
.cv-cropper__stage {
    position: relative;
    width: 320px;
    height: 320px;
    flex: none;
    border-radius: var(--radius-lg);
    background: var(--paper-50);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-cropper__canvas {
    display: none;
    width: 320px;
    height: 320px;
    cursor: grab;
    touch-action: none;
}
.cv-cropper__canvas:active {
    cursor: grabbing;
}
.cv-cropper.is-loaded .cv-cropper__canvas {
    display: block;
}
.cv-cropper.is-loaded .cv-cropper__empty {
    display: none;
}
/* Le masque rond : un voile qui ne laisse voir que le disque, posé par-dessus
   le canvas sans gêner la prise en main (pointer-events désactivés). */
.cv-cropper.is-loaded .cv-cropper__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
    background: rgba(20, 22, 31, 0.55);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 148px, #000 149px);
    mask: radial-gradient(circle at 50% 50%, transparent 0 148px, #000 149px);
}
.cv-cropper.is-loaded .cv-cropper__stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 296px;
    height: 296px;
    margin: -148px 0 0 -148px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 1;
}
.cv-cropper__empty {
    margin: 0;
    padding: 0 28px;
    text-align: center;
    font-size: 13.5px;
    color: var(--neutral-400);
    line-height: 1.5;
}
.cv-cropper.has-error .cv-cropper__empty {
    color: var(--alert-coral-500);
    font-weight: 600;
}

.cv-cropper__controls {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cv-cropper__pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: var(--radius-button, 10px);
    border: 1px dashed var(--neutral-300);
    background: var(--paper-0);
    font-size: 14px;
    font-weight: 600;
    color: var(--trust-indigo-600);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cv-cropper__pick:hover {
    border-color: var(--trust-indigo-600);
    background: var(--trust-indigo-100);
}
.cv-cropper__pick input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.cv-cropper__pick i {
    font-size: 18px;
}

.cv-cropper__zoom {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neutral-400);
    font-size: 17px;
}
.cv-cropper__zoom input[type="range"] {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 999px;
    background: var(--neutral-100);
    outline: none;
}
.cv-cropper__zoom input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--trust-indigo-600);
    border: 3px solid var(--paper-0);
    box-shadow: 0 1px 4px rgba(20, 22, 31, 0.25);
    cursor: pointer;
}
.cv-cropper__zoom input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--trust-indigo-600);
    border: 3px solid var(--paper-0);
    cursor: pointer;
}
.cv-cropper__hint {
    margin: 0;
    font-size: 12.5px;
    color: var(--neutral-400);
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .cv-cropper__pick {
        transition: none;
    }
}

/* Frise à six étapes : le parcours d'une réservation en compte plus qu'un lien. */
.cv-timeline--six {
    grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 991px) {
    .cv-timeline--six {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
    }
}
/* Portrait réduit, pour les fiches où deux visages se font face. */
.cv-photo__frame--sm {
    width: 64px;
    height: 64px;
    border-width: 2px;
    margin-bottom: 10px;
}
.cv-photo__frame--sm .cv-photo__initials {
    font-size: 20px;
}
.cv-photo__frame--none {
    border-color: var(--neutral-100);
}

/* ── Fil de conversation d'un litige ──
   Les deux paroles doivent se distinguer d'un regard : c'est sur elles que
   l'arbitrage se fait. */

.cv-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.cv-thread__line {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: baseline;
    gap: 12px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    background: var(--paper-50);
}
.cv-thread__line--driver {
    border-left-color: var(--trust-indigo-600);
}
.cv-thread__line--passenger {
    border-left-color: var(--circle-teal-500);
}
.cv-thread__who {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cv-thread__text {
    font-size: 13.5px;
    color: var(--ink-900);
    line-height: 1.5;
    word-break: break-word;
}
.cv-thread__when {
    font-size: 12px;
    color: var(--neutral-400);
    white-space: nowrap;
}
@media (max-width: 767px) {
    .cv-thread__line {
        grid-template-columns: 1fr auto;
    }
    .cv-thread__text {
        grid-column: 1 / -1;
    }
}

/* ── Le fil d'une demande d'aide ──
   Même composant que le fil d'un litige, deux écarts.

   Les retours à la ligne sont conservés : un message de support fait des
   paragraphes là où un message de chat fait une phrase, et tout coller ferait
   un pavé illisible. ⚠️ Le gabarit doit alors écrire la valeur **collée à la
   balise ouvrante** — une valeur indentée rendrait son indentation, comme sur
   les champs texte longs des fiches détail.

   Et la pièce jointe prend sa propre ligne : le fil est une grille de trois
   colonnes, un quatrième enfant s'y glisserait de travers. */
.cv-thread--support .cv-thread__text {
    white-space: pre-wrap;
}
.cv-thread__file {
    grid-column: 2 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px;
    border: 1px solid var(--cv-border, rgba(20, 22, 31, .12));
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--trust-indigo-600);
    text-decoration: none;
}
.cv-thread__file:hover {
    background: var(--paper-50);
}
@media (max-width: 767px) {
    .cv-thread__file {
        grid-column: 1 / -1;
    }
}

/* ── Photo d'un véhicule ──
   Paysage 16:9, car une voiture est large et basse. La bordure porte l'état de
   modération, comme le portrait rond d'un visage. */

.cv-vehicle-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-50);
    border: 3px solid var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-vehicle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cv-vehicle-photo--pending { border-color: var(--route-amber-500); }
.cv-vehicle-photo--approved { border-color: var(--circle-teal-500); }
.cv-vehicle-photo--rejected { border-color: var(--alert-coral-500); }

/* Le recadreur en paysage : masque rectangulaire arrondi au lieu du cercle. */
.cv-cropper--landscape .cv-cropper__stage {
    width: 480px;
    height: 270px;
}
.cv-cropper--landscape .cv-cropper__canvas {
    width: 480px;
    height: 270px;
}
.cv-cropper--landscape.is-loaded .cv-cropper__stage::after {
    -webkit-mask: none;
    mask: none;
    background: none;
}
.cv-cropper--landscape.is-loaded .cv-cropper__stage::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(20, 22, 31, 0.15);
}
.cv-photo-compare__item .cv-vehicle-photo {
    width: 320px;
}

/* ── Jauge de suspension automatique (fiche signalement) ──
   Un cran par signalement confirmé qu'il faut pour suspendre un compte.
   Le passif d'un membre est une accumulation : une barre segmentée la donne
   à lire d'un coup, là où « 2 confirmés sur 3 » demande de calculer la
   distance restante. */

.cv-gauge {
    margin-bottom: 16px;
}
.cv-gauge__track {
    display: flex;
    gap: 6px;
}
.cv-gauge__step {
    flex: 1 1 0;
    height: 10px;
    border-radius: 999px;
    background: var(--neutral-100);
    border: 1px solid transparent;
}
.cv-gauge__step--filled {
    background: var(--alert-coral-500);
}
/* Le cran suivant, celui que cette décision remplirait. */
.cv-gauge__step--next {
    background: var(--paper-0);
    border-color: var(--alert-coral-500);
    border-style: dashed;
}
.cv-gauge__legend {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--neutral-400);
}

/* ── Le dossier KYC d'un membre (fiche pièce KYC) ──
   Trois cases, une par pièce exigée : ce qui manque se voit aussi vite que ce
   qui est validé, et la pièce en cours d'examen se repère dans le trio. */

.cv-kycset {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}
.cv-kycset__item {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-100);
    background: var(--paper-0);
    text-align: center;
}
.cv-kycset__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 84px;
    border-radius: var(--radius-sm);
    background: var(--paper-50);
    overflow: hidden;
    font-size: 26px;
    color: var(--neutral-300);
}
/* `contain` et non `cover` : sur une pièce d'identité, un cadrage rogne
   précisément ce qu'on cherche à lire. */
.cv-kycset__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cv-kycset__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink-900);
}
.cv-kycset__state {
    font-size: 12px;
    line-height: 1.3;
    color: var(--neutral-400);
}

.cv-kycset__item--ok {
    border-color: rgba(63, 167, 150, 0.35);
    background: var(--circle-teal-100);
}
.cv-kycset__item--ok .cv-kycset__state { color: #24685C; }
.cv-kycset__item--wait {
    border-color: rgba(242, 169, 59, 0.35);
    background: var(--route-amber-100);
}
.cv-kycset__item--wait .cv-kycset__state { color: #8C5C10; }
.cv-kycset__item--ko {
    border-color: rgba(225, 91, 78, 0.35);
    background: var(--alert-coral-100);
}
.cv-kycset__item--ko .cv-kycset__state { color: var(--alert-coral-500); }
/* Rien n'a été déposé : la case reste ouverte, elle n'est pas en faute. */
.cv-kycset__item--none {
    border-style: dashed;
}
/* La pièce qu'on examine : c'est le seul repère dont l'agent a besoin dans le trio. */
.cv-kycset__item--current {
    box-shadow: 0 0 0 2px var(--trust-indigo-600);
    border-color: transparent;
}

/* ── La pièce elle-même ── */

.cv-kycdoc {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-100);
    background: var(--paper-50);
    overflow: hidden;
    max-width: 560px;
}
.cv-kycdoc img {
    display: block;
    width: 100%;
    max-height: 520px;
    /* Jamais rogné : un document tronqué ne se lit plus, et sa hauteur est
       bornée pour qu'un cliché en portrait ne pousse pas le reste hors écran. */
    object-fit: contain;
}
.cv-kycdoc--file,
.cv-kycdoc--missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 44px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-400);
}
.cv-kycdoc--file i,
.cv-kycdoc--missing i {
    font-size: 34px;
}
.cv-kycdoc--missing {
    border-style: dashed;
    color: var(--alert-coral-500);
}

/* ── Le grand livre d'un portefeuille (fiche wallet) ──
   La réconciliation d'abord : trois égalités qui tiennent, ou qui ne tiennent
   pas. Puis les écritures, alignées pour que la colonne du solde après chaque
   mouvement se lise comme une colonne de relevé bancaire. */

.cv-ledger {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}
.cv-ledger__check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 13.5px;
}
.cv-ledger__check i {
    font-size: 18px;
    flex: none;
}
.cv-ledger__check-label {
    flex: 1 1 auto;
    font-weight: 600;
}
.cv-ledger__check-value {
    flex: none;
    font-variant-numeric: tabular-nums;
}
.cv-ledger__check--ok {
    border-color: rgba(63, 167, 150, 0.3);
    background: var(--circle-teal-100);
    color: #24685C;
}
.cv-ledger__check--ko {
    border-color: rgba(225, 91, 78, 0.35);
    background: var(--alert-coral-100);
    color: var(--alert-coral-500);
}

.cv-ledger__rows {
    display: flex;
    flex-direction: column;
}
.cv-ledger__row {
    display: grid;
    grid-template-columns: 88px 1fr auto auto;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 13.5px;
}
.cv-ledger__row:last-child {
    border-bottom: none;
}
.cv-ledger__date {
    color: var(--neutral-400);
    font-variant-numeric: tabular-nums;
}
.cv-ledger__label {
    font-weight: 600;
    color: var(--ink-900);
}
/* La référence rattache l'écriture à ce qui l'a produite (`booking:12`) : utile
   pour rapprocher, jamais au premier plan. */
.cv-ledger__ref {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--neutral-400);
}
.cv-ledger__amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cv-ledger__amount--in { color: var(--circle-teal-500); }
.cv-ledger__amount--out { color: var(--alert-coral-500); }
.cv-ledger__after {
    min-width: 116px;
    text-align: right;
    color: var(--neutral-400);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cv-ledger__row {
        grid-template-columns: 1fr auto;
        row-gap: 2px;
    }
    .cv-ledger__date { order: 1; }
    .cv-ledger__amount { order: 2; }
    .cv-ledger__label { order: 3; }
    .cv-ledger__after { order: 4; min-width: 0; }
}

/* ── Une note et son poids (fiche notation) ──
   La note elle-même d'abord, puis ce qu'elle déplace : la moyenne sans elle
   face à la moyenne affichée. C'est le seul chiffre qui dise si une note
   compte ou se noie dans les autres. */

.cv-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.cv-rating__score {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
}
.cv-rating__max {
    font-size: 17px;
    font-weight: 600;
    color: var(--neutral-400);
}
.cv-rating--small .cv-rating__score {
    font-size: 22px;
}
.cv-rating__link {
    font-size: 13px;
}
.cv-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 19px;
    color: var(--neutral-200);
}
.cv-stars__on {
    color: var(--route-amber-500);
}

.cv-weigh {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
}
.cv-weigh__side {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-100);
    background: var(--paper-0);
}
/* Seule la moyenne réellement affichée aux membres porte la couleur de marque. */
.cv-weigh__side--now {
    border-color: rgba(43, 47, 119, 0.25);
    background: var(--trust-indigo-100);
}
.cv-weigh__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--neutral-400);
}
.cv-weigh__value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--ink-900);
}
.cv-weigh__arrow {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: var(--neutral-300);
}
.cv-weigh__delta {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cv-weigh__delta--down {
    background: var(--alert-coral-100);
    color: var(--alert-coral-500);
}
.cv-weigh__delta--up {
    background: var(--circle-teal-100);
    color: #24685C;
}

.cv-spread {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cv-spread__row {
    display: grid;
    grid-template-columns: 16px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--neutral-400);
}
.cv-spread__row--current {
    background: var(--route-amber-100);
    color: #8C5C10;
    font-weight: 600;
}
.cv-spread__score {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.cv-spread__track {
    height: 8px;
    border-radius: 999px;
    background: var(--neutral-100);
    overflow: hidden;
}
.cv-spread__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--route-amber-500);
}
.cv-spread__count {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
    .cv-weigh {
        flex-wrap: wrap;
    }
    .cv-weigh__arrow {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Bilan financier (/admin/bilan)

   Un écran de chiffres : tout est aligné sur les décimales (`tabular-nums`) et
   la seule couleur sémantique porte le sens du flux — teal pour ce qui entre,
   corail pour ce qui sort. Les trois pavés de tête portent l'audace de la page,
   le reste reste sobre.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Barre de filtres ─────────────────────────────────────────────────── */

.cv-filters {
    background: var(--paper-0);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.cv-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}
.cv-filters__presets {
    display: inline-flex;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}
.cv-filters__preset {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.cv-filters__preset:hover {
    color: var(--trust-indigo-600);
    background: var(--paper-0);
}
.cv-filters__preset--on,
.cv-filters__preset--on:hover {
    background: var(--trust-indigo-600);
    color: #fff;
}
.cv-filters__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cv-filters__field label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--neutral-400);
    margin: 0;
}
.cv-filters__field input,
.cv-filters__field select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    background: var(--paper-0);
    color: var(--ink-900);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    max-width: 100%;
}
.cv-filters__field input:focus,
.cv-filters__field select:focus {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 1px;
    border-color: var(--trust-indigo-600);
}
.cv-filters .cv-btn {
    margin-left: auto;
}

/* ── Pavés de revenu ──────────────────────────────────────────────────── */

.cv-stats-bar--finance {
    margin-bottom: 4px;
}
.cv-stats-bar--finance .cv-stats-bar__value {
    font-variant-numeric: tabular-nums;
}
.cv-stats-bar--finance .cv-stats-bar__value small {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-400);
    letter-spacing: 0;
}
.cv-stats-bar__value--negative {
    color: var(--alert-coral-500);
}

/* ── Montants ─────────────────────────────────────────────────────────── */

.cv-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.cv-amount__unit {
    font-weight: 500;
    color: var(--neutral-400);
    font-size: 0.75rem;
}
.cv-amount--positive {
    color: #2E7D6D;
}
.cv-amount--negative {
    color: #B33D32;
}

/* ── Compte de résultat ───────────────────────────────────────────────── */

.cv-account {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(160px, 0.7fr);
    gap: 0;
}
.cv-account__col {
    padding: 4px 20px 4px 0;
    min-width: 0;
}
.cv-account__col + .cv-account__col {
    border-left: 1px solid var(--neutral-100);
    padding-left: 20px;
}
.cv-account__col--net {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cv-account__head {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neutral-400);
    margin-bottom: 12px;
}
.cv-account__line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--neutral-100);
}
.cv-account__label {
    font-size: 0.8125rem;
    color: var(--ink-900);
    font-weight: 500;
    min-width: 0;
}
.cv-account__label em {
    display: block;
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--neutral-400);
    margin-top: 2px;
    line-height: 1.4;
}
.cv-account__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink-900);
}
.cv-account__net {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--circle-teal-500);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.cv-account__net small {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-400);
    letter-spacing: 0;
}
.cv-account__net--negative {
    color: var(--alert-coral-500);
}
.cv-account__note {
    font-size: 0.75rem;
    color: var(--neutral-400);
    font-weight: 500;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ── Journal des mouvements ───────────────────────────────────────────── */

.cv-scroll-x {
    overflow-x: auto;
}
.cv-journal__date {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--neutral-500);
}
.cv-journal__kind {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.cv-journal__kind i {
    font-size: 0.875rem;
}
.cv-journal__kind--collection {
    color: #2E7D6D;
}
.cv-journal__kind--payout {
    color: var(--trust-indigo-600);
}
.cv-journal__kind--refund {
    color: #B33D32;
}
.cv-journal__ref {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--neutral-400);
    text-decoration: none;
}
.cv-journal__ref:hover {
    color: var(--trust-indigo-600);
    text-decoration: underline;
}
.cv-journal__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-100);
}
.cv-journal__footer-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-400);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
    .cv-account {
        grid-template-columns: 1fr;
    }
    .cv-account__col + .cv-account__col {
        border-left: none;
        border-top: 1px solid var(--neutral-100);
        padding-left: 0;
        padding-top: 16px;
        margin-top: 12px;
    }
    .cv-account__col--net {
        align-items: flex-start;
    }
}
@media (max-width: 767px) {
    .cv-filters .cv-btn {
        margin-left: 0;
        width: 100%;
    }
    .cv-filters__field {
        flex: 1 1 140px;
    }
}
.cv-journal__party {
    display: block;
    font-size: 0.8125rem;
    white-space: nowrap;
}
.cv-journal__party + .cv-journal__party {
    margin-top: 2px;
}
.cv-journal__party em {
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--neutral-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Boîte de dialogue des filtres (`cv-fmodal`)

   Le corps vient d'EasyAdmin, injecté en AJAX : on n'en contrôle pas le balisage
   (`.filter-field`, `.filter-heading`, `.filter-checkbox`, `.filter-content`), on
   l'habille. Le dépliage repose sur `checkbox.nextElementSibling` côté JS, donc
   la case et son libellé restent adjacents dans le DOM et c'est le CSS qui les
   met en ligne.

   Une ligne par critère, la case Covamis à gauche, le libellé en texte — pas en
   lien —, et le réglage qui apparaît sous la ligne. La ligne cochée est la seule
   teintée : c'est elle qui porte l'audace de l'écran, comme les choix déroulés
   des formulaires (`cv-form__choice`).
   ═══════════════════════════════════════════════════════════════════════════ */

.cv-fmodal .modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
}

/* ── En-tête ──────────────────────────────────────────────────────────── */

.ea .cv-fmodal__head,
.cv-fmodal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--neutral-100);
}
.cv-fmodal__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    margin: 0;
}
.cv-fmodal__count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-400);
    margin: 2px 0 0;
}
.cv-fmodal__close {
    flex: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--neutral-400);
    font-size: 1.125rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.cv-fmodal__close:hover {
    background: var(--neutral-50);
    color: var(--ink-900);
}

/* ── Corps : la liste des critères ────────────────────────────────────── */

.ea .cv-fmodal__body,
.cv-fmodal__body {
    padding: 8px 0;
    max-height: min(60vh, 520px);
    overflow-y: auto;
}
/* EasyAdmin enveloppe chaque critère dans une colonne Bootstrap : on neutralise
   la gouttière, la largeur vient du conteneur. */
.cv-fmodal__body .col-12 {
    padding: 0;
    width: 100%;
}
.cv-fmodal__body .filter-field {
    padding: 0 !important;   /* `px-3` est posé en dur par le gabarit d'EasyAdmin */
    margin: 0 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}
.cv-fmodal__body .filter-field + .filter-field {
    margin-top: 2px;
}
.cv-fmodal__body .filter-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0;
    cursor: pointer;
}
.ea .cv-fmodal__body input.filter-checkbox[type="checkbox"],
.cv-fmodal__body input.filter-checkbox[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--neutral-300);
    border-radius: 5px;
    background-color: var(--paper-0);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}
.cv-fmodal__body input.filter-checkbox[type="checkbox"]:hover {
    border-color: var(--neutral-400);
}
.ea .cv-fmodal__body input.filter-checkbox[type="checkbox"]:checked,
.cv-fmodal__body input.filter-checkbox[type="checkbox"]:checked {
    background-color: var(--trust-indigo-600);
    border-color: var(--trust-indigo-600);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m3 8.5 3.2 3.2L13 5'/%3e%3c/svg%3e");
}
.cv-fmodal__body input.filter-checkbox[type="checkbox"]:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}
/* Le libellé est un `<a>` pour le dépliage Bootstrap : il n'en reste rien de
   visible. Un nom de critère n'est pas un lien, et souligné en indigo il en
   avait toutes les apparences. */
.ea .cv-fmodal__body .filter-heading a:not(.cv-form__btn),
.cv-fmodal__body .filter-heading a {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-900);
    text-decoration: none;
    line-height: 1.4;
}
.cv-fmodal__body .filter-field:hover {
    background: var(--neutral-50);
}
/* Le critère retenu, seul teinté. */
.cv-fmodal__body .filter-field:has(.filter-checkbox:checked) {
    background: var(--trust-indigo-100);
}
.cv-fmodal__body .filter-field:has(.filter-checkbox:checked) .filter-heading a {
    color: var(--trust-indigo-600);
}

/* ── Le réglage d'un critère ──────────────────────────────────────────── */

.cv-fmodal__body .filter-content {
    padding: 0 14px 14px 44px;
}
/* Deux emboîtements selon le type de filtre : un filtre à choix range ses deux
   champs dans un div portant l'identifiant du filtre, une date ou un nombre les
   pose directement dans `.form-widget-compound`. Les deux niveaux sont donc mis
   en ligne — un conteneur à enfant unique ne coûte rien. */
.cv-fmodal__body .form-widget-compound,
.cv-fmodal__body .form-widget-compound > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
/* EasyAdmin glisse des `.flex-fill` vides entre les champs pour les écarter ;
   ils casseraient la ligne et laisseraient un trou. */
.cv-fmodal__body .flex-fill {
    display: none;
}
.cv-fmodal__body .form-group {
    margin: 0;
}

/* Un filtre booléen est une paire de boutons radio (« Oui » / « Non »). */
.cv-fmodal__body .form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 0 0;
    padding: 0;
    min-height: 0;
}
.ea .cv-fmodal__body input.form-check-input[type="radio"],
.cv-fmodal__body input.form-check-input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--neutral-300);
    border-radius: 50%;
    background-color: var(--paper-0);
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}
.ea .cv-fmodal__body input.form-check-input[type="radio"]:checked,
.cv-fmodal__body input.form-check-input[type="radio"]:checked {
    border-color: var(--trust-indigo-600);
    background-color: var(--paper-0);
    background-image: radial-gradient(var(--trust-indigo-600) 0 42%, transparent 46%);
}
.cv-fmodal__body input.form-check-input[type="radio"]:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}
.cv-fmodal__body .form-check-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-900);
    margin: 0;
    cursor: pointer;
}
/* Le formulaire marque ces radios `required` ; l'astérisque de Bootstrap n'a
   aucun sens sur un critère facultatif. */
.cv-fmodal__body .form-check-label.required::after {
    content: none;
}
.ea .cv-fmodal__body .form-select,
.ea .cv-fmodal__body .form-control {
    height: 38px;
    min-width: 140px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-900);
    background-color: var(--paper-0);
}
.ea .cv-fmodal__body .form-select:focus,
.ea .cv-fmodal__body .form-control:focus {
    border-color: var(--trust-indigo-600);
    box-shadow: 0 0 0 3px var(--trust-indigo-100);
}
/* Le comparateur (« est » / « n'est pas ») est un mot, pas une donnée :
   il n'a pas besoin de la largeur d'une valeur. */
.cv-fmodal__body [data-ea-comparison-id] {
    min-width: 0;
    width: auto;
    padding-right: 32px;
    color: var(--neutral-500);
}

/* ── Pied : effacer d'un côté, appliquer de l'autre ───────────────────── */

.ea .cv-fmodal__foot,
.cv-fmodal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-100);
    background: var(--neutral-50);
}
.cv-fmodal__clear,
.cv-fmodal__apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
/* Même repos que tout bouton secondaire du système — `cv-btn--ghost`,
   `cv-form__btn--ghost` : fond blanc, bordure neutre, texte discret. Il était le
   seul à n'avoir ni fond ni bordure avant le survol, donc à ne pas se donner pour
   un bouton.

   Pas de corail : vider des critères n'est pas une suppression, et la palette
   réserve cette couleur aux erreurs, aux annulations et aux litiges. */
.cv-fmodal__clear {
    border: 1px solid var(--neutral-200);
    background: var(--paper-0);
    color: var(--neutral-500);
}
.cv-fmodal__clear:hover {
    background: var(--paper-50);
    border-color: var(--neutral-300);
    color: var(--ink-900);
}
.cv-fmodal__apply {
    border: 1px solid var(--trust-indigo-600);
    background: var(--trust-indigo-600);
    color: #fff;
    padding: 0 24px;
}
.cv-fmodal__apply:hover {
    background: var(--trust-indigo-hover);
    border-color: var(--trust-indigo-hover);
}
.cv-fmodal__clear:focus-visible,
.cv-fmodal__apply:focus-visible,
.cv-fmodal__close:focus-visible {
    outline: 2px solid var(--trust-indigo-600);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .cv-fmodal__body .filter-content {
        padding-left: 14px;
    }
    .cv-fmodal__body .form-select,
    .cv-fmodal__body .form-control {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Palmarès des membres (/admin/palmares)

   Les quatre cartes de tête sont le seul endroit de la page où l'on voit un
   visage : c'est ce qui fait d'un classement une liste de gens. La table en
   dessous reste un tableau de chiffres — initiales, colonnes alignées sur les
   décimales, une seule couleur par rôle.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Les premiers de chaque classement ────────────────────────────────── */

.cv-podium {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}
.cv-podium__card {
    background: var(--paper-0);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.cv-podium__head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-400);
}
.cv-podium__head i {
    font-size: 1rem;
    color: var(--route-amber-500);
}
.cv-podium__who {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.cv-podium__avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.cv-podium__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ea .cv-podium__who .cv-podium__name,
.cv-podium__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.cv-podium__who:hover .cv-podium__name {
    color: var(--trust-indigo-600);
}
.cv-podium__score {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.cv-podium__score small {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-400);
    letter-spacing: 0;
}
.cv-podium__aside {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--neutral-400);
    margin: 0;
    line-height: 1.5;
}

/* ── Le détail par membre ─────────────────────────────────────────────── */

.cv-board th,
.cv-board td {
    white-space: nowrap;
}
.cv-board td.text-end,
.cv-board th.text-end {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.cv-board__who {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.cv-board__initials {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-100);
    color: var(--neutral-500);
    font-size: 0.6875rem;
    font-weight: 700;
}
.ea .cv-board__who .cv-board__name,
.cv-board__name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-900);
}
.cv-board__who:hover .cv-board__name {
    color: var(--trust-indigo-600);
}
.cv-board__meta {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--neutral-400);
}
.cv-board__rating {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cv-board__rating small {
    font-weight: 500;
    color: var(--neutral-400);
}
/* Un compte désactivé reste au classement — il a produit cette activité — mais
   ne doit pas se lire comme un membre en exercice. */
.cv-board__row--off td {
    opacity: 0.55;
}

/* ── Le rôle, constaté sur la période ─────────────────────────────────── */

.cv-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}
.cv-role--driver {
    background: var(--trust-indigo-100);
    color: var(--trust-indigo-600);
}
.cv-role--passenger {
    background: var(--circle-teal-100);
    color: #2E7D6D;
}
/* L'hybride est le seul rôle que rien d'autre ne montre : c'est lui qui porte
   l'ambre, l'accent réservé aux choses rares. */
.cv-role--hybrid {
    background: var(--route-amber-100);
    color: #B87A1E;
}
.cv-role--idle {
    background: var(--neutral-50);
    color: var(--neutral-400);
}

@media (max-width: 1199px) {
    .cv-podium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .cv-podium {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   À traiter — une ligne par chose à faire, et ce que son absence coûte.
   L'audace de l'écran tient dans un seul élément : le nombre, posé en tête de
   ligne et coloré selon ce qu'il bloque. Le reste reste sobre, sinon dix lignes
   rouges ne se distinguent plus les unes des autres.
   ========================================================================== */
.cv-worklist {
    display: flex;
    flex-direction: column;
}
.cv-worklist__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-top: 1px solid var(--neutral-100, #eceef4);
    color: inherit;
    text-decoration: none;
    transition: background var(--transition);
}
.cv-worklist__row:first-child {
    border-top: 0;
}
a.cv-worklist__row:hover {
    background: var(--paper-50);
}
.cv-worklist__count {
    flex: 0 0 auto;
    min-width: 42px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
}
.cv-worklist__row--danger .cv-worklist__count {
    background: rgba(225, 91, 78, .12);
    color: var(--alert-coral-500);
}
.cv-worklist__row--warning .cv-worklist__count {
    background: rgba(242, 169, 59, .14);
    color: #8a5d12;
}
.cv-worklist__row--info .cv-worklist__count {
    background: rgba(43, 47, 119, .08);
    color: var(--trust-indigo-600);
}
.cv-worklist__body {
    flex: 1 1 auto;
    min-width: 0;
}
.cv-worklist__label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}
.cv-worklist__why {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--neutral-400);
}
.cv-worklist__chevron {
    flex: 0 0 auto;
    color: var(--neutral-400);
    font-size: 1.125rem;
}
.cv-worklist__empty {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--neutral-400);
}
.cv-worklist__empty i {
    font-size: 1.75rem;
    color: var(--circle-teal-500);
}
.cv-worklist__empty p {
    margin: 0;
}

/* ==========================================================================
   Tâches planifiées — l'état de la crontab, à l'écran.
   ========================================================================== */
.cv-jobs__dot {
    font-size: 1.125rem;
}
.cv-jobs__dot--ok {
    color: var(--circle-teal-500);
}
.cv-jobs__dot--warning {
    color: var(--route-amber-500);
}
.cv-jobs__dot--danger {
    color: var(--alert-coral-500);
}
.cv-jobs__cmd {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--neutral-400);
}
.cv-jobs__why {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--alert-coral-500);
    max-width: 44ch;
}
.cv-jobs__row--ill td {
    background: rgba(225, 91, 78, .04);
}

/* ── Repère de préproduction ────────────────────────────────────────────
   Les deux back-offices sont identiques : seul ce repère dit qu'on n'est pas
   devant les vrais dossiers. Ambre, l'accent réservé à ce qui doit se voir. */
.cv-stage-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px 4px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(242, 169, 59, 0.18);
    color: #7A4E0A;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    list-style: none;
}
.cv-stage-flag .mdi { font-size: 16px; }
.cv-login__card .cv-stage-flag { margin: 0 0 16px; }
.sidebar-icon-only .cv-stage-flag { justify-content: center; margin: 12px 8px 4px; padding: 8px 0; }
.sidebar-icon-only .cv-stage-flag .menu-title { display: none; }
