.tooltip {
    z-index: 9999 !important;
}

/* Liste "jolie" Code/Nom — Libellé/Prix + boutons modifier/supprimer (catégories de chambre, tarifs) :
   utilisée à la fois sur Mon compte (templates/account/account.html.twig) et dans la modale "réglage" de
   la page Promotions (templates/promotions/promotions.html.twig) — CSS globale plutôt que dupliquée dans
   le <style> de chaque page, pour ne pas l'oublier la prochaine fois que ces classes sont réutilisées
   ailleurs (cf. account.js, qui gère déjà ces éléments de façon globale). */
.account-space-categories-list, .account-rate-plans-list, .account-space-categories-suggested-list, .account-rate-plans-suggested-list { border: 1px solid #edeef2; border-radius: 8px; overflow: hidden; }
.account-space-category-item, .account-rate-plan-item, .rate-plan-manage-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; font-size: 0.875rem; border-bottom: 1px solid #edeef2;
}
.account-space-category-item:last-child, .account-rate-plan-item:last-child, .rate-plan-manage-item:last-child { border-bottom: none; }
.account-space-category-display, .account-rate-plan-display, .rate-plan-manage-display { word-break: break-word; flex: 1 1 auto; }
.account-space-category-actions, .account-rate-plan-actions, .rate-plan-manage-actions { flex-shrink: 0; display: flex; gap: 6px; }
.account-space-category-item-editing { gap: 8px; padding: 8px 12px; }
.account-space-category-item-editing input { font-size: 0.85rem; }
/* champ de recherche des onglets de Mon compte (tarifs, catégories de chambre, coûts de distribution) — même rendu
   que la recherche de la modale du simulateur */
.account-search-wrap { position: relative; }
.account-search-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.75rem; pointer-events: none; }
.account-search-wrap > input { padding-left: 32px; }
/* ligne écartée par une recherche : classe plutôt que .toggle() jQuery, qui réaffichait certaines lignes en
   display:block (au lieu de flex / table-row) quand leur liste était encore masquée — boutons déplacés */
.is-search-hidden { display: none !important; }

/* tarifs liés (cf. assets/js/rate-plan-link.js) : ligne d'édition = nom + [Prix fixe / Lié à … ▾] + prix OU règle
   ("-5 %", "+10") + aperçu du prix calculé ; passe sur 2 lignes si la place manque (modale du simulateur, mobile).
   Champs harmonisés : même hauteur (36px), coins arrondis, bordure claire, focus violet, devise dans le champ prix. */
.account-rate-plan-item.account-space-category-item-editing, .rate-plan-manage-item-editing { flex-wrap: wrap; background: #fafaff; }
.account-rate-plan-item.account-space-category-item-editing > .account-rate-plan-edit-name,
.rate-plan-manage-item-editing > .rate-plan-edit-name,
.rp-link-controls .rp-link-parent,
.rp-field {
    height: 36px; border: 1px solid #dfe1ea; border-radius: 8px; background-color: #fff;
    font-size: 0.85rem; color: #1f2937; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.account-rate-plan-item.account-space-category-item-editing > .account-rate-plan-edit-name,
.rate-plan-manage-item-editing > .rate-plan-edit-name { flex: 1 1 180px; min-width: 0; padding: 0 12px; font-weight: 600; }
.account-rate-plan-item.account-space-category-item-editing > .account-rate-plan-edit-name:focus,
.rate-plan-manage-item-editing > .rate-plan-edit-name:focus,
.rp-link-controls .rp-link-parent:focus,
.rp-field:focus-within { border-color: #7978E9; box-shadow: 0 0 0 3px rgba(121, 120, 233, 0.15); outline: none; }
.rp-link-controls { display: flex; align-items: center; gap: 8px; flex: 2 1 340px; min-width: 0; }
.rp-link-controls .rp-link-parent { flex: 0 1 240px; min-width: 0; padding: 0 30px 0 12px; }
.rp-link-controls.is-linked .rp-link-parent { border-color: #c4b5fd; background-color: #f5f3ff; color: #4B49AC; font-weight: 600; }
.rp-field { display: inline-flex; align-items: center; flex: 0 0 130px; padding: 0 10px; overflow: hidden; }
.rp-field input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; border: 0; outline: none; background: transparent; font-size: 0.85rem; color: #1f2937; padding: 0; }
.rp-field-suffix { flex-shrink: 0; margin-left: 6px; font-size: 0.75rem; font-weight: 600; color: #9ca3af; }
/* règle d'un tarif lié : valeur + sélecteur d'unité (% ou devise) collé à droite dans le même champ */
.rp-link-rule-wrap { flex-basis: 150px; padding-right: 0; }
.rp-link-unit {
    flex-shrink: 0; height: 100%; margin-left: 6px; padding: 0 22px 0 10px; border: 0; border-left: 1px solid #e5e7eb; border-radius: 0 8px 8px 0;
    background: #f5f3ff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234B49AC' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 7px center / 9px 9px;
    -webkit-appearance: none; appearance: none; font-size: 0.8rem; font-weight: 700; color: #4B49AC; cursor: pointer; outline: none;
}
/* champs prix sans flèches (+/-) du navigateur : ici, aussi pour les lignes « non configuré » */
.rp-field input[type=number], .account-rate-plan-suggested-price, .rate-plan-suggested-price { -moz-appearance: textfield; appearance: textfield; }
.rp-field input[type=number]::-webkit-outer-spin-button, .rp-field input[type=number]::-webkit-inner-spin-button,
.account-rate-plan-suggested-price::-webkit-outer-spin-button, .account-rate-plan-suggested-price::-webkit-inner-spin-button,
.rate-plan-suggested-price::-webkit-outer-spin-button, .rate-plan-suggested-price::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rp-link-preview { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: #ede9fe; font-size: 0.8rem; font-weight: 700; color: #4B49AC; white-space: nowrap; }
.rp-link-preview:empty { display: none !important; }
.rp-link-preview.is-invalid { background: #fdecef; color: #C0405A; font-weight: 600; }
/* modale du simulateur : élargie (modal-lg), même ligne d'édition que Mon compte — l'ancienne mise en page forcée
   sur 2 lignes (modale étroite) est retirée ; la ligne passe encore à la ligne d'elle-même si la place manque (mobile) */
/* gélule d'un tarif lié, à droite du prix : "🔗 BAR −5 %" */
.rp-link-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #ede9fe; color: #4B49AC; font-size: 0.72rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.rp-link-pill i { font-size: 0.65rem; }
/* bouton "lier à un autre tarif" des lignes « non configuré » */
.rp-suggested-link-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
/* petit écran : menu « Lié à » en pleine largeur, prix / règle + aperçu sur la ligne suivante */
@media (max-width: 575.98px) {
    .rp-link-controls { flex-wrap: wrap; flex-basis: 100%; }
    .rp-link-controls .rp-link-parent { flex: 1 1 100%; }
    .rp-field { flex: 1 1 auto; }
    /* gélule d'un tarif lié au nom long : passe à la ligne au lieu de pousser les boutons hors de l'écran */
    .rp-link-pill { display: block; width: fit-content; max-width: 100%; white-space: normal; margin: 3px 0 0; line-height: 1.4; }
    .account-rate-plan-display, .rate-plan-manage-display { min-width: 0; }
}

/* poignée de cliqué-glissé (réordonnancement catégories de chambre / tarifs, cf. assets/js/account.js et
   discount-simulator.js) : classe partagée par les 3 listes (.account-space-category-item,
   .account-rate-plan-item, .rate-plan-manage-item), CSS globale pour la même raison que ci-dessus */
.account-drag-handle { flex-shrink: 0; color: #9ca3af; cursor: grab; font-size: 0.8rem; line-height: 1; }
[draggable="true"] { cursor: grab; }
[draggable="true"].is-dragging { opacity: 0.4; }
/* même ligne que le garde-fou JS ci-dessus (dragstart annulé si le geste ne part pas de la poignée) :
   empêche en plus WebKit/Blink d'amorcer un "fantôme" de glissé au clic sur un bouton/champ de la ligne */
[draggable="true"] button, [draggable="true"] input, [draggable="true"] .account-space-category-actions,
[draggable="true"] .account-rate-plan-actions, [draggable="true"] .rate-plan-manage-actions {
    -webkit-user-drag: none;
    user-select: text;
}

/* Supprimer le border-radius sur les liens du menu en mode réduit */
.sidebar-icon-only .sidebar .nav .nav-item .nav-link {
    border-radius: 0 !important;
}

/* Désactiver l'effet hover-open en mode sidebar réduite */
@media (min-width: 992px) {
    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link .menu-title,
    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link:hover .menu-title {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        left: -9999px !important;
    }
    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapse,
    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapsing {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Libellé section admin dans le menu */
@media (min-width: 992px) {
    .sidebar-icon-only .admin-label-full { display: none !important; }
    .sidebar-icon-only .admin-label-short { display: inline !important; }
}

#themeModal .form-check, #qaModal .form-check {
    margin-left: 25px;
}

.ind-checkbox:checked,
.comp-checkbox:checked,
.final-checkbox:checked,
.yind-checkbox:checked,
.n1-checkbox:checked,
.notif-visibility-radio:checked,
.notif-start-radio:checked,
.notif-end-radio:checked,
#notif-active:checked {
    background-color: #4747a2 !important;
    border-color: #4747a2 !important;
}

.ind-checkbox:focus,
.comp-checkbox:focus,
.final-checkbox:focus,
.yind-checkbox:focus,
.n1-checkbox:focus,
.notif-visibility-radio:focus,
.notif-start-radio:focus,
.notif-end-radio:focus,
#notif-active:focus {
    border-color: #4747a2 !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
}

/* boutons de la barre du haut du Dashboard (#btn-dashboard-year-picker, #btn-dashboard-import-date-picker,
   #indicateurs-dropdown, #btn-dropdown-comparatif) et de Yield (#btn-calendar-prev/next, #btn-period-pill,
   #btn-reset-dates, #yield-indicateurs-dropdown) et de Demande (#btn-demand-prev/next, #btn-demand-month-picker)
   et d'Objectifs (#btn-budget-year-picker, #btn-budget-copy-previous-year) et d'Historique
   (#btn-history-date-picker, #import-past-date-btn) et des Salons (#btn-event-year-picker, #btn-event-zone-picker,
   #btn-add-event, #btn-add-location, #btn-add-event-zones) et des Promotions (#btn-promotions-year-picker,
   #btn-add-promotion, #btn-promo-simulator, #btn-price-config, #btn-space-category-config) et de la FAQ
   (#btn-faq-search) et le bouton de sens du tri des promotions (#promotion-sort-dir) retirés de cette liste : survol violet dédié, cf. règles
   ":is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .btn-inverse-primary:hover" plus bas (le "inherit" ci-dessous les rendait noirs) */
#btn-calendar-picker:hover {
    background-color: transparent !important;
    border-color: inherit !important;
    color: inherit !important;
}

.w-5 {
    width: 5% !important;
}
.w-10 {
    width: 10% !important;
}
.w-15 {
    width: 15% !important;
}
.w-20 {
    width: 20% !important;
}
.w-25 {
    width: 25% !important;
}
.w-30 {
    width: 30% !important;
}
.w-35 {
    width: 35% !important;
}
.w-40 {
    width: 40% !important;
}
.w-45 {
    width: 45% !important;
}
.w-50 {
    width: 50% !important;
}
.w-55 {
    width: 55% !important;
}
.w-60 {
    width: 60% !important;
}
.w-65 {
    width: 65% !important;
}
.w-70 {
    width: 70% !important;
}
.w-75 {
    width: 75% !important;
}
.w-80 {
    width: 80% !important;
}
.w-85 {
    width: 85% !important;
}
.w-90 {
    width: 90% !important;
}
.w-95 {
    width: 95% !important;
}
.w-100 {
    width: 100% !important;
}

.dot-opacity-loader {
    width: 50px;
    height: 15px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}
.dot-opacity-loader span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #4B49AC;
    margin: 5px 2px;
    opacity: 0;
}

#history-import-date-input, .input-group-addon {
    height: 40px;
}

.input-group-addon {
    display: none;
}

.ti-calendar {
    height: 41px;
}

#datepicker-block .datepicker-search {
    padding: 0;
    padding-top: 6px;
    padding-left: 5px;
}

#datepicker-block .datepicker-input {
    padding-right: 6px;
}

.accordion > .card .card-header {
    background-color: rgba(232, 235, 238, 0.54);
}

.accordion.accordion-solid-header .card .card-header a {
    padding: 1.5rem 4.5rem 1.5rem 2rem;
}

#budget-tab input.form-control {
    padding: 12px;
    width: 80%;
    display: inline-block;
}

#confirmation-form input.code_box {
    width: 17px;
    padding: 15px;
    margin: 3px;
    font-size: 20px;
    text-align: center;
}

.navbar .navbar-brand-wrapper .navbar-brand img {
    height: 50px;
}

.auth .brand-logo img {
    width: 250px;
}

.auth .login-half-bg {
    /* authentication-login-bg.png = authentication.png recadré à hauteur pleine (aucun recadrage vertical,
       la marge haut/bas de l'image d'origine était déjà minime) mais rogné sur les côtés, qui avaient
       beaucoup de fond vide inutile — ramène le ratio de 1536x1024 (1.5, très "paysage") à ~1055x1024
       (~1.03, quasi carré), bien plus proche du ratio d'un panneau de login (plus haut que large). "cover"
       reste nécessaire (le panneau est plus haut que large : "contain" laissait des bandes vides en
       haut/bas), mais comme les ratios sont maintenant proches, le recadrage résiduel qu'il implique est
       minime, même sur une fenêtre haute — contrairement à l'image d'origine qui, elle, imposait de
       rogner ~40% de la largeur. Un recadrage plus serré (plus gros plan sur laptop/téléphone) a été
       testé puis écarté : moins bon rendu que celui-ci. */
    background: url("../images/auth/authentication-login-bg-de2dab96d75b714d5c43574f5a95e0d6.png") no-repeat center center;
    background-size: cover;
}

.auth .login-half-bg p {
    color: #4B49AC !important;
}

.symbol {
    font-size: 10px;
}

.mb-2 .symbol, .text-muted .symbol {
    font-size: 16px;
}

#item-companies {
    margin-right: 0;
}

#item-import {
    margin-right: 0;
}

#import-button {
    width: 96px;
}

#import-button .icon-cloud-upload {
    padding-right: 5px;
}

#item-companies select, #item-establishments select {
    width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tva-choice.form-check .form-check-label {
    width: 30px;
    display: inline-block;
    margin-left: 0.45rem;
    font-weight: bold;
}

#tva-choice.form-check .form-check-input {
    float: none;
    margin-left: 0;
}

#tva-choice .form-check-input:checked {
    background-color: #5050b2;
    border-color: #5050b2;
}


#dashboard-date, #yield-date {
    margin-bottom: 30px;
}

/* blocs un peu moins ronds : 10px au lieu des 20px du thème (variable Bootstrap de .card) — le rayon intérieur des
   en-têtes / pieds / images de carte (--bs-card-inner-border-radius) dépend de --bs-border-radius, inchangé */
.card {
    --bs-card-border-radius: 10px;
    border-radius: 10px;
    /* petite bordure discrète (le thème la retire : ".card { border: none; }") — les cartes qui ont leur propre bordure
       (style en ligne, ex. mois en cours du Dashboard) la gardent */
    --bs-card-border-color: rgba(221, 216, 251, 0.49);
    border: 1px solid rgba(221, 216, 251, 0.49);
}

/* exception : les 4 KPI principaux colorés en haut du Dashboard (#main-kpi) restent sans bordure */
#main-kpi .card {
    border: none;
}

.datepicker.datepicker-dropdown, .datepicker.datepicker-inline {
    width: auto;
    max-width: none;
    min-width: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.btn-inverse-success:not(.btn-inverse-light) {
    color: rgb(30, 163, 30);
}

#tva-choice.form-check {
    margin-top: 0;
}

#adminTabsContent {
    margin-top: 0 !important;
}

#userModal .form-check {
    margin-left: 25px;
}

.card-people {
    padding-top: 0 !important;
}

#main-image {
    background: none;
}

/* même espacement en-tête -> bloc principal sur toutes les pages (Demande avait 24px via un mb-4 interne, Promotions et
   le Simulateur de remises 16px via le mt-3 du bloc suivant — absorbé ici par la fusion des marges) */
#budget-date, #history-date, #events-date, #faq-date, #demand-date, #promotions-date, #discount-simulator-header, #group-date {
    margin-bottom: 30px;
}

@media (max-width: 767.98px) {
    #dashboard-date > .col-md-12,
    #yield-date > .col-md-12,
    /* #budget-date retiré : ses contrôles (année, calendrier, bascule, mois, "reprendre") tiennent sur une
       ligne qui se replie si besoin, cf. règle dédiée juste en dessous */
    /* #history-date retiré : date + calendrier + "Import date ant." sur une même ligne, cf. règle dédiée */
    /* #faq-date retiré : "FAQ" + loupe (et son champ de recherche dépliable) restent sur une ligne */
    #events-date > .col-md-12 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
}

/* Historique — mobile : date d'import + bouton calendrier à gauche, "Import date ant." à droite, sur une
   seule ligne (paddings resserrés pour que les 3 tiennent sur un écran étroit) */
@media (max-width: 767.98px) {
    #history-date > .col-md-12 { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 0.5rem; }
    #history-date > .col-md-12 > div { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
    #history-date .btn-fw { min-width: 0; padding-left: 14px; padding-right: 14px; }
    #import-past-date-btn { white-space: nowrap; padding: 0.55rem 0.85rem; font-size: 0.8rem; }
}

/* Objectifs — mobile : année + calendrier + bascule Mensuel/Journalier (+ mois) sur une même ligne, repliée
   proprement si l'écran est trop étroit ; bouton "Reprendre les budgets…" calé à droite (ms-auto) */
@media (max-width: 767.98px) {
    #budget-date > .col-md-12 {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    #yield-date {
        row-gap: 0.75rem;
    }

    #yield-date .col-md-3 .d-flex {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
}

#filter-company-establishment, #filter-company-user {
    width: 300px !important;
}

#event-zone-filter {
    width: 200px !important;
}

#events-timelines-wrapper h6 {
    margin-bottom: 15px !important;
}

/* Switch TTC/HT mobile : couleur violette identique au desktop */
#checkNativeSwitchMobile:checked {
    background-color: #4B49AC !important;
    border-color: #4B49AC !important;
}
#tva-choice-mobile .form-check-label {
    margin-left: 0 !important;
}

/* Cases "Illimité" des périodes de chambres construites (admin établissement) : même violet que le
   switch TTC/HT ci-dessus, pour rester cohérent avec la couleur de marque. */
.rooms-period-unlimited-checkbox {
    margin-left: 0 !important;
}
.rooms-period-unlimited-checkbox:checked {
    background-color: #4B49AC !important;
    border-color: #4B49AC !important;
}

/* Masquer en mobile les éléments de navbar déportés dans le menu burger.
   On utilise les IDs (spécificité maximale) pour contourner le display:flex!important du template. */
@media (max-width: 991.98px) {
    #item-tva,
    #item-import,
    #item-companies,
    #item-establishments {
        display: none !important;
    }
}

/* Sidebar fixe au scroll (desktop uniquement) */
@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: calc(60px + var(--site-notification-height, 0px));
        left: 0;
        height: calc(100vh - 60px - var(--site-notification-height, 0px));
        overflow-y: auto;
        overflow-x: hidden;
    }
    .main-panel {
        margin-left: 235px;
        width: calc(100% - 235px);
    }
    .sidebar-icon-only .main-panel {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    .sidebar-hidden .main-panel {
        margin-left: 0;
        width: 100%;
    }
}

/* Footer positionné hors de .main-panel — décalage identique à la sidebar (235px) */
.footer {
    margin-left: 235px;
    transition: margin-left 0.25s ease;
}
/* Footer déjà dans .main-panel (ex : admin) — pas de décalage supplémentaire */
.main-panel .footer {
    margin-left: 0;
}
@media (min-width: 992px) {
    .sidebar-icon-only .footer {
        margin-left: 70px;
    }
    .sidebar-hidden .footer {
        margin-left: 0;
    }
}
@media (max-width: 991px) {
    .footer {
        margin-left: 0;
    }
}

.card .card-title {
    text-transform: none;
    font-size: 1.05rem;
}

.card .card-title.title-faq {
    margin-bottom: 2.2rem;
}

.progress.progress-md {
    margin-bottom: 12px;
}

/* Bandeau de notification site-wide (admin-configurable, cf. templates/common/header.html.twig).
   La navbar est en position:fixed (z-index 1030) : le bandeau doit l'être aussi pour ne pas passer
   dessous, et le contenu (page-body-wrapper/sidebar) est décalé via --site-notification-height (JS). */
.site-notification-banner {
    background: #F28998;
    color: #fff;
    width: 100%;
    padding: 10px 48px 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1029;
    box-sizing: border-box;
}

/* :not(.full-page-wrapper) : les pages sans navbar fixe (ex. templates/authentication/login.html.twig,
   qui pose déjà cette classe pour annuler ce padding via le thème de base) ne doivent pas réserver cet
   espace — sinon un bandeau blanc vide apparaît en haut, rien n'étant fixé à top:0 pour le combler. */
.page-body-wrapper:not(.full-page-wrapper) {
    padding-top: calc(60px + var(--site-notification-height, 0px)) !important;
}

.site-notification-banner #site-notification-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

/* toast personnel de fin/erreur d'un lot "Initialisation d'un compte" (cf. assets/js/import-batch-alerts.js)
   — coin bas-droit, distinct du bandeau site-wide (haut, pour tout le monde) pour ne jamais se superposer */
.import-batch-alert {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    max-width: 360px;
    padding: 14px 40px 14px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.import-batch-alert-success {
    background: #57B657;
}

.import-batch-alert-error {
    background: #c0392b;
}

.import-batch-alert a {
    display: block;
    margin-top: 6px;
    color: #fff;
    text-decoration: underline;
}

/* ===== "Initialisation client" (page Administration) — refonte carte, cf.
   templates/admin/import-initialization.html.twig + assets/js/import-initialization.js ===== */

.import-init-company-card .card-body { padding: 20px 24px; }

/* alignement icône/texte des boutons d'action du haut de page (Importer, Valider l'import des données,
   Reprendre l'import) — délibérément SANS !important (contrairement à l'utilitaire Bootstrap
   ".d-inline-flex", qui écraserait le style inline display:none posé par le JS pour les masquer/afficher,
   cf. assets/js/import-initialization.js) */
.import-init-action-btn {
    display: inline-flex;
    align-items: center;
}

/* texte blanc hérité de l'ancien bouton rouge plein : le bouton est désormais .admin-danger-btn (fond blanc,
   texte rouge), ce blanc rendait le libellé invisible
#btn-import-init-clear-all,
#btn-import-init-clear-all i {
    color: #fff;
}
*/

.import-init-date-editable {
    cursor: pointer;
    border-bottom: 1px dashed #999;
}

.import-init-company-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ede9fe;
    color: #4B49AC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.import-init-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.import-init-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    border: none;
}

.import-init-chip-neutral {
    background: #ede9fe;
    color: #4B49AC;
}

/* établissements à choisir manuellement (cf. IPmsService::previewEstablishmentNames() ambigu) : chips
   cliquables qui remplacent la sélection multiple HTML native, plus lisibles et cohérentes avec le reste */
.import-init-est-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}

.import-init-chip-toggle {
    background: #fff;
    color: #6C7383;
    border: 1px solid #d8d8e6;
    cursor: pointer;
    transition: all .12s ease;
}

