/* Structure Globale */
.df-dashboard-wrapper { 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    border-radius: 5px; 
    padding: 20px; 
    margin-top: 20px; 
}

/* Onglets */
.df-dash-tabs { 
    display: flex; 
    border-bottom: 1px solid #ddd; 
    margin-bottom: 20px; 
    gap: 5px; 
}
.df-dash-tab { 
    padding: 10px 20px; 
    cursor: pointer; 
    font-weight: 600; 
    color: #666; 
    border: 1px solid transparent; 
    background: #f5f5f5; 
    border-radius: 4px 4px 0 0; 
    transition: all 0.2s; 
}
.df-dash-tab:hover { 
    background: #eee; 
    color: #333; 
}
.df-dash-tab.active { 
    background: #fff; 
    border-color: #ddd; 
    border-bottom-color: #fff; 
    color: #5e4682; 
    border-top: 2px solid #5e4682; 
}

/* Contenu des onglets */
.df-dash-content { 
    display: none; 
}
.df-dash-content.active { 
    display: block; 
    animation: dfFadeIn 0.3s; 
}
@keyframes dfFadeIn { 
    from { opacity: 0; transform: translateY(5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Filtres */
.df-filters-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
    align-items: flex-end; 
    background: #f9f9f9; 
    padding: 15px; 
    border-radius: 5px; 
    border: 1px solid #eee; 
}
.df-filter-group { 
    flex: 1; 
    min-width: 200px; 
}
.df-filter-group label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 5px; 
    color: #333; 
    font-size: 0.9em; 
}
.df-filter-group select, 
.df-filter-group input { 
    width: 100%; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    height: 40px; 
    box-sizing: border-box; 
}

/* Séparateur */
.df-separator { 
    width: 100%; 
    height: 1px; 
    background: #ddd; 
    margin: 20px 0; 
    position: relative; 
    text-align: center; 
}
.df-separator span { 
    position: absolute; 
    top: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #fff; 
    padding: 0 10px; 
    color: #999; 
    font-size: 0.8em; 
    font-weight: bold; 
}

/* Tableaux de résultats */
.df-result-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px; 
}
.df-result-table th { 
    background-color: #f8f9fa; 
    padding: 10px; 
    text-align: left; 
    border-bottom: 2px solid #ddd; 
}
.df-result-table td { 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    vertical-align: middle; 
}

/* Statuts et Images */
.df-sig-img { 
    height: 40px; 
    border: 1px solid #ddd; 
    background: #fff; 
    padding: 2px; 
    transition: transform 0.2s; 
    max-width: 120px; 
    cursor: zoom-in; 
}
.df-sig-img:hover { 
    transform: scale(5); 
    border-color: #5e4682; 
    z-index: 1000; 
    position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.df-status-pass { color: #28a745; font-weight: bold; }
.df-status-fail { color: #dc3545; font-weight: bold; }
.df-status-pending { color: #6c757d; font-style: italic; }

/* Liens cliquables */
.df-clickable-session, 
.df-clickable-trainee { 
    color: #5e4682; 
    cursor: pointer; 
    text-decoration: underline; 
    font-weight: 600; 
}
.df-clickable-session:hover, 
.df-clickable-trainee:hover { 
    color: #333; 
}

/* Autocomplete jQuery UI */
.ui-autocomplete { 
    z-index: 99999 !important; 
    max-height: 250px; 
    overflow-y: auto; 
    background: #fff; 
    border: 1px solid #ccc; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.ui-menu-item-wrapper { 
    padding: 8px 12px; 
    font-size: 14px; 
}
.ui-state-active, 
.ui-widget-content .ui-state-active { 
    background: #5e4682 !important; 
    color: #fff !important; 
    border: none !important; 
}