/* GESTION FLOTTES - BOUTONS ACTIONS            */
/* ============================================ */

/* Dropdown container pour boutons avec menu */
.btn-dropdown-container {
    position: relative;
    display: inline-flex;
}

.btn-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-dropdown-trigger .dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.btn-dropdown-container:has(.btn-dropdown-menu.show) .dropdown-arrow {
    transform: rotate(180deg);
}

.btn-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.btn-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.dropdown-item i {
    width: 18px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-default);
    margin: 0.5rem 0;
}

/* Dark mode */
.dark-mode .btn-dropdown-menu,
[data-theme="dark"] .btn-dropdown-menu {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dark-mode .dropdown-item,
[data-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

.dark-mode .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:hover {
    background: rgba(228, 192, 74, 0.15);
    color: #E4C04A;
}

.dark-mode .dropdown-item:hover i,
[data-theme="dark"] .dropdown-item:hover i {
    color: #E4C04A;
}

.dark-mode .dropdown-divider,
[data-theme="dark"] .dropdown-divider {
    background: #333;
}

/* Grille des actions de gestion */
.manager-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Cartes d'actions de gestion */
.manager-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-default);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.manager-action-card:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.manager-action-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.manager-action-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Zone actions bas de page */
.fleet-bottom-actions {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-default);
}

.fleet-danger-zone,
.fleet-reactivate-zone,
.fleet-leave-zone {
    margin-bottom: 0.5rem;
}

/* Bouton désactiver flotte (orange/warning) */
.btn-deactivate-fleet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    color: #F59E0B;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-deactivate-fleet:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
}

.btn-deactivate-fleet i {
    font-size: 0.9rem;
}

/* Bouton réactiver flotte (vert) */
.btn-reactivate-fleet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reactivate-fleet:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.btn-reactivate-fleet i {
    font-size: 0.9rem;
}

/* Bouton quitter flotte (gris) */
.btn-leave-fleet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(107, 114, 128, 0.5);
    border-radius: 8px;
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-leave-fleet:hover {
    background: rgba(107, 114, 128, 0.1);
    border-color: #6B7280;
}

.btn-leave-fleet i {
    font-size: 0.9rem;
}

/* Ancien bouton supprimer (compatibilité) */
.fleet-delete-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-default);
}

.btn-delete-fleet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-fleet:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.btn-delete-fleet i {
    font-size: 0.9rem;
}

/* ============================================ */
/* FLOTTES INACTIVES - STYLES                  */
/* ============================================ */

/* Carte flotte inactive (grisée) */
.fleet-card-new.fleet-inactive {
    opacity: 0.7;
    background: var(--bg-secondary);
    border-color: var(--border-default);
}

.fleet-card-new.fleet-inactive:hover {
    border-color: #F59E0B;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
    opacity: 0.85;
}

.fleet-card-new.fleet-inactive .fleet-card-new-name {
    color: var(--text-tertiary);
}

.fleet-card-new.fleet-inactive .fleet-card-new-stats {
    opacity: 0.6;
}

/* Badge "Désactivée" sur la carte */
.fleet-inactive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    margin-left: 0.5rem;
}

.fleet-inactive-badge i {
    font-size: 0.7rem;
}

/* Badge dans le header de la page de gestion */
.status-badge-inactive {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    margin-left: 0.75rem;
}

.status-badge-inactive i {
    font-size: 0.75rem;
}

/* Message d'alerte flotte inactive */
.fleet-inactive-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.fleet-inactive-alert i {
    color: #D97706;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.fleet-inactive-alert-content {
    flex: 1;
}

.fleet-inactive-alert-title {
    font-weight: 600;
    color: #92400E;
    margin-bottom: 0.25rem;
}

.fleet-inactive-alert-text {
    font-size: 0.9rem;
    color: #A16207;
    line-height: 1.5;
}

/* ============================================ */
/* GESTION FLOTTES - MODE SOMBRE                */
/* ============================================ */

.dark-mode .manager-action-card,
[data-theme="dark"] .manager-action-card {
    background: #1a1a1a;
    border-color: #404040;
}

.dark-mode .manager-action-card:hover,
[data-theme="dark"] .manager-action-card:hover {
    border-color: #E4C04A;
    background: rgba(228, 192, 74, 0.1);
}

.dark-mode .manager-action-card i,
[data-theme="dark"] .manager-action-card i {
    color: #E4C04A;
}

.dark-mode .manager-action-card span,
[data-theme="dark"] .manager-action-card span {
    color: #f5f5f5;
}

.dark-mode .fleet-delete-section,
[data-theme="dark"] .fleet-delete-section {
    border-top-color: #333;
}

.dark-mode .btn-delete-fleet,
[data-theme="dark"] .btn-delete-fleet {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.dark-mode .btn-delete-fleet:hover,
[data-theme="dark"] .btn-delete-fleet:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Dark mode - Zone actions bas de page */
.dark-mode .fleet-bottom-actions,
[data-theme="dark"] .fleet-bottom-actions {
    border-top-color: #333;
}

.dark-mode .btn-deactivate-fleet,
[data-theme="dark"] .btn-deactivate-fleet {
    border-color: rgba(245, 158, 11, 0.5);
    color: #FBBF24;
}

.dark-mode .btn-deactivate-fleet:hover,
[data-theme="dark"] .btn-deactivate-fleet:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #FBBF24;
}

.dark-mode .btn-reactivate-fleet,
[data-theme="dark"] .btn-reactivate-fleet {
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ADE80;
}

.dark-mode .btn-reactivate-fleet:hover,
[data-theme="dark"] .btn-reactivate-fleet:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #4ADE80;
}

.dark-mode .btn-leave-fleet,
[data-theme="dark"] .btn-leave-fleet {
    border-color: rgba(156, 163, 175, 0.5);
    color: #9CA3AF;
}

.dark-mode .btn-leave-fleet:hover,
[data-theme="dark"] .btn-leave-fleet:hover {
    background: rgba(156, 163, 175, 0.15);
    border-color: #9CA3AF;
}

/* Dark mode - Flottes inactives */
.dark-mode .fleet-card-new.fleet-inactive,
[data-theme="dark"] .fleet-card-new.fleet-inactive {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-card-new.fleet-inactive:hover,
[data-theme="dark"] .fleet-card-new.fleet-inactive:hover {
    border-color: #FBBF24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

.dark-mode .fleet-inactive-badge,
[data-theme="dark"] .fleet-inactive-badge,
.dark-mode .status-badge-inactive,
[data-theme="dark"] .status-badge-inactive {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.dark-mode .fleet-inactive-alert,
[data-theme="dark"] .fleet-inactive-alert {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.dark-mode .fleet-inactive-alert i,
[data-theme="dark"] .fleet-inactive-alert i {
    color: #FBBF24;
}

.dark-mode .fleet-inactive-alert-title,
[data-theme="dark"] .fleet-inactive-alert-title {
    color: #FCD34D;
}

.dark-mode .fleet-inactive-alert-text,
[data-theme="dark"] .fleet-inactive-alert-text {
    color: #FDE68A;
}

/* Responsive */
@media (max-width: 640px) {
    .manager-actions-grid {
        grid-template-columns: 1fr;
    }

    .fleet-delete-section {
        text-align: center;
    }
}

/* ============================================ */
/* CARTES FLOTTES - NOUVEAU DESIGN              */
/* ============================================ */

/* Carte flotte nouvelle version */
.fleet-card-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-default);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

/* Classe generique pour cartes cliquables avec effet hover dore */
.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), rgba(255, 140, 66, 0.03));
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.18);
    transform: translateY(-2px);
}

.fleet-card-new:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.fleet-card-new-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

/* Logo de la flotte */
.fleet-card-new-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 140, 66, 0.1));
}

.fleet-card-new-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-card-new-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.fleet-card-new-logo-fallback i {
    font-size: 1.5rem;
    color: white;
}

/* Infos de la flotte */
.fleet-card-new-info {
    flex: 1;
    min-width: 0;
}

.fleet-card-new-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleet-card-new-role {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.fleet-card-new-role.role-manager {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
}

.fleet-card-new-role.role-member {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
}

.fleet-card-new-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.fleet-card-new-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fleet-card-new-stats i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Bouton Gerer */
.fleet-card-new-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.fleet-card-new-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.fleet-card-new-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.fleet-card-new-btn:hover i {
    transform: translateX(3px);
}

/* Actions rapides sur les cartes de flotte */
.fleet-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    flex-shrink: 0;
}

.fleet-quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-default);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.fleet-quick-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.fleet-quick-action:active {
    transform: translateY(0);
}

.fleet-quick-action-alert {
    border-color: #F59E0B;
    color: #F59E0B;
    animation: pulse-alert 2s infinite;
}

.fleet-quick-action-alert:hover {
    border-color: #D97706;
    color: #D97706;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

@keyframes pulse-alert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.fleet-quick-action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Dark mode pour actions rapides */
.dark-mode .fleet-quick-action,
[data-theme="dark"] .fleet-quick-action {
    background: #252525;
    border-color: #404040;
    color: #b0b0b0;
}

.dark-mode .fleet-quick-action:hover,
[data-theme="dark"] .fleet-quick-action:hover {
    border-color: #E4C04A;
    color: #E4C04A;
    background: rgba(228, 192, 74, 0.15);
}

.dark-mode .fleet-quick-action-alert,
[data-theme="dark"] .fleet-quick-action-alert {
    border-color: #F59E0B;
    color: #F59E0B;
}

/* Responsive - cacher les actions rapides sur mobile */
@media (max-width: 768px) {
    .fleet-quick-actions {
        display: none;
    }
}

/* Boutons header page gestion flotte */
.btn-header-fleet-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-fleet-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
}

.btn-header-fleet-action i {
    font-size: 0.85rem;
}

/* ============================================ */
/* CARTES FLOTTES - MODE SOMBRE                 */
/* ============================================ */

.dark-mode .fleet-card-new,
[data-theme="dark"] .fleet-card-new {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-card-new:hover,
[data-theme="dark"] .fleet-card-new:hover {
    border-color: #E4C04A;
    box-shadow: 0 4px 20px rgba(228, 192, 74, 0.2);
}

.dark-mode .fleet-card-new-name,
[data-theme="dark"] .fleet-card-new-name {
    color: #f5f5f5;
}

.dark-mode .fleet-card-new-stats,
[data-theme="dark"] .fleet-card-new-stats {
    color: #909090;
}

.dark-mode .fleet-card-new-stats i,
[data-theme="dark"] .fleet-card-new-stats i {
    color: #E4C04A;
}

.dark-mode .btn-header-fleet-action,
[data-theme="dark"] .btn-header-fleet-action {
    border-color: #404040;
    color: #b0b0b0;
}

.dark-mode .btn-header-fleet-action:hover,
[data-theme="dark"] .btn-header-fleet-action:hover {
    border-color: #E4C04A;
    color: #E4C04A;
    background: rgba(228, 192, 74, 0.1);
}

/* Cartes cliquables - Dark mode */
.dark-mode .clickable-card:hover,
[data-theme="dark"] .clickable-card:hover {
    border-color: #E4C04A;
    background: linear-gradient(135deg, rgba(228, 192, 74, 0.06), rgba(255, 140, 66, 0.04));
    box-shadow: 0 6px 24px rgba(228, 192, 74, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .fleet-card-new {
        flex-direction: column;
        align-items: stretch;
    }

    .fleet-card-new-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .fleet-card-new-logo {
        width: 56px;
        height: 56px;
    }

    .fleet-card-new-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================ */
/* GESTION FLOTTE - LAYOUT 2 COLONNES          */
/* ============================================ */

.fleet-manage-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.5rem;
}

.fleet-manage-column {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 1.25rem;
    min-height: 400px;
}

.fleet-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-default);
}

.fleet-column-header h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.fleet-column-header h3 i {
    color: #D4AF37;
    font-size: 1rem;
}

.fleet-column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 14px;
}

/* ============================================ */
/* CARTES VEHICULES - NOUVEAU DESIGN           */
/* ============================================ */

.fleet-vehicles-list,
.fleet-members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fleet-vehicle-card-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.fleet-vehicle-card-v2:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.fleet-vehicle-image-v2 {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f0f0f0;
}

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

.fleet-vehicle-image-v2 .vehicle-status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.fleet-vehicle-image-v2 .vehicle-status-dot.status-active {
    background: #22c55e;
}

.fleet-vehicle-image-v2 .vehicle-status-dot.status-in_repair {
    background: #f59e0b;
}

.fleet-vehicle-image-v2 .vehicle-status-dot.status-rented {
    background: #3b82f6;
}

.fleet-vehicle-info-v2 {
    flex: 1;
    min-width: 0;
}

.fleet-vehicle-info-v2 h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleet-vehicle-info-v2 .vehicle-ref {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.fleet-vehicle-assigned-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.fleet-vehicle-assigned-v2 .assigned-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.fleet-vehicle-assigned-v2 .assigned-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-vehicle-assigned-v2 .assigned-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.fleet-vehicle-free-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.fleet-vehicle-actions-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
    align-items: flex-end;
}

