/* ===== STYLES GÉNÉRAUX ===== */
.vfm-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vfm-widget {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vfm-widget h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #333;
}

/* ===== FILTRES ===== */
.vfm-filter-form,
.vfm-drivers-filter-form,
.vfm-dashboard-filter-form {
    margin-bottom: 20px;
}

.vfm-filter-grid,
.vfm-drivers-filter-grid,
.vfm-dashboard-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.vfm-filter-group {
    display: flex;
    flex-direction: column;
}

.vfm-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.vfm-filter-group select,
.vfm-filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vfm-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
}

    .vfm-active-filters {
        margin-top: 15px;
        padding: 10px;
        background: #e7f3ff;
        border-radius: 5px;
        border-left: 4px solid #007cba;
    }
    .vfm-filter-tag {
        display: inline-block;
        background: #007cba;
        color: white;
        padding: 4px 8px;
        margin: 2px 5px;
        border-radius: 3px;
        font-size: 12px;
    }
    .vfm-no-results {
        text-align: center;
        padding: 40px 20px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 2px dashed #dee2e6;
    }
    .vfm-no-results p {
        margin-bottom: 15px;
        color: #6c757d;
    }
    
media (max-width: 768px) {
    .vfm-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BOUTONS ===== */
.vfm-button {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.vfm-button:hover {
    background: #005a87;
    color: white;
}

.vfm-button-secondary {
    background: #6c757d;
}

.vfm-button-secondary:hover {
    background: #545b62;
}

.vfm-button-danger {
    background: #dc3545;
}

.vfm-button-danger:hover {
    background: #c82333;
}

/* ===== STATUTS ===== */
.vfm-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.vfm-status-disponible { background: #d4edda; color: #155724; }
.vfm-status-en_service { background: #fff3cd; color: #856404; }
.vfm-status-maintenance { background: #f8d7da; color: #721c24; }
.vfm-status-en_route { background: #cce7ff; color: #004085; }
.vfm-status-panne { background: #6c757d; color: white; }

/* ===== CARTES VÉHICULES ===== */
.vfm-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vfm-vehicle-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vfm-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vfm-vehicle-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.vfm-vehicle-info h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.vfm-vehicle-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* ===== TABLEAU DE BORD ===== */
.vfm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vfm-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.vfm-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vfm-stat-icon.available {
    background: #d4edda;
    color: #155724;
}

.vfm-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.vfm-stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.vfm-stat-content p {
    margin: 5px 0 0 0;
    color: #666;
}

.vfm-dashboard-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.vfm-period-info {
    padding: 10px;
    background: #e7f3ff;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
}

/* ===== CHAUFFEURS ===== */
.vfm-drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.vfm-driver-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vfm-driver-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vfm-driver-photo {
    flex-shrink: 0;
}

.vfm-driver-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0073aa;
}

.vfm-driver-basic-info {
    flex: 1;
}

.vfm-driver-basic-info h4 {
    margin: 0 0 8px 0;
    color: #0073aa;
    font-size: 18px;
}

.vfm-driver-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vfm-driver-phone,
.vfm-driver-license {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.vfm-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.vfm-expired {
    color: #dc3545;
    font-weight: bold;
}

.vfm-valid {
    color: #28a745;
}

.vfm-expiry-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

.vfm-driver-trips {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.vfm-driver-trips h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.vfm-trips-mini-list {
    max-height: 200px;
    overflow-y: auto;
}

.vfm-trip-mini-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.vfm-trip-mini-date {
    flex-shrink: 0;
    font-weight: bold;
    color: #0073aa;
    font-size: 12px;
}

.vfm-trip-mini-info {
    flex: 1;
}

.vfm-trip-mini-info strong {
    font-size: 13px;
}

.vfm-trip-mini-info small {
    color: #666;
}

/* ===== TRAJETS ===== */
.vfm-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vfm-trip-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vfm-trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.vfm-trip-header h4 {
    margin: 0;
    color: #0073aa;
}

.vfm-trip-date {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.vfm-trip-info {
    margin-bottom: 15px;
}

.vfm-trip-detail {
    margin-bottom: 8px;
    font-size: 14px;
}

.vfm-trip-documents {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.vfm-documents-list {
    margin-top: 10px;
}

.vfm-document-link {
    margin-bottom: 5px;
}

.vfm-document-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.3s;
}

.vfm-document-btn:hover {
    background: #c82333;
    color: white;
}

.vfm-trip-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-style: italic;
    color: #666;
}

media (max-width: 768px) {
    .vfm-trips-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MAINTENANCES ===== */
.vfm-maintenances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.vfm-maintenance-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vfm-maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.vfm-maintenance-header h4 {
    margin: 0;
    color: #0073aa;
}

.vfm-maintenance-type {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.vfm-maintenance-details {
    margin-bottom: 15px;
}

.vfm-maintenance-detail {
    margin-bottom: 8px;
    font-size: 14px;
}

.vfm-maintenance-cost {
    font-weight: bold;
    color: #28a745;
}

.vfm-maintenance-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.vfm-status-planned { background: #fff3cd; color: #856404; }
.vfm-status-in_progress { background: #cce7ff; color: #004085; }
.vfm-status-completed { background: #d4edda; color: #155724; }
.vfm-status-cancelled { background: #f8d7da; color: #721c24; }

.vfm-maintenance-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
}

/* ===== DOCUMENTS ===== */
.vfm-document-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.vfm-file-preview {
    padding: 8px;
    background: #e7f3ff;
    border-radius: 4px;
    margin-top: 5px;
}

.vfm-file-link {
    color: #0073aa;
    text-decoration: none;
}

.vfm-file-link:hover {
    text-decoration: underline;
}

/* ===== RÉPARTITIONS ===== */
.vfm-status-distribution,
.vfm-status-chart {
    margin-top: 15px;
}

.vfm-status-dist-item,
.vfm-status-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

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

.vfm-status-count {
    font-weight: bold;
    color: #0073aa;
    min-width: 30px;
    text-align: right;
}

.vfm-status-bar {
    width: 100px;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
}

.vfm-status-fill {
    height: 100%;
    border-radius: 4px;
}

/* ===== TOP LISTES ===== */
.vfm-top-vehicles {
    margin-top: 15px;
}

.vfm-top-vehicle {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.vfm-top-vehicle:last-child {
    border-bottom: none;
}

.vfm-vehicle-name {
    font-weight: 500;
}

.vfm-vehicle-km {
    color: #0073aa;
    font-weight: bold;
}

/* ===== MESSAGES D'ERREUR ===== */
.vfm-no-results,
.vfm-no-trips {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.vfm-alert-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #ffc107;
    background: #fff8e1;
    border-radius: 4px;
}

.vfm-alert-panne {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.vfm-alert-accident {
    border-left-color: #dc3545;
    background: #f8d7da;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .vfm-filter-grid,
    .vfm-drivers-filter-grid,
    .vfm-dashboard-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .vfm-vehicles-grid,
    .vfm-drivers-grid,
    .vfm-trips-grid,
    .vfm-maintenances-grid {
        grid-template-columns: 1fr;
    }
    
    .vfm-dashboard-details {
        grid-template-columns: 1fr;
    }
    
    .vfm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .vfm-driver-header {
        flex-direction: column;
        text-align: center;
    }
    
    .vfm-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .vfm-trip-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .vfm-maintenance-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/*== Style pour les signalements ===*/
    .vfm-reports-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vfm-report-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .vfm-report-unresolved {
        border-left: 4px solid #dc3545;
    }
    
    .vfm-report-resolved {
        border-left: 4px solid #28a745;
        opacity: 0.8;
    }
    
    .vfm-report-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .vfm-report-title h4 {
        margin: 0 0 5px 0;
        color: #333;
    }
    
    .vfm-report-type {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        margin-left: 8px;
    }
    
    .vfm-report-panne { background: #f8d7da; color: #721c24; }
    .vfm-report-accident { background: #f8d7da; color: #721c24; }
    .vfm-report-retard { background: #fff3cd; color: #856404; }
    .vfm-report-autre { background: #d1ecf1; color: #0c5460; }
    
    .vfm-report-date {
        color: #666;
        font-size: 12px;
    }
    
    .vfm-status-badge {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    .vfm-status-resolved { background: #d4edda; color: #155724; }
    .vfm-status-unresolved { background: #f8d7da; color: #721c24; }
    
    .vfm-report-description {
        margin-bottom: 15px;
    }
    
    .vfm-report-description p {
        margin: 5px 0 0 0;
        color: #555;
    }
    
    .vfm-report-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 4px;
    }
    
    .vfm-report-meta-item {
        font-size: 13px;
    }
    
    .vfm-report-meta-item small {
        color: #666;
    }
    
    .vfm-report-actions {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        text-align: right;
    }
    
/* ===== ASSURANCES ===== */
.vfm-vehicle-insurance {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.vfm-insurance-info {
    font-size: 14px;
}

.vfm-insurance-info strong {
    color: #28a745;
}

/* Styles communs pour assurance et visite technique */
.vfm-valid {
    color: #28a745;
    font-weight: bold;
}

.vfm-expired {
    color: #dc3545;
    font-weight: bold;
}

.vfm-expiring-soon {
    color: #ffc107;
    font-weight: bold;
}

.vfm-no-info {
    color: #6c757d;
    font-style: italic;
}

/* Badges d'expiration améliorés */
.vfm-expiry-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.vfm-expiry-badge[data-type="soon"] {
    background: #ffc107;
    color: #212529;
}

.vfm-expiry-badge[data-type="valid"] {
    background: #28a745;
    color: white;
}

/* Cartes d'alerte spécifiques */
.vfm-alert-insurance {
    border-left: 4px solid #28a745;
}

.vfm-alert-insurance.expired {
    border-left-color: #dc3545;
}

.vfm-alert-insurance.expiring {
    border-left-color: #ffc107;
}

.vfm-alert-summary-card.bumigeb {
    border-left: 4px solid #ff6b00;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}
.vfm-alert-summary-card.marchandise {
    border-left: 4px solid #9c27b0;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}
    
/* ===== VISITES TECHNIQUES ===== */
.vfm-vehicle-technical {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

.vfm-technical-info {
    font-size: 14px;
}

.vfm-technical-info strong {
    color: #17a2b8;
}

.vfm-expiring-soon {
    color: #ffc107;
    font-weight: bold;
}

.vfm-no-info {
    color: #6c757d;
    font-style: italic;
}

/* Badges d'expiration */
.vfm-expiry-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

.vfm-expiry-badge[data-expiring="soon"] {
    background: #ffc107;
    color: #212529;
}

/* Cartes d'alerte */
.vfm-alert-technical {
    border-left: 4px solid #17a2b8;
}

.vfm-alert-technical.expired {
    border-left-color: #dc3545;
}

.vfm-alert-technical.expiring {
    border-left-color: #ffc107;
}

/* Tableau de bord - Alertes */
.vfm-alerts-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.vfm-alert-summary-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.vfm-alert-summary-card.insurance {
    border-left: 4px solid #007bff;
}

.vfm-alert-summary-card.technical {
    border-left: 4px solid #17a2b8;
}

.vfm-alert-count {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.vfm-alert-count.urgent {
    color: #dc3545;
}

.vfm-alert-count.warning {
    color: #ffc107;
}

.vfm-alert-label {
    font-size: 14px;
    color: #666;
}

/*=== Styles documents obligatoires ===*/
    
    .vfm-documents-overview {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .vfm-documents-summary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }
    
    .vfm-summary-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .vfm-summary-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    
    .vfm-summary-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .vfm-summary-content h4 {
        margin: 0 0 8px 0;
        color: #333;
    }
    
    .vfm-summary-stats {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .vfm-stat-expired {
        color: #dc3545;
        font-weight: bold;
        font-size: 13px;
    }
    
    .vfm-stat-expiring {
        color: #ffc107;
        font-weight: bold;
        font-size: 13px;
    }
    
    .vfm-documents-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    .vfm-vehicle-document-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .vfm-document-vehicle-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .vfm-document-vehicle-header h5 {
        margin: 0;
        color: #0073aa;
    }
    
    .vfm-vehicle-immatriculation {
        background: #6c757d;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: bold;
    }
    
    .vfm-document-details {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .vfm-document-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        border-radius: 6px;
        border-left: 4px solid #ddd;
    }
    
    .vfm-document-insurance {
        border-left-color: #28a745;
    }
    
    .vfm-document-technical {
        border-left-color: #17a2b8;
    }
    
    .vfm-document-item.vfm-status-expired {
        background: #f8d7da;
        border-left-color: #dc3545;
    }
    
    .vfm-document-item.vfm-status-expiring {
        background: #fff3cd;
        border-left-color: #ffc107;
    }
    
    .vfm-document-item.vfm-status-valid {
        background: #d4edda;
        border-left-color: #28a745;
    }
    
    .vfm-document-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .vfm-document-icon .dashicons {
        font-size: 20px;
        color: #666;
    }
    
    .vfm-document-info {
        flex: 1;
    }
    
    .vfm-document-info strong {
        display: block;
        margin-bottom: 5px;
        color: #333;
    }
    
    .vfm-document-date {
        font-size: 13px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .vfm-document-meta {
        font-size: 12px;
        color: #666;
    }
    
    .vfm-status-badge {
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    .vfm-status-valid .vfm-status-badge {
        background: #28a745;
        color: white;
    }
    
    .vfm-status-expiring .vfm-status-badge {
        background: #ffc107;
        color: #212529;
    }
    
    .vfm-status-expired .vfm-status-badge {
        background: #dc3545;
        color: white;
    }
    
    .vfm-document-actions {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .vfm-button-small {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .vfm-priority-alert {
        color: #dc3545;
        font-weight: bold;
        font-size: 12px;
    }
    
    .vfm-document-bumigeb .vfm-document-icon {
        background: #ff6b00;
    }
    .vfm-document-marchandise .vfm-document-icon {
        background: #9c27b0;
    }
    .vfm-status-badge.vfm-status-expired {
        background: #dc3545;
        color: white;
    }
    .vfm-status-badge.vfm-status-expiring {
        background: #ffc107;
        color: #212529;
    }
    .vfm-status-badge.vfm-status-valid {
        background: #28a745;
        color: white;
    }

    @media (max-width: 768px) {
        .vfm-documents-grid {
            grid-template-columns: 1fr;
        }
        
        .vfm-documents-summary {
            grid-template-columns: 1fr;
        }
        
        .vfm-document-vehicle-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
    }

/*=== styles synthèse CA et dépenses ===*/
    .vfm-depense-item {
        margin-bottom: 15px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 5px;
    }
    .vfm-depense-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }
    .vfm-depense-bar {
        height: 8px;
        background: #e9ecef;
        border-radius: 4px;
        overflow: hidden;
    }
    .vfm-depense-fill {
        height: 100%;
        background: #dc3545;
        transition: width 0.3s ease;
    }
    .vfm-depense-meta {
        font-size: 12px;
        color: #6c757d;
        margin-top: 5px;
    }
    
    .vfm-rentability-badge {
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 12px;
    }
    .vfm-rentability-high { background: #d4edda; color: #155724; }
    .vfm-rentability-medium { background: #fff3cd; color: #856404; }
    .vfm-rentability-low { background: #f8d7da; color: #721c24; }
    
/*=== styles synthèse maintenance ===*/
    .vfm-types-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }
    .vfm-type-card {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #007cba;
    }
    .vfm-type-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    .vfm-type-header h5 {
        margin: 0;
        color: #333;
    }
    .vfm-type-count {
        background: #007cba;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    .vfm-type-details {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }
    .vfm-type-cost {
        color: #dc3545;
        font-weight: bold;
    }
    .vfm-type-percentage {
        color: #6c757d;
    }
    
    .vfm-vehicles-maintenance, 
    .vfm-depenses-breakdown,
    .vfm-ranking-section{
        overflow: auto;
        max-height: 500px; /* Défilement vertical à partir de cette hauteur */
        max-width: 100%;  /* Défilement horizontal si nécessaire */
    }
    
/*=== Pagination frontend ===*/
.vfm-pagination {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.vfm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
    background: white;
}

.vfm-pagination .page-numbers.current {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.vfm-pagination .page-numbers:hover {
    background: #f0f0f1;
    border-color: #999;
}

/* Statistiques signalements */
.vfm-reports-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* --- Style pour la Fenêtre Modale (Pop-up) de Signalement --- */

/* Le conteneur principal qui couvre tout l'écran (le fond semi-transparent) */
#vfm-report-modal {
    position: fixed; /* Reste en place même si on défile */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fond noir semi-transparent */
    display: flex; /* Permet de centrer facilement le contenu */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    z-index: 1000; /* S'assure qu'il est au-dessus de tout le reste */
    opacity: 0; /* Commence invisible pour l'effet de transition */
    visibility: hidden; /* Complètement caché au départ */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Animation douce */
}

/* Style pour la modale lorsqu'elle est visible */
#vfm-report-modal.visible {
    opacity: 1;
    visibility: visible;
}

/* La boîte blanche qui contient le formulaire */
.vfm-modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px; /* Largeur maximale sur grand écran */
    transform: scale(0.95); /* Effet de zoom à l'apparition */
    transition: transform 0.3s ease;
}

#vfm-report-modal.visible .vfm-modal-content {
    transform: scale(1); /* Retour à la taille normale quand visible */
}

/* Titre de la modale */
.vfm-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Style des champs du formulaire dans la modale */
#vfm-report-form div {
    margin-bottom: 15px;
}

#vfm-report-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#vfm-report-form select,
#vfm-report-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#vfm-report-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Conteneur pour les boutons */
#vfm-report-form div:last-child {
    margin-top: 20px;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end; /* Aligne les boutons à droite */
    gap: 10px; /* Espace entre les boutons */
}