:root {
    --bs-primary: #1095a6;
    --bs-primary-bg-subtle: #c0cfe4;

    --bs-border-radius: 1rem;

    --passxp-table-header-bg: #36A793;
    --passxp-table-header-color: rgb(243, 239, 239);
}

/* Fallback par défaut */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

/* Navigateurs modernes */
@supports (color: color-mix(in srgb, white, black)) {
    .btn-primary {
        /* Hover = +10% plus clair */
        --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary) 90%, white 10%);
        --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary) 90%, white 10%);
        /* Active = +12% vers le noir (plus sombre) */
        --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary) 88%, black 12%);
        --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary) 88%, black 12%);
    }

    /* Variante “subtle” */
    .btn.bg-primary-subtle {
        --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary-bg-subtle, #c0cfe4) 90%, white 10%);
        --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary-bg-subtle, #c0cfe4) 90%, white 10%);
        --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary-bg-subtle, #c0cfe4) 88%, black 12%);
        --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary-bg-subtle, #c0cfe4) 88%, black 12%);
    }
}


.badge-month-edit-task {
    background-color: #36A793;
}

.custom-tooltip .tooltip-inner {
    --bs-tooltip-bg: black;
    /* Couleur de fond sans transparence */
    --bs-tooltip-color: #ffffff;
    /* Couleur du texte */
    padding: 1rem;
    /* Ajustez la valeur selon vos besoins */
}

.search-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.search-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.search-container input[type="text"] {
    width: 300px;
    /* Augmentation de la largeur de l'input */
    padding: 5px 7px;
    /* Padding intérieur */
    border: 2px solid #36A793;
    /* Bordure */
    border-radius: 5px;
    /* Coins arrondis */
    font-size: 14px;
    /* Taille de la police */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Ombre */
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Transition pour les effets au survol */
}

.search-container input[type="text"]:focus {
    border-color: #258675;
    /* Couleur de bordure au focus */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Ombre au focus */
    outline: none;
    /* Enlève le contour par défaut au focus */
}

.tooltip-container {
    position: absolute;
    top: 50%;
    right: -35px;
    transform: translateY(-50%);
}

.table-success,
.table-success>th,
.table-success>td {
    background-color:
        var(--passxp-table-header-bg,
            #36A793);

    color:
        var(--passxp-table-header-color,
            rgb(243, 239, 239));
}

.table thead th {
    background-color:
        var(--passxp-table-header-bg,
            #36A793);

    color:
        var(--passxp-table-header-color,
            rgb(243, 239, 239));
}

body {
    background-color: #f0f4f8;
    font-family: 'Inter Variable', sans-serif;
}

.margin-special {
    margin-left: 230px;
}

/* Media query pour les écrans de moins de 768px de large (tablettes et plus petits) */
@media (max-width: 768px) {
    .margin-special {
        margin-left: 5px;
    }
}

/* CSS personnalisé pour la sidebar */
.sidebar {
    width: 11.5vw;
    height: 100vh;
    /* Hauteur complète de la fenêtre */
    position: fixed;
    /* Rend la sidebar fixe */
    left: 0;
    top: 0;
    overflow-y: auto;
    /* Ajoute un défilement si nécessaire */
    background-color: #36A793;
    /* Couleur de fond sombre */
    padding-top: 20px;
    /* Espacement en haut */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1040;
}

/* Style pour les liens de la sidebar */
/* .sidebar a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
} */

.sidebar-mini a {
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sidebar-mini a:hover {
    transform: scale(1.2);
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    width: 100%;
    /* text-align: center; */
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

/* .sidebar a:hover {
    background-color: #007bff;
} */

/* .sidebar a:hover,
.sidebar a.active {
    background-color: #DB3E4D;
    color: #ffffff;
} */

.sidebar .nav-link:hover,
.sidebar-mini a:hover {
    background-color: var(--sidebar-hover-bg, #11565f);
    color: var(--sidebar-text, #fff) !important;
}

.sidebar .nav-link.active {
    background-color: var(--sidebar-active-bg, #0c474f);
    color: var(--sidebar-text, #fff) !important;
}

.btn-nav-admin {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #000;
    background-color: transparent;
}

body>div.d-none.d-lg-block>div>ul>a:hover {
    background-color: none;
    color: none;
}

/* .main-content {
    transform: translateX(220px);
    padding: 20px;
    transition: transform 0.3s ease;
}

.main-content-unfolded {
    transform: translateX(0);
    padding: 20px;
    transition: transform 0.3s ease;
} */

.main-content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content-unfolded {
    margin-left: 40px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.sidebar-small {
    font-size: 0.85rem;
    /* ou 0.8rem selon la lisibilité souhaitée */
}

.sidebar-small .nav-link,
.sidebar-small .lead,
.sidebar-small ul li,
.sidebar-small span,
.sidebar-small a {
    font-size: inherit;
    font-size: 12px;
}

/* Media query pour les écrans de moins de 768px de large (tablettes et plus petits) */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}

input[type="date"] {
    background-color: #623fa2;
    padding: 8px;
    margin-left: 10px;
    margin-bottom: 8px;
    top: 50%;
    left: 50%;
    color: #ffffff;
    font-size: 15px;
    border: none;
    outline: none;
    border-radius: 5px;
}

/* Styles de base pour la pagination */
.pagination {
    display: flex;
    align-items: center;
    /* Assure que tous les éléments sont alignés au centre verticalement */
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.pagination span {
    margin: 0 2px;
    /* Espacement entre les éléments */
    display: flex;
    align-items: center;
    /* Alignement vertical pour les spans */
}

.pagination a {
    padding: 5px 10px;
    /* Padding pour les liens, ajustez selon les besoins */
    border: 1px solid #ddd;
    /* Bordure légère pour les liens */
    color: #007bff;
    /* Couleur Bootstrap par défaut pour les liens */
    text-decoration: none;
    /* Suppression du soulignement */
    background-color: #f8f9fa;
    /* Fond clair pour les liens */
    display: flex;
    /* Assure que le lien s'étend correctement */
    align-items: center;
    /* Alignement vertical */
    height: 100%;
    /* Hauteur complète pour aligner avec les autres éléments */
    box-sizing: border-box;
    /* Assure que padding et border sont inclus dans la hauteur */
    transition: background-color 0.3s ease;
    /* Transition pour l'interaction au survol */
}

.pagination a:hover {
    background-color: #e9ecef;
    /* Changement de fond au survol */
    border-color: #ccc;
    /* Assombrissement de la bordure au survol */
}

/* Style pour l'élément actif */
.pagination .current {
    padding: 5px 10px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: white;
    /* Texte blanc pour le numéro de page actuel */
    display: flex;
    align-items: center;
}

/* Styles pour désactiver les liens */
.pagination .disabled a {
    color: #6c757d;
    /* Gris pour les liens désactivés */
    pointer-events: none;
    /* Désactivation des interactions */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

.pagination .disabled a:hover {
    background-color: #f8f9fa;
    /* Aucun changement au survol pour les liens désactivés */
}

.sticky-top {
    position: sticky;
    top: 0;
    /* Ajustez cette valeur si nécessaire */
    z-index: 1000;
    /* Ceci est optionnel mais utile si d'autres éléments défilent sous cette div */
    background: #f0f4f8;
    /* Pour assurer que le texte reste lisible sur un fond potentiellement défilant */
}

/* .table-container {
    max-height: 500px;
    overflow-y: auto;
} */

.table-container {
    max-height: 570px;
    overflow-y: auto;
}

.table-container-accueil {
    max-height: 700px;
    overflow-y: auto;
}

/* Style de base pour tous les en-têtes */
thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Première colonne (checkbox) */
th.sticky-col:first-child,
td.sticky-col:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

/* Pour l'en-tête de la première colonne - double sticky */
thead th.sticky-col:first-child {
    z-index: 4;
    /* Plus haut pour le coin qui doit rester au-dessus de tout */
    top: 0;
}

/* Deuxième colonne (N°) */
th.sticky-col:nth-child(2),
td.sticky-col:nth-child(2) {
    position: sticky;
    left: 40px;
    z-index: 2;
}

/* Pour l'en-tête de la deuxième colonne - double sticky */
thead th.sticky-col:nth-child(2) {
    z-index: 4;
    top: 0;
}

/* Troisième colonne (Dossier pour ROLE_ENTREPRISE) */
th.sticky-col-2,
td.sticky-col-2 {
    position: sticky;
    left: 90px;
    z-index: 2;
}

/* Troisième colonne (Dossier pour autre que ROLE_ENTREPRISE) */
th.sticky-col-3,
td.sticky-col-3 {
    position: sticky;
    left: 52px;
    z-index: 2;
}

/* Troisième colonne (Dossier pour ROLE_ENTREPRISE) AJAX */
th.sticky-col-4,
td.sticky-col-4 {
    position: sticky;
    left: 85px;
    z-index: 2;
}

/* Troisième colonne (Dossier pour autre que ROLE_ENTREPRISE) AJAX */
th.sticky-col-5,
td.sticky-col-5 {
    position: sticky;
    left: 45px;
    z-index: 2;
}

/* Pour les en-têtes qui sont à la fois sticky horizontalement et verticalement */
thead th.sticky-col,
thead th.sticky-col-2,
thead th.sticky-col-3 {
    position: sticky;
    top: 0;
    z-index: 4;
}

thead th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    /* Ensure the header stays above the table content */
}

#scrollingHeader.sticky-top {
    top: 0;
    z-index: 1020;
    /* Au-dessus de la plupart des autres éléments */
}

/* Style de base pour les badges */
.badge {
    padding: 0.5em 0.75em;
    color: white;
    font-size: 0.9em;
    border-radius: 0.2rem;
    text-align: center;
    display: inline-block;
}


.wide-cell {
    width: 80px;
}


.select2-container--default .select2-selection--single {
    background-color: #f7f8fa;
    /* couleur de fond */
    border: 1px solid #d1d3e2;
    /* bordure */
    border-radius: 20px;
    /* arrondir les angles */
    height: 40px;
    /* hauteur de l'input */
}

#select2-dossier_expert_comptable-container,
#select2-dossier_chef_de_groupe-container,
#select2-dossier_correspondant-container,
#select2-dossier_collaborateur-container,
#select2-dossier_collab_collaborateur_existant-container,
#select2-dossier_collab_collaborateur-container,
#select2-dossier_expert_comptable_expert_comptable_existant-container,
#select2-dossier_expert_comptable_expert_comptable-container,
#select2-dossier_chef_de_groupe_chef_de_groupe_existant-container,
#select2-dossier_chef_de_groupe_chef_de_groupe-container,
#select2-dossier_corr_correspondant_existant-container,
#select2-dossier_corr_correspondant-container,
#select2-dossier_agence_agence_existante-container,
#select2-dossier_agence_agence-container,
#select2-utilisateur_agence_agence_existante-container,
#select2-utilisateur_agence_agence-container,
#select2-mission_juridique_type_new_dossier-container,
#select2-mission_juridique_type_edit_dossier-container,
#select2-missionscomptables_new_dossier-container,
#select2-missionscomptables_edit_dossier-container,
#select2-mission_juridique_type_new_responsable-container,
#select2-mission_juridique_type_edit_responsable-container,
#select2-mission_sociale_type_new_dossier-container,
#select2-mission_sociale_type_new_responsable-container,
#select2-mission_sociale_type_edit_dossier-container,
#select2-mission_sociale_type_edit_responsable-container,
#select2-mission_ponctuelle_type_new_dossier-container,
#select2-mission_ponctuelle_type_new_responsable-container,
#select2-mission_ponctuelle_type_edit_dossier-container,
#select2-mission_ponctuelle_type_edit_responsable-container,
#select2-dossier_filtre_comptable_expert_comptable-container,
#select2-dossier_filtre_comptable_chef_de_groupe-container,
#select2-dossier_filtre_comptable_collaborateur-container,
#select2-dossier_filtre_comptable_agence-container,
#select2-dossier_filtre_non_comptable_agence-container,
#select2-dossier_filtre_non_comptable_chef_de_groupe-container,
#select2-dossier_filtre_non_comptable_responsable-container,
#select2-dossier_filtre_non_comptable_expert_comptable-container,
#select2-dossier_filtre_non_comptable_collaborateur-container,
#select2-dossier_filtre_export_agence-container,
#select2-dossier_filtre_export_chef_de_groupe-container,
#select2-dossier_filtre_export_expert_comptable-container,
#select2-dossier_filtre_export_collaborateur-container,
#select2-dossier_filtre_agence-container,
#select2-dossier_filtre_chef_de_groupe-container,
#select2-dossier_filtre_expert_comptable-container,
#select2-dossier_filtre_collaborateur-container,
#select2-utilisateur_filtre_export_agence-container,
#select2-mission_juridique_generate_dossier-container,
#select2-mission_ponctuelle_generate_dossier-container,
#select2-mission_sociale_generate_dossier-container,
#select2-missionscomptables_generate_dossier-container,
.select2-selection__rendered {
    padding-top: 5px;
    padding-left: 10px;
}

.select2-selection--single {
    border-radius: 5px !important;
}

.choix-undefined {
    background-color: gray;
    color: white;
}

.choix-ok {
    background-color: green;
    color: white;
}

.choix-avertissement {
    background-color: orange;
    color: white;
}

.choix-depassement {
    background-color: red;
    color: white;
}

.invalid-feedback {
    color: red;
}

.badge-current-year {
    background-color: #e6f2f3;
    /* vert/bleu très doux */
    color: #1a5e67;
    /* ton vert actuel, en texte */
    border: 1px solid #b7d9de;
    font-weight: 500;
}

.badge-previous-year {
    background-color: #f7f2e6;
    /* beige doux */
    color: #7a6a2f;
    border: 1px solid #e2d6a6;
    font-weight: 500;
}

.badge-next-year {
    background-color: #eef7f9;
    /* bleu pastel */
    color: #3a7f8a;
    border: 1px solid #cfe6ea;
    font-weight: 500;
}

.progress-low {
    background-color: #fbeaea;
    color: #8a2d2d;
}

.progress-low-mid {
    background-color: #fdf0f0;
    color: #a84545;
}

.progress-mid {
    background-color: #fff4e0;
    color: #8a5a1f;
}

.progress-high-mid {
    background-color: #eef7f9;
    color: #3a7f8a;
}

.progress-high {
    background-color: #9cc8b0;
    color: #2f7d5a;
}

@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto;
    }

    .table th,
    .table td {
        white-space: nowrap;
    }
}

.btn-missions-comptables {
    background-color: #1abc9c;
    /* Couleur verte */
    border-color: #149c81;
    color: white;
}

.btn-missions-comptables:hover {
    background-color: #11565f;
    /* Couleur verte foncée */
    border-color: #0d5849;
    color: white;
}

.bg-documentation {
    background-color: #1abc9c;
}

.text-documentation {
    color: #1abc9c;
}

.btn-missions-juridiques {
    background-color: #007bff;
    /* Couleur bleue */
    border-color: #007bff;
    color: white;
}

.btn-missions-juridiques:hover {
    background-color: #0056b3;
    /* Couleur bleue foncée */
    border-color: #004085;
    color: white;
}

.btn-missions-sociales {
    background-color: #ffc107;
    /* Couleur jaune */
    border-color: #ffc107;
    color: black;
}

.btn-missions-sociales:hover {
    background-color: #e0a800;
    /* Couleur jaune foncée */
    border-color: #d39e00;
    color: black;
}

.btn-missions-sociales-recurrentes {
    background-color: #bc4d1a;
    /* Couleur jaune */
    border-color: #bc4d1a;
    color: black;
}

.btn-missions-sociales-recurrentes:hover {
    background-color: #9c3f15;
    /* Couleur jaune foncée */
    border-color: #9b4015;
    color: black;
}

.btn-missions-ponctuelles {
    background-color: #760aea;
    /* Couleur jaune */
    border-color: #5204a6;
    color: black;
}

.btn-missions-ponctuelles:hover {
    background-color: #6108bf;
    /* Couleur jaune foncée */
    border-color: #5107a0;
    color: black;
}

.btn-missions-fiscalites-personnelles {
    background-color: #0a8997;
    /* Couleur jaune */
    border-color: #096670;
    color: black;
}

.btn-missions-fiscalites-personnelles:hover {
    background-color: #07646f;
    /* Couleur jaune foncée */
    border-color: #096670;
    color: black;
}



.titre-missions-sociales {
    color: #e0a800;
}

.bg-titre-missions-sociales {
    background-color: #e0a800;
    color: #fff;
    border-radius: 0.5rem;
}

.bg-titre-missions-ponctuelles {
    background-color: #760aea;
    color: #fff;
    border-radius: 0.5rem;
}

.bg-titre-missions-fiscalites-personnelles {
    background-color: #0a8997;
    color: #fff;
    border-radius: 0.5rem;
}


.titre-missions-ponctuelles {
    color: #760aea;
}

.titre-missions-ponctuelles {
    color: #760aea;
}

.titre-missions-fiscalites-personnelles {
    color: #0a8997;
}

.titre-missions-comptables {
    color: #1abc9c;
}

.titre-missions-sociales-recurrentes {
    color: #bc4d1a;
}

.bg-titre-missions-comptables {
    background-color: #218838;
    color: #fff;
    border-radius: 0.5rem;
}

.titre-missions-juridiques {
    color: #007bff;
}

.bg-titre-missions-juridiques {
    background-color: #007bff;
    color: #fff;
    border-radius: 0.5rem;
}

.table-rounded {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.0rem;
}

.table-rounded th,
.table-rounded td {
    border-left: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
}

.table-rounded th:first-child,
.table-rounded td:first-child {
    border-left: none;
}

.table-rounded th:first-child {
    border-top-left-radius: 0.0rem;
}

.table-rounded th:last-child {
    border-top-right-radius: 0.0rem;
}

.table-rounded td:first-child {
    border-bottom-left-radius: 0.0rem;
}

.table-rounded td:last-child {
    border-bottom-right-radius: 0.0rem;
}

.table-rounded-small {
    border-collapse: separate;
    border-spacing: 0;
    border: 0px solid #dee2e6;
    border-radius: 0rem;
}

.table-rounded-small th,
.table-rounded-small td {
    border-left: 0px solid #dee2e6;
    border-top: 0px solid #dee2e6;
}

.small-text {
    font-size: 0.875em;
    /* Cette taille de police correspond généralement à celle des paragraphes */
}

#scrollToTopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 40px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    font-size: 18px;
    /* Increase font size */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: #0d6efd;
    /* Set a background color */
    color: white;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 10px;
    /* Rounded corners */
}

#scrollToTopBtn:hover {
    background-color: #555;
    /* Add a dark-grey background on hover */
}

/* body.login-page {
    background-image: url('/images/background_login_passxp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-attachment: fixed;
} */

/* .login-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

body.login-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.left-side {
    display: none;
    /* Hide on mobile */
}

.right-side {
    background-color: #f8f9fa;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.login-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    /* Limit max width for better readability on larger screens */
}

@media (min-width: 992px) {
    body.login-page {
        flex-direction: row;
    }

    .left-side {
        display: block;
        /* Show on larger screens */
        background-image: url('/images/background_login_passxp_3.jpg');
        /* Change to your image path */
        background-size: cover;
        background-position: center;
        flex: 1;
        position: relative;
    }

    .app-name {
        position: absolute;
        top: 20px;
        left: 20px;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .app-name-mobile {
        display: none;
        /* Hide on larger screens */
    }

    .right-side {
        flex: 0 0 400px;
        /* Fixed width for the sidebar on larger screens */
    }
}

.bg-mobile-title {
    background-color: #36A793;
}

.voyant {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.voyant-vert {
    background-color: green;
}

.voyant-gris {
    background-color: gray;
}

.bg-txt-rose {
    color: pink;
}

.bg-txt-marron {
    color: rgb(211, 126, 29);
    padding-left: 5px;
}

.bg-txt-violet {
    color: rgb(168, 29, 211);
    padding-left: 5px;
}

.bg-secondary {
    background-color: #f1f3f5 !important;
    color: #6c757d !important;
}

.bg-txt-yellow {
    color: rgb(210, 210, 13);
}

.bg-txt-orange {
    color: orange;
}

.bg-rose {
    background-color: #c99bb0;
    color: #8a3a5a;
}

.bg-magenta {
    background-color: rgb(212, 28, 160);
}

.bg-yellow {
    background-color: #dbdb9a;
    color: #8a6a1f;
}

.bg-orange {
    background-color: #e4af7b;
    color: #8a4f1f;
}

.bg-success {
    background-color: #85bfa0 !important;
    color: #2f7d5a !important;
}

#utilisateur_filtre_export_roles>label:nth-child(2),
#utilisateur_filtre_export_roles>label:nth-child(4),
#utilisateur_filtre_export_roles>label:nth-child(6),
#utilisateur_filtre_export_roles>label:nth-child(8),
#utilisateur_filtre_export_roles>label:nth-child(10),
#utilisateur_filtre_export_roles>label:nth-child(12),
#utilisateur_filtre_export_roles>label:nth-child(14),
#utilisateur_filtre_export_roles>label:nth-child(16) {
    padding-right: 20px;
}

#utilisateur_filtre_export_roles_0,
#utilisateur_filtre_export_roles_1,
#utilisateur_filtre_export_roles_2,
#utilisateur_filtre_export_roles_3,
#utilisateur_filtre_export_roles_4,
#utilisateur_filtre_export_roles_5,
#utilisateur_filtre_export_roles_6,
#utilisateur_filtre_export_roles_7,
#utilisateur_filtre_export_roles_8 {
    margin-right: 3px;
}

/* Fallbacks first (in case color-mix isn't supported) */
.btn-active {
    background-color: var(--bs-primary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

/* Modern browsers: auto-lighten/auto-darken from --bs-primary */
@supports (color: color-mix(in srgb, white, black)) {
    .btn-active {
        /* ~12% darker than primary */
        background-color: color-mix(in srgb, var(--bs-primary) 88%, black 12%);
        color: #fff;
        border-color: color-mix(in srgb, var(--bs-primary) 88%, black 12%);
    }

    .btn-secondary:hover {
        /* ~10% lighter than primary */
        background-color: color-mix(in srgb, var(--bs-primary) 90%, white 10%);
        color: #fff;
        border-color: color-mix(in srgb, var(--bs-primary) 90%, white 10%);
    }
}


.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

.custom-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-radius: 5px;
}

.custom-modal-body {
    padding: 10px 0;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.close-btn,
.btn-close-custom {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2em;
    border-radius: 5px;
}

.close-btn:hover,
.btn-close-custom:hover {
    color: #36A793;
}

.margin-paragraph-documentation {
    margin-right: 400px;
}



/* Bouton subtil basé sur ta var */
.btn.bg-primary-subtle {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: black;
    transition: background-color .3s ease, color .3s ease;
}

/* Hover : léger éclaircissement sans propriété supplémentaire (color-mix) */
.btn.bg-primary-subtle:hover {
    background-color: color-mix(in srgb, var(--bs-primary-bg-subtle), white 10%) !important;
    color: black !important;
}

.underline-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.underline-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    /* 🔼 Remonte la barre vers le texte */
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: #7f8081;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.underline-link:hover::after {
    background-color: #434444;
}

.underline-dotted {
    border-bottom: 1px dotted currentColor;
    padding-bottom: 1px;
}

a:hover .underline-dotted {
    border-bottom-style: solid;
}

.label-centered {
    display: block;
    text-align: center;
}

/* .padding-entreprise-accueil {
    padding-top: 2px;
} */

.offcanvas-body {
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */

    /* Webkit */
}

.offcanvas-body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.btn-hamb-horizontal {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-hamb-horizontal:hover {
    background-color: #11565f;
    /* Couleur verte foncée */
    border-color: #11565f;
    color: white;
}

.table-custom-hover tbody tr:hover {
    background-color: #11565f;
}



.table-light {
    --bs-table-bg: var(--table-light-bg, #ddeded);
    --bs-table-color: var(--table-light-color, #000);
}

.table-info {
    --bs-table-bg: var(--table-info-bg, #b7d2d2);
    --bs-table-color: var(--table-info-color, #000);
}

.link-accueil {
    color: rgb(55, 56, 55);
}

.link-accueil:hover {
    color: rgb(28, 28, 28);
    text-decoration: underline !important;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    gap: 4px;
    margin: 10px 0;
    font-size: 0.8rem;
}

.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    /* border-radius: 4px; */
    /* border: 1px solid #ddd; */
    /* background-color: #f8f9fa; */
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination span:hover {
    background-color: #e9ecef;
}

.pagination .current {
    background-color: #0d6efd;
    color: #fff;
    font-weight: bold;
    border-color: #0d6efd;
    cursor: default;
}

.pagination .disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f1f1f1;
}

.pagination .ellipsis {
    cursor: default;
    background-color: transparent;
    border: none;
}

.text-small-12 {
    font-size: 12px;
}

.text-small-13 {
    font-size: 13px;
}

.th-override {
    background-color: #5E8575 !important;
    /* Rouge clair transparent */
}

/* Pour réduire la taille des input ec-c cdg etc... */
.select2-container--default .select2-selection--single {
    height: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 18px;
}

.btn-outline-light:hover {
    background-color: #11565F;
    /* Couleur de fond au survol */
    color: #ffffff;
    /* Couleur du texte au survol */
    border-color: #11565F;
    /* Couleur de la bordure au survol */
    transition: all 0.3s ease;
    /* Animation douce */
}

/* Bouton année (non sélectionné) */
.year-button.btn-primary-subtle {
    background-color: var(--bg-primary-subtle, #c0cfe4);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.75);
}

/* Hover/focus : un peu plus affirmé mais discret */
.year-button.btn-primary-subtle:hover,
.year-button.btn-primary-subtle:focus {
    background-color: var(--bg-primary-subtle-hover, #b4c6de);
    border-color: rgba(0, 0, 0, 0.18);
    color: rgba(0, 0, 0, 0.85);
}

/* Bouton sélectionné (si tu veux forcer ton primaire custom partout) */
.year-button.btn-primary {
    background-color: var(--btn-primary, #1095a6);
    border-color: var(--btn-primary, #1095a6);
}

.campagne-action-card {
    transition: all 0.2s ease-in-out;
}

.sticky-header-campagne {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.campagne-action-card {
    background: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.campagne-action-card:hover {
    background: #f8f9fa;
}

.campagne-action-card[data-done="1"] {
    background: #edfbef;
    border-color: #cfe8d2;
}

.campagne-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    max-height: 72vh;
    /* ajuste : 60vh, 65vh, 70vh, 75vh... */
}

.campagne-table thead th {
    position: sticky;
    /* background: white; */
}

.campagne-table thead tr:first-child th {
    top: 0;
    z-index: 7;
}

.campagne-table thead tr:nth-child(2) th {
    top: 32px;
    z-index: 6;
}

.campagne-table td:nth-child(7),
.campagne-table th:nth-child(7) {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.campagne-table {
    width: max-content !important;
    min-width: max-content !important;
    table-layout: auto !important;
    border-collapse: separate;
    border-spacing: 0;
}

.campagne-table th,
.campagne-table td {
    vertical-align: top;
    white-space: normal;
    box-sizing: border-box;
}

.campagne-table .sticky-col-1 {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.campagne-table .sticky-col-2 {
    position: sticky;
    left: 70px;
    z-index: 4;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

/* Les deux colonnes figées doivent rester au-dessus */
.campagne-table thead .sticky-col-1,
.campagne-table thead .sticky-col-2 {
    z-index: 8;
}

/* Optionnel : ligne feedback un peu plus compacte */
/* .feedback-row td {
    padding-top: 0.15rem !important;
    padding-bottom: 0.35rem !important;
} */

.campagne-table .feedback-row,
.campagne-table .feedback-row td {
    height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 0 !important;
}

.campagne-table .feedback-row [data-campagne-actions-target="feedback"] {
    display: none;
}

.campagne-table .col-agence {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.campagne-table .col-statut {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.campagne-table .col-progression {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.campagne-table .col-traitepar {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

.col-agence,
.col-traitepar {
    vertical-align: top;
}

.col-agence .truncate-2,
.col-traitepar .truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campagne-table .action-col {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
}

.entreprise-name {
    display: inline-block;
    max-width: 200px;
    cursor: help;
}

.campagne-action-card.compact {
    padding: 0.75rem 0.9rem;
    border-radius: 0.6rem;
    transition: all 0.15s ease;
}

.campagne-action-card.compact:hover {
    transform: translateY(-1px);
}

.campagne-fields {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.campagne-field-block {
    margin-bottom: 0.55rem;
}

.campagne-field-label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    opacity: 0.7;
}

.campagne-field-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campagne-field-date label {
    font-size: 0.7rem;
    opacity: 0.7;
}

.campagne-field-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* réduit encore un peu */
    margin-bottom: 4px;
    /* limite l'espace entre champs */
}

.campagne-field-date input[type="date"].form-control {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    font-size: 0.75rem !important;
    padding: 1px 3px !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
    /* important */
}

.truncate-1 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncate-2 {
    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.action-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
}

.action-label-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.badge-truncate {
    display: inline-block;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.col-statut .badge-truncate {
    max-width: 85px;
}

[data-collection-item].campaign-action-item {
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.9rem;
    background: #fff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.action-libelle-input {
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    padding-left: 0;
}

.action-libelle-input:focus {
    border-bottom-color: #0d6efd;
    box-shadow: none;
}

.form-help-light {
    font-size: 0.78rem;
    /* plus petit */
    color: #6c757d;
    /* gris Bootstrap */
    opacity: 0.85;
    /* légèrement atténué */
    line-height: 1.3;
}

.campagne-responsables-inline {
    max-width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;

    /* évite de bloquer les boutons derrière */
    pointer-events: none;
}

.flash-item {
    pointer-events: auto;
}

#sidebarOffcanvas {
    overflow: visible !important;
}

#sidebarOffcanvas .offcanvas-body {
    overflow: hidden !important;
    height: 100vh;
}

#sidebarOffcanvas .collapse {
    overflow: visible !important;
}

.sidebar-top-fixed {
    flex-shrink: 0;
    padding: 1rem 0.75rem 0 0.75rem;
}

.sidebar-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.75rem 0.5rem 0.75rem;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-scroll-area::-webkit-scrollbar {
    display: none;
}

.sidebar-bottom {
    flex-shrink: 0;
    padding: 0 0.75rem 0.5rem 0.75rem;
}

.sidebar-flyout-item {
    position: relative;
}

.sidebar-flyout-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 180px;
    padding: 0.45rem;
    background: linear-gradient(180deg, var(--sidebar-menu-1), var(--sidebar-menu-2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3000;
    margin-left: -4px;
}

.sidebar-flyout-item:hover>.sidebar-flyout-menu,
.sidebar-flyout-menu:hover {
    display: block;
}

.sidebar-flyout-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--sidebar-menu-text);
    text-decoration: none;
    border-radius: 0.35rem;
}

.sidebar-flyout-link:hover {
    background: var(--sidebar-menu-hover-bg);
    color: #fff;
}

.contentieux-clients-table th,
.contentieux-clients-table td {
    padding: 1rem;
    vertical-align: top;
}

.contentieux-clients-table thead th {
    white-space: nowrap;
}

.contentieux-clients-table td:first-child {
    min-width: 240px;
}

.contentieux-clients-table .form-control,
.contentieux-clients-table .form-select {
    min-width: 180px;
}

.contentieux-clients-table .contentieux-montant-group {
    width: 120px;
    min-width: 120px;
    flex-wrap: nowrap;
}

.contentieux-clients-table .contentieux-montant-group .form-control {
    min-width: 110px;
    width: 110px;
    flex: 0 0 70px;
}

.contentieux-clients-table .contentieux-montant-group .input-group-text {
    flex: 0 0 auto;
}

.campagne-fields .input-group {
    flex-wrap: nowrap;
}

.campagne-fields .input-group-text {
    white-space: nowrap;
}

.campagne-fields .input-group {
    max-width: 130px;
}

.analytics-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease-in-out;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.analytics-action-warning {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}

.analytics-action-warning:hover {
    color: #78350f;
    background: #ffedd5;
    transform: translateY(-1px);
}

.analytics-action-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.analytics-action-danger:hover {
    color: #7f1d1d;
    background: #fee2e2;
    transform: translateY(-1px);
}

.analytics-cause-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .55rem;
    margin: 0 .25rem .25rem 0;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.15;
    border: 1px solid transparent;
    white-space: normal;
}

.analytics-cause-critical {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.analytics-cause-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.analytics-cause-info {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.analytics-cause-ok {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.analytics-ranking-card {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.analytics-ranking-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #e2e8f0;
    padding: .75rem;
}

.analytics-ranking-table tbody td {
    padding: .75rem;
    vertical-align: middle;
}

.analytics-ranking-table th[data-action] {
    cursor: pointer;
    user-select: none;
}

.analytics-ranking-table th[data-action]:hover {
    color: #0d6efd !important;
}

.analytics-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .8rem;
    font-weight: 700;
}

.analytics-score {
    display: inline-flex;
    align-items: center;
    padding: .28rem .55rem;
    border-radius: 5px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .8rem;
    font-weight: 700;
}

.analytics-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .28rem .55rem;
    border-radius: 5px;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid transparent;
    background: transparent;
}

.analytics-pill-neutral {
    color: #334155;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.analytics-pill-info {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.analytics-pill-muted {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.analytics-pill-ok {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.analytics-status-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .55rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}

/* .analytics-status-badge {
    cursor: pointer;
} */

.analytics-status-badge:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.analytics-status-ok {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.analytics-status-late {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.analytics-status-critical {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.analytics-action-info {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.analytics-ellipsis {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-action-info:hover {
    color: #1e40af;
    background: #dbeafe;
    transform: translateY(-1px);
}

.agency-pie-placeholder {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.agency-pie-placeholder::after {
    content: '';
    position: absolute;
    inset: 35%;
    background: white;
    border-radius: 50%;
}

.agency-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.analytics-fixed-header {
    position: fixed;
    top: 0px;
    /* adapter selon ta navbar */
    left: 220px;
    /* largeur sidebar */
    right: 0;
    z-index: 1030;

    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);

    padding: 1rem 1.5rem;

    border-bottom: 1px solid #e5e7eb;

    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.analytics-fixed-spacer {
    height: 95px;
}

.analytics-menu-link {
    display: flex;
    align-items: center;
    padding: .65rem .75rem;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.analytics-menu-link:hover {
    background: var(--bs-gray-100);
    color: inherit;
}

.analytics-menu-link::after {
    display: none;
}

@media (max-width: 992px) {
    .analytics-fixed-header {
        left: 0;
        top: 60px;
    }
}



.analytics-remaining-wrapper {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        height 0.3s ease,
        opacity 0.25s ease;
}


/* =========================================
   PASSXP - LOGIN
   Palette fixe inspirée de l'image de fond
   ========================================= */

body.login-page {
    --login-navy: #173F70;
    --login-primary: #2464A0;
    --login-hover: #174B7B;
    --login-light: #EAF2FA;
    --login-text: #263B53;
    --login-border: #CBD8E6;

    background: var(--login-light) !important;
    color: var(--login-text);
    color-scheme: light;
}

/* Image conservée sur le panneau gauche */
body.login-page .left-side {
    background-color: #DCEAF7;
}

/* Nom de l'application */
body.login-page .app-name {
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(15, 45, 80, .65);
}

/* Bandeau mobile */
body.login-page .bg-mobile-title {
    background: #173F70 !important;
    color: #FFFFFF !important;
}

/* Panneau de droite */
body.login-page .right-side {
    background: #EAF2FA !important;
    color: #263B53 !important;
}

/* Carte de connexion */
body.login-page .login-container {
    background: #FFFFFF !important;
    color: #263B53 !important;
    border: 1px solid #D8E4F0;
    box-shadow: 0 12px 35px rgba(23, 63, 112, .12);
}

/* Titres */
body.login-page .login-container h2 {
    color: #173F70 !important;
    font-weight: 700;
}

/* Libellés */
body.login-page .login-container label {
    color: #263B53 !important;
    font-weight: 600;
}

/* Champs */
body.login-page .login-container .form-control {
    background: #FFFFFF !important;
    color: #263B53 !important;
    border: 1px solid #CBD8E6 !important;
    box-shadow: none !important;
}

body.login-page .login-container .form-control:focus {
    border-color: #2464A0 !important;
    box-shadow: 0 0 0 3px rgba(36, 100, 160, .16) !important;
}

/* Icône afficher le mot de passe */
body.login-page .login-container .input-group-text {
    background: #F0F5FA !important;
    color: #173F70 !important;
    border-color: #CBD8E6 !important;
}

/* Bouton de connexion */
body.login-page .login-container .btn-primary {
    --bs-btn-bg: #2464A0;
    --bs-btn-border-color: #2464A0;
    --bs-btn-color: #FFFFFF;

    --bs-btn-hover-bg: #174B7B;
    --bs-btn-hover-border-color: #174B7B;
    --bs-btn-hover-color: #FFFFFF;

    --bs-btn-active-bg: #173F70;
    --bs-btn-active-border-color: #173F70;
    --bs-btn-active-color: #FFFFFF;

    background: #2464A0 !important;
    border-color: #2464A0 !important;
    color: #FFFFFF !important;

    font-weight: 600;
    transition: background-color .2s ease;
}

body.login-page .login-container .btn-primary:hover,
body.login-page .login-container .btn-primary:focus-visible {
    background: #174B7B !important;
    border-color: #174B7B !important;
    color: #FFFFFF !important;
}

body.login-page .login-container .btn-primary:active {
    background: #173F70 !important;
    border-color: #173F70 !important;
}

/* Boutons secondaires */
body.login-page .login-container .btn-secondary {
    background: #EAF2FA !important;
    border-color: #CBD8E6 !important;
    color: #173F70 !important;
}

body.login-page .login-container .btn-secondary:hover {
    background: #D8E7F5 !important;
    border-color: #A9C5DF !important;
    color: #173F70 !important;
}

/* Liens */
body.login-page .login-container a:not(.btn) {
    color: #2464A0 !important;
}

body.login-page .login-container a:not(.btn):hover {
    color: #173F70 !important;
}

/* QR code */
body.login-page .login-container small {
    color: #52677D !important;
}

/* Accueil : soldes des impayés */

.impaye-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    width: 110px;
    height: 24px;
    flex-shrink: 0;
    padding: 2px 6px;

    font-size: 11px;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Solde positif : impayé à mettre en avant */
.impaye-positif {
    background-color: #b83a3a;
    color: #ffffff;
}

/* Soldes négatif et nul : affichage neutre */
.impaye-negatif a.link-light,
.impaye-zero a.link-light {
    color: #495057 !important;
    text-decoration-color: currentColor !important;
}

.impaye-negatif a.link-light:hover,
.impaye-zero a.link-light:hover {
    color: #212529 !important;
}

.impaye-badge {
    transition: filter .15s ease, background-color .15s ease;
}

.impaye-badge:hover {
    filter: brightness(1.13);
}

/* Effet visible également sur les soldes sans fond coloré */
.impaye-badge.impaye-negatif:hover,
.impaye-badge.impaye-zero:hover {
    background-color: #e9ecef;
}

.border-warning-dark {
    border-color: #c58a00 !important;
}

.text-warning-dark {
    color: #a66f00 !important;
}

/* Boutons du thème cabinet : contours, sans aplat au repos.
   Portée limitée aux pages thémées ; la connexion conserve son propre style.
   Les !important neutralisent bg-primary-subtle et les anciens text-white.
   Aucun changement des tailles de texte, des tableaux ou des autres variantes.
*/
body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle) {
    --passxp-button-accent: var(--bs-primary, #1095a6);
    --passxp-button-ink: var(--passxp-button-accent);
    --passxp-button-border: var(--passxp-button-accent);
    --passxp-button-hover: transparent;
    --passxp-button-active: transparent;
    --bs-btn-color: var(--passxp-button-ink);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--passxp-button-border);
    --bs-btn-hover-color: var(--passxp-button-ink);
    --bs-btn-hover-bg: var(--passxp-button-hover);
    --bs-btn-hover-border-color: var(--passxp-button-border);
    --bs-btn-active-color: var(--passxp-button-ink);
    --bs-btn-active-bg: var(--passxp-button-active);
    --bs-btn-active-border-color: var(--passxp-button-border);
    --bs-btn-disabled-color: var(--passxp-button-ink);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--passxp-button-border);
    background-color: transparent !important;
    background-image: none;
    color: var(--passxp-button-ink) !important;
    border: 1px solid var(--passxp-button-border);
    border-radius: .3rem;
    font-weight: 500;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body[data-theme-primary-value]:not(.login-page) .btn:is(.bg-primary-subtle, .btn-primary-subtle) {
    --passxp-button-accent: var(--bs-primary-bg-subtle, #c0cfe4);
    /* Repli lisible pour les anciens navigateurs et les couleurs pastel. */
    --passxp-button-ink: #334155;
}

@supports (color: color-mix(in srgb, white, black)) {
    body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle) {
        --passxp-button-ink: color-mix(in srgb, var(--passxp-button-accent) 60%, #17212b 40%);
        --passxp-button-border: color-mix(in srgb, var(--passxp-button-accent) 80%, #17212b 20%);
        --passxp-button-hover: color-mix(in srgb, var(--passxp-button-accent) 9%, transparent);
        --passxp-button-active: color-mix(in srgb, var(--passxp-button-accent) 16%, transparent);
    }
}

body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle):hover:not(:disabled):not(.disabled) {
    background-color: var(--passxp-button-hover) !important;
    color: var(--passxp-button-ink) !important;
    border-color: var(--passxp-button-ink);
}

body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle):focus-visible {
    background-color: var(--passxp-button-hover) !important;
    outline: 2px solid var(--passxp-button-ink);
    outline-offset: 3px;
    box-shadow: none;
}

body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle):is(:active, .active, .show, [aria-pressed="true"]):not(:disabled):not(.disabled),
body[data-theme-primary-value]:not(.login-page) .btn-check:checked+.btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle),
body[data-theme-primary-value]:not(.login-page) .year-button.btn-primary {
    background-color: var(--passxp-button-active) !important;
    color: var(--passxp-button-ink) !important;
    border-color: var(--passxp-button-ink);
    box-shadow: inset 0 0 0 1px var(--passxp-button-ink);
}

body[data-theme-primary-value]:not(.login-page) .btn-check:focus-visible+.btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle) {
    outline: 2px solid var(--passxp-button-ink);
    outline-offset: 3px;
}

body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle):is(:disabled, .disabled) {
    background-color: transparent !important;
    box-shadow: none;
    opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
    body[data-theme-primary-value]:not(.login-page) .btn:is(.btn-primary, .btn-outline-primary, .bg-primary-subtle, .btn-primary-subtle) {
        transition: none;
    }
}

.dossier-missions {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(15 23 42 / 4%);
}

.dossier-missions-total {
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dossier-missions-group {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dossier-missions-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dossier-missions-heading h6 {
    font-size: 14px;
    line-height: 1.4;
    color: #334155;
}

.dossier-missions-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: var(--bs-primary, #1095a6);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
}

.dossier-missions-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 28px;
    height: 25px;
    padding: 0 7px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dossier-missions-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #334155;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.dossier-missions li+li {
    border-top: 1px solid #f1f5f9;
}

.dossier-missions-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dossier-missions-link>i {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 10px;
}

.dossier-missions-link:hover,
.dossier-missions-link:focus-visible {
    color: var(--bs-primary, #1095a6);
    background-color: #f1f5f9;
}

.dossier-missions-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.dossier-missions-link:hover>i {
    color: inherit;
}

.dossier-missions-empty {
    padding: 16px 14px;
    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   Fiche dossier - vue show
   ========================================================= */
.dossier-show-header {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(15 23 42 / 4%);
}

.dossier-show-header-icon,
.dossier-show-section-icon {
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bs-primary, #1095a6);
    background: color-mix(in srgb, var(--bs-primary, #1095a6) 9%, white);
    border: 1px solid color-mix(in srgb, var(--bs-primary, #1095a6) 20%, white);
}

.dossier-show-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-size: 18px;
}

.dossier-show-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.dossier-show-subtitle-separator {
    color: #cbd5e1;
}

.dossier-show-actions .btn,
.dossier-show-footer-actions .btn {
    min-height: 34px;
}

.dossier-show-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(15 23 42 / 4%);
}

.dossier-show-section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.dossier-show-section-title h2 {
    color: #1e293b;
    font-weight: 650;
}

.dossier-show-section-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 14px;
}

.dossier-show-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
}

.dossier-show-label {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.dossier-show-completion {
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.dossier-show-completion .progress {
    height: 7px;
    overflow: hidden;
    background: #eaf0f4;
    border-radius: 20px;
}

.dossier-show-completion .progress-bar {
    background: var(--bs-primary, #1095a6);
}

.dossier-show-completion-value {
    color: var(--bs-primary, #1095a6);
    font-size: 13px;
    font-weight: 700;
}

.dossier-show-contact-stack {
    display: grid;
    gap: 10px;
}

.dossier-show-contact-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}

.dossier-show-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #475569;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.min-w-0 {
    min-width: 0;
}

.dossier-show-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 9px;
}

.dossier-show-person-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--bs-primary, #1095a6);
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 50%;
}

.dossier-show-documents {
    display: grid;
    gap: 7px;
}

.dossier-show-document-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    transition: background-color .15s ease, border-color .15s ease;
}

.dossier-show-document-row:hover {
    background: #f8fafc;
    border-color: #dbe3ec;
}

.dossier-show-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 7px;
}

.dossier-show-document-name {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dossier-show-document-name:hover {
    color: var(--bs-primary, #1095a6);
}

.dossier-show-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 7px;
}

.dossier-show-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 112px;
    padding: 18px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    font-size: 13px;
    text-align: center;
}

.dossier-show-empty-compact {
    min-height: 76px;
}

.dossier-show-team-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 8px;
}

.dossier-show-team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #64748b;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
}

.dossier-show-dl {
    display: grid;
    gap: 0;
}

.dossier-show-dl>div {
    display: grid;
    grid-template-columns: minmax(130px, 42%) 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eef2f7;
}

.dossier-show-dl>div:last-child {
    border-bottom: 0;
}

.dossier-show-dl dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.dossier-show-dl dd {
    margin: 0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}

.dossier-show-dl-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.dossier-show-dl-two-cols>div {
    grid-template-columns: 1fr;
    gap: 3px;
}

.dossier-show-tax-card {
    height: 100%;
    padding: 12px 13px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 8px;
}

.dossier-show-tax-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.dossier-show-tax-title i {
    color: var(--bs-primary, #1095a6);
}

.dossier-show-tax-card>div:not(.dossier-show-tax-title) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 12px;
}

.dossier-show-tax-card>div:not(.dossier-show-tax-title) span {
    color: #64748b;
}

.dossier-show-tax-card>div:not(.dossier-show-tax-title) strong {
    color: #334155;
    font-weight: 600;
    text-align: right;
}

.dossier-show-tax-card-inline {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
    gap: 12px;
}

.dossier-show-tax-card-inline .dossier-show-tax-title {
    margin-bottom: 0;
}

.dossier-show-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
}

.dossier-show-status.is-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dossier-show-status.is-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.dossier-show-journal {
    max-height: 240px;
    overflow: auto;
    padding: 13px 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.65;
}

.dossier-show-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0 4px;
    border-top: 1px solid #dbe3ec;
}

@media (max-width: 767.98px) {
    .dossier-show-header {
        padding: 15px;
    }

    .dossier-show-dl-two-cols {
        grid-template-columns: 1fr;
    }

    .dossier-show-tax-card-inline {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .dossier-show-tax-card-inline .dossier-show-tax-title {
        margin-bottom: 6px;
    }

    .dossier-show-footer-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.btn-danger {
    --bs-btn-color: #a63d46;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #d9a0a5;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #a63d46;
    --bs-btn-hover-border-color: #a63d46;

    --bs-btn-focus-shadow-rgb: 166, 61, 70;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #8f3038;
    --bs-btn-active-border-color: #8f3038;

    --bs-btn-disabled-color: #b98a8e;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #dfc3c5;

    font-weight: 500;
    box-shadow: none;
}

.btn-warning {
    --bs-btn-color: #8a5a1f;
    --bs-btn-bg: #fffaf0;
    --bs-btn-border-color: #e4c27a;

    --bs-btn-hover-color: #5f3d12;
    --bs-btn-hover-bg: #f5e2b8;
    --bs-btn-hover-border-color: #d7ae56;

    --bs-btn-focus-shadow-rgb: 214, 174, 86;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a66d22;
    --bs-btn-active-border-color: #a66d22;

    --bs-btn-disabled-color: #aa8b5d;
    --bs-btn-disabled-bg: #fffaf0;
    --bs-btn-disabled-border-color: #e8d7b1;

    font-weight: 500;
    box-shadow: none;
}


.dossier-edit-form .form-label {
    margin-bottom: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: #495057;
}

.dossier-edit-form .form-control,
.dossier-edit-form .form-select,
.dossier-edit-form .select2-container--default .select2-selection--single {
    border-color: #dce3e8;
    background-color: #fff;
}

.dossier-edit-form .form-control:focus,
.dossier-edit-form .form-select:focus {
    border-color: color-mix(in srgb, var(--bs-primary) 55%, white 45%);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--bs-primary) 13%, transparent);
}

.dossier-edit-card {
    overflow: visible;
}

.dossier-edit-switch {
    padding: .65rem .85rem;
    border: 1px solid #dfe6eb;
    border-radius: .45rem;
    background: #f8fafb;
}

.dossier-edit-switch .form-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: auto;
}

.dossier-edit-switch .form-check-input {
    margin: 0;
}

.dossier-edit-tax-panel {
    padding: 1rem;
    border: 1px solid #e2e8ec;
    border-radius: .55rem;
    background: #fbfcfd;
}

.dossier-edit-tax-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-bottom: .8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e7ecef;
}

.dossier-edit-tax-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: .4rem;
    background: color-mix(in srgb, var(--bs-primary) 10%, white 90%);
    color: var(--bs-primary);
}

.dossier-edit-info {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .75rem .9rem;
    border: 1px solid #dbe5e9;
    border-radius: .45rem;
    background: #f7fafb;
    color: #5a6870;
    font-size: .84rem;
}

.dossier-edit-info i {
    margin-top: .12rem;
    color: var(--bs-primary);
}

.dossier-edit-setting,
.dossier-edit-date-card,
.dossier-edit-acd-card {
    padding: .9rem 1rem;
    border: 1px solid #e2e8ec;
    border-radius: .5rem;
    background: #fbfcfd;
}

.dossier-edit-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: #e5eaee;
}

.dossier-edit-subheading {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    font-weight: 700;
    color: #495057;
}

.dossier-edit-subheading i {
    color: var(--bs-primary);
}

.dossier-edit-meta {
    display: inline-flex;
    align-items: center;
    padding: .38rem .65rem;
    border: 1px solid #dee4e8;
    border-radius: .35rem;
    background: #f8f9fa;
    color: #65717a;
    font-size: .78rem;
    font-weight: 600;
}

.dossier-edit-acd-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .7rem;
    color: #394750;
    font-size: .86rem;
    font-weight: 700;
}

.dossier-edit-acd-title i {
    width: 1.25rem;
    color: var(--bs-primary);
    text-align: center;
}

.dossier-edit-savebar {
    position: sticky;
    bottom: .75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid #dce3e8;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .45rem 1.2rem rgba(24, 39, 50, .09);
    backdrop-filter: blur(8px);
}

.dossier-edit-completion {
    min-width: 150px;
}

.dossier-edit-completion .progress {
    height: .35rem;
    background: #e7ecef;
}

.dossier-edit-completion .progress-bar {
    background: var(--bs-primary);
}

.dossier-edit-danger-zone {
    border-color: #efdadd !important;
}

.dossier-edit-danger-zone .dossier-show-section-icon {
    background: #fff3f4;
    color: #a63d46;
}

@media (max-width: 767.98px) {
    .dossier-edit-savebar {
        bottom: .4rem;
        align-items: stretch;
        flex-direction: column;
    }

    .dossier-edit-savebar .d-flex {
        width: 100%;
    }

    .dossier-edit-savebar .btn {
        flex: 1 1 auto;
    }

    .dossier-edit-completion {
        width: 100%;
        min-width: 0;
        margin-bottom: .35rem;
    }
}

/* ==========================================================
   CABINET — SHOW / EDIT
   ========================================================== */

.cabinet-header {
    padding: 1rem 1.15rem;
    border: 1px solid #dfe6eb;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .2rem .75rem rgba(25, 45, 55, .04);
}

.cabinet-header-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .65rem;
    background: color-mix(in srgb, var(--bs-primary) 11%, white 89%);
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.cabinet-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .35rem;
    background: #fff;
}

.cabinet-header-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: #6c757d;
    font-size: .84rem;
}

.cabinet-header-separator {
    color: #b7c0c6;
}

.cabinet-card {
    border: 1px solid #e0e6ea;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .16rem .65rem rgba(25, 45, 55, .035);
}

.cabinet-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.cabinet-section-icon {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .48rem;
    background: color-mix(in srgb, var(--bs-primary) 10%, white 90%);
    color: var(--bs-primary);
}

.cabinet-label {
    display: block;
    margin-bottom: .2rem;
    color: #78848b;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.cabinet-info-tile {
    padding: .8rem .9rem;
    border: 1px solid #e4e9ed;
    border-radius: .48rem;
    background: #fbfcfd;
}

.cabinet-responsables {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.cabinet-person-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    border: 1px solid #e4e9ed;
    border-radius: .48rem;
    background: #fbfcfd;
}

.cabinet-avatar {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bs-primary) 12%, white 88%);
    color: var(--bs-primary);
    font-size: .78rem;
    font-weight: 700;
}

.cabinet-kpi {
    padding: .8rem 1rem;
    border: 1px solid #e3e9ed;
    border-radius: .48rem;
    background: #fbfcfd;
}

.cabinet-kpi span {
    display: block;
    color: #7a858c;
    font-size: .78rem;
}

.cabinet-kpi strong {
    display: block;
    margin-top: .15rem;
    font-size: 1.3rem;
}

.cabinet-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .65rem;
    border-radius: .4rem;
    font-size: .8rem;
    font-weight: 700;
}

.cabinet-status.is-success {
    background: #eaf7ef;
    color: #28764a;
    border: 1px solid #c9e8d5;
}

.cabinet-status.is-neutral {
    background: #f1f3f5;
    color: #69737a;
    border: 1px solid #dfe3e6;
}

.cabinet-empty-inline {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem .85rem;
    border: 1px dashed #d6dee3;
    border-radius: .48rem;
    background: #fafbfc;
    color: #748087;
    font-size: .84rem;
}

.cabinet-dossier-list {
    max-height: 420px;
    overflow-y: auto;
}

.cabinet-dossier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .72rem .85rem;
    border-bottom: 1px solid #edf0f2;
    color: #34434b;
    text-decoration: none;
}

.cabinet-dossier-row:last-child {
    border-bottom: 0;
}

.cabinet-dossier-row:hover {
    background: #f7fafb;
    color: var(--bs-primary);
}

.cabinet-dossier-row>i {
    color: #a3adb3;
    font-size: .72rem;
}

.cabinet-accordion .accordion-item {
    overflow: hidden;
    border-color: #e1e7eb;
    border-radius: .5rem;
}

.cabinet-notification-group {
    padding: 1rem;
    border: 1px solid #e2e8ec;
    border-radius: .52rem;
    background: #fbfcfd;
}

.cabinet-notification-group h3 {
    padding-bottom: .7rem;
    margin-bottom: .3rem;
    border-bottom: 1px solid #e8ecef;
}

.cabinet-notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid #eef1f3;
    font-size: .83rem;
}

.cabinet-notification-row:last-child {
    border-bottom: 0;
}

.cabinet-dot {
    width: .62rem;
    height: .62rem;
    flex: 0 0 .62rem;
    border-radius: 50%;
}

.cabinet-dot.is-on {
    background: #40a46a;
    box-shadow: 0 0 0 3px #e8f5ed;
}

.cabinet-dot.is-off {
    background: #b5bcc1;
    box-shadow: 0 0 0 3px #f0f2f3;
}

.cabinet-danger-zone {
    border-color: #efd9dc;
}

.cabinet-danger-zone .cabinet-section-icon {
    background: #fff1f2;
    color: #a63d46;
}

/* FORMULAIRE */

.cabinet-edit-form .form-label {
    margin-bottom: .38rem;
    color: #4b5961;
    font-size: .82rem;
    font-weight: 600;
}

.cabinet-edit-form .form-control,
.cabinet-edit-form .form-select {
    border-color: #dbe3e8;
}

.cabinet-edit-form .form-control:focus,
.cabinet-edit-form .form-select:focus {
    border-color: color-mix(in srgb, var(--bs-primary) 58%, white 42%);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--bs-primary) 12%, transparent);
}

.cabinet-subsection {
    padding-top: 1rem;
    border-top: 1px solid #e7ecef;
}

.cabinet-subsection-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    color: #47565e;
    font-size: .88rem;
    font-weight: 700;
}

.cabinet-subsection-title i {
    color: var(--bs-primary);
}

.cabinet-logo-preview {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem .8rem;
    border: 1px solid #e1e7eb;
    border-radius: .5rem;
    background: #fbfcfd;
}

.cabinet-logo-preview img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: .35rem;
    background: #fff;
}