/* Boutons compacts avec texte (Desattribuer, Attribuer, Arreter) */
.btn-action-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action-compact i {
    font-size: 0.65rem;
}

.btn-action-compact.btn-action-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-action-compact.btn-action-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.btn-action-compact.btn-action-success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-action-compact.btn-action-success:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-action-compact.btn-action-warning {
    background: rgba(212, 175, 55, 0.08);
    color: #B8941F;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.btn-action-compact.btn-action-warning:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

/* Row de boutons info (icones carres style admin) */
.fleet-vehicle-info-btns {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.15rem;
}

.fleet-vehicle-info-btns .admin-action-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.fleet-vehicle-info-btns .admin-action-btn.admin-action-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.fleet-vehicle-info-btns .admin-action-btn.admin-action-primary:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
}

.fleet-vehicle-info-btns .admin-action-btn.admin-action-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.fleet-vehicle-info-btns .admin-action-btn.admin-action-success:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
}

.fleet-vehicle-info-btns .admin-action-btn.admin-action-notif {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.fleet-vehicle-info-btns .admin-action-btn.admin-action-notif:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.35);
}

.fleet-vehicle-info-btns .admin-action-btn i {
    font-size: 0.75rem;
}

.fleet-vehicle-info-btns .admin-action-btn:hover {
    transform: translateY(-1px);
}

.btn-assign-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-assign-v2 i {
    font-size: 0.75rem;
}

/* Bouton FMD (Forfait Mobilite Durable) */
.btn-fmd-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fmd-v2:hover {
    background: #10b981;
    color: white;
}

.btn-fmd-v2 i {
    font-size: 0.75rem;
}

/* Bouton Attestation FMD */
.btn-attestation-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    color: #8b5cf6;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-attestation-v2:hover {
    background: #8b5cf6;
    color: white;
}

.btn-attestation-v2 i {
    font-size: 0.75rem;
}

/* Bouton Louer ce vehicule (pour membres) */
.btn-rent-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-rent-v2:hover {
    background: linear-gradient(135deg, #C9A227, #E5961F);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-rent-v2 i {
    font-size: 0.75rem;
}

/* Bouton Retirer (rouge) */
.btn-remove-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-remove-v2:hover {
    background: #ef4444;
    color: white;
}

.btn-remove-v2 i {
    font-size: 0.75rem;
}

/* Petit bouton X pour retirer vehicule dans liste membre */
.btn-remove-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 50%;
    color: #ef4444;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-small:hover {
    background: #ef4444;
    color: white;
}

/* Bouton Arreter location */
.btn-stop-rental-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-stop-rental-v2:hover {
    background: #f59e0b;
    color: white;
}

/* Bouton Info (Locataire, Assurance, Details) */
.btn-info-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid #6366f1;
    border-radius: 8px;
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-info-v2:hover {
    background: #6366f1;
    color: white;
}

.btn-info-v2 i {
    font-size: 0.7rem;
}

/* User Info Card (popup locataire) */
.user-info-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-default, #e5e7eb);
}

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

.user-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info-detail {
    flex: 1;
    min-width: 0;
}

.user-info-detail label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 2px;
    font-weight: 600;
}

.user-info-detail p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary, #1f2937);
    font-weight: 500;
}

.user-info-detail p a {
    color: #6366f1;
    text-decoration: none;
}

.user-info-detail p a:hover {
    text-decoration: underline;
}

.user-info-detail p small {
    color: var(--text-muted, #9ca3af);
    font-weight: 400;
}

/* Bouton Promouvoir en gestionnaire */
.btn-promote-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-promote-v2:hover {
    background: #f59e0b;
    color: white;
}

.btn-promote-v2 i {
    font-size: 0.75rem;
}

/* Bouton Retrograder en membre */
.btn-demote-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #6b7280;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-demote-v2:hover {
    background: #6b7280;
    color: white;
}

.btn-demote-v2 i {
    font-size: 0.75rem;
}

/* Placeholder image vehicule (quand pas d'image) */
.vehicle-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    color: #9ca3af;
    font-size: 2rem;
}

.dark-mode .vehicle-image-placeholder,
[data-theme="dark"] .vehicle-image-placeholder {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #6b7280;
}

.btn-stop-rental-v2 i {
    font-size: 0.75rem;
}

/* ============================================ */
/* TIMELINE DES EVENEMENTS FLOTTE */
/* ============================================ */

.fleet-events-timeline {
    max-height: 600px;
    overflow-y: auto;
}

.fleet-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fleet-event-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fleet-event-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.fleet-event-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.fleet-event-content {
    flex: 1;
    min-width: 0;
}

.fleet-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fleet-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fleet-event-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fleet-event-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fleet-event-vehicle i {
    font-size: 0.75rem;
    color: var(--primary);
}

