/* nbt-agents — see tasks/nbt-crm/plans/rendez-vous/build/03-DEPT-people.md (PEOPLE-14)
   La puce d'agent et « non attribué », valeur pour valeur de tasks/nbt-crm/mockups/rendez-vous-crm-v4.html
   (puce v4:271-272, non attribué v4:140). HTML écrit par App\Filament\Support\PuceDAgent, seule puce du CRM.
   Fichier en ajout seul (04-INTEGRATION §3) : chaque tâche écrit son propre bloc commenté.
   Les commentaires n'écrivent aucun nom de classe précédé d'un point : AucuneClasseFantomeTest lit la feuille brute. */

/* ── PEOPLE-14 · la puce ── */
.nbt-ag {
    --c: #98A2B3;
    display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 9px 2px 3px;
    font-size: 12.5px; font-weight: 600; line-height: normal; white-space: nowrap;
    background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 75%, #000);
}
.nbt-ag i {
    width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal;
    font-size: 9.5px; display: grid; place-items: center; font-weight: 700; letter-spacing: .02em;
}
.nbt-ua { color: #6B6875; font-style: italic; }

/* Mode sombre : un fond mélangé à transparent et une encre mélangée à currentColor, comme
   App\Filament\Support\CouleurDeCollegue. La puce reste lisible sur une carte sombre comme dans
   l'îlot clair des écrans rendez-vous, sans deuxième jeu de couleurs. */
.dark .nbt-ag { background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 55%, currentColor); }
.dark .nbt-ua { color: color-mix(in srgb, currentColor 65%, transparent); }

/* ── PEOPLE-09 · les fenêtres anti-triche « Vous allez trop vite » / « Terminez d’abord vos leads en attente »
   (v4:290-296 fond, fenêtre, disque, compte à rebours ; v4:62-65 boutons ; v4:76 aide ; v4:248 lien ; v4:112 rangée).
   L'icône et le titre sont l'en-tête Filament, le corps la vue leads/prise-refusee, les boutons son pied. */