.cabinet-setting-panel,
.cabinet-field-panel {
    padding: 1rem;
    border: 1px solid #e1e7eb;
    border-radius: .52rem;
    background: #fbfcfd;
}

.cabinet-setting-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-bottom: .8rem;
    margin-bottom: .4rem;
    border-bottom: 1px solid #e8ecef;
}

.cabinet-setting-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .42rem;
    background: color-mix(in srgb, var(--bs-primary) 10%, white 90%);
    color: var(--bs-primary);
}

.cabinet-switch-list {
    display: grid;
    grid-template-columns: 1fr;
}

.cabinet-switch-list-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

.cabinet-switch-row {
    padding: .6rem .1rem;
    border-bottom: 1px solid #edf0f2;
}

.cabinet-switch-row:last-child {
    border-bottom: 0;
}

.cabinet-switch-row .form-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    min-height: auto;
}

.cabinet-switch-row .form-check-input {
    margin: 0;
}

.cabinet-switch-row .form-check-label {
    font-size: .84rem;
    font-weight: 500;
}

.cabinet-acd-status {
    padding: 1rem;
    border: 1px solid #cfe1e5;
    border-radius: .52rem;
    background: color-mix(in srgb, var(--bs-primary) 5%, white 95%);
}

.cabinet-info-panel,
.cabinet-success-panel {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border-radius: .52rem;
}

