/* ============================================================
   Page Gestion des Fonctions (Organigramme / Postes)
   ============================================================ */
.section-gestion-fonctions {
    max-width: 100%;
}

.card-fonctions {
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
}
.card-fonctions > .card-header {
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Largeurs colonnes table des fonctions */
.section-gestion-fonctions .table thead th {
    vertical-align: middle;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #495057;
    background-color: #f8f9fa;
}
.section-gestion-fonctions .table tbody td {
    font-size: 0.9rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* Code mono-espacé pour la colonne code */
.section-gestion-fonctions .fw-mono.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.01em;
}

/* Badges de statut/criticité : largeur minimum homogène */
.section-gestion-fonctions table .badge {
    min-width: 2.25rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.72rem;
}

/* Boutons d'actions : hover doux sans grossir la ligne */
.section-gestion-fonctions table .btn-sm {
    padding: 0.18rem 0.45rem;
}

/* Filtres : labels + petits inputs */
.section-gestion-fonctions .bg-light label.form-label {
    font-size: 0.8rem;
}

/* Barre de pagination fond léger quand aucun résultat */
.section-gestion-fonctions .table-responsive {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}
.section-gestion-fonctions .table-responsive > table thead {
    z-index: 2;
}
.section-gestion-fonctions .table > :not(caption) > * > * {
    box-shadow: inset 0 -1px 0 #e9ecef;
}