.fi-modal > .fi-modal-window-ctn:has(> .nbt-prise-modal) { grid-template-rows: 1fr auto 1fr; }
.nbt-prise-ov { background: rgba(20, 18, 26, .42); }
.nbt-prise-modal.fi-modal-window {
    max-width: 460px; border-radius: 16px; padding: 22px 22px 18px;
    box-shadow: 0 30px 70px rgba(20, 18, 26, .3); color: #14121A; font-size: 14px;
}
.nbt-prise-modal .fi-modal-header { display: block; padding: 0; }
.nbt-prise-modal .fi-modal-icon-bg {
    width: 48px; height: 48px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: #FFF7E6;
}
.nbt-prise-modal .fi-modal-icon-bg > .fi-icon { width: auto; height: auto; font-size: 24px; line-height: 1; color: inherit; }
.nbt-prise-modal .fi-modal-heading { margin: 12px 0 6px; font-size: 20px; font-weight: 700; line-height: normal; color: #14121A; }
.nbt-prise-modal .fi-modal-content { display: block; padding: 0; }
.nbt-prise p { margin: 6px 0; line-height: 1.5; }
.nbt-prise ul { margin: 8px 0; padding-left: 18px; line-height: 1.7; list-style: disc; }
.nbt-prise-cd { font-variant-numeric: tabular-nums; font-weight: 700; color: #C8102E; }
.nbt-prise-hint { color: #6B6875; font-size: 12.5px; }
.nbt-prise-lnk { color: #C8102E; font-weight: 600; }
.nbt-prise-lnk:hover { text-decoration: underline; }
.fi-modal > .fi-modal-window-ctn > .nbt-prise-modal .fi-modal-footer { margin-top: 10px; padding: 0; }
.nbt-prise-modal .fi-modal-footer-actions { gap: 8px; }
.nbt-prise-modal .fi-modal-footer .fi-btn {
    border: 1px solid #E7E5EA; background: #FFFFFF; color: #14121A; border-radius: 9px; padding: 8px 12px;
    font-size: 14px; font-weight: 500; line-height: normal; box-shadow: none; gap: 6px;
}
.nbt-prise-modal .fi-modal-footer .fi-btn.fi-color-primary { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }
.nbt-prise-modal .fi-modal-footer .fi-btn.fi-color-primary:hover { background: #A50D26; }
.dark .nbt-prise-modal.fi-modal-window, .dark .nbt-prise-modal .fi-modal-heading { color: #FFFFFF; }
.dark .nbt-prise-modal .fi-modal-icon-bg { background: color-mix(in srgb, #FFF7E6 18%, transparent); }
.dark .nbt-prise-hint { color: color-mix(in srgb, currentColor 65%, transparent); }
/* ── PEOPLE-15 · Paramètres : en-tête, onglets, règles anti-triche, couleurs (v4:57-60, 99-102, 297-307, 997-1038) ──
   Valeurs de la maquette. Le panneau remet à zéro ce que la maquette laisse au navigateur (fond blanc
   des cases, gras des titres) : on le rend ici. Couleur d'une pastille : la variable --c posée par la vue. */
.nbt-param { color: #14121A; font-size: 14px; line-height: normal; }
:where(.nbt-param) button, :where(.nbt-param) input { font: inherit; color: inherit; }
.nbt-param-crumbs { color: #6B6875; font-size: 13px; }
.nbt-param-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.nbt-param-h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.nbt-pmenu-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.nbt-pmenu { position: sticky; top: 16px; }
.nbt-pmenu-body { min-width: 0; }
.nbt-pmenu-pick { display: none; }
.nbt-pmenu-search { display: flex; align-items: center; gap: 8px; border: 1px solid #E7E5EA; background: #fff; border-radius: 10px; padding: 8px 10px; color: #6B6875; margin-bottom: 14px; }
.nbt-pmenu-search svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; }
.nbt-pmenu-search input { border: 0; outline: 0; background: none; padding: 0; width: 100%; font-size: 13.5px; box-shadow: none; }
.nbt-pmenu-grp { margin-bottom: 14px; }
.nbt-pmenu-grp h4 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6B6875; }
.nbt-pmenu-grp button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 8px 10px; border-radius: 9px; color: #14121A; font-size: 14px; line-height: 1.2; }
.nbt-pmenu-grp button:hover { background: rgb(0 0 0 / .04); }
.nbt-pmenu-grp button.nbt-on { background: #FDEEF1; color: #A50D26; font-weight: 600; }
.nbt-pmenu-ic { width: 17px; height: 17px; flex: none; color: #6B6875; fill: none; stroke: currentColor; }
.nbt-pmenu-grp button.nbt-on .nbt-pmenu-ic { color: #A50D26; }
.nbt-pmenu-new { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #C8102E; background: #fff; border: 1px solid #F5CBD3; border-radius: 999px; padding: 1px 7px; }
.nbt-pmenu-cnt { margin-left: auto; font-size: 12px; font-weight: 400; color: #6B6875; }
@media (max-width: 760px) {
    .nbt-pmenu-layout { display: block; }
    .nbt-pmenu { display: contents; }
    .nbt-pmenu-sticky { position: sticky; top: 4rem; z-index: 2; background: var(--nbt-mist, #FAF9FA); padding: 10px 0 12px; }
    .nbt-pmenu-list { margin-bottom: 16px; }
    .nbt-pmenu-pick { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #E7E5EA; background: #fff; border-radius: 10px; padding: 11px 12px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
    .nbt-pmenu-pick small { color: #6B6875; font-weight: 400; font-size: 12.5px; }
    .nbt-pmenu-chev { width: 16px; height: 16px; margin-left: auto; color: #6B6875; fill: none; stroke: currentColor; }
    .nbt-pmenu-list { display: none; }
    .nbt-pmenu.nbt-open .nbt-pmenu-list { display: block; }
    .nbt-pmenu-grp button { padding: 11px 10px; font-size: 15px; }
}
.nbt-param-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.nbt-param-card { background: #fff; border: 1px solid #E7E5EA; border-radius: 14px; margin-bottom: 16px; min-width: 0; }
.nbt-param-card h3 { margin: 0; padding: 14px 18px; border-bottom: 1px solid #E7E5EA; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nbt-param-body { padding: 14px 18px; }
.nbt-param-hint { color: #6B6875; font-size: 12.5px; }
.nbt-param-hint-bas { margin-top: 8px; }
.nbt-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #E7E5EA; }
.nbt-rule:first-child { border-top: 0; }
.nbt-rule input[type=number] { width: 74px; border: 1px solid #E7E5EA; border-radius: 8px; padding: 6px 8px; text-align: right; background: #fff; }
.nbt-rule select { border: 1px solid #E7E5EA; border-radius: 8px; padding: 6px 28px 6px 8px; background-color: #fff; min-height: 40px; }
.nbt-rule input[type=number]:disabled { background: rgba(239, 239, 239, .3); }
.nbt-rule-tgl { display: flex; gap: 8px; align-items: center; }
.nbt-rule.nbt-rule-couleur { grid-template-columns: 120px minmax(0, 1fr); }
.nbt-sws { display: flex; gap: 4px; justify-content: flex-end; }
.nbt-sw { width: 20px; height: 20px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 0 0 1px #E7E5EA; cursor: pointer; padding: 0; background: var(--c); }
.nbt-sw.nbt-on { box-shadow: 0 0 0 2px #14121A; }
.nbt-tgl { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D0D5DD; border: 0; cursor: pointer; transition: background .15s; }
.nbt-tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.nbt-tgl.nbt-on { background: #15803D; }
.nbt-tgl.nbt-on::after { transform: translateX(16px); }
.nbt-tgl:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .nbt-tgl, .nbt-tgl::after { transition: none; } }
/* Téléphone (Karim 5 oct) : une colonne, chaque règle sous son libellé, onglets qui défilent, pastilles au doigt. */
@media (max-width: 767px) {
    .nbt-param-h1 { font-size: 24px; }
    .nbt-param-grid { grid-template-columns: minmax(0, 1fr); }
    .nbt-param-card h3, .nbt-param-body { padding-left: 14px; padding-right: 14px; }
    .nbt-rule, .nbt-rule.nbt-rule-couleur { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .nbt-rule-tgl { flex-wrap: wrap; }
    .nbt-tgl { flex: none; }
    .nbt-sws { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .nbt-sw { width: 30px; height: 30px; border-radius: 9px; }
}

/* Mode sombre : même mise en page, teintes de Filament (comme Objectifs des agents). */
.dark .nbt-param { color: var(--gray-100); }
.dark .nbt-param-card, .dark .nbt-rule input[type=number], .dark .nbt-rule select { background: var(--gray-900); border-color: rgb(255 255 255 / .1); }
.dark .nbt-param-card h3, .dark .nbt-rule { border-color: rgb(255 255 255 / .1); }
.dark .nbt-param-crumbs, .dark .nbt-param-hint { color: var(--gray-400); }
.dark .nbt-pmenu-grp h4, .dark .nbt-pmenu-ic, .dark .nbt-pmenu-cnt, .dark .nbt-pmenu-pick small { color: var(--gray-400); }
.dark .nbt-pmenu-sticky { background: var(--gray-950, #030712); }
.dark .nbt-pmenu-search, .dark .nbt-pmenu-pick { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); color: var(--gray-100); }
.dark .nbt-pmenu-grp button { color: var(--gray-100); }
.dark .nbt-pmenu-grp button.nbt-on { background: rgb(200 16 46 / .18); color: #F4A3B1; }
.dark .nbt-rule input[type=number]:disabled { background: var(--gray-800); }
.dark .nbt-sw { border-color: var(--gray-900); }
.dark .nbt-sw.nbt-on { box-shadow: 0 0 0 2px #fff; }

/* ── PEOPLE-17 · la liste des leads : bande de couleur, badge « sans action », onglets en pilules, note de
   l'accueil, compte du menu (v4:273 bande ; v4:274 badge ; v4:125-127 et v4:275-276 pilules ; v4:164
   pastille ; v4:77 note ; v4:44-45 compte ; v4:76 aide). Classes posées par LeadResource, ListLeads et
   PuceDAgent ; le compte du menu est celui de tout le menu, comme dans la maquette. */
.nbt-c-0 { --c: #0E9384; }
.nbt-c-1 { --c: #7C3AED; }
.nbt-c-2 { --c: #D97706; }
.nbt-c-3 { --c: #C11574; }
.nbt-c-4 { --c: #4D7C0F; }
.nbt-c-5 { --c: #92400E; }
.nbt-c-6 { --c: #2563EB; }
.nbt-c-7 { --c: #16A34A; }
.nbt-c-8 { --c: #EAB308; }
.nbt-c-gris { --c: #98A2B3; }
.fi-ta-row.nbt-own > td:first-child { box-shadow: inset 4px 0 0 var(--c); }
.nbt-idle {
    display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; line-height: normal; white-space: nowrap;
    color: #B45309; background: #FFF7E6; border-radius: 999px; padding: 1px 8px;
}
.nbt-leads-bar { gap: 12px; flex-wrap: wrap; }
.nbt-liste-leads .fi-sc-tabs .fi-sc-tabs-tab.fi-active { margin-top: 0; }
.nbt-liste-leads .fi-tabs:not(.fi-contained) {
    display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 3px; overflow: visible;
    background: #FFFFFF; border: 1px solid #E7E5EA; border-radius: 999px; box-shadow: none;
}
.nbt-liste-leads .fi-tabs-item { gap: 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 400; line-height: normal; }
.nbt-liste-leads .fi-tabs-item:hover, .nbt-liste-leads .fi-tabs-item:focus-visible { background: none; }
.nbt-liste-leads .fi-tabs-item .fi-tabs-item-label { color: #6B6875; }
.nbt-liste-leads .fi-tabs-item.fi-active { background: #FDEEF1; }
.nbt-liste-leads .fi-tabs-item.fi-active .fi-tabs-item-label { color: #A50D26; font-weight: 600; }
.nbt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: 0; background: var(--c); }
.nbt-n { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 3px; }
.nbt-leads-hint { color: #6B6875; font-size: 12.5px; }
.nbt-note-box {
    margin: 0; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; line-height: normal;
    background: #EFF4FF; border: 1px solid #C7D7FE; color: #1E3A8A;
}
.fi-sidebar-item .fi-sidebar-item-badge-ctn .fi-badge {
    min-height: 0; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5;
    background: #FDEEF1; color: #A50D26; box-shadow: none;
}
.fi-sidebar-item.fi-active .fi-sidebar-item-badge-ctn .fi-badge { background: #FFFFFF; }
.dark .nbt-idle { background: color-mix(in srgb, #B45309 25%, transparent); color: #FBBF24; }
.dark .nbt-liste-leads .fi-tabs:not(.fi-contained) { background: transparent; border-color: rgb(255 255 255 / .1); }
.dark .nbt-liste-leads .fi-tabs-item .fi-tabs-item-label, .dark .nbt-leads-hint { color: #A1A1AA; }
.dark .nbt-liste-leads .fi-tabs-item.fi-active { background: rgb(200 16 46 / .2); }
.dark .nbt-liste-leads .fi-tabs-item.fi-active .fi-tabs-item-label { color: #FDA4AF; }
.dark .nbt-note-box { background: rgb(29 78 216 / .15); border-color: rgb(199 215 254 / .3); color: #C7D7FE; }
.dark .fi-sidebar-item .fi-sidebar-item-badge-ctn .fi-badge { background: rgb(200 16 46 / .2); color: #FDA4AF; }

/* ── PEOPLE-18 · la liste des leads : colonne « RDV » et « absent ×N » (v4:141 rendez-vous ; v4:138 sous-ligne ;
   v4:106 tiret ; v4:94-95 pastille haute). */
.nbt-rdvc { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; white-space: nowrap; }
.nbt-s { display: block; color: #6B6875; font-size: 12px; margin-top: 2px; }
.nbt-dash { color: #B0ADB8; }
.nbt-absent {
    display: inline-block; border-radius: 999px; padding: 2px 9px; margin: 0 4px 4px 0; font-size: 12px; font-weight: 600;
    white-space: nowrap; line-height: normal; background: #FEE4E2; color: #B42318;
}
.dark .nbt-s { color: #A1A1AA; }
.dark .nbt-absent { background: rgb(180 35 24 / .25); color: #FDA29B; }
/* ── PEOPLE-22 · Rôles & autorisations : les deux cartes (v4:1042-1057 ; carte v4:100-102, aide v4:76,
   ligne et bascule v4:305-310, badge v4:329 ; style="max-width:760px" et le font-weight:400 de l'aide du titre
   deviennent des règles). Les cartes vivent dans la racine « pa » de la page, qui pose 15px et 1.5 : on rend
   ici la taille et l'interligne de la maquette. L'état allumé est lu sur aria-pressed, comme la maquette le pose.
   Mode sombre : les valeurs sombres de la page elle-même (roles-et-autorisations.blade.php), la maquette n'en a pas. */
.nbt-perm-cartes { color: #14121A; font-size: 14px; line-height: normal; }
.nbt-perm-carte { background: #fff; border: 1px solid #E7E5EA; border-radius: 14px; margin-bottom: 16px; min-width: 0; max-width: 760px; }
.nbt-perm-carte h3 {
    margin: 0; padding: 14px 18px; border-bottom: 1px solid #E7E5EA; font-size: 15px; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.nbt-perm-corps { padding: 14px 18px; }
.nbt-perm-hint { color: #6B6875; font-size: 12.5px; }
.nbt-perm-fin { font-weight: 400; }
.nbt-perm-new {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: #C8102E; color: #fff; border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}
.nbt-perm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #E7E5EA; }
.nbt-perm:first-child { border-top: 0; }
.nbt-perm .nbt-tgl { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D0D5DD; border: 0; cursor: pointer; transition: background .15s; }
.nbt-perm .nbt-tgl::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; transition: transform .15s;
}
.nbt-perm .nbt-tgl[aria-pressed="true"] { background: #15803D; }
.nbt-perm .nbt-tgl[aria-pressed="true"]::after { transform: translateX(16px); }
.nbt-perm .nbt-tgl:disabled { opacity: .5; cursor: not-allowed; }
.dark .nbt-perm-cartes { color: #F2EFF2; }
.dark .nbt-perm-carte { background: #17151A; border-color: #2B2833; }
.dark .nbt-perm-carte h3, .dark .nbt-perm { border-color: #2B2833; }
.dark .nbt-perm-hint { color: #8B838F; }
/* ── PEOPLE-23 · la carte « Leads par agent » du tableau de bord ──
   Valeur pour valeur de la maquette v4 (bars, bar2, st2, bad : v4:311-319 ; hint v4:76 ; body v4:102).
   La carte et son titre sont ceux du tableau de bord (nbt-tableau-de-bord.css) : mêmes valeurs que la carte
   de la maquette, mode sombre compris. Ici, seulement l'écart de 16px sous les files de travail. */
.nbt-lpa { margin-top: 16px; }
.nbt-lpa-hint { color: #6B6875; font-size: 12.5px; font-weight: 400; }
.nbt-lpa-body { padding: 14px 18px; }
.nbt-lpa-bars { padding: 16px 18px; display: grid; gap: 10px; }
.nbt-lpa-bar2 { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.nbt-lpa-bar2 b { text-align: right; font-weight: 700; }
.nbt-lpa-tr { height: 12px; border-radius: 999px; background: #F2F4F7; overflow: hidden; display: flex; }
.nbt-lpa-tr span { height: 100%; background: var(--c); }
.nbt-lpa-tr .nbt-lpa-idle { background: repeating-linear-gradient(135deg, var(--c) 0 4px, #fff 4px 7px); }
.nbt-lpa-tw { overflow-x: auto; }
table.nbt-lpa-st2 { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nbt-lpa-st2 th { text-align: right; font-weight: 500; color: #6B6875; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid #E7E5EA; white-space: nowrap; }
.nbt-lpa-st2 td { text-align: right; padding: 11px 12px; border-bottom: 1px solid #E7E5EA; font-variant-numeric: tabular-nums; }
.nbt-lpa-st2 th:first-child, .nbt-lpa-st2 td:first-child { text-align: left; padding-left: 18px; }
.nbt-lpa-st2 .nbt-lpa-bad { color: #B42318; font-weight: 700; }
/* Les règles de table de nbt-tdb-card (droite 18px, dernière ligne sans filet, alignement en haut) ne sont pas celles de .st2 v4. */
.nbt-lpa .nbt-lpa-st2 td { vertical-align: middle; }
.nbt-lpa .nbt-lpa-st2 th:last-child, .nbt-lpa .nbt-lpa-st2 td:last-child { padding-right: 12px; }
.nbt-lpa .nbt-lpa-st2 tr:last-child td { border-bottom: 1px solid #E7E5EA; }

/* Mode sombre : le gris et les filets du panneau (nbt-brand.css), la piste et le hachuré sur le fond de la carte. */
.dark .nbt-lpa-hint, .dark .nbt-lpa-st2 th { color: #ACA5AF; }
.dark .nbt-lpa-st2 th, .dark .nbt-lpa-st2 td, .dark .nbt-lpa .nbt-lpa-st2 tr:last-child td { border-color: rgb(255 255 255 / .1); }
.dark .nbt-lpa-tr { background: rgb(255 255 255 / .1); }
.dark .nbt-lpa-tr .nbt-lpa-idle { background: repeating-linear-gradient(135deg, var(--c) 0 4px, var(--gray-900) 4px 7px); }

/* ── PEOPLE-20 · les étiquettes dans la bande : « + Étiquette » et son menu à cases (v4:277-283 bouton et menu ;
   v4:69-75 menu ; v4:98 pastille Employeur ; v4:248 lien ; v4:106 tiret). Le menu s'ouvre à gauche (v4:691).
   Une archivée déjà posée garde son pointillé (même valeur que la carte Suivi d'avant). */
.nbt-tag-dd { position: relative; display: inline-block; }
.nbt-addt {
    border: 1px dashed #cfccd4; background: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px;
    font-weight: 600; line-height: normal; color: #6B6875; cursor: pointer;
}
.nbt-addt:hover { border-color: #C8102E; color: #C8102E; }
.nbt-tagm {
    position: absolute; left: 0; right: auto; top: calc(100% + 6px); z-index: 10; min-width: 230px; padding: 6px;
    background: #fff; border: 1px solid #E7E5EA; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    font-size: 14px; font-weight: 400; color: #14121A; white-space: nowrap;
}
.nbt-tagm label { display: flex; gap: 9px; align-items: center; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.nbt-tagm label:hover { background: #F7F7F8; }
.nbt-tagm input { accent-color: #C8102E; }
.nbt-tagm-foot { border-top: 1px solid #E7E5EA; margin-top: 4px; padding: 8px 9px 4px; font-size: 12px; color: #6B6875; white-space: normal; }
.nbt-lnk { color: #C8102E; font-weight: 600; }
.nbt-lnk:hover { text-decoration: underline; }
.nbt-pastille-noire { background: #14121A; color: #fff; }
.nbt-pastille.nbt-pastille-arch { background: #FFFFFF; color: #6B6875; border: 1px dashed #C9C6CF; }
.dark .nbt-addt { background: transparent; border-color: rgb(255 255 255 / .25); color: #A1A1AA; }
.dark .nbt-tagm { background: var(--gray-900); border-color: rgb(255 255 255 / .1); color: var(--gray-100); }
.dark .nbt-tagm label:hover { background: var(--gray-800); }
.dark .nbt-tagm-foot { border-color: rgb(255 255 255 / .1); color: #A1A1AA; }
.dark .nbt-pastille-noire { background: #F2EFF2; color: #14121A; }
.dark .nbt-pastille.nbt-pastille-arch { background: transparent; color: #A1A1AA; }

/* ── PEOPLE-21 · la fiche et ses rendez-vous : « ⚠️ Client absent » (v4:258 ; marge v4:573, ramenée à l'écart
   du panneau : 16px sous la barre, 12px au-dessus de la bande), le clignotement de « Prochain rappel » après une
   réservation (v4:90-91, U4), la ligne « Rendez-vous » de la carte Suivi (v4:741 : pastilles de nbt-rendez-vous.css,
   dont les couleurs sont posées ici hors de l'îlot rendez-vous ; lien v4:248 à 12.5px). */
.nbt-warnbox {
    background: #FFF7E6; border: 1px solid #FCD9A5; color: #78350f; border-radius: 10px; padding: 10px 12px;
    margin: -8px 0 -4px; font-size: 13px; line-height: normal;
}
.nbt-bref-case.nbt-flash { animation: nbt-flash 1.6s ease-out; }
@keyframes nbt-flash { 0% { background: #FDEEF1; } 100% { background: #fff; } }
.nbt-suivi-rdv {
    --nbt-rdv-ink: #14121A; --nbt-rdv-amber: #B45309; --nbt-rdv-amber-bg: #FFF7E6; --nbt-rdv-green: #15803D;
    --nbt-rdv-green-bg: #ECFDF3; --nbt-rdv-blue: #1D4ED8; --nbt-rdv-blue-bg: #EFF4FF;
}
.nbt-suivi-ouvrir { font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .nbt-bref-case.nbt-flash { animation: none; } }
.dark .nbt-warnbox { background: color-mix(in srgb, #B45309 18%, transparent); border-color: rgb(252 217 165 / .35); color: #FCD9A5; }
@keyframes nbt-flash-sombre { 0% { background: rgb(200 16 46 / .25); } 100% { background: transparent; } }
.dark .nbt-bref-case.nbt-flash { animation-name: nbt-flash-sombre; }

/* ── W7 · « Mon tableau de bord » de la chargée d'accueil (tasks/nbt-crm/mockups/tableau-de-bord-accueil-v1.html :
   crumbs/head/h1/sub v4:50-53, kpis/kpi/two/goal/st2.l du 2e <style>, card v4:93-95, st2 v4:304-307, hint v4:69,
   .s v4:131). Valeur pour valeur ; seul le mode sombre est ajouté, comme les autres cartes. */
.nbt-mtb { color: #14121A; font-size: 14px; line-height: normal; }
.nbt-mtb-crumbs { color: #6B6875; font-size: 13px; }
.nbt-mtb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.nbt-mtb-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.nbt-mtb-sub { color: #6B6875; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nbt-mtb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.nbt-mtb-kpi { background: #fff; border: 1px solid #E7E5EA; border-radius: 14px; padding: 14px 16px; }
.nbt-mtb-kpi small { display: block; color: #6B6875; font-size: 12.5px; }
.nbt-mtb-kpi b { display: block; font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.nbt-mtb-s { display: block; color: #6B6875; font-size: 12px; margin-top: 2px; }
.nbt-mtb-kpi.nbt-mtb-bad b { color: #B42318; }
.nbt-mtb-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.nbt-mtb-card { background: #fff; border: 1px solid #E7E5EA; border-radius: 14px; margin-bottom: 16px; min-width: 0; }
.nbt-mtb-card h3 { margin: 0; padding: 14px 18px; border-bottom: 1px solid #E7E5EA; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nbt-mtb-hint { color: #6B6875; font-size: 12.5px; }
.nbt-mtb-card h3 .nbt-mtb-hint { font-weight: 400; }
.nbt-mtb-body { padding: 14px 18px; }
.nbt-mtb-big { font-size: 22px; font-weight: 700; }
/* « Fenêtres qui ferment » (relance 24 h, 27 oct) : une fenêtre par ligne, séparée comme les lignes du tableau. */
.nbt-mtb-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid #E7E5EA; flex-wrap: wrap; }
.nbt-mtb-row:last-child { border-bottom: none; }
.nbt-mtb-row a { margin-left: auto; white-space: nowrap; }
/* Sur téléphone, le tableau défile dans sa carte au lieu de déborder (Karim, 9 oct). */
.nbt-mtb-defile { overflow-x: auto; }
table.nbt-mtb-st2 { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nbt-mtb-st2 th { text-align: left; font-weight: 500; color: #6B6875; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid #E7E5EA; white-space: nowrap; }
.nbt-mtb-st2 td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #E7E5EA; font-variant-numeric: tabular-nums; }
.nbt-mtb-st2 th:first-child, .nbt-mtb-st2 td:first-child { padding-left: 18px; }
.nbt-mtb-st2 td:first-child { white-space: nowrap; }
.nbt-mtb-goal { padding: 16px 18px; }
.nbt-mtb-goal b { font-weight: 700; }
.nbt-mtb-tr { height: 12px; border-radius: 999px; background: #F2F4F7; overflow: hidden; margin: 8px 0 4px; }
.nbt-mtb-tr span { display: block; height: 100%; background: #0E9384; }
@media (max-width: 1100px) {
    .nbt-mtb-two { grid-template-columns: 1fr; }
    .nbt-mtb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dark .nbt-mtb { color: #FFFFFF; }
.dark .nbt-mtb-kpi, .dark .nbt-mtb-card { background: var(--gray-900); border-color: rgb(255 255 255 / .1); }
.dark .nbt-mtb-card h3, .dark .nbt-mtb-st2 th, .dark .nbt-mtb-st2 td, .dark .nbt-mtb-row { border-color: rgb(255 255 255 / .1); }
.dark .nbt-mtb-crumbs, .dark .nbt-mtb-sub, .dark .nbt-mtb-kpi small, .dark .nbt-mtb-s, .dark .nbt-mtb-hint, .dark .nbt-mtb-st2 th { color: #ACA5AF; }
.dark .nbt-mtb-tr { background: rgb(255 255 255 / .1); }

/* ── Les puces de période, sur la carte « Leads par agent » et sur « Mon tableau de bord » (Karim, 8 oct,
   tasks/nbt-crm/plans/indicateurs-periode/maquette.html : .nbt-per, .nbt-lpa-per, .nbt-mtb-per). Valeur pour valeur ;
   seul le mode sombre est ajouté, avec les valeurs sombres des tuiles voisines (.nbt-ls). */
.nbt-per { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nbt-lpa-per { padding: 10px 18px; border-bottom: 1px solid #E7E5EA; }
.nbt-mtb-per { margin: 0 0 12px; }
.nbt-per button { border: 1px solid #E7E5EA; background: #fff; border-radius: 999px; padding: 5px 12px; font: 500 13px/1.25 Outfit, system-ui, sans-serif; color: #14121A; cursor: pointer; white-space: nowrap; }
.nbt-per button:hover { border-color: #cfccd4; }
.nbt-per button[aria-pressed="true"] { background: #FDEEF1; border-color: #F4C5CE; color: #A50D26; font-weight: 600; }
.nbt-per button:focus-visible { outline: 2px solid #C8102E; outline-offset: 2px; }
.nbt-per i { display: inline-block; width: 1px; height: 18px; background: #E7E5EA; margin: 0 4px; }
.dark .nbt-lpa-per { border-color: rgb(255 255 255 / .1); }
.dark .nbt-per button { background: var(--gray-900); border-color: rgb(255 255 255 / .1); color: #FFFFFF; }
.dark .nbt-per button[aria-pressed="true"] { background: rgb(200 16 46 / .2); border-color: #FDA4AF; color: #FDA4AF; }
.dark .nbt-per i { background: rgb(255 255 255 / .1); }

/* ── W7 · les chiffres en haut de la liste des Leads (même maquette, vue « Leads » : .lstats/.ls du 2e <style>).
   La tuile allumée se lit sur aria-pressed. L'écart sous la bande est celui du panneau, comme la note. */
.nbt-lstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 10px; color: #14121A; line-height: normal; }
.nbt-ls {
    height: 100%; margin: 0; gap: 2px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
    background: #fff; border: 1px solid #E7E5EA; border-radius: 12px; padding: 10px 14px; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.nbt-ls small { display: block; color: #6B6875; font-size: 12px; }
.nbt-ls b { display: block; margin: 0; line-height: 1.2; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nbt-ls span { display: block; color: #6B6875; font-size: 11.5px; }
.nbt-ls[aria-pressed="true"] { border-color: #C8102E; box-shadow: inset 0 0 0 1px #C8102E; }
.nbt-ls-warn b { color: #B54708; }
.nbt-ls-ok b { color: #067647; }
.nbt-ls-lost b { color: #B42318; }
.nbt-ls.nbt-ls-side { cursor: default; background: #FBFAFB; }
.nbt-ls-side span { font-size: 12.5px; color: #14121A; }
.nbt-ls-side b { display: inline; font-size: 13px; }
@media (max-width: 1100px) { .nbt-lstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dark .nbt-lstats { color: #FFFFFF; }
.dark .nbt-ls { background: var(--gray-900); border-color: rgb(255 255 255 / .1); }
.dark .nbt-ls.nbt-ls-side { background: var(--gray-800); }
.dark .nbt-ls small, .dark .nbt-ls span { color: #ACA5AF; }
.dark .nbt-ls-side span { color: #FFFFFF; }
.dark .nbt-ls[aria-pressed="true"] { border-color: #FDA4AF; box-shadow: inset 0 0 0 1px #FDA4AF; }

/* ── Liste des leads, option A + T1 (Karim, 19 oct ; tasks/nbt-crm/plans/leads-filtres) : le switch de source,
   les puces « Métier » (source-et-metiers.blade.php) et la ligne sous le nom (LeProspectDansLaListe). */
.nbt-src-bar { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nbt-seg { display: inline-flex; align-self: flex-start; max-width: 100%; border: 1px solid #E7E5EA; border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.nbt-seg button {
    border: 0; border-right: 1px solid #E7E5EA; background: none; color: #14121A; padding: 7px 14px; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 600; line-height: normal; white-space: nowrap;
}
.nbt-seg button:last-child { border-right: 0; }
.nbt-seg button b, .nbt-chip b { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nbt-seg button b { opacity: .75; margin-left: 2px; }
.nbt-seg button[aria-pressed="true"] { background: #14121A; color: #FFFFFF; }
.nbt-seg .nbt-seg-whatsapp[aria-pressed="true"] { background: #1F8F57; }
.nbt-seg .nbt-seg-site[aria-pressed="true"] { background: #2D5BA8; }
.nbt-seg button:focus-visible, .nbt-chip:focus-visible { outline: 2px solid #C8102E; outline-offset: -2px; }
.nbt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nbt-chip {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid #E7E5EA; background: #FFFFFF; color: #14121A;
    border-radius: 999px; padding: 5px 11px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; line-height: normal;
}
.nbt-chip b { background: #F0EEF2; color: #6B6875; border-radius: 999px; padding: 1px 6px; }
.nbt-chip[aria-pressed="true"] { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }
.nbt-chip[aria-pressed="true"] b { background: rgb(255 255 255 / .3); color: #FFFFFF; }
.nbt-chip-vide { opacity: .45; }
/* Familles de métiers (Karim, 26 oct, maquette « Variante A ») : la seconde rangée, plus petite —
   « Toute la famille » puis un intitulé par puce, text-align:left et retour à la ligne permis. */
.nbt-subchips { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; border-top: 1px solid #E7E5EA; padding: 12px 0 4px; }
.nbt-subchips .nbt-chip { font-size: 12px; padding: 4px 10px; white-space: normal; text-align: left; }
.nbt-src { font-style: normal; }
.nbt-sans-nom { color: #6B6875; font-weight: 400; font-style: italic; }
.nbt-mark { display: inline-block; border-radius: 999px; padding: 0 6px; margin-left: 4px; font-size: 10.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.nbt-mark-ver { background: #FFF4DE; color: #9A6200; }
.nbt-mark-tag { background: #F0EEF2; color: #5F5B66; }
@media (max-width: 480px) {
    .nbt-seg { align-self: stretch; }
    .nbt-seg button { flex: 1 1 auto; padding: 7px 8px; font-size: 12.5px; }
    .nbt-chip { padding: 4px 9px; font-size: 12.5px; }
}
.dark .nbt-seg, .dark .nbt-chip { background: var(--gray-900); border-color: rgb(255 255 255 / .1); color: #F2EFF4; }
.dark .nbt-seg button { color: #F2EFF4; border-color: rgb(255 255 255 / .1); }
.dark .nbt-seg button[aria-pressed="true"] { background: #F2EFF4; color: #14121A; }
.dark .nbt-seg .nbt-seg-whatsapp[aria-pressed="true"] { background: #4CC386; color: #14121A; }
.dark .nbt-seg .nbt-seg-site[aria-pressed="true"] { background: #82A8EA; color: #14121A; }
.dark .nbt-chip b { background: rgb(255 255 255 / .1); color: #B4AEBB; }
.dark .nbt-chip[aria-pressed="true"] { background: #E0606A; border-color: #E0606A; color: #14121A; }
.dark .nbt-chip[aria-pressed="true"] b { background: rgb(0 0 0 / .2); color: #14121A; }
.dark .nbt-sans-nom { color: #A1A1AA; }
.dark .nbt-mark-ver { background: #3A2E16; color: #E2B05A; }
.dark .nbt-mark-tag { background: #2A2630; color: #B4AEBB; }