.cabinet-info-panel {
    border: 1px solid #d6e5e8;
    background: #f5fafb;
}

.cabinet-info-panel>i {
    margin-top: .15rem;
    color: var(--bs-primary);
}

.cabinet-success-panel {
    border: 1px solid #cfe7d7;
    background: #f2faf5;
    color: #326d49;
}

.cabinet-success-panel>i {
    margin-top: .15rem;
}

.cabinet-color-grid .form-control-color {
    width: 100%;
    min-width: 0;
    height: 2.6rem;
}

.cabinet-savebar {
    position: sticky;
    bottom: .75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid #dce3e8;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .45rem 1.2rem rgba(24, 39, 50, .09);
    backdrop-filter: blur(8px);
}

@media (max-width: 767.98px) {
    .cabinet-switch-list-two-cols {
        grid-template-columns: 1fr;
    }

    .cabinet-savebar {
        bottom: .4rem;
        flex-direction: column;
        align-items: stretch;
    }

    .cabinet-savebar .d-flex {
        width: 100%;
    }

    .cabinet-savebar .btn {
        flex: 1 1 auto;
    }
}

/* ==========================================================
   AGENCE — SHOW / EDIT
   ========================================================== */

.agence-header {
    padding: 1rem 1.15rem;
    border: 1px solid #dfe6eb;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .2rem .75rem rgba(25, 45, 55, .04);
}