.fleet-event-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.fleet-event-title {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fleet-event-description {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.fleet-event-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fleet-event-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fleet-event-creator img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.fleet-event-creator-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carte vehicule cliquable pour managers */
.fleet-vehicle-card-v2.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.fleet-vehicle-card-v2.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
    border-color: var(--primary);
}

.fleet-vehicle-card-v2.clickable::after {
    content: '\f303';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.8rem;
}

.fleet-vehicle-card-v2.clickable:hover::after {
    opacity: 0.7;
}

/* Responsive timeline */
@media (max-width: 640px) {
    .fleet-event-item {
        flex-direction: column;
        gap: 12px;
    }

    .fleet-event-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .fleet-event-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================ */
/* RESPONSIVE - GESTION FLOTTE 2 COLONNES      */
/* ============================================ */

/* Tablette et petit desktop */
@media (max-width: 1024px) {
    .fleet-manage-grid {
        gap: 1.5rem;
    }

    .fleet-manage-column {
        padding: 1rem;
    }

    .fleet-vehicle-card-v2 {
        padding: 0.875rem;
    }

    .fleet-vehicle-image-v2 {
        width: 64px;
        height: 64px;
    }
}

/* Mobile - Passer en 1 colonne */
@media (max-width: 768px) {
    .fleet-manage-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .fleet-manage-column {
        min-height: auto;
        padding: 1rem;
    }

    .fleet-column-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .fleet-column-header h3 {
        font-size: 1rem;
    }

    .fleet-filter-chips {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fleet-filter-chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .fleet-vehicle-card-v2 {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .fleet-vehicle-image-v2 {
        width: 56px;
        height: 56px;
    }

    .fleet-vehicle-info-v2 h4 {
        font-size: 0.95rem;
    }

    .fleet-vehicle-actions-v2 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fleet-vehicle-actions-v2 .action-btn-v2 {
        padding: 0.5rem;
    }

    .fleet-member-card-v2 {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .fleet-member-avatar-v2 {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .fleet-member-name {
        font-size: 0.9rem;
    }

    .fleet-member-actions-v2 {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .fleet-manage-grid {
        gap: 1rem;
    }

    .fleet-manage-column {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .fleet-column-header {
        padding-bottom: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .fleet-column-header h3 {
        font-size: 0.95rem;
        gap: 0.4rem;
    }

    .fleet-column-count {
        min-width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .fleet-filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .fleet-filter-chip {
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .fleet-vehicle-card-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .fleet-vehicle-main-v2 {
        width: 100%;
    }

    .fleet-vehicle-image-v2 {
        width: 48px;
        height: 48px;
    }

    .fleet-vehicle-actions-v2 {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .action-btn-v2 {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .btn-desattribuer-v2,
    .btn-arreter-location-v2 {
        flex: 1 1 45%;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .fleet-member-card-v2 {
        flex-direction: column;
        align-items: flex-start;
    }

    .fleet-member-header-v2 {
        width: 100%;
    }

    .fleet-member-actions-v2 {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}

/* Bouton Retirer membre de la flotte */
.btn-remove-member-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-member-v2:hover {
    background: #ef4444;
    color: white;
}

.btn-remove-member-v2 i {
    font-size: 0.75rem;
}

/* Liste des vehicules attribues a un membre */
.fleet-member-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.fleet-member-vehicle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fleet-member-vehicle-item i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* ============================================ */
/* ZONE UPLOAD PHOTOS SINISTRE                 */
/* ============================================ */

.incident-photos-upload-zone {
    border: 2px dashed var(--border-default);
    border-radius: 12px;
    padding: 2rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.incident-photos-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.incident-photos-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.incident-photos-upload-content i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.7;
}

.incident-photos-upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.incident-photos-upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Preview des photos */
.incident-photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.incident-photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
}

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

.incident-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.incident-photo-item:hover .incident-photo-remove {
    opacity: 1;
}

.incident-photo-remove:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Bouton ajouter plus de photos */
.incident-photo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 2px dashed var(--border-default);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    aspect-ratio: 1;
}

.incident-photo-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.incident-photo-add i {
    font-size: 1.25rem;
}

.incident-photo-add span {
    font-size: 0.7rem;
}

/* Dark mode */
.dark-mode .incident-photos-upload-zone,
[data-theme="dark"] .incident-photos-upload-zone {
    background: #252525;
    border-color: #404040;
}

.dark-mode .incident-photos-upload-zone:hover,
[data-theme="dark"] .incident-photos-upload-zone:hover {
    border-color: #E4C04A;
    background: rgba(228, 192, 74, 0.08);
}

.dark-mode .incident-photo-item,
[data-theme="dark"] .incident-photo-item {
    background: #252525;
    border-color: #404040;
}

.dark-mode .incident-photo-add,
[data-theme="dark"] .incident-photo-add {
    border-color: #404040;
}

.dark-mode .incident-photo-add:hover,
[data-theme="dark"] .incident-photo-add:hover {
    border-color: #E4C04A;
    color: #E4C04A;
}

/* ============================================ */
/* CARTES MEMBRES - NOUVEAU DESIGN             */
/* ============================================ */

.fleet-member-card-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.fleet-member-card-v2:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.fleet-member-avatar-v2 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.fleet-member-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-member-avatar-v2 .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.fleet-member-info-v2 {
    flex: 1;
    min-width: 0;
}

.fleet-member-info-v2 h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleet-member-info-v2 .member-email {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleet-member-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.fleet-member-role-badge.role-manager {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
}

.fleet-member-role-badge.role-member {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.fleet-member-vehicle-v2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.fleet-member-vehicle-v2 i {
    color: var(--primary);
    font-size: 0.75rem;
}

.fleet-member-actions-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    flex-shrink: 0;
    min-width: 220px;
}

/* Empty states */
.fleet-empty-state-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.fleet-empty-state-v2 i {
    font-size: 2.5rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.fleet-empty-state-v2 p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================ */
/* GESTION FLOTTE - MODE SOMBRE                */
/* ============================================ */

.dark-mode .fleet-manage-column,
[data-theme="dark"] .fleet-manage-column {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-column-header,
[data-theme="dark"] .fleet-column-header {
    border-bottom-color: #333;
}

.dark-mode .fleet-column-header h3,
[data-theme="dark"] .fleet-column-header h3 {
    color: #f5f5f5;
}

.dark-mode .fleet-column-header h3 i,
[data-theme="dark"] .fleet-column-header h3 i {
    color: #E4C04A;
}

.dark-mode .fleet-vehicle-card-v2,
.dark-mode .fleet-member-card-v2,
[data-theme="dark"] .fleet-vehicle-card-v2,
[data-theme="dark"] .fleet-member-card-v2 {
    background: #222;
    border-color: #333;
}

.dark-mode .fleet-vehicle-card-v2:hover,
.dark-mode .fleet-member-card-v2:hover,
[data-theme="dark"] .fleet-vehicle-card-v2:hover,
[data-theme="dark"] .fleet-member-card-v2:hover {
    border-color: #E4C04A;
    box-shadow: 0 4px 16px rgba(228, 192, 74, 0.15);
}

.dark-mode .fleet-vehicle-info-v2 h4,
.dark-mode .fleet-member-info-v2 h4,
[data-theme="dark"] .fleet-vehicle-info-v2 h4,
[data-theme="dark"] .fleet-member-info-v2 h4 {
    color: #f5f5f5;
}

.dark-mode .fleet-vehicle-info-v2 .vehicle-ref,
.dark-mode .fleet-member-info-v2 .member-email,
[data-theme="dark"] .fleet-vehicle-info-v2 .vehicle-ref,
[data-theme="dark"] .fleet-member-info-v2 .member-email {
    color: #C0C0C0;
}

.dark-mode .fleet-vehicle-assigned-v2,
.dark-mode .fleet-member-vehicle-v2,
[data-theme="dark"] .fleet-vehicle-assigned-v2,
[data-theme="dark"] .fleet-member-vehicle-v2 {
    color: #D0D0D0;
}

.dark-mode .fleet-member-vehicle-v2 i,
[data-theme="dark"] .fleet-member-vehicle-v2 i {
    color: #E4C04A;
}

.dark-mode .btn-assign-v2,
[data-theme="dark"] .btn-assign-v2 {
    border-color: #E4C04A;
    color: #E4C04A;
}

/* ============================================ */
/* GRILLE ACCESSOIRES FLOTTE (STOCK FONGIBLE)  */
/* ============================================ */

.fleet-accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Carte accessoire avec stock */
.fleet-accessory-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 2px solid var(--border-default);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.fleet-accessory-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

.fleet-accessory-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 140, 66, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fleet-accessory-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.fleet-accessory-image .accessory-placeholder {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

/* Badge stock en haut a droite de l'image */
.fleet-accessory-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.fleet-accessory-stock-badge.in-stock {
    background: rgba(34, 197, 94, 0.9);
}

.fleet-accessory-stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.9);
}

.fleet-accessory-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.9);
}

.fleet-accessory-content {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fleet-accessory-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.fleet-accessory-brand {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

/* Stats du stock */
.fleet-accessory-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.fleet-accessory-stat {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.fleet-accessory-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fleet-accessory-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.fleet-accessory-stat.available .fleet-accessory-stat-value {
    color: #22c55e;
}

.fleet-accessory-stat.attributed .fleet-accessory-stat-value {
    color: #f59e0b;
}

/* Actions de la carte */
.fleet-accessory-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.fleet-accessory-actions .btn-premium {
    flex: 1;
    justify-content: center;
}

/* ============================================ */
/* SECTION ATTRIBUTIONS PAR MEMBRE             */
/* ============================================ */

.fleet-attributions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fleet-attribution-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s ease;
}

.fleet-attribution-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.fleet-attribution-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.fleet-attribution-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-attribution-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.fleet-attribution-info {
    flex: 1;
    min-width: 0;
}

.fleet-attribution-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.fleet-attribution-accessories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fleet-attribution-accessory-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.fleet-attribution-accessory-tag i {
    color: var(--primary);
    font-size: 0.75rem;
}

.fleet-attribution-accessory-tag .qty {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}

.fleet-attribution-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Bouton modifier attribution */
.btn-edit-attribution {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-attribution:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
}

.btn-edit-attribution i {
    font-size: 0.75rem;
}

/* ============================================ */
/* ACCESSOIRES - MODE SOMBRE                   */
/* ============================================ */

.dark-mode .fleet-accessory-card,
[data-theme="dark"] .fleet-accessory-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-accessory-card:hover,
[data-theme="dark"] .fleet-accessory-card:hover {
    border-color: #E4C04A;
    box-shadow: 0 8px 24px rgba(228, 192, 74, 0.2);
}

.dark-mode .fleet-accessory-image,
[data-theme="dark"] .fleet-accessory-image {
    background: linear-gradient(135deg, rgba(228, 192, 74, 0.05), rgba(255, 140, 66, 0.05));
}

.dark-mode .fleet-accessory-name,
[data-theme="dark"] .fleet-accessory-name {
    color: #f5f5f5;
}

.dark-mode .fleet-accessory-brand,
[data-theme="dark"] .fleet-accessory-brand {
    color: #888;
}

.dark-mode .fleet-accessory-stat,
[data-theme="dark"] .fleet-accessory-stat {
    background: #252525;
}

.dark-mode .fleet-accessory-stat-value,
[data-theme="dark"] .fleet-accessory-stat-value {
    color: #f5f5f5;
}

.dark-mode .fleet-accessory-stat-label,
[data-theme="dark"] .fleet-accessory-stat-label {
    color: #888;
}

.dark-mode .fleet-attribution-card,
[data-theme="dark"] .fleet-attribution-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-attribution-card:hover,
[data-theme="dark"] .fleet-attribution-card:hover {
    border-color: #E4C04A;
}

.dark-mode .fleet-attribution-name,
[data-theme="dark"] .fleet-attribution-name {
    color: #f5f5f5;
}

.dark-mode .fleet-attribution-accessory-tag,
[data-theme="dark"] .fleet-attribution-accessory-tag {
    background: rgba(228, 192, 74, 0.15);
    border-color: rgba(228, 192, 74, 0.3);
    color: #f5f5f5;
}

.dark-mode .fleet-attribution-accessory-tag i,
[data-theme="dark"] .fleet-attribution-accessory-tag i {
    color: #E4C04A;
}

.dark-mode .btn-edit-attribution,
[data-theme="dark"] .btn-edit-attribution {
    border-color: #404040;
    color: #b0b0b0;
}

.dark-mode .btn-edit-attribution:hover,
[data-theme="dark"] .btn-edit-attribution:hover {
    border-color: #E4C04A;
    color: #E4C04A;
}

/* Responsive */
@media (max-width: 640px) {
    .fleet-accessories-grid {
        grid-template-columns: 1fr;
    }

    .fleet-attribution-card {
        flex-direction: column;
        gap: 12px;
    }

    .fleet-attribution-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================ */
/* MODAL ATTRIBUTION ACCESSOIRES               */
/* ============================================ */

.assign-accessories-list {
    padding: 4px;
}

.assign-accessory-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.assign-accessory-item:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.assign-accessory-item.selected {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

.assign-accessory-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.assign-accessory-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.assign-accessory-image i {
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0.5;
}

.assign-accessory-info {
    flex: 1;
    min-width: 0;
}

.assign-accessory-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assign-accessory-stock {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.assign-accessory-stock .available {
    color: #22c55e;
    font-weight: 600;
}

.assign-accessory-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.assign-accessory-qty label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.assign-accessory-qty input[type="number"] {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.assign-accessory-qty input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.assign-accessory-qty input[type="number"]:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Dark mode */
.dark-mode .assign-accessory-item,
[data-theme="dark"] .assign-accessory-item {
    background: #252525;
    border-color: #404040;
}

.dark-mode .assign-accessory-item:hover,
[data-theme="dark"] .assign-accessory-item:hover {
    border-color: #E4C04A;
    background: rgba(228, 192, 74, 0.08);
}

.dark-mode .assign-accessory-item.selected,
[data-theme="dark"] .assign-accessory-item.selected {
    border-color: #E4C04A;
    background: rgba(228, 192, 74, 0.12);
}

.dark-mode .assign-accessory-name,
[data-theme="dark"] .assign-accessory-name {
    color: #f5f5f5;
}

.dark-mode .assign-accessory-image,
[data-theme="dark"] .assign-accessory-image {
    background: #1a1a1a;
}

.dark-mode .assign-accessory-qty input[type="number"],
[data-theme="dark"] .assign-accessory-qty input[type="number"] {
    background: #1a1a1a;
    border-color: #404040;
    color: #f5f5f5;
}

.dark-mode .assign-accessory-qty input[type="number"]:focus,
[data-theme="dark"] .assign-accessory-qty input[type="number"]:focus {
    border-color: #E4C04A;
}

/* ============================================ */
/* SECTION ACCESSOIRES FLOTTE - NOUVELLE UI    */
/* ============================================ */

/* Onglets Catalogue / Stock */
.fleet-acc-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
}

.fleet-acc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fleet-acc-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.fleet-acc-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fleet-acc-tab i {
    font-size: 0.85rem;
}

.fleet-acc-tab-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Filtres du catalogue */
.fleet-acc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fleet-acc-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--border-default);
    border-radius: 50px;
    background: white;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fleet-acc-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.fleet-acc-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
}

.fleet-acc-filter i {
    font-size: 0.8rem;
}

/* Grille du catalogue */
.fleet-acc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Carte produit catalogue */
.fleet-acc-product-card {
    background: white;
    border: 2px solid var(--border-default);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.fleet-acc-product-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.15);
}

.fleet-acc-product-image {
    height: 180px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.fleet-acc-product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.fleet-acc-product-image .placeholder-icon {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.3;
}

.fleet-acc-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fleet-acc-product-content {
    padding: 20px;
}

.fleet-acc-product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.fleet-acc-product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.fleet-acc-product-brand {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.fleet-acc-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.fleet-acc-product-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.fleet-acc-product-price .unit {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.fleet-acc-product-actions {
    display: flex;
    gap: 10px;
}

.fleet-acc-product-actions .btn-add {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fleet-acc-product-actions .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.fleet-acc-product-actions .btn-add i {
    font-size: 0.85rem;
}

/* Stats du stock */
.fleet-acc-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border-default);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.fleet-acc-stat-card:hover {
    border-color: var(--primary);
}

.fleet-acc-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fleet-acc-stat-icon i {
    font-size: 1.1rem;
}

.fleet-acc-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fleet-acc-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.fleet-acc-stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Liste du stock */
.fleet-acc-stock-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fleet-acc-stock-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px solid var(--border-default);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.fleet-acc-stock-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.1);
}

.fleet-acc-stock-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 140, 66, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.fleet-acc-stock-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fleet-acc-stock-image i {
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.4;
}

.fleet-acc-stock-info {
    flex: 1;
    min-width: 0;
}

.fleet-acc-stock-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.fleet-acc-stock-brand {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.fleet-acc-stock-counts {
    display: flex;
    gap: 16px;
}

.fleet-acc-stock-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fleet-acc-stock-count.available {
    color: #22C55E;
}

.fleet-acc-stock-count.assigned {
    color: #F59E0B;
}

.fleet-acc-stock-count i {
    font-size: 0.75rem;
}

.fleet-acc-stock-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.fleet-acc-stock-actions .btn-attr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fleet-acc-stock-actions .btn-attr:hover {
    background: var(--primary);
    color: white;
}

.fleet-acc-stock-actions .btn-attr i {
    font-size: 0.75rem;
}

/* Quantités du stock */
.fleet-acc-stock-qty,
.fleet-acc-stock-available,
.fleet-acc-stock-attributed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.fleet-acc-stock-qty .qty-total,
.fleet-acc-stock-available .qty-available,
.fleet-acc-stock-attributed .qty-attributed {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fleet-acc-stock-available .qty-available {
    color: #22C55E;
}

.fleet-acc-stock-attributed .qty-attributed {
    color: #F59E0B;
}

.fleet-acc-stock-qty .qty-label,
.fleet-acc-stock-available .qty-label,
.fleet-acc-stock-attributed .qty-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Status badge du stock */
.fleet-acc-stock-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.fleet-acc-stock-status.in-stock {
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
}

.fleet-acc-stock-status.low-stock {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
}

.fleet-acc-stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

/* Attributions liste */
.fleet-acc-attributions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Attribution titre */
.fleet-acc-attr-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fleet-acc-attr-title i {
    color: var(--primary);
}

/* Attribution liste */
.fleet-acc-attr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Attribution membre card */
.fleet-acc-attr-member {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-default);
    transition: all 0.2s ease;
}

.fleet-acc-attr-member:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.04);
}

/* Avatar */
.fleet-acc-attr-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.fleet-acc-attr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-acc-attr-avatar span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Info */
.fleet-acc-attr-info {
    flex: 1;
    min-width: 0;
}

.fleet-acc-attr-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.fleet-acc-attr-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fleet-acc-attr-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 140, 66, 0.08));
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.fleet-acc-attr-tag i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Bouton petit */
.fleet-acc-btn-sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fleet-acc-btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
}

.fleet-acc-btn-sm i {
    font-size: 0.85rem;
}

/* Badge en stock sur produit */
.fleet-acc-in-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #22C55E, #16a34a);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fleet-acc-in-stock-badge i {
    font-size: 0.65rem;
}

/* Bouton commander */
.fleet-acc-btn-order {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.fleet-acc-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.fleet-acc-btn-order i {
    font-size: 0.9rem;
}

/* ============================================ */
/* ACCESSOIRES FLOTTE - MODE SOMBRE            */
/* ============================================ */

.dark-mode .fleet-acc-tabs,
[data-theme="dark"] .fleet-acc-tabs {
    background: #252525;
}

.dark-mode .fleet-acc-tab,
[data-theme="dark"] .fleet-acc-tab {
    color: #909090;
}

.dark-mode .fleet-acc-tab:hover,
[data-theme="dark"] .fleet-acc-tab:hover {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .fleet-acc-tab.active,
[data-theme="dark"] .fleet-acc-tab.active {
    background: #1a1a1a;
    color: #f5f5f5;
}

.dark-mode .fleet-acc-filter,
[data-theme="dark"] .fleet-acc-filter {
    background: #1a1a1a;
    border-color: #404040;
    color: #b0b0b0;
}

.dark-mode .fleet-acc-filter:hover,
[data-theme="dark"] .fleet-acc-filter:hover {
    border-color: #E4C04A;
    color: #E4C04A;
}

.dark-mode .fleet-acc-filter.active,
[data-theme="dark"] .fleet-acc-filter.active {
    background: linear-gradient(135deg, #E4C04A, var(--accent));
    border-color: transparent;
    color: white;
}

.dark-mode .fleet-acc-product-card,
[data-theme="dark"] .fleet-acc-product-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-acc-product-card:hover,
[data-theme="dark"] .fleet-acc-product-card:hover {
    border-color: #E4C04A;
    box-shadow: 0 12px 32px rgba(228, 192, 74, 0.2);
}

.dark-mode .fleet-acc-product-image,
[data-theme="dark"] .fleet-acc-product-image {
    background: linear-gradient(180deg, rgba(228, 192, 74, 0.06) 0%, transparent 100%);
}

.dark-mode .fleet-acc-product-name,
.dark-mode .fleet-acc-product-price .price,
[data-theme="dark"] .fleet-acc-product-name,
[data-theme="dark"] .fleet-acc-product-price .price {
    color: #f5f5f5;
}

.dark-mode .fleet-acc-product-brand,
.dark-mode .fleet-acc-product-price .unit,
[data-theme="dark"] .fleet-acc-product-brand,
[data-theme="dark"] .fleet-acc-product-price .unit {
    color: #888;
}

.dark-mode .fleet-acc-product-category,
[data-theme="dark"] .fleet-acc-product-category {
    color: #E4C04A;
}

.dark-mode .fleet-acc-stat-card,
[data-theme="dark"] .fleet-acc-stat-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-acc-stat-card:hover,
[data-theme="dark"] .fleet-acc-stat-card:hover {
    border-color: #E4C04A;
}

.dark-mode .fleet-acc-stat-value,
[data-theme="dark"] .fleet-acc-stat-value {
    color: #f5f5f5;
}

.dark-mode .fleet-acc-stat-label,
[data-theme="dark"] .fleet-acc-stat-label {
    color: #888;
}

.dark-mode .fleet-acc-stock-item,
[data-theme="dark"] .fleet-acc-stock-item {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-acc-stock-item:hover,
[data-theme="dark"] .fleet-acc-stock-item:hover {
    border-color: #E4C04A;
}

.dark-mode .fleet-acc-stock-image,
[data-theme="dark"] .fleet-acc-stock-image {
    background: linear-gradient(135deg, rgba(228, 192, 74, 0.08), rgba(255, 140, 66, 0.05));
}

.dark-mode .fleet-acc-stock-name,
[data-theme="dark"] .fleet-acc-stock-name {
    color: #f5f5f5;
}

.dark-mode .fleet-acc-stock-brand,
[data-theme="dark"] .fleet-acc-stock-brand {
    color: #888;
}

.dark-mode .fleet-acc-stock-actions .btn-attr,
[data-theme="dark"] .fleet-acc-stock-actions .btn-attr {
    border-color: #E4C04A;
    color: #E4C04A;
}

.dark-mode .fleet-acc-stock-actions .btn-attr:hover,
[data-theme="dark"] .fleet-acc-stock-actions .btn-attr:hover {
    background: #E4C04A;
    color: #1a1a1a;
}

/* Attribution membre - dark mode */
.dark-mode .fleet-acc-attr-member,
[data-theme="dark"] .fleet-acc-attr-member {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fleet-acc-attr-member:hover,
[data-theme="dark"] .fleet-acc-attr-member:hover {
    border-color: #E4C04A;
    background: rgba(228, 192, 74, 0.06);
}

.dark-mode .fleet-acc-attr-name,
[data-theme="dark"] .fleet-acc-attr-name {
    color: #f5f5f5;
}

.dark-mode .fleet-acc-attr-tag,
[data-theme="dark"] .fleet-acc-attr-tag {
    background: rgba(228, 192, 74, 0.15);
    color: #E4C04A;
}

.dark-mode .fleet-acc-btn-sm,
[data-theme="dark"] .fleet-acc-btn-sm {
    background: #1a1a1a;
    border-color: #404040;
    color: #909090;
}

.dark-mode .fleet-acc-btn-sm:hover,
[data-theme="dark"] .fleet-acc-btn-sm:hover {
    border-color: #E4C04A;
    color: #E4C04A;
    background: rgba(228, 192, 74, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .fleet-acc-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .fleet-acc-stock-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fleet-acc-stock-image {
        width: 60px;
        height: 60px;
    }

    .fleet-acc-stock-actions {
        width: 100%;
        flex-direction: row;
    }

    .fleet-acc-stock-actions .btn-attr {
        flex: 1;
    }

    .fleet-acc-stat-card {
        padding: 14px 16px;
    }

    .fleet-acc-stat-icon {
        width: 40px;
        height: 40px;
    }

    .fleet-acc-stat-value {
        font-size: 1.25rem;
    }
}

/* ============================================ */
/* IMPORT MEMBRES XLSX                          */
/* ============================================ */

/* Modal large pour import */
.modal-large {
    max-width: 800px;
    width: 95%;
}

/* Indicateurs de progression */
.import-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px;
    background: var(--bg-surface-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-default);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-indicator.active,
.step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-default);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: var(--primary);
    color: white;
}

.step-indicator.completed .step-number {
    background: var(--success-color, #10b981);
    color: white;
}

.step-indicator.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Contenu des etapes */
.import-step {
    padding: 24px 0;
}

.import-step h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.import-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Zone de drop */
.import-drop-zone {
    border: 2px dashed var(--border-default);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-surface-secondary, #f8f9fa);
    transition: all 0.3s ease;
    cursor: pointer;
}

.import-drop-zone:hover,
.import-drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.import-drop-zone i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.import-drop-zone p {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.import-drop-zone span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.import-hint {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    margin-top: 16px !important;
}

/* Boutons d'actions */
.import-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-default);
}

/* Warning message */
.import-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #b45309;
    margin-bottom: 20px;
}

.import-warning i {
    color: #f59e0b;
}

/* Mapping grid */
.mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-surface-secondary, #f8f9fa);
    border-radius: 8px;
}

.mapping-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-name {
    font-weight: 500;
    color: var(--text-primary);
}

.required-badge {
    color: var(--danger-color, #ef4444);
    font-weight: bold;
}

.mapping-arrow {
    color: var(--text-muted);
}

.mapping-select {
    flex: 1;
}

.mapping-select select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-surface);
}

/* Preview table (mapping) */
.mapping-preview {
    margin-top: 24px;
}

.mapping-preview h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.preview-table-container {
    max-height: 200px;
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.preview-table th,
.preview-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}

.preview-table th {
    background: var(--bg-surface-secondary, #f8f9fa);
    font-weight: 600;
    color: var(--text-secondary);
}

.unmapped {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.85em;
}

/* Validation stats */
.validation-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.stat-item.stat-success {
    background: rgba(16, 185, 129, 0.1);
}

.stat-item.stat-info {
    background: rgba(59, 130, 246, 0.1);
}

.stat-item.stat-warning {
    background: rgba(245, 158, 11, 0.1);
}

.stat-item.stat-error {
    background: rgba(239, 68, 68, 0.1);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Preview actions */
.preview-actions {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Validation table */
.validation-table-container {
    max-height: 350px;
    overflow: auto;
    border: 1px solid var(--border-default);
    border-radius: 8px;
}

.validation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.validation-table th,
.validation-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}

.validation-table th {
    background: var(--bg-surface-secondary, #f8f9fa);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.validation-table .col-select {
    width: 40px;
    text-align: center;
}

.validation-table .col-status {
    width: 50px;
    text-align: center;
}

.validation-table .col-type {
    min-width: 150px;
}

/* Row status */
.row-new {
    background: rgba(16, 185, 129, 0.05);
}

.row-existing {
    background: rgba(59, 130, 246, 0.05);
}

.row-skip {
    background: rgba(156, 163, 175, 0.1);
    opacity: 0.7;
}

.row-invalid {
    background: rgba(239, 68, 68, 0.08);
}

/* Status badges for import preview table only */
.preview-table .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    padding: 0;
    text-transform: none;
}

.preview-table .status-badge.status-new {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.preview-table .status-badge.status-existing {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.preview-table .status-badge.status-skip {
    background: rgba(156, 163, 175, 0.3);
    color: #6b7280;
}

.preview-table .status-badge.status-invalid {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Document card status badges */
.document-card-v2-status .status-badge {
    white-space: nowrap;
    font-size: 0.8rem;
}

/* Type labels */
.type-new {
    color: #059669;
    font-weight: 500;
}

.type-existing {
    color: #2563eb;
    font-weight: 500;
}

.error-text {
    color: #dc2626;
    font-size: 0.85rem;
}

.skip-text {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Confirmation */
.confirm-summary {
    text-align: center;
    padding: 20px 0;
}

.confirm-summary h3 {
    margin: 0 0 24px;
}

.confirm-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.confirm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.confirm-stat i {
    font-size: 2rem;
    color: var(--primary);
}

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

.confirm-stat .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.confirm-options {
    background: var(--bg-surface-secondary, #f8f9fa);
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.option-hint {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Success state */
.import-success {
    text-align: center;
    padding: 40px 20px;
}

.import-success i {
    font-size: 4rem;
    color: var(--success-color, #10b981);
    margin-bottom: 20px;
}

.import-success h3 {
    margin: 0 0 16px;
    color: var(--text-primary);
}

.success-stats {
    margin-bottom: 16px;
}

.success-stats p {
    margin: 4px 0;
    font-size: 1.1rem;
}

.success-hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Loading states */
.loading-state,
.error-state {
    text-align: center;
    padding: 48px 24px;
}

.loading-spinner,
.loading-spinner-sm {
    display: inline-block;
    border: 3px solid var(--border-default);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.loading-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state i {
    font-size: 3rem;
    color: var(--danger-color, #ef4444);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .import-steps-indicator {
        gap: 4px;
        padding: 16px 12px;
    }

    .step-indicator {
        padding: 6px 8px;
    }

    .step-label {
        display: none;
    }

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

    .mapping-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mapping-arrow {
        display: none;
    }

    .confirm-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================ */
/* MEMBRES EN ATTENTE D'ACTIVATION             */
/* ============================================ */

.pending-members-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-default);
}

.pending-members-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.pending-members-title i {
    color: #f59e0b;
}

.pending-members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pending-member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-left: 3px solid #f59e0b;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pending-member-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.1);
}

.pending-member-card.status-expired {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.pending-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pending-member-card.status-expired .pending-member-avatar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.pending-member-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.pending-member-info {
    flex: 1;
    min-width: 0;
}

.pending-member-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-member-info p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
}

.pending-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.pending-status-badge.status-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.pending-member-actions {
    flex-shrink: 0;
}

.btn-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-resend:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-resend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-resend.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-resend i {
    font-size: 0.75rem;
}

/* Dark mode */
.dark-mode .pending-members-section,
[data-theme="dark"] .pending-members-section {
    border-top-color: #333;
}

.dark-mode .pending-member-card,
[data-theme="dark"] .pending-member-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .pending-member-card:hover,
[data-theme="dark"] .pending-member-card:hover {
    border-color: #E4C04A;
}

.dark-mode .pending-member-info h5,
[data-theme="dark"] .pending-member-info h5 {
    color: #f5f5f5;
}

.dark-mode .pending-member-info p,
[data-theme="dark"] .pending-member-info p {
    color: #888;
}

.dark-mode .btn-resend,
[data-theme="dark"] .btn-resend {
    border-color: #E4C04A;
    color: #E4C04A;
}

.dark-mode .btn-resend:hover:not(:disabled),
[data-theme="dark"] .btn-resend:hover:not(:disabled) {
    background: #E4C04A;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 640px) {
    .pending-member-card {
        flex-wrap: wrap;
    }

    .pending-member-actions {
        width: 100%;
        margin-top: 10px;
    }

    .btn-resend {
        width: 100%;
    }
}

/* ============================================ */
/* MODAL AJOUT MEMBRES - CHOIX DU MODE        */
/* ============================================ */

.add-member-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-member-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.add-member-option-card:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(4px);
}

.add-member-option-card:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.add-member-option-card:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent, #c9a227));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-icon i {
    font-size: 1.25rem;
    color: white;
}

.option-icon-excel {
    background: linear-gradient(135deg, #217346, #1d6b3e);
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.option-content p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
}

.option-arrow {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.add-member-option-card:hover .option-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Bouton retour */
.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-back-link:hover {
    color: var(--primary);
}

.btn-back-link i {
    font-size: 0.85rem;
}

/* Dark mode */
.dark-mode .add-member-option-card,
[data-theme="dark"] .add-member-option-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .add-member-option-card:hover,
[data-theme="dark"] .add-member-option-card:hover {
    border-color: #E4C04A;
    background: rgba(228, 192, 74, 0.08);
}

.dark-mode .option-content h4,
[data-theme="dark"] .option-content h4 {
    color: #f5f5f5;
}

.dark-mode .option-content p,
[data-theme="dark"] .option-content p {
    color: #888;
}

.dark-mode .btn-back-link,
[data-theme="dark"] .btn-back-link {
    color: #aaa;
}

.dark-mode .btn-back-link:hover,
[data-theme="dark"] .btn-back-link:hover {
    color: #E4C04A;
}

/* Responsive */
@media (max-width: 480px) {
    .add-member-option-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .option-icon {
        width: 42px;
        height: 42px;
    }

    .option-icon i {
        font-size: 1.1rem;
    }

    .option-content h4 {
        font-size: 0.95rem;
    }

    .option-content p {
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* STATUTS DEMANDES DE LOCATION                 */
/* ============================================ */

/* Status pending pour vehicules avec demande en attente */
.vehicle-assigned-to.status-pending {
    color: var(--warning, #f59e0b);
    font-weight: 500;
}

.vehicle-assigned-to.status-pending i {
    color: var(--warning, #f59e0b);
    animation: pulse-warning 1.5s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Badge demande envoyee (pour le membre qui a fait la demande) */
.pending-request-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 500;
}

.pending-request-badge i {
    animation: spin-slow 2s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Carte de demande de location (style similaire a join-request-card) */
.rental-request-card {
    border-left: 4px solid var(--primary, #D4AF37);
}

.rental-request-card .join-request-avatar {
    background: linear-gradient(135deg, var(--primary, #D4AF37), var(--accent, #ff8c42)) !important;
}

/* ============================================ */
/* MODAL ARRET DE LOCATION - WORKFLOW COMPLET  */
/* ============================================ */

/* Modal medium size */
.modal-medium {
    max-width: 550px;
}

/* Carte info vehicule */
.stop-rental-vehicle-info {
    margin-bottom: 1.5rem;
}

.stop-rental-vehicle-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 140, 66, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
}

.stop-rental-vehicle-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #D4AF37), var(--accent, #ff8c42));
    border-radius: 12px;
    flex-shrink: 0;
}

.stop-rental-vehicle-icon i {
    font-size: 1.25rem;
    color: white;
}

.stop-rental-vehicle-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.stop-rental-vehicle-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

/* Recherche point relais */
.stop-rental-pickup-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stop-rental-pickup-search .pickup-search-input {
    flex: 1;
    position: relative;
}

.stop-rental-pickup-search .pickup-search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #9ca3af);
}

.stop-rental-pickup-search .pickup-search-input input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 1px solid var(--border-default, #e0e0e0);
    border-radius: 8px;
    font-size: 0.9rem;
}

.stop-rental-pickup-search .pickup-search-input input:focus {
    outline: none;
    border-color: var(--primary, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.stop-rental-pickup-search .pickup-search-input input:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Liste points relais */
.stop-rental-pickup-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-default, #e0e0e0);
    border-radius: 12px;
    background: var(--bg-surface, #fff);
}

.stop-rental-pickup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-default, #e0e0e0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.stop-rental-pickup-item:last-child {
    border-bottom: none;
}

.stop-rental-pickup-item:hover {
    background: rgba(212, 175, 55, 0.06);
}

.stop-rental-pickup-item.selected {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--primary, #D4AF37);
}

.stop-rental-pickup-item .pickup-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 8px;
    flex-shrink: 0;
}

.stop-rental-pickup-item .pickup-item-icon i {
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.stop-rental-pickup-item.selected .pickup-item-icon {
    background: linear-gradient(135deg, var(--primary, #D4AF37), var(--accent, #ff8c42));
}

.stop-rental-pickup-item.selected .pickup-item-icon i {
    color: white;
}

.stop-rental-pickup-item .pickup-item-info {
    flex: 1;
    min-width: 0;
}

.stop-rental-pickup-item .pickup-item-info h5 {
    margin: 0 0 0.15rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.stop-rental-pickup-item .pickup-item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stop-rental-pickup-item .pickup-distance {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary, #D4AF37);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.stop-rental-pickup-item .pickup-item-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-default, #e0e0e0);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.stop-rental-pickup-item.selected .pickup-item-check {
    opacity: 1;
    background: var(--primary, #D4AF37);
    border-color: var(--primary, #D4AF37);
}

.stop-rental-pickup-item.selected .pickup-item-check i {
    color: white;
    font-size: 0.7rem;
}

/* Section retour adresse flotte */
.stop-rental-fleet-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
}

.stop-rental-fleet-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 10px;
    flex-shrink: 0;
}

.stop-rental-fleet-icon i {
    color: white;
    font-size: 1.1rem;
}

.stop-rental-fleet-info {
    flex: 1;
}

.stop-rental-fleet-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.stop-rental-fleet-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.stop-rental-fleet-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Section recuperation entreprise */
.stop-rental-pickup-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.stop-rental-pickup-notice-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    flex-shrink: 0;
}

.stop-rental-pickup-notice-icon i {
    color: white;
    font-size: 1.1rem;
}

.stop-rental-pickup-notice-content h4 {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.stop-rental-pickup-notice-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.stop-rental-address-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 8px;
}

.stop-rental-address-display i {
    color: var(--text-tertiary, #9ca3af);
}

.stop-rental-address-display span {
    font-size: 0.9rem;
    color: var(--text-primary, #1a1a1a);
}

/* Recapitulatif */
.stop-rental-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 140, 66, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
}

.stop-rental-summary h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary, #D4AF37);
}

.stop-rental-summary-content p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-primary, #1a1a1a);
}

.stop-rental-summary-content p strong {
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
}

/* Loading et erreurs */
.stop-rental-pickup-list .pickup-loading,
.stop-rental-pickup-list .pickup-empty,
.stop-rental-pickup-list .pickup-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-tertiary, #9ca3af);
    text-align: center;
}

.stop-rental-pickup-list .pickup-loading i,
.stop-rental-pickup-list .pickup-empty i,
.stop-rental-pickup-list .pickup-error i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stop-rental-pickup-list .pickup-error i {
    color: #ef4444;
}

/* Bouton danger */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================ */
/* BOUTONS ICONES VEHICULE (Note + Historique) */
/* ============================================ */

.fleet-vehicle-icon-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.btn-icon-v2 {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-default, #e0e0e0);
    background: var(--bg-surface, #fff);
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-v2:hover {
    border-color: var(--primary, #D4AF37);
    color: var(--primary, #D4AF37);
    background: rgba(212, 175, 55, 0.08);
}

.btn-icon-v2.btn-note {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-icon-v2.btn-note:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.btn-icon-v2.btn-history {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-icon-v2.btn-history:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.btn-icon-v2.btn-invoices {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-icon-v2.btn-invoices:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.btn-icon-v2.btn-insurance {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.btn-icon-v2.btn-insurance:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

/* Tooltips pour les boutons icones */
.btn-icon-v2[title] {
    position: relative;
}

.btn-icon-v2[title]::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--gray-900, #1f2937);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon-v2[title]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-900, #1f2937);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.btn-icon-v2[title]:hover::after,
.btn-icon-v2[title]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Indicateur de note sur l'image du vehicule */
.vehicle-note-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    border-radius: 6px;
    color: white;
    font-size: 0.7rem;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

/* ============================================ */
/* MODAL NOTE VEHICULE                         */
/* ============================================ */

.modal-small {
    max-width: 450px;
}

.vehicle-note-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.vehicle-note-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    flex-shrink: 0;
}

.vehicle-note-icon i {
    color: white;
    font-size: 1.1rem;
}

.vehicle-note-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.vehicle-note-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* ============================================ */
/* MODAL HISTORIQUE VEHICULE                   */
/* ============================================ */

.vehicle-history-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.vehicle-history-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    flex-shrink: 0;
}

.vehicle-history-icon i {
    color: white;
    font-size: 1.1rem;
}

.vehicle-history-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.vehicle-history-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

.vehicle-history-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary, #9ca3af);
}

.vehicle-history-loading i {
    margin-right: 8px;
}

.vehicle-history-empty,
.vehicle-history-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary, #9ca3af);
}

.vehicle-history-empty i,
.vehicle-history-error i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.vehicle-history-error i {
    color: #ef4444;
}

/* Timeline */
.vehicle-history-timeline {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.vehicle-history-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-default, #e5e7eb);
}

.vehicle-history-item:last-child {
    border-bottom: none;
}

.vehicle-history-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.vehicle-history-item-icon i {
    color: white;
    font-size: 0.85rem;
}

.vehicle-history-item-content {
    flex: 1;
    min-width: 0;
}

.vehicle-history-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.vehicle-history-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.vehicle-history-item-date {
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    white-space: nowrap;
    flex-shrink: 0;
}

.vehicle-history-item-desc {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
}

.vehicle-history-item-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    margin-top: 0.25rem;
}

.vehicle-history-item-user i {
    font-size: 0.65rem;
}

/* Badges pour les evenements */
.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
}

.event-badge.urgent {
    background: #fee2e2;
    color: #dc2626;
}

.event-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.event-badge.pinned {
    background: #dbeafe;
    color: #2563eb;
    padding: 0.15rem 0.3rem;
}

.vehicle-history-item.pinned {
    background: #fefce8;
    border-left: 3px solid #f59e0b;
    padding-left: calc(0.875rem - 3px);
}

/* ============================================ */
/* FMD - FORFAIT MOBILITE DURABLE              */
/* ============================================ */

/* Stats cards grid */
.fmd-fleet-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.fmd-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fmd-stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.fmd-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.fmd-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.fmd-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Table FMD membres */
.fmd-members-table {
    border: 1px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
}

.fmd-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr 1fr 80px;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
}

.fmd-th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.fmd-table-body {
    max-height: 500px;
    overflow-y: auto;
}

.fmd-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr 1fr 80px;
    gap: 12px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-default);
    transition: background 0.15s ease;
}

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

.fmd-table-row:hover {
    background: rgba(212, 175, 55, 0.04);
}

.fmd-td {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Membre info cell */
.fmd-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fmd-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.fmd-member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.fmd-member-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fmd-member-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Matricule */
.fmd-matricule {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Depenses mini */
.fmd-expenses-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fmd-expense-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fmd-expense-item i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Poches mini */
.fmd-pockets-mini {
    display: flex;
    gap: 6px;
}

.fmd-pocket-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--pocket-color), 0.1);
    color: var(--pocket-color);
    border: 1px solid currentColor;
}

/* Total FMD */
.fmd-total-amount {
    font-weight: 700;
    color: #10b981;
}

/* Badge attestation */
.fmd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fmd-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.fmd-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Bouton icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
}

/* Responsive mobile */
@media (max-width: 1024px) {
    .fmd-table-header {
        display: none;
    }

    .fmd-table-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .fmd-member-info {
        width: 100%;
    }

    .fmd-td-expenses,
    .fmd-td-pockets {
        width: 100%;
    }

    .fmd-pockets-mini {
        flex-wrap: wrap;
    }
}

/* Dark mode */
.dark-mode .fmd-stat-card,
[data-theme="dark"] .fmd-stat-card {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fmd-members-table,
[data-theme="dark"] .fmd-members-table {
    border-color: #333;
}

.dark-mode .fmd-table-header,
[data-theme="dark"] .fmd-table-header {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .fmd-table-row,
[data-theme="dark"] .fmd-table-row {
    border-color: #333;
}

.dark-mode .fmd-table-row:hover,
[data-theme="dark"] .fmd-table-row:hover {
    background: rgba(212, 175, 55, 0.08);
}

/* ===========================================
   FMD - Barre de visualisation des poches
   =========================================== */

.fmd-pocket-bar {
    display: flex;
    height: 24px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 12px;
    overflow: hidden;
    min-width: 150px;
    position: relative;
}

.fmd-pocket-bar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.7rem;
    color: var(--text-muted, #9ca3af);
    font-style: italic;
}

.fmd-pocket-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.fmd-pocket-segment:hover {
    filter: brightness(1.1);
}

.fmd-pocket-transport {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.fmd-pocket-mixed {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.fmd-pocket-mobility {
    background: linear-gradient(135deg, #D4AF37, #b8962e);
}

.fmd-pocket-legend {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.7rem;
}

.fmd-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary, #6b7280);
}

.fmd-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Total avec badge MAX */
.fmd-total-amount.fmd-total-max {
    color: #059669;
}

.fmd-max-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 4px;
    vertical-align: middle;
}

/* ===========================================
   FMD - Boutons d'actions
   =========================================== */

.fmd-actions-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.fmd-actions-group .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.fmd-actions-group .btn-edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.fmd-actions-group .btn-edit:hover {
    background: #3b82f6;
    color: white;
}

.fmd-actions-group .btn-view {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.fmd-actions-group .btn-view:hover {
    background: #10b981;
    color: white;
}

.fmd-actions-group .btn-attestation {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}
.fmd-actions-group .btn-attestation:hover {
    background: #8b5cf6;
    color: white;
}

.fmd-actions-group .btn-send {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.fmd-actions-group .btn-send:hover {
    background: #f59e0b;
    color: white;
}

.fmd-actions-group .btn-history {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}
.fmd-actions-group .btn-history:hover {
    background: #8b5cf6;
    color: white;
}

/* ===========================================
   FMD - Menu contextuel
   =========================================== */

.fmd-context-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.1);
    min-width: 220px;
    overflow: hidden;
    animation: fmdMenuFadeIn 0.15s ease-out;
}

@keyframes fmdMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fmd-menu-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #D4AF37, #f59e0b);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.fmd-menu-items {
    padding: 8px 0;
}

.fmd-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-primary, #1f2937);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.fmd-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.fmd-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-secondary, #6b7280);
}

.fmd-menu-item:hover i {
    color: #D4AF37;
}

.fmd-menu-item-danger {
    color: #ef4444;
}

.fmd-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.fmd-menu-item-danger i {
    color: #ef4444;
}

.fmd-menu-divider {
    height: 1px;
    background: var(--border-default, #e5e7eb);
    margin: 8px 0;
}

/* Dark mode pour menu contextuel */
.dark-mode .fmd-context-menu,
[data-theme="dark"] .fmd-context-menu {
    background: #1f2937;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.dark-mode .fmd-menu-item,
[data-theme="dark"] .fmd-menu-item {
    color: #e5e7eb;
}

.dark-mode .fmd-menu-item:hover,
[data-theme="dark"] .fmd-menu-item:hover {
    background: rgba(212, 175, 55, 0.15);
}

.dark-mode .fmd-menu-divider,
[data-theme="dark"] .fmd-menu-divider {
    background: #374151;
}

/* Responsive pour la barre des poches */
@media (max-width: 768px) {
    .fmd-pocket-bar {
        min-width: 100px;
        height: 20px;
    }

    .fmd-pocket-segment {
        font-size: 0.55rem;
    }

    .fmd-pocket-legend {
        flex-wrap: wrap;
        gap: 4px;
    }

    .fmd-actions-group {
        flex-wrap: wrap;
    }

    .fmd-actions-group .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* =============================================================================
   FMD MODAL - Toggle Periode et Sliders Couverture
   ============================================================================= */

/* Toggle buttons Annuel/Mensuel */
.fmd-period-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary, #f3f4f6);
    padding: 4px;
    border-radius: 8px;
}

.fmd-toggle-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fmd-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.fmd-toggle-btn.active {
    background: white;
    color: var(--primary, #D4AF37);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark-mode .fmd-toggle-btn.active,
[data-theme="dark"] .fmd-toggle-btn.active {
    background: var(--bg-surface, #2d2d2d);
    color: var(--primary, #D4AF37);
}

/* Sliders de couverture */
.fmd-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fmd-slider:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

.fmd-slider-transport {
    background: linear-gradient(to right, #3b82f6 50%, #e5e7eb 50%);
}

.fmd-slider-mobility {
    background: linear-gradient(to right, #D4AF37 100%, #e5e7eb 100%);
}

.fmd-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary, #D4AF37);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fmd-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.fmd-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary, #D4AF37);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fmd-slider-transport::-webkit-slider-thumb {
    border-color: #3b82f6;
}

.fmd-slider-transport::-moz-range-thumb {
    border-color: #3b82f6;
}

.fmd-slider-mobility::-webkit-slider-thumb {
    border-color: #D4AF37;
}

.fmd-slider-mobility::-moz-range-thumb {
    border-color: #D4AF37;
}

/* Info box couverture */
.fmd-coverage-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.fmd-coverage-info i {
    flex-shrink: 0;
    margin-top: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section depenses FMD */
.fmd-expense-section {
    transition: all 0.3s ease;
}

.fmd-expense-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark mode */
.dark-mode .fmd-period-toggle,
[data-theme="dark"] .fmd-period-toggle {
    background: var(--bg-tertiary, #1a1a1a);
}

.dark-mode .fmd-slider,
[data-theme="dark"] .fmd-slider {
    background: var(--bg-tertiary, #1a1a1a);
}

.dark-mode .fmd-slider::-webkit-slider-thumb,
[data-theme="dark"] .fmd-slider::-webkit-slider-thumb {
    background: var(--bg-surface, #2d2d2d);
}

.dark-mode .fmd-slider::-moz-range-thumb,
[data-theme="dark"] .fmd-slider::-moz-range-thumb {
    background: var(--bg-surface, #2d2d2d);
}

/* Responsive */
@media (max-width: 480px) {
    .fmd-toggle-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .fmd-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .fmd-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

/* ============================================ */
/* MODAL ATTESTATION FMD - Preview             */
/* ============================================ */

#fmdAttestationPreviewModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#fmdAttestationPreviewModal.active {
    display: flex !important;
}

#fmdAttestationPreviewModal .modal-content {
    position: relative;
    background: var(--bg-surface, #fff);
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#fmdAttestationPreviewModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-default, #e5e7eb);
    flex-shrink: 0;
    background: var(--bg-surface, #fff);
}

#fmdAttestationPreviewModal .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary, #1f2937);
}

#fmdAttestationPreviewModal .modal-body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    background: var(--bg-surface-secondary, #f3f4f6);
    min-height: 0;
}

#fmdAttestationPreviewModal .modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#fmdAttestationPreviewModal .modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-default, #e5e7eb);
    flex-shrink: 0;
    background: var(--bg-surface-tertiary, #f9fafb);
}

#fmdAttestationPreviewModal .modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fmdAttestationPreviewModal .modal-close:hover {
    background: var(--bg-hover, #f3f4f6);
}

#fmdAttestationPreviewModal .modal-close i {
    font-size: 1.25rem;
    color: var(--text-secondary, #6b7280);
}

/* Status badges dans le header */
#fmdAttestationPreviewModal .status-signed {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

#fmdAttestationPreviewModal .status-unsigned {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Dark mode */
.dark-mode #fmdAttestationPreviewModal .modal-content,
[data-theme="dark"] #fmdAttestationPreviewModal .modal-content {
    background: var(--bg-surface, #1e1e1e);
    border: 1px solid var(--border-default, #333);
}

.dark-mode #fmdAttestationPreviewModal .modal-body,
[data-theme="dark"] #fmdAttestationPreviewModal .modal-body {
    background: var(--bg-tertiary, #1a1a1a);
}

/* Responsive mobile */
@media (max-width: 768px) {
    #fmdAttestationPreviewModal .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    #fmdAttestationPreviewModal .modal-header {
        padding: 0.75rem 1rem;
    }

    #fmdAttestationPreviewModal .modal-body {
        padding: 0.5rem;
    }

    #fmdAttestationPreviewModal .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    #fmdAttestationPreviewModal .modal-footer button {
        flex: 1;
        min-width: 100px;
    }
}

/* =============================================================================
   FMD - Grille d'actions 2x2 avec couleurs violettes
   ============================================================================= */

.fmd-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.fmd-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(124, 58, 237, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.fmd-action-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.08));
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.fmd-action-card:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.4);
}

.fmd-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.fmd-action-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.fmd-action-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #1f2937);
}

.fmd-action-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

/* Responsive mobile */
@media (max-width: 640px) {
    .fmd-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fmd-action-card {
        padding: 16px;
    }

    .fmd-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =============================================================================
   FMD - Chips de poches ameliores
   ============================================================================= */

.fmd-pockets-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fmd-pocket-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.fmd-pocket-chip i {
    font-size: 0.7rem;
}

.fmd-pocket-chip-transport {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.fmd-pocket-chip-transport:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
}

.fmd-pocket-chip-mixed {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.08));
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.fmd-pocket-chip-mixed:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.15));
}

.fmd-pocket-chip-mobility {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(180, 140, 30, 0.08));
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.fmd-pocket-chip-mobility:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(180, 140, 30, 0.15));
}

/* =============================================================================
   FMD - Table header mise a jour (moins de colonnes)
   ============================================================================= */

.fmd-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr 1.2fr 100px;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
}

.fmd-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr 1.2fr 100px;
    gap: 12px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-default);
    transition: background 0.15s ease;
}

/* =============================================================================
   FMD - Modal Preview Attestation - Styles complets
   ============================================================================= */

.fmd-attestation-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fmd-attestation-preview-content {
    position: relative;
    background: var(--bg-surface, #fff);
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    animation: fmdModalSlideIn 0.3s ease-out;
}

@keyframes fmdModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fmd-attestation-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-default, #e5e7eb);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}

.fmd-attestation-preview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary, #1f2937);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fmd-attestation-preview-actions {
    display: flex;
    gap: 8px;
}

.fmd-attestation-preview-actions .btn {
    padding: 8px 12px;
}

.fmd-attestation-preview-body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    background: var(--bg-secondary, #f3f4f6);
    min-height: 0;
}

.fmd-attestation-preview-body iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fmd-attestation-preview-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-default, #e5e7eb);
    background: var(--bg-surface, #fff);
}

/* Dark mode */
.dark-mode .fmd-action-card,
[data-theme="dark"] .fmd-action-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.06));
    border-color: rgba(139, 92, 246, 0.3);
}

.dark-mode .fmd-action-card:hover,
[data-theme="dark"] .fmd-action-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.12));
}

.dark-mode .fmd-pocket-chip-transport,
[data-theme="dark"] .fmd-pocket-chip-transport {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.12));
}

.dark-mode .fmd-pocket-chip-mixed,
[data-theme="dark"] .fmd-pocket-chip-mixed {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.12));
}

.dark-mode .fmd-pocket-chip-mobility,
[data-theme="dark"] .fmd-pocket-chip-mobility {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(180, 140, 30, 0.12));
}

.dark-mode .fmd-attestation-preview-content,
[data-theme="dark"] .fmd-attestation-preview-content {
    background: var(--bg-surface, #1e1e1e);
}

.dark-mode .fmd-attestation-preview-body,
[data-theme="dark"] .fmd-attestation-preview-body {
    background: var(--bg-tertiary, #1a1a1a);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .fmd-table-header {
        display: none;
    }

    .fmd-table-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        grid-template-columns: none;
    }

    .fmd-pockets-chips {
        width: 100%;
        justify-content: flex-start;
    }

    .fmd-actions-group {
        width: 100%;
        justify-content: flex-end;
    }

    .fmd-attestation-preview-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .fmd-attestation-preview-footer {
        flex-direction: column;
    }

    .fmd-attestation-preview-footer .btn {
        width: 100%;
    }
}

/* =============================================================================
   FMD - Barres de progression pour les 3 poches
   ============================================================================= */

.fmd-pockets-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.fmd-pocket-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fmd-pocket-bar-label {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 85px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fmd-pocket-bar-label i {
    font-size: 0.65rem;
    width: 14px;
    text-align: center;
}

.fmd-pocket-bar-label span {
    white-space: nowrap;
}

.fmd-pocket-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
}

.fmd-pocket-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fmd-pocket-bar-transport {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.fmd-pocket-bar-mixed {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.fmd-pocket-bar-mobility {
    background: linear-gradient(90deg, #D4AF37, #f59e0b);
}

.fmd-pocket-bar-value {
    min-width: 45px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-default);
    text-align: right;
}

/* FMD Actions Grid 6 colonnes */
.fmd-actions-grid.fmd-actions-grid-6 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .fmd-actions-grid.fmd-actions-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fmd-pockets-bars {
        gap: 4px;
    }

    .fmd-pocket-bar-label {
        min-width: 70px;
        font-size: 0.65rem;
    }

    .fmd-pocket-bar-value {
        min-width: 35px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .fmd-actions-grid.fmd-actions-grid-6 {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   FMD - Grille d'actions 2x2 pour tableau membres FMD
   ============================================================================= */

.fmd-actions-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 80px;
}

.fmd-actions-grid-2x2 .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-default);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.fmd-actions-grid-2x2 .btn-icon:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.fmd-actions-grid-2x2 .btn-icon.btn-edit {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.fmd-actions-grid-2x2 .btn-icon.btn-edit:hover {
    background: rgba(212, 175, 55, 0.1);
}

.fmd-actions-grid-2x2 .btn-icon.btn-view {
    color: #3b82f6;
    border-color: #3b82f6;
}

.fmd-actions-grid-2x2 .btn-icon.btn-view:hover {
    background: rgba(59, 130, 246, 0.1);
}

.fmd-actions-grid-2x2 .btn-icon.btn-send {
    color: #10b981;
    border-color: #10b981;
}

.fmd-actions-grid-2x2 .btn-icon.btn-send:hover {
    background: rgba(16, 185, 129, 0.1);
}

.fmd-actions-grid-2x2 .btn-icon.btn-history {
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.fmd-actions-grid-2x2 .btn-icon.btn-history:hover {
    background: rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .fmd-actions-grid-2x2 {
        max-width: 70px;
    }

    .fmd-actions-grid-2x2 .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* =============================================================================
   Fleet Members - Grille d'actions (2 boutons par ligne max)
   ============================================================================= */

.fleet-member-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 180px;
}

.fleet-member-actions-grid .btn-action-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    min-height: 48px;
}

.fleet-member-actions-grid .btn-action-icon i {
    font-size: 0.9rem;
}

.fleet-member-actions-grid .btn-action-icon span {
    font-weight: 500;
    white-space: nowrap;
}

.fleet-member-actions-grid .btn-action-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bouton Attribuer - Bleu */
.fleet-member-actions-grid .btn-action-icon.btn-assign {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.fleet-member-actions-grid .btn-action-icon.btn-assign:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Bouton FMD - Violet */
.fleet-member-actions-grid .btn-action-icon.btn-fmd {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.fleet-member-actions-grid .btn-action-icon.btn-fmd:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

/* Bouton Role - Dore/Or */
.fleet-member-actions-grid .btn-action-icon.btn-role {
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.3);
}

.fleet-member-actions-grid .btn-action-icon.btn-role:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
}

/* Bouton Exclure - Rouge */
.fleet-member-actions-grid .btn-action-icon.btn-remove {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.fleet-member-actions-grid .btn-action-icon.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

@media (max-width: 768px) {
    .fleet-member-actions-grid {
        max-width: 140px;
    }

    .fleet-member-actions-grid .btn-action-icon {
        padding: 6px 2px;
        min-height: 42px;
        font-size: 0.65rem;
    }

    .fleet-member-actions-grid .btn-action-icon i {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   Fleet Members - Mini barres FMD sur carte membre
   ============================================================================= */

.fleet-member-fmd-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    width: 100%;
}

.fmd-mini-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fmd-mini-label {
    width: 18px;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.fmd-mini-label i {
    font-size: 0.6rem;
}

.fmd-mini-track {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.fmd-mini-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fmd-mini-fill.fmd-fill-transport {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.fmd-mini-fill.fmd-fill-mixed {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.fmd-mini-fill.fmd-fill-mobility {
    background: linear-gradient(90deg, #D4AF37, #f59e0b);
}

.fmd-mini-value {
    min-width: 28px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-default);
    text-align: right;
}

/* Bouton Attestation - Vert */
.fleet-member-actions-grid .btn-action-icon.btn-attestation {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.fleet-member-actions-grid .btn-action-icon.btn-attestation:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.fleet-member-actions-grid .btn-action-icon.btn-attestation.btn-signed {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

@media (max-width: 768px) {
    .fleet-member-fmd-bars {
        padding: 6px;
        gap: 3px;
    }

    .fmd-mini-label {
        width: 14px;
        font-size: 0.6rem;
    }

    .fmd-mini-track {
        height: 5px;
    }

    .fmd-mini-value {
        min-width: 24px;
        font-size: 0.6rem;
    }
}

/* ============================================ */
/* CARTES MEMBRES - LAYOUT HORIZONTAL          */
/* ============================================ */

.fleet-member-card-h {
    display: grid;
    grid-template-columns: auto minmax(120px, 1.5fr) minmax(100px, 1fr) minmax(70px, 0.5fr) 36px;
    gap: 0.6rem;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
    overflow: hidden;
}

.fleet-member-card-h:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

/* Colonne 0 : Icones secondaires (gauche) */
.member-col-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 0.5rem;
    border-right: 1px solid var(--border-default);
}

/* Colonne 1 : Identite */
.member-col-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.member-identity {
    flex: 1;
    min-width: 0;
}

.member-identity h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-identity .member-email {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
}

.member-role-badge.role-manager {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
}

.member-role-badge.role-member {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* Colonne 2 : FMD (3 barres) */
.member-col-fmd {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
}

.member-fmd-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.member-fmd-row i {
    width: 14px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-align: center;
}

.member-fmd-row i.fa-bus { color: #3b82f6; }
.member-fmd-row i.fa-exchange-alt { color: #8b5cf6; }
.member-fmd-row i.fa-bicycle { color: #10b981; }

.fmd-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.fmd-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fmd-bar-fill.fmd-transport { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.fmd-bar-fill.fmd-mixed { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.fmd-bar-fill.fmd-mobility { background: linear-gradient(90deg, #10b981, #34d399); }

.member-fmd-row span {
    min-width: 28px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

/* Colonne 3 : Vehicules (badge compact + dropdown) */
.member-col-vehicles {
    display: flex;
    align-items: center;
    min-width: 0;
}

.member-vehicle-dropdown-wrapper {
    position: relative;
}

.member-vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.member-vehicle-badge:not(.empty):hover,
.member-vehicle-badge.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary);
}

.member-vehicle-badge i:first-child {
    font-size: 0.65rem;
    color: var(--primary);
}

.member-vehicle-badge .vehicle-chevron {
    font-size: 0.55rem;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
    margin-left: 0.1rem;
}

.member-vehicle-badge.active .vehicle-chevron {
    transform: rotate(180deg);
}

.member-vehicle-badge.empty {
    background: var(--bg-secondary);
    border-color: var(--border-default);
    color: var(--text-tertiary);
    cursor: default;
}

.member-vehicle-badge.empty i {
    color: var(--text-tertiary);
}

/* Dropdown vehicules */
.member-vehicle-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 260px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}

.member-vehicle-dropdown.open {
    display: block;
    animation: vehicleDropdownIn 0.15s ease;
}

@keyframes vehicleDropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.vehicle-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    transition: background 0.15s ease;
}

.vehicle-dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.05));
}

.vehicle-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.vehicle-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.vehicle-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vehicle-dropdown-model {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-dropdown-ref {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bouton desattribuer dans le dropdown vehicule */
.btn-unassign-vehicle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-unassign-vehicle:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-unassign-vehicle i {
    font-size: 0.7rem;
}

/* Bouton "Attribuer un vehicule" en bas du dropdown */
.vehicle-dropdown-assign {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.06));
    background: transparent;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vehicle-dropdown-assign:hover {
    background: rgba(212, 175, 55, 0.08);
}

.vehicle-dropdown-assign i {
    font-size: 0.65rem;
}

/* Badge "Attribuer" quand aucun vehicule (manager) */
.member-vehicle-badge.assign-action {
    background: transparent;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    color: var(--primary);
    cursor: pointer;
}

.member-vehicle-badge.assign-action:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--primary);
}

.member-vehicle-badge.assign-action i {
    color: var(--primary);
}

/* Colonne 4 : Actions (menu dropdown 3 points) */
.member-col-actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    align-self: start;
}

.member-actions-dropdown {
    position: relative;
}

.btn-member-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-member-more:hover {
    background: var(--bg-tertiary, #e2e8f0);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-member-more i {
    font-size: 0.85rem;
}

/* Menu deroulant */
.member-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 160px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease;
}

.member-dropdown-menu.open {
    display: flex;
    flex-direction: column;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.member-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.member-dropdown-menu button:hover {
    background: var(--bg-secondary, #f1f5f9);
}

.member-dropdown-menu button:not(:last-child) {
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

/* Icones colorees dans le dropdown */
.member-dropdown-menu button .fa-coins {
    color: #8b5cf6;
}

.member-dropdown-menu button .fa-file-signature {
    color: #10b981;
}

.member-dropdown-menu button.signed .fa-file-signature {
    color: #059669;
}

.member-dropdown-menu button .fa-plus-circle {
    color: #f59e0b;
}

.member-dropdown-menu button i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

/* Actions secondaires (icones discretes) */
.member-secondary-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-default);
}

.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-icon-action:hover {
    background: var(--bg-secondary);
}

.btn-icon-action.btn-role {
    color: #f59e0b;
}
.btn-icon-action.btn-role:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.btn-icon-action.btn-remove {
    color: var(--text-tertiary);
}
.btn-icon-action.btn-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ============================================ */
/* CHECKBOX SELECTION MEMBRE                   */
/* ============================================ */

.member-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.member-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.member-checkbox-custom {
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-default);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.member-checkbox-wrapper:hover .member-checkbox-custom {
    border-color: var(--primary);
    background: rgba(228, 192, 74, 0.08);
}

.member-checkbox-wrapper input:checked ~ .member-checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.member-checkbox-wrapper input:checked ~ .member-checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #1a1a1a;
}

/* ============================================ */
/* BARRE D'ACTIONS BULK                        */
/* ============================================ */

.bulk-action-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(228, 192, 74, 0.1), rgba(228, 192, 74, 0.05));
    border: 1px solid rgba(228, 192, 74, 0.25);
    border-radius: 8px;
    animation: slideDown 0.2s ease;
}

.bulk-action-bar.visible {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-action-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bulk-action-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.btn-bulk-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.btn-bulk-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.btn-bulk-toggle.all-selected {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-bulk-toggle.all-selected:hover {
    background: rgba(239, 68, 68, 0.15);
}

.bulk-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0.25rem;
    white-space: nowrap;
}

.btn-bulk-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-bulk-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-bulk-action i {
    font-size: 0.75rem;
}

/* Couleurs des boutons bulk */
.btn-bulk-fmd {
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}
.btn-bulk-fmd:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

.btn-bulk-attestation {
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}
.btn-bulk-attestation:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.btn-bulk-remove {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.btn-bulk-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Responsive bulk actions */
@media (max-width: 600px) {
    .bulk-action-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .bulk-action-left {
        justify-content: center;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-default);
    }

    .bulk-action-right {
        justify-content: center;
    }

    .btn-bulk-action {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-bulk-action span {
        display: none;
    }

    .btn-bulk-action {
        padding: 0.5rem;
    }
}

/* Mode sombre */
.dark-mode .fleet-member-card-h,
[data-theme="dark"] .fleet-member-card-h {
    background: #222;
    border-color: #333;
}

.dark-mode .fleet-member-card-h:hover,
[data-theme="dark"] .fleet-member-card-h:hover {
    border-color: #E4C04A;
    box-shadow: 0 4px 16px rgba(228, 192, 74, 0.15);
}

.dark-mode .member-identity h4,
[data-theme="dark"] .member-identity h4 {
    color: #f5f5f5;
}

.dark-mode .fmd-bar,
[data-theme="dark"] .fmd-bar {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .member-vehicle-chip,
[data-theme="dark"] .member-vehicle-chip {
    background: rgba(228, 192, 74, 0.12);
    border-color: rgba(228, 192, 74, 0.3);
    color: #f5f5f5;
}

/* Dropdown menu membres - mode sombre */
.dark-mode .btn-member-more,
[data-theme="dark"] .btn-member-more {
    background: #2a2a2a;
    border-color: #404040;
    color: #D0D0D0;
}

.dark-mode .btn-member-more:hover,
[data-theme="dark"] .btn-member-more:hover {
    background: #333;
    border-color: var(--primary);
    color: var(--primary);
}

.dark-mode .member-dropdown-menu,
[data-theme="dark"] .member-dropdown-menu {
    background: #1e1e1e;
    border-color: #404040;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-mode .member-dropdown-menu button,
[data-theme="dark"] .member-dropdown-menu button {
    color: #E0E0E0;
}

.dark-mode .member-dropdown-menu button:hover,
[data-theme="dark"] .member-dropdown-menu button:hover {
    background: #2a2a2a;
}

.dark-mode .member-dropdown-menu button:not(:last-child),
[data-theme="dark"] .member-dropdown-menu button:not(:last-child) {
    border-bottom-color: #333;
}

/* Textes secondaires dans les cartes membres - CONTRASTE AMELIORE */
.dark-mode .member-email,
.dark-mode .member-identity .member-email,
[data-theme="dark"] .member-email,
[data-theme="dark"] .member-identity .member-email {
    color: #C0C0C0;
}

.dark-mode .member-fmd-row span,
.dark-mode .member-vehicle-badge,
[data-theme="dark"] .member-fmd-row span,
[data-theme="dark"] .member-vehicle-badge {
    color: #D0D0D0;
}

.dark-mode .member-vehicle-badge.empty,
[data-theme="dark"] .member-vehicle-badge.empty {
    color: #A0A0A0;
}

.dark-mode .member-vehicle-dropdown,
[data-theme="dark"] .member-vehicle-dropdown {
    background: var(--bg-primary);
    border-color: var(--border-default);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.dark-mode .vehicle-dropdown-model,
[data-theme="dark"] .vehicle-dropdown-model {
    color: #E0E0E0;
}

.dark-mode .member-role-badge,
[data-theme="dark"] .member-role-badge {
    color: #E0E0E0;
}

/* Textes FMD barres */
.dark-mode .member-fmd-row i,
[data-theme="dark"] .member-fmd-row i {
    color: #C0C0C0;
}

/* Responsive cartes membres */
@media (max-width: 1600px) {
    .fleet-member-card-h {
        grid-template-columns: auto minmax(100px, 1.5fr) minmax(80px, 0.8fr) minmax(60px, 0.5fr) 36px;
        gap: 0.5rem;
        padding: 0.75rem 0.75rem;
    }

    .member-fmd-row span {
        min-width: 24px;
        font-size: 0.65rem;
    }
}

@media (max-width: 1400px) {
    .fleet-member-card-h {
        grid-template-columns: auto minmax(90px, 1.5fr) minmax(70px, 0.8fr) minmax(50px, 0.5fr) 36px;
        gap: 0.4rem;
        padding: 0.65rem 0.6rem;
    }

    .member-fmd-row span {
        min-width: 20px;
        font-size: 0.6rem;
    }

    .member-vehicle-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
}

@media (max-width: 1200px) {
    .fleet-manage-grid {
        grid-template-columns: 1fr 2fr;
    }

    .fleet-member-card-h {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.85rem;
        align-items: center;
    }

    .member-col-secondary {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        padding-right: 0.6rem;
        border-right: 1px solid var(--border-default);
        align-items: center;
        flex-shrink: 0;
    }

    .member-col-identity {
        flex: 1 1 140px;
        min-width: 130px;
    }

    .member-col-fmd {
        flex: 0 0 110px;
    }

    .member-col-vehicles {
        flex: 0 0 auto;
    }

    .member-col-actions {
        flex: 0 0 auto;
    }
}

@media (max-width: 992px) {
    .fleet-manage-grid {
        grid-template-columns: 1fr;
    }

    .fleet-member-card-h {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .member-col-secondary {
        flex-direction: row;
        justify-content: flex-start;
        padding-right: 0.5rem;
        border-right: 1px solid var(--border-default);
    }

    .member-col-identity {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .member-col-fmd {
        flex: 0 0 100px;
    }

    .member-col-vehicles {
        flex: 0 0 auto;
    }

    .member-col-actions {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .fleet-member-card-h {
        padding: 0.75rem;
    }

    .member-col-secondary {
        gap: 0.75rem;
    }

    .member-col-identity .member-identity h4 {
        font-size: 0.85rem;
    }

    .member-col-fmd {
        padding: 0.5rem 0;
    }

    /* Le dropdown s'ouvre a gauche en mobile */
    .member-dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* ============================================ */
/* MODAL GESTION VEHICULES MEMBRE              */
/* ============================================ */

.member-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.member-vehicle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 10px;
}

.member-vehicle-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.member-vehicle-info i {
    color: var(--primary);
}

.btn-remove-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-vehicle:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* ============================================ */
/* BULK ATTESTATIONS - Navigation dans modal   */
/* ============================================ */

/* Controles de navigation inseres dans le header du modal existant */
.bulk-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
    padding-left: 1rem;
}

.btn-bulk-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #D4AF37), var(--accent, #ff8c42));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.btn-bulk-nav:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.btn-bulk-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.bulk-nav-counter {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    min-width: 50px;
    text-align: center;
}

/* Footer bulk avec les boutons d'envoi */
.bulk-footer-controls {
    display: flex !important;
    justify-content: space-between;
    gap: 1rem;
}

.bulk-footer-controls .btn {
    flex: 1;
}

/* ============================================ */
/* MODAL ATTRIBUTION VEHICULE - NOUVEAU DESIGN */
/* ============================================ */

/* Steps de la modal */
.assign-step {
    background: var(--bg-surface);
}

.assign-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.assign-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.assign-step-info h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.assign-step-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.assign-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.assign-loading i {
    margin-right: 8px;
    color: var(--primary);
}

/* Grille des membres */
.assign-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.assign-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: var(--bg-surface);
    border: 2px solid var(--border-default);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-member-card:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.assign-member-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 140, 66, 0.08));
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.assign-member-card.selected .assign-member-avatar {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.assign-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    overflow: hidden;
}

.assign-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assign-member-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assign-member-email {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Option "Liberer le vehicule" */
.assign-member-card.release-option {
    border-style: dashed;
    background: rgba(239, 68, 68, 0.02);
}

.assign-member-card.release-option:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.assign-member-card.release-option.selected {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.assign-member-card.release-option .assign-member-avatar {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Categories de vehicules */
.assign-vehicles-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.assign-vehicle-category {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-default);
}

.assign-vehicle-category.selected {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* Header de categorie avec image et specs */
.assign-category-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-category-header:hover {
    background: rgba(212, 175, 55, 0.03);
}

.assign-category-image {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.assign-category-image i {
    font-size: 2.5rem;
    color: var(--text-tertiary);
}

.assign-category-info {
    flex: 1;
    min-width: 0;
}

.assign-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.assign-category-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.assign-category-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.assign-category-brand {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Specifications en grille */
.assign-category-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.assign-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.assign-spec-item i {
    width: 16px;
    color: var(--primary);
    font-size: 0.75rem;
}

.assign-spec-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown selection dans categorie */
.assign-category-selector {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    display: none;
}

.assign-vehicle-category.selected .assign-category-selector {
    display: block;
}

.assign-category-selector label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.assign-vehicle-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 2px solid var(--border-default);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-vehicle-select:hover {
    border-color: var(--primary);
}

.assign-vehicle-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.assign-vehicle-select:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Grille accessoires amelioree */
.assign-accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
}

.assign-accessory-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
    border: 2px solid var(--border-default);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-accessory-card:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.03);
}

.assign-accessory-card.selected {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
}

.assign-accessory-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.assign-accessory-image i {
    font-size: 1.2rem;
    color: var(--text-tertiary);
}

.assign-accessory-info {
    flex: 1;
    min-width: 0;
}

.assign-accessory-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.assign-accessory-stock {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.assign-accessory-qty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.assign-accessory-card.selected .assign-accessory-qty {
    display: flex;
}

.assign-accessory-qty label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.assign-accessory-qty input {
    width: 50px;
    padding: 4px 8px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background: var(--bg-surface);
}

/* Resume en bas */
.assign-summary {
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 140, 66, 0.05));
    border-top: 1px solid var(--border-default);
}

.assign-summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.assign-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.assign-summary-item i {
    color: var(--primary);
    width: 20px;
}

.assign-summary-item span {
    font-weight: 500;
}

/* Message vide */
.assign-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.assign-empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 12px;
    display: block;
}

.assign-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .assign-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .assign-category-header {
        flex-direction: column;
        gap: 12px;
    }

    .assign-category-image {
        width: 100%;
        height: 120px;
    }

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

    .assign-accessories-grid {
        grid-template-columns: 1fr;
    }

    .assign-summary-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================ */
/* SOUS-TABS SECTION ENTREPRISE */
/* ============================================ */

.fleet-company-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fleet-company-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.fleet-company-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #374151;
}

.fleet-company-tab:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.fleet-company-tab:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

.fleet-company-tab.active {
    background: linear-gradient(135deg, var(--primary, #D4AF37), #b8960c);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.fleet-company-tab i {
    font-size: 0.9rem;
}

.fleet-company-tab.active i {
    color: white;
}

.fleet-doc-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

.fleet-doc-status-badge.pending {
    background: #fef3c7;
    color: #b45309;
}

.fleet-doc-status-badge.verified {
    background: #d1fae5;
    color: #047857;
}

.fleet-doc-status-badge.missing {
    background: #fee2e2;
    color: #b91c1c;
}

/* Animation d'apparition des contenus */
.fleet-company-tab-content {
    animation: fadeInTabContent 0.3s ease;
}

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

/* Responsive tabs entreprise */
@media (max-width: 640px) {
    .fleet-company-tabs {
        padding: 12px 16px;
        gap: 6px;
    }

    .fleet-company-tab {
        padding: 10px 16px;
    }

    .fleet-company-tab span:not(.fleet-doc-status-badge) {
        display: none;
    }

    .fleet-company-tab i {
        font-size: 1rem;
    }

    .fleet-company-tab.active span:not(.fleet-doc-status-badge) {
        display: inline;
    }
}

/* ============================================ */
/* VEHICULES DE FLOTTE ENRICHIS */
/* ============================================ */

/* Carte vehicule enrichie */
.fleet-vehicle-card-v2.enriched {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.fleet-vehicle-card-v2.enriched .fleet-vehicle-image-v2 {
    width: 100%;
    height: 140px;
    border-radius: 0;
}

.fleet-vehicle-card-v2.enriched .fleet-vehicle-info-v2 {
    padding: var(--spacing-md);
}

/* Badge de statut pour vehicules enrichis */
.vehicle-status-badge-v2 {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vehicle-status-badge-v2.success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.vehicle-status-badge-v2.info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.vehicle-status-badge-v2.warning {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.vehicle-status-badge-v2.danger {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Mini specs pour vehicules */
.vehicle-specs-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.vehicle-spec-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    white-space: nowrap;
}

.vehicle-spec-mini i {
    font-size: 10px;
    color: var(--primary);
}

/* Actions enrichies */
.fleet-vehicle-card-v2.enriched .fleet-vehicle-actions-v2 {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fleet-vehicle-card-v2.enriched .fleet-vehicle-actions-v2 button {
    flex: 1;
    min-width: 100px;
}

/* Responsive vehicules enrichis */
@media (max-width: 768px) {
    .fleet-vehicle-card-v2.enriched .fleet-vehicle-image-v2 {
        height: 120px;
    }

    .vehicle-specs-mini {
        gap: 4px;
    }

    .vehicle-spec-mini {
        padding: 2px 6px;
        font-size: 10px;
    }
}

/* ============================================ */
/* VEHICULES DE FLOTTE - VUE COMPACTE           */
/* ============================================ */

/* Carte vehicule compacte (rangee horizontale) */
.fleet-vehicle-card-v2.compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    overflow: hidden;
}

.fleet-vehicle-card-v2.compact:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

/* Image compacte 56x56 */
.fleet-vehicle-card-v2.compact .fleet-vehicle-image-v2 {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f0f0f0;
}

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

/* Info - flex grow */
.fleet-vehicle-card-v2.compact .fleet-vehicle-info-v2 {
    flex: 1;
    min-width: 0;
    padding: 0;
}

/* Ligne nom + badge inline */
.fleet-vehicle-card-v2.compact .vehicle-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}

.fleet-vehicle-card-v2.compact .vehicle-name-row h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge inline (pas en absolute) */
.fleet-vehicle-card-v2.compact .vehicle-status-badge-v2 {
    position: static;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Reference */
.fleet-vehicle-card-v2.compact .vehicle-ref {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0 0 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Assigned user compact */
.fleet-vehicle-card-v2.compact .fleet-vehicle-assigned-v2 {
    font-size: 0.8rem;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.fleet-vehicle-card-v2.compact .fleet-vehicle-assigned-v2 .assigned-avatar {
    width: 20px;
    height: 20px;
}

.fleet-vehicle-card-v2.compact .fleet-vehicle-assigned-v2 .assigned-avatar img {
    width: 20px;
    height: 20px;
}

.fleet-vehicle-card-v2.compact .fleet-vehicle-assigned-v2 .assigned-avatar-fallback {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
}

.fleet-vehicle-card-v2.compact .fleet-vehicle-free-v2 {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

/* Actions compactes */
.fleet-vehicle-card-v2.compact .fleet-vehicle-actions-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    max-width: 160px;
}

.fleet-vehicle-card-v2.compact .fleet-vehicle-actions-v2 button {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    min-width: auto;
    white-space: nowrap;
}

/* ============================================ */
/* BORDURES PAR STATUT                          */
/* ============================================ */

/* Pending - bordure tiretee ambre */
.fleet-vehicle-card-v2.compact.status-pending {
    border: 1.5px dashed #F59E0B;
    background: rgba(245, 158, 11, 0.03);
}

.fleet-vehicle-card-v2.compact.status-pending:hover {
    border-color: #D97706;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

/* Shipping - accent bleu a gauche */
.fleet-vehicle-card-v2.compact.status-shipping {
    border-left: 3px solid #3B82F6;
    background: rgba(59, 130, 246, 0.03);
}

.fleet-vehicle-card-v2.compact.status-shipping:hover {
    border-color: #3B82F6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

/* Image attenuee pour pending/shipping */
.fleet-vehicle-card-v2.compact.status-pending .fleet-vehicle-image-v2 img,
.fleet-vehicle-card-v2.compact.status-shipping .fleet-vehicle-image-v2 img {
    opacity: 0.7;
    filter: grayscale(20%);
}

/* ============================================ */
/* MINI PROGRESS TRACKER LIVRAISON              */
/* ============================================ */

.vehicle-delivery-progress {
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
    gap: 0;
}

.delivery-step {
    display: flex;
    align-items: center;
}

.delivery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-default, #e2e8f0);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.delivery-line {
    width: 18px;
    height: 2px;
    background: var(--border-default, #e2e8f0);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Etape completee */
.delivery-step.completed .delivery-dot {
    background: #22c55e;
}

.delivery-step.completed .delivery-line {
    background: #22c55e;
}

/* Etape active */
.delivery-step.active .delivery-dot {
    background: var(--primary, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

/* Etape en attente */
.delivery-step.upcoming .delivery-dot {
    background: var(--bg-secondary, #f3f4f6);
    border: 1.5px solid var(--border-default, #e2e8f0);
}

.delivery-step.upcoming .delivery-line {
    background: var(--border-default, #e2e8f0);
}

/* Labels sous les dots */
.delivery-step-label {
    font-size: 9px;
    color: var(--text-tertiary);
    white-space: nowrap;
    margin-top: 2px;
}

.delivery-step.completed .delivery-step-label {
    color: #22c55e;
}

.delivery-step.active .delivery-step-label {
    color: var(--primary, #D4AF37);
    font-weight: 600;
}

/* ============================================ */
/* RESPONSIVE VEHICULES COMPACTS                */
/* ============================================ */

@media (max-width: 768px) {
    .fleet-vehicle-card-v2.compact {
        flex-wrap: wrap;
    }

    .fleet-vehicle-card-v2.compact .fleet-vehicle-actions-v2 {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-default);
        margin-top: 0.5rem;
    }
}
