/* =========================================
   PAGES/ADMIN.CSS — Pages admin
   ========================================= */

/* === Appartenance Autorisations en masse === */
th#ap-aut-mass-chevron { width: 1%; }
th#ap-aut-mass-nom { width: 20%; }
th#ap-aut-mass-type { width: 13%; }
th#ap-aut-mass-fonction { width: 23%; }
th#ap-aut-mass-role { width: 15%; }
th#ap-aut-mass-autorisation { width: 10%; }
th#ap-aut-mass-appartenance { width: 10%; }

td#service-espace-td { width: 6%; }
td#utilisateur-espace-td { width: 6%; }
td#utilisateur-espace-2 { width: 19%; }
td#utilisateur-fonction-td { width: 23%; }
td#utilisateur-autorisation-td { width: 12%; }
td#site-espace-td { width: 3%; }
td#service-nom-td { width: 13%; }
td#service-type-td { width: 15%; }
td#service-ajouter-td { width: 10%; }
td#service-espace-2 { width: 30%; }

.accordion-toggle:not(.collapsed) > td > i.fa-chevron-right,
.accordion-toggle:not(.collapsed) > td > i.bi-chevron-right {
    transform: rotate(90deg);
    transition: 0.4s;
}
.accordion-toggle.collapsed > td > i.fa-chevron-right,
.accordion-toggle.collapsed > td > i.bi-chevron-right {
    transition: 0.4s;
}

/* === CRUD Statut Sam === */
.statut-sam-color { width: 50px; min-width: 50px; }
.statut-cti-color { width: 50px; min-width: 50px; }

.sousStatutRow {
    background-color: var(--light-color) !important;
}

/* Rows de sous-statuts cachées (classe ajoutée par JS) */
table.table-accordion tr[connectedFrom].sous-statut-hidden {
    display: none !important;
}

table.table-accordion tr[connectedFrom] td.hiddenRow {
    padding: 0 !important;
    border: none !important;
}

/* Couleur à gauche : pleine hauteur de la row, sans padding, chevron centré */
table.table.table-accordion td.chevron-container.garde-couleur {
    padding: 0 !important;
    margin: 0;
    vertical-align: middle;
    text-align: center;
}

table.table.table-accordion td.chevron-container.garde-couleur i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #000;
    font-size: 1.2rem;
    -webkit-text-stroke: 1px;
    transition: transform 0.3s ease;
}

table.table.table-accordion td.chevron-container.garde-couleur i.rotated {
    transform: rotate(90deg);
}

/* Bande de couleur dans les sous-statuts dépliés */
.hiddenRowColor {
    width: 50px;
    min-width: 50px;
    min-height: 100%;
    flex-shrink: 0;
}

/* === Fonctionnalites / Options modales === */
.fonctionnalite-modal { width: 55rem; }
.option-voir-modal { width: 55rem; }

/* === Scroll des CRUD de traduction === */
.field-container,
.field-container-traductionDescription,
.field-container-traductionCategorie {
    overflow: scroll;
    height: 15rem;
    overflow-x: hidden;
}

.field-container::-webkit-scrollbar,
.field-container-traductionDescription::-webkit-scrollbar,
.field-container-traductionCategorie::-webkit-scrollbar {
    width: 5px;
}
.field-container::-webkit-scrollbar-track,
.field-container-traductionDescription::-webkit-scrollbar-track,
.field-container-traductionCategorie::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(192, 192, 192);
    border-radius: 10px;
}
.field-container::-webkit-scrollbar-thumb,
.field-container-traductionDescription::-webkit-scrollbar-thumb,
.field-container-traductionCategorie::-webkit-scrollbar-thumb {
    background: rgb(177, 177, 177);
    border-radius: 10px;
}
.field-container::-webkit-scrollbar-thumb:hover,
.field-container-traductionDescription::-webkit-scrollbar-thumb:hover,
.field-container-traductionCategorie::-webkit-scrollbar-thumb:hover {
    background: grey;
}

/* === Espacement formulaires admin === */
.mb-3 > .row {
    margin-bottom: 0.75rem;
}

/* === Logo Fimainfo === */
.logo-fimainfo { width: 7rem; }

/* === Import === */
.import-wait-message {
    position: absolute;
    z-index: 9999;
    font-size: 3rem;
    width: 70%;
    top: 10rem;
}

/* === Liste client logo === */
.liste-client-logo-container img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* === Cards sous-statuts === */
.accordian-body .card[id^="sousStatutCard"] {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    overflow: hidden;
}

.couleur-sous-statut {
    height: 0.5rem;
    margin-top: auto;
}

/* === Custom HR statut === */
.custom-hr-statut-sam {
    border: 1px dotted var(--neutral-90-color);
}

/* === Titles (admin) === */
#main-title { color: #be0000; }
#secondary-title { font-size: 50px; }
.titles { background-color: #793a94; }

/* === ms-neg-3 === */
.ms-neg-3 { margin-left: -10rem; }