.agence-header-icon {
    width: 3.15rem;
    height: 3.15rem;
    flex: 0 0 3.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: color-mix(in srgb, var(--bs-primary) 11%, white 89%);
    color: var(--bs-primary);
    font-size: 1.2rem;
}

.agence-header-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: #6c757d;
    font-size: .84rem;
}

.agence-header-separator {
    color: #b7c0c6;
}

.agence-card {
    border: 1px solid #e0e6ea;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .16rem .65rem rgba(25, 45, 55, .035);
}

.agence-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.agence-section-icon {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .48rem;
    background: color-mix(in srgb, var(--bs-primary) 10%, white 90%);
    color: var(--bs-primary);
}

.agence-label {
    display: block;
    margin-bottom: .2rem;
    color: #78848b;
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.agence-info-tile {
    padding: .8rem .9rem;
    border: 1px solid #e4e9ed;
    border-radius: .48rem;
    background: #fbfcfd;
}

.agence-responsables {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.agence-person-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .78rem .85rem;
    border: 1px solid #e4e9ed;
    border-radius: .48rem;
    background: #fbfcfd;
}

.agence-avatar {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bs-primary) 12%, white 88%);
    color: var(--bs-primary);
    font-size: .78rem;
    font-weight: 700;
}

.agence-count {
    min-width: 2rem;
    padding: .35rem .55rem;
    border: 1px solid #dce5e8;
    border-radius: .4rem;
    background: #f7fafb;
    color: #56656d;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

.agence-accordion .accordion-item {
    overflow: hidden;
    border-color: #e1e7eb;
    border-radius: .5rem;
}

.agence-dossier-list {
    max-height: 460px;
    overflow-y: auto;
}

.agence-dossier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .75rem .8rem;
    border-bottom: 1px solid #edf0f2;
    color: #34434b;
    text-decoration: none;
}

