/* Fiche prospect/client sur deux colonnes (App\Filament\Concerns\PanneauFiche) et checklist (vue livewire/fiche/checklist).
   Les bascules suivent la largeur réellement disponible (requêtes de conteneur), pas celle de l'écran : menu réduit,
   la fiche passe plus tôt à deux colonnes, puis à checklist et fil côte à côte. Seule la checklist a une largeur figée. */
.bo-fiche-grille{container:bo-fiche / inline-size}
@container bo-fiche (min-width:900px){
    /* Filament enveloppe les enfants d'un groupe dans sa propre grille (.fi-sc) : c'est elle qu'on découpe. */
    .bo-fiche-grille>.fi-sc{grid-template-columns:minmax(0,1fr) 440px!important;column-gap:1rem}
    .bo-fiche-grille>.fi-sc>.fi-grid-col{grid-column:auto!important}
    /* Panneau visible au défilement, calé sous l'en-tête figé (top calculé par panneauFiche). */
    .bo-fiche-panneaux{position:sticky;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
    /* Les deux colonnes commencent au ras de l'en-tête figé, sans la marge du contenu (la gauche restait 1,5 rem plus bas). */
    .bo-fiche-grille>.fi-sc{margin-top:-1.5rem}
    /* Barre d'onglets remontée dans l'en-tête : le contenu de l'onglet ne garde pas la marge prévue sous elle ; fiche.js
       cale ensuite la barre pour que l'onglet démarre à la hauteur du panneau de droite, quelle que soit la largeur. */
    .bo-fiche-principal .fi-sc-tabs>.fi-sc-tabs-tab{margin-top:0}
}

.bo-cl{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:6px 10px 8px;font-size:.74rem;line-height:1.25}
.dark .bo-cl{border-color:rgba(255,255,255,.1);background:#111827}
.bo-cl-entete{display:flex;align-items:center;gap:5px;margin-bottom:3px;font-size:.82rem;font-weight:700;color:#111827}
.dark .bo-cl-entete{color:#f3f4f6}
.bo-cl-entete svg{width:14px;height:14px;color:#16a34a}
.bo-cl-etat{margin-left:auto;font-size:.64rem;font-weight:500;color:#9ca3af}
.bo-cl-groupe+.bo-cl-groupe{margin-top:4px}
.bo-cl-titre{margin:0 -10px 1px;padding:2px 10px;background:#f3f4f6;font-size:.64rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4b5563}
.dark .bo-cl-titre{background:rgba(255,255,255,.06);color:#d1d5db}

/* Une ligne par point : libellé | ∞ | date | note (point « note » : libellé | note). */
.bo-cl-point{display:grid;grid-template-columns:8.6rem 24px 7.4rem minmax(0,1fr);gap:2px 3px;align-items:center;padding:2px 0 1px}
.bo-cl-point.bo-cl-type-note{grid-template-columns:8.6rem minmax(0,1fr)}
.bo-cl-point.bo-cl-type-oui_non{grid-template-columns:8.6rem minmax(0,1fr)}
.bo-cl-ouinon{display:inline-flex;gap:4px}.bo-cl-ouinon button{font-size:.72rem;padding:1px 10px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#374151;cursor:pointer}
.bo-cl-ouinon button.vert.actif{background:#16a34a;border-color:#16a34a;color:#fff}.bo-cl-ouinon button.rouge.actif{background:#dc2626;border-color:#dc2626;color:#fff}
.bo-cl-point+.bo-cl-point{border-top:1px solid #f3f4f6}
.dark .bo-cl-point+.bo-cl-point{border-top-color:rgba(255,255,255,.06)}
.bo-cl-libelle{display:flex;align-items:center;gap:3px;min-width:0;font-weight:600;color:#374151;overflow:hidden}
.dark .bo-cl-libelle{color:#e5e7eb}
.bo-cl-ok{flex:none;font-weight:700;color:#16a34a}
.bo-cl-point input{min-width:0;width:100%;height:24px;padding:0 6px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.72rem;color:inherit;box-sizing:border-box}
.dark .bo-cl-point input{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.bo-cl-point input:focus{outline:0;border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b}
.bo-cl-date{padding:0 3px!important}
.bo-cl-date.en-attente{opacity:.5}
.bo-cl-date.en-attente:focus{opacity:1}
.bo-cl-regulier{width:24px;height:24px;padding:0;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.9rem;line-height:1;color:#6b7280;cursor:pointer}
.bo-cl-regulier:hover{border-color:#f59e0b}
.bo-cl-regulier.actif{border-color:#f59e0b;background:#fef3c7;color:#b45309;font-weight:700}
.dark .bo-cl-regulier{border-color:rgba(255,255,255,.12);background:transparent}
.bo-cl-historique{grid-column:1/-1}

/* Historique replié sous un point : une ligne, le nombre déplie les anciennes valeurs. */
.bo-cl .bo-historique{margin:0;padding:0 6px;border:0;background:transparent;font-size:.6rem;line-height:1.3}
.bo-cl .bo-historique-ligne .bo-historique-titre{font-size:.62rem}
.bo-cl .bo-historique-titre svg{width:9px;height:9px}
.bo-cl button.bo-historique-nombre{border:0;cursor:pointer;line-height:1.3;white-space:nowrap;flex:none}
.bo-cl .bo-historique-ligne .bo-historique-titre{flex-wrap:nowrap;min-width:0}
.bo-cl .bo-historique-ligne-entete{min-width:0}
.bo-cl .bo-historique-grille{margin:0 0 1px;padding:0 6px;border-radius:5px;background:#f9fafb}
.dark .bo-cl .bo-historique-grille{background:rgba(255,255,255,.03)}
.bo-cl .bo-historique-ligne.replie .bo-historique-ligne-entete{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container bo-fiche (min-width:900px){
    .bo-cl-point{grid-template-columns:9.6rem 24px 7.4rem minmax(0,1fr)}
    .bo-cl-point.bo-cl-type-note{grid-template-columns:9.6rem minmax(0,1fr)}
}

.bo-cl .bo-historique-rangee>span{padding:1px 0}

/* Onglets de la fiche : icône et nom court dessous (data-court, fiche.js), même hauteur de barre ; libellé complet en bulle
   et gardé pour les lecteurs d'écran. */
.fi-page:has(.bo-fiche-grille) .fi-tabs-item .fi-tabs-item-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item{position:relative;flex-direction:column;gap:1px;padding:.12rem .45rem;min-width:2.9rem;justify-content:center}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item>svg,.fi-page:has(.bo-fiche-grille) .fi-tabs-item .fi-icon{width:1.05rem;height:1.05rem}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item[data-court]::after{content:attr(data-court);font-size:.62rem;line-height:.8rem;font-weight:600;white-space:nowrap;letter-spacing:-.01em}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item .fi-badge{position:absolute;top:-6px;right:-5px;transform:scale(.75);transform-origin:top right;z-index:1}   /* au-dessus de l'icône, sans la cacher */
.bo-cl .bo-historique-derniere{font-style:italic;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dark .bo-cl .bo-historique-derniere{color:#9ca3af}

/* Onglets de la fiche dans l'en-tête figé, sous le fil d'Ariane (placés par fiche.js) ; boutons en haut à droite. */
.fi-tabs.bo-onglets-entete{position:sticky;z-index:20;width:max-content;max-width:none}
.fi-header.bo-entete-onglets{align-items:flex-start}

/* Fil de suivi (vue livewire/fiche/fil). */
.bo-fil{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:6px 10px 8px;font-size:.74rem;line-height:1.3}
.dark .bo-fil{border-color:rgba(255,255,255,.1);background:#111827}
.bo-fil-entete{display:flex;align-items:center;gap:5px;margin-bottom:4px;font-size:.82rem;font-weight:700;color:#111827}
.dark .bo-fil-entete{color:#f3f4f6}
.bo-fil-entete>svg{width:14px;height:14px;color:#2563eb}
.bo-fil-boutons{margin-left:auto;display:flex;gap:4px}
.bo-fil-btn{display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 8px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.7rem;font-weight:600;color:#374151;cursor:pointer}
.bo-fil-btn svg{width:12px;height:12px}
.bo-fil-btn:hover,.bo-fil-btn.actif{border-color:#f59e0b;background:#fef3c7;color:#b45309}
.dark .bo-fil-btn{border-color:rgba(255,255,255,.12);background:transparent;color:#e5e7eb}
.bo-fil-pastille{display:inline-flex;align-items:center;gap:3px;padding:0 6px;border-radius:99px;background:color-mix(in srgb,var(--couleur) 14%,transparent);color:var(--couleur);font-size:.64rem;font-weight:700;line-height:1.6;white-space:nowrap}
.bo-fil-pastille svg{width:11px;height:11px}
.bo-fil-saisie{margin:0 0 6px;padding:6px;border-radius:8px;background:#f9fafb}
.dark .bo-fil-saisie{background:rgba(255,255,255,.03)}
.bo-fil-types{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:4px}
.bo-fil-types{align-items:center}.bo-fil-types-lib{font-size:.7rem;font-weight:700;color:#6b7280;margin-right:2px}
.bo-fil-choix{cursor:pointer;border-radius:99px;outline:2px solid transparent;outline-offset:1px}
.bo-fil-choix input{display:none}
.bo-fil-choix.actif{outline-color:#f59e0b}
.bo-fil-raccourcis{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:4px}
.bo-fil-raccourci{padding:0 6px;border:1px solid #e5e7eb;border-radius:5px;background:#fff;font-size:.66rem;color:#4b5563;cursor:pointer;line-height:1.7}
.bo-fil-raccourci:hover{border-color:#f59e0b;color:#b45309}
.bo-fil-saisie textarea{width:100%;box-sizing:border-box;padding:4px 6px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.74rem;resize:vertical}
.dark .bo-fil-saisie textarea{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.bo-fil-saisie textarea:focus{outline:0;border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b}
.bo-fil-erreur{color:#dc2626;font-size:.68rem}
.bo-fil-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:4px}
/* Rappels du fil (RA-1) : saisie, rappel porté par un élément, réponse. */
.bo-fil-repond{display:flex;align-items:center;gap:6px;margin-bottom:4px;padding:3px 6px;border-radius:6px;background:#fffbeb;color:#92400e;font-size:.7rem}
.bo-fil-repond button{margin-left:auto;border:0;background:none;color:inherit;cursor:pointer}
.bo-fil-rappel{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:4px;font-size:.72rem}
.bo-fil-rappel-case{display:inline-flex;align-items:center;gap:4px;font-weight:600;cursor:pointer}
.bo-fil-rappel input[type=date],.bo-fil-rappel input[type=time],.bo-fil-rappel select{padding:1px 4px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.72rem}
.dark .bo-fil-rappel input,.dark .bo-fil-rappel select{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12)}
.bo-fil-rap{display:flex;align-items:center;gap:6px;margin-top:3px;padding:2px 6px;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:.7rem;font-weight:600}
.bo-fil-rap.retard{background:#fef2f2;color:#b91c1c}
.bo-fil-rap.fait{background:#f0fdf4;color:#15803d;font-weight:500}
.bo-fil-rap.reponse{background:#f9fafb;color:#6b7280;font-weight:500}
.bo-fil-annuler{border:0;background:none;color:#6b7280;font-size:.7rem;cursor:pointer}
.bo-fil-ajouter{height:24px;padding:0 10px;border:0;border-radius:6px;background:#f59e0b;color:#fff;font-size:.7rem;font-weight:700;cursor:pointer}
.bo-fil-ajouter:hover{background:#d97706}
/* Filtres : pastilles arrondies, nombre dans une bulle sombre ; filtre actif en bleu ; types à leur couleur (sans entrée : la
   pastille seule). */
.bo-fil-filtres{display:flex;flex-wrap:wrap;gap:3px 2px;margin-bottom:4px}
.bo-fil-filtres+.bo-fil-filtres{padding-bottom:5px;border-bottom:1px solid #f3f4f6}
.dark .bo-fil-filtres{border-bottom-color:rgba(255,255,255,.06)}
.bo-fil-filtres button{display:inline-flex;align-items:center;gap:2px;height:19px;padding:0 2px 0 4px;border:1px solid #e5e7eb;border-radius:99px;background:#fff;font-size:.6rem;font-weight:600;color:#374151;cursor:pointer;white-space:nowrap}
.dark .bo-fil-filtres button{background:transparent;border-color:rgba(255,255,255,.12);color:#e5e7eb}
.bo-fil-filtres button svg{width:10px;height:10px}
.bo-fil-filtres.types{flex-wrap:nowrap;gap:2px}
.bo-fil-filtres.types button{flex:0 1 auto;min-width:0;padding:0 4px;justify-content:center}
.bo-fil-filtres button:hover{border-color:#93c5fd}
.bo-fil-filtres button.actif{border-color:#93c5fd;background:#dbeafe;color:#1d4ed8}
.dark .bo-fil-filtres button.actif{background:rgba(37,99,235,.2)}
.bo-fil-filtres button.type{border-color:color-mix(in srgb,var(--couleur) 30%,transparent);background:color-mix(in srgb,var(--couleur) 10%,#fff);color:var(--couleur);font-weight:700}
.bo-fil-filtres button.type.actif{background:color-mix(in srgb,var(--couleur) 22%,#fff);box-shadow:0 0 0 1px var(--couleur)}
.bo-fil-filtres button.vide{padding:0 7px}
/* Liste : bandeau par jour, puis les entrées (barre de gauche à la couleur du type). */
.bo-fil-liste{margin:0;padding:0;list-style:none}
.bo-fil-jour{display:flex;align-items:center;gap:5px;margin:6px 0 2px;padding:2px 6px;border-radius:6px;background:#eef2f7;font-size:.7rem;font-weight:700;color:#334155}
.dark .bo-fil-jour{background:rgba(255,255,255,.06);color:#e5e7eb}
.bo-fil-jour svg{width:12px;height:12px;color:#64748b}
.bo-fil-e{display:grid;grid-template-columns:12px 30px 50px minmax(0,1fr);gap:5px;align-items:start;margin-left:2px;padding:4px 0 4px 5px;border-left:3px solid var(--couleur)}
.bo-fil-e+.bo-fil-e{border-top:1px solid #f3f4f6}
.dark .bo-fil-e+.bo-fil-e{border-top-color:rgba(255,255,255,.06)}
.bo-fil-e.suivi{background:#fffbeb}
.dark .bo-fil-e.suivi{background:rgba(217,119,6,.08)}
.bo-fil-etoile{padding:0;border:0;background:none;color:#d1d5db;font-size:.8rem;line-height:1.3;cursor:pointer}
.bo-fil-e.suivi .bo-fil-etoile,.bo-fil-etoile:hover{color:#f59e0b}
.bo-fil-heure{color:#6b7280;font-size:.68rem;line-height:1.5;font-variant-numeric:tabular-nums}
.bo-fil-type{justify-self:start;max-width:100%;overflow:hidden;display:inline-flex;align-items:center;gap:3px;padding:0 6px;border-radius:99px;background:color-mix(in srgb,var(--couleur) 14%,transparent);color:var(--couleur);font-size:.62rem;font-weight:700;line-height:1.7;white-space:nowrap}
.bo-fil-type svg{width:11px;height:11px}
.bo-fil-l1{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;min-width:0}
.bo-fil-auteur{color:#111827;font-weight:700}
.dark .bo-fil-auteur{color:#f3f4f6}
.bo-fil-auteur.droite{margin-left:auto;font-weight:600;color:#374151}
.bo-fil-libelle{color:#1d4ed8;font-weight:700;font-size:.66rem;padding:0 5px;border-radius:5px;background:#eff6ff}
.bo-fil-texte{white-space:pre-line;overflow-wrap:anywhere;color:#1f2937}
.bo-fil-texte.court{white-space:normal}
.dark .bo-fil-texte{color:#e5e7eb}
.bo-fil-repondre{margin-left:auto;display:inline-flex;align-items:center;gap:3px;padding:0 6px;border:1px solid #fca5a5;border-radius:6px;background:#fff;color:#dc2626;font-size:.66rem;font-weight:700;line-height:1.6;cursor:pointer}
.bo-fil-repondre svg{width:11px;height:11px}
.bo-fil-repondre:hover{background:#fef2f2}
.bo-fil-auteur.droite+.bo-fil-repondre{margin-left:0}
.bo-fil-vide{display:block!important;padding:8px 0!important;color:#9ca3af;font-style:italic}
.bo-fil-plus{margin-top:4px;padding:4px;text-align:center;font-size:.66rem;font-style:italic;color:#9ca3af}

/* Checklist et fil côte à côte quand la place le permet, sinon l'un sous l'autre dans la colonne de droite. */
.bo-fiche-panneaux>.fi-sc{row-gap:.75rem}
@container bo-fiche (min-width:1250px){
    /* Checklist 440 px (figée) ; formulaire et fil se partagent le reste, 59 % / 41 %. */
    .bo-fiche-grille>.fi-sc{grid-template-columns:minmax(0,1fr) calc(452px + (100% - 452px - 1rem) * .41)!important}
    .bo-fiche-panneaux>.fi-sc{grid-template-columns:440px minmax(0,1fr)!important;column-gap:12px;align-items:start}
    .bo-fiche-panneaux>.fi-sc>.fi-grid-col{grid-column:auto!important}
}
/* Petits écrans : la barre d'onglets défile sur place au lieu d'élargir la page. */
.fi-page:has(.bo-fiche-grille) .fi-tabs:not(.bo-onglets-entete){max-width:100%;overflow-x:auto;scrollbar-width:thin}

/* Formulaire de la fiche plus compact : police réduite (libellés, champs, listes, titres de section). */
.bo-fiche-principal .fi-fo-field-label-content,.bo-fiche-principal .fi-input,.bo-fiche-principal textarea,
.bo-fiche-principal .fi-select-input-btn,.bo-fiche-principal .fi-select-input-value-ctn,.bo-fiche-principal .fi-select-input-option,
.bo-fiche-principal .fi-fo-checkbox-list-option-label,.bo-fiche-principal .fi-fo-toggle-label,.bo-fiche-principal .fi-sc-text,
.bo-fiche-principal .fi-fo-field-wrp-helper-text,.bo-fiche-principal .fi-fo-table-repeater th,.bo-fiche-principal .fi-btn{font-size:.74rem!important}
.bo-fiche-principal .fi-section-header-heading{font-size:.84rem}
.bo-fiche-principal .fi-section-header-description{font-size:.7rem}
/* Formulaire de la fiche : champs plus bas (25/11/2026 : 30 % de moins, 32 → 22 px), sections et espacements resserrés. */
.bo-fiche-principal .fi-input{padding-top:1px!important;padding-bottom:1px!important;line-height:1.25rem!important}
.bo-fiche-principal .fi-select-input-btn{min-height:0;padding-top:1px!important;padding-bottom:1px!important;line-height:1.25rem!important}
.bo-fiche-principal .fi-input-wrp{min-height:0}
.bo-fiche-principal .fi-select-input > div{min-height:0!important}   /* listes déroulantes : 36 px imposés par Filament */
.bo-fiche-principal .fi-fo-field-wrp-helper-text,.bo-fiche-principal .fi-fo-field-wrp-hint{font-size:.68rem!important}
.bo-fiche-principal .fi-section-header{padding-top:.6rem;padding-bottom:.6rem}
.bo-fiche-principal .fi-section-content{padding:.85rem 1rem!important}
.bo-fiche-principal .fi-sc-has-gap{gap:.75rem}
.bo-fiche-principal .bo-historique-entete{font-size:.64rem}

/* Panneau de droite : chaque colonne (checklist, fil) défile seule, la checklist ne part pas avec un long fil.
   L'une sous l'autre : la checklist garde sa hauteur, le fil prend le reste. Côte à côte au-delà de 1250 px de fiche. */
@container bo-fiche (min-width:900px){
    .bo-fiche-panneaux{overflow:hidden!important}
    .bo-fiche-panneaux>.fi-sc{height:100%;grid-template-rows:auto minmax(0,1fr);align-items:stretch!important}
    .bo-fiche-panneaux>.fi-sc>.fi-grid-col{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
@container bo-fiche (min-width:1250px){
    .bo-fiche-panneaux>.fi-sc{grid-template-rows:minmax(0,1fr)}
}
.bo-fil-tete{position:sticky;top:0;z-index:2;margin:-6px -10px 0;padding:6px 10px 0;background:#fff;border-radius:10px 10px 0 0}
.dark .bo-fil-tete{background:#111827}

/* Libellés à gauche des champs (inlineLabel) : colonne étroite, « Renseigné par » dessous, aligné à gauche. */
@media (min-width:40rem){
    .bo-fiche-principal .fi-fo-field-has-inline-label{grid-template-columns:9.5rem minmax(0,1fr)!important;column-gap:.75rem!important}
    .bo-fiche-principal .fi-fo-field-has-inline-label .fi-fo-field-content-col{grid-column:auto!important}
}
.bo-fiche-principal .fi-fo-field-has-inline-label .fi-fo-field-label-col{align-content:start;align-items:start;row-gap:2px}
.bo-fiche-principal .fi-fo-field-label-col .bo-historique-entete{display:block;margin-top:1px;text-align:left;line-height:1.2}

/* Bandeau d'identité de la fiche (vue filament.fiche.bandeau) : dans l'en-tête figé sur ordinateur, dans la page
   (il défile) sur téléphone. Sur ordinateur, les boutons de l'en-tête restent en haut à droite, sur la ligne du fil
   d'Ariane, et le bandeau prend toute la largeur dessous. */
.bo-bandeau{display:flex;align-items:center;gap:8px 12px;margin-top:8px;padding:6px 10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.dark .bo-bandeau{border-color:rgba(255,255,255,.1);background:#111827}
.bo-bandeau-logo{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #f3f4f6;border-radius:8px;background:#fff;overflow:hidden}
.bo-bandeau-logo img{max-width:100%;max-height:100%;object-fit:contain}
.bo-bandeau-logo span{font-size:.8rem;font-weight:800;color:#9ca3af}
.bo-bandeau-ident{flex:0 1 auto;min-width:140px;max-width:340px}
.bo-bandeau-titre{display:flex;align-items:center;gap:6px;min-width:0}
.bo-bandeau-nom{font-size:.88rem;font-weight:800;line-height:1.25;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dark .bo-bandeau-nom{color:#f9fafb}
.bo-bandeau-etat{flex:none;display:inline-flex;align-items:center;gap:4px;padding:0 6px;border-radius:99px;background:color-mix(in srgb,var(--c) 12%,transparent);color:var(--c);font-size:.62rem;font-weight:700;white-space:nowrap}
.bo-bandeau-etat::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--c)}
.bo-bandeau-alerte{border:0;cursor:pointer;font-family:inherit}
.bo-bandeau-alerte:hover{background:color-mix(in srgb,var(--c) 22%,transparent)}
.bo-bandeau-sous{font-size:.7rem;color:#6b7280}
.bo-bandeau-meta{display:flex;flex-wrap:wrap;gap:2px 14px;margin-top:3px;font-size:.74rem;color:#4b5563}
.dark .bo-bandeau-meta{color:#d1d5db}
.bo-bandeau-meta span{display:inline-flex;align-items:center;gap:4px}
.bo-bandeau-meta svg{width:14px;height:14px;color:#9ca3af;flex:none}
.bo-bandeau-meta .vide,.bo-bandeau-carte.vide b{color:#9ca3af;font-weight:500}
.bo-bandeau-cartes{flex:1 1 auto;min-width:0;display:flex;gap:5px;justify-content:flex-end;overflow-x:auto;scrollbar-width:none}
.bo-bandeau-carte{flex:0 1 auto;min-width:90px;display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 8px;border:1px solid #f3f4f6;border-radius:9px;background:#f9fafb;text-align:left;color:inherit;text-decoration:none;font:inherit;cursor:default}
.dark .bo-bandeau-carte{border-color:rgba(255,255,255,.06);background:rgba(255,255,255,.03)}
a.bo-bandeau-carte,button.bo-bandeau-carte{cursor:pointer}
a.bo-bandeau-carte:hover,button.bo-bandeau-carte:hover{border-color:#fcd34d;background:#fffbeb}
.dark a.bo-bandeau-carte:hover,.dark button.bo-bandeau-carte:hover{background:rgba(245,158,11,.08)}
.bo-bandeau-carte>svg{width:16px;height:16px;flex:none;color:#d97706}
.bo-bandeau-carte>span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.bo-bandeau-carte b{display:block;font-size:.74rem;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dark .bo-bandeau-carte b{color:#f3f4f6}
.bo-bandeau-carte i{font-size:.62rem;font-style:normal;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Ordinateur : bandeau dans l'en-tête figé ; téléphone : celui de la page. */
.bo-bandeau-page{margin:0 0 1rem}
@media (min-width:64rem){
    .bo-bandeau-page{display:none}
    .fi-page .fi-header:has(.bo-bandeau){position:sticky;align-items:flex-start}
    .fi-page .fi-header:has(.bo-bandeau)>div:first-child{flex:1 1 100%}
    .fi-page .fi-header:has(.bo-bandeau)>.fi-header-actions-ctn{position:absolute;top:.9rem;right:0}
    /* Ligne du fil d'Ariane au moins aussi haute que les boutons : le bandeau commence dessous. */
    .fi-page .fi-header:has(.bo-bandeau) .fi-breadcrumbs{display:flex;align-items:center;min-height:2.25rem}
    .fi-page .fi-header:has(.bo-bandeau) .fi-breadcrumbs-list{margin-bottom:0}
}
@media (max-width:63.99rem){.bo-bandeau-entete{display:none}}
@media (max-width:40rem){.bo-bandeau{flex-wrap:wrap}.bo-bandeau-ident{flex:1 1 0;max-width:none}.bo-bandeau-cartes{flex-basis:100%;flex-wrap:wrap;justify-content:flex-start;overflow:visible}.bo-bandeau-carte{max-width:100%}}
/* Bandeau : liens de la carte du site (prod et dev de l'ancien BO). */
.bo-bandeau-carte a{color:inherit;text-decoration:none}
.bo-bandeau-carte a:hover b{color:#b45309}
.bo-bandeau-carte .bo-bandeau-dev{color:#2563eb;font-style:normal;font-weight:600}
.bo-bandeau-carte .bo-bandeau-dev:hover{text-decoration:underline}
/* Site coupé : nom, prod et dev en rouge. */
.bo-bandeau-carte.site.coupe b,.bo-bandeau-carte.site.coupe .bo-bandeau-dev{color:#dc2626}
.bo-bandeau-siret{display:block;margin-top:1px;font-size:.68rem;white-space:nowrap;color:#4b5563;font-variant-numeric:tabular-nums}
.bo-bandeau-siret.vide{color:#9ca3af;cursor:default}
.dark .bo-bandeau-siret{color:#d1d5db}
/* Bandeau : QR du site (agrandi au clic) et historique des avis Google. */
.bo-bandeau-qr{border:1px solid #e5e7eb;background:#fff;border-radius:5px;padding:0 4px;font:inherit;font-size:.6rem;font-weight:700;color:#374151;cursor:zoom-in}
.bo-bandeau-qr:hover{border-color:#d97706;color:#b45309}
.dark .bo-bandeau-qr{background:#1f2937;border-color:#374151;color:#e5e7eb}
.bo-bandeau-carte.mb{position:relative;overflow:visible;min-width:0;flex:none}
.bo-bandeau-carte.mb .bo-bandeau-histo-btn,.bo-bandeau-carte.mb i{white-space:nowrap}
.bo-bandeau-carte.mb>span{align-items:center}
.bo-bandeau-carte .etoiles{font-size:.82rem;letter-spacing:1px;color:#d1d5db;line-height:1}
.bo-bandeau-carte .etoiles .on{color:#f59e0b}
.bo-bandeau-carte.site{max-width:360px;flex-shrink:.5}
.bo-bandeau-ligne2{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden}
.bo-bandeau-ligne2 .bo-bandeau-siret{margin-top:0}
.bo-bandeau-ident .bo-bandeau-titre{flex-wrap:nowrap}
/* Bandeau : les quatre dates dans une carte, deux par ligne. */
.bo-bandeau-carte.dates{max-width:none;flex:none}
.bo-bandeau-carte.dates>span:last-child{display:grid;grid-template-columns:auto;gap:0;font-size:.7rem;font-weight:600;color:#111827;white-space:nowrap;font-variant-numeric:tabular-nums}
.dark .bo-bandeau-carte.dates>span:last-child{color:#f3f4f6}
.bo-bandeau-carte.dates i{font-weight:400;margin-right:2px}
.bo-bandeau-carte.dates .vide{color:#9ca3af;font-weight:500}
/* Cartes en colonne (panneau de la messagerie). */
.bo-bandeau-cartes.colonne{flex-direction:column;align-items:stretch;overflow:visible;gap:4px}
.bo-bandeau-cartes.colonne .bo-bandeau-carte{max-width:none;flex:none;min-width:0}
.bo-bandeau-cartes.colonne .bo-bandeau-carte>span:last-child{flex:1 1 auto}
.bo-bandeau-cartes.colonne .bo-bandeau-carte.mb>span{align-items:flex-start}
.bo-bandeau-carte.site i{white-space:nowrap}
.bo-bandeau-histo-btn{border:0;background:none;padding:0;color:#6b7280;cursor:pointer;font:inherit;font-size:.62rem;text-decoration:underline dotted}
.bo-bandeau-histo-btn:hover{color:#2563eb}
.bo-bandeau-histo{position:absolute;z-index:40;top:calc(100% + 6px);left:0;display:flex;flex-direction:column;gap:3px;min-width:200px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.12);white-space:nowrap;font-size:.72rem}
.dark .bo-bandeau-histo{background:#1f2937;border-color:#374151}
.bo-bandeau-histo i{font-style:normal;color:#6b7280;margin-right:8px;font-variant-numeric:tabular-nums}
.bo-qr-grand{position:fixed;inset:0;z-index:9999;background:rgba(17,24,39,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.bo-qr-grand>div{background:#fff;border-radius:16px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px;max-width:min(92vw,460px)}
.bo-qr-grand b{font-size:1rem;color:#111827}
.bo-qr-grand img{width:min(80vw,380px);height:auto;image-rendering:pixelated}
.bo-qr-grand button{border:1px solid #e5e7eb;background:#f9fafb;border-radius:9px;padding:6px 16px;font-weight:600;cursor:pointer}

/* Panneau de droite : Fil et Chat en onglets dans le titre de chacun (filament/fiche/onglets-fil-chat), le volet
   ouvert prend toute la hauteur. */
.bo-fil-chat{display:flex;flex-direction:column;height:100%;min-height:0}
.bo-fil-onglets{display:inline-flex;gap:2px}
.bo-fil-onglets button{display:inline-flex;align-items:center;gap:4px;padding:0 6px;border-bottom:2px solid transparent;font-size:.82rem;font-weight:700;color:#9ca3af}
.bo-fil-onglets button:hover{color:#111827}
.bo-fil-onglets button.actif{color:#111827;border-bottom-color:#2563eb}
.dark .bo-fil-onglets button:hover,.dark .bo-fil-onglets button.actif{color:#f3f4f6}
.bo-fil-total{margin-left:4px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#e5e7eb;color:#374151;font-size:.6rem;font-weight:700;line-height:16px;text-align:center;display:inline-block}
.dark .bo-fil-total{background:rgba(255,255,255,.12);color:#e5e7eb}
.bo-fil-chat-compte{min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#ef4444;color:#fff;font-size:.6rem;font-weight:700;line-height:16px;text-align:center}
.bo-fil-chat-volet{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.bo-fil-chat-volet:has(.bo-chat){overflow:hidden}
/* Panneau d'une seule colonne (prospect commercial : le chat seul). */
@container bo-fiche (min-width:900px){
    .bo-fiche-panneau-seul>.fi-sc{grid-template-rows:minmax(0,1fr)!important}
}
@container bo-fiche (min-width:1250px){
    .bo-fiche-panneau-seul>.fi-sc{grid-template-columns:minmax(0,1fr)!important}
}

/* Sites de la fiche (onglet Infos, filament/fiche/sites) : une carte par site, lecture seule. */
.bo-sites-anciens{display:flex;flex-direction:column;gap:8px}
.bo-site-ancien{border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;font-size:.74rem}
.dark .bo-site-ancien{border-color:rgba(255,255,255,.1)}
.bo-site-ancien-tete{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:4px;font-size:.8rem}
.bo-site-ancien-num{color:#6b7280;font-size:.7rem}
.bo-site-ancien-pastille{padding:0 7px;border-radius:99px;background:#f3f4f6;color:#374151;font-size:.66rem;font-weight:600}
.bo-site-ancien-pastille.vert{background:#dcfce7;color:#166534}
.bo-site-ancien-pastille.rouge{background:#fee2e2;color:#991b1b}
.bo-site-ancien dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px 16px;margin:0}
.bo-site-ancien dl>div{display:flex;gap:6px;min-width:0}
.bo-site-ancien dt{flex:none;color:#6b7280}
.bo-site-ancien dd{margin:0;min-width:0;overflow-wrap:anywhere}
.bo-site-ancien a{color:#2563eb}

/* Modifications du site en attente de validation (App\Livewire\Fiche\DemandesAValider) */
.bo-dav{border:1px solid #f59e0b;background:#fffbeb;border-radius:10px;padding:10px 14px;display:flex;flex-direction:column;gap:8px}
.dark .bo-dav{background:rgba(245,158,11,.1)}
.bo-dav-titre{font-weight:700;color:#92400e;font-size:.9rem}.dark .bo-dav-titre{color:#fbbf24}
.bo-dav-ligne{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;border-top:1px dashed #fcd34d;padding-top:8px}
.bo-dav-quoi{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:.85rem}
.bo-dav-quoi small{color:#6b7280;font-size:.75rem}
.bo-dav-logos{display:flex;align-items:center;gap:8px}.bo-dav-logos img{max-height:40px;max-width:140px;background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:2px}
.bo-dav-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bo-dav-actions input{border:1px solid #d1d5db;border-radius:6px;padding:4px 8px;font-size:.8rem;min-width:200px;background:#fff}
.dark .bo-dav-actions input{background:#111827;border-color:#374151;color:#e5e7eb}
.bo-dav-mention{display:block;margin:4px 0;padding:4px 8px;border-left:3px solid #f59e0b;background:#fffbeb;color:#92400e;font-size:.8rem;border-radius:4px}
.dark .bo-dav-mention{background:rgba(245,158,11,.1);color:#fbbf24}
.bo-dav-mention small{color:#6b7280}.bo-dav-mention img{max-height:32px;vertical-align:middle;background:#fff;border:1px solid #e5e7eb;border-radius:3px;margin-left:4px}

/* Onglet Tickets du panneau de droite (livewire/fiche/tickets) : une carte par ticket, bordure à la couleur du domaine. */
.bo-tk-liste{display:flex;flex-direction:column;gap:5px;margin-top:4px}
.bo-tk-ligne{padding:5px 7px;border:1px solid #e5e7eb;border-left:3px solid var(--couleur);border-radius:8px;background:#fff;font-size:.72rem}
.dark .bo-tk-ligne{background:transparent;border-color:rgba(255,255,255,.1);border-left-color:var(--couleur)}
.bo-tk-ligne.regle{opacity:.6}
.bo-tk-ligne.urgent{background:#fef2f2}
.bo-tk-haut{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.bo-tk-domaine{padding:0 5px;border-radius:99px;background:color-mix(in srgb,var(--couleur) 12%,#fff);color:var(--couleur);font-size:.6rem;font-weight:800}
.bo-tk-etat{margin-left:auto;padding:0 6px;border-radius:99px;background:#f3f4f6;color:#374151;font-size:.62rem;font-weight:600;white-space:nowrap}
.bo-tk-urgent{padding:0 5px;border-radius:99px;background:#dc2626;color:#fff;font-size:.58rem;font-weight:700}
.bo-tk-texte{margin-top:2px;color:#4b5563;white-space:pre-line}
.bo-tk-bas{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-top:2px;color:#9ca3af;font-size:.64rem}
.bo-tk-bas .bo-fil-lien{margin:0;font-size:.66rem;white-space:nowrap}
.bo-tk-deplier{padding:0 6px;border:1px solid #e5e7eb;border-radius:99px;background:#fff;color:#374151;font-size:.62rem;font-weight:600;white-space:nowrap}
.dark .bo-tk-deplier{background:transparent;border-color:rgba(255,255,255,.12);color:#e5e7eb}
.bo-tk-detail{margin-top:5px;padding-top:5px;border-top:1px dashed #e5e7eb;display:flex;flex-direction:column;gap:5px}
.bo-tk-detail input,.bo-tk-detail textarea{width:100%;padding:3px 6px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.7rem;color:inherit}
.dark .bo-tk-detail input,.dark .bo-tk-detail textarea{background:#1f2937;border-color:rgba(255,255,255,.12)}
.bo-tk-detail .choix{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}
.bo-tk-detail button{padding:1px 7px;border:1px solid #d1d5db;border-radius:99px;background:#fff;font-size:.64rem;font-weight:600;color:#374151}
.bo-tk-detail button:hover{border-color:#93c5fd;background:#eff6ff}
.bo-tk-detail button.final{border-color:#86efac;background:#f0fdf4;color:#166534}
.bo-tk-message{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.bo-tk-detail .err{color:#dc2626;font-size:.64rem}
.bo-tk-echanges{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:3px;color:#4b5563}
.bo-tk-echanges small{display:block;color:#9ca3af;font-size:.6rem}

/* Tickets paiement, impayés et renouvellements (23/11/2026) : relance d'appel et dernières actions sous le ticket. */
.bo-tk-relance{color:#b45309;font-size:.68rem;font-weight:600;white-space:nowrap}
.bo-tk-relance:hover{text-decoration:underline}
.bo-tk-histo{margin-top:4px;padding:5px 7px;background:#f9fafb;border-radius:6px}
.bo-tk-ligne .bo-relance{margin-top:6px;font-size:.72rem}
.bo-lien-suivi{font-weight:600;color:#b45309;white-space:nowrap;text-decoration:none}.bo-lien-suivi:hover{text-decoration:underline}
/* Lecture à voix haute d'un message du chat (public/js/lecture-chat.js) : bouton rond bien visible */
.lire-msg{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:6px;padding:0;border:0;border-radius:50%;background:#e0e7ff;color:#4338ca;cursor:pointer;vertical-align:middle;transition:background .15s,transform .15s}
.lire-msg:hover{background:#c7d2fe}
.lire-msg.lecture-en-cours{background:#4338ca;color:#fff;animation:lire-pulse 1s ease-in-out infinite}
@keyframes lire-pulse{50%{transform:scale(1.15)}}
.sans-lecture .lire-msg{display:none}
/* Fiche (25/11/2026) : n° de la ligne du suivi dans le titre du bloc « Ancien BO » ; titres des listes (téléphones, e-mails) resserrés. */
.bo-fiche-principal .bo-suivi-entete{width:210px}
.bo-fiche-principal .fi-fo-field:has(.fi-fo-table-repeater) .fi-fo-field-label-ctn{padding-top:0;padding-bottom:0;min-height:0;line-height:1.1}
.bo-fiche-principal .fi-fo-table-repeater th{padding-top:3px!important;padding-bottom:3px!important;line-height:1.1}   /* en-têtes du tableau */
.bo-fiche-principal select.fi-select-input{padding-top:1px!important;padding-bottom:1px!important;line-height:1.25rem}   /* listes natives (type de téléphone…) */
.bo-fiche-principal .bo-region-indicatif{font-size:.74rem;color:#6b7280;padding-top:3px}   /* région · indicatif, à côté du département */
.bo-bandeau-titre .bo-copier{align-self:center;flex-shrink:0}   /* copier le nom, à gauche */
.bo-bandeau-carte.tel{flex-shrink:0}   /* numéro court et entier : les autres cartes cèdent la place */
.bo-bandeau-tel{display:flex;align-items:center;gap:4px}   /* numéro + copier, carte du téléphone */
.bo-bandeau-tel b{flex:none}
.bo-bandeau-tel .bo-copier{align-self:center;flex-shrink:0}
.bo-fiche-principal .bo-aide-icone{display:inline-flex;vertical-align:middle;margin-left:4px;color:#9ca3af;cursor:help}.bo-fiche-principal .bo-aide-icone svg{width:15px;height:15px}
.bo-fiche-principal .bo-toggle-ligne .fi-fo-field-label-col{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:2px 12px}   /* interrupteur, libellé et historique sur une ligne */
/* Interrupteurs on/off moins hauts (25/11/2026) : 18 px au lieu de 24, pastille de 14 px. */
/* Mêmes interrupteurs dans les informations d'une page de site repris (.ba-infos, 27/11/2026). */
.bo-fiche-principal .fi-toggle,.ba-infos .fi-toggle{height:18px;width:32px}
.bo-fiche-principal .fi-toggle > :first-child,.ba-infos .fi-toggle > :first-child{width:14px;height:14px}
.bo-fiche-principal .fi-toggle.fi-toggle-on > :first-child,.ba-infos .fi-toggle.fi-toggle-on > :first-child{translate:14px 0}
.bo-fiche-principal .fi-toggle .fi-icon,.ba-infos .fi-toggle .fi-icon{width:10px;height:10px}
/* Rôles Contact / Fact. des e-mails et contacts : deux pastilles sur une ligne (FactureUnique::roles). */
.bo-roles .fi-fo-toggle-buttons{gap:3px!important;flex-wrap:nowrap}
.bo-roles .fi-fo-toggle-buttons .fi-btn{padding:1px 6px!important;font-size:.7rem!important;line-height:1rem;min-height:0;gap:0}
/* Blocs d'adresse (site, SIRET) : moins d'espace en haut et en bas (25/11/2026). */
.bo-fiche-principal .fi-fieldset:not(.fi-fieldset-not-contained){padding-top:4px;padding-bottom:10px}
/* Valeur d'une liste de choix sur une seule ligne (ex. « 63 — Puy-de-Dôme »), coupée par « … » si trop longue. */
.bo-fiche-principal .fi-select-input-value-ctn{min-width:0}
.bo-fiche-principal .fi-select-input-value-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Titre « Adresse du site » en vert (25/11/2026). */
.bo-fiche-principal .bo-adresse-site > legend{color:#88b61b}
