/* Onglets RS, RN, Visuels, BAT, Contenu ; modifications de site ; capture annotée ; noms courts des onglets. Feuilles du BO découpées le 13/11/2026 (revue qualité Q-4), chargées dans cet ordre par AdminPanelProvider :
   fiche, pieces-jointes, demandes-appels, tickets-services, popins, onglets. */

/* Onglet Réseaux sociaux (filament/fiche/rs) : cartes par réseau sur deux colonnes, qui et quand sous chaque champ. */
.bo-rs-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:14px;align-items:start}
.bo-rs-carte h3{display:flex;align-items:center;gap:8px}.bo-rs-carte h3 .fleche{margin-left:auto;font-size:.7rem;color:#9ca3af}
.bo-rs-carte .pastille{width:10px;height:10px;border-radius:50%;display:inline-block}
.bo-rs-compte{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.bo-rs-compte.secours{border-top:1px dashed #e5e7eb;padding-top:10px}.bo-rs-compte h4{margin:0;font-size:.78rem;color:#6b7280}
.bo-rs-compte .ligne{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
.bo-rs-compte .ligne.deux>label{flex:1 1 220px}.bo-rs-compte .ligne.trois>label{flex:1 1 150px}.bo-rs-compte .ligne>label.large{flex:1 1 100%}
.bo-rs-compte label:not(.case){display:flex;flex-direction:column;gap:3px;font-size:.74rem;font-weight:600;color:#6b7280}
.bo-rs-compte label.case{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:#374151;flex-wrap:wrap}
.bo-rs-compte small.qui{display:block;font-size:.68rem;font-weight:500;color:#9ca3af}.bo-rs-compte label.case small.qui{display:inline;margin-left:4px}
.bo-rs-compte .avec-bouton{display:flex;align-items:center;gap:6px}.bo-rs-compte .avec-bouton input{flex:1;min-width:0}
.bo-rs-compte .ouvrir{display:flex;padding:5px;border-radius:6px;background:#eff6ff;color:#2563eb}.bo-rs-compte .ouvrir svg{width:16px;height:16px}
.bo-rs-compte .voir{font-size:.72rem;font-weight:700;color:#b45309;white-space:nowrap}
.bo-rs-compte .secret{font-family:ui-monospace,monospace;font-size:.78rem;color:#111827;white-space:nowrap}
.bo-rs-compte .pied{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;justify-content:space-between}.bo-rs-compte .pied .statut{flex-direction:row;align-items:center}
.bo-rs-compte .lib{font-size:.78rem;font-weight:600;color:#374151}.bo-rs-compte .err{color:#b91c1c;font-size:.72rem}

/* Capture annotée (public/js/bo/annotation.js) : éditeur plein écran. */
.bo-annot{position:fixed;inset:0;z-index:110;background:rgba(17,24,39,.85);display:flex;flex-direction:column}
.bo-annot .barre{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 14px;background:#111827}
.bo-annot .barre button{min-width:34px;height:34px;padding:0 10px;border-radius:8px;border:1px solid #374151;background:#1f2937;color:#f9fafb;font-size:.95rem;font-weight:700}
.bo-annot .barre button.actif{border-color:#f59e0b;box-shadow:0 0 0 2px #f59e0b}
.bo-annot .barre .couleur{min-width:26px;width:26px;height:26px;padding:0;border-radius:50%}
.bo-annot .barre .sep{width:1px;height:24px;background:#374151;margin:0 4px}
.bo-annot .barre .fin{margin-left:auto;display:flex;gap:8px}.bo-annot .barre .ok{background:#f59e0b;border-color:#f59e0b;color:#fff}
.bo-annot .toile{flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:16px}
.bo-annot canvas{max-width:100%;height:auto;background:#fff;box-shadow:0 10px 40px rgba(0,0,0,.4);cursor:crosshair;touch-action:none}
/* Modifications de site (livewire/fiche/problemes, domaine modif). */
.bo-modif-captures{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bo-modif-captures .cap{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1px solid #e5e7eb;border-radius:999px;font-size:.72rem;background:#fff}
.bo-modif-captures .cap button{color:#b91c1c;font-weight:700}
.bo-modif-photos{display:flex;flex-wrap:wrap;gap:6px;max-height:220px;overflow:auto}
.bo-modif-photos label{position:relative;cursor:pointer}.bo-modif-photos img{width:72px;height:72px;object-fit:cover;border-radius:6px;border:2px solid transparent}
.bo-modif-photos input{position:absolute;top:4px;left:4px}.bo-modif-photos input:checked+img{border-color:#f59e0b}
.bo-modif-vignettes{display:flex;gap:4px;flex-wrap:wrap}.bo-modif-vignettes img{width:48px;height:48px;object-fit:cover;border-radius:4px}
.bo-modif-assigne{font-size:.72rem;color:#4b5563}
.bo-modif-champ{display:flex;flex-direction:column;gap:3px;font-size:.74rem;font-weight:600;color:#6b7280}
/* Modifications : tous les types visibles, par catégorie (saisie-modif). */
.bo-modif-types{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.bo-modif-types .categorie{display:flex;flex-direction:column;gap:4px}
.bo-modif-types h5{margin:0 0 2px;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;font-weight:700}
.bo-modif-types button{text-align:left;padding:6px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-size:.78rem;color:#1f2937;line-height:1.3}
.bo-modif-types button:hover{border-color:#f59e0b}.bo-modif-types button.actif{background:#fff7ed;border-color:#f59e0b;color:#9a3412;font-weight:700}
.bo-modif-types button small{font-size:.65rem;color:#b45309;margin-left:4px}
.bo-modif-type-choisi{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid #f59e0b;border-radius:8px;background:#fff7ed}
.bo-modif-type-choisi span{display:flex;flex-direction:column;font-size:.85rem;font-weight:700;color:#9a3412}
.bo-modif-type-choisi small{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:#b45309;font-weight:700}
.bo-modif-type-choisi em{font-style:normal;font-size:.65rem;color:#b45309;margin-left:4px}
/* Popin des étapes d'une modification (livewire/fiche/problemes/etape-modif). */
.bo-etape-popin{z-index:90}
.bo-etape-popin .boite{max-width:460px;display:flex;flex-direction:column;gap:10px}
.bo-etape-popin h3{margin:0;font-size:1rem;font-weight:800;color:#111827}
.bo-etape-popin .rappel{margin:0;font-size:.8rem;color:#4b5563;padding:8px 10px;border-radius:8px;background:#f9fafb}.bo-etape-popin .rappel small{color:#6b7280}
.bo-etape-popin label{display:flex;flex-direction:column;gap:4px;font-size:.76rem;font-weight:600;color:#374151}
.bo-etape-popin select,.bo-etape-popin textarea{width:100%;padding:7px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:.85rem;font-weight:400}
.bo-etape-popin .err{color:#b91c1c;font-size:.76rem}
.bo-etape-popin .actions{display:flex;justify-content:flex-end;gap:8px}
.bo-etape-popin button{height:34px;padding:0 14px;border-radius:8px;font-size:.82rem;font-weight:700;border:1px solid #e5e7eb;background:#fff;color:#374151}
.bo-etape-popin button.ok{background:#16a34a;border-color:#16a34a;color:#fff}.bo-etape-popin button.ok.rouge{background:#dc2626;border-color:#dc2626}
.dark .bo-etape-popin h3{color:#f9fafb}
/* Page Tickets : dernière action sur une ligne (« … »), nombre d'actions. */
.bo-pbl-ligne .c-quoi small.derniere{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bo-pbl-ligne .c-quoi small.derniere .nb{display:inline-block;margin-right:6px;padding:0 6px;border-radius:999px;background:#f3f4f6;color:#4b5563;font-weight:700}
.bo-pbl-ligne .c-quoi{min-width:0}
/* Page Tickets : sans la colonne des dates (assurance, carte : LS seulement), le texte du ticket prend la place libre. */
.bo-pbl-ligne:not(.d-ls):not(.ads){grid-template-columns:90px 170px 190px minmax(0,1fr) 150px}
@media (max-width:900px){.bo-pbl-ligne:not(.d-ls):not(.ads){grid-template-columns:1fr}}
/* Page Tickets, modifications : listes (« Mes modifications »…) ; compteur non nul en évidence. Barre du haut : modifications en attente. */
.bo-pbl-filtres .f i.plein{background:#f59e0b;color:#fff;border-radius:99px;padding:0 7px;min-width:20px;width:auto;text-align:center;font-style:normal;font-weight:700}
.bo-rappels-haut.modifs b{background:#f59e0b}
.bo-etape-popin .groupe{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px}
.bo-etape-popin .groupe .lib{font-size:.74rem;font-weight:700;color:#374151}
.bo-etape-popin label.case{flex-direction:row;align-items:center;gap:6px;font-weight:600}.bo-etape-popin label.case small{color:#6b7280;font-weight:400}
.bo-etape-popin input[type=email],.bo-etape-popin input[type=text]{width:100%;padding:7px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:.85rem}
.bo-etape-popin .aide{font-size:.72rem;color:#6b7280;margin:0}
.bo-modif-recherche{display:flex;align-items:center;gap:6px;flex:1 1 160px;min-width:0;max-width:420px;margin:0;padding:0 10px;height:32px;font-size:.8rem;font-weight:400;background:#fff;border:2px solid #f59e0b;border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.bo-modif-recherche:focus-within{box-shadow:0 0 0 4px rgba(245,158,11,.2)}
.bo-modif-recherche svg{width:16px;height:16px;color:#b45309;flex-shrink:0}
.bo-modif-recherche input{flex:1;min-width:0;border:0!important;outline:0;background:transparent!important;font-size:.82rem;padding:0!important;box-shadow:none!important}
.bo-modif-recherche button{color:#9ca3af;font-weight:700;padding:2px 6px;border-radius:6px}.bo-modif-recherche button:hover{background:#f3f4f6;color:#374151}
.dark .bo-modif-recherche{background:#1f2937}
.bo-modif-recherche input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}

.bo-pb > h3 .bo-pb-boutons{flex-shrink:0}.bo-pb > h3{min-width:0}
.bo-pb-saisie-tete{display:flex;align-items:center;gap:8px;margin-bottom:2px}
/* Ticket urgent (modifications) : liseré rouge, en tête des listes. */
.bo-pb-carte.urgent,.bo-pbl-ligne.urgent{border-left-color:#dc2626}
.bo-modif-urgent{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;font-weight:700;color:#b91c1c}.bo-modif-urgent small{font-weight:400;color:#6b7280}
/* Onglet Modifications : filtres par état avec compteurs. */
.bo-modif-filtres{display:flex;flex-wrap:nowrap;gap:3px;margin:0 0 10px;overflow-x:auto;scrollbar-width:none}
.bo-modif-filtres::-webkit-scrollbar{display:none}
.bo-modif-filtres button{flex-shrink:0;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;font-size:.68rem;font-weight:600;color:#374151;white-space:nowrap}
.bo-modif-filtres button i{font-style:normal;font-weight:700;color:#6b7280;background:#f3f4f6;border-radius:99px;padding:0 5px;min-width:16px;text-align:center}
.bo-modif-filtres button.vide{opacity:.5}.bo-modif-filtres button:hover{border-color:#f59e0b}
.bo-modif-filtres button.actif{background:#fff7ed;border-color:#f59e0b;color:#9a3412}.bo-modif-filtres button.actif i{background:#f59e0b;color:#fff}
/* Page Tickets : nombre de tickets du client sur la ligne (clic : ce client seul) ; filtre client actif. */
.bo-pbl-client{display:inline-flex;align-items:center;gap:3px;margin:2px 0;padding:1px 8px;border:1px solid #fcd34d;border-radius:999px;background:#fffbeb;color:#b45309;font-size:.7rem;font-weight:700}
.bo-pbl-client:hover{background:#f59e0b;border-color:#f59e0b;color:#fff}
.bo-pbl-client-filtre{display:flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;border:1px solid #f59e0b;border-radius:8px;background:#fff7ed;font-size:.78rem;color:#9a3412}
.bo-pbl-client-filtre b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-pbl-client-filtre button{color:#9a3412;font-weight:700}
/* Actions groupées sur les modifications d'un client (actions-client). */
.bo-modif-groupe{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;padding:8px 10px;border:1px dashed #f59e0b;border-radius:10px;background:#fffbeb}
.bo-modif-groupe .lib{font-size:.76rem;font-weight:700;color:#92400e}
.bo-etape-popin .groupe small{font-size:.78rem;color:#374151}

/* Onglet Référencement naturel (RnRelationManager) */
.bo-rn-onglet{display:inline-flex;position:relative}.bo-rn-onglet svg{width:100%;height:100%}
.bo-rn-onglet.vert{color:#16a34a}.bo-rn-onglet.orange{color:#f59e0b}.bo-rn-onglet.rouge{color:#dc2626}.bo-rn-onglet.gris{color:#6b7280}
.bo-rn-onglet sup{display:none;position:absolute;right:-12px;bottom:-6px;top:auto;font-size:8px;font-weight:700;line-height:1;padding:1px 2px;border-radius:3px;background:#374151;color:#fff;letter-spacing:.02em}
.bo-rn-onglet.npr sup{display:block}
.bo-rn h3 .badge{margin-left:6px}.bo-rn h3 .aide{display:block;font-size:.72rem;font-weight:400}
.bo-rn .liens{font-size:.75rem;display:inline-flex;gap:8px;color:#6b7280}.bo-rn .liens a{color:#d97706}
.bo-rn-redacteurs{display:flex;flex-wrap:wrap;gap:4px 14px}.bo-rn-redacteurs .inactif{color:#9ca3af}
.bo-rn-lecture{display:inline-flex;align-items:center;gap:6px}
.bo-rn-lh-saisie{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:10px}
.bo-rn-lh-saisie table{border-collapse:collapse;font-size:.78rem}.bo-rn-lh-saisie th{font-weight:600;padding:2px 6px;text-align:left}
.bo-rn .bo-rn-lh-saisie input{width:3.3rem;padding:3px 6px;border:1px solid #d1d5db;border-radius:6px}
.bo-rn-ajout{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 10px}
.bo-rn .bo-rn-ajout input{padding:5px 8px;border:1px solid #d1d5db;border-radius:6px;font-size:.82rem;width:8.5rem;flex:0 0 auto}.bo-rn .bo-rn-ajout input.mot{flex:1 1 100%;width:auto}
.bo-rn-table{overflow-x:auto;margin-bottom:12px}
.bo-rn-table table{width:100%;border-collapse:collapse;font-size:.78rem}
.bo-rn-table th,.bo-rn-table td{padding:4px 8px;border-bottom:1px solid #f3f4f6;text-align:left;white-space:nowrap}
.bo-rn-table thead th{background:#f9fafb;font-weight:600;color:#4b5563}
.bo-rn-table th.mobile{background:#ecfeff}.bo-rn-table th.ordi{background:#faf5ff}
.bo-rn-lh th,.bo-rn-lh td{padding:3px 4px;font-size:.74rem}.bo-rn-lh .source{font-size:.7rem}
.bo-rn-table td.note{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.bo-rn-table td.note.vert{color:#047857}.bo-rn-table td.note.orange{color:#b45309}.bo-rn-table td.note.rouge{color:#b91c1c}
.bo-rn-table tr.groupe{background:#fff7ed;cursor:pointer}.bo-rn-table tr.groupe td{border-bottom-color:#fed7aa}.bo-rn-table td.retrait{padding-left:26px;color:#6b7280}
.bo-rn-table tr.sous-seuil td{background:#fef2f2}
.bo-rn-table .tendance.monte{color:#16a34a}.bo-rn-table .tendance.baisse{color:#dc2626}.bo-rn-table .tendance.stable{color:#6b7280}
.bo-rn-table button.suppr,.bo-rn-table button.plus{border:0;background:none;color:#9ca3af;font-size:1rem;line-height:1;cursor:pointer;padding:0 4px}
.bo-rn-table button.suppr:hover{color:#dc2626}.bo-rn-table button.plus:hover{color:#d97706}
.dark .bo-rn-table thead th{background:rgba(255,255,255,.04)}.dark .bo-rn-table tr.groupe{background:rgba(251,146,60,.08)}.dark .bo-rn-table tr.sous-seuil td{background:rgba(220,38,38,.1)}
.bo-rn-lh td:nth-child(2){white-space:normal}
.bo-rn-table td.note.compte{color:#9ca3af}.bo-rn-table td.note{transition:color .6s}
.bo-rn-lh-saisie .manuel{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
.bo-rn-lh-saisie .manuel table{flex:0 0 auto;border-collapse:separate;border-spacing:0 6px;margin:-6px 0}
.bo-rn-lh-saisie .manuel td.bouton{padding-left:10px}.bo-rn-lh-saisie .manuel td.bouton .fi-btn{width:100%;justify-content:center}
.dark .bo-rn-lh-saisie .manuel{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.1)}.bo-rn-lh-saisie .manuel .actions{display:flex;flex-direction:column;gap:6px}
.bo-rn-lh-saisie .manuel .err{flex-basis:100%}
.bo-rn-table tr.groupe td:first-child{white-space:normal}
.bo-rn-tout{border:0;background:none;color:#d97706;font-size:.75rem;cursor:pointer;padding:4px 0}
.bo-rn-table tr.groupe .mot{display:inline-block;max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.bo-rn-sitemap{font-size:.8rem;color:#4b5563;padding:0 4px;white-space:nowrap}

/* Onglet Visuels (VisuelsRelationManager) */
.bo-vis h3 .lien-tous{margin-left:auto;font-size:.75rem;font-weight:400;color:#d97706}
.bo-vis-logo{display:flex;align-items:center;gap:16px}
.bo-vis-logo .cadre{display:flex;align-items:center;justify-content:center;width:160px;height:100px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:8px}
.bo-vis-logo .cadre img{max-width:100%;max-height:100%;object-fit:contain}.bo-vis-logo .cadre.vide{color:#9ca3af;font-size:.8rem}
.bo-vis-logo .liens{display:flex;flex-direction:column;gap:4px;font-size:.8rem}.bo-vis-logo .liens a,.bo-vis-qr a{color:#d97706}
.bo-vis-qr{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
/* Captures du site dev (onglet Visuels) : ordinateur large, mobile étroit, côte à côte. */
.bo-vis-captures{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:12px;align-items:start;max-width:900px}
.bo-vis-captures .case{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;min-width:0}
.bo-vis-captures .titre{font-weight:600;font-size:.85rem}
.bo-vis-captures .image img{display:block;width:100%;height:auto;border:1px solid #e5e7eb;border-radius:6px}
.bo-vis-captures .image.vide{display:flex;align-items:center;justify-content:center;min-height:120px;padding:8px;border:1px dashed #d1d5db;border-radius:6px;color:#6b7280;font-size:.8rem;text-align:center}
.bo-vis-captures .actions{display:flex;justify-content:space-between;gap:8px;font-size:.8rem}.bo-vis-captures .actions a{color:#d97706}
.bo-vis-captures-bouton{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
@media (max-width:640px){.bo-vis-captures{grid-template-columns:1fr}}
.bo-vis-qr .case{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;text-align:center;min-width:0}
.bo-vis-qr .titre{font-weight:600;font-size:.82rem}
.bo-vis-qr .apercu{width:110px;height:110px;display:flex;align-items:center;justify-content:center}.bo-vis-qr .apercu img{max-width:100%;max-height:100%}
.bo-vis-qr .apercu.vide{border:1px dashed #d1d5db;border-radius:8px;color:#9ca3af;font-size:.75rem}
.bo-vis-qr .dest{font-size:.7rem;color:#6b7280;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-vis-qr .actions{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;font-size:.74rem}
.bo-vis-qr .actions button{border:1px solid #fcd34d;background:#fffbeb;color:#b45309;border-radius:6px;padding:1px 8px;cursor:pointer;font-size:.72rem}
.bo-vis-qr .autres{font-size:.72rem}.bo-vis-qr .manque{font-size:.72rem}
.dark .bo-vis-qr .case,.dark .bo-vis-logo .cadre{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.1)}
.bo-vis-export{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-start}
.bo-vis-export .apercu{width:160px;height:auto;max-height:160px;object-fit:contain;border:1px solid #e5e7eb;border-radius:8px;background:repeating-conic-gradient(#f3f4f6 0 25%,#fff 0 50%) 50%/16px 16px}
.bo-vis-export .reglages{display:flex;flex-direction:column;gap:6px;font-size:.8rem;flex:1 1 220px;min-width:0}
.bo-vis-export .reglages label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bo-vis .bo-vis-export select{width:auto}.bo-vis-export input[type=range]{flex:1 1 120px}
.bo-vis-export input[type=color]{width:36px;height:26px;padding:0;border:1px solid #d1d5db;border-radius:6px;background:none}
.bo-vis-export .boutons{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:2px}.bo-vis-export .boutons a{color:#d97706}

/* Onglet BAT (BatRelationManager) */
.bo-bat h3 .aide{font-weight:400}
.bo-bat-alerte{font-size:.78rem;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:6px 10px}
.bo-bat-nouveau{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa;margin-bottom:8px}
.bo-bat-nouveau .faces{display:flex;flex-wrap:wrap;gap:8px 16px}.bo-bat-nouveau .faces label{display:flex;flex-direction:column;font-size:.78rem;font-weight:600;gap:2px}
.bo-bat-nouveau .actions,.bo-bat-actions .actions{display:flex;gap:6px}
.bo-bat-faces{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.bo-bat-faces .face{display:flex;flex-direction:column;gap:5px;padding:8px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;min-width:0}
.bo-bat-faces .titre{font-weight:600;font-size:.82rem;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.bo-bat-faces .titre small{color:#9ca3af}
.bo-bat-faces .vignette{display:flex;align-items:center;justify-content:center;height:150px;border:1px solid #f3f4f6;border-radius:8px;background:repeating-conic-gradient(#f3f4f6 0 25%,#fff 0 50%) 50%/16px 16px;overflow:hidden}
.bo-bat-faces .vignette img{max-width:100%;max-height:100%;object-fit:contain}.bo-bat-faces .vignette .pdf{font-weight:700;color:#b91c1c;font-size:1.2rem}
.bo-bat-faces .nom{font-size:.72rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-bat-faces .reponse{font-size:.74rem;padding:4px 6px;border-radius:6px}.bo-bat-faces .reponse.valide{background:#ecfdf5;color:#047857}.bo-bat-faces .reponse.refuse{background:#fef2f2;color:#b91c1c}
.bo-bat-faces .reponse em{display:block;color:#374151;font-style:italic}
.bo-bat-faces .lien{border:0;background:none;color:#d97706;font-size:.75rem;cursor:pointer;padding:0}
.bo-bat-faces .version input[type=file]{font-size:.72rem;max-width:100%}
.bo-bat-faces .histo{font-size:.72rem;color:#6b7280}.bo-bat-faces .histo summary{cursor:pointer}.bo-bat-faces .histo a{color:#d97706}
.bo-bat-faces .histo .valide{color:#047857}.bo-bat-faces .histo .refuse{color:#b91c1c}
.bo-bat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px}
.bo-bat-actions .envoi .form{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa;min-width:260px}
.bo-bat-actions .envoi label{display:flex;flex-direction:column;font-size:.76rem;font-weight:600;gap:2px}
.bo-bat-actions .suppr{margin-left:auto;border:0;background:none;color:#9ca3af;font-size:.74rem;cursor:pointer}.bo-bat-actions .suppr:hover{color:#dc2626}
.dark .bo-bat-faces .face,.dark .bo-bat-nouveau,.dark .bo-bat-actions .envoi .form{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.1)}
.bo-bat-carte h3{flex-wrap:wrap;row-gap:2px}.bo-bat-carte h3 .aide{flex-basis:100%;font-size:.72rem}
.bo-bat-nouveau .ligne{display:flex;flex-wrap:wrap;gap:8px}.bo-bat-nouveau .ligne label{display:flex;flex-direction:column;font-size:.78rem;font-weight:600;gap:2px}.bo-bat-nouveau .ligne label.large{flex:1 1 200px}
.bo-bat .bo-bat-nouveau select{width:auto;min-width:11rem}.bo-bat-carte h3 .type{color:#6b7280;font-weight:600}

/* Onglet Contenu (ContenuRelationManager) */
.bo-ct h3 .actions{margin-left:auto;display:inline-flex;gap:10px;font-size:.75rem;font-weight:400}.bo-ct h3 .actions button{border:0;background:none;color:#d97706;cursor:pointer}
.bo-ct h3 .actions .suppr{color:#9ca3af}.bo-ct h3 .actions .suppr:hover{color:#dc2626}
.bo-ct-alerte{font-size:.8rem;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:6px 10px}
.bo-ct-resume{display:flex;flex-direction:column;gap:6px;font-size:.78rem}.bo-ct-resume em{color:#6b7280;font-style:normal;margin-right:6px}
.bo-ct .puce{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;margin:2px 3px 2px 0;border-radius:999px;background:#f3f4f6;font-size:.74rem}
.bo-ct .puce.principale{background:#fef3c7;color:#92400e;font-weight:600}.bo-ct .puce button{border:0;background:none;cursor:pointer;color:#9ca3af}
.bo-ct-saisie h4{margin:14px 0 6px;font-size:.85rem;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bo-ct-saisie h4 .lien{border:0;background:none;color:#d97706;font-size:.74rem;cursor:pointer;margin-left:auto}
.bo-ct-saisie .ligne{display:flex;align-items:center;gap:12px;font-size:.82rem}.bo-ct-saisie .ligne .lib{font-weight:600}
.bo-ct-recherche{position:relative}
.bo-ct-recherche .resultats{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:2px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.08);max-height:280px;overflow:auto;display:flex;flex-direction:column}
.bo-ct-recherche .resultats button{text-align:left;border:0;background:none;padding:6px 10px;font-size:.8rem;cursor:pointer}.bo-ct-recherche .resultats button:hover{background:#fffbeb}
.bo-ct-recherche .resultats .creer{color:#d97706;font-weight:600;border-top:1px solid #f3f4f6}.bo-ct-recherche .resultats .annuler{color:#6b7280}
.bo-ct-recherche .resultats.proposition .titre{padding:6px 10px;font-size:.74rem;color:#b45309;font-weight:600}
.bo-ct-liste{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.bo-ct-liste .item{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:5px 8px;border:1px solid #f3f4f6;border-radius:8px;font-size:.8rem}
.bo-ct-liste .item .retirer{margin-left:auto;border:0;background:none;color:#9ca3af;font-size:1rem;cursor:pointer}.bo-ct-liste .item .retirer:hover{color:#dc2626}
.bo-ct-liste .item textarea{flex-basis:100%}
.bo-ct-ajout{display:flex;gap:6px;align-items:center}.bo-ct .bo-ct-ajout select{width:auto;flex:1 1 auto}
.bo-ct-puces{margin-top:6px}
.bo-ct-boutons{display:flex;gap:8px;margin-top:14px}
.dark .bo-ct-recherche .resultats{background:#1f2937;border-color:rgba(255,255,255,.1)}.dark .bo-ct .puce{background:rgba(255,255,255,.08)}
.bo-ctv-cats{display:flex;flex-direction:column;gap:6px;font-size:.8rem}.bo-ctv-cats .instr{color:#4b5563;font-style:italic;white-space:pre-line}
.bo-ctv-type{margin-bottom:8px}.bo-ctv-type summary{cursor:pointer;font-weight:600;font-size:.85rem;padding:4px 0}
.bo-ctv-pages{width:100%;border-collapse:collapse;font-size:.78rem}.bo-ctv-pages th,.bo-ctv-pages td{text-align:left;padding:4px 8px;border-bottom:1px solid #f3f4f6}
.bo-ctv-pages thead th{background:#f9fafb;color:#4b5563}.bo-ctv-pages td.url{color:#6b7280;font-family:ui-monospace,monospace;font-size:.72rem}

/* Paragraphes Premium (détail d'un contenu) : vert = titre et texte, rouge = un seul des deux, gris = vide */
.bo-ctp-sujet{font-size:.85rem;margin:12px 0 6px;display:flex;gap:10px;align-items:center}
.bo-ctp-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.bo-ctp-carte{display:flex;flex-direction:column;gap:4px;text-align:left;padding:8px;border-radius:8px;border:1px solid;cursor:pointer;font-size:.74rem;min-height:120px}
.bo-ctp-carte .tete{color:#6b7280;font-size:.7rem}.bo-ctp-carte .tete b{color:#111827;margin-right:4px}
.bo-ctp-carte .titre{font-weight:700;background:#fff;border-radius:4px;padding:3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-ctp-carte .texte{background:#fff;border-radius:4px;padding:3px 5px;color:#374151;flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.bo-ctp-carte.complet{background:#dcfce7;border-color:#86efac}.bo-ctp-carte.partiel{background:#fee2e2;border-color:#fca5a5}.bo-ctp-carte.vide{background:#f3f4f6;border-color:#e5e7eb}
.bo-ctp-carte.vide .titre,.bo-ctp-carte.vide .texte{color:#9ca3af;font-style:italic}.bo-ctp-carte:hover{filter:brightness(.97)}
.bo-ctb-liste{display:flex;flex-direction:column;gap:6px}
.bo-ctb{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:8px 10px;border-radius:8px;border:1px solid;border-left-width:5px;cursor:pointer;font-size:.76rem}
.bo-ctb .tete{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.bo-ctb .tete b{font-size:.82rem;color:#111827}
.bo-ctb .url{color:#6b7280;font-family:ui-monospace,monospace;font-size:.7rem;word-break:break-all}
.bo-ctb .ligne{display:grid;grid-template-columns:90px 1fr auto;gap:8px;align-items:baseline}
.bo-ctb .ligne em{font-style:normal;color:#6b7280}.bo-ctb .ligne i{font-style:normal;color:#9ca3af;font-size:.68rem;white-space:nowrap}
.bo-ctb .ligne .manque{color:#9ca3af;font-style:italic}.bo-ctb .ligne .texte{color:#374151;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.bo-ctb.complet{background:#f0fdf4;border-color:#86efac;border-left-color:#16a34a}.bo-ctb.partiel{background:#fef2f2;border-color:#fca5a5;border-left-color:#dc2626}
.bo-ctb.vide{background:#f9fafb;border-color:#e5e7eb;border-left-color:#9ca3af}.bo-ctb:hover{filter:brightness(.98)}
@media (max-width:640px){.bo-ctb .ligne{grid-template-columns:1fr}.bo-ctb .ligne i{display:none}}
.bo-ctb .ville{font-size:.68rem;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:1px 8px}
.bo-ctv3-outils{display:flex;gap:8px;margin:0 0 8px;flex-wrap:wrap}.bo-ctv3-outils input,.bo-ctv3-outils select{border:1px solid #d1d5db;border-radius:6px;padding:4px 8px;font-size:.8rem;min-width:0}.bo-ctv3-outils input{flex:1 1 220px}
.bo-ctv3-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px}
.bo-bandeau-titre{flex-wrap:wrap}
/* Noms courts des onglets : estompés, noirs au survol ; onglet sélectionné nettement marqué (fond, trait, nom en couleur). */
.fi-page:has(.bo-fiche-grille) .fi-tabs-item[data-court]::after{color:#9ca3af;transition:color .12s}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:hover::after{color:#111827}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item.fi-active{background:color-mix(in srgb,var(--primary-500) 16%,#fff);box-shadow:inset 0 -3px 0 var(--primary-500)}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item.fi-active::after{color:var(--primary-700);font-weight:800}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item[data-court]::after{color:#6b7280}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item:hover::after{color:#f9fafb}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item.fi-active{background:color-mix(in srgb,var(--primary-500) 22%,transparent)}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item.fi-active::after{color:var(--primary-300)}
.bo-rv-onglet{display:inline-flex}.bo-rv-onglet svg{width:100%;height:100%}.bo-rv-onglet.rouge{color:#dc2626}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(.bo-rv-onglet.rouge)::after,.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(.bo-mb-onglet.rouge)::after,.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(.bo-ls-onglet.rouge)::after{color:#dc2626}
.bo-rv-onglet.vert{color:#16a34a}.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(.bo-rv-onglet.vert)::after{color:#16a34a}

/* Onglets à état (17/11/2026, demande de l'équipe) : la couleur est le FOND de l'onglet, l'icône et le nom court restent
   neutres. États portés par l'icône : LS, MB, Ads, RN, Renouv., Accès, Leads (non lus), Modifs (ouvertes). */
.fi-page:has(.bo-fiche-grille) .fi-tabs-item :is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet){color:inherit!important;display:inline-flex}
.bo-acces-onglet svg,.bo-leads-onglet svg,.bo-modifs-onglet svg{width:100%;height:100%}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).vert){background:#dcfce7}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).orange){background:#fef3c7}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).rouge){background:#fee2e2}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).gris){background:#f3f4f6}
.fi-page:has(.bo-fiche-grille) .fi-tabs-item:not(.fi-active):has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet):is(.vert,.orange,.rouge,.gris))::after{color:#374151}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).vert){background:rgba(22,163,74,.25)}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).orange){background:rgba(245,158,11,.25)}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item:has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet).rouge){background:rgba(220,38,38,.25)}
.dark .fi-page:has(.bo-fiche-grille) .fi-tabs-item:not(.fi-active):has(:is(.bo-ls-onglet,.bo-mb-onglet,.bo-ads-onglet,.bo-rn-onglet,.bo-rv-onglet,.bo-acces-onglet,.bo-leads-onglet,.bo-modifs-onglet):is(.vert,.orange,.rouge,.gris))::after{color:#e5e7eb}

/* Menu « Plus » en fin de barre (fiche.js, OngletsFiche::PLUS) : ses onglets sont masqués dans la barre et listés dans le menu. */
.fi-page:has(.bo-fiche-grille) .fi-tabs-item.bo-onglet-plus-membre{display:none!important}
.bo-onglets-plus{position:relative;display:inline-flex}
.bo-onglets-plus-menu{position:fixed;z-index:60;min-width:190px;padding:4px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.12);display:flex;flex-direction:column}
.dark .bo-onglets-plus-menu{background:#111827;border-color:rgba(255,255,255,.1)}
.bo-onglets-plus-menu button{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:7px;font-size:.8rem;text-align:left;color:#374151;white-space:nowrap}
.dark .bo-onglets-plus-menu button{color:#e5e7eb}
.bo-onglets-plus-menu button:hover{background:#f3f4f6}.dark .bo-onglets-plus-menu button:hover{background:rgba(255,255,255,.06)}
.bo-onglets-plus-menu button.actif{font-weight:700;color:var(--primary-700)}
.bo-onglets-plus-menu svg{width:16px;height:16px;flex:none}
/* Logo récupéré sur le site du client (Ma marque, Visuels) : aperçu avant de le garder */
.bo-logo-site{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px;border:1px dashed #fcd34d;border-radius:10px;background:#fffbeb}
.bo-logo-site .choix{display:flex;flex-wrap:wrap;gap:8px}
.bo-logo-site figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;width:150px}
.bo-logo-site img{max-width:138px;max-height:80px;object-fit:contain;background:repeating-conic-gradient(#f3f4f6 0 25%,#fff 0 50%) 50%/16px 16px;border-radius:6px}
.bo-logo-site figcaption{font-size:.66rem;color:#6b7280;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:138px}
.bo-logo-site small{color:#6b7280;font-size:.72rem}
.bo-logo-site .boutons{display:flex;gap:6px}
/* Logos récupérés (page de contrôle) */
.bo-lr{display:flex;flex-direction:column;gap:12px}
.bo-lr .aide{margin:0;color:#6b7280;font-size:.8rem}
.bo-lr .grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.bo-lr article{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;font-size:.78rem}
.bo-lr .vignette{display:flex;align-items:center;justify-content:center;height:110px;border-radius:8px;background:repeating-conic-gradient(#f3f4f6 0 25%,#fff 0 50%) 50%/16px 16px}
.bo-lr .vignette img{max-width:100%;max-height:100px;object-fit:contain}
.bo-lr small{color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-lr .boutons{display:flex;gap:5px;flex-wrap:wrap}
.bo-lr .vide{color:#6b7280}
.bo-lr .plus{align-self:center;color:#b45309;font-weight:600}
.dark .bo-lr article{background:#111827;border-color:rgba(255,255,255,.1)}
.bo-lr .entete{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.bo-lr .pied{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