.agence-dossier-row:last-child {
    border-bottom: 0;
}

.agence-dossier-row:hover {
    background: #f7fafb;
    color: var(--bs-primary);
}

.agence-dossier-row>i {
    flex: 0 0 auto;
    color: #a3adb3;
    font-size: .72rem;
}

.agence-dossier-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .4rem;
    background: color-mix(in srgb, var(--bs-primary) 8%, white 92%);
    color: var(--bs-primary);
}

.agence-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 92px;
    padding: 1rem;
    border: 1px dashed #d5dde2;
    border-radius: .5rem;
    background: #fafbfc;
    color: #748087;
    font-size: .86rem;
}

.agence-danger-zone {
    border-color: #efd9dc;
}

.agence-danger-zone .agence-section-icon {
    background: #fff1f2;
    color: #a63d46;
}

/* FORMULAIRE */

.agence-edit-form .form-label {
    margin-bottom: .38rem;
    color: #4b5961;
    font-size: .82rem;
    font-weight: 600;
}

.agence-edit-form .form-control,
.agence-edit-form .form-select {
    border-color: #dbe3e8;
}

.agence-edit-form .form-control:focus,
.agence-edit-form .form-select:focus {
    border-color: color-mix(in srgb, var(--bs-primary) 58%, white 42%);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--bs-primary) 12%, transparent);
}

.agence-form-fields>div {
    margin-bottom: 1rem;
}

.agence-savebar {
    position: sticky;
    bottom: .75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid #dce3e8;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .45rem 1.2rem rgba(24, 39, 50, .09);
    backdrop-filter: blur(8px);
}

.min-w-0 {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .agence-savebar {
        bottom: .4rem;
        flex-direction: column;
        align-items: stretch;
    }

    .agence-savebar .d-flex {
        width: 100%;
    }

    .agence-savebar .btn {
        flex: 1 1 auto;
    }
}

/* Accordéons des paramètres d’impayés et des agences */
#impaye-settings-accordion .accordion-button,
.agence-accordion .accordion-button {
    background-color: #f8fafc !important;
    color: #334155 !important;
    box-shadow: none !important;
}

#impaye-settings-accordion .accordion-button:not(.collapsed),
.agence-accordion .accordion-button:not(.collapsed) {
    background-color: #eaf0f6 !important;
    color: #243b53 !important;
}

#impaye-settings-accordion .accordion-button:hover,
.agence-accordion .accordion-button:hover {
    background-color: #eef2f6 !important;
}

/* Neutralise text-primary sur les icônes des en-têtes */
#impaye-settings-accordion .accordion-button>i,
.agence-accordion .accordion-button>i {
    color: #52677d !important;
}

#impaye-settings-accordion .accordion-button:focus-visible,
.agence-accordion .accordion-button:focus-visible {
    outline: 2px solid #52677d;
    outline-offset: -2px;
}

.btn.bg-danger-subtle {
    background-color: transparent !important;
    color: #a33131 !important;
    border: 1px solid #c76b6b;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color .15s ease, border-color .15s ease;
}

.btn.bg-danger-subtle:hover,
.btn.bg-danger-subtle:active {
    background-color: #fff1f2 !important;
    color: #842727 !important;
    border-color: #a33131;
}

.btn.bg-danger-subtle:focus-visible {
    outline: 2px solid #a33131;
    outline-offset: 3px;
    box-shadow: none;
}

/* Formulaire d’export comptable : styles strictement limités à ce composant. */
.mission-export {
    --export-ink: #243b53;
    --export-muted: #5f7083;
    --export-border: #dbe3eb;
    color: var(--export-ink);
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 4px;
}

.mission-export .mission-export-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.mission-export .mission-export-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid #bbd6cc;
    border-radius: 12px;
    color: #27644f;
    background: #f1f8f5;
    font-size: 21px;
}

.mission-export #mission-export-title {
    margin: 0 0 3px;
    font-size: 19px;
    font-weight: 650;
    color: var(--export-ink);
}

.mission-export .mission-export-caption {
    color: var(--export-muted);
    font-size: 13px;
}

.mission-export .mission-export-intro {
    color: var(--export-muted);
    margin-bottom: 22px;
}

.mission-export .mission-export-mode {
    padding: 18px;
    margin: 0 0 22px;
    border: 1px solid var(--export-border);
    border-radius: 12px;
    background: #f6f8fb;
    --bs-gutter-y: 0;
}

.mission-export .mission-export-mode-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--export-muted);
    padding-top: 18px;
}

.mission-export .mission-export-mode-hint>i {
    font-size: 20px;
}

.mission-export .mission-export-section {
    min-width: 0;
    margin: 0 0 22px;
    padding: 18px 20px 20px;
    border: 1px solid var(--export-border);
    border-radius: 12px;
    background: #fff;
}

.mission-export .mission-export-legend {
    float: none;
    width: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 8px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 650;
    color: var(--export-ink);
}

.mission-export .mission-export-step {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #edf2f7;
    color: #52677d;
    font-size: 12px;
}

.mission-export label,
.mission-export .form-label {
    color: #34485d;
    font-size: 14px;
    font-weight: 550;
    margin-bottom: 7px;
}

