/*
 * Styles du tableau de bord des incidents, extraits de
 * Views/Incidents/Tableau_Bord_Incidents/Index.cshtml (2 blocs <style> inline consolidés en un).
 * Auteur d'origine : Junior Lanwadan (03/2026).
 */

.stats-ratio {
    margin-bottom: 5px;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13,47,90,0.25);
    background-color: #f0f4fb;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a3a6c 0%, #0d2f5a 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 24px !important;
    font-weight: bold;
    color: #1a3a6c;
    line-height: 1;
}

.marge-resum {
    margin-left: 5px;
}

.ui-dialog .ui-dialog-titlebar-close {
    display: none !important;
}

/* Style pour btn-detail-custom - surcharge Bootstrap */
.btn.btn-detail-custom,
button.btn-detail-custom {
    background-color: #d6eaff !important;
    border: 1px solid #9cc5f0 !important;
    color: #1a5490 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
    line-height: 1.2 !important;
}

/* Icône œil en NOIR */
.btn.btn-detail-custom i,
button.btn-detail-custom i,
.btn.btn-detail-custom .fa-eye,
button.btn-detail-custom .fa-eye {
    color: #000 !important;
    font-size: 13px !important;
}

/* Hover - légèrement plus foncé */
.btn.btn-detail-custom:hover,
button.btn-detail-custom:hover {
    background-color: #c2dcf5 !important;
    border-color: #8ab8e8 !important;
    color: #14447a !important;
}

/* L'œil reste NOIR au hover */
.btn.btn-detail-custom:hover i,
button.btn-detail-custom:hover i {
    color: #000 !important;
}

/* Désactiver les effets Bootstrap */
.btn.btn-detail-custom:focus,
.btn.btn-detail-custom:active,
.btn.btn-detail-custom:focus:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: #d6eaff !important;
    border-color: #9cc5f0 !important;
}

.btn-detail-custom i {
    color: #000 !important;
}

.btn-detail-custom:hover {
    background-color: rgba(198, 226, 255, 0.8);
}

/* Cellules du tableau — règle unique (fusion de deux définitions ".cell-action" identiques
   sur le fond, la seconde étant un sous-ensemble strict de la première). */
.cell-action {
    font-family: 'Century Gothic', 'CenturyGothic', AppleGothic, sans-serif;
    font-size: 14px;
    color: darkblue;
    font-weight: normal;
    text-align: center !important;
}

/* Styles pour les en-têtes */
.header-matricule,
.header-etatcivil,
.header-pays,
.header-activite,
.header-statut,
.header-risque,
.header-specification,
.header-details {
    font-family: 'Century Gothic', 'CenturyGothic', AppleGothic, sans-serif;
    font-size: 18px;
    font-weight: bold;
}

.header-details {
    margin-right: 20px;
}

/* Styles généraux pour toutes les cellules du tableau */
.cell-matricule,
.cell-nom,
.cell-pays,
.cell-activite,
.cell-statut,
.cell-risque,
.cell-specification {
    font-family: 'Century Gothic', 'CenturyGothic', AppleGothic, sans-serif;
    font-size: 14px;
    color: darkblue;
}