.import-init-chip-toggle:hover { border-color: #4B49AC; color: #4B49AC; }

.import-init-chip-selected {
    background: #4B49AC;
    color: #fff;
    border-color: #4B49AC;
}

.import-init-banner {
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

.import-init-banner-info { background: #ede9fe; color: #3d3c8e; }
.import-init-banner-error { background: #fdecea; color: #c0392b; }
.import-init-banner-success { background: #e8f5e9; color: #2e7d32; }

.import-init-empty-state {
    text-align: center;
    color: #6C7383;
    padding: 48px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 18px;
}

.import-init-empty-state i {
    font-size: 2.2rem;
    color: #c9c7ec;
    display: block;
    margin-bottom: 10px;
}

.import-init-section { margin-bottom: 22px; }

.import-init-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #434245;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.import-init-section-header i {
    color: #4B49AC;
    width: 18px;
    /* neutralise ".ti-calendar { height: 41px; }" (règle globale préexistante pour un ancien datepicker,
       assets/css/easyield-custom.css ~L199) : sans "height: auto" ici, seule l'icône calendrier hérite de
       cette hauteur (41px) une fois passée en inline-flex, et se retrouve nettement plus grande/décalée
       que les autres icônes de section (bar-chart, time...) qui n'ont jamais cette règle */
    height: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.import-init-section-count {
    background: #f1f0fb;
    color: #4B49AC;
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.import-init-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.import-init-file-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #eeeef5;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(20, 20, 50, 0.03);
}

.import-init-file-card-error {
    background: #fdf4f3;
    border-color: #f4c9c2;
}

.import-init-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* neutralise ".ti-calendar { height: 41px; }" (règle globale préexistante, cf. commentaire équivalent sur
   .import-init-section-header i) : sans ça, l'icône calendrier des rapports de réservations déborde de son
   cercle de 40px et n'est plus centrée verticalement, contrairement aux icônes bar-chart/time/file */
.import-init-file-icon i {
    height: auto;
    line-height: 1;
}

.import-init-icon-management { background: #e8f0fe; color: #2f6fed; }
.import-init-icon-segmentation { background: #ede9fe; color: #4B49AC; }
.import-init-icon-pending { background: #f1f1f4; color: #8a8a9a; }

/* le glyphe "ti-calendar" est dessiné nettement plus grand que les autres icônes de cette police
   (bar-chart, time...) à taille de police égale — correction visuelle pour un rendu cohérent */
.import-init-file-icon .ti-calendar,
.import-init-section-header .ti-calendar {
    font-size: 0.7em;
}

.import-init-file-main { flex: 1 1 auto; min-width: 0; }

.import-init-filename {
    font-weight: 700;
    color: #434245;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-init-file-card-error .import-init-filename { color: #b93a2e; }

.import-init-file-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8a8a9a;
    font-size: 0.82rem;
    margin-top: 2px;
    flex-wrap: wrap;
}

.import-init-meta-item i { margin-right: 3px; }

.import-init-date-editor { display: inline-flex; gap: 6px; align-items: center; }
.import-init-date-editor .ey-inline-input { width: 120px; }
/* touche Entrée dans le champ date = Valider (cf. import-initialization.js) ; bouton rond aligné sur le champ (36px) */
.import-init-date-editor .ey-round-btn.btn-sm { width: 36px; height: 36px; }

.import-init-progress {
    height: 6px;
    border-radius: 4px;
    background: #eeeef5;
    overflow: hidden;
    margin-top: 8px;
    max-width: 260px;
}

.import-init-progress-bar {
    height: 100%;
    background: #4B49AC;
    border-radius: 4px;
    transition: width .2s ease;
}

.import-init-file-card-error .import-init-progress-bar { background: #c0392b; }

.import-init-error-text {
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 6px;
}

.import-init-file-status {
    flex-shrink: 0;
    padding-top: 2px;
    text-align: right;
    white-space: nowrap;
}

.import-init-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.import-init-badge-success { background: #e8f5e9; color: #2e7d32; }
.import-init-badge-error { background: #fdecea; color: #c0392b; }
.import-init-badge-info { background: #ede9fe; color: #3d3c8e; }
.import-init-badge-neutral { background: #f1f1f4; color: #6C7383; }

.import-init-file-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: 2px;
}

.import-batch-alert button {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

/* Blocs mois du Dashboard : retournement (flip) + calendrier journalier coloré N vs N-1
   (cf. templates/dashboard/dashboard.html.twig, assets/js/dashboard.js) */
.month-flip-card {
    /* hauteur explicite requise (pas juste min-height) pour que .month-flip-inner{height:100%} et
       .month-flip-front/back{inset:0} se résolvent correctement (une % height ne se calcule que contre
       une hauteur définie du parent, jamais contre un min-height) — valeur de repli avant la mesure JS
       (cf. assets/js/dashboard.js) qui fixe la hauteur réelle nécessaire au contenu de chaque carte. */
    perspective: 1000px;
    height: 480px;
}

.month-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.month-flip-card.flipped .month-flip-inner {
    transform: rotateY(180deg);
}

.month-flip-front,
.month-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow-y: auto;
    /* overflow-y:auto force aussi le clipping horizontal (une des deux valeurs "overflow" ne peut pas
       rester visible si l'autre ne l'est pas) : sans cette marge, l'anneau du survol/du mois en cours
       (box-shadow qui dépasse de 3px la carte) était rogné par ce conteneur. */
    padding: 4px;
    margin: -4px;
}

.month-flip-back {
    transform: rotateY(180deg);
}

/* bordure transparente réservée en permanence (même largeur que la bordure du survol ci-dessous) : le
   survol ne change alors que la couleur, jamais la largeur, donc ne redimensionne jamais la carte et ne
   fait pas bouger le contenu (titre, jauge...) — la carte "mois en cours" a sa propre bordure inline
   (dashboard.html.twig), de même largeur, qui prend le dessus. */
.month-flip-front .card {
    /* border: 2px solid transparent; */
    /* border: 2px solid rgba(221, 216, 251, 0.49); */
    /* bordure discrète commune aux .card, 1px comme partout ; le survol et le mois en cours affichent 2px en ajoutant le
       2e pixel par box-shadow (pas par la bordure) : la largeur de bordure ne change jamais, la carte ne bouge pas */
    border: 1px solid rgba(221, 216, 251, 0.49);
    /* fondu doux du contour violet au survol (apparition et disparition) */
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* même double bordure que le mois en cours (cf. dashboard.html.twig, style inline sur .card du mois
   correspondant à aujourd'hui) : bordure pleine + anneau, pas une version atténuée. */
.month-flip-card:not(.flipped) .month-flip-front .card:hover {
    cursor: pointer;
    border-color: #4B49AC;
    /* box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.15); */
    box-shadow: 0 0 0 1px #4B49AC, 0 0 0 4px rgba(75, 73, 172, 0.15);
}

/* carte placeholder (mode Réalisé/Prévisionnel, mois entièrement hors période — cf.
   DashboardController::dashboard()) : le clic est désactivé côté JS (dashboard.js), donc pas d'effet
   hover "cliquable" pour ne pas induire en erreur — la bordure transparente ci-dessus reste inchangée. */
.month-flip-card--placeholder:not(.flipped) .month-flip-front .card:hover {
    cursor: default;
}

/* bascule Annuel/Réalisé/Prévisionnel (en-tête Dashboard, cf. dashboard.html.twig) — 3 options dans une
   piste arrondie, fond qui glisse derrière l'option active. Grid à 3 colonnes 1fr : chaque colonne prend
   automatiquement la largeur du plus long libellé ("Prévisionnel"), donc les 3 options ET le fond qui
   glisse (calc(33.333%)) ont exactement la même largeur — pas de décalage texte/fond possible.
   translateX(100%/200%) déplace le fond de sa propre largeur (1/3 de la piste), jusqu'à la 2e/3e option.
   height:42px : même hauteur que les boutons ronds à sa gauche (.btn-icon, cf. vertical-layout-light/style.css). */
.tri-toggle {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: 42px;
    background: rgba(75, 73, 172, 0.2);
    border-radius: 20px;
    padding: 3px;
}

.tri-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(33.333% - 2px);
    height: calc(100% - 6px);
    background: #4B49AC;
    border-radius: 16px;
    transition: transform 0.25s ease;
    z-index: 0;
}

.tri-toggle[data-active="realise"] .tri-toggle-thumb {
    transform: translateX(100%);
}

.tri-toggle[data-active="previsionnel"] .tri-toggle-thumb {
    transform: translateX(200%);
}

.tri-toggle-option {
    position: relative;
    z-index: 1;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6C7383;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border-radius: 16px;
    transition: color 0.2s ease;
}

.tri-toggle-option:hover {
    color: #4B49AC;
    text-decoration: none;
}

.tri-toggle-option.active,
.tri-toggle-option.active:hover {
    font-weight: 700;
    color: #fff;
}

/* bascule Mensuel/Journalier (en-tête page Objectifs, cf. budget.html.twig) — même mécanique que .tri-toggle
   ci-dessus (grid + fond qui glisse), avec 2 colonnes au lieu de 3. */
.bi-toggle {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    height: 42px;
    background: rgba(75, 73, 172, 0.2);
    border-radius: 20px;
    padding: 3px;
}

.bi-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #4B49AC;
    border-radius: 16px;
    transition: transform 0.25s ease;
    z-index: 0;
}

.bi-toggle[data-active="journalier"] .bi-toggle-thumb {
    transform: translateX(100%);
}

.bi-toggle-option {
    position: relative;
    z-index: 1;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6C7383;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border-radius: 16px;
    transition: color 0.2s ease;
}

.bi-toggle-option:hover {
    color: #4B49AC;
    text-decoration: none;
}

.bi-toggle-option.active,
.bi-toggle-option.active:hover {
    font-weight: 700;
    color: #fff;
}

.month-calendar-dow-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

.month-calendar-dow-row span {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.month-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-tile {
    border-radius: 6px;
    padding: 6px 2px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}

/* contour au survol retiré à la demande (le tooltip suffit à identifier le jour survolé)
.day-tile:hover {
    border-color: #4B49AC;
}
*/

/* jour hors de la fenêtre Réalisé/Prévisionnel sur le mois coupé (cf. DashboardController::buildDailyCalendar) —
   visibility:hidden garde la cellule dans la grille (alignement des colonnes de semaine des jours visibles
   préservé) mais la rend invisible et insensible à la souris, donc sans tooltip au survol. */
.day-tile--hidden {
    visibility: hidden;
    cursor: default;
}

/* grille "Journalier" de la page Objectifs (cf. templates/budget/_daily_calendar.html.twig) — colonnes 1fr :
   les 7 jours se répartissent sur toute la largeur disponible de la carte (comme .month-calendar-grid du
   Dashboard), les cellules restent compactes grâce à leur contenu (champs libellés, police réduite) plutôt
   qu'à une largeur de colonne fixe. Classes dédiées (pas .month-calendar-dow-row/.month-calendar-grid du
   Dashboard) pour ne pas répercuter ces ajustements sur son calendrier en lecture seule. */
/* filet de sécurité : si les 7 colonnes ne tiennent toujours pas (petit écran), on scrolle horizontalement
   plutôt que de déborder du cadre de la carte — même principe que .table-responsive pour le tableau Mensuel. */
.budget-daily-calendar-scroll {
    overflow-x: auto;
}

.budget-daily-dow-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 4px;
    min-width: 700px;
}

.budget-daily-dow-row span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.budget-daily-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    min-width: 700px;
}

.budget-day-cell {
    /* min-width:0 indispensable sur un enfant de grille 1fr : sans ça, une colonne 1fr ne peut jamais devenir
       plus étroite que la largeur intrinsèque minimale de son contenu (les inputs notamment), ce qui pousse
       les 7 colonnes à dépasser la largeur du conteneur — la dernière déborde alors hors de la carte. */
    min-width: 0;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.budget-day-cell:hover,
.budget-day-cell:focus-within {
    border-color: rgba(75, 73, 172, 0.35);
    box-shadow: 0 2px 8px rgba(75, 73, 172, 0.12);
}

.budget-day-cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f1f1f5;
}

/* tailles alignées sur le calendrier de l'onglet Stagnation (templates/stagnation/stagnation.html.twig) :
   numéro du jour = 1rem/700 (même taille que la date du jour là-bas), libellés/valeurs = 0.72rem (même
   taille que les lignes nuitées/TO là-bas) */
.budget-day-number {
    font-size: 1rem;
    font-weight: 700;
    color: #4B49AC;
}

.budget-day-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.budget-day-field-label {
    flex-shrink: 0;
    width: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
}

.budget-day-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    text-align: right;
    padding: 4px 6px;
    height: auto;
    background: #f8f9fb;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.budget-day-input:focus {
    background: #fff;
    border-color: #4B49AC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 73, 172, 0.15);
}

/* margin-top:auto pousse le badge tout en bas dans une colonne flex (.budget-day-cell), align-self:flex-end
   le colle à droite plutôt que de l'étirer sur toute la largeur (comportement par défaut d'un enfant flex) */
.budget-day-occupancy {
    align-self: flex-end;
    margin-top: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4B49AC;
    background: #ede9fe;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* grille "Mensuel" de la page Objectifs (cf. templates/budget/_monthly_calendar.html.twig) — même langage
   visuel que la grille "Journalier" ci-dessus (budget-day-*), classes dédiées budget-month-* pour ne pas
   toucher la grille Journalier déjà vérifiée ; valeurs reprises à l'identique pour rester cohérent entre les
   deux modes de saisie. 6 colonnes (2 lignes de 6 mois) plutôt que 7 : pas de ligne "jours de la semaine" au
   dessus, les cellules peuvent donc être un peu plus larges. */
.budget-month-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.budget-month-cell {
    min-width: 0;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.budget-month-cell:hover,
.budget-month-cell:focus-within {
    border-color: rgba(75, 73, 172, 0.35);
    box-shadow: 0 2px 8px rgba(75, 73, 172, 0.12);
}

.budget-month-cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f1f1f5;
}

.budget-month-label {
    font-size: 1rem;
    font-weight: 700;
    color: #4B49AC;
}

.budget-month-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.budget-month-field-label {
    flex-shrink: 0;
    width: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
}

.budget-month-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    text-align: right;
    padding: 4px 6px;
    height: auto;
    background: #f8f9fb;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.budget-month-input:focus {
    background: #fff;
    border-color: #4B49AC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 73, 172, 0.15);
}

/* margin-top:auto pousse le badge tout en bas dans une colonne flex (.budget-month-cell), align-self:flex-end
   le colle à droite plutôt que de l'étirer sur toute la largeur (comportement par défaut d'un enfant flex) */
.budget-month-occupancy {
    align-self: flex-end;
    margin-top: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4B49AC;
    background: #ede9fe;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* totaux du mois affichés en haut à droite de la grille Journalier (cf. #budget-daily-totals dans
   budget.html.twig, recalculateDailyTotals() dans easyield-custom.js) */
.budget-total-badge {
    background: #ede9fe;
    color: #4B49AC;
    border-radius: 10px;
    padding: 3px 10px;
    font-weight: 600;
    white-space: nowrap;
}

.day-tile-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    font-size: 0.8rem;
    min-width: 460px;
    pointer-events: none;
}

.day-tile-tooltip .day-tile-tooltip-title {
    font-weight: 700;
    color: #4B49AC;
    margin-bottom: 2px;
    font-size: 0.82rem;
}

/* jour de semaine N-1 sous le titre — même taille/couleur que les en-têtes de colonne N/N-1/Écart
   (.dtt-head ci-dessous), pour rester visuellement rattaché à la même famille d'information secondaire */
.day-tile-tooltip .day-tile-tooltip-n1-subtitle {
    font-size: 0.66rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* dates N-1 (date à date / comparable) en gélules discrètes côte à côte sous le titre du tooltip */
.day-tile-tooltip .dtt-n1-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 10px;
}

.day-tile-tooltip .dtt-n1-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f5f3ff;
    border: 1px solid #ebe9fb;
    color: #6b7280;
    font-size: 0.66rem;
    font-weight: 600;
    white-space: nowrap;
}

.day-tile-tooltip .dtt-n1-chip-label {
    color: #9ca3af;
    font-weight: 500;
}

/* grille à 6 colonnes (libellé, N, N-1 date à date, Écart, N-1 date comparable, Écart) pour un alignement
   propre des valeurs entre elles, plutôt que du texte en ligne où les nombres ne tombent pas sous une
   même colonne. */
.day-tile-tooltip .day-tile-tooltip-grid {
    display: grid;
    grid-template-columns: auto repeat(5, minmax(56px, 1fr));
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}

.day-tile-tooltip .dtt-head {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: right;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.day-tile-tooltip .dtt-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

.day-tile-tooltip .dtt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.day-tile-tooltip .dtt-value {
    text-align: right;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.day-tile-tooltip .dtt-value-n1 {
    text-align: right;
    font-weight: 400;
    color: #9ca3af;
    white-space: nowrap;
}

.day-tile-tooltip .dtt-diff-up {
    text-align: right;
    font-weight: 600;
    color: #16a34a;
    white-space: nowrap;
}

.day-tile-tooltip .dtt-diff-down {
    text-align: right;
    font-weight: 600;
    color: #dc2626;
    white-space: nowrap;
}

/* tooltip HTML "fond blanc / tableau" des graphiques Chart.js (Dashboard + Yield) — même esprit visuel
   que .day-tile-tooltip ci-dessus (fond blanc, coins arrondis, ombre), généré par
   window.buildEasyieldChartTooltip (cf. dashboard.js) via plugins.tooltip.external de chaque graphique */
.chart-html-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    font-size: 0.8rem;
    max-width: 380px;
    pointer-events: none;
    /* police du corps + repli 'themify' (cf. assets/vendors/ti-icons) pour afficher les glyphes
       ti-comment/ti-comment-alt utilisés par certaines lignes (commentaires jour), même repli que
       l'ancien bodyFont du tooltip natif de Chart.js */
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif, 'themify';
}

.chart-html-tooltip .cht-title {
    font-weight: 700;
    color: #4B49AC;
    margin-bottom: 6px;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* sous-titre "N-1 : <jour et date N-1>" (2e ligne de titre) — même principe que
   .day-tile-tooltip-n1-subtitle sur le calendrier mensuel ; tire la ligne vers le titre juste au-dessus
   plutôt que de dupliquer son margin-bottom */
.chart-html-tooltip .cht-title-n1 {
    font-size: 0.66rem;
    color: #9ca3af;
    margin-top: -4px;
    margin-bottom: 6px;
    white-space: nowrap;
}

/* message pleine largeur hors grille/tableau (ex: "Aucun import à cette date" du tooltip matrice de
   Montée en charge cumulée, cf. buildChargeChartMatrixTooltip) */
.chart-html-tooltip .cht-line {
    color: #374151;
    white-space: normal;
}

/* corps du tooltip en grille à 3 colonnes (vignette, libellé, valeur) pour un alignement "tableau" des
   valeurs entre elles, plutôt que du texte en ligne où les nombres ne tombent pas sous une même colonne
   — même principe que .day-tile-tooltip-grid ci-dessus */
.chart-html-tooltip .cht-body {
    display: grid;
    grid-template-columns: 10px auto minmax(40px, 1fr);
    column-gap: 8px;
    row-gap: 3px;
    align-items: center;
}

/* chaque ligne logique est un wrapper display:contents : ses enfants (vignette/libellé/valeur) rejoignent
   directement la grille du parent .cht-body, ce qui garde le HTML lisible par ligne sans casser l'alignement */
.chart-html-tooltip .cht-row {
    display: contents;
}

.chart-html-tooltip .cht-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-html-tooltip .cht-dot-empty {
    background: transparent;
}

.chart-html-tooltip .cht-label {
    color: #374151;
    white-space: nowrap;
}

.chart-html-tooltip .cht-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

/* ligne sans valeur scindable (en-tête de bloc, message "aucune donnée", commentaire libre...) : occupe
   les colonnes libellé + valeur, peut passer à la ligne (commentaires potentiellement longs) */
.chart-html-tooltip .cht-full {
    grid-column: 2 / -1;
    color: #374151;
    white-space: normal;
}

.chart-html-tooltip .cht-spacer {
    grid-column: 1 / -1;
    height: 6px;
}

/* aucune ligne de ce tooltip n'a de vraie pastille de couleur (cf. showDot dans buildEasyieldChartTooltip,
   ex: "Taux d'occupation N vs N-1") : la colonne vignette est entièrement retirée de la grille plutôt que
   laissée vide, sinon le texte reste décalé par rapport au titre avec une colonne fantôme devant */
.chart-html-tooltip.chart-html-tooltip--no-dots .cht-body {
    grid-template-columns: auto minmax(40px, 1fr);
}

.chart-html-tooltip.chart-html-tooltip--no-dots .cht-full {
    grid-column: 1 / -1;
}

/* variante "matrice" du tooltip HTML ci-dessus, réservée au graphique "Montée en charge cumulée"
   (cf. buildChargeChartMatrixTooltip dans dashboard.js) : un vrai tableau croisé (1 ligne par métrique,
   1 colonne par série Période actuelle/N-1/Objectifs) plutôt que la liste de lignes du tooltip générique
   — nécessite plus de largeur, d'où le max-width levé ici */
.chart-html-tooltip.chart-html-tooltip--matrix {
    max-width: none;
    width: max-content;
}

.chart-html-tooltip .cht-matrix {
    border-collapse: collapse;
}

.chart-html-tooltip .cht-matrix th,
.chart-html-tooltip .cht-matrix td {
    padding: 4px 12px;
    white-space: nowrap;
    text-align: right;
}

.chart-html-tooltip .cht-matrix thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.chart-html-tooltip .cht-matrix thead th:first-child,
.chart-html-tooltip .cht-matrix tbody td:first-child {
    text-align: left;
    padding-left: 0;
}

.chart-html-tooltip .cht-matrix thead .cht-dot {
    margin-right: 6px;
    vertical-align: middle;
}

.chart-html-tooltip .cht-matrix tbody td:first-child {
    font-weight: 600;
    color: #374151;
}

.chart-html-tooltip .cht-matrix tbody td {
    color: #111827;
    font-weight: 600;
}

.chart-html-tooltip .cht-matrix tbody tr + tr td {
    border-top: 1px solid #f5f5f5;
}

.chart-html-tooltip .cht-matrix .cht-matrix-empty {
    color: #9ca3af;
    font-weight: 400;
}

/* Modale package (admin/packages.html.twig) — cases à cocher "Onglets de menu" / "Autres fonctionnalités" */
.package-feature-checkbox {
    margin-left: 0 !important;
}

.package-feature-checkbox:checked {
    background-color: #4B49AC;
    border-color: #4B49AC;
}

/* Modale "Nouveau thème" (admin/faq.html.twig) — PMS associés + toggle "Actif" */
.pms-checkbox:checked,
#theme-active:checked {
    background-color: #4B49AC;
    border-color: #4B49AC;
}

/* Modale utilisateur, onglet Accès (admin/admin.html.twig) — Etablissements autorisés + Packages */
.user-establishment-checkbox:checked,
.user-package-checkbox:checked,
.ai-copilot-admin-checkbox:checked {
    background-color: #4B49AC;
    border-color: #4B49AC;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   Copilote IA — bulle flottante globale (cf. templates/common/_ai_copilot.html.twig,
   assets/js/ai-copilot.js). Masquée par défaut, affichée en JS seulement si l'établissement courant a
   Establishment::$aiCopilotEnabled = true (cf. GET /ai-copilot/status).
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
.ai-copilot-fab {
    position: fixed; right: 26px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%;
    background: #4B49AC; color: #fff; border: none; box-shadow: 0 8px 20px -8px rgba(75,73,172,0.55);
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    z-index: 1040; transition: transform 0.15s ease;
}
.ai-copilot-fab:hover { transform: scale(1.06); }
/* avatar d'Izzy : photo recadrée en rond, visage légèrement au-dessus du centre de l'image source */
.ai-copilot-fab img, .ai-copilot-avatar img, .ai-copilot-msg-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 30%; display: block;
}
.ai-copilot-fab { padding: 0; border: 3px solid #fff; overflow: hidden; }

.ai-copilot-panel {
    position: fixed; right: 22px; bottom: 94px; width: 400px; max-width: calc(100vw - 32px);
    height: min(640px, calc(100vh - 130px)); background: #fff; border-radius: 18px;
    box-shadow: 0 20px 45px -20px rgba(35,34,47,0.35); border: 1px solid #edeef2;
    display: flex; flex-direction: column; overflow: hidden; z-index: 1041;
}

.ai-copilot-header { background: #4B49AC; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.ai-copilot-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.85); overflow: hidden;
}
.ai-copilot-titles { flex: 1; min-width: 0; }
.ai-copilot-titles h2 { margin: 0; font-size: 0.94rem; font-weight: 700; }
.ai-copilot-role { font-weight: 400; opacity: 0.8; font-size: 0.8rem; }
.ai-copilot-scope-chip {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; background: rgba(255,255,255,0.16);
    border-radius: 99px; padding: 2px 9px; font-size: 0.7rem; font-weight: 700;
}
.ai-copilot-close { background: none; border: none; color: #fff; opacity: 0.85; cursor: pointer; font-size: 1rem; padding: 4px; }
.ai-copilot-close:hover { opacity: 1; }

.ai-copilot-status-strip {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 14px;
    border-bottom: 1px solid #edeef2; background: #fbfaff;
}
.ai-copilot-pill {
    display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700;
    padding: 3px 8px; border-radius: 99px; background: #f0fdf4; color: #16a34a; white-space: nowrap;
}
.ai-copilot-quota-wrap { flex: 1; min-width: 110px; }
.ai-copilot-quota-line { display: flex; justify-content: space-between; font-size: 0.66rem; color: #9ca3af; font-weight: 700; margin-bottom: 3px; }
.ai-copilot-quota-bar { height: 5px; border-radius: 99px; background: #edeef2; overflow: hidden; }
.ai-copilot-quota-fill { height: 100%; border-radius: 99px; background: #16a34a; transition: width 0.2s ease, background 0.2s ease; }

.ai-copilot-thread { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f6fb; }
.ai-copilot-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 0.84rem; line-height: 1.46; }
.ai-copilot-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #edeef2; border-bottom-left-radius: 3px; }
/* réponses d'Izzy et indicateur de saisie : avatar à gauche, aligné sur le bas de la bulle */
.ai-copilot-bot-row { align-self: flex-start; display: flex; align-items: flex-end; gap: 7px; max-width: 94%; }
.ai-copilot-msg-avatar { width: 26px; height: 26px; flex-shrink: 0; border: 1px solid #edeef2; }
.ai-copilot-bot-row .ai-copilot-msg, .ai-copilot-bot-row .ai-copilot-typing { max-width: none; min-width: 0; align-self: auto; }
.ai-copilot-msg.user { align-self: flex-end; background: #4B49AC; color: #fff; border-bottom-right-radius: 3px; }
/* question sur plusieurs lignes : retours à la ligne conservés dans la bulle */
.ai-copilot-msg.user .ai-copilot-msg-content { white-space: pre-wrap; word-break: break-word; }
.ai-copilot-msg-content p { margin: 0 0 6px; }
.ai-copilot-msg-content p:last-child { margin-bottom: 0; }
.ai-copilot-msg-content ul, .ai-copilot-msg-content ol { margin: 0 0 6px; padding-left: 1.15em; }
.ai-copilot-msg-content ul:last-child, .ai-copilot-msg-content ol:last-child { margin-bottom: 0; }
.ai-copilot-msg-content li { margin-bottom: 2px; }
.ai-copilot-msg-content strong { font-weight: 700; }
.ai-copilot-msg-time { font-size: 0.62rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ai-copilot-msg.bot .ai-copilot-msg-time { color: #9ca3af; text-align: left; }
.ai-copilot-msg.user .ai-copilot-msg-time { color: rgba(255, 255, 255, 0.75); text-align: right; }
.ai-copilot-msg.system {
    align-self: center; background: #fff7ed; color: #b45309; border: 1px solid #fde8cc; font-size: 0.78rem;
    text-align: center; max-width: 96%;
}
.ai-copilot-msg.system.danger { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.ai-copilot-typing { align-self: flex-start; display: flex; gap: 4px; padding: 9px 12px; }
.ai-copilot-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: ai-copilot-blink 1.1s infinite ease-in-out; }
.ai-copilot-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-copilot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-copilot-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.ai-copilot-composer { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.ai-copilot-composer form { display: flex; gap: 8px; align-items: flex-end; }
/* textarea multi-ligne (Entrée = nouvelle ligne), hauteur ajustée au contenu en JS (max 140px) */
.ai-copilot-composer input, .ai-copilot-composer textarea {
    flex: 1; border: 1px solid #edeef2; background: #fbfaff; border-radius: 10px; padding: 9px 12px;
    font-size: 0.84rem; font-family: inherit;
}
.ai-copilot-composer textarea { resize: none; line-height: 1.4; min-height: 38px; max-height: 140px; overflow-y: hidden; display: block; }
.ai-copilot-send {
    background: #4B49AC; color: #fff; border: none; border-radius: 10px; width: 40px; height: 38px; flex-shrink: 0;
    cursor: pointer; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
}
.ai-copilot-send.is-stop { background: #dc2626; font-size: 0.8rem; }
.ai-copilot-send.is-stop:hover { background: #b91c1c; }
.ai-copilot-stop-icon { display: inline-block; width: 11px; height: 11px; background: #fff; border-radius: 2px; }
.ai-copilot-send:disabled, .ai-copilot-composer input:disabled, .ai-copilot-composer textarea:disabled { opacity: 0.45; cursor: not-allowed; }
.ai-copilot-foot { display: flex; justify-content: space-between; font-size: 0.66rem; color: #9ca3af; }
.ai-copilot-locked-note { background: #fee2e2; color: #dc2626; border-radius: 8px; padding: 7px 9px; font-size: 0.74rem; font-weight: 700; }

@media (max-width: 480px) {
    .ai-copilot-panel { right: 16px; bottom: 84px; }
    .ai-copilot-fab { right: 18px; bottom: 18px; }
}

/* Modale Établissement (admin/admin.html.twig) — section "Copilote IA" mise en avant : à la différence des
   autres réglages de la modale, celui-ci a un impact direct sur la facturation (appels à l'API Claude), d'où
   un encadré distinct plutôt qu'une simple case parmi d'autres */
.ai-copilot-admin-section {
    background: #f5f3ff; border: 1px solid #ded9f7; border-radius: 10px; padding: 14px 16px;
}
.ai-copilot-admin-section-title {
    display: flex; align-items: center; gap: 7px; font-weight: 700; color: #4B49AC; margin-bottom: 10px;
}
/* le thème admin remet .form-check { padding-left: 0 } globalement (compensé ailleurs par le contexte
   autour) : sans ce padding, la case (margin-left: -1.5em par défaut Bootstrap) déborde de 24px à gauche —
   invisible d'ordinaire, mais flagrant ici où la case est dans un encadré avec une bordure visible */
.ai-copilot-admin-section .form-check { padding-left: 1.5em; }
/* modale Utilisateur (admin/admin.html.twig) uniquement : la case "Autoriser le copilote IA..." vit à un
   niveau d'imbrication Bootstrap (.row > .col-md-12) différent de la modale Établissement, avec un
   décalage supplémentaire propre à ce contexte — recentré pour que la case s'aligne avec le titre et le
   reste du texte de l'encadré, sans toucher à la règle partagée ci-dessus (modale Établissement) */
#user-ai-copilot-row .ai-copilot-admin-section .form-check { margin-left: 0; }
.ai-copilot-admin-note {
    display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 0.78rem; font-weight: 600;
    color: #b45309;
}

/* jauges "Copilote IA" des tableaux Établissements/Utilisateurs (admin/admin.html.twig), visibles
   uniquement par le super admin — usage du mois en cours par rapport au quota configuré */
.ai-copilot-gauge { display: flex; flex-direction: column; gap: 3px; min-width: 90px; }
.ai-copilot-gauge-bar { height: 5px; border-radius: 99px; background: #edeef2; overflow: hidden; }
.ai-copilot-gauge-fill { height: 100%; border-radius: 99px; }
.ai-copilot-gauge-label { font-size: 0.74rem; font-weight: 700; color: #6b6b7c; font-variant-numeric: tabular-nums; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   Page Yield — bloc "Météo jour par jour" (cf. templates/yield/yield.html.twig, assets/js/weather-chart.js).
   Désactivé par défaut, affiché/masqué via l'entrée "Météo jour par jour" du dropdown Indicateurs.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
.yield-weather-legend {
    display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 12px; font-size: 0.82rem; font-weight: 600; /* 20px sous le titre, comme les autres légendes */
    color: #6C7383; align-items: center;
}
.yield-weather-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.yield-weather-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
/* courbes des températures min : trait (plein pour l'actuel, pointillé pour N-1) au lieu d'une pastille */
.yield-weather-swatch-line { width: 18px; height: 3px; border-radius: 2px; }
.yield-weather-swatch-line.is-dashed { background: none !important; border-top: 3px dashed currentColor; height: 0; }
.yield-weather-legend-icon { width: 20px; height: 20px; }
.chart-html-tooltip .cht-weather-icon { width: 20px; height: 20px; vertical-align: -5px; margin-right: 6px; }
/* tooltip météo : températures aux couleurs des courbes (max rose-rouge, min bleu) */
.chart-html-tooltip .cht-temp-max { color: #E8577E; font-weight: 700; }
.chart-html-tooltip .cht-temp-min { color: #4B8BF5; font-weight: 700; }
.yield-weather-status { padding: 28px 0; text-align: center; color: #6C7383; font-size: 0.85rem; }
.yield-weather-status.is-error { color: #b45309; }
.yield-weather-note {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 14px;
    background: #f5f6fb; border-radius: 8px; font-size: 0.78rem; color: #6C7383; line-height: 1.5;
}
.yield-weather-note > i { font-size: 1rem; margin-top: 2px; color: #4B49AC; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   Page "Demande" — calendrier de pression de la demande (cf. templates/demand/demand.html.twig,
   assets/js/demand.js). Mêmes codes visuels que le calendrier de la page Stagnation : case claire,
   bordure + halo + pastille de la couleur du niveau.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
.demand-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.demand-day-name {
    text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #9ca3af;
    letter-spacing: 0.05em; padding-bottom: 4px;
}
.demand-day {
    position: relative; border-radius: 10px; padding: 10px 8px; min-height: 118px; background: #fafbfc; color: #1f2937;
    border: 2px solid #e5e7eb; cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.demand-day:hover, .demand-day--pinned { transform: translateY(-2px); }
.demand-day--pinned { outline: 2px solid #4B49AC; outline-offset: 2px; }
.demand-day--past, .demand-day--missing { background: #f5f6f8; color: #9ca3af; }
.demand-day--insufficient { border-style: dashed; }
.demand-day--dimmed { opacity: 0.25; }
.demand-day-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; }
.demand-day-date { font-size: 0.85rem; font-weight: 700; }
.demand-day-score { font-size: 1.45rem; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.demand-day-score span { font-size: 0.72rem; font-weight: 600; color: #9ca3af; margin-left: 1px; }
.demand-day-level { font-size: 0.68rem; font-weight: 700; margin-top: 2px; }
.demand-day-meta { font-size: 0.72rem; color: #6C7383; margin-top: 4px; }
.demand-day-note { font-size: 0.68rem; color: #9ca3af; margin-top: 4px; }

.demand-banner {
    display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 6px;
    background: #f5f6fb; color: #4B49AC; font-size: 0.78rem;
}
.demand-banner--warning { background: #fef3c7; color: #b45309; }

.demand-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.demand-legend-item {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #6C7383; background: none;
    border: 2px solid transparent; border-radius: 8px; padding: 4px 8px; cursor: pointer;
}
.demand-legend-item > span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.demand-legend-item em { font-style: normal; color: #9ca3af; font-size: 0.72rem; }
.demand-legend-item.active { border-color: #4B49AC; }
/* légende sur une seule ligne sur grand écran : « Dynamique » en tête, niveaux répartis sur la largeur */
.demand-legend { align-items: center; }
.demand-legend-title { font-size: 0.78rem; font-weight: 700; color: #3d3c8e; margin-right: 4px; }
@media (min-width: 1200px) {
    .demand-legend { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
    .demand-legend-item { white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .demand-legend-item { padding: 4px 4px; }
}

.demand-method { font-size: 0.82rem; color: #4b5563; line-height: 1.6; }
/* page Demande interne (19/11/2026) : mention demande interne, bandeau de synthèse, bouton dates passées, méthode en accordéon */
.demand-asof-status { color: #4B49AC; font-size: 14px; white-space: nowrap; }
.demand-asof-warning { flex-shrink: 0; }
@media (max-width: 575.98px) {
    .demand-asof-warning { flex-shrink: 1; max-width: 100%; border-radius: 14px; }
    .demand-asof-status { white-space: normal; }
}
.demand-internal-note { margin: 4px 0 16px !important; }
/* tuiles de synthèse au-dessus du calendrier (réutilisent .al-tiles / .al-tile de la page Radar) */
.demand-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .demand-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demand-kpis .al-tile-label i { margin-right: 4px; }
.demand-kpis .al-tile-value small { font-size: 0.9rem; font-weight: 700; color: #9ca3af; margin-left: 2px; }
.demand-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 991.98px) { .demand-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demand-summary-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 12px; background: #fafaff; border: 1px solid #eeedfa; }
.demand-summary-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: #6C7383; }
.demand-summary-label i { color: #4B49AC; font-size: 0.8rem; }
.demand-summary-value { font-size: 1.6rem; font-weight: 800; color: #3d3c8e; line-height: 1.2; }
.demand-summary-value small { font-size: 0.9rem; font-weight: 700; color: #9ca3af; margin-left: 2px; }
.demand-summary-sub { font-size: 0.78rem; color: #6C7383; }
.demand-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
/* en-tête du bloc calendrier : titre à gauche, bouton « Masquer les dates passées » en haut à droite */
.demand-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
.demand-card-head .card-title { margin-bottom: 0; }
.demand-toolbar--head { margin-bottom: 0; flex-shrink: 0; }
.demand-card-head + .demand-internal-note { margin-top: 16px !important; }
.demand-past-toggle { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #ddd8fb; background: #fff; color: #4B49AC; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.demand-past-toggle:hover, .demand-past-toggle.active { background: #f5f3ff; border-color: #c4bff3; }
.demand-day[hidden], .demand-blank[hidden] { display: none !important; }
/* jour passé de la semaine en cours, dates passées masquées : case vide, sans contenu ni bordure */
.demand-day--collapsed { visibility: hidden; min-height: 0 !important; }
.demand-method-accordion > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 24px; cursor: pointer; }
.demand-method-accordion > summary::-webkit-details-marker { display: none; }
.demand-method-title { font-size: 1rem; font-weight: 700; color: #1f2937; }
.demand-method-chevron { margin-left: auto; color: #4B49AC; transition: transform 0.2s; }
.demand-method-accordion[open] .demand-method-chevron { transform: rotate(180deg); }
.demand-method-accordion .demand-method { padding: 0 24px 22px; }
.demand-weights-wrap { overflow-x: auto; margin: 8px 0 12px; }
.demand-weights { border-collapse: collapse; min-width: 420px; font-size: 0.82rem; }
.demand-weights th, .demand-weights td { padding: 7px 16px; border-bottom: 1px solid #f0f0f6; text-align: right; white-space: nowrap; }
.demand-weights th:first-child, .demand-weights td:first-child { text-align: left; }
.demand-weights th { font-weight: 800; color: #3d3c8e; }
.demand-method ul { padding-left: 1.2em; margin: 8px 0; }

.demand-tooltip.chart-html-tooltip { max-width: 420px; }
.demand-tooltip .demand-tooltip-score .cht-label, .demand-tooltip .demand-tooltip-score .cht-value { color: #4B49AC; font-weight: 700; }
.demand-tooltip .demand-tooltip-section { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: #9ca3af; letter-spacing: 0.04em; }
.demand-tooltip .demand-tooltip-component .cht-label, .demand-tooltip .demand-tooltip-component .cht-value { font-size: 0.74rem; color: #6C7383; font-weight: 400; }

/* mobile (< 768px) : même principe que le calendrier Stagnation — 2 colonnes lisibles plutôt que 7 hors
   écran, sans en-têtes de jours ni cases vides (le jour de la semaine figure déjà dans chaque case) */
@media (max-width: 767.98px) {
    .demand-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .demand-calendar .demand-day-name,
    .demand-calendar .demand-blank { display: none; }
    .demand-day { min-height: 0; padding: 10px 10px; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   Page Promotions — fiche statistique d'une promotion (modale #promotionStatsModal, lecture seule, cf.
   templates/promotions/_promotion_stats.html.twig)
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
#promotions-table .promo-stats-cell { width: 1%; padding-right: 4px; }
.btn-promotion-stats.btn-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
/* .btn-promotion-stats:hover { background-color: transparent !important; border-color: inherit !important; color: inherit !important; } */
/* fiche statistique : rose corail, couleur d'accent de la charte (bandeau de notification, courbes N de Yield),
   pour se distinguer du violet de l'icône du titre et bien signaler un bouton cliquable ; au survol, corail plein +
   icône blanche + légère ombre (le vert essayé d'abord ne s'accordait pas au design) */
.btn-promotion-stats.btn-icon { background: #fdeef1 !important; border: 1px solid #f9d3dc !important; color: #E8577E !important; transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn-promotion-stats.btn-icon:hover, .btn-promotion-stats.btn-icon:focus { background: #F28998 !important; border-color: #F28998 !important; color: #fff !important; box-shadow: none !important; transform: translateY(-1px); }
.btn-promotion-stats.btn-icon i { color: inherit !important; }
.promo-stats-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.promo-stats-head h4 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #1f2937; }
.promo-stats-pill { display: inline-block; border-radius: 9999px; padding: 0.2em 0.7em; font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.promo-stats-section {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #4B49AC;
    margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #ede9fe;
}
.promo-stats-params { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 0.85rem; }
.promo-stats-params dt { color: #6C7383; font-weight: 600; }
.promo-stats-params dd { margin: 0; color: #1f2937; }
.promo-stats-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.promo-stats-tile { background: #f8f9fc; border-radius: 10px; padding: 12px; }
.promo-stats-tile-label { display: block; font-size: 0.72rem; color: #6C7383; margin-bottom: 4px; }
/* même rendu pour toutes les valeurs (nuitées comme montants) : le montant convertible TTC/HT et son
   symbole restent sur une ligne, même taille/couleur que les nuitées */
.promo-stats-tile strong { display: block; font-size: 1.05rem; font-weight: 700; color: #1f2937; white-space: nowrap; }
.promo-stats-tile strong .amount-switchable { font-size: inherit; color: inherit; }
.promo-stats-tile strong .symbol { font-size: 0.8rem; font-weight: 600; color: inherit; }
.promo-stats-insights { margin: 12px 0 0; padding-left: 1.1em; font-size: 0.85rem; color: #374151; }
.promo-stats-insights li { margin-bottom: 4px; }
.promo-stats .table.promo-stats-table > :not(caption) > * > * {
    font-size: 0.85rem; line-height: 1.4; padding: 7px 10px; color: #374151;
}
.promo-stats .table.promo-stats-table > thead > tr > th {
    font-size: 0.72rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding-top: 0; border-bottom: 1px solid #ede9fe;
}
.promo-stats .table.promo-stats-table > tbody > tr > td:first-child { color: #6C7383; font-weight: 600; }
.promo-stats .table.promo-stats-table .symbol { font-size: 0.75rem; }
.promo-stats-gap { font-weight: 600; }
.promo-stats-gap.is-up { color: #16a34a; }
.promo-stats-gap.is-down { color: #dc2626; }
.promo-stats-note { display: flex; gap: 8px; margin: 12px 0 0; font-size: 0.75rem; color: #6C7383; }
.promo-stats-note i { color: #4B49AC; margin-top: 2px; }
.promo-stats-step {
    display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
    background: #4B49AC; color: #fff; font-size: 0.66rem; margin-right: 8px; vertical-align: 1px;
}
.promo-stats-source { font-size: 0.78rem; color: #6C7383; margin: 4px 0 0; }
.promo-stats-source i { color: #4B49AC; margin-right: 4px; }
.promo-stats-callout {
    display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fff7ed;
    color: #9a3412; font-size: 0.8rem; line-height: 1.5;
}
.promo-stats-callout i { margin-top: 2px; }
.promo-stats-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.promo-stats-tile--accent { background: #fdf2f4; }
.promo-stats-tile--accent strong { color: #c2185b; }
.promo-stats-costbar { display: flex; height: 10px; border-radius: 9999px; overflow: hidden; margin-top: 14px; background: #f3f4f6; }
.promo-stats-costbar-revenue { background: #4B49AC; }
.promo-stats-costbar-discount { background: #F28998; }
.promo-stats-costbar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 0.75rem; color: #6C7383; }
.promo-stats-costbar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.promo-stats-costbar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.promo-stats-highlight {
    margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #f5f6fb; color: #374151; font-size: 0.85rem;
}
.promo-stats-highlight strong { color: #4B49AC; }
.promo-stats-chart { position: relative; height: 220px; margin-top: 14px; }
.promo-stats .table.promo-stats-table--compact { margin-top: 4px; }
.promo-stats-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.promo-stats-asof { font-size: 0.66rem; color: #9ca3af; }
.promo-stats-alert {
    margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca;
    font-size: 0.82rem; color: #7f1d1d;
}
.promo-stats-alert p { margin: 0 0 8px; }
.promo-stats-alert .promo-stats-alert-title { font-weight: 700; color: #b91c1c; margin-bottom: 4px; }
.promo-stats .promo-stats-alert .table.promo-stats-table > :not(caption) > * > * { background: transparent; }
.promo-stats-details { margin-top: 14px; font-size: 0.82rem; }
.promo-stats-details summary { cursor: pointer; color: #4B49AC; font-weight: 600; margin-bottom: 6px; }
.promo-stats-flag {
    display: inline-block; border-radius: 9999px; padding: 0.1em 0.6em; font-size: 0.72rem; font-weight: 600;
    background: #f3f4f6; color: #6b7280; white-space: nowrap;
}
.promo-stats-flag.is-useless { background: #fee2e2; color: #dc2626; }
.promo-stats-flag.is-useful { background: #f0fdf4; color: #16a34a; }

@media (max-width: 576px) {
    .promo-stats-tiles, .promo-stats-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Page Yield : bloc "Performance des distributeurs" (Net RevPAR & coût de distribution) ===== */
/* gros titres de section de la page Yield (Segmentation et réservations, Annulation des réservations,
   Performance des distributeurs) : bandeau pleine largeur, fond dégradé violet + liseré à gauche, pour
   bien marquer le passage d'une section à l'autre */
.distribution-section-head {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: 12px 0 24px; padding: 16px 22px;
    background: linear-gradient(90deg, #ede9fe 0%, #f5f3ff 60%, rgba(245, 243, 255, 0) 100%);
    border-left: 5px solid #4B49AC; border-radius: 10px;
}
.distribution-section-head .card-title { color: #3d3c8e; font-size: 1.05rem; margin-bottom: 4px !important; }
.distribution-section-sub { color: #6C7383; font-size: 13px; }
.distribution-settings-link { border: 1px solid #d0d5dc; border-radius: 20px; white-space: nowrap; }
.distribution-settings-link i { vertical-align: middle; margin-right: 4px; }
.distribution-kpi-help { cursor: pointer; font-size: 0.8rem; color: #9ca3af; margin-left: 4px; text-transform: none; }
.distribution-kpi-sub { font-size: 12px; color: #6C7383; }
.distribution-filter-note { color: #4B49AC; font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.distribution-filter-note i { margin-right: 4px; }
.distribution-alert { display: flex; gap: 10px; align-items: flex-start; background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; border-radius: 10px; padding: 10px 16px; margin-bottom: 20px; font-size: 0.85rem; }
.distribution-alert i { margin-top: 2px; }
.distribution-alert a { color: #1e40af; font-weight: 700; text-decoration: underline; }
.distribution-alert--warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.distribution-alert--warning a { color: #9a3412; }

/* ===== Paramétrage des coûts de distribution ("Mon compte" + fiche établissement admin), cf. distribution-costs.js ===== */
/* "Coûts de distribution" (Mon compte, distribution-costs.js) : même langage visuel que les listes catégories / tarifs —
   liste continue bordée, une ligne par canal (nom + badges + mention « sans frais » / bouton « + Coût » à droite), lignes
   de coût en dessous avec les champs harmonisés (36px, coins arrondis, focus violet), correspondance en liste du même style */
.distribution-costs-editor .dc-help { font-size: 0.8rem; margin-bottom: 10px; }
.distribution-costs-editor .dc-channels { display: flex; flex-direction: column; border: 1px solid #edeef2; border-radius: 8px; overflow: hidden; background: #fff; }
.distribution-costs-editor .dc-channel { padding: 10px 12px; border-bottom: 1px solid #edeef2; background: #fff; }
.distribution-costs-editor .dc-channel:last-child { border-bottom: none; }
.distribution-costs-editor .dc-channel-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.distribution-costs-editor .dc-channel-name { font-weight: 700; font-size: 0.875rem; color: #1f2937; }
.distribution-costs-editor .dc-channel-mapped { font-size: 0.74rem; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.distribution-costs-editor .dc-badge { border-radius: 9999px; padding: 0.15em 0.6em; font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.distribution-costs-editor .dc-badge--direct { background: #dcfce7; color: #15803d; }
.distribution-costs-editor .dc-badge--ota { background: #eef2ff; color: #4B49AC; }
.distribution-costs-editor .dc-badge--auto { background: #fff7ed; color: #c2410c; }
.distribution-costs-editor .dc-empty { margin-left: auto; font-size: 0.78rem; color: #9ca3af; white-space: nowrap; }
.distribution-costs-editor .dc-line-add { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; line-height: 1; }
.distribution-costs-editor .dc-empty + .dc-line-add { margin-left: 8px; }
.distribution-costs-editor .dc-line-add i { font-size: 0.7rem; line-height: 1; }
.distribution-costs-editor .dc-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 8px; background: #fafaff; }
.distribution-costs-editor .dc-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.distribution-costs-editor .dc-line-label, .distribution-costs-editor .dc-line-amount, .distribution-costs-editor .dc-line-type, .distribution-costs-editor .dc-mapping-select {
    height: 36px; border: 1px solid #dfe1ea; border-radius: 8px; background-color: #fff; font-size: 0.85rem; color: #1f2937; box-shadow: none;
}
.distribution-costs-editor .dc-line-label:focus, .distribution-costs-editor .dc-line-amount:focus, .distribution-costs-editor .dc-line-type:focus, .distribution-costs-editor .dc-mapping-select:focus {
    border-color: #7978E9; box-shadow: 0 0 0 3px rgba(121, 120, 233, 0.15); outline: none;
}
.distribution-costs-editor .dc-line-label { flex: 2 1 180px; padding: 0 12px; font-weight: 600; }
.distribution-costs-editor .dc-amount-field { flex: 0 0 110px; }
.distribution-costs-editor .dc-line-amount { width: 100%; padding: 0 12px; -moz-appearance: textfield; appearance: textfield; }
.distribution-costs-editor .dc-line-amount::-webkit-outer-spin-button, .distribution-costs-editor .dc-line-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.distribution-costs-editor .dc-line-type, .distribution-costs-editor .dc-mapping-select { padding: 0 30px 0 12px; }
.distribution-costs-editor .dc-line-type { flex: 0 1 190px; }
.distribution-costs-editor .dc-line-save, .distribution-costs-editor .dc-line-delete { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.distribution-costs-editor .dc-channel-feedback { font-size: 0.76rem; font-weight: 600; }
.distribution-costs-editor .dc-mapping-feedback { font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.distribution-costs-editor .dc-mapping { margin-top: 16px; }
.distribution-costs-editor .dc-mapping summary { cursor: pointer; font-weight: 600; font-size: 0.85rem; color: #4B49AC; margin-bottom: 8px; }
/* correspondance : tableau présenté comme les autres listes (cadre arrondi, lignes séparées, en-tête discret) */
.distribution-costs-editor .dc-mapping .table-responsive { border: 1px solid #edeef2; border-radius: 8px; }
.distribution-costs-editor .dc-mapping-table { font-size: 0.85rem; margin-bottom: 0; }
.distribution-costs-editor .dc-mapping-table > :not(caption) > * > * { padding: 8px 12px; vertical-align: middle; font-size: 0.85rem; border-bottom: 1px solid #edeef2; }
.distribution-costs-editor .dc-mapping-table tbody tr:last-child > * { border-bottom: none; }
.distribution-costs-editor .dc-mapping-table thead th { background: #fafaff; color: #9ca3af; font-size: 0.7rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.distribution-costs-editor .dc-mapping-table tbody td:first-child { font-weight: 600; color: #1f2937; }
.distribution-costs-editor .dc-mapping-table td:last-child, .distribution-costs-editor .dc-mapping-table th:last-child { width: 300px; }
.distribution-costs-editor .dc-mapping-select { width: 100%; max-width: 300px; }
.distribution-costs-editor .dc-feedback { font-size: 0.82rem; }
@media (max-width: 575.98px) {
    /* en-tête du canal : nom + badge + « + Coût » sur la 1re ligne, mention et distributeurs rattachés dessous */
    .distribution-costs-editor .dc-channel-name { order: 1; }
    .distribution-costs-editor .dc-badge { order: 2; }
    .distribution-costs-editor .dc-line-add, .distribution-costs-editor .dc-empty + .dc-line-add { order: 3; margin-left: auto; }
    .distribution-costs-editor .dc-empty { order: 4; flex-basis: 100%; margin-left: 0; white-space: normal; }
    .distribution-costs-editor .dc-channel-mapped { order: 5; max-width: 100%; flex-basis: 100%; }
    .distribution-costs-editor .dc-channel-feedback { order: 6; flex-basis: 100%; }
    .distribution-costs-editor .dc-line-label { flex-basis: 100%; }
    .distribution-costs-editor .dc-amount-field { flex: 0 0 72px; }
    .distribution-costs-editor .dc-line-type { flex: 1 1 calc(100% - 80px); min-width: 0; }
    .distribution-costs-editor .dc-line-save { margin-left: auto; }
    /* correspondance : une carte par distributeur (nom puis menu pleine largeur) au lieu d'un tableau qui déborde */
    .distribution-costs-editor .dc-mapping-table thead { display: none; }
    .distribution-costs-editor .dc-mapping-table, .distribution-costs-editor .dc-mapping-table tbody,
    .distribution-costs-editor .dc-mapping-table tr, .distribution-costs-editor .dc-mapping-table td { display: block; width: 100% !important; }
    .distribution-costs-editor .dc-mapping-table tr { padding: 8px 12px; border-bottom: 1px solid #edeef2; }
    .distribution-costs-editor .dc-mapping-table tbody tr:last-child { border-bottom: none; }
    .distribution-costs-editor .dc-mapping-table > :not(caption) > * > * { padding: 0; border-bottom: none; }
    .distribution-costs-editor .dc-mapping-table td:first-child { margin-bottom: 6px; }
    .distribution-costs-editor .dc-mapping-select { max-width: 100%; }
    .distribution-costs-editor .dc-mapping-table tr.is-search-hidden { display: none !important; }
}

/* ===== "Mon compte" : onglets Catégories de chambre / Tarifs / Coûts de distribution par établissement ===== */
.account-settings-tabs { margin-top: 8px; }
/* "Mon compte" : établissements repliables quand il y en a plusieurs (le premier ouvert, cf. account.js) */
.account-estab-bulk { display: flex; flex-wrap: wrap; gap: 8px; }
.account-estab-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.account-estab-toggle h6 { color: #1f2937; }
.account-estab-toggle:hover h6 { color: #4B49AC; }
.account-estab-chevron { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #f5f3ff; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: transform 0.2s ease; }
.account-estab-toggle.collapsed .account-estab-chevron { transform: rotate(-90deg); }
.account-estab-body.collapse.show, .account-estab-body.collapsing { margin-top: 16px; }
.account-settings-tabs .nav-link { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
#establishmentModalTabs .nav-link { display: inline-flex; align-items: center; gap: 6px; }
.account-tab-count { background: #ede9fe; color: #4B49AC; border-radius: 9999px; padding: 0.1em 0.55em; font-size: 0.7rem; font-weight: 700; line-height: 1.4; }
.account-settings-tab-content { padding-top: 16px; }
/* le titre de chaque rubrique est porté par l'onglet : libellé interne masqué (doublon) */
.account-settings-tab-content .account-space-categories-block > .form-label,
.account-settings-tab-content .account-rate-plans-block > .form-label,
.account-settings-tab-content .distribution-costs-editor > .form-label { display: none; }

/* ===== Comptes clients : PMS de l'établissement en gélule ===== */
.admin-pms-pill { display: inline-block; background: #eef2ff; color: #4B49AC; border-radius: 9999px; padding: 0.2em 0.7em; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.admin-rooms-pill { display: inline-block; background: #e0f2fe; color: #0369a1; border-radius: 9999px; padding: 0.2em 0.7em; font-size: 0.78rem; font-weight: 600; white-space: nowrap; min-width: 2.4em; text-align: center; }
.admin-rooms-pill-total { font-weight: 500; opacity: 0.65; }

/* ===== Comptes clients : listes déroulantes des modales alignées sur les champs texte du thème =====
   (.form-control du thème : padding 1.125rem 1.375rem, police 0.875rem, line-height 1, rayon 2px —
   .form-select Bootstrap par défaut est plus bas, d'où le décalage quand les deux sont côte à côte) */
#companyModal .form-select:not(.form-select-sm),
#establishmentModal .form-select:not(.form-select-sm),
#userModal .form-select:not(.form-select-sm) {
    padding: 1.125rem 2.25rem 1.125rem 1.375rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 2px;
}

/* ===== Page Yield : panneaux KPI "Performance des distributeurs" (_distribution_performance.html.twig) ===== */
.dperf-panel .card-body { display: flex; flex-direction: column; gap: 10px; }
.dperf-panel-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: #3d3c8e; margin-bottom: 4px; }
.dperf-panel-icon { width: 30px; height: 30px; border-radius: 8px; background: #ede9fe; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.dperf-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.88rem; color: #6C7383; }
.dperf-line-value { color: #434245; font-weight: 600; white-space: nowrap; }
.dperf-line--cost .dperf-line-value { color: #dc2626; }
.dperf-line--total { border-top: 1px dashed #d8d4f5; padding-top: 8px; color: #3d3c8e; font-weight: 700; }
.dperf-line--total .dperf-line-value { color: #4B49AC; font-size: 1.35rem; font-weight: 700; }
.dperf-bar { display: flex; height: 12px; border-radius: 9999px; overflow: hidden; background: #f1f0f7; }
.dperf-bar--mix { height: 22px; }
.dperf-bar-seg { display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.dperf-bar-seg--net { background: #4B49AC; }
.dperf-bar-seg--cost { background: #F28998; }
.dperf-bar-seg--direct { background: #4B49AC; }
.dperf-bar-seg--ota { background: #F28998; }
.dperf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.dperf-chip { background: #f3f4f6; color: #434245; border-radius: 9999px; padding: 0.25em 0.75em; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.dperf-chip--cost { background: #fde8ea; color: #c2185b; }
.dperf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dperf-duo-label { font-size: 0.78rem; color: #6C7383; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.dperf-duo-value { font-size: 1.35rem; font-weight: 700; color: #434245; white-space: nowrap; }
.dperf-duo-value--net { color: #4B49AC; }
.dperf-compare { display: flex; flex-direction: column; gap: 6px; }
.dperf-compare-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; font-size: 0.76rem; color: #6C7383; }
.dperf-compare-track { height: 10px; border-radius: 9999px; background: #f1f0f7; overflow: hidden; }
.dperf-compare-fill { display: block; height: 100%; border-radius: 9999px; background: #98BDFF; }
.dperf-compare-fill--net { background: #4B49AC; }
.dperf-mix-row { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 8px; font-size: 0.86rem; color: #434245; }
.dperf-mix-detail { text-align: right; color: #6C7383; font-size: 0.8rem; }
.dperf-dot { width: 10px; height: 10px; border-radius: 3px; }
.dperf-dot--direct { background: #4B49AC; }
.dperf-dot--ota { background: #F28998; }
.dperf-n1 { font-size: 12px; color: #F28998; margin-top: 8px; padding: 10px 12px; background: #fffafb; border-top: 1px dashed #fbdfe4; border-radius: 0 0 8px 8px; line-height: 1.9; }
.dperf-n1-badge { background: #fde8ea; color: #c2185b; border-radius: 9999px; padding: 0.15em 0.5em; font-weight: 600; white-space: nowrap; }

/* ===== Page Yield : éléments visuels communs aux KPI d'en-tête, aux KPI d'annulation et aux panneaux
   "Performance des distributeurs" (même pastille-icône, même titre violet, même encadré N-1) ===== */
.kpi-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
/* sélecteur renforcé : ".card .card-title" (thème + easyield-custom.css) impose sinon #010101 */
.card .card-title.kpi-title { color: #3d3c8e; }
.kpi-themed .n1-row {
    margin-top: 10px !important; padding: 10px 12px; background: #fffafb; border-top: 1px dashed #fbdfe4;
    border-radius: 0 0 8px 8px; line-height: 1.9;
}
/* neutralise ".ti-calendar { height: 41px; }" (règle globale préexistante) dans les pastilles-icônes des
   KPI : sans ça, le calendrier ("Nuités", "Nuitées perdues") sort de sa pastille, décalé vers le haut —
   même correctif que .import-init-file-icon i, et même réduction de taille du glyphe, plus grand que les autres */
.dperf-panel-icon i { height: auto; line-height: 1; }
.dperf-panel-icon .ti-calendar { font-size: 0.85em; }
/* page Yield : icône sur fond violet clair à gauche du titre + sous-titre de chaque bloc (pas dans les bandeaux violets),
   les deux lignes à droite, centrées en hauteur sur l'icône */
.card-title.yblock-title { display: flex; align-items: center; gap: 12px; }
.yblock-title .yblock-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 1rem; flex-shrink: 0; }
.yblock-title .yblock-text { display: block; min-width: 0; }
/* desktop : le titre rétrécit (son texte passe à la ligne) plutôt que de renvoyer les contrôles du bloc (Filtres,
   Agrandir, zoom…) sous lui — ex. "Nuités et Prix moyen par catégorie de chambre" ; sur mobile, cf. règle plus bas */
@media (min-width: 768px) {
    .card-body > div:has(> .yblock-title) > .yblock-title { flex: 1 1 0; min-width: 0; }
    .card-body > div:has(> .yblock-title) > .yblock-title ~ * { flex-shrink: 0; }
}
/* légendes HTML des graphiques : 20px sous le titre du bloc (8px en style inline auparavant, trop collé) — les titres
   concernés n'ont plus de marge propre (margin-bottom:0), l'écart vient uniquement d'ici */
.card-body [id$="-chart-legend"] { margin-top: 20px !important; }
@media (max-width: 767.98px) {
    /* mobile : titre sur toute la largeur, contrôles du bloc (zoom, sélecteurs…) renvoyés en dessous */
    .card-body > div:has(> .yblock-title), .ydays-title-row { flex-wrap: wrap; gap: 10px; }
    .yblock-title { flex: 1 1 100%; gap: 10px; }
    .yblock-title .yblock-icon { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
}

/* ===== Page Yield : notes / actions commerciales de la "Montée en charge cumulée" ===== */
/* aide sous les graphiques "Chiffre d'affaire journalier" / "Montée en charge cumulée" : même encadré gris
   arrondi que la note du bloc "Météo jour par jour" (.yield-weather-note) */
.charge-note-hint {
    display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px;
    background: #f5f6fb; border-radius: 8px; font-size: 0.78rem; color: #6C7383; line-height: 1.5;
}
.charge-note-hint i { font-size: 1rem; color: #4B49AC; }
.charge-note-modal { border-radius: 14px; border: none; box-shadow: 0 12px 40px rgba(75, 73, 172, 0.22); }
.charge-note-modal .modal-header { border-bottom: 1px solid #ede9fe; background: linear-gradient(90deg, #ede9fe 0%, #f5f3ff 70%, #fff 100%); border-radius: 14px 14px 0 0; }
.charge-note-modal-head { display: flex; align-items: center; gap: 12px; }
.charge-note-modal-head .dperf-panel-icon { width: 38px; height: 38px; font-size: 1rem; background: #fff; }
.charge-note-modal .modal-title { color: #3d3c8e; font-weight: 700; margin: 0; }
.charge-note-modal-date { font-size: 0.85rem; color: #6C7383; }
.charge-note-modal-date strong { color: #4B49AC; }
.charge-note-modal textarea { font-size: 0.88rem; line-height: 1.5; padding: 12px 14px; border-radius: 10px; resize: vertical; }
.charge-note-help { font-size: 0.76rem; color: #9ca3af; margin-top: 8px; }
.charge-note-modal .modal-footer { border-top: none; }

/* Modale "Évolution par import" (Yield, clic sur une journée du Rapport détaillé, cf. stay-date-history.js) :
   même habillage que la modale de commentaire (.charge-note-modal) — filtre en gélules, 3 tuiles KPI, graphique
   nuitées / TO, liste jour par jour à en-tête collant */
/* largeur 800px ; ancrée en HAUT de l'écran (pas centrée verticalement) : moins de marge au-dessus, et une
   hauteur qui varie ne la fait jamais remonter / redescendre. Sélecteur renforcé : le thème impose
   ".modal .modal-dialog { margin-top: 100px }" (style.css) à toutes les modales */
@media (min-width: 576px) { .modal .modal-dialog.sdh-dialog { max-width: 800px; margin-top: 50px; } }
.sdh-modal .modal-body { padding: 16px 22px 18px; }
.sdh-modal .modal-header { gap: 12px; }
.sdh-nav { display: flex; gap: 6px; margin-left: auto; }
/* mode « plusieurs dates » (cumul) : pas de navigation jour précédent / suivant, la croix reste calée à droite */
.sdh-nav[hidden] { display: none; }
/* ligne N-1 sous les tuiles de la modale (case « Données N-1 ») : rose, comme les lignes N-1 des KPI de la page */
.sdh-kpi-n1 { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #f6c9d0; font-size: 0.78rem; color: #F28998; }
.sdh-kpi-n1[hidden] { display: none; }
.sdh-n1-label { font-weight: 700; }
/* en-tête de la modale : date(s) N-1 comparée(s) + vue date à date / date comparable (mêmes couleurs que .ycmp-pill) */
.sdh-n1-dates { margin-top: 3px; font-size: 0.8rem; color: #c2415a; /* avant : #F28998 (libellé plus clair que la date) */ display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.sdh-n1-dates[hidden] { display: none; }
.sdh-n1-dates-label { font-weight: 700; }
.sdh-n1-dates strong { color: #c2415a; font-weight: 600; }
.sdh-n1-mode { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; background: #ede9fe; color: #4B49AC; border: 1px solid #ddd8fb; }
.sdh-n1-mode.is-comparable { background: #fde8ec; color: #c2415a; border-color: #f9cdd6; }
.sdh-n1-none { color: #9ca3af; font-style: italic; }
.sdh-n1-pill { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #fde8ea; color: #c2185b; font-weight: 700; font-size: 0.72rem; }
.sdh-nav[hidden] + .btn-close { margin-left: auto; }
.sdh-nav-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd8fb; background: #fff; color: #4B49AC;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s ease;
}
.sdh-nav-btn:hover:not(:disabled) { background: #4B49AC; border-color: #4B49AC; color: #fff; }
.sdh-nav-btn:disabled { opacity: .35; cursor: default; }
.sdh-nav + .btn-close { margin-left: 4px !important; }
.sdh-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.sdh-filter-label { font-size: 0.75rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.03em; }
.sdh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sdh-chip {
    padding: 5px 12px; border-radius: 999px; border: 1.5px solid #e5e7eb; background: #fff; color: #6b7280;
    font-size: 0.78rem; font-weight: 600; line-height: 1.3; cursor: pointer; transition: all .15s ease;
}
.sdh-chip:hover { border-color: #4B49AC; color: #4B49AC; }
.sdh-chip.selected { background: #4B49AC; border-color: #4B49AC; color: #fff; }
.sdh-loading { display: flex; justify-content: center; padding: 50px 0; }
.sdh-results { position: relative; }
/* rechargement (changement de filtre) : anciens résultats estompés, indicateur centré par-dessus */
.sdh-results.is-reloading #sdh-content, .sdh-results.is-reloading #sdh-empty { opacity: 0.35; pointer-events: none; transition: opacity .15s ease; }
.sdh-results.is-reloading .sdh-loading { position: absolute; inset: 0; z-index: 2; padding: 0; align-items: center; }
.sdh-empty { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: #f5f6fb; color: #6C7383; font-size: 0.85rem; }
.sdh-empty i { color: #4B49AC; }
.sdh-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.sdh-kpi { padding: 9px 14px; border: 1px solid #eef0f4; border-radius: 12px; background: #fff; }
.sdh-kpi-label { font-size: 0.7rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.03em; }
.sdh-kpi-label i { color: #4B49AC; margin-right: 4px; }
.sdh-kpi-value { font-size: 1.2rem; font-weight: 700; color: #3d3c8e; margin: 2px 0 1px; font-variant-numeric: tabular-nums; }
.sdh-kpi-delta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 22px; }
.sdh-kpi-since { font-size: 0.7rem; color: #9ca3af; }
.sdh-delta { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.sdh-delta.up { background: #dcfce7; color: #15803d; }
.sdh-delta.down { background: #fee2e2; color: #b91c1c; }
.sdh-delta.flat { background: #f3f4f6; color: #6b7280; }
.sdh-chart-wrap { position: relative; height: 165px; margin-bottom: 12px; }
/* hauteur FIXE (desktop) : la modale garde la même taille quel que soit le nombre de lignes / le filtre ; la liste
   défile à l'intérieur (en-tête collant), sans entraîner le défilement de la page derrière (overscroll-behavior) */
.sdh-table { height: 200px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #eef0f4; border-radius: 12px; }
.sdh-row { display: grid; grid-template-columns: 1fr 1.1fr 1.5fr 1.5fr; column-gap: 12px; align-items: center; padding: 7px 14px; border-top: 1px solid #f1f2f6; font-size: 0.85rem; }
.sdh-row-head {
    position: sticky; top: 0; z-index: 1; border-top: none; background: #4B49AC; color: #fff;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
#sdh-rows .sdh-row:first-child { border-top: none; background: #faf9ff; }
.sdh-row > div { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; min-width: 0; }
.sdh-date { font-weight: 600; color: #3d3c8e; }
.sdh-dow { font-size: 0.7rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; }
.sdh-val { font-weight: 600; color: #1f2937; font-variant-numeric: tabular-nums; }
.sdh-sub { flex-basis: 100%; font-size: 0.7rem; color: #9ca3af; }
.sdh-row.is-missing { color: #9ca3af; }
.sdh-row.is-missing .sdh-date { color: #9ca3af; }
.sdh-missing { grid-column: 2 / -1; font-style: italic; font-size: 0.78rem; }
.sdh-row.is-gap { padding-top: 7px; padding-bottom: 7px; background: #fafbfc; }
.sdh-row.is-gap .sdh-missing { grid-column: 1 / -1; justify-content: center; }
.sdh-missing i { font-size: 0.7rem; }
.sdh-chip-short { display: none; }
@media (max-width: 575.98px) {
    .sdh-modal { border-radius: 0; }
    .sdh-modal .modal-body { padding: 16px; }
    .sdh-kpis { gap: 8px; }
    .sdh-kpi { padding: 10px; }
    .sdh-kpi-value { font-size: 1.05rem; }
    .sdh-kpi-since { display: none; }
    .sdh-chip-long { display: none; }
    .sdh-chip-short { display: inline; }
    .sdh-chip { padding: 5px 11px; }
    .sdh-filter-label { flex-basis: 100%; }
    .sdh-row { grid-template-columns: 0.9fr 1fr 1.3fr 1.2fr; column-gap: 8px; padding: 8px 10px; font-size: 0.78rem; }
    .sdh-table { height: auto; max-height: none; }
}
/* bloc note dans le tooltip "matrice" de la Montée en charge (cf. buildChargeChartMatrixTooltip) */
.chart-html-tooltip .cht-note { margin: 6px 0 8px; padding: 7px 10px; background: #f5f3ff; border-left: 3px solid #4B49AC; border-radius: 6px; color: #3d3c8e; font-size: 0.78rem; line-height: 1.45; max-width: 360px; white-space: normal; }
.chart-html-tooltip .cht-note-label { font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; color: #4B49AC; margin-bottom: 2px; }
.chart-html-tooltip .cht-note-row + .cht-note-row { margin-top: 4px; }

/* ===== Pages de connexion, activation de compte et réinitialisation du mot de passe (classe .auth-login) —
   mobile / tablette uniquement (< 992px, desktop inchangé) : zone centrale élargie (le thème la limite à
   55 % de largeur dès 768px, et ajoute marges de colonne + padding p-3), avec une marge latérale de 1,75rem ===== */
@media (max-width: 991.98px) {
    .auth.auth-login .row.flex-grow { margin-left: 0; margin-right: 0; }
    .auth.auth-login .row.flex-grow > [class*="col-"] { padding-left: 0; padding-right: 0; }
    .auth.auth-login .auth-form-transparent { width: 100%; padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
}

/* ===== "Mon compte" (et modale "réglage" des Promotions) — mobile uniquement (< 768px) : catégories de
   chambre et tarifs ===== */
@media (max-width: 767.98px) {
    /* configurés : code / nom sur une ligne, libellé / prix en dessous */
    .account-space-category-display > strong, .account-rate-plan-display > strong { display: block; }
    .account-item-sep { display: none; }
    .account-item-sub { display: block; color: #6C7383; font-size: 0.82rem; }
    /* non configurés : code + "non configuré" sur une ligne, champ de saisie (avec son bouton ✓) en dessous,
       sur toute la largeur */
    .account-space-category-suggested-row,
    .account-rate-plans-suggested-list .account-rate-plan-item { flex-wrap: wrap; }
    .account-space-category-suggested-row > .account-space-category-actions,
    .account-rate-plans-suggested-list .account-rate-plan-item > .account-rate-plan-actions { flex: 1 1 100%; }
    .account-space-category-suggested-row .input-group,
    .account-rate-plans-suggested-list .input-group { width: 100% !important; max-width: 100% !important; flex-wrap: nowrap; }
}

/* ===== Dashboard — mobile uniquement (< 768px) : bascule Annuel / Réalisé / Prévisionnel =====
   sur écran étroit, "1fr" (= minmax(auto, 1fr)) laissait le libellé le plus long ("Prévisionnel", en gras
   quand actif) élargir sa colonne : les 3 colonnes devenaient inégales et le texte sortait de la gélule
   active (qui, elle, fait toujours exactement 1/3). Colonnes strictement égales + texte resserré. */
@media (max-width: 767.98px) {
    .tri-toggle { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 360px; }
    .tri-toggle-option { padding: 6px 4px; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== Objectifs — mobile uniquement (< 768px) : même principe que Stagnation / Demande =====
   Journalier : 2 colonnes (au lieu de 7 sur 700px min., hors écran), sans en-têtes de jours ni décalage du 1er
   jour (grid-column posé en ligne sur la 1re case), jour de la semaine affiché dans chaque case.
   Mensuel : 2 colonnes au lieu de 6. */
.budget-day-dow { display: none; }
@media (max-width: 767.98px) {
    .budget-daily-calendar-scroll { overflow-x: visible; }
    .budget-daily-dow-row { display: none; }
    .budget-daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .budget-daily-grid .budget-day-cell { grid-column: auto !important; }
    .budget-day-dow { display: inline; font-weight: 600; color: #6C7383; }
    .budget-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Objectifs journaliers — mobile uniquement (< 768px) : totaux du mois (CA / Nuitées / PM / TO) sur 2 colonnes
   au lieu d'une seule ligne qui sortait de l'écran ; bouton d'export à côté */
@media (max-width: 767.98px) {
    .budget-header-actions { flex-wrap: wrap !important; justify-content: flex-start !important; align-items: flex-start !important; }
    #budget-daily-totals { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; flex: 1 1 0; min-width: 0; white-space: normal !important; }
    #budget-daily-totals .budget-total-badge { white-space: normal; text-align: center; }
}

/* ===== Historique — tableaux (rapport journalier, réservations) présentés en cartes, sur desktop comme sur
   mobile. Chaque <td> porte son libellé dans data-label (cf. history.html.twig), affiché en petit au-dessus de
   la valeur ; la 1re cellule (date de séjour / n° de réservation) sert d'en-tête de carte, les autres valeurs
   sont sur 2 colonnes. Les cartes se répartissent en grille (autant de colonnes que la largeur le permet,
   une seule sur mobile). ===== */
.history-table { display: block; width: 100% !important; }
.history-table thead { display: none; }
.history-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.history-table tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-content: start;
    padding: 12px 14px; border: 1px solid #eef0f4; border-radius: 10px; background: #fff;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.history-table tbody tr:hover { border-color: #d8d4f5; box-shadow: 0 4px 14px rgba(75, 73, 172, 0.08); }
.history-table tbody td {
    display: block; padding: 0 !important; border: none !important; font-size: 0.85rem; min-width: 0;
    white-space: normal !important; word-break: break-word; background: transparent !important;
}
.history-table tbody td::before {
    content: attr(data-label); display: block; font-size: 0.68rem; font-weight: 700; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 1px;
}
.history-table tbody td.history-card-head {
    grid-column: 1 / -1; font-weight: 700; color: #3d3c8e; font-size: 0.95rem;
    padding-bottom: 6px !important; border-bottom: 1px dashed #e5e7eb !important;
}
.history-table tbody td.history-card-head::before { display: inline; margin-right: 6px; }


/* ===== Yield — mobile uniquement (< 768px) : en-tête sur 3 lignes — période ; dropdowns Indicateurs /
   Comparatif ; statut du comparatif (bandeau jaune "Aucun import…" ou "Comparatif à …") ===== */
@media (max-width: 767.98px) {
    .yield-header-actions { flex-wrap: wrap !important; justify-content: flex-start !important; }
    .yield-header-actions > .dropdown { order: 1; }
    .yield-header-actions > .yield-compare-status { order: 2; flex: 1 1 100%; white-space: normal !important; }
}

/* Yield — bandeau « Aucun import à … » (comparatif sans import à la date demandée) : pastille ambre discrète,
   icône ronde + 2 lignes (constat en gras, date réellement utilisée en dessous) */
.yield-compare-warning {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    min-height: 42px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    line-height: 1.2;
}
.yield-compare-warning-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
}
.yield-compare-warning-icon i { font-size: 0.8rem; line-height: 1; pointer-events: none; }
.yield-compare-warning-text { display: flex; flex-direction: column; }
.yield-compare-warning-text b { font-size: 0.8rem; font-weight: 600; }
.yield-compare-warning-text small { font-size: 0.72rem; color: #b45309; opacity: 0.85; }
@media (max-width: 767.98px) {
    .yield-header-actions > .yield-compare-warning { border-radius: 14px; }
}

/* Yield — synthèse sous le graphique « Fenêtre de réservation » (booking-window-chart.js, renderSummary()) */
.bw-summary { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #e5e7eb; }
.bw-summary-title { font-size: 0.72rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.bw-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #f3f4f6; gap: 2px; }
.bw-bar span { display: block; height: 100%; min-width: 3px; }
.bw-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 12px; font-size: 0.8rem; color: #4b5563; }
.bw-legend-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bw-legend-item i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; }
.bw-legend-item span { flex: 1 1 auto; min-width: 0; }
.bw-legend-item small, .bw-tile-label small { color: #9ca3af; font-size: 0.72rem; font-weight: 500; }
.bw-legend-item b { color: #374151; font-weight: 700; }
.bw-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.bw-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid #f0eefb; background: #faf9ff; min-width: 0; }
.bw-tile-label { font-size: 0.72rem; font-weight: 600; color: #6b7280; }
.bw-tile-value { font-size: 1.15rem; font-weight: 700; color: #4B49AC; line-height: 1.25; }
.bw-tile-sub, .bw-delta { font-size: 0.72rem; color: #9ca3af; }
.bw-delta.is-up { color: #16a34a; }
.bw-delta.is-down { color: #dc2626; }
.bw-delta.is-neutral { color: #6b7280; }
@media (max-width: 575px) { .bw-legend { grid-template-columns: 1fr; } }

/* Yield — « Où partent les commissions » (distribution-chart.js, renderCostShare()) : donut + liste */
.dcost-content { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 24px; }
.dcost-chart-wrap { position: relative; width: 200px; height: 200px; }
.dcost-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.dcost-center b { font-size: 1.15rem; font-weight: 700; color: #4B49AC; line-height: 1.2; }
.dcost-center span { font-size: 0.7rem; color: #9ca3af; }
.dcost-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dcost-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 0.8rem; color: #4b5563; transition: background-color 0.15s, opacity 0.15s; }
.dcost-row.is-clickable { cursor: pointer; }
.dcost-row.is-clickable:hover { background: #f5f3ff; }
.dcost-row.is-dim { opacity: 0.45; }
.dcost-row i { width: 10px; height: 10px; border-radius: 3px; }
.dcost-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcost-amount { color: #6b7280; white-space: nowrap; }
.dcost-share { color: #374151; text-align: right; }
.dcost-insight { margin-top: 20px; }
.dcost-unconfigured { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 0.78rem; }
.dcost-unconfigured i { color: #d97706; }
.dcost-unconfigured span { flex: 1 1 200px; }
.dcost-unconfigured a { color: #4B49AC; font-weight: 600; white-space: nowrap; }
#distribution-cost-col .card-body { display: flex; flex-direction: column; }
#distribution-cost-col .dcost-content { flex: 1 1 auto; }
.dcost-insight b { color: #4B49AC; font-weight: 600; }
.dcost-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 220px; padding: 20px; color: #6b7280; font-size: 0.85rem; }
.dcost-empty > i { font-size: 1.4rem; color: #c4bff3; }
@media (max-width: 575px) {
    .dcost-content { grid-template-columns: 1fr; justify-items: center; }
    .dcost-list { width: 100%; }
}

/* Yield — écran « Aucune donnée » (aucun indicateur sur la période, cf. yield.html.twig, #yield-blocks masqué) */
.yield-empty-state .card-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px 52px; }
.yield-empty-icon { width: 72px; height: 72px; border-radius: 50%; background: #f5f3ff; color: #4B49AC; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; box-shadow: 0 0 0 10px #faf9ff; }
.yield-empty-title { font-size: 1.35rem; font-weight: 700; color: #1f2937; margin: 0 0 10px; }
.yield-empty-text { max-width: 560px; color: #6b7280; font-size: 0.92rem; line-height: 1.6; margin: 0; }
.yield-empty-text strong { color: #4B49AC; font-weight: 600; }
.yield-empty-range { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin: 24px 0 4px; }
.yield-empty-range-bound { font-size: 0.75rem; font-weight: 700; color: #4B49AC; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.yield-empty-range-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: #ede9fe; position: relative; overflow: hidden; }
.yield-empty-range-track span { position: absolute; inset: 0; background: linear-gradient(90deg, #98BDFF, #4B49AC); border-radius: 999px; }
.yield-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.yield-empty-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ===== Yield — mobile uniquement (< 768px) : KPI principaux sur 2 colonnes (au lieu d'une carte par ligne),
   contenu resserré pour rester lisible dans une demi-largeur ===== */
@media (max-width: 767.98px) {
    .yind-col-kpi .row > .col-md-3,
    .yind-col-kpi .row > .col-xl-3 { flex: 0 0 50%; max-width: 50%; padding-left: 6px; padding-right: 6px; margin-bottom: 12px !important; }
    .yind-col-kpi .row { margin-left: -6px; margin-right: -6px; }
    .yind-col-kpi .kpi-themed .card-body { padding: 14px 12px; }
    .yind-col-kpi .kpi-themed .kpi-title { font-size: 0.78rem; gap: 6px; flex-wrap: wrap; line-height: 1.25; }
    .yind-col-kpi .kpi-themed .dperf-panel-icon { width: 24px; height: 24px; font-size: 0.75rem; border-radius: 6px; }
    /* valeur principale : 24px imposés en style inline dans yield.html.twig */
    .yind-col-kpi .kpi-themed .card-body p[style*="font-size: 24px"] { font-size: 1.1rem !important; margin-bottom: 6px !important; }
    .yind-col-kpi .kpi-themed .card-body > div[style*="font-size:12px"],
    .yind-col-kpi .kpi-themed .n1-row { font-size: 11px !important; }
    .yind-col-kpi .kpi-themed .n1-row { padding: 8px 8px; }
    .yind-col-kpi .kpi-themed .d-flex.justify-content-between { flex-wrap: wrap; gap: 2px 6px; }
}

/* Yield — mobile : popup "Sélectionner une période" centrée horizontalement et juste sous la ligne du bouton
   calendrier : le conteneur du bouton redevient "static" pour que la popup se positionne par rapport à la ligne
   d'en-tête entière (#yield-date, position:relative), dont elle prend le centre */
@media (max-width: 767.98px) {
    #period-pill-wrapper { position: static !important; }
    #period-pill-panel {
        position: absolute !important; top: 54px !important; left: 50% !important;
        transform: translateX(-50%); width: calc(100vw - 32px); max-width: 360px; min-width: 0 !important;
        z-index: 1070 !important;
    }
}

/* ===== Yield — mobile uniquement (< 768px) : KPI d'annulation sur 2 colonnes, même resserrement que les KPI
   principaux (cf. .yind-col-kpi ci-dessus) ===== */
@media (max-width: 767.98px) {
    #cancellation-impact-blocks > .col-md-3 { flex: 0 0 50%; max-width: 50%; padding-left: 6px; padding-right: 6px; margin-bottom: 12px !important; }
    #cancellation-impact-blocks { margin-left: -6px; margin-right: -6px; }
    #cancellation-impact-blocks > .col-12 { padding-left: 6px; padding-right: 6px; }
    #cancellation-impact-blocks .kpi-themed .card-body { padding: 14px 12px; }
    #cancellation-impact-blocks .kpi-themed .kpi-title { font-size: 0.78rem; gap: 6px; flex-wrap: wrap; line-height: 1.25; }
    #cancellation-impact-blocks .kpi-themed .dperf-panel-icon { width: 24px; height: 24px; font-size: 0.75rem; border-radius: 6px; }
    #cancellation-impact-blocks .kpi-themed .card-body p[style*="font-size: 24px"] { font-size: 1.1rem !important; margin-bottom: 6px !important; }
    #cancellation-impact-blocks .kpi-themed .card-body div[style*="font-size:12px"],
    #cancellation-impact-blocks .kpi-themed .n1-row { font-size: 11px !important; }
    #cancellation-impact-blocks .kpi-themed .n1-row { padding: 8px 8px; }
}

/* ===== Comptes clients — mobile uniquement (< 768px) : les 3 onglets (Entreprises / Établ. / Utilisateurs)
   sur une seule ligne — icônes masquées, onglets resserrés ===== */
@media (max-width: 767.98px) {
    .admin-main-tabs { flex-wrap: nowrap; }
    .admin-main-tabs .nav-link { padding: 0.6rem 0.55rem; font-size: 0.8rem; white-space: nowrap; display: inline-flex; align-items: center; }
    .admin-main-tabs .nav-link > i { display: none; }
    .admin-main-tabs .account-tab-count { margin-left: 4px !important; }
}

/* Comptes clients — mobile : filtre "Toutes les entreprises" (onglets Établissements / Utilisateurs) sous le
   titre de la liste, sur toute la largeur, au lieu de sortir de l'écran */
@media (max-width: 767.98px) {
    #establishments > .d-flex:first-child,
    #users > .d-flex:first-child { flex-wrap: wrap; gap: 10px; }
    #establishments > .d-flex:first-child > div:first-child,
    #users > .d-flex:first-child > div:first-child { flex-wrap: wrap; gap: 8px !important; width: 100%; }
    #establishments #filter-company-establishment,
    #users #filter-company-user { width: 100% !important; }
}

/* =====================================================================================================
   Page "Alertes" (templates/alerts/alerts.html.twig, assets/js/alerts-page.js) — niveaux : critique (rose foncé),
   à surveiller (orange), risque anticipé (violet), sans alerte (vert), non comparable (gris). Textes colorés
   assombris pour rester lisibles (contraste) sur fond blanc.
   ===================================================================================================== */
.al-critical { --al: #C0405A; --al-bg: #fdecef; --al-bar: #F28998; --al-border: #f9d3da; }
.al-watch    { --al: #A0620F; --al-bg: #fff4e6; --al-bar: #FABA66; --al-border: #fbe0bd; }
.al-risk     { --al: #4B49AC; --al-bg: #ede9fe; --al-bar: #7978E9; --al-border: #ddd8fb; }
.al-ok       { --al: #2E8540; --al-bg: #e8f8ec; --al-bar: #A9DDB6; --al-border: #cdeed5; }
.al-nodata   { --al: #6C7383; --al-bg: #f5f6fb; --al-bar: #e3e5ee; --al-border: #e8e9f1; }
.al-neg { color: #B4245A; }
.al-pos { color: #166534; }
.al-watch-text { color: #9A5A00; }
.al-risk-text { color: #4B49AC; }
.al-muted { color: #6C7383; }

.al-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.al-title { display: flex; align-items: center; gap: 12px; }
.al-title h3 { margin: 0; font-weight: 800; color: #3d3c8e; }
.al-title .dperf-panel-icon { width: 42px; height: 42px; font-size: 1.1rem; }
.al-subtitle { margin: 6px 0 0; color: #4B49AC; font-size: 0.9rem; }
.al-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* barre d'outils en haut de page (#alerts-date), même espacement que les autres pages */
#alerts-date { margin-bottom: 30px; } /* comme #faq-date */
#alerts-date .al-segmented, #alerts-date .al-settings-btn { height: 42px; box-sizing: border-box; }
#alerts-date .al-segmented { align-items: center; }
.al-asof { margin: 0 0 14px; }
@media (max-width: 767px) {
    /* tout sur une ligne : "Réglages des seuils" réduit à son icône, bouton rond (comme "Ajouter une promotion") */
    #alerts-date > .col-md-12 { flex-wrap: nowrap !important; }
    #alerts-date .al-settings-btn { width: 42px; padding: 0; justify-content: center; flex-shrink: 0; }
    /* gélule "Alertes" + sélecteur sur une ligne : marges resserrées, libellés sans retour à la ligne */
    #alerts-date .btn-primary.btn-rounded.btn-fw { min-width: 0; padding-left: 14px; padding-right: 14px; flex-shrink: 0; }
    #alerts-date .al-segmented a { padding: 8px 10px; font-size: 0.8rem; }
}
#alerts-date .al-segmented a { white-space: nowrap; }
.al-segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid #e4e2f7; }
.al-segmented a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: #4B49AC; text-decoration: none; }
.al-segmented a.active { background: #4B49AC; color: #fff; }
.al-settings-btn { border: 1px solid #d0d5dc !important; border-radius: 999px !important; font-weight: 700; color: #3d3c8e; display: inline-flex; align-items: center; gap: 6px; }
/* même survol discret que les boutons du haut du Dashboard (fond à peine teinté, contour violet clair) — !important :
   .bg-white (Bootstrap) impose déjà le fond blanc en !important */
.al-settings-btn:hover, .al-settings-btn:focus { background-color: #faf9ff !important; border-color: #c4bff3 !important; color: #4B49AC; box-shadow: none; }

.al-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.al-tile { background: #fff; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--al-border, #e5e7eb); }
.al-tile-label { font-size: 0.72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--al, #6C7383); }
.al-tile-value { font-size: clamp(1.35rem, 1.6vw, 1.9rem); white-space: nowrap; /* avant : 1.9rem — 5 tuiles par ligne depuis l'ajout de « Opportunités » */ font-weight: 800; color: var(--al, #3d3c8e); line-height: 1.2; }
.al-tile-sub { font-size: 0.8rem; color: #6C7383; }
.al-tile.al-total { background: #3d3c8e; border-color: #3d3c8e; }
.al-tile.al-total .al-tile-label, .al-tile.al-total .al-tile-sub { color: #d9d7ff; }
.al-tile.al-total .al-tile-value { color: #fff; }

.al-card { margin-bottom: 22px; border-radius: 10px; } /* même rayon que .card */
.al-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.al-card-sub { color: #4B49AC; font-weight: normal; font-size: 14px; text-transform: none; }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--al-bg, #f3f4f6); color: var(--al, #6b7280); font-size: 0.8rem; font-weight: 700; border: 2px solid transparent; }
.al-stag-chip { background: #f5f6fb; color: #3d3c8e; cursor: pointer; }
.al-stag-chip.active { border-color: #4B49AC; }
.al-stag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stag); }
/* compléments de légende (variation / données manquantes) sous les gélules J-7/J-14/J-21+ du calendrier de stagnation */
.al-card-head:has(.al-stag-legend) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.al-stag-legend { grid-column: 2; display: flex; justify-content: flex-end; gap: 16px; margin-top: -4px; font-size: 0.78rem; color: #6C7383; }
.al-stag-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.al-stag-legend .al-stag-dot { flex-shrink: 0; }
@media (max-width: 767px) { .al-card-head:has(.al-stag-legend) { grid-template-columns: 1fr; } .al-stag-legend { grid-column: 1; justify-content: flex-start; margin-top: 0; } }
.al-chart-wrap { position: relative; height: 300px; }
.al-note { margin: 12px 0 0; font-size: 0.78rem; color: #6C7383; }
.al-footnote { margin: 0 0 22px; }
.al-section-title { margin: 6px 0 14px; font-size: 1rem; font-weight: 800; color: #3d3c8e; text-transform: uppercase; }
.al-empty .card-body { display: flex; align-items: center; gap: 10px; color: #166534; font-weight: 700; }

.al-month { border: 1px solid var(--al-border); }
/* .al-month.al-risk { border-style: dashed; border-color: #a5a3e6; } — trait plein demandé */
.al-month.al-risk { border-color: #c9c6f3; }
.al-month-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.al-month-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.al-month-title h3 { margin: 0; font-size: 1.3rem; font-weight: 800; color: #3d3c8e; }
.al-month-row .al-month-title h3 { font-size: 1.1rem; }
.al-month-gap { font-weight: 700; color: var(--al); }
.al-badge { padding: 4px 11px; border-radius: 999px; background: var(--al-bg); color: var(--al); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.al-badge.al-critical { background: #B4245A; color: #fff; }
.al-diag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #f5f6fb; font-size: 0.8rem; font-weight: 700; color: #3d3c8e; }
.al-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.al-kpi { padding: 14px; border-radius: 12px; background: #fafaff; display: flex; flex-direction: column; gap: 2px; }
.al-kpi-label { font-size: 0.72rem; font-weight: 700; color: #6C7383; text-transform: uppercase; }
.al-kpi-value { font-size: 1.2rem; font-weight: 800; color: #1f2937; }
.al-kpi-cmp { font-size: 0.8rem; color: #4B49AC; }
.al-two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 18px; }
.al-block-title { display: block; font-size: 0.78rem; font-weight: 800; color: #3d3c8e; text-transform: uppercase; margin-bottom: 10px; }
.al-block-title em { font-weight: 600; text-transform: none; font-style: normal; color: #6C7383; }
.al-effect { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; }
.al-effect b { text-align: right; }
.al-effect-bar { height: 12px; border-radius: 999px; background: #f1f2f6; overflow: hidden; }
.al-effect-bar span { display: block; height: 100%; border-radius: 999px; }
.al-effect-bar span.neg { background: #F28998; }
.al-effect-bar span.pos { background: #A9DDB6; }
.al-text { margin: 8px 0 0; font-size: 0.85rem; color: #374151; line-height: 1.55; }
.al-hints { margin: 0; padding-left: 18px; font-size: 0.85rem; color: #374151; line-height: 1.7; }
.al-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.al-btn { border-radius: 999px !important; font-weight: 700 !important; }
.al-btn-soft { background: #ede9fe !important; color: #4B49AC !important; }
.al-btn-light { background: #f5f6fb !important; color: #3d3c8e !important; }
.al-month-row .card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 18px; padding-bottom: 18px; }
/* .al-month-row .al-month-title { flex: 1 1 340px; } — le titre s'étirait et repliait badge/mois/écart, et un texte
   long (risque anticipé) renvoyait les boutons sous le titre : titre d'un bloc à largeur fixe minimale, texte qui
   prend la place restante (retour à la ligne interne), boutons calés à droite */
.al-month-row .card-body { flex-wrap: nowrap; }
.al-month-row .al-month-title { flex: 0 0 440px; flex-wrap: nowrap; white-space: nowrap; }
.al-row-text { font-size: 0.85rem; color: #374151; flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.al-month-row .al-diag { flex: 0 0 auto; }
.al-row-actions { display: flex; gap: 4px; flex: 0 0 auto; margin-left: auto; }
@media (max-width: 991px) {
    .al-month-row .card-body { flex-wrap: wrap; }
    .al-month-row .al-month-title { flex: 1 1 100%; flex-wrap: wrap; white-space: normal; }
}
.al-row-actions .btn-link { font-weight: 700; color: #4B49AC; text-decoration: none; padding: 6px 10px; }

/* modales */
@media (min-width: 576px) {
    .modal .modal-dialog.al-dialog { max-width: 820px; margin-top: 40px; }
    .modal .modal-dialog.al-dialog-sm { max-width: 560px; margin-top: 60px; }
}
/* ---- page « Alertes & Opportunités » (19/11/2026) : onglets, priorité, diagnostic en 3 points, opportunités,
   résumé de la stagnation ---- */
/* Radar : 4 onglets (Synthèse, Risques, Stagnation, Opportunités) — 4 colonnes égales, fond qui glisse d'un quart
.tri-toggle.al-tabs[data-active="risks"] .tri-toggle-thumb { transform: translateX(100%); }
.tri-toggle.al-tabs[data-active="opps"] .tri-toggle-thumb { transform: translateX(200%); } */
.tri-toggle.al-tabs { grid-template-columns: repeat(4, 1fr); }
.tri-toggle.al-tabs .tri-toggle-thumb { width: calc(25% - 1.5px); }
.tri-toggle.al-tabs[data-active="risks"] .tri-toggle-thumb { transform: translateX(100%); }
.tri-toggle.al-tabs[data-active="stagnation"] .tri-toggle-thumb { transform: translateX(200%); }
.tri-toggle.al-tabs[data-active="opps"] .tri-toggle-thumb { transform: translateX(300%); }
.al-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: #ede9fe; color: #4B49AC; font-size: 0.68rem; font-weight: 800; }
.tri-toggle-option.active .al-tab-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.al-opp-tile { --al: #2E8540; --al-border: #cdeed5; text-decoration: none !important; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; }
.al-opp-tile:hover { border-color: #A9DDB6; box-shadow: 0 4px 14px rgba(46, 133, 64, 0.1); }
/* gélule de priorité : rang + niveau, puis ligne d'explication du score */
.al-prio-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.al-prio { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.al-prio b { font-weight: 800; }
.al-prio-high { background: #B4245A; color: #fff; }
.al-prio-medium { background: #fff4e6; color: #A0620F; border: 1px solid #fbe0bd; }
.al-prio-low { background: #f5f6fb; color: #6C7383; border: 1px solid #e8e9f1; }
.al-prio-why { font-size: 0.72rem; color: #6C7383; white-space: nowrap; }
.al-row-left { flex: 0 0 440px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.al-row-left .al-month-title { flex: none !important; }
.al-month-row .al-prio-wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
@media (max-width: 991px) { .al-row-left { flex: 1 1 100%; } }
.al-row-action { display: block; margin-top: 4px; font-size: 0.8rem; color: #4B49AC; }
.al-row-action i { font-size: 0.65rem; margin-right: 3px; }
.al-month-row .al-row-text .al-diag { padding: 3px 9px; margin-right: 6px; font-size: 0.75rem; }
/* tri des mois : par priorité / chronologique */
.al-months-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.al-sort { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid #e4e2f7; }
.al-sort button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; color: #4B49AC; font-size: 0.78rem; font-weight: 700; }
.al-sort button.active { background: #4B49AC; color: #fff; }
/* diagnostic en 3 points : problème, impact, action */
.al-diag3 { display: flex; flex-direction: column; gap: 10px; }
.al-diag3 .al-block-title i { margin-right: 4px; }
.al-diag3-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 0.85rem; color: #374151; line-height: 1.5; }
.al-diag3-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #6C7383; }
.al-diag3-row.is-action { padding: 10px 12px; border-radius: 10px; background: #f5f3ff; }
.al-diag3-row.is-action .al-diag3-label { color: #4B49AC; }
.al-hints-details { margin: 0 0 18px; font-size: 0.85rem; }
.al-hints-details summary { cursor: pointer; font-size: 0.78rem; font-weight: 800; color: #3d3c8e; text-transform: uppercase; }
.al-hints-details summary em { font-weight: 600; text-transform: none; font-style: normal; color: #6C7383; }
.al-hints-details .al-hints { margin-top: 8px; }
@media (max-width: 575.98px) {
    .al-diag3-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .al-prio-wrap { align-items: flex-start; }
    .al-prio-why { white-space: normal; }
}
/* opportunités */
.al-opp-tile .al-tile-label { color: #2E8540; }
.al-opps-head .al-chips { margin-left: auto; }
.al-opps-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.al-opp-chip { background: rgba(255, 255, 255, 0.9); color: #2E8540; }
/* ancienne version, plus dense — cf. historique git (cartes Opportunités aérées le 19/11/2026) */
.al-opps { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; margin-bottom: 16px; }
@media (max-width: 575.98px) { .al-opps { grid-template-columns: minmax(0, 1fr); } }
.al-opp { --opp: #2E8540; --opp-bg: #e8f8ec; --opp-border: #cdeed5; margin-bottom: 0; border: 1px solid var(--opp-border); border-left: 4px solid var(--opp); }
.al-opp-filling { --opp: #2563eb; --opp-bg: #e8f0fe; --opp-border: #d4e1fb; }
.al-opp-category { --opp: #7c3aed; --opp-bg: #f1eafe; --opp-border: #e2d5fb; }
/* aéré (19/11/2026) : plus de marge intérieure et d'espace entre les blocs de la carte */
.al-opp .card-body { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 26px 28px; }
.al-opp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.al-opp-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.al-opp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--opp-bg); color: var(--opp); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.al-opp-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #3d3c8e; line-height: 1.35; }
.al-opp-potential { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.al-opp-potential-value { font-size: 1.3rem; font-weight: 800; color: #2E8540; white-space: nowrap; line-height: 1.2; }
.al-opp-potential-label { font-size: 0.7rem; color: #6C7383; }
/* faits : liste à puces légère, une info par ligne (au lieu de gélules grises serrées) */
.al-opp-facts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.al-opp-facts li { position: relative; padding-left: 14px; font-size: 0.85rem; color: #374151; line-height: 1.4; }
.al-opp-facts li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--opp); opacity: 0.55; }
@media (max-width: 575.98px) { .al-opp-facts { grid-template-columns: minmax(0, 1fr); } }
.al-opp-action { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; background: #f5f3ff; font-size: 0.875rem; color: #374151; line-height: 1.6; }
.al-opp-action .al-diag3-label { color: #4B49AC; }
.al-opp-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid #f0f0f6; }
.al-opp-foot .al-mini-btn { white-space: nowrap; flex-shrink: 0; }
.al-opp-foot .al-mini-btn i { margin-right: 5px; }
.al-opp-note { font-size: 0.75rem; color: #6C7383; line-height: 1.45; }
@media (max-width: 575.98px) {
    .al-opp .card-body { padding: 20px; }
    .al-opp-foot { flex-wrap: wrap; }
    /* montant sous le titre (pleine largeur pour le titre) */
    .al-opp-top { flex-direction: column; gap: 10px; }
    .al-opp-potential { flex-direction: row; align-items: baseline; gap: 8px; }
}
.al-opp-empty .card-body { display: flex; align-items: center; gap: 10px; color: #6C7383; font-weight: 700; }
.al-opp-footnote { margin: 0 0 22px; }
/* résumé du calendrier de stagnation */
.al-stag-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
@media (max-width: 767.98px) { .al-stag-summary { grid-template-columns: minmax(0, 1fr); } }
.al-stag-kpi { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fafaff; border: 1px solid #eeedfa; }
.al-stag-kpi-value { font-size: 1.7rem; font-weight: 800; color: #3d3c8e; line-height: 1; min-width: 32px; flex-shrink: 0; }
.al-stag-kpi-label { font-size: 0.8rem; color: #6C7383; line-height: 1.35; }
.al-stag-kpi.is-alert .al-stag-kpi-value { color: #C0405A; }
.al-stag-kpi.is-priority { background: #fdecef; border-color: #f9d3da; }
.al-stag-kpi.is-priority .al-stag-kpi-value { color: #B4245A; }
.al-stag-priority { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 999px; background: #B4245A; color: #fff; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.al-detail-section { margin-bottom: 22px; }
.al-detail-section h6 { font-size: 0.78rem; font-weight: 800; color: #3d3c8e; text-transform: uppercase; margin-bottom: 10px; }
.al-week { display: grid; grid-template-columns: 130px minmax(0, 1fr) 140px; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 0.85rem; }
.al-week b { text-align: right; }
.al-dates { border: 1px solid #eef0f4; border-radius: 12px; overflow: hidden; }
.al-dates-row { display: grid; grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr 1.5fr; gap: 8px; padding: 9px 14px; font-size: 0.85rem; align-items: center; border-top: 1px solid #f1f2f6; }
.al-dates-head { background: #4B49AC; color: #fff; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; border-top: none; }
.al-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.75rem; color: #6C7383; }
.al-pickups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.al-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.al-breakdown-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f1f2f6; font-size: 0.85rem; }
.al-breakdown-row:last-child { border-bottom: none; }
.al-detail-empty { font-size: 0.85rem; color: #6C7383; font-style: italic; }
.al-settings .al-field { margin-bottom: 20px; }
.al-settings label, .al-field-label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.al-settings input[type=range] { width: 100%; accent-color: #4B49AC; }
.al-gap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-rules { padding: 14px 16px; border-radius: 12px; background: #f5f6fb; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.al-error { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fde8ef; color: #B4245A; font-size: 0.85rem; }

/* calendrier de stagnation (repris de l'ancienne page Stagnation) */
.stagnation-day.stagnation-dimmed { opacity: 0.25; }
.stagnation-day-dow { display: none; }
@media (max-width: 767.98px) {
    .stagnation-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .stagnation-calendar .stagnation-dow-head,
    .stagnation-calendar .stagnation-blank { display: none; }
    .stagnation-calendar .stagnation-day { min-height: 0 !important; padding: 10px 10px !important; }
    .stagnation-day-dow { display: inline; font-weight: 600; color: #6C7383; }
    .al-head-actions { width: 100%; }
    .al-tiles, .al-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .al-tile { padding: 14px; }
    .al-tile-value { font-size: 1.4rem; }
    .al-tile.al-total { grid-column: 1 / -1; }
    .al-effect { grid-template-columns: 90px minmax(0, 1fr) 110px; }
    .al-chart-wrap { height: 240px; }
    .al-pickups, .al-breakdown { grid-template-columns: minmax(0, 1fr); }
    .al-dates-row { grid-template-columns: 1fr 0.7fr 1fr; }
    .al-dates-row > :nth-child(3), .al-dates-row > :nth-child(5) { display: none; }
    .al-week { grid-template-columns: 110px minmax(0, 1fr) 90px; }
}

/* Dashboard, Yield, Demande, Objectifs, Historique, Salons et Promotions, barre du haut (#dashboard-date, #yield-date,
   #demand-date, #budget-date, #history-date, #events-date, #promotions-date,
   #discount-simulator-header, #faq-date, #alerts-date) : même design que les boutons de la page Alertes (.al-segmented,
   .al-settings-btn) — fond blanc, contour violet clair, texte violet ; l'élément actif reste violet plein
   (année affichée, option active du sélecteur Annuel / Réalisé / Prévisionnel) */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .btn-inverse-primary {
    background: #fff;
    border: 1px solid #ddd8fb;
    color: #4B49AC;
    box-shadow: none;
}
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .btn-inverse-primary:hover,
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .btn-inverse-primary:focus,
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .btn-inverse-primary.show {
    /* survol discret : contour à peine plus soutenu, fond très légèrement teinté */
    background: #faf9ff;
    border-color: #c4bff3;
    color: #4B49AC;
    box-shadow: none;
}
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .tri-toggle {
    background: #fff;
    border: 1px solid #ddd8fb;
    box-sizing: border-box;
}
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .dashboard-import-date-chip {
    background: #fff !important;
    border: 1px solid #ddd8fb;
}
/* options non actives du sélecteur : texte violet en gras, comme les options de .al-segmented (page Alertes) */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .tri-toggle-option { color: #4B49AC; font-weight: 700; }
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .tri-toggle-option.active { color: #fff; }
/* menus Indicateurs / Comparatif : texte en gras, comme les boutons de la page Alertes */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .dropdown-toggle.btn-inverse-primary { font-weight: 700; }
/* même hauteur que les boutons ronds et le sélecteur Annuel / Réalisé / Prévisionnel (42px) */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .dropdown-toggle.btn-inverse-primary { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; gap: 6px; }
/* année affichée : même hauteur (42px) que les boutons ronds, le sélecteur et les menus de la barre */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date, #account-date) .btn-primary.btn-rounded { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }
/* Objectifs : sélecteur Mensuel / Journalier et liste des mois, même style que le sélecteur du Dashboard */
#budget-date .bi-toggle { background: #fff; border: 1px solid #ddd8fb; box-sizing: border-box; }
#budget-date .bi-toggle-option { color: #4B49AC; font-weight: 700; }
#budget-date .bi-toggle-option.active { color: #fff; }
#budget-date #budget-month-select { background-color: #fff !important; border: 1px solid #ddd8fb !important; font-weight: 700 !important; outline: none !important; box-shadow: none !important; }
#budget-date #budget-month-select:hover { background-color: #faf9ff !important; border-color: #c4bff3 !important; }
/* Historique : bouton texte "Import date antérieure", même hauteur et même graisse que les menus du Dashboard */
#history-date #import-past-date-btn { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
/* Salons : boutons texte (Salon, Lieux, Zones), même hauteur et même graisse que les menus du Dashboard */
#events-date :is(#btn-add-event, #btn-import-events, #btn-add-location, #btn-add-event-zones) { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
/* icônes des boutons texte de ces barres : la règle globale ".ti-calendar { height: 41px }" décentrait l'icône
   de "Gérer les salons" (même correctif que .dperf-panel-icon i) */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date, #account-date) .btn-rounded:not(.btn-icon) i { height: auto; line-height: 1; }
/* Promotions : boutons texte (Simulateur de remises, Ajouter), même hauteur et même graisse que les menus du Dashboard */
#promotions-date .btn-inverse-primary.btn-rounded:not(.btn-icon) { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
/* boutons ronds (icône seule) des barres du haut : jamais écrasés quand la place manque */
:is(#dashboard-date, #yield-date, #demand-date, #budget-date, #history-date, #events-date, #promotions-date, #discount-simulator-header, #faq-date, #alerts-date, #group-date) .btn-icon.btn-rounded { flex-shrink: 0; min-width: 42px; }
/* Promotions, mobile : la barre doit tenir sur une ligne (année, calendrier, Simulateur, réglages, +) — boutons
   resserrés, le texte en gras du Simulateur les élargissait juste assez pour pousser "+" hors de l'écran */
@media (max-width: 767.98px) {
    #promotions-date .btn-primary.btn-rounded { padding-left: 16px; padding-right: 16px; }
    #promotions-date .btn-inverse-primary.btn-rounded:not(.btn-icon) { padding-left: 12px; padding-right: 12px; gap: 4px; }
    #promotions-date .d-flex { gap: 6px !important; }
    /* écart gélule de date → bouton calendrier aligné sur les autres pages (8px), les autres boutons restent resserrés */
    #promotions-date .btn-primary.btn-rounded { margin-right: 2px; }
}
/* Simulateur de remises : champ "Remise %" au même style que les boutons de la barre (contour violet clair, 42px) */
#discount-simulator-header .discount-simulator-input-group .form-control,
#discount-simulator-header .discount-simulator-input-group .input-group-text { height: 42px; border-color: #ddd8fb; background: #fff; }
#discount-simulator-header .discount-simulator-input-group .form-control { border-radius: 21px 0 0 21px; font-weight: 700; color: #3d3c8e; }
#discount-simulator-header .discount-simulator-input-group .input-group-text { border-radius: 0 21px 21px 0; color: #4B49AC; font-weight: 700; }
#discount-simulator-header .discount-simulator-input-group .form-control:focus { border-color: #c4bff3; box-shadow: none; }
/* FAQ : champ de recherche déployé à côté de la loupe, même contour et même hauteur que les boutons de la barre
   (les !important l'emportent sur le style en ligne d'origine : bordure 2px violet foncé, 36px) */
#faq-date #faq-search { height: 42px !important; border: 1px solid #c4bff3 !important; background: #fff; color: #3d3c8e; }
/* Promotions, bouton de sens du tri (flèche, à côté de "Trier") : même style que les boutons ronds des barres du haut
   (taille 36px conservée, alignée sur la liste "Trier") */
#promotion-sort-dir { background: #fff; border: 1px solid #ddd8fb; color: #4B49AC; box-shadow: none; }
#promotion-sort-dir:hover, #promotion-sort-dir:focus { background: #faf9ff; border-color: #c4bff3; color: #4B49AC; box-shadow: none; }
/* Salons, liste "Année entière / mois" de la frise : même design que la liste "Trier" de la page Promotions
   (.promo-sort .form-select, templates/promotions/promotions.html.twig) */
#timeline-month-filter { border-radius: 20px; font-size: 0.82rem; height: 36px; padding: 0.3rem 2rem 0.3rem 0.9rem; }

/* En-tête (navbar) : même forme de bouton que les barres du haut des pages — pilule de 42px. Import reste violet plein
   (action principale) ; listes Compagnie / Hôtel et bouton profil en fond blanc, contour violet clair, texte violet.
   !important : rayon / couleur posés en style en ligne dans navbar.html.twig */
.navbar #import-button {
    height: 42px; border-radius: 999px !important; padding: 0 18px 0 16px !important; width: auto; min-width: 96px;
    display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-weight: 700;
}
.navbar #company-choice,
.navbar #establishment-choice {
    height: 42px; border-radius: 999px; border: 1px solid #ddd8fb; background-color: #fff;
    color: #3d3c8e !important; font-weight: 700; font-size: 0.82rem; padding: 0 2rem 0 1rem; box-shadow: none; outline: none;
}
.navbar #company-choice:hover,
.navbar #establishment-choice:hover,
.navbar #company-choice:focus,
.navbar #establishment-choice:focus { background-color: #faf9ff; border-color: #c4bff3; box-shadow: none; }
.navbar .nav-profile .btn-inverse-primary { background: #fff; border: 1px solid #ddd8fb; color: #4B49AC; }
.navbar .nav-profile .btn-inverse-primary:hover,
.navbar .nav-profile .btn-inverse-primary.show { background: #faf9ff; border-color: #c4bff3; color: #4B49AC; }
/* en-tête : espacement resserré et régulier (8px) entre Import, Compagnie, Hôtel et profil (16 à 26px auparavant) */
.navbar .navbar-nav-right { gap: 8px; }
.navbar .navbar-nav-right > #item-import,
.navbar .navbar-nav-right > #item-companies,
.navbar .navbar-nav-right > #item-establishments,
.navbar .navbar-nav-right > .nav-profile { margin-left: 0 !important; margin-right: 0 !important; }
.navbar #item-import .input-group-append { margin-left: 0 !important; }

/* Modales harmonisées sur le modèle "Évolution par import" (Yield > Rapport détaillé) : en-tête dégradé violet,
   pastille icône, titre + sous-titre (.charge-note-modal), ancrées en haut de l'écran (50px) plutôt que centrées —
   une hauteur qui change (onglets, listes) ne fait plus "sauter" la modale */
@media (min-width: 576px) { .modal .modal-dialog.ey-dialog { margin-top: 50px; } }
.charge-note-modal .modal-header .btn-close { margin-left: auto; }

/* Administration, fiche établissement : période de chambres en erreur (cf. validateRoomsPeriodsDetailed(), admin.html.twig) */
/* marquage discret : fin trait rose à gauche de la ligne + contour rose pâle sur ses seuls champs de dates (plus de
   fond coloré ni de cadre autour de toute la ligne) */
.rooms-period-row { position: relative; }
.rooms-period-row-invalid::before {
    content: ''; position: absolute; left: 2px; top: 6px; height: 42px; width: 3px; border-radius: 3px; background: #e8577e;
}
.rooms-period-row-invalid input.rooms-period-start:not(:disabled),
.rooms-period-row-invalid input.rooms-period-end:not(:disabled) { border-color: #f2a7bb; }
#establishment-rooms-periods-error { background: #fde8ef; color: #B4245A !important; border-radius: 10px; padding: 10px 14px; line-height: 1.6; }

/* Yield : menu « Rapports » (PDF téléchargeables, cf. ReportPdfController) — bouton rond + menu compact */
.yield-reports-menu { min-width: 300px; padding: 6px; border-radius: 12px; border: 1px solid #ede9fe; box-shadow: 0 8px 24px rgba(75, 73, 172, 0.16); }
.yield-reports-head { padding: 6px 10px 8px; font-size: 0.72rem; font-weight: 800; color: #6C7383; text-transform: uppercase; letter-spacing: 0.03em; }
.yield-report-link { display: flex !important; align-items: center; gap: 12px; padding: 9px 10px !important; border-radius: 9px; white-space: normal; }
.yield-report-link b { display: block; color: #3d3c8e; font-size: 0.86rem; }
.yield-report-link small { display: block; color: #6C7383; font-size: 0.74rem; line-height: 1.35; }
.yield-report-link:hover, .yield-report-link:focus { background: #f5f3ff; }
.yield-report-link.disabled { opacity: 0.55; pointer-events: none; }
.yield-report-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #ede9fe; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; }
.yield-report-spin { display: inline-block; animation: yield-report-spin 0.9s linear infinite; }
@keyframes yield-report-spin { to { transform: rotate(360deg); } }


/* menu de navigation latéral : liseré violet très clair + ombre douce à droite, pour le détacher du fond de page
   (même teinte que la bordure des .card) */
.sidebar {
    border-right: 1px solid rgba(221, 216, 251, 0.35);
    box-shadow: 2px 0 12px rgba(75, 73, 172, 0.035);
}

/* Yield > "Taux d'occupation / Prix moyen N vs N-1" : bascule date à date / date comparable (cf. ycmp* dans
   dashboard.js). Pastille de la vue à côté du titre (violet = date à date, rose = date comparable), bouton
   "retourner" (icône qui tourne au survol) et demi-rotation de la carte au changement de vue */
.ycmp-card { transition: transform 0.23s ease-in-out; transform-origin: center; backface-visibility: hidden; }
.ycmp-card.is-flipping { transform: perspective(1600px) rotateY(90deg); }
.ycmp-pill {
    display: inline-flex; align-items: center; vertical-align: 2px; margin-left: 6px; padding: 2px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
    background: #ede9fe; color: #4B49AC; border: 1px solid #ddd8fb;
}
.ycmp-card.is-comparable .ycmp-pill { background: #fde8ec; color: #c2415a; border-color: #f9cdd6; }
.ycmp-pill[data-bs-toggle="tooltip"] { cursor: help; } /* Rapport détaillé : mention de la vue au survol */
.ycmp-flip-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid #ddd8fb; background: #fff; color: #4B49AC; font-size: 0.8rem; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ycmp-flip-btn:hover, .ycmp-flip-btn:focus-visible { background: #f5f3ff; border-color: #c4bff3; outline: none; }
.ycmp-flip-btn i { font-size: 0.85rem; line-height: 1; transition: transform 0.35s ease; }
.ycmp-flip-btn:hover i { transform: rotate(180deg); }
.ycmp-card.is-comparable .ycmp-flip-btn { color: #c2415a; border-color: #f9cdd6; }
.ycmp-card.is-comparable .ycmp-flip-btn:hover { background: #fff5f7; border-color: #f4b3c1; }
/* Rapport détaillé, case « Données N-1 » décochée : appel à l'activer (bordure en pointillés rose N-1), à la place du
   bouton de bascule date à date / date comparable */
.ycmp-n1-cta {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px dashed #f4b3c1; background: #fff; color: #c2415a; font-size: 0.8rem; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ycmp-n1-cta:hover, .ycmp-n1-cta:focus-visible { background: #fff5f7; border-color: #F28998; border-style: solid; outline: none; }
.ycmp-n1-cta i { font-size: 0.7rem; }
.ycmp-n1-cta-sub { font-weight: 500; color: #d9798b; font-size: 0.75rem; }
.ycmp-n1-cta-sub::before { content: '·'; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) {
    .ycmp-card, .ycmp-flip-btn i { transition: none; }
}


/* ===================== Synthèse groupe (templates/group/group.html.twig, group-synthesis.js) ===================== */
#group-date .al-segmented { align-items: center; }
#group-date .al-segmented a { white-space: nowrap; }
.grp-scope-chip, .grp-navbar-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1px solid #e4e2f7; color: #4B49AC; font-weight: 700; font-size: 0.82rem; white-space: nowrap;
}
.grp-navbar-chip { height: 38px; background: #f5f3ff; }
.grp-stale-note {
    display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 18px; padding: 10px 14px; border-radius: 10px;
    background: #fff7e6; border: 1px solid #fde3b0; color: #9a5b00; font-size: 0.82rem;
}
.grp-stale-note i { margin-top: 2px; }
.grp-kpi-value { font-size: 22px; color: rgba(88, 92, 94, 1); margin: 4px 0 10px; white-space: nowrap; }
.grp-kpi-value small, .grp-currency { font-size: 0.6em; color: #9ca3af; }
.grp-kpi-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px;
    border-top: 1px solid rgba(232, 229, 245, 0.6); font-size: 12px; color: #4B49AC;
}
.grp-progress { height: 8px; margin-bottom: 0; }
.grp-progress .progress-bar { background: #4B49AC; border-radius: 4px; }
.grp-evol { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; white-space: nowrap; background: #f3f4f6; color: #6b7280; }
.grp-evol.is-up { background: #dcfce7; color: #15803d; }
.grp-evol.is-down { background: #fee2e2; color: #b91c1c; }
.grp-evol.is-none { background: none; color: #9ca3af; }
/* tableau de classement */
.grp-table-wrap { overflow-x: auto; }
.grp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.grp-table thead th {
    background: #4B49AC; color: #fff; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em;
    padding: 12px 12px; text-align: right; white-space: nowrap; cursor: pointer; user-select: none;
}
.grp-table thead th:first-child { border-radius: 10px 0 0 10px; }
.grp-table thead th:last-child { border-radius: 0 10px 10px 0; }
.grp-table thead th.is-sorted-asc::after { content: ' ▲'; font-size: 0.65rem; }
.grp-table thead th.is-sorted-desc::after { content: ' ▼'; font-size: 0.65rem; }
.grp-table td { padding: 11px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid #f0eefb; color: #374151; }
.grp-table .is-text { text-align: left; }
.grp-table tbody tr { cursor: pointer; transition: background 0.12s; }
.grp-table tbody tr:hover { background: #f8f7ff; }
.grp-est-name { font-weight: 700; color: #3d3c8e; }
.grp-table tfoot td { font-weight: 700; color: #3d3c8e; background: #f5f3ff; border-bottom: none; }
/* pas de trait sous la dernière ligne (quelle qu'elle soit après un tri) : il touchait la ligne « Groupe » */
.grp-table tbody tr:last-child td { border-bottom: none; }
.grp-table tfoot td:first-child { border-radius: 10px 0 0 10px; }
.grp-table tfoot td:last-child { border-radius: 0 10px 10px 0; }
.grp-completion { display: inline-block; min-width: 52px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; }
.grp-completion.is-ok { background: #dcfce7; color: #15803d; }
.grp-completion.is-watch { background: #fef3c7; color: #a16207; }
.grp-completion.is-late { background: #fee2e2; color: #b91c1c; }
.grp-stale { color: #b45309 !important; font-weight: 700; }
/* graphiques */
.grp-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 12px; font-size: 0.8rem; font-weight: 600; color: #6C7383; align-items: center; }
.grp-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.grp-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.grp-swatch.is-line { width: 20px; height: 3px; border-radius: 2px; }
.grp-swatch.is-dashed { background: none !important; height: 0; border-top: 3px dashed currentColor; }
.grp-chart-box { position: relative; height: 300px; }
.grp-chart-box.is-wide { height: 340px; }
@media (max-width: 767.98px) {
    .grp-scope-chip { height: 36px; font-size: 0.75rem; }
    #group-date > div > div:first-child { min-width: 0; max-width: 100%; }
    #group-date .al-segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    #group-date .al-segmented a { padding: 8px 10px; font-size: 0.78rem; }
    .grp-kpi-value { font-size: 1.1rem; }
    .grp-chart-box { height: 260px; }
}
/* KPI de la Synthèse groupe sur grand écran (5 cartes par ligne) : titres toujours sur une ligne, pour que valeurs et
   pieds restent alignés — marges intérieures et icône un peu resserrées, taille du titre qui suit la largeur de l'écran
   (13px à 1200px, taille normale à partir de ~1500px) ; "Taux d'occupation" passait sinon sur 2 lignes */
@media (min-width: 1200px) {
    .grp-kpis .kpi-themed .card-body { padding-left: 18px !important; padding-right: 18px !important; }
    .grp-kpis .kpi-title { gap: 6px; white-space: nowrap; font-size: clamp(13px, calc(1.625vw - 7.6px), 16.8px); }
    .grp-kpis .kpi-title .dperf-panel-icon { width: 26px; height: 26px; font-size: 0.8rem; }
}

/* ---------- Synthèse groupe : filtres (période personnalisée, établissements, base de comparaison) ---------- */
.grp-scope-btn { cursor: pointer; }
.grp-scope-btn:hover, .grp-scope-btn[aria-expanded="true"] { background: #f5f3ff; }
.grp-custom-toggle i, .grp-scope-btn .ti-angle-down { font-size: 0.65rem; margin-left: 2px; }
.grp-dropdown { padding: 16px; border-radius: 12px; border: 1px solid #e4e2f7; box-shadow: 0 12px 32px rgba(75, 73, 172, 0.14); min-width: 300px; }
.grp-dropdown-title { font-weight: 800; color: #3d3c8e; margin-bottom: 10px; }
.grp-dropdown-sub { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #9ca3af; margin: 12px 0 6px; }
.grp-dropdown-sub a { text-transform: none; letter-spacing: 0; color: #4B49AC; font-weight: 700; }
.grp-dropdown-hint { font-size: 0.75rem; color: #6C7383; margin: 10px 0; }
.grp-scope-error { color: #b91c1c; font-weight: 700; }
.grp-custom-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; font-weight: 700; color: #6C7383; }
.grp-custom-form input { height: 38px; min-width: 150px; }
.grp-scope-form { width: 340px; max-width: calc(100vw - 32px); }
.grp-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.grp-tag { border: 1px solid #e4e2f7; background: #fff; color: #4B49AC; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.78rem; cursor: pointer; }
.grp-tag small { color: #9ca3af; font-weight: 700; margin-left: 2px; }
.grp-tag:hover, .grp-tag.active { background: #4B49AC; color: #fff; border-color: #4B49AC; }
.grp-tag.active small, .grp-tag:hover small { color: #dcdaf7; }
.grp-check-list { max-height: 260px; overflow-y: auto; margin: 0 -12px; }
.grp-check { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; margin: 0; cursor: pointer; font-size: 0.84rem; color: #374151; border-radius: 8px; }
.grp-check:hover { background: #f8f7ff; }
.grp-check input { accent-color: #4B49AC; flex-shrink: 0; }
.grp-check small { margin-left: auto; color: #9ca3af; font-size: 0.72rem; text-align: right; }
.grp-compare-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: -14px 0 22px; }
.grp-compare-label { font-size: 0.78rem; font-weight: 700; color: #6C7383; }
.al-segmented.is-small { padding: 3px; }
.al-segmented.is-small a { padding: 5px 12px; font-size: 0.78rem; }
.grp-comparable-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: #4B49AC; text-decoration: none; }
.grp-comparable-toggle:hover { color: #3d3c8e; }
.grp-switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #dcdaf2; transition: background 0.15s; flex-shrink: 0; }
.grp-switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.15s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.grp-comparable-toggle.is-on .grp-switch { background: #E8577E; }
.grp-comparable-toggle.is-on .grp-switch span { left: 16px; }
.grp-compare-hint { font-size: 0.78rem; color: #9ca3af; }

/* ---------- Synthèse groupe : atterrissage, réservations à venir ---------- */
.grp-gap { display: inline-block; font-weight: 700; font-size: 0.75rem; white-space: nowrap; }
.grp-gap.is-down { color: #b91c1c; }
.grp-gap.is-up { color: #15803d; }
.grp-sub { font-size: 0.72rem; margin-top: 3px; color: #6C7383; font-weight: 600; }
.grp-muted { color: #9ca3af !important; font-weight: 600; }
.grp-completion.is-mini { min-width: 0; padding: 0 6px; font-size: 0.7rem; }
.grp-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; vertical-align: 1px; background: #f3f4f6; color: #6b7280; }
.grp-pill.is-stale { background: #fff4e0; color: #b45309; }
.grp-pill.is-critical, .grp-month-pill.is-critical { background: #fee2e2; color: #b91c1c; }
.grp-pill.is-watch, .grp-month-pill.is-watch { background: #fef3c7; color: #a16207; }
.grp-pill.is-risk, .grp-month-pill.is-risk { background: #ede9fe; color: #5b21b6; }
.grp-alert-slot:empty { display: none; }
.grp-landing-value { font-size: 28px; font-weight: 800; color: #3d3c8e; margin: 18px 0 8px; white-space: nowrap; }
.grp-landing-value .grp-currency { font-size: 0.55em; }
.grp-landing-target { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.grp-landing-table { width: 100%; margin-top: 16px; font-size: 0.82rem; }
.grp-landing-table td { padding: 7px 0; border-bottom: 1px solid #f0eefb; color: #6C7383; }
.grp-landing-table td:last-child { text-align: right; color: #374151; font-weight: 700; white-space: nowrap; }
.grp-landing-table tr:last-child td { border-bottom: none; }
.grp-landing-note { font-size: 0.75rem; color: #9ca3af; margin: 12px 0 0; margin-top: auto; padding-top: 12px; }
.grp-forward td { padding: 5px 2px; text-align: center; }
.grp-forward td.is-text { text-align: left; padding-left: 12px; padding-right: 8px; }
.grp-forward thead th { text-align: center; padding-left: 6px; padding-right: 6px; }
.grp-forward thead th.is-text { text-align: left; }
.grp-forward td.is-empty { color: #c4c4c4; }
/* montant + écart dans une pastille colorée selon la base choisie */
.grp-heat { display: inline-block; min-width: 80px; padding: 4px 6px; border-radius: 8px; line-height: 1.25; }
.grp-heat strong { display: block; font-weight: 400; font-size: 0.8rem; color: #374151; }
.grp-heat small { display: block; font-size: 0.7rem; font-weight: 400; color: #4b5563; }
/* données en graisse normale comme les autres tableaux ; seule la ligne « Groupe » (total) reste en gras */
.grp-forward tfoot .grp-heat strong, .grp-forward tfoot .grp-heat small { color: #3d3c8e; font-weight: 700; }
.grp-forward-legend { font-size: 0.75rem; color: #9ca3af; margin-top: 12px; }

/* ---------- Synthèse groupe : blocs chargés après la page (alertes, distribution) ---------- */
.grp-loading { padding: 30px 0; text-align: center; color: #9ca3af; font-size: 0.85rem; font-weight: 600; }
.grp-empty { margin: 24px 0 8px; color: #9ca3af; font-size: 0.85rem; font-weight: 600; text-align: center; }
.grp-empty.is-ok { color: #15803d; }
.grp-chart-box .grp-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 20px; }
.grp-alert-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 14px; }
.grp-alert-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: #f5f3ff; color: #4B49AC; font-size: 0.78rem; font-weight: 600; }
.grp-alert-chip strong { font-weight: 800; }
.grp-alert-chip.is-critical { background: #fee2e2; color: #b91c1c; }
.grp-alert-chip.is-watch { background: #fef3c7; color: #a16207; }
.grp-alert-chip.is-risk { background: #ede9fe; color: #5b21b6; }
.grp-month-pill { display: inline-block; margin: 1px 3px 1px 0; padding: 1px 7px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.grp-link { color: #4B49AC; font-weight: 700; font-size: 0.78rem; white-space: nowrap; }
.grp-table.is-compact td { padding: 9px 10px; }
.grp-table.is-compact thead th { cursor: default; }
.grp-table.is-compact .grp-evol { font-size: 0.68rem; padding: 0 6px; margin-left: 2px; }
.grp-channel-kpis { display: flex; gap: 12px; margin: 20px 0 16px; }
.grp-channel-kpis > div { flex: 1; background: #f8f7ff; border-radius: 10px; padding: 10px 14px; }
.grp-channel-kpis span { display: block; font-size: 0.72rem; font-weight: 700; color: #6C7383; text-transform: uppercase; letter-spacing: 0.02em; }
.grp-channel-kpis strong { font-size: 1.25rem; font-weight: 800; color: #3d3c8e; }
.grp-channel-kpis small { display: block; font-size: 0.72rem; color: #9ca3af; font-weight: 600; }
.grp-channel-wrap { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.grp-chart-box.is-doughnut { width: 180px; height: 180px; flex-shrink: 0; margin: 0 auto; }
.grp-channel-list { flex: 1; font-size: 0.8rem; }
.grp-channel-list td { padding: 4px 4px; white-space: nowrap; color: #374151; }
.grp-channel-list td:first-child { white-space: normal; }
.grp-channel-list td:nth-child(2) { text-align: right; font-weight: 700; color: #3d3c8e; }
.grp-channel-list td:last-child { text-align: right; font-size: 0.72rem; }
.grp-channel-list .grp-swatch { margin-right: 6px; vertical-align: -1px; }
.grp-direct { color: #15803d; font-weight: 700; font-size: 0.68rem; }
.grp-note { font-size: 0.75rem; color: #9ca3af; margin: 14px 0 0; }
.grp-note i { margin-right: 4px; }
@media (max-width: 767.98px) {
    .grp-compare-bar { margin-top: -8px; }
    .grp-compare-hint { width: 100%; }
    .grp-channel-wrap { flex-direction: column; align-items: stretch; }
    .grp-chart-box.is-doughnut { margin: 0 auto; }
    .grp-landing-value { font-size: 22px; }
}

/* bouton « Appliquer » / « Afficher » des menus de filtre de la Synthèse groupe */
.grp-apply-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 14px;
    border: none; border-radius: 999px; background: #4B49AC; color: #fff; font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(75, 73, 172, 0.25); cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.grp-apply-btn:hover { background: #3d3c8e; box-shadow: 0 6px 16px rgba(75, 73, 172, 0.32); transform: translateY(-1px); }
.grp-apply-btn i { font-size: 0.75rem; }
/* tableau « Réservations par établissement » : espace sous le titre */
#grp-bookings > .grp-table-wrap:first-child { margin-top: 20px; }
/* barre d'outils de la Synthèse groupe sur une seule ligne (grand écran) : périodes à gauche, établissements et PDF à droite
   — en dessous de 1400px la place manque : la ligne passe à la ligne et les périodes défilent horizontalement si besoin */
@media (max-width: 1399.98px) {
    #group-date > div > div:first-child { min-width: 0; max-width: 100%; }
    #group-date .al-segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}
@media (min-width: 1400px) {
    #group-date > div { flex-wrap: nowrap !important; }
    #group-date > div > div { flex-wrap: nowrap !important; }
    #group-date .al-segmented a { padding: 8px 11px; font-size: 0.8rem; }
    #group-date .grp-scope-chip { padding: 0 14px; }
}

/* tooltip du tableau « Réservations à venir » (fond blanc, cf. showForwardTip() dans group-synthesis.js) */
.grp-forward td[data-tip] { cursor: default; }
.grp-tip {
    position: absolute; z-index: 1080; min-width: 240px; max-width: 300px; padding: 12px 14px; border-radius: 10px;
    background: #fff; border: 1px solid #e4e2f7; box-shadow: 0 10px 28px rgba(75, 73, 172, 0.18);
    font-size: 0.78rem; color: #374151; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.grp-tip.is-visible { opacity: 1; transform: translateY(0); }
.grp-tip-title { font-weight: 800; color: #3d3c8e; font-size: 0.85rem; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #f0eefb; }
.grp-tip-title span { display: block; font-weight: 600; font-size: 0.75rem; color: #7978E9; margin-top: 1px; }
.grp-tip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.grp-tip-row span { color: #6C7383; }
.grp-tip-row b { font-weight: 700; white-space: nowrap; }
.grp-tip-row.is-main b { color: #3d3c8e; font-size: 0.85rem; }
.grp-tip-row em { font-style: normal; font-size: 0.7rem; font-weight: 700; padding: 0 6px; border-radius: 999px; margin-left: 4px; }
.grp-tip-row em.is-up { background: #dcfce7; color: #15803d; }
.grp-tip-row em.is-down { background: #fee2e2; color: #b91c1c; }

/* calendrier de plage de mois (month-range-picker.js) : période personnalisée de la Synthèse groupe, période d'analyse Yield */
.grp-custom-form { width: 470px; max-width: calc(100vw - 32px); }
.mrp { display: flex; gap: 18px; }
.mrp-year { flex: 1; }
.mrp-head { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 6px; }
.mrp-head strong { color: #3d3c8e; font-weight: 800; }
.mrp-head span { width: 30px; }
.mrp-nav { width: 30px; height: 30px; border: 1px solid #e4e2f7; border-radius: 50%; background: #fff; color: #4B49AC; font-size: 0.7rem; cursor: pointer; }
.mrp-nav:hover { background: #f5f3ff; }
.mrp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 0; }
.mrp-month { height: 34px; border: none; background: none; color: #374151; font-weight: 600; font-size: 0.8rem; cursor: pointer; border-radius: 0; }
.mrp-month:hover { color: #4B49AC; }
.mrp-month:hover:not(.is-start):not(.is-end) { background: #f5f3ff; border-radius: 8px; }
.mrp-month.is-current { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c4bff3; }
.mrp-month.is-in { background: #ede9fe; color: #4B49AC; }
.mrp-month.is-start, .mrp-month.is-end { background: #4B49AC; color: #fff; }
.mrp-month.is-start { border-radius: 8px 0 0 8px; }
.mrp-month.is-end { border-radius: 0 8px 8px 0; }
.mrp-month.is-start.is-end { border-radius: 8px; }
.mrp-summary { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: #f8f7ff; color: #4B49AC; font-size: 0.8rem; }
.mrp-summary b { color: #3d3c8e; }
.mrp-summary.is-error { background: #fee2e2; color: #b91c1c; }
.grp-apply-btn:disabled { background: #c4bff3; box-shadow: none; transform: none; cursor: not-allowed; }
@media (max-width: 575.98px) { .mrp { flex-direction: column; } }

/* page Yield, « Changer la période d'analyse » : calendrier de plage de mois */
#period-pill-panel .yield-period-hint { font-size: 0.75rem; color: #6C7383; margin: 10px 0 14px; }
#btn-panel-validate:disabled { opacity: 0.5; cursor: not-allowed; }

/* sélecteur d'année (month-range-picker.js, yearPanel()) : Dashboard, Objectifs, Salons, Promotions */
.mrp-year-panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 1050; width: 320px; max-width: calc(100vw - 32px);
    padding: 18px 20px; background: #fff; border-radius: 10px; border: 1px solid #ede9fe; box-shadow: 0 4px 20px rgba(75, 73, 172, 0.18);
}
.mrp-panel-title { font-size: 0.75rem; font-weight: 700; color: #4B49AC; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.05em; }
.mrp-year-panel .mrp-years { gap: 4px; }
.mrp-year-panel .mrp-month.is-start.is-end { border-radius: 8px; }
.mrp-actions { display: flex; gap: 8px; margin-top: 16px; }
.mrp-actions > * { flex: 1; text-align: center; padding-top: 12px !important; padding-bottom: 12px !important; border-radius: 20px !important; }

/* sélecteur de jour (month-range-picker.js, dayPanel()) : page Historique */
.mrp-day-panel { width: 320px; }
.mrp-weekdays, .mrp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mrp-weekdays span { font-size: 0.68rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; padding: 4px 0; }
.mrp-day { position: relative; height: 34px; border: none; background: none; border-radius: 8px; color: #374151; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.mrp-day:hover { background: #f5f3ff; color: #4B49AC; }
.mrp-day.is-current { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c4bff3; }
.mrp-day.is-marked::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #7978E9; }
.mrp-day.is-selected { background: #4B49AC; color: #fff; }
.mrp-day.is-selected::after { background: #fff; }
.mrp-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.72rem; color: #6C7383; }
.mrp-legend i { width: 6px; height: 6px; border-radius: 50%; background: #7978E9; }
.mrp-summary-note { color: #b45309; }

/* plage de jours (month-range-picker.js, mountDayRange()) : Yield > Montée en charge cumulée > plage antérieure */
.mrp-day-range { row-gap: 2px; column-gap: 0; }
.mrp-day-range .mrp-day { border-radius: 0; }
.mrp-day-range .mrp-day.is-in { background: #ede9fe; color: #4B49AC; }
.mrp-day-range .mrp-day.is-start, .mrp-day-range .mrp-day.is-end { background: #4B49AC; color: #fff; }
.mrp-day-range .mrp-day.is-start { border-radius: 8px 0 0 8px; }
.mrp-day-range .mrp-day.is-end { border-radius: 0 8px 8px 0; }
.mrp-day-range .mrp-day.is-start.is-end { border-radius: 8px; }
.mrp-day-range .mrp-day:hover:not(.is-start):not(.is-end):not(:disabled) { background: #f5f3ff; border-radius: 8px; }
.mrp-day.is-off { color: #d1d5db; cursor: not-allowed; }
.mrp-day.is-shade { color: #9ca3af; cursor: not-allowed; background: repeating-linear-gradient(135deg, #f3f4f6, #f3f4f6 4px, #e5e7eb 4px, #e5e7eb 6px); }
.mrp-legend i.is-shade { width: 12px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, #f3f4f6, #f3f4f6 3px, #d1d5db 3px, #d1d5db 4px); }
.mrp-legend i.is-off { width: 12px; height: 12px; border-radius: 3px; background: #f3f4f6; border: 1px solid #e5e7eb; margin-left: 10px; }
.mrp-nav:disabled { opacity: 0.35; cursor: not-allowed; }

/* bouton secondaire des calendriers (« Aujourd'hui », « Mois courant », « Année en cours ») : contour et texte violets */
.mrp-actions .btn-outline-secondary,
#period-pill-panel .btn-outline-secondary,
#demand-month-panel .btn-outline-secondary {
    background: #fff; border: 1px solid #4B49AC; color: #4B49AC; font-weight: 700;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.mrp-actions .btn-outline-secondary:hover, .mrp-actions .btn-outline-secondary:focus,
#period-pill-panel .btn-outline-secondary:hover, #period-pill-panel .btn-outline-secondary:focus,
#demand-month-panel .btn-outline-secondary:hover, #demand-month-panel .btn-outline-secondary:focus {
    background: #f5f3ff; border-color: #4B49AC; color: #3d3c8e; box-shadow: 0 2px 8px rgba(75, 73, 172, 0.15);
}

/* icônes des boutons des calendriers (« Aujourd'hui » / « Mois courant » / « Année en cours », « Valider »), comme
   les boutons « Appliquer » / « Afficher » de la Synthèse groupe */
.mrp-actions .btn, #period-pill-panel .btn, #demand-month-panel .btn, #charge-extend-panel .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.mrp-actions .btn, #period-pill-panel .btn, #demand-month-panel .btn, #charge-extend-panel .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.mrp-actions .btn i, #period-pill-panel .btn i, #demand-month-panel .btn i, #charge-extend-panel .btn i { display: inline-block; align-self: center; height: auto; font-size: 0.75rem; line-height: 1; margin: 0; }

/* flèches précédent / suivant des calendriers : icône centrée dans la bulle (le padding par défaut des <button> et la
   hauteur de ligne de l'icône la décalaient) */
.mrp-nav { display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.mrp-nav i { display: block; line-height: 1; font-size: 0.7rem; }

/* Historique, « Importer sur une date antérieure » : calendrier du jour d'import (mountDayRange en jour unique) */
.import-past-date-picker { max-width: 340px; margin: 0 auto; text-align: left; }
.mrp-day-range.is-single .mrp-day { border-radius: 8px; }
.mrp-day-range.is-single .mrp-day.is-start.is-end { border-radius: 8px; }
.mrp-day-range .mrp-day.is-marked.is-start::after, .mrp-day-range .mrp-day.is-marked.is-end::after { background: #fff; }
.mrp-summary-block { display: block; margin-top: 4px; font-weight: 600; }

/* gélules à choix unique (select[data-pills], initChoicePills()) : choix du PMS des modales d'import */
.choice-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pill {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid #ddd8fb; background: #fff; color: #4B49AC; font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.choice-pill i { display: none; font-size: 0.7rem; line-height: 1; }
.choice-pill:hover { background: #f5f3ff; border-color: #4B49AC; }
.choice-pill.is-active { background: #4B49AC; border-color: #4B49AC; color: #fff; box-shadow: 0 4px 12px rgba(75, 73, 172, 0.25); }
.choice-pill.is-active i { display: inline-block; }
.choice-pill:focus-visible { outline: 2px solid #c4bff3; outline-offset: 2px; }

/* modales d'import (« Importer des données », « Importer sur une date antérieure ») : boutons fichier / annuler /
   importer au design des boutons de l'app (gélules, icône à gauche) */
.ey-import-modal .modal-footer { gap: 8px; padding-top: 4px; }
.ey-import-modal .modal-footer > * { margin: 0; }
/* Salons > Importer des salons : tableau de relecture tenu dans la largeur de la modale (gélules de lieu longues
   type « Parc des expositions Paris Nord Villepinte » autorisées à passer à la ligne) */
#importEventsModal .ey-chip { white-space: normal; }
/* tableau de relecture : largeurs fixes, texte qui passe à la ligne (le thème force nowrap sur .table td), aucun scroll
   horizontal ; un <tbody> par salon = ligne principale + ligne de notes de l'IA */
.ev-import-table-wrap { max-height: 60vh; overflow-y: auto; overflow-x: hidden; }
.ev-import-table { table-layout: fixed; width: 100%; }
.ev-import-table > thead > tr > th { position: sticky; top: 0; z-index: 1; padding: 10px 8px; }
.ev-import-table > tbody > tr > td { white-space: normal; overflow-wrap: break-word; vertical-align: top; padding: 10px 8px; }
.ev-import-table > tbody > tr:last-child > td { border-bottom: 1px solid #f0eefb; }
.ev-import-table > tbody:last-child > tr:last-child > td { border-bottom: none; }
.ev-import-table > tbody > tr.has-notes > td { border-bottom: none; padding-bottom: 2px; }
.ev-import-table > tbody:hover > tr > td { background: #f8f7ff; }
.ev-import-notes td { padding-top: 0 !important; font-size: 0.76rem; color: #6C7383; line-height: 1.45; }
.ev-import-notes i { color: #9ca3af; margin-right: 4px; font-size: 0.7rem; }
.ev-import-dates { line-height: 1.35; }
.ev-import-dates small { display: block; color: #6C7383; font-size: 0.76rem; }
.ev-import-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; }
/* select.form-select.ev-import-zone : plus spécifique que select.form-select du thème (texte gris clair #c9c8c8) */
select.form-select.ev-import-zone { font-size: 0.78rem; padding: 3px 26px 3px 8px; color: #3d3c8e; font-weight: 600; background-position: right 6px center; text-overflow: ellipsis; }
.ev-import-zone option { color: #374151; font-weight: 400; }
.ev-import-zone-new { margin-top: 4px; font-size: 0.72rem; color: #4B49AC; font-weight: 600; line-height: 1.3; }
.ev-import-zone-new i { font-size: 0.62rem; margin-right: 3px; }
.ev-import-hint-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: #ede9fe; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; }
.charge-note-hint.ev-import-hint .ev-import-hint-icon i { font-size: 0.68rem; }
.ey-file-btn, .ey-cancel-btn, .ey-submit-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
    border-radius: 999px; font-weight: 700; font-size: 0.85rem; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ey-file-btn i, .ey-cancel-btn i, .ey-submit-btn i { font-size: 0.95rem; line-height: 1; margin: 0; }
.ey-cancel-btn i { font-size: 0.7rem; }
.ey-file-btn { background: #fff; border: 1px solid #4B49AC; color: #4B49AC; cursor: pointer; }
.ey-file-btn:hover, .ey-file-btn:focus { background: #f5f3ff; color: #3d3c8e; border-color: #4B49AC; box-shadow: 0 2px 8px rgba(75, 73, 172, 0.15); }
.ey-cancel-btn { background: #fff; border: 1px solid #e4e2f7; color: #6C7383; }
.ey-cancel-btn:hover, .ey-cancel-btn:focus { background: #f5f3ff; border-color: #ddd8fb; color: #4B49AC; }
.ey-submit-btn { background: #4B49AC; border: 1px solid #4B49AC; color: #fff; box-shadow: 0 4px 12px rgba(75, 73, 172, 0.25); }
.ey-submit-btn:hover:not(:disabled), .ey-submit-btn:focus:not(:disabled) { background: #3d3c8e; border-color: #3d3c8e; color: #fff; box-shadow: 0 6px 16px rgba(75, 73, 172, 0.32); transform: translateY(-1px); }
.ey-submit-btn:disabled { background: #c4bff3; border-color: #c4bff3; color: #fff; box-shadow: none; opacity: 1; }
/* nom du fichier choisi : petite gélule (masquée tant qu'aucun fichier n'est choisi) */
.ey-file-name { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: #f5f3ff; color: #4B49AC; font-size: 0.8rem; font-weight: 600; }
.ey-file-name:empty { display: none; }

/* modales d'import : corps en étapes numérotées (.ey-steps > .ey-step), numéro calculé en CSS (une étape masquée,
   ex : choix du PMS quand il n'y en a qu'un, n'est pas comptée) */
.ey-steps { counter-reset: ey-step; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ey-step { counter-increment: ey-step; padding: 14px 16px 16px; border: 1px solid #ede9fe; border-radius: 12px; background: #fff; }
.ey-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ey-step-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #ede9fe; color: #4B49AC; font-weight: 800; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.ey-step-num::before { content: counter(ey-step); }
.ey-step-title { font-weight: 800; color: #3d3c8e; font-size: 0.92rem; line-height: 1.2; }
.ey-step-sub { font-size: 0.76rem; color: #9ca3af; margin-top: 1px; }
.ey-step .import-past-date-picker { max-width: none; }
.ey-steps .alert { border-radius: 10px; }

/* ===================== Pages d'administration (body.admin-body, cf. header.html.twig : admin_page) ===================== */
/* barre de titre : gélule violette (comme les pages client) + gélule rouge « Écran administrateur », même espacement
   sous la barre que les autres pages */
.admin-body .admin-topbar { margin-bottom: 30px; }
.admin-title-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-body .admin-topbar .btn-primary.btn-rounded { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }
.admin-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px;
    background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font-weight: 700; font-size: 0.8rem; white-space: nowrap;
}
.admin-chip i { font-size: 0.75rem; line-height: 1; }
/* boutons d'action (Nouvelle entreprise, Nouveau package…) : gélule violette .ey-submit-btn */
.admin-action-btn { flex-shrink: 0; }
.admin-danger-btn, .admin-warning-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px;
    font-weight: 700; font-size: 0.85rem; white-space: nowrap; background: #fff; transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.admin-danger-btn { border: 1px solid #f43f5e; color: #e11d48; }
.admin-danger-btn:hover, .admin-danger-btn:focus { background: #fff1f2; color: #be123c; border-color: #e11d48; }
.admin-warning-btn { border: 1px solid #f59e0b; color: #b45309; }
.admin-warning-btn:hover, .admin-warning-btn:focus { background: #fffbeb; color: #92400e; border-color: #d97706; }
.admin-danger-btn i, .admin-warning-btn i, .admin-body .import-init-action-btn i { margin: 0 !important; line-height: 1; }
/* modales : pied (Annuler / Enregistrer) espacé comme les modales d'import */
.ey-modal .modal-footer { gap: 8px; padding-top: 4px; }
.ey-modal .modal-footer > * { margin: 0; }
/* tableaux : même design que le classement de la Synthèse groupe (en-tête violet, lignes séparées par un trait fin) */
.admin-body .table { --bs-table-striped-bg: transparent; --bs-table-accent-bg: transparent; --bs-table-bg: transparent; border-collapse: separate; border-spacing: 0; }
.admin-body .table > thead > tr > th {
    background: #4B49AC; color: #fff; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em;
    padding: 12px 12px; border: none; white-space: nowrap; vertical-align: middle;
}
.admin-body .table > thead > tr > th:first-child { border-radius: 10px 0 0 10px; }
.admin-body .table > thead > tr > th:last-child { border-radius: 0 10px 10px 0; }
.admin-body .table > tbody > tr > td { padding: 10px 12px; border-top: none; border-bottom: 1px solid #f0eefb; vertical-align: middle; background: transparent; box-shadow: none; color: #374151; }
.admin-body .table > tbody > tr:last-child > td { border-bottom: none; }
.admin-body .table > tbody > tr:hover > td { background: #f8f7ff; }
/* boutons d'action des lignes (modifier / supprimer) : pastilles rondes */
.admin-body .table td .btn-sm.btn-inverse-primary, .admin-body .table td .btn-sm.btn-inverse-danger,
.admin-body .faq-theme-actions .btn-sm.btn-inverse-primary, .admin-body .faq-theme-actions .btn-sm.btn-inverse-danger {
    width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.admin-body .table td .btn-sm i, .admin-body .faq-theme-actions .btn-sm i { font-size: 0.8rem; line-height: 1; }
.admin-body .ey-file-btn i { font-size: 0.75rem; }

/* Admin Clients > onglet « Coûts IA » (cf. admin-ai-usage.js) : filtres, tuiles de synthèse, ligne de total */
/* barre de filtres en gélules : fond lavande, contrôles blancs arrondis de même hauteur ; gélule active = filtre appliqué */
.ai-usage-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; margin-bottom: 16px; border-radius: 16px; background: #f5f3ff; border: 1px solid #ede9fe; }
.ai-usage-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #e4e2f7; color: #4B49AC; font-weight: 700; font-size: 0.82rem; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.ai-usage-chip:hover, .ai-usage-chip[aria-expanded="true"] { border-color: #c4b5fd; box-shadow: 0 2px 8px rgba(75, 73, 172, 0.12); }
.ai-usage-caret { font-size: 0.62rem; opacity: 0.7; }
/* neutralise « .ti-calendar { height: 41px; } » (règle globale d'un ancien datepicker, cf. plus haut) */
#ai-usage .ti-calendar { height: auto; }
.ai-usage-select { position: relative; display: inline-flex; align-items: center; margin: 0; }
.ai-usage-select > i { position: absolute; left: 13px; font-size: 0.8rem; color: #9ca3af; pointer-events: none; }
.ai-usage-select select {
    -webkit-appearance: none; appearance: none; height: 38px; max-width: 240px; padding: 0 32px 0 34px; border-radius: 999px;
    border: 1px solid #e4e2f7; outline: none; color: #6C7383; font-weight: 600; font-size: 0.82rem; text-overflow: ellipsis; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.ai-usage-select select:hover, .ai-usage-select select:focus { border-color: #c4b5fd; box-shadow: 0 2px 8px rgba(75, 73, 172, 0.12); }
.ai-usage-select.is-active select { background-color: #ede9fe; border-color: #c4b5fd; color: #4B49AC; font-weight: 700; }
.ai-usage-select.is-active > i { color: #4B49AC; }
.ai-usage-select select option { color: #374151; font-weight: 400; }
.ai-usage-select select option[hidden] { display: none; }
.ai-usage-reset { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: none; background: transparent; color: #6C7383; font-weight: 700; font-size: 0.8rem; border-radius: 999px; }
.ai-usage-reset:hover { color: #4B49AC; background: #ede9fe; }
.ai-usage-reset i { font-size: 0.65rem; }
.ai-usage-reset[hidden] { display: none; }
.ai-usage-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ai-usage-kpi { text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #ede9fe; border-radius: 12px; background: #fff; }
.ai-usage-kpi-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #ede9fe; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; }
.ai-usage-kpi-label { font-size: 0.72rem; font-weight: 700; color: #6C7383; text-transform: uppercase; letter-spacing: 0.03em; }
.ai-usage-kpi-value { font-size: 1.15rem; font-weight: 800; color: #3d3c8e; line-height: 1.2; }
.ai-usage-kpi-sub { font-size: 0.74rem; color: #9ca3af; }
.ai-usage-table .ai-usage-total td { font-weight: 800; color: #3d3c8e; background: #f5f3ff; border-top: 2px solid #ede9fe; }

/* pages d'administration : formulaires des modales plus compacts et regroupés par blocs (.ey-fieldset) */
.admin-body .ey-modal .modal-body { padding: 18px 22px; }
.admin-body .ey-modal .nav-tabs { margin-bottom: 14px !important; }
.admin-body .ey-modal .form-label { font-size: 0.76rem; font-weight: 700; color: #4b5563; margin-bottom: 4px; }
.admin-body .ey-modal .form-control:not(textarea), .admin-body .ey-modal .form-select { height: 36px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 0.85rem; }
.admin-body .ey-modal .form-control, .admin-body .ey-modal .form-select { border-radius: 8px; border-color: #e4e2f7; }
.admin-body .ey-modal textarea.form-control { font-size: 0.85rem; }
.admin-body .ey-modal .form-control:focus, .admin-body .ey-modal .form-select:focus { border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); }
.admin-body .ey-modal .form-text { font-size: 0.72rem; color: #9ca3af; margin-top: 3px; }
.admin-body .ey-modal .mb-3 { margin-bottom: 12px !important; }
.admin-body .ey-modal .form-check-label { font-size: 0.84rem; }
.ey-fieldset { border: 1px solid #ede9fe; border-radius: 12px; padding: 12px 16px 16px; margin-bottom: 12px; background: #fff; }
.ey-fieldset:last-child { margin-bottom: 0; }
.ey-fieldset.is-plain { border: none; padding: 0; }
.ey-fieldset-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #3d3c8e; font-size: 0.85rem; margin-bottom: 10px; }
.ey-fieldset-title > i:first-child { width: 24px; height: 24px; border-radius: 7px; background: #ede9fe; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0; }
.ey-help { cursor: help; font-size: 0.72rem; color: #9ca3af; margin-left: 3px; font-weight: 400; }
.ey-note { display: table; background: #ede9fe; color: #3d3c8e; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 0.8rem; }
.ey-subsection { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e4e2f7; }
/* listes de cases à cocher (établissements autorisés, packages) : sur plusieurs colonnes */
.ey-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 14px; max-height: 220px; overflow-y: auto; }
.ey-check-grid > p { grid-column: 1 / -1; margin: 0; }
/* largeur des modales d'administration : le thème étire .modal-lg sur presque tout l'écran, les champs y étaient
   démesurés — largeur adaptée au contenu de chaque formulaire */
@media (min-width: 992px) {
    .admin-body #companyModal .modal-dialog { max-width: 720px; }
    .admin-body #establishmentModal .modal-dialog { max-width: 880px; }
    .admin-body #userModal .modal-dialog { max-width: 780px; }
    .admin-body #packageModal .modal-dialog, .admin-body #themeModal .modal-dialog { max-width: 640px; }
    .admin-body #qaModal .modal-dialog { max-width: 760px; }
}
.admin-body .ey-modal select.form-select { height: 36px !important; min-height: 36px !important; line-height: 1.4; }
/* listes déroulantes : le thème impose 18px de marge verticale (texte masqué dans 36px) et un texte gris clair */
.admin-body .ey-modal select.form-select { padding: 6px 32px 6px 12px !important; color: #374151 !important; font-size: 0.85rem !important; }
.admin-body .ey-modal .form-control:not(textarea) { padding-left: 12px !important; padding-right: 12px !important; color: #374151; }
/* onglets des modales : pas de 2e cadre autour des blocs */
.admin-body .ey-modal .tab-content { border: none !important; padding: 0 !important; }
/* cases à cocher : case et libellé rapprochés */
.admin-body .ey-modal .form-check:not(.form-switch) { display: flex; align-items: center; gap: 8px; padding-left: 0 !important; margin-left: 0 !important; margin-bottom: 6px; min-height: 0; }
.admin-body .ey-modal .form-check:not(.form-switch) .form-check-input { float: none; margin: 0 !important; flex-shrink: 0; position: static; }
.admin-body .ey-modal .form-check:not(.form-switch) .form-check-label { margin: 0; }
/* interrupteurs (Actif) : libellé collé à l'interrupteur */
.admin-body .ey-modal .form-check.form-switch { display: flex; align-items: center; gap: 8px; padding-left: 0; min-height: 36px; margin-bottom: 0 !important; }
.admin-body .ey-modal .form-check.form-switch .form-check-input { float: none; margin: 0; flex-shrink: 0; }
.admin-body .ey-modal .form-check.form-switch .form-check-label { margin: 0 !important; }

/* Packages : fonctionnalités incluses en gélules, 4 visibles puis bouton « +N » */
.pkg-features { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pkg-feature { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ede9fe; color: #4B49AC; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.pkg-features:not(.is-open) .pkg-feature.is-extra { display: none; }
.pkg-more { border: 1px solid #4B49AC; background: #fff; color: #4B49AC; border-radius: 999px; padding: 2px 10px; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.pkg-more:hover { background: #4B49AC; color: #fff; }
.admin-body #packages-table td.pkg-features-cell { white-space: normal; min-width: 320px; }

/* Notifications (admin) : formulaire en blocs, choix en gélules, aperçu et récapitulatif */
.notif-admin .ey-fieldset .form-control:not(textarea), .notif-admin .form-control:not(textarea) { height: 38px; font-size: 0.85rem; border-radius: 8px; border-color: #e4e2f7; }
.notif-admin textarea.form-control { font-size: 0.88rem; border-radius: 10px; border-color: #e4e2f7; resize: vertical; padding: 10px 12px; }
.notif-admin .form-control:focus { border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); }
.notif-admin .form-label { font-size: 0.76rem; font-weight: 700; color: #4b5563; }
.notif-counter { text-align: right; font-size: 0.72rem; color: #9ca3af; margin-top: 4px; }
/* radios en gélules (même rendu que les gélules de choix des modales d'import) */
.notif-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.notif-choices input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.notif-choices label {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; margin: 0; border-radius: 999px; cursor: pointer;
    border: 1px solid #ddd8fb; background: #fff; color: #4B49AC; font-weight: 700; font-size: 0.82rem; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.notif-choices label i { font-size: 0.75rem; }
.notif-choices label:hover { background: #f5f3ff; border-color: #4B49AC; }
.notif-choices input[type="radio"]:checked + label { background: #4B49AC; border-color: #4B49AC; color: #fff; box-shadow: 0 4px 12px rgba(75, 73, 172, 0.25); }
.notif-choices input[type="radio"]:focus-visible + label { outline: 2px solid #c4bff3; outline-offset: 2px; }
.notif-targets { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e4e2f7; }
.notif-search { max-width: 220px; height: 34px !important; }
.notif-check-grid { max-height: 230px; }
.notif-check { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; margin: 0; border-radius: 8px; cursor: pointer; font-size: 0.83rem; color: #374151; }
.notif-check:hover { background: #f8f7ff; }
.notif-check input { accent-color: #4B49AC; margin-top: 3px; flex-shrink: 0; }
.notif-check small { display: block; color: #9ca3af; font-size: 0.72rem; }
/* barre d'actions : interrupteur « Bandeau actif » + Enregistrer */
.notif-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.notif-switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 700; color: #3d3c8e; font-size: 0.88rem; }
.notif-switch input { position: absolute; opacity: 0; pointer-events: none; }
.notif-switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #dcdaf2; transition: background 0.15s; }
.notif-switch-track span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: left 0.15s; }
.notif-switch input:checked + .notif-switch-track { background: #57B657; }
.notif-switch input:checked + .notif-switch-track span { left: 21px; }
.notif-switch input:focus-visible + .notif-switch-track { outline: 2px solid #c4bff3; outline-offset: 2px; }
.notif-saved { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #dcfce7; color: #15803d; font-weight: 700; font-size: 0.8rem; }
/* aperçu : mini-fenêtre avec le bandeau (même classe que le vrai bandeau, positionnement neutralisé) */
.notif-preview { border: 1px solid #ede9fe; border-radius: 12px; overflow: hidden; background: #f5f7ff; }
.notif-preview-bar { display: flex; gap: 5px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #ede9fe; }
.notif-preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e4e2f7; }
.site-notification-banner.notif-preview-banner { position: relative; top: auto; left: auto; z-index: auto; padding-right: 40px; word-break: break-word; }
.notif-preview-banner button { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; pointer-events: none; }
.notif-preview-banner .is-empty { opacity: 0.75; font-style: italic; font-weight: 500; }
.notif-preview-page { padding: 14px; display: grid; gap: 8px; }
.notif-preview-page span { height: 10px; border-radius: 6px; background: #e8e6f7; }
.notif-preview-page span:nth-child(2) { width: 80%; }
.notif-preview-page span:nth-child(3) { width: 55%; }
.notif-summary { margin-top: 18px; }
.notif-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0eefb; font-size: 0.84rem; }
.notif-summary-row:last-child { border-bottom: none; }
.notif-summary-row > span { color: #6C7383; }
.notif-summary-row > b { color: #374151; font-weight: 700; text-align: right; }
.notif-status { padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; }
.notif-status.is-online { background: #dcfce7; color: #15803d; }
.notif-status.is-scheduled { background: #ede9fe; color: #4B49AC; }
.notif-status.is-off { background: #f3f4f6; color: #6b7280; }
.notif-hint { font-size: 0.75rem; color: #9ca3af; margin: 14px 0 0; }

/* gélules à choix multiple (cases à cocher masquées : <input> suivi de son <label>) — PMS des thèmes FAQ, notifications */
.check-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pills > input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.check-pills > label {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; margin: 0; border-radius: 999px; cursor: pointer;
    border: 1px solid #ddd8fb; background: #fff; color: #4B49AC; font-weight: 700; font-size: 0.82rem; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.check-pills > label i { display: none; font-size: 0.7rem; line-height: 1; }
.check-pills > label:hover { background: #f5f3ff; border-color: #4B49AC; }
.check-pills > input:checked + label { background: #4B49AC; border-color: #4B49AC; color: #fff; box-shadow: 0 4px 12px rgba(75, 73, 172, 0.25); }
.check-pills > input:checked + label i { display: inline-block; }
.check-pills > input:focus-visible + label { outline: 2px solid #c4bff3; outline-offset: 2px; }

/* modales d'administration : champs texte / date centrés en hauteur (le thème ajoute 18px de marge verticale) */
.admin-body .ey-modal .form-control:not(textarea) { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 34px; }
/* bouton supprimer des lignes (catégories d'espace, périodes de chambres) : pastille rouge clair + corbeille */
.admin-row-remove {
    width: 36px; height: 36px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; transition: background 0.15s, color 0.15s;
}
.admin-row-remove:hover, .admin-row-remove:focus { background: #e11d48; border-color: #e11d48; color: #fff; }
.admin-row-remove i { font-size: 0.8rem; line-height: 1; }
/* boutons « Ajouter une catégorie / une période » : gélule à contour violet, plus basse */
.ey-file-btn.ey-add-btn { height: 36px; padding: 0 14px; font-size: 0.8rem; margin-top: 6px; }
.ey-file-btn.ey-add-btn i { font-size: 0.7rem; }
/* lignes de catégories d'espace : code + libellé + supprimer, resserrées */
.space-category-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.space-category-row .form-control { flex: 1 1 0; min-width: 0; }
.rooms-period-row { margin-bottom: 6px; }
.rooms-period-row .form-check { margin-top: 4px !important; }
/* copilote IA : case et limite mensuelle sur une ligne */
.ai-copilot-line { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin: 4px 0 6px; }
.ai-copilot-line .form-check { margin-bottom: 0 !important; }
.ai-copilot-quota { display: flex; align-items: center; gap: 8px; }
.ai-copilot-quota .form-control { width: 110px; }

/* champ date + heure (month-range-picker.js, dateTimeField()) */
.mrp-datetime { position: relative; margin-top: 8px; }
.mrp-datetime-trigger {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; min-width: 220px; padding: 0 12px; border-radius: 8px;
    border: 1px solid #e4e2f7; background: #fff; color: #374151; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.mrp-datetime-trigger span { flex: 1; text-align: left; }
.mrp-datetime-trigger i { display: inline-block; align-self: center; height: auto; margin: 0; color: #4B49AC; font-size: 0.8rem; line-height: 1; }
.mrp-datetime-trigger .ti-angle-down { font-size: 0.65rem; color: #9ca3af; }
.mrp-datetime-trigger.is-empty span { color: #9ca3af; }
.mrp-datetime-trigger:hover, .mrp-datetime-trigger:focus { border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); outline: none; }
.mrp-datetime-time { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mrp-datetime-time label { margin: 0; font-size: 0.76rem; font-weight: 700; color: #4b5563; }
.mrp-datetime-time .form-control { width: 120px; height: 36px; font-size: 0.85rem; border-radius: 8px; border-color: #e4e2f7; padding-top: 0 !important; padding-bottom: 0 !important; }

/* Questions / réponses (admin) : thèmes en accordéon dans le bloc principal */
.faq-admin-list { display: flex; flex-direction: column; gap: 10px; }
.faq-admin-theme { border: 1px solid #ede9fe; border-radius: 12px; background: #fff; transition: box-shadow 0.15s, border-color 0.15s; }
.faq-admin-theme:hover { border-color: #ddd8fb; }
.faq-admin-theme.is-open { border-color: #ddd8fb; box-shadow: 0 6px 18px rgba(75, 73, 172, 0.08); }
.faq-theme-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; border-radius: 12px; }
.faq-admin-theme.is-open .faq-theme-header { background: linear-gradient(90deg, #f5f3ff 0%, #fff 80%); border-radius: 12px 12px 0 0; border-bottom: 1px solid #ede9fe; }
.faq-theme-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.faq-theme-order { width: 26px; height: 26px; border-radius: 50%; background: #ede9fe; color: #4B49AC; font-weight: 800; font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-theme-name { font-weight: 800; color: #3d3c8e; font-size: 0.95rem; }
.faq-admin-theme.is-inactive .faq-theme-name { color: #9ca3af; }
.faq-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ede9fe; color: #4B49AC; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.faq-chip.is-all { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.faq-chip.is-off { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.faq-theme-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.faq-theme-count { color: #9ca3af; font-size: 0.78rem; font-weight: 600; margin-right: 4px; white-space: nowrap; }
.faq-theme-actions .theme-chevron { color: #9ca3af; transition: transform 0.2s; margin-left: 4px; font-size: 0.8rem; }
.faq-theme-body { padding: 14px 16px 16px; }
.faq-theme-body .faq-qa-table { font-size: 0.84rem; margin-bottom: 4px; }
.faq-qa-num { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: #f5f3ff; color: #4B49AC; font-weight: 700; font-size: 0.75rem; }
.admin-body .faq-qa-table td.faq-qa-question { white-space: normal; color: #374151; }
.faq-theme-empty { color: #9ca3af; font-size: 0.85rem; text-align: center; padding: 10px 0 4px; margin: 0; }
.faq-admin-empty { text-align: center; color: #9ca3af; padding: 40px 0; }
.faq-admin-empty i { font-size: 2.2rem; color: #c4bff3; }
.faq-admin-empty p { margin: 12px 0 0; }
/* champ date : calendrier au-dessus (placement 'top'), version compacte (périodes de chambres), état désactivé */
.mrp-datetime-panel.is-top { top: auto; bottom: calc(100% + 8px); }
.mrp-datetime.is-compact { margin-top: 0; }
.mrp-datetime.is-compact .mrp-datetime-trigger { min-width: 0; width: 100%; height: 36px; }
.mrp-datetime-trigger.is-disabled, .mrp-datetime-trigger:disabled { background: #f3f4f6; border-color: #e5e7eb; cursor: not-allowed; box-shadow: none; }
.mrp-datetime-trigger.is-disabled i { color: #c4c4c4; }
.rooms-period-row-invalid .mrp-datetime-trigger:not(.is-disabled) { border-color: #f43f5e; }

/* (ombre du rond : même rendu que .notif-switch-track span, 0 1px 2px, ramenée à l'échelle du viewBox de l'image) */
/* interrupteur HT / TTC de la barre du haut (et du menu mobile) : position HT (désactivé) au même design que
   l'interrupteur « Bandeau actif » de la page Notifications — fond violet clair, sans bordure, rond blanc ombré ;
   position TTC (activé) inchangée (violet foncé) */
#checkNativeSwitch:not(:checked), #checkNativeSwitchMobile:not(:checked) {
    background-color: #dcdaf2 !important; border-color: #dcdaf2 !important; box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3cdefs%3e%3cfilter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'%3e%3cfeDropShadow dx='0' dy='0.38' stdDeviation='0.42' flood-color='%23000' flood-opacity='0.28'/%3e%3c/filter%3e%3c/defs%3e%3ccircle r='3' fill='%23fff' filter='url(%23s)'/%3e%3c/svg%3e") !important;
}
#checkNativeSwitch:not(:checked):focus, #checkNativeSwitchMobile:not(:checked):focus { box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12) !important; }

/* champ heure du calendrier date + heure : texte centré en hauteur */
.mrp-datetime-time input[type="time"].form-control { height: 36px !important; padding: 0 10px !important; line-height: 34px !important; display: flex; align-items: center; }
.mrp-datetime-time input[type="time"]::-webkit-datetime-edit { padding: 0; line-height: 34px; }
.mrp-datetime-time input[type="time"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }

/* Historique : blocs mois au design des thèmes de « Questions / réponses » */
.history-month { margin-bottom: 10px; }
.history-month .faq-theme-order i { display: block; height: auto; margin: 0; font-size: 0.72rem; line-height: 1; }
.history-month .faq-theme-body { padding-top: 12px; }

/* boutons ronds modifier / supprimer (même rendu que les actions des tableaux d'administration) — Mon compte :
   catégories de chambre, tarifs, coûts de distribution */
.ey-round-btn.btn-sm { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ey-round-btn.btn-sm i { font-size: 0.8rem; line-height: 1; margin: 0; }
/* mode édition : valider (violet plein) et annuler (gris clair) au même format rond */
.ey-round-btn.btn-primary { box-shadow: 0 3px 8px rgba(75, 73, 172, 0.25); }
.ey-round-btn.btn-inverse-secondary { background: #f3f4f6; border-color: #f3f4f6; color: #6b7280; }
.ey-round-btn.btn-inverse-secondary:hover, .ey-round-btn.btn-inverse-secondary:focus { background: #e5e7eb; border-color: #e5e7eb; color: #374151; }
/* Promotions : champs date (calendrier de l'app) à la hauteur des autres champs de la modale */
.promo-modal .mrp-datetime.is-compact .mrp-datetime-trigger { height: var(--promo-date-h, 56px); font-size: 0.875rem; padding: 0 14px; }
.promo-modal .promo-periods-field > .mrp-datetime .mrp-datetime-trigger { height: 56px; }

/* Promotions, modale « Ajouter / modifier une promotion » : champs compacts comme les modales d'administration
   (36px, texte 0,85rem, libellés courts en gras gris, bordure violet clair) — le thème les faisait de 56px */
.promo-modal .modal-body { padding: 18px 22px; }
.promo-modal .promo-label { font-size: 0.76rem; font-weight: 700; color: #4b5563; margin-bottom: 4px; }
.promo-modal .form-control:not(textarea), .promo-modal .form-select {
    height: 36px !important; min-height: 36px; padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 12px !important;
    line-height: 34px; font-size: 0.85rem; border-radius: 8px; border-color: #e4e2f7; color: #374151;
}
.promo-modal .form-control:focus, .promo-modal .form-select:focus { border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); }
.promo-modal .input-group-text { height: 36px; padding: 0 12px; font-size: 0.85rem; border-color: #e4e2f7; border-radius: 0 8px 8px 0; }
.promo-modal .input-group > .form-control { border-radius: 8px 0 0 8px; }
.promo-modal .promo-date-range { --promo-date-h: 36px; }
.promo-modal .mrp-datetime.is-compact .mrp-datetime-trigger, .promo-modal .promo-periods-field > .mrp-datetime .mrp-datetime-trigger { height: 36px; font-size: 0.85rem; padding: 0 12px; }
.promo-modal .promo-picker-search { height: 36px; font-size: 0.85rem; }
/* Promotions : réservation / séjour en un seul champ « plage » (début et fin masqués, flèche retirée) */
.promo-date-range.is-range-field > .promo-date-start-col, .promo-date-range.is-range-field > i { display: none !important; }
.promo-date-range.is-range-field > .promo-date-end-col { flex: 1 1 auto; width: auto; }
.promo-date-range.is-range-field .promo-no-end-check { margin-top: 2px; }
.mrp-daterange .mrp-datetime-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrp-daterange-panel { width: 320px; }
/* pied de modale avec boutons gélules (.ey-cancel-btn / .ey-submit-btn) hors modales d'import / d'administration */
.ey-modal-footer { gap: 8px; }
.ey-modal-footer > * { margin: 0; }
/* Promotions : date d'application, réservation et séjour en 3 colonnes égales (réservation / séjour n'ont plus
   qu'un champ « plage » chacun, ils n'ont plus besoin de la double largeur) */
.promo-modal .promo-periods-field, .promo-modal .promo-periods-field-pair { flex: 1 1 0; min-width: 0; }
/* bouton rond « Dupliquer » (liste des promotions) : bleu clair, entre modifier (violet) et supprimer (rouge) */
.ey-round-btn.ey-duplicate-btn { background: #e0f2fe; border: 1px solid #e0f2fe; color: #0369a1; }
.ey-round-btn.ey-duplicate-btn:hover, .ey-round-btn.ey-duplicate-btn:focus { background: #0369a1; border-color: #0369a1; color: #fff; }
.btn-promotion-stats.btn-icon:hover i, .btn-promotion-stats.btn-icon:focus i { color: #fff !important; }

/* boutons ronds modifier / supprimer : survol explicite (sur la page Promotions, une règle du thème les faisait
   passer en fond blanc) — violet plein / rouge plein, icône blanche, sans ombre */
.ey-round-btn.btn-inverse-primary:hover, .ey-round-btn.btn-inverse-primary:focus { background: #4B49AC !important; border-color: #4B49AC !important; color: #fff !important; box-shadow: none !important; }
.ey-round-btn.btn-inverse-danger:hover, .ey-round-btn.btn-inverse-danger:focus { background: #e11d48 !important; border-color: #e11d48 !important; color: #fff !important; box-shadow: none !important; }
.ey-round-btn.btn-inverse-primary:hover i, .ey-round-btn.btn-inverse-danger:hover i, .ey-round-btn.ey-duplicate-btn:hover i { color: #fff !important; }
.ey-round-btn.ey-duplicate-btn:hover, .ey-round-btn.ey-duplicate-btn:focus { box-shadow: none !important; }
/* calendrier de plage avec exclusions (périodes de séjour des promotions) */
.mrp-day-range .mrp-day.is-excluded { background: repeating-linear-gradient(135deg, #fff, #fff 4px, #f3f4f6 4px, #f3f4f6 6px); color: #c4c4c4; text-decoration: line-through; border-radius: 8px; }
.mrp-day-range .mrp-day.is-excluded:hover { color: #9ca3af; }
.mrp-summary-hint { color: #6C7383; font-weight: 400; font-size: 0.74rem; margin-top: 4px; }
.mrp-period-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mrp-period-chips:empty { display: none; }
.mrp-period-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ede9fe; color: #4B49AC; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.promo-stay-multi .promo-stay-no-end-all { margin-top: 4px; display: flex !important; }

/* ===== Composants communs réutilisables (hors administration) : formulaires compacts, tableau, listes ===== */
/* champs compacts (36px), comme les modales d'administration et la modale promotion */
.ey-compact-form .form-label { font-size: 0.76rem; font-weight: 700; color: #4b5563; margin-bottom: 4px; }
.ey-compact-form .form-control:not(textarea), .ey-compact-form .form-select {
    height: 36px !important; min-height: 36px; padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 12px !important;
    line-height: 34px; font-size: 0.85rem; border-radius: 8px; border-color: #e4e2f7; color: #374151;
}
.ey-compact-form select.form-select { padding-right: 32px !important; }
.ey-compact-form .form-control:focus, .ey-compact-form .form-select:focus { border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); }
.ey-compact-form .form-control-sm { height: 32px !important; min-height: 32px; }
.ey-compact-form .mrp-datetime.is-compact .mrp-datetime-trigger { height: 36px; }
.ey-compact-form .modal-body .nav-tabs { margin-bottom: 0; }
/* tableau au design des tableaux d'administration / Synthèse groupe : en-tête violet, lignes séparées par un trait fin */
.ey-table { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.ey-table > thead > tr > th { background: #4B49AC; color: #fff; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 11px 12px; border: none; white-space: nowrap; }
.ey-table > thead > tr > th:first-child { border-radius: 10px 0 0 10px; }
.ey-table > thead > tr > th:last-child { border-radius: 0 10px 10px 0; }
.ey-table > tbody > tr > td { padding: 9px 12px; border-top: none; border-bottom: 1px solid #f0eefb; background: transparent; color: #374151; vertical-align: middle; }
.ey-table > tbody > tr:last-child > td { border-bottom: none; }
.ey-table > tbody > tr:hover > td { background: #f8f7ff; }
.ey-table .ey-table-name { font-weight: 700; color: #3d3c8e; }
.ey-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ede9fe; color: #4B49AC; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
/* listes (lieux, zones) : lignes séparées, survol violet clair */
.ey-list { border-radius: 10px; overflow: hidden; }
.ey-list .list-group-item { border-color: #f0eefb; padding: 8px 12px; font-size: 0.86rem; color: #374151; }
.ey-list .list-group-item:hover { background: #f8f7ff; }
.ey-list .list-group-item .zone-label, .ey-list .list-group-item .location-label { font-weight: 600; }
/* ligne « champ + bouton Ajouter » */
.ey-inline-add { display: flex; gap: 8px; align-items: center; }
.ey-inline-add .form-control { flex: 1 1 auto; }
.ey-inline-add .ey-submit-btn { height: 36px; padding: 0 16px; }
/* pages d'administration : boutons ronds modifier / supprimer des tableaux et des thèmes FAQ — survol explicite
   (le thème les faisait passer en fond blanc), même rendu que .ey-round-btn */
.admin-body .table td .btn-sm.btn-inverse-primary:hover, .admin-body .table td .btn-sm.btn-inverse-primary:focus,
.admin-body .faq-theme-actions .btn-sm.btn-inverse-primary:hover, .admin-body .faq-theme-actions .btn-sm.btn-inverse-primary:focus {
    background: #4B49AC !important; border-color: #4B49AC !important; color: #fff !important; box-shadow: none !important;
}
.admin-body .table td .btn-sm.btn-inverse-danger:hover, .admin-body .table td .btn-sm.btn-inverse-danger:focus,
.admin-body .faq-theme-actions .btn-sm.btn-inverse-danger:hover, .admin-body .faq-theme-actions .btn-sm.btn-inverse-danger:focus {
    background: #e11d48 !important; border-color: #e11d48 !important; color: #fff !important; box-shadow: none !important;
}
.admin-body .table td .btn-sm.btn-inverse-primary:hover i, .admin-body .table td .btn-sm.btn-inverse-danger:hover i,
.admin-body .faq-theme-actions .btn-sm:hover i { color: #fff !important; }
/* Promotions, modale d'ajout / modification : blocs au design des regroupements des modales d'administration
   (.ey-fieldset : fond blanc, contour violet clair, titre en violet foncé avec icône dans une pastille) au lieu du fond gris */
.promo-modal .promo-section { background: #fff; border: 1px solid #ede9fe; border-radius: 12px; padding: 12px 16px 16px; margin-bottom: 12px; }
.promo-modal .promo-section:last-child { margin-bottom: 0; }
.promo-modal .promo-section-title {
    font-size: 0.85rem; font-weight: 800; text-transform: none; letter-spacing: 0; color: #3d3c8e; margin-bottom: 10px; gap: 8px;
}
.promo-modal .promo-section-title i, .promo-modal .promo-section-title i.ti-calendar {
    width: 24px; height: 24px; border-radius: 7px; background: #ede9fe; color: #4B49AC; font-size: 0.72rem; transform: none; flex-shrink: 0;
}
/* Alertes, détail d'un mois : rubriques en blocs (.ey-fieldset) comme les regroupements des modales */
#alertMonthModal .al-detail-section.ey-fieldset { margin-bottom: 12px; }
#alertMonthModal .ey-fieldset-title small { font-weight: 600; color: #9ca3af; font-size: 0.74rem; margin-left: 2px; }
#alertMonthModal .al-subtitle { font-size: 0.78rem; font-weight: 700; color: #4b5563; text-transform: none; margin-bottom: 8px; }
#alertMonthModal .al-subtitle small { color: #9ca3af; font-weight: 600; }
#alertMonthModal .al-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.al-actions .ey-file-btn i, .al-actions .ey-submit-btn i { font-size: 0.8rem; }
.al-actions { gap: 8px; }
/* Salons, formulaire « Ajouter un salon » : blocs .ey-fieldset */
#tab-form .ey-fieldset { margin-bottom: 12px; }
#tab-form .ey-fieldset-title small { font-weight: 600; color: #9ca3af; font-size: 0.74rem; margin-left: 2px; }
#tab-form #event-color-swatch { border-color: #ede9fe !important; box-shadow: 0 0 0 1px #e4e2f7; }
.ey-compact-form select.form-select { height: 36px !important; min-height: 36px !important; border: 1px solid #e4e2f7 !important; border-radius: 8px !important; font-size: 0.85rem !important; color: #374151 !important; }
.ey-compact-form select.form-select { outline: none !important; }
/* Alertes, mois « fermés » : boutons Détail / Izzy en petites gélules, survol rempli violet (cliquable bien visible) */
.al-row-actions { gap: 6px; }
.al-row-actions .btn-link.al-mini-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
    border: 1px solid #d9d7f3; background: #fff; color: #4B49AC; font-size: 0.78rem; font-weight: 700; text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.al-row-actions .btn-link.al-mini-btn i { font-size: 0.75rem; line-height: 1; }
.al-row-actions .btn-link.al-mini-btn:hover, .al-row-actions .btn-link.al-mini-btn:focus-visible {
    background: #4B49AC; border-color: #4B49AC; color: #fff; box-shadow: 0 3px 8px rgba(75, 73, 172, 0.25);
}
.al-row-actions .btn-link.al-mini-btn:hover i { color: #fff; }
/* Catégories de chambre / tarifs (Mon compte, modales Promotions et Simulateur) : champs de saisie et bouton valider
   au design des lignes « Coûts de distribution » (36px, contour gris clair, coins 8px ; valider = rond violet séparé) */
.ey-inline-edit { display: inline-flex; align-items: center; gap: 8px; }
.ey-inline-edit .ey-inline-input { width: 150px; }
.account-space-category-suggested-row .ey-inline-edit .ey-inline-input { width: 250px; max-width: 100%; }
.ey-inline-input,
.account-space-category-edit-code, .account-space-category-edit-label, .account-rate-plan-edit-name, .rate-plan-edit-name,
.account-space-category-item-editing .rp-link-parent, .rate-plan-manage-item-editing .rp-link-parent {
    height: 36px !important; min-height: 36px; padding: 0 12px !important; border: 1px solid #dfe1ea !important; border-radius: 8px !important;
    background-color: #fff; font-size: 0.85rem !important; color: #1f2937; box-shadow: none !important; line-height: 34px;
}
.account-space-category-item-editing .rp-link-parent, .rate-plan-manage-item-editing .rp-link-parent { padding-right: 30px !important; }
.account-space-category-edit-label, .account-rate-plan-edit-name, .rate-plan-edit-name { font-weight: 600; }
.ey-inline-input:focus,
.account-space-category-edit-code:focus, .account-space-category-edit-label:focus, .account-rate-plan-edit-name:focus, .rate-plan-edit-name:focus,
.account-space-category-item-editing .rp-link-parent:focus, .rate-plan-manage-item-editing .rp-link-parent:focus {
    border-color: #7978E9 !important; box-shadow: 0 0 0 3px rgba(121, 120, 233, 0.15) !important; outline: none;
}
input[type=number].ey-inline-input { -moz-appearance: textfield; appearance: textfield; }
input[type=number].ey-inline-input::-webkit-outer-spin-button, input[type=number].ey-inline-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rp-link-controls .rp-link-parent, .ey-inline-input { outline: none !important; }
/* Promotions, modale « Catégories de chambre » : un peu plus large pour le placeholder « Renommer la catégorie de chambre » */
@media (min-width: 640px) { #spaceCategoryModal .modal-dialog { max-width: 600px; } }
/* Yield : légende grise sous le titre d'un bloc (nombre d'éléments affichés par défaut, bouton pour tout afficher) */
.yblock-text .yblock-hint { display: block; margin-top: 3px; color: #9ca3af; font-size: 0.78rem; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.35; }
.yblock-text .yblock-hint i { font-size: 0.7rem; color: #6b7280; margin: 0 1px; }
/* aide placée au-dessus du graphique / tableau (sous l'en-tête du bloc) au lieu de dessous */
.charge-note-hint.is-top { margin: 12px 0 10px; }
.charge-note-hint i.ti-arrows-corner { font-size: 0.72rem; color: #6C7383; margin: 0 2px; }
/* "Mon compte" : rubriques Catégories / Tarifs / Coûts de distribution en sélecteur segmenté — piste violet clair,
   rubrique active = carte blanche surélevée, texte violet ; icône + compteur ; se partage la largeur sur mobile */
.ey-segmented { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 4px; margin-top: 8px; border: 0; border-radius: 12px; background: #f3f2fd; max-width: 100%; overflow-x: auto; }
.ey-segmented .nav-item { flex: 0 0 auto; }
.ey-segmented .nav-link {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0 !important; border-radius: 9px;
    background: transparent; color: #6b7280; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.ey-segmented .nav-link i { font-size: 0.85rem; color: #a5a3e6; transition: color .15s; }
.ey-segmented .nav-link:hover { color: #4B49AC; background: rgba(255, 255, 255, 0.6); }
.ey-segmented .nav-link.active, .ey-segmented .nav-link.active:hover {
    background: #fff; color: #4B49AC; box-shadow: 0 2px 8px rgba(75, 73, 172, 0.14), 0 0 0 1px rgba(75, 73, 172, 0.06);
}
.ey-segmented .nav-link.active i { color: #4B49AC; }
.ey-segmented .nav-link .account-tab-count { background: #e4e2f7; color: #6b6a9e; }
.ey-segmented .nav-link.active .account-tab-count { background: #4B49AC; color: #fff; }
@media (max-width: 767px) {
    .ey-segmented { display: flex; width: 100%; }
    .ey-segmented .nav-item { flex: 1 1 0; }
    .ey-segmented .nav-link { width: 100%; justify-content: center; padding: 0 8px; gap: 6px; }
}
/* contenu des rubriques : sans le cadre des onglets du thème (le sélecteur segmenté suffit à structurer) */
.ey-segmented + .tab-content.account-settings-tab-content { border: 0 !important; padding: 16px 0 0 !important; }
@media (max-width: 767px) {
    .ey-segmented .nav-link i { display: none; }
    .ey-segmented .nav-link { padding: 0 6px; gap: 5px; font-size: 0.8rem; }
}
/* contenu sous un sélecteur segmenté (Historique des imports…) : sans le cadre des onglets du thème */
.ey-segmented + .tab-content.ey-segmented-content { border: 0 !important; padding: 8px 0 0 !important; }
/* icône toujours alignée sur le texte (certaines pages imposent aux icônes des liens de nav une hauteur / un bloc) */
.ey-segmented .nav-item { display: flex; margin: 0; padding: 0; }
.ey-segmented .nav-link i { display: inline-block !important; line-height: 1 !important; height: auto !important; margin: 0 !important; padding: 0 !important; align-self: center; }
/* contenu sous un sélecteur segmenté enveloppé (modale « Gérer les salons ») : sans le cadre des onglets du thème */
.tab-content.ey-segmented-content { border: 0 !important; }
#manageEventsModal .ey-segmented { margin-top: 0; }
#manageEventsModal .ey-segmented-content > .tab-pane { padding-top: 14px !important; }
/* sélecteur segmenté dans une modale (admin Clients : établissement, utilisateur) : collé en haut du corps */
.ey-segmented.ey-segmented-modal { margin-top: 0; }
/* admin Clients sur mobile : on garde les règles compactes existantes, sans le soulignement des onglets du thème */
@media (max-width: 767px) { .ey-segmented.admin-main-tabs .nav-link { padding: 0 6px; } }
@media (max-width: 767px) { .ey-segmented .nav-link i { display: none !important; } .ey-segmented .nav-link { font-size: 0.78rem; } }
/* "Mon compte" : Informations personnelles / Entreprise — carte d'identité (avatar aux initiales) + infos en tuiles */
.account-identity { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 12px; border-radius: 12px; background: linear-gradient(90deg, #f5f3ff 0%, #faf9ff 100%); border: 1px solid #ede9fe; flex-wrap: wrap; }
.account-avatar { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: #4B49AC; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; box-shadow: 0 4px 10px rgba(75, 73, 172, 0.25); }
.account-identity-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; }
.account-identity-text strong { font-size: 1rem; color: #1f2937; }
.account-identity-text span { font-size: 0.82rem; color: #6b7280; overflow-wrap: anywhere; }
.account-role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fdecef; border: 1px solid #fbd0d9; color: #C0405A; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.account-role-chip i { font-size: 0.72rem; }
.account-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-info-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 10px; border: 1px solid #f0eefb; background: #fff; min-width: 0; }
.account-info-tile.is-wide { grid-column: 1 / -1; }
.account-info-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #9ca3af; }
.account-info-label i { color: #a5a3e6; font-size: 0.75rem; }
.account-info-value { font-size: 0.9rem; font-weight: 600; color: #1f2937; overflow-wrap: anywhere; line-height: 1.4; }
.account-info-muted { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #ede9fe; color: #4B49AC; font-size: 0.7rem; font-weight: 700; vertical-align: middle; }
@media (max-width: 575px) { .account-info-grid { grid-template-columns: 1fr; } }
/* "Mon compte" : phrase d'accompagnement à côté de la gélule du titre */
.account-page-hint { font-size: 0.85rem; color: #6b7280; }
@media (max-width: 575px) { .account-page-hint { flex-basis: 100%; } }
#account-date { margin-bottom: 1.5rem; }
/* "Mon compte" : en-tête et infos de chaque établissement (tuiles : adresse sur 2 colonnes + PMS, chambres, TVA) */
.account-estab-info { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 16px; }
.account-estab-info .account-info-value .admin-pms-pill, .account-estab-info .account-info-value .admin-rooms-pill { font-size: 0.78rem; }
@media (max-width: 991px) { .account-estab-info { grid-template-columns: repeat(3, minmax(0, 1fr)); } .account-estab-info .is-address { grid-column: 1 / -1; } }
@media (max-width: 575px) { .account-estab-info { grid-template-columns: 1fr; } }
.account-estab-toggle .yblock-title { color: #1f2937; transition: color .15s; }
.account-estab-toggle:hover .yblock-title { color: #4B49AC; }
@media (max-width: 575px) { .account-estab-info { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .account-estab-info .account-info-tile { padding: 8px 10px; } .account-estab-info .is-address { grid-column: 1 / -1; } }
@media (max-width: 575px) { .account-estab-info .account-info-label { letter-spacing: 0; font-size: 0.64rem; gap: 4px; } }
/* admin Clients > Établissements (onglets Catégories de chambre / Tarifs) : place de la loupe malgré les champs compacts admin */
.admin-body .ey-modal .account-search-wrap .form-control { padding-left: 34px !important; }

/* ===== Super admin — clôture / réactivation (admin.html.twig) : ligne grisée + pastille d'état ===== */
.admin-body .table tr.admin-row-closed > td { background: #fafafa; color: #9ca3af; }
.admin-body .table tr.admin-row-closed > td strong { color: #6b7280; }
.admin-status-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.admin-status-chip i { font-size: 0.62rem; }
.admin-status-chip.is-closed { background: #fee2e2; color: #b91c1c; }
.admin-status-chip.is-blocked { background: #fef3c7; color: #b45309; }

/* Super admin — boutons cadenas (clôturer / réactiver, admin.html.twig) : pastilles rondes comme modifier / supprimer,
   fond plein plus foncé au survol (ambre pour clôturer / désactiver, vert pour réactiver) */
.admin-body .table td .btn-sm.btn-inverse-warning, .admin-body .table td .btn-sm.btn-inverse-success {
    width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.admin-body .table td .btn-sm.btn-inverse-warning:hover, .admin-body .table td .btn-sm.btn-inverse-warning:focus {
    background: #d97706 !important; border-color: #d97706 !important; color: #fff !important; box-shadow: none !important;
}
.admin-body .table td .btn-sm.btn-inverse-success:hover, .admin-body .table td .btn-sm.btn-inverse-success:focus {
    background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; box-shadow: none !important;
}
.admin-body .table td .btn-sm.btn-inverse-warning:hover i, .admin-body .table td .btn-sm.btn-inverse-success:hover i { color: #fff !important; }

/* Super admin — modale de confirmation clôture / réactivation (#statusModal, admin.html.twig) : couleur selon l'action
   (data-tone="warn" ambre pour clôturer / désactiver, "ok" vert pour réactiver) */
.status-modal-dialog { max-width: 520px; }
.status-modal { --status-color: #d97706; --status-soft: #fef3c7; --status-dark: #b45309; }
#statusModal[data-tone="ok"] .status-modal { --status-color: #16a34a; --status-soft: #dcfce7; --status-dark: #15803d; }
.status-modal-icon { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--status-soft); color: var(--status-color); font-size: 1.05rem; flex-shrink: 0; }
.status-modal .modal-title { color: #1f2937; }
.status-modal #status-modal-subtitle { font-weight: 700; color: var(--status-dark); }
.status-modal-lead { font-weight: 600; color: #374151; margin: 0 0 10px; font-size: 0.9rem; }
.status-modal-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.status-modal-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: #4b5563; line-height: 1.45; }
.status-modal-list li i { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; background: #f5f3ff; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; margin-top: -2px; }
.status-modal-safe { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 0.82rem; line-height: 1.45; }
.status-modal-safe i { margin-top: 2px; }
.status-modal-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 0.84rem; }
.status-modal-confirm { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; border: none; background: var(--status-color); color: #fff; font-weight: 700; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.status-modal-confirm:hover, .status-modal-confirm:focus { background: var(--status-dark); color: #fff; }
.status-modal-confirm:disabled { opacity: 0.75; }
.status-modal-spin { display: inline-block; animation: status-modal-spin 0.9s linear infinite; }
@keyframes status-modal-spin { to { transform: rotate(360deg); } }

/* Super admin — séparateur des éléments clôturés, en bas des listes (admin.html.twig) */
.admin-body .table tr.admin-closed-separator > td { padding: 22px 12px 8px !important; background: transparent !important; border-bottom: 1px solid #fecaca !important; }
.admin-body .table tr.admin-closed-separator:hover > td { background: transparent !important; }
.admin-closed-separator span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #b91c1c; }
.admin-closed-separator span i { font-size: 0.7rem; }
.admin-closed-separator span b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 0.7rem; }

/* En-tête : menus déroulants Entreprises / Établissements (select[data-nav-dropdown], cf. initNavDropdown()) — menu
   ouvert 19px sous le bouton, comme le menu du profil (bonhomme) ; même
   pilule de 42px que l'ancienne liste native, menu blanc arrondi avec recherche et élément courant coché */
.ey-navdd { position: relative; width: 100%; }
.ey-navdd-toggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 14px 0 14px; border-radius: 999px; border: 1px solid #ddd8fb; background: #fff; color: #3d3c8e; font-weight: 700; font-size: 0.82rem; text-align: left; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.ey-navdd-toggle:hover, .ey-navdd.is-open .ey-navdd-toggle { background: #faf9ff; border-color: #c4bff3; }
.ey-navdd.is-open .ey-navdd-toggle { box-shadow: 0 0 0 3px rgba(121, 120, 233, 0.15); }
.ey-navdd-icon { color: #7978E9; font-size: 0.8rem; flex-shrink: 0; }
.ey-navdd-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ey-navdd-caret { font-size: 0.7rem; color: #7978E9; flex-shrink: 0; transition: transform 0.2s; }
.ey-navdd.is-open .ey-navdd-caret { transform: rotate(180deg); }
.ey-navdd-menu { position: absolute; top: calc(100% + 19px); right: 0; z-index: 1060; min-width: 100%; width: max-content; max-width: 340px; padding: 8px; background: #fff; border: 1px solid #ede9fe; border-radius: 14px; box-shadow: 0 12px 32px rgba(75, 73, 172, 0.18); }
.ey-navdd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 8px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.ey-navdd-head b { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #f5f3ff; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; font-size: 0.68rem; }
.ey-navdd-search { position: relative; margin: 0 2px 6px; }
.ey-navdd-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: #9ca3af; }
.ey-navdd-search input { width: 100%; height: 36px; padding: 0 12px 0 32px; border: 1px solid #dfe1ea; border-radius: 999px; font-size: 0.82rem; outline: none; }
.ey-navdd-search input:focus { border-color: #7978E9; box-shadow: 0 0 0 3px rgba(121, 120, 233, 0.15); }
.ey-navdd-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ey-navdd-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 38px; padding: 6px 12px; border: none; border-radius: 10px; background: transparent; color: #374151; font-size: 0.84rem; font-weight: 500; text-align: left; cursor: pointer; }
.ey-navdd-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ey-navdd-item i { font-size: 0.75rem; color: #4B49AC; visibility: hidden; flex-shrink: 0; }
.ey-navdd-item:hover, .ey-navdd-item.is-active { background: #f5f3ff; color: #3d3c8e; }
.ey-navdd-item.is-current { color: #4B49AC; font-weight: 700; }
.ey-navdd-item.is-current i { visibility: visible; }
.ey-navdd-empty { padding: 12px; text-align: center; color: #9ca3af; font-size: 0.82rem; }

/* menus Entreprises / Établissements : même animation d'ouverture que le menu du profil (keyframes dropdownAnimation
   du thème, vertical-layout-light/style.css : glisse depuis le haut en apparaissant, 0,25 s) */
.ey-navdd-menu:not([hidden]) { animation: dropdownAnimation 0.25s both; }

/* Salons — type d'évènement (liste des salons, infobulle du calendrier) */
.event-type-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #f5f3ff; color: #4B49AC; font-size: 0.68rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }

/* Salons — infobulle au survol d'un salon dans le calendrier (.ev-tooltip, cf. showTooltip() dans easyield-custom.js) :
   fond blanc, en-tête (couleur du salon, nom, type d'évènement), dates / lieu, description, chiffres clés, lien */
.ev-tooltip { position: fixed; z-index: 9999; width: max-content; min-width: 220px; max-width: 300px; padding: 14px 16px; background: #fff; color: #374151; border: 1px solid #ede9fe; border-radius: 12px; box-shadow: 0 12px 32px rgba(75, 73, 172, 0.18); font-size: 0.8rem; line-height: 1.45; pointer-events: none; }
.ev-tooltip-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ev-tooltip-dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04); }
.ev-tooltip-name { font-weight: 700; font-size: 0.88rem; color: #1f2937; }
.ev-tooltip-type { display: inline-flex; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: #f5f3ff; color: #4B49AC; font-size: 0.68rem; font-weight: 700; }
.ev-tooltip-rows { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid #f0eefb; }
.ev-tooltip-row { display: flex; align-items: flex-start; gap: 8px; color: #4b5563; }
.ev-tooltip-row i { color: #7978E9; font-size: 0.75rem; margin-top: 3px; }
.ev-tooltip-row em { font-style: normal; color: #9ca3af; }
.ev-tooltip-desc { margin-top: 8px; color: #6b7280; }
.ev-tooltip-stats { display: flex; gap: 8px; margin-top: 10px; }
.ev-tooltip-stats > div { flex: 1 1 0; display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: #faf9ff; border: 1px solid #f0eefb; }
.ev-tooltip-stats b { color: #4B49AC; font-size: 0.9rem; }
.ev-tooltip-stats span { color: #9ca3af; font-size: 0.68rem; }
.ev-tooltip-link { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: #7978E9; font-size: 0.72rem; word-break: break-all; }
.ev-tooltip-link i { margin-top: 2px; }

/* Salons — KPI de la période (haut de page, events.html.twig) : cartes compactes horizontales (icône, libellé +
   comparaison N-1, chiffre à droite) */
.ev-kpi .card-body { padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.ev-kpi-icon { width: 38px; height: 38px; border-radius: 10px; background: #f5f3ff; color: #4B49AC; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.ev-kpi-text { flex: 1 1 auto; min-width: 0; }
.ev-kpi-label { font-weight: 700; color: #3d3c8e; font-size: 0.85rem; line-height: 1.25; }
.ev-kpi-value { font-size: 1.6rem; font-weight: 700; color: #1f2937; line-height: 1; flex-shrink: 0; }
.ev-kpi-sub { font-size: 0.74rem; color: #9ca3af; margin-top: 3px; }
.ev-kpi-delta { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 0 6px; border-radius: 999px; background: #f3f4f6; color: #6b7280; font-weight: 700; font-size: 0.7rem; margin-right: 2px; }
.ev-kpi-delta.is-up { background: #dcfce7; color: #15803d; }
.ev-kpi-delta.is-down { background: #fee2e2; color: #b91c1c; }
.ev-kpi-note { font-size: 0.72rem; color: #6b7280; margin-top: 1px; }

/* neutralise la règle globale préexistante ".ti-calendar { height: 41px; }" (ancien datepicker) dans les pastilles des KPI
   Salons et l'infobulle d'un salon : l'icône calendrier était décalée vers le haut de sa pastille */
.ev-kpi-icon i, .ev-tooltip-row i { height: auto; line-height: 1; }

/* Salons — onglet de période (Mois / Trimestre / Année) dans l'en-tête : même hauteur (42px) que les pilules voisines */
/* bascule Mois / Trimestre / Année : même composant que l'en-tête du Dashboard (.tri-toggle) — positions du curseur
   propres à ces trois options (Mois à gauche, Trimestre au centre, Année à droite) ; boutons sans style navigateur */
.tri-toggle.ev-period-tabs[data-active="quarter"] .tri-toggle-thumb { transform: translateX(100%); }
.tri-toggle.ev-period-tabs[data-active="year"] .tri-toggle-thumb { transform: translateX(200%); }
.tri-toggle.ev-period-tabs .tri-toggle-option { border: none; background: transparent; cursor: pointer; }
.tri-toggle.ev-period-tabs .tri-toggle-option:focus { outline: none; box-shadow: none; }
#events-date #ev-period-label { min-width: 132px; }
/* boutons « Gérer les… » : libellés courts (« Salons », « Lieux », « Zones ») tant que la largeur est juste, pour garder
   l'en-tête sur une seule ligne avec l'onglet de période */
@media (max-width: 1599px) {
    #events-date .d-none.d-md-inline { display: none !important; }
    #events-date .d-md-none { display: inline !important; }
}
@media (max-width: 767px) { #events-date .ev-period-tabs { width: auto; } }

/* Salons — frises au format épuré (18/11/2026) : cadre unique arrondi, pas de fonds gris, colonne des lieux blanche */
.ev-tl-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.82rem; font-weight: 700; color: #374151; }
/* salon annulé / reporté (event.cancelled) : gélule hachurée violet clair (liste, import, reprise N-1), même motif que la
   barre de la frise (renderTimeline() dans easyield-custom.js) — grise jusqu'au 21/11/2026 */
.ev-cancelled-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #4B49AC; white-space: nowrap;
    background: repeating-linear-gradient(135deg, #dcd8f6 0 5px, #f1effc 5px 10px); border: 1px solid #c4b5fd; }
.ev-tooltip-cancelled { color: #4B49AC; font-weight: 600; }
/* case « Salon annulé ou reporté » (formulaire Gérer les salons) : alignée sur le bord du bloc comme les autres champs
   (le thème décale la case hors du bloc par une marge négative), violette une fois cochée */
.ev-cancelled-check { display: flex; align-items: center; gap: 10px; padding-left: 0 !important; margin-left: 0 !important; min-height: 0; }
.ev-cancelled-check .form-check-input { float: none; position: static; margin: 0 !important; flex-shrink: 0; width: 18px; height: 18px; border: 1.5px solid #c4b5fd; border-radius: 5px; cursor: pointer; box-shadow: none; }
.ev-cancelled-check .form-check-input:checked { background-color: #4B49AC; border-color: #4B49AC; }
.ev-cancelled-check .form-check-input:focus { border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); }
.ev-cancelled-check .form-check-label { margin: 0; font-size: 0.85rem; color: #374151; cursor: pointer; }
.ev-cancelled-check .form-check-label small { color: #9ca3af; }
.ev-import-cancel-dates .mrp-daterange, .ev-import-cancel-dates .mrp-datetime-trigger { width: 100%; min-width: 0; }
.ev-import-cancel-dates .mrp-datetime-trigger { height: 34px; padding: 0 8px; font-size: 0.74rem; gap: 5px; border-radius: 8px; }
/* icônes masquées : la plage complète « jj/mm/aaaa → jj/mm/aaaa » tient dans la colonne (clic sur tout le champ) */
.ev-import-cancel-dates .mrp-datetime-trigger .ti-angle-down, .ev-import-cancel-dates .mrp-datetime-trigger:not(.is-empty) .ti-calendar { display: none; }
.ev-import-cancel-dates .mrp-datetime-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-import-cancel-hint { display: block; margin-top: 3px; font-size: 0.72rem; color: #b45309; }
.ev-tl-empty-note { font-weight: 500; color: #9ca3af; font-size: 0.78rem; }
.ev-tl-empty-note i { font-size: 0.7rem; margin-left: 2px; }
/* Salons > « Reprendre les salons N-1 » (cf. event-copy-previous.js) : ligne décochée estompée, infos N-1, erreurs par ligne */
.ev-copy-table tbody.is-unchecked > tr:first-child > td:not(:first-child) { opacity: 0.45; }
.ev-copy-table .ev-copy-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ev-copy-table .ev-copy-previous { color: #6C7383; font-size: 0.8rem; line-height: 1.35; }
.ev-copy-table .ev-copy-previous small { display: block; }
.ev-copy-required { color: #ffd0d0; }
.ev-copy-table tbody.has-error > tr:first-child > td { border-bottom: none; }
/* sélecteur renforcé : « .ey-table > tbody > tr > td » impose sinon sa couleur grise */
.ev-copy-table > tbody > tr > td.ev-copy-error { color: #dc2626; font-size: 0.78rem; padding-top: 0 !important; }
.ev-copy-error i { margin-right: 5px; font-size: 0.72rem; }
/* champs : même design que la modale « Ajouter un salon » (.ey-compact-form .form-control / .mrp-datetime-trigger :
   hauteur 36 px, coins arrondis 8 px, contour lavande, texte gris foncé) + halo violet au survol et au focus */
.ev-copy-table .ev-copy-name,
.ev-copy-table .ev-copy-exhibitors,
.ev-copy-table .ev-copy-visitors,
.ev-copy-table .ev-copy-dates .mrp-datetime-trigger {
    height: 36px; min-height: 36px; padding: 0 12px !important; border-radius: 8px; border: 1px solid #e4e2f7; background: #fff;
    color: #374151; font-weight: 400; font-size: 0.85rem; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.ev-copy-table .ev-copy-name:hover, .ev-copy-table .ev-copy-exhibitors:hover, .ev-copy-table .ev-copy-visitors:hover,
.ev-copy-table .ev-copy-dates .mrp-datetime-trigger:hover,
.ev-copy-table .ev-copy-name:focus, .ev-copy-table .ev-copy-exhibitors:focus, .ev-copy-table .ev-copy-visitors:focus,
.ev-copy-table .ev-copy-dates .mrp-datetime-trigger:focus {
    border-color: #a5a3e6; box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12); outline: none;
}
.ev-copy-table .ev-copy-exhibitors::placeholder, .ev-copy-table .ev-copy-visitors::placeholder { color: #9ca3af; }
/* flèches des champs numériques masquées : saisie au clavier, champ plus net */
.ev-copy-table input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.ev-copy-table input[type=number]::-webkit-outer-spin-button, .ev-copy-table input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ev-copy-table .ev-copy-dates .mrp-daterange { width: 100%; }
.ev-copy-table .ev-copy-dates .mrp-datetime-trigger { width: 100%; min-width: 0; gap: 6px; }
.ev-copy-table .ev-copy-dates .mrp-datetime-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ligne en erreur : contour rouge sur le champ dates encore vide */
.ev-copy-table tbody.has-error .ev-copy-dates .mrp-datetime-trigger.is-empty { border-color: #fca5a5; background: #fff7f7; }
.ev-tl-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; background: #f0effa; color: #6b6a9e; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; }
.ev-tl-tag.is-current { background: #4B49AC; color: #fff; }
.ev-tl-frame { display: flex; align-items: stretch; background: #fff; border: 1px solid #ecebf7; border-radius: 14px; overflow: hidden; }
.ev-tl-left { width: 140px; flex-shrink: 0; border-right: 1px solid #f0effa; overflow: hidden; font-size: 0.74rem; font-weight: 600; color: #374151; }
.ev-tl-scroll { overflow-x: auto; flex: 1; cursor: grab; user-select: none; }
.ev-tl-left .tl-loc-label { position: relative; }
.ev-tl-left .tl-loc-label::before { content: ''; flex: 0 0 3px; width: 3px; height: 14px; margin-right: 8px; border-radius: 3px; background: #c9c7f0; transition: background-color .2s; }
.ev-tl-left .tl-loc-label:hover::before { background: #4B49AC; }

/* popup « nuitées manquantes » après un import (cf. assets/js/import-nights-warning.js) et rappel sur la carte d'un
   fichier de l'import en masse (import-initialization.js) */
.swal-modal.inw-swal { width: 520px; max-width: calc(100vw - 32px); border-radius: 16px; }
.inw-swal .swal-title { color: #3d3c8e; font-size: 1.25rem; }
.inw-content { text-align: left; font-size: 0.88rem; color: #374151; }
.inw-lead { margin: 0 0 12px; line-height: 1.5; }
.inw-list { display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #fde3b0; }
.inw-establishment-name { font-weight: 700; color: #9a5b00; font-size: 0.8rem; margin-bottom: 6px; }
.inw-establishment-name i { margin-right: 6px; }
.inw-months { display: flex; flex-wrap: wrap; gap: 6px; }
.inw-month { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #fcd38a; color: #9a5b00; font-size: 0.78rem; font-weight: 700; }
.inw-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f5f6fb; color: #6C7383; font-size: 0.8rem; line-height: 1.5; }
.inw-hint i { color: #4B49AC; margin-top: 3px; }
/* bouton « J'ai compris » : même rendu que .ey-submit-btn (le style par défaut de SweetAlert, bleu clair et rectangulaire,
   est neutralisé), icône ✓ ajoutée en CSS (themify « ti-check »), centré */
.inw-swal .swal-footer { text-align: center; padding: 4px 20px 22px; margin-top: 4px; }
.inw-swal .swal-button.inw-ok-btn { background: #4B49AC; border: 1px solid #4B49AC; color: #fff; border-radius: 999px; height: 42px; padding: 0 22px; font-weight: 700; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(75, 73, 172, 0.25); display: inline-flex; align-items: center; gap: 8px; }
.inw-swal .swal-button.inw-ok-btn::before { content: "\e64c"; font-family: 'themify'; font-size: 0.85rem; font-weight: normal; }
.inw-swal .swal-button.inw-ok-btn:hover, .inw-swal .swal-button.inw-ok-btn:focus { background: #3d3c8e; border-color: #3d3c8e; box-shadow: 0 6px 16px rgba(75, 73, 172, 0.32); transform: translateY(-1px); outline: none; }
.inw-swal .swal-button.inw-ok-btn:active { background: #3d3c8e; }
.inw-card-warning { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fff7e6; border: 1px solid #fde3b0; color: #9a5b00; font-size: 0.78rem; line-height: 1.45; }
.inw-card-warning i { margin-top: 2px; }

/* Historique > « Supprimer l'import du jour » (cf. history-delete-import.js) : bouton de confirmation rouge (même gabarit
   que .ey-submit-btn), récapitulatif des données supprimées */
.ey-danger-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; white-space: nowrap;
    background: #e14b4b; border: 1px solid #e14b4b; color: #fff; box-shadow: 0 4px 12px rgba(225, 75, 75, 0.25); transition: background 0.15s, box-shadow 0.15s, transform 0.15s; }
.ey-danger-btn:hover:not(:disabled), .ey-danger-btn:focus:not(:disabled) { background: #c93b3b; border-color: #c93b3b; color: #fff; box-shadow: 0 6px 16px rgba(225, 75, 75, 0.32); transform: translateY(-1px); }
.ey-danger-btn:disabled { background: #f1a9a9; border-color: #f1a9a9; color: #fff; box-shadow: none; opacity: 1; }
.ey-danger-btn i { font-size: 0.9rem; }
.hdi-icon { background: #fdecec !important; color: #e14b4b !important; }
.hdi-lead { margin: 0 0 12px; font-size: 0.88rem; color: #374151; }
.hdi-list { display: flex; flex-direction: column; gap: 10px; }
.hdi-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid #ede9fe; border-radius: 12px; background: #fff; font-size: 0.85rem; color: #374151; }
.hdi-figure { flex-shrink: 0; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 10px; background: #fdecec; color: #c93b3b; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hdi-sub { font-size: 0.76rem; color: #9ca3af; margin-top: 2px; }
.hdi-months { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hdi-month { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ede9fe; color: #4B49AC; font-size: 0.72rem; font-weight: 700; }
.hdi-arrow { color: #9ca3af; font-size: 0.8rem; align-self: center; }
/* #btn-delete-today-import { font-weight: 700; } */
/* Historique : « Supprimer l'import du jour » — même gabarit que « Importer sur une date antérieure » à sa droite (42px,
   fond blanc, bordure claire), en rouge ; au survol, fond rouge pâle (le survol de .btn-inverse-danger du thème le rendait transparent) */
#history-date #btn-delete-today-import { height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap;
    background: #fff; color: #e14b4b; border: 1px solid #f6c9c9; box-shadow: none; }
#history-date #btn-delete-today-import:hover, #history-date #btn-delete-today-import:focus, #history-date #btn-delete-today-import:active { background: #fff5f5; color: #c93b3b; border-color: #eea5a5; box-shadow: none; }
@media (max-width: 767.98px) {
    #history-date #btn-delete-today-import { padding: 0 0.85rem; font-size: 0.8rem; }
}
/* popup « Import supprimé » : récapitulatif en lignes chiffre + libellé */
.hdi-done { text-align: left; padding: 0 8px; }
.hdi-done-lead { margin: 0 0 10px; font-size: 0.88rem; color: #6b7280; text-align: center; }
.hdi-done-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 6px; border: 1px solid #ede9fe; border-radius: 12px; font-size: 0.86rem; font-weight: 600; color: #374151; }
.hdi-done-figure { min-width: 56px; height: 30px; padding: 0 8px; border-radius: 10px; background: #f5f3ff; color: #4B49AC; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