.mission-export input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.mission-export select,
.mission-export textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px !important;
    background-color: #fff;
    color: #243b53;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mission-export select {
    padding-right: 32px;
}

.mission-export input::placeholder {
    color: #7b8795;
    opacity: 1;
}

.mission-export input:not([type="hidden"]):focus,
.mission-export select:focus,
.mission-export textarea:focus {
    border-color: #657d96;
    outline: 2px solid #657d96;
    outline-offset: 2px;
    box-shadow: none;
}

.mission-export .form-text,
.mission-export .help-text {
    color: var(--export-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 7px;
}

.mission-export .select2-container {
    width: 100% !important;
    font-size: 14px;
}

.mission-export .select2-container .select2-selection--single {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.mission-export .select2-container .select2-selection--single .select2-selection__rendered {
    color: #243b53;
    padding: 7px 32px 7px 12px;
    line-height: 26px;
}

.mission-export .select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 7px;
}

.mission-export .select2-container--focus .select2-selection,
.mission-export .select2-container--open .select2-selection {
    border-color: #657d96;
    outline: 2px solid #657d96;
    outline-offset: 2px;
}

.mission-export .mission-export-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    margin: 0 0 20px;
    background: #f6f8fb;
    border-radius: 8px;
}

.mission-export .btn.mission-export-year {
    border: 1px solid #bcc9d6;
    background: transparent !important;
    color: #344e68 !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    min-width: 62px;
    padding: 6px 12px;
    box-shadow: none;
}

.mission-export .btn.mission-export-year:hover {
    background: #e9eff5 !important;
    border-color: #7e93a8;
}

.mission-export .mission-export-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 3px solid #b6c6d5;
    background: #f8fafc;
    color: var(--export-muted);
    font-size: 13px;
}

.mission-export .mission-export-columns {
    margin-bottom: 16px;
    border: 1px solid var(--export-border);
    border-radius: 10px;
    overflow: hidden;
}

.mission-export .mission-export-columns>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    background: #f8fafc;
    color: #34485d;
}

.mission-export .mission-export-columns>summary::-webkit-details-marker {
    display: none;
}

.mission-export .mission-export-columns>summary:hover {
    background: #eef2f6;
}

.mission-export .mission-export-columns[open]>summary {
    background: #eaf0f6;
    border-bottom: 1px solid var(--export-border);
}

.mission-export .mission-export-columns>summary>i {
    font-size: 11px;
    transition: transform .15s ease;
}

.mission-export .mission-export-columns[open]>summary>i {
    transform: rotate(180deg);
}

.mission-export .mission-export-columns-body {
    padding: 0 18px 18px;
}

.mission-export .mission-export-options .form-check {
    margin: 9px 0;
    padding: 10px 12px 10px 38px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
}

.mission-export .mission-export-options .form-check:has(input:checked) {
    background: #f1f6f9;
    border-color: #a8bacb;
}

.mission-export .mission-export-options input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #3b5b76;
    cursor: pointer;
}

.mission-export .mission-export-options .form-check-input:checked {
    background-color: #3b5b76;
    border-color: #3b5b76;
}

.mission-export .mission-export-options label {
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

.mission-export .mission-export-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 1px solid var(--export-border);
}

.mission-export .btn.mission-export-download {
    border: 1px solid #39735c;
    color: #27644f !important;
    background: transparent !important;
    border-radius: 8px;
    padding: 10px 18px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.mission-export .btn.mission-export-download:hover {
    color: #20523f !important;
    background: #edf6f1 !important;
    border-color: #27644f;
}

.mission-export .btn:focus-visible,
.mission-export summary:focus-visible {
    outline: 2px solid #52677d;
    outline-offset: 3px;
    box-shadow: none;
}

.mission-export .btn:disabled {
    opacity: .6;
    cursor: wait;
}

.mission-export [data-export-progress] {
    font-size: 13px;
}

@media (max-width: 575.98px) {

    .mission-export .mission-export-mode,
    .mission-export .mission-export-section {
        padding: 14px 12px;
    }

    .mission-export .mission-export-legend {
        font-size: 14px;
    }

    .mission-export .mission-export-presets .small {
        flex-basis: 100%;
    }

    .mission-export .mission-export-download {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mission-export *,
    .mission-export *::before,
    .mission-export *::after {
        transition: none !important;
    }
}

.mission-create-dropdown>.btn {
    border-radius: 7px;
    padding: 7px 12px;
    font-weight: 600;
}

.mission-create-menu {
    width: 310px;
    max-width: calc(100vw - 24px);
    padding: 8px;
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(30, 45, 60, 0.14);
}

.mission-create-menu .dropdown-header {
    padding: 9px 10px;
    color: #697986;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mission-create-menu .mission-create-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    color: #263b49;
    white-space: normal;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mission-create-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.mission-create-item small {
    display: block;
    margin-top: 2px;
    color: #697986;
    font-size: 12px;
}

.mission-create-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    height: 36px;
    border: 1px solid #dce4e9;
    border-radius: 9px;
    background: #f5f8fa;
    color: #526b7a;
    font-size: 14px;
}

.mission-create-arrow {
    margin-left: auto;
    color: #8b9aa5;
    font-size: 10px;
}

.mission-create-menu .mission-create-item:hover,
.mission-create-menu .mission-create-item:focus {
    background: #edf5f2;
    color: #245d4c;
}

.mission-create-item:hover .mission-create-icon,
.mission-create-item:focus .mission-create-icon {
    border-color: #c4dcd0;
    background: #e3efe8;
    color: #245d4c;
}

.mission-create-menu .mission-create-item:focus-visible {
    outline: 2px solid #548b76;
    outline-offset: -2px;
}

.mission-create-menu .dropdown-divider {
    margin: 8px 10px;
    border-color: #e3e9ed;
}

/* Suivi des temps passés : couleurs limitées au formulaire d'alerte.
   Les classes choix-* restent pilotées par le contrôleur alert-color. */
.mc-time-tracking [data-alert-color-target~="select"] {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mc-time-tracking .choix-undefined {
    background-color: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.mc-time-tracking .choix-ok {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.mc-time-tracking .choix-avertissement {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #f0cf86;
}

.mc-time-tracking .choix-depassement {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.mc-time-tracking [data-alert-color-target~="select"]:hover {
    border-color: currentColor;
}

.mc-time-tracking [data-alert-color-target~="select"]:focus {
    outline: 2px solid #64748b;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .12);
}

/* Garder les choix du menu natif lisibles, quel que soit l'état sélectionné. */
.mc-time-tracking select option {
    background-color: #fff;
    color: #334155;
}

@media (prefers-reduced-motion: reduce) {
    .mc-time-tracking [data-alert-color-target~="select"] {
        transition: none;
    }
}

/* Orientation pilotée par l’état réel de l’accordéon */
.sidebar [data-bs-toggle="collapse"] .sidebar-chevron {
    transition: transform 0.2s ease;
}

.sidebar [aria-expanded="true"] .sidebar-chevron.fa-chevron-down,
.sidebar [aria-expanded="false"] .sidebar-chevron.fa-chevron-up {
    transform: rotate(180deg);
}

/* Menus déroulants : actions et membres de l’équipe */
.dropdown-menu.bg-primary-subtle {
    --bs-dropdown-bg: #ffffff;
    --bs-dropdown-color: #334155;
    --bs-dropdown-link-color: #334155;
    --bs-dropdown-link-hover-bg: #edf4ff;
    --bs-dropdown-link-hover-color: #174ea6;
    --bs-dropdown-link-active-bg: #e0edff;
    --bs-dropdown-link-active-color: #174ea6;

    /* Remplace le remplissage imposé par bg-primary-subtle */
    background-color: var(--bs-dropdown-bg) !important;

    min-width: 220px;
    padding: 7px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.16),
        0 3px 8px rgba(15, 23, 42, 0.08);

    font-size: 13px;
    line-height: 1.5;
}

/* Liens d’action et lignes d’information */
.dropdown-menu.bg-primary-subtle .dropdown-item {
    padding: 9px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Survol uniquement sur les éléments cliquables */
.dropdown-menu.bg-primary-subtle a.dropdown-item:hover,
.dropdown-menu.bg-primary-subtle button.dropdown-item:hover {
    background-color: var(--bs-dropdown-link-hover-bg);
    color: var(--bs-dropdown-link-hover-color);
}

.dropdown-menu.bg-primary-subtle a.dropdown-item:focus-visible,
.dropdown-menu.bg-primary-subtle button.dropdown-item:focus-visible {
    background-color: var(--bs-dropdown-link-hover-bg);
    color: var(--bs-dropdown-link-hover-color);
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

/* Les informations d’équipe restent visuellement non cliquables */
.dropdown-menu.bg-primary-subtle li.dropdown-item {
    cursor: default;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dropdown-menu.bg-primary-subtle li.dropdown-item:hover {
    background-color: transparent;
    color: var(--bs-dropdown-color);
}

/* Icônes de verrouillage */
.dropdown-menu.bg-primary-subtle .dropdown-item .fa-lock {
    margin-left: 8px;
    color: #64748b;
    font-size: 11px;
}

/* Séparateurs */
.dropdown-menu.bg-primary-subtle .dropdown-divider,
.dropdown-menu.bg-primary-subtle>hr {
    margin: 6px 4px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.dropdown-menu.bg-primary-subtle.dropdown-menu-equipe {
    width: 320px;
    max-width: calc(100vw - 24px);
}

/* PASSXP — tableau de bord d'accueil. Styles limités au composant .pxd. */
.pxd {
    --pxd-ink: #25334c;
    --pxd-muted: #738098;
    --pxd-line: #e7ecf4;
    color: var(--pxd-ink);
    background: #f3f6fb;
    border: 1px solid #e7ecf4;
    border-radius: 20px;
    padding: 26px;
    margin: 10px 0 34px;
    font-size: 14px;
    line-height: 1.5;
    clear: both
}

.pxd * {
    box-sizing: border-box
}

.pxd [hidden] {
    display: none !important
}

.pxd h1,
.pxd h2,
.pxd p {
    margin: 0
}

.pxd h1 {
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.8px;
    margin: 12px 0
}

.pxd h1 span {
    color: #a7b9d5;
    font-size: .8em;
    font-weight: 450
}

.pxd h2 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: -.3px
}

.pxd-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(115deg, var(--menu1, var(--sidebar-menu-1, #36A793)), var(--menu2, var(--sidebar-menu-2, #2b8d7c)));
    color: #fff;
    padding: 30px 34px;
    border-radius: 14px;
    position: relative;
    overflow: hidden
}

.pxd-hero>div {
    position: relative;
    z-index: 1
}

.pxd-hero:after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border: 50px solid #ffffff05;
    border-radius: 50%;
    right: -100px;
    top: -180px;
    pointer-events: none
}

.pxd-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 750;
    color: #8492a9
}

.pxd-hero .pxd-eyebrow {
    color: #a9c0e3
}

.pxd-hero p {
    color: #bfcee4;
    font-size: 12px
}

.pxd-hero-right {
    text-align: right;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    justify-content: center
}

.pxd-live {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: #e1f3ed
}

.pxd-live>span {
    width: 6px;
    height: 6px;
    background: #62dbb5;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #62dbb512
}

.pxd button {
    font: inherit;
    cursor: pointer
}

.pxd button:disabled {
    opacity: .45;
    cursor: default
}

.pxd-refresh {
    border: 1px solid #ffffff35;
    border-radius: 7px;
    background: #ffffff0c;
    color: #fff;
    padding: 7px 12px;
    font-size: 12px !important
}

.pxd-refresh:hover {
    background: #ffffff20
}

.pxd-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 10px
}

.pxd-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 650;
    color: #59677e;
    flex: 1;
    min-width: 135px
}

.pxd-filters select,
.pxd-filters input {
    font: inherit;
    font-size: 12px;
    color: #35445d;
    background: #fff;
    border: 1px solid #dde4f0;
    border-radius: 7px;
    padding: 10px 9px;
    min-width: 0;
    width: 100%;
    height: 39px
}

.pxd-filters .pxd-search {
    flex: 1.3
}

.pxd-reset {
    border: 1px solid #dce3ed;
    background: transparent;
    color: #5c6d8c;
    border-radius: 7px;
    padding: 9px 12px;
    height: 39px;
    font-size: 11px !important
}

.pxd :is(button, input, select, a, summary):focus-visible {
    outline: 3px solid #6687ed;
    outline-offset: 3px
}

.pxd-note {
    color: var(--pxd-muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 10px 0 0 !important
}

.pxd-feedback {
    padding: 30px;
    text-align: center;
    border: 1px dashed #ccd6e7;
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
    color: #687b9a
}

.pxd-error {
    color: #a63a49;
    background: #fff3f3;
    border-color: #e7bdc1
}

.pxd-kpis,
.pxd-secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0
}

.pxd-kpi {
    background: #fff;
    border: 1px solid var(--pxd-line);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 3px 10px #233d6010;
    min-width: 0
}

.pxd-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #728099;
    font-weight: 550
}

.pxd-icon {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 19px;
    background: #edf1ff;
    color: #5e70d7;
    flex-shrink: 0
}

.pxd-kpi>strong {
    display: block;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.9px;
    margin: 12px 0 9px;
    font-weight: 750;
    overflow-wrap: anywhere
}

.pxd-kpi>p {
    font-size: 10px;
    color: var(--pxd-muted)
}

.pxd-green .pxd-icon {
    color: #26947d;
    background: #eaf7f2
}

.pxd-red .pxd-icon {
    color: #d26973;
    background: #fbeef0
}

.pxd-purple .pxd-icon {
    color: #8e6fc5;
    background: #f2eefb
}

.pxd-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px
}

.pxd-panel {
    background: #fff;
    border: 1px solid var(--pxd-line);
    border-radius: 12px;
    padding: 22px;
    min-width: 0;
    box-shadow: 0 2px 8px #233d6006
}

.pxd-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px
}

.pxd-chip {
    border: 1px solid #e6ebf3;
    color: #8190a8;
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap
}

.pxd-wide {
    grid-column: 1/-1
}

.pxd-bars {
    display: grid;
    gap: 14px
}

.pxd-bar-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64718a
}

.pxd-bar-caption strong {
    font-variant-numeric: tabular-nums;
    color: #33425c
}

.pxd-track {
    background: #eff2f8;
    border-radius: 4px;
    height: 9px;
    overflow: hidden;
    flex: 1;
    min-width: 30px
}

.pxd-track>span {
    display: block;
    height: 100%;
    border-radius: 4px;
    transition: width .3s ease
}

.pxd-health {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 22px;
    min-height: 230px
}

.pxd-donut {
    width: 176px;
    height: 176px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-.01deg)
}

.pxd-donut-center {
    background: #fff;
    border-radius: 50%;
    width: 135px;
    height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.pxd-donut-center strong {
    font-size: 35px;
    letter-spacing: -1px
}

.pxd-donut-center span {
    font-size: 11px;
    color: #8995a7
}

.pxd-legend {
    display: grid;
    gap: 13px;
    min-width: 140px
}

.pxd-legend>div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #69768c
}

.pxd-legend strong {
    margin-left: auto;
    color: #35435b
}

.pxd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0
}

