﻿/* ==========================================================================
   1. TABLEAUX GENERAUX & FILTRES
   ========================================================================== */
.table-container {
    margin: 40px auto;
    width: 95%;
    max-width: 1400px;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-container th, 
.table-container td {
    border: none;
    border-bottom: 1px solid #eef0f4;
    padding: 12px 14px;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.table-container th {
    background-color: var(--nav-background);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-container th:first-child { border-radius: 8px 0 0 0; }
.table-container th:last-child  { border-radius: 0 8px 0 0; }

.table-container tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.table-container tbody tr:hover {
    background-color: rgba(30, 188, 255, 0.06);
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

.filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.filters label {
    font-weight: 600;
    font-size: 0.82em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    margin-bottom: 25px;
    background-color: var(--secondary-color);
    border: 1px solid rgba(0,0,0,0.06);
}

/* La liste des utilisateurs reste lisible sur une ligne par personne.
   Le conteneur conserve un défilement horizontal sur les petits écrans. */
#usersTable {
    min-width: 1500px;
    table-layout: auto;
}

#usersTable th,
#usersTable td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
}

/* ==========================================================================
   2. TRIS DES COLONNES
   ========================================================================== */
th.sortable, #usersTable th, #groupsTable th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

th.sortable:hover, #usersTable th:hover, #groupsTable th.sortable:hover {
    background-color: #243044;
}

th.sortable::after, #usersTable th::after, #groupsTable th.sortable::after {
    content: ' \2195';
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
}

th.sort-asc::after, #usersTable th.sort-asc::after, #groupsTable th.sort-asc::after {
    content: ' \25B2';
    color: var(--primary-color);
}

th.sort-desc::after, #usersTable th.sort-desc::after, #groupsTable th.sort-desc::after {
    content: ' \25BC';
    color: var(--primary-color);
}

/* ==========================================================================
   3. SECTIONS SPECIFIQUES (SUIVI DES MODIFICATIONS)
   ========================================================================== */
.file-section {
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
}

.file-section h2 {
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.no-changes {
    font-style: italic;
    color: var(--text-muted);
    padding: 14px 18px;
    background-color: var(--secondary-color);
    border-left: 3px solid var(--input-border-color);
    border-radius: 6px;
    font-size: 0.875em;
    box-shadow: var(--shadow-sm);
    margin-top: 5px;
}