.pxd-progress-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 42px
}

.pxd-progress-row>strong {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 7px
}

.pxd-progress-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px
}

.pxd-progress-pair>span {
    font-size: 10px;
    color: #8994a6;
    min-width: 77px
}

.pxd-progress-pair>strong {
    font-size: 11px;
    min-width: 52px;
    text-align: right;
    font-variant-numeric: tabular-nums
}

.pxd-secondary .pxd-kpi {
    box-shadow: none;
    background: #ffffffa6
}

.pxd-secondary .pxd-kpi>strong {
    font-size: 24px
}

.pxd-bottom {
    grid-template-columns: 1.8fr 1fr
}

.pxd-table-scroll {
    overflow: auto
}

.pxd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px
}

.pxd-table th {
    padding: 10px 8px;
    font-weight: 550;
    color: #8190a8;
    border-bottom: 1px solid #e9edf4;
    text-align: left;
    white-space: nowrap;
    background: #fafbfd
}

.pxd-table td {
    padding: 14px 8px;
    border-bottom: 1px solid #eef1f6;
    color: #64728b
}

.pxd-table td:first-child {
    min-width: 170px
}

.pxd-table tr:hover td {
    background: #fcfdff
}

.pxd-mission-name {
    display: block;
    font-size: 10px;
    color: #8b97aa;
    margin-top: 4px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.pxd-link {
    font-weight: 650;
    color: #405c9a;
    text-decoration: none;
    font-size: 12px
}

.pxd-link:hover {
    text-decoration: underline;
    color: #223d79
}

.pxd-badge {
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-block
}

.pxd-state-critical {
    background: #fcedef;
    color: #be5160
}

.pxd-state-late {
    background: #fff5e3;
    color: #af7d29
}

.pxd-state-ok {
    background: #eaf7f0;
    color: #328b71
}

.pxd-state-pending,
.pxd-state-unavailable {
    background: #edf0f6;
    color: #7b879d
}

.pxd-blocked {
    font-size: 9px;
    color: #c7626c;
    display: block;
    margin-top: 4px
}

.pxd-number {
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.pxd-empty {
    padding: 32px 8px !important;
    color: #8b98ac !important;
    text-align: center;
    font-size: 12px
}

.pxd-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 10px;
    color: #8c97ab;
    gap: 10px
}

.pxd-pager button {
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 6px;
    padding: 6px 9px;
    color: #637695;
    font-size: 10px
}

.pxd-deadline {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f7;
    align-items: flex-start
}

.pxd-date {
    font-size: 11px;
    font-weight: 650;
    color: #6378ae;
    background: #eef2fc;
    border-radius: 6px;
    padding: 7px 6px;
    flex-shrink: 0
}

.pxd-deadline small {
    display: block;
    font-size: 10px;
    color: #8a97ab;
    margin-top: 4px
}

.pxd-deadline .pxd-link {
    font-size: 11px;
    overflow-wrap: anywhere
}

.pxd-definitions {
    margin: 20px 0 0;
    border-top: 1px solid #e0e6f0;
    padding-top: 16px;
    color: #7a879d;
    font-size: 11px
}

.pxd-definitions summary {
    cursor: pointer;
    color: #627593
}

.pxd-definitions p {
    margin: 12px 0 !important;
    line-height: 1.7
}

@media(min-width:1600px) {
    .pxd-grid:not(.pxd-bottom) {
        grid-template-columns: 1fr .85fr 1.1fr
    }

    .pxd-wide {
        grid-column: auto
    }

    .pxd-progress-list {
        grid-template-columns: 1fr
    }

    .pxd-panel {
        padding: 24px
    }
}

@media(max-width:1050px) {
    .pxd {
        padding: 18px
    }

    .pxd-kpis,
    .pxd-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .pxd-grid,
    .pxd-bottom {
        grid-template-columns: 1fr
    }

    .pxd-wide {
        grid-column: auto
    }

    .pxd-hero {
        padding: 24px
    }

    .pxd-progress-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:600px) {
    .pxd {
        padding: 12px;
        border-radius: 12px
    }

    .pxd-hero {
        display: block;
        padding: 20px
    }

    .pxd-hero-right {
        align-items: flex-start;
        text-align: left;
        margin-top: 18px;
        gap: 10px
    }

    .pxd h1 {
        font-size: 24px
    }

    .pxd-kpis,
    .pxd-secondary {
        gap: 10px
    }

    .pxd-kpi {
        padding: 13px
    }

    .pxd-kpi>strong {
        font-size: 26px
    }

    .pxd-secondary .pxd-kpi>strong {
        font-size: 21px
    }

    .pxd-icon {
        display: none
    }

    .pxd-panel {
        padding: 16px
    }

    .pxd-progress-list {
        grid-template-columns: 1fr
    }

    .pxd-filters label {
        min-width: calc(50% - 12px)
    }

    .pxd-filters .pxd-search {
        min-width: 100%
    }

    .pxd-chip {
        white-space: normal
    }

    .pxd-eyebrow {
        letter-spacing: 1px;
        font-size: 9px
    }

    .pxd h2 {
        font-size: 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    .pxd-track>span {
        transition: none
    }
}

@media print {

    .pxd-filters,
    .pxd-refresh,
    .pxd-pager {
        display: none
    }

    .pxd {
        background: #fff
    }

    .pxd-hero {
        background: #fff;
        color: #25334c
    }

    .pxd-hero p,
    .pxd h1 span {
        color: #63718a
    }

    .pxd-panel,
    .pxd-kpi {
        break-inside: avoid;
        box-shadow: none
    }

    .pxd {
        padding: 0;
        border: 0
    }
}

.import-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.import-status--create {
    color: #205c3b;
    background-color: #e8f4ec;
    border-color: #a3cbb1;
}

.import-status--update {
    color: #234f82;
    background-color: #eaf1fb;
    border-color: #adc5e5;
}

.import-status--unmatched {
    color: #795006;
    background-color: #fff3d6;
    border-color: #dfbd70;
}

.import-status--invalid {
    color: #922c38;
    background-color: #fcebed;
    border-color: #dfa8af;
}

.import-status-errors {
    margin-top: 5px;
    color: #922c38;
    font-size: 13px;
    overflow-wrap: anywhere;
}


/* Recherche dynamique comptable : même habillage que les listes juridiques.
   La largeur et le placement des actions restent gérés par mission-search-toolbar. */
/* Recherche dynamique des tableaux comptables */
.mc-tableau-page .mission-search-toolbar #search-input-mc {
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 12px !important;

    border: 1px solid #cad7e3 !important;
    border-radius: 7px !important;

    font-size: 13px !important;
    line-height: 20px;
    background-color: #fff;

    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

/* Même contour au focus que dans juridique */
.mc-tableau-page .mission-search-toolbar #search-input-mc:focus {
    border-color: #cad7e3 !important;
    outline: 2px solid #b5cadd !important;
    outline-offset: 1px;
}
/* Bandeaux des tableaux de bord : thème du cabinet, comme l’accueil. */
.pxd-hero,
.pxd-hero h1,
.pxd-hero h1 small,
.pxd-hero p,
.pxd-hero .pxd-eyebrow,
.pxd-hero .pxd-live,
.pxd-hero .pxd-refresh {
    color: var(--sidebar-text, var(--sidebar-menu-text, #ffffff));
}
.pxd-hero .pxd-refresh { border-color: currentColor; }
