/* nbt-tableau-de-bord — D-WA127-M, le style investisseur : tasks/nbt-crm/mockups/dashboard-v3-style-investisseur-2026-11-04.html
   (.head/.sel/.band/.grid/.card/.ct/.big/.cap/.kpis/.empty/.d/.obj/.hb/.chips, préfixées nbt-tdb-). Les jetons ds- sont
   recopiés ici (nbt-investisseur.css reste intouché) et ne valent que sur cette page. Seule la barre de maquette n'est pas reprise. */

.nbt-tdb-page {
    --ds-page: #E4E3E0; --ds-shell: #F3F2EF; --ds-card: #FFFFFF;
    --ds-ink: #17151C; --ds-ink2: #3A3740; --ds-mut: #85818C; --ds-mut2: #6E6A75; --ds-line: #ECEAE6; --ds-grid: #E2DFDA;
    --ds-brand: #9B1024; --ds-brand-soft: rgba(155, 16, 36, .14); --ds-brand-softer: rgba(155, 16, 36, .07);
    --ds-bar: #E9E7E3; --ds-up: #2F8A46; --ds-up-bg: #E3F4E5; --ds-down: #B4232F; --ds-down-bg: #FBE5E6;
    --ds-flat: #6E6A75; --ds-flat-bg: #F0EEEB; --ds-r-card: 20px; --ds-r-pill: 999px;
    --ds-sans: Inter, "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ds-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
    --tdb-well: #FAF9F7;
}
/* La coque de la maquette (#F3F2EF) derrière les cartes blanches, en thème classique ; le thème « nouveau » la pose déjà. */
html:not([data-theme="nouveau"]):not(.dark) .fi-body:has(.nbt-tdb-page) { background: #F3F2EF; }

.nbt-tdb { color: var(--ds-ink); font-family: var(--ds-sans); font-size: 14px; }
:where(.nbt-tdb) a { color: inherit; text-decoration: none; }
/* :where() — la remise à zéro ne doit pas l'emporter sur .nbt-tdb-b / .nbt-tdb-more, comme dans la maquette. */
:where(.nbt-tdb) :where(button, select, input) { font: inherit; color: inherit; }
.nbt-tdb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- en-tête (.head / .sel / .dates) ---- */
.nbt-tdb-head { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: space-between; align-items: center; margin: 0 0 4px; }
.nbt-tdb-head h1 { margin: 0; font-size: 38px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.nbt-tdb-sub0 { margin: 0 0 22px; color: var(--ds-mut2); font-size: 13.5px; }
.nbt-tdb-per { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nbt-tdb-sel { position: relative; display: inline-flex; align-items: center; background: var(--ds-card); border-radius: var(--ds-r-pill); box-shadow: 0 1px 2px rgba(23, 21, 28, .04); }
.nbt-tdb-sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 10px 34px 10px 42px; font-weight: 500; cursor: pointer; border-radius: var(--ds-r-pill); color: var(--ds-ink); line-height: normal; box-shadow: none; }
.nbt-tdb-sel select:focus-visible { outline: 2px solid var(--ds-brand); outline-offset: 2px; }
.nbt-tdb-sel::after { content: ""; position: absolute; right: 14px; width: 7px; height: 7px; border-right: 1.7px solid var(--ds-mut); border-bottom: 1.7px solid var(--ds-mut); transform: rotate(45deg) translateY(-2px); pointer-events: none; }
.nbt-tdb-sel svg { position: absolute; left: 15px; width: 18px; height: 18px; fill: none; stroke: var(--ds-mut2); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.nbt-tdb-dates { display: inline-flex; gap: 8px; align-items: center; color: var(--ds-mut2); font-size: 13px; }
.nbt-tdb-dates input { border: 0; border-radius: 999px; padding: 9px 12px; background: var(--ds-card); }

/* ---- titres de bande (.band) ---- */
.nbt-tdb-band { display: flex; align-items: baseline; gap: 10px; margin: 6px 2px 12px; }
.nbt-tdb-band h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.nbt-tdb-band small { color: var(--ds-mut); font-size: 13px; }

/* ---- grilles de 12 (.grid / .sN) et cartes (.card) ---- */
.nbt-tdb-pg, .nbt-tdb-qg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.nbt-tdb-s5 { grid-column: span 5; } .nbt-tdb-s6 { grid-column: span 6; } .nbt-tdb-s7 { grid-column: span 7; } .nbt-tdb-s12 { grid-column: span 12; }
.nbt-tdb-c, .nbt-tdb-card, .nbt-tdb .nbt-au-card, a.nbt-tdb-cell, div.nbt-tdb-cell {
    background: var(--ds-card); border: 0; border-radius: var(--ds-r-card); padding: 22px 24px; min-width: 0; position: relative;
    box-shadow: 0 1px 2px rgba(23, 21, 28, .03); margin: 0; overflow: visible;
}
.nbt-tdb-q { min-width: 0; }
.nbt-tdb-qg > .nbt-tdb-q > *, .nbt-tdb-qg > .nbt-tdb-q > * > .nbt-tdb-card, .nbt-tdb-qg > .nbt-tdb-q > * > .nbt-au-card { height: 100%; }
.nbt-tdb-ct, .nbt-tdb-k, .nbt-tdb-card > h3, .nbt-tdb .nbt-au-card > h3, .nbt-tdb .nbt-sup h3 { margin: 0; font-size: 16.5px; font-weight: 500; color: var(--ds-mut); letter-spacing: -.01em; }

/* Une case : titre (.ct), chiffre (.big, l'unité en .u), légende (.cap) ; « attention » = .cap.warn. */
.nbt-tdb-v { font-family: var(--ds-mono); font-weight: 500; font-size: 31px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; margin-top: 18px; }
.nbt-tdb-v small { font-family: var(--ds-sans); font-size: 14px; font-weight: 500; color: var(--ds-mut); letter-spacing: 0; margin-left: 4px; }
.nbt-tdb-pg .nbt-tdb-v { font-size: 36px; }
.nbt-tdb-hint { margin-top: 10px; font-size: 13.5px; color: var(--ds-ink2); }
.nbt-tdb-hint.nbt-tdb-att { color: #B93815; }
.nbt-tdb-v.nbt-tdb-fav { color: inherit; }
.nbt-tdb-pg .nbt-tdb-cell { display: block; padding: 0; background: none; box-shadow: none; border-radius: 0; }

/* « À l'instant » (.kpis) : des cartes-liens ; l'agent en a deux, en grand. */
.nbt-tdb-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.nbt-tdb-perso .nbt-tdb-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Un vrai montant (« 7 843,20 DH ») est plus long que ceux de la maquette : le chiffre rétrécit avec sa case au lieu d'en sortir. */
.nbt-tdb-hl > .nbt-tdb-cell { container-type: inline-size; }
.nbt-tdb-hl .nbt-tdb-v { font-size: min(31px, 16cqi); }
a.nbt-tdb-cell { display: block; transition: box-shadow .2s, transform .2s; }
a.nbt-tdb-cell:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23, 21, 28, .07); }
@media (prefers-reduced-motion: reduce) { a.nbt-tdb-cell, a.nbt-tdb-cell:hover { transition: none; transform: none; } }

/* bloc période : le chiffre à gauche, la légende de la courbe à droite (.lh), la courbe dessous (.chart) */
.nbt-tdb-lh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.nbt-tdb-cap { text-align: right; font-size: 13.5px; color: var(--ds-ink2); display: flex; flex-direction: column; }
.nbt-tdb-lg { font-size: 12.5px; color: var(--ds-mut2); margin-top: 6px; }
.nbt-tdb-ch { margin-top: 16px; }
/* Zone de tracé : les graduations débordent à gauche, comme la maquette (L = 34). */
svg.nbt-tdb-chart { display: block; width: calc(100% - 44px); margin-left: 34px; height: 190px; overflow: visible; }
.nbt-tdb svg.nbt-tdb-chart text { font-family: var(--ds-sans); font-size: 12px; fill: var(--ds-mut); }
svg.nbt-tdb-chart line { stroke: var(--ds-grid); stroke-dasharray: 4 5; }
svg.nbt-tdb-chart polygon { fill: var(--ds-brand-soft); }
svg.nbt-tdb-chart polyline { fill: none; stroke: var(--ds-brand); stroke-width: 2.4; stroke-linejoin: round; }
svg.nbt-tdb-chart circle { fill: #fff; stroke: var(--ds-brand); stroke-width: 1.5; }
svg.nbt-tdb-chart circle.nbt-tdb-on, svg.nbt-tdb-chart rect.nbt-tdb-on { fill: var(--ds-brand); }
svg.nbt-tdb-chart rect { fill: var(--ds-bar); }
svg.nbt-tdb-chart rect.nbt-tdb-loss { fill: var(--ds-ink); }
.nbt-tdb svg.nbt-tdb-chart text.nbt-tdb-perte { fill: var(--ds-ink); font-weight: 600; }
.nbt-tdb-cta { background: #FFF4ED; border-radius: 14px; padding: 18px 20px; }
.nbt-tdb-cta h3 { margin: 0 0 6px; color: #B93815; font-size: 15px; font-weight: 600; }
.nbt-tdb-cta p { margin: 0 0 14px; color: #6b3a22; font-size: 13px; line-height: 1.5; }

/* ---- badges (.d) ---- */
.nbt-tdb-d, .nbt-tdb-cnt, .nbt-tdb-more, .nbt-tdb .nbt-au-card > h3 > .nbt-au-hint, .nbt-tdb .nbt-lpa > h3 > .nbt-lpa-hint {
    display: inline-flex; align-items: center; border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 500; white-space: nowrap;
    background: var(--ds-flat-bg); color: var(--ds-flat); letter-spacing: 0; line-height: normal; border: 0;
}
.nbt-tdb-cnt { background: var(--ds-down-bg); color: var(--ds-down); min-width: 0; height: auto; }
.nbt-tdb-cnt.nbt-tdb-z { background: var(--ds-flat-bg); color: var(--ds-flat); }
.nbt-tdb-more { cursor: pointer; }
.nbt-tdb-more:hover { color: var(--ds-ink); }
.nbt-tdb-sum { font-size: 12.5px; color: var(--ds-mut2); font-weight: 400; }

/* ---- les files de travail (.card .ch / .empty / tables) ---- */
.nbt-tdb-card > h3, .nbt-tdb .nbt-au-card > h3, .nbt-tdb-ch2 { padding: 0; border: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nbt-tdb-t { display: contents; }
.nbt-tdb-t > .nbt-tdb-cnt { margin-left: auto; }
.nbt-tdb-emptymsg { margin-top: 16px; border-radius: 14px; background: var(--tdb-well); padding: 22px 16px; text-align: center; color: var(--ds-mut2); font-size: 13.5px; display: block; }
.nbt-tdb-emptymsg b { color: var(--ds-ink); font-weight: 500; }
.nbt-tdb-emptymsg > span:last-child:not(.nbt-tdb-ok) { display: block; margin-top: 3px; }
.nbt-tdb-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ds-up-bg); color: var(--ds-up); font-size: 12px; margin-right: 8px; }
.nbt-tdb-tw { overflow-x: auto; margin: 14px -6px 0; padding: 0 6px; }
.nbt-tdb-card table, .nbt-tdb .nbt-au-st2, .nbt-tdb table.nbt-lpa-st2 { width: 100%; border-collapse: collapse; font-size: 14px; }
.nbt-tdb-card th, .nbt-tdb .nbt-au-st2 th, .nbt-tdb .nbt-lpa-st2 th { text-align: left; font-weight: 400; color: var(--ds-mut); font-size: 13.5px; padding: 0 0 12px; border: 0; white-space: nowrap; }
.nbt-tdb-card td, .nbt-tdb .nbt-au-st2 td, .nbt-tdb .nbt-lpa .nbt-lpa-st2 td { padding: 12px 0; border: 0; border-top: 1px dashed var(--ds-grid); vertical-align: middle; font-variant-numeric: tabular-nums; }
.nbt-tdb-card th + th, .nbt-tdb-card td + td, .nbt-tdb .nbt-au-st2 th + th, .nbt-tdb .nbt-au-st2 td + td, .nbt-tdb .nbt-lpa-st2 th + th, .nbt-tdb .nbt-lpa .nbt-lpa-st2 td + td { padding-left: 12px; }
.nbt-tdb .nbt-au-st2 th:first-child, .nbt-tdb .nbt-au-st2 td:first-child, .nbt-tdb .nbt-lpa-st2 th:first-child, .nbt-tdb .nbt-lpa-st2 td:first-child,
.nbt-tdb .nbt-au-st2 th:last-child, .nbt-tdb .nbt-au-st2 td:last-child, .nbt-tdb .nbt-lpa .nbt-lpa-st2 th:last-child, .nbt-tdb .nbt-lpa .nbt-lpa-st2 td:last-child { padding-left: 12px; padding-right: 0; }
.nbt-tdb .nbt-au-st2 th:first-child, .nbt-tdb .nbt-au-st2 td:first-child, .nbt-tdb .nbt-lpa-st2 th:first-child, .nbt-tdb .nbt-lpa .nbt-lpa-st2 td:first-child { padding-left: 0; text-align: left; }
.nbt-tdb .nbt-au-st2 th, .nbt-tdb .nbt-lpa-st2 th { text-align: right; }
.nbt-tdb .nbt-au-st2 { margin-top: 14px; }
.nbt-tdb .nbt-au-st2 td.nbt-au-tot { border-top: 1px solid var(--ds-ink); font-weight: 600; }
.nbt-tdb .nbt-au-st2 .nbt-au-bad, .nbt-tdb .nbt-lpa-st2 .nbt-lpa-bad { color: var(--ds-down); font-weight: 500; }
/* Les boutons ne défilent jamais hors de la carte (passe 1 366 px du 26 sep) : la dernière colonne reste collée à droite. */
.nbt-tdb-tw td:last-child, .nbt-tdb-tw th:last-child { position: sticky; right: 0; background: var(--ds-card); width: 1%; }
/* Téléphone (5 nov) : la colonne collée, large comme ses boutons, cachait le nom du client ; sans bouton, rien ne colle. */
.nbt-tdb-tw table:not(:has(.nbt-tdb-acts)) :is(td, th):last-child { position: static; width: auto; }
.nbt-tdb-card .nbt-tdb-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.nbt-tdb-s { display: block; color: var(--ds-mut); font-size: 12.5px; margin-top: 2px; }
.nbt-tdb-s.nbt-tdb-warn { color: var(--ds-ink); font-weight: 500; }
.nbt-tdb-s.nbt-tdb-prom { color: #1D4ED8; }
.nbt-tdb-ref { color: var(--ds-mut); font-size: 12.5px; }
.nbt-tdb-lnk { font-weight: 500; }
a.nbt-tdb-lnk:hover { color: var(--ds-brand); }
.nbt-tdb-pill { display: inline-block; border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
/* En retard = rouge partout, comme l'échéancier du contrat (Karim 13 oct, maquette encaissements) ; 30 j et plus, plein. */
.nbt-tdb-late { background: #FEF3F2; color: #B42318; box-shadow: inset 0 0 0 1px #FECDCA; }
.nbt-tdb-late.nbt-tdb-d { background: #B42318; color: #fff; box-shadow: none; }
.nbt-tdb-na { background: #FFF7E6; color: #B45309; }
.nbt-tdb-gone { background: #FFF4ED; color: #B93815; }
.nbt-tdb-acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
/* .btn.s de la maquette ; le principal en rouge de marque (.btn.p). */
.nbt-tdb-b { border: 0; background: var(--ds-flat-bg); color: var(--ds-ink); border-radius: var(--ds-r-pill); padding: 7px 13px; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; line-height: normal; }
.nbt-tdb-b:hover { background: #E6E3DF; }
.nbt-tdb .nbt-tdb-b-p, .nbt-tdb-b-p { background: var(--ds-brand); color: #fff; }
.nbt-tdb-b-p:hover { background: #7C0619; }
/* Le menu « ⋯ » est téléporté hors de la carte : on habille le panneau de Filament qui le porte. */
.fi-dropdown-panel:has(> .nbt-tdb-menu) { border: 1px solid #E7E5EA; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); min-width: 170px; width: auto; padding: 6px; background: #fff; --tw-ring-shadow: 0 0 #0000; }
.nbt-tdb-menu a, .nbt-tdb-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: #14121A; background: none; border: 0; cursor: pointer; font-family: Outfit, system-ui, sans-serif; }
.nbt-tdb-menu a:hover, .nbt-tdb-menu button:hover { background: #F7F7F8; }

/* « Mes demandes » et « Demandes sans réponse » (D-WA129 N3, maquette notes-equipe-v1 : .dtabs / .rq / .age.late / .btn.ok / .who / .set) */
.nbt-tdb-dtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nbt-tdb-dtabs button { border: 0; border-radius: var(--ds-r-pill); padding: 6px 12px; font-size: 13px; background: #FAF9F7; color: var(--ds-ink2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.nbt-tdb-dtabs button b { font-size: 11.5px; font-weight: 600; background: var(--ds-flat-bg); border-radius: var(--ds-r-pill); padding: 0 7px; }
.nbt-tdb-dtabs button[aria-selected=true] { background: var(--ds-brand-softer); color: var(--ds-brand); box-shadow: inset 0 0 0 1px var(--ds-brand-soft); font-weight: 500; }
.nbt-tdb-dtabs button[aria-selected=true] b { background: #fff; }
.nbt-tdb-rq { list-style: none; margin: 12px 0 0; padding: 0; }
.nbt-tdb-rq li { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px dashed var(--ds-grid); flex-wrap: wrap; }
.nbt-tdb-rq-m { min-width: 0; flex: 1 1 260px; }
.nbt-tdb-rq-l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbt-tdb-rq-l1 b { font-weight: 600; }
.nbt-tdb-rq-l2 { margin-top: 3px; font-size: 12.5px; color: var(--ds-mut2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.nbt-tdb-rq-a { display: flex; gap: 6px; flex: none; }
.nbt-tdb-age-late { color: var(--ds-down); font-weight: 600; }
.nbt-tdb-d.nbt-tdb-up { background: var(--ds-up-bg); color: var(--ds-up); }
.nbt-tdb-d.nbt-tdb-down { background: var(--ds-down-bg); color: var(--ds-down); }
.nbt-tdb-b.nbt-tdb-b-ok { background: var(--ds-up-bg); color: var(--ds-up); }
.nbt-tdb-b-lnk { border: 0; background: none; padding: 0; color: var(--ds-brand); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }
.nbt-tdb-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.nbt-tdb-who i { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: #fff; background: var(--c, #6E6A75); flex: none; }
.dark .nbt-tdb-dtabs button { background: var(--ds-flat-bg); }
@media (max-width: 600px) { .nbt-tdb-rq .nbt-tdb-b, .nbt-tdb-dtabs button { min-height: 40px; } }

/* « Ma journée » et « Suivi des relances » (nbt-automatisations.css) : la carte et les rangées de la maquette (.sec / .list). */
.nbt-tdb .nbt-au-body { padding: 0; margin-top: 4px; }
.nbt-tdb .nbt-au-ms { padding: 0; border: 0; margin-top: 16px; }
.nbt-tdb .nbt-au-ms h4 { margin: 0; font-size: 13.5px; font-weight: 500; }
.nbt-tdb .nbt-au-ms h4 .nbt-au-n { font-size: 11.5px; font-weight: 500; background: var(--ds-flat-bg); color: var(--ds-flat); border-radius: 7px; padding: 3px 8px; }
.nbt-tdb .nbt-au-li { padding: 11px 0; border-top: 1px dashed var(--ds-grid); font-size: 14px; align-items: center; }
.nbt-tdb .nbt-au-li:first-of-type { margin-top: 14px; }
.nbt-tdb .nbt-au-li b { font-weight: 600; }
.nbt-tdb .nbt-au-w { color: var(--ds-mut); font-size: 13px; font-weight: 400; margin-right: 8px; }
.nbt-tdb .nbt-au-card > .nbt-au-hint, .nbt-tdb .nbt-au-body.nbt-au-hint { margin-top: 12px; font-size: 13px; color: var(--ds-mut2); }
/* La puce d'agent devient le rond aux initiales de la maquette (.who). */
.nbt-tdb .nbt-au-st2 .nbt-ag, .nbt-tdb .nbt-lpa .nbt-ag { background: none; color: var(--ds-ink); padding: 0; gap: 8px; font-size: 14px; font-weight: 500; }
.nbt-tdb .nbt-au-st2 .nbt-ag i, .nbt-tdb .nbt-lpa .nbt-ag i { width: 22px; height: 22px; font-size: 10px; font-weight: 600; }

/* « Nouveaux leads » + « Mes leads à reprendre » (nbt-superviseur.css) : deux cartes côte à côte, la première filetée de rouge. */
.nbt-tdb .nbt-sup { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a b" "a c"; gap: 0 14px; align-content: start; }
.nbt-tdb .nbt-sup-strip { grid-area: a; display: block; border: 0; border-radius: var(--ds-r-card); padding: 22px 24px; background: var(--ds-card); box-shadow: inset 4px 0 0 var(--ds-brand); }
.nbt-tdb .nbt-sup-strip p { margin: 10px 0 0; font-size: 13.5px; color: var(--ds-ink2); }
.nbt-tdb .nbt-sup-strip .nbt-sup-primary { display: inline-flex; margin-top: 16px; border: 0; background: var(--ds-brand); color: #fff; font-size: 14px; font-weight: 500; padding: 11px 18px; border-radius: var(--ds-r-pill); }
.nbt-tdb .nbt-sup-card { grid-area: b; border: 0; border-radius: var(--ds-r-card) var(--ds-r-card) 0 0; background: var(--ds-card); }
.nbt-tdb .nbt-sup-tete { padding: 22px 24px 0; }
.nbt-tdb .nbt-sup-vide { margin: 16px 24px 0; border-radius: 14px; background: var(--tdb-well); padding: 22px 16px; text-align: center; color: var(--ds-mut2); font-size: 13.5px; }
.nbt-tdb .nbt-sup-vide h4 { font-size: 13.5px; font-weight: 500; color: var(--ds-ink); margin-bottom: 3px; }
.nbt-tdb .nbt-sup-vide h4::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ds-up-bg); color: var(--ds-up); font-size: 12px; margin-right: 8px; }
.nbt-tdb .nbt-sup-vide p { color: var(--ds-mut2); font-size: 13.5px; }
.nbt-tdb .nbt-sup-pied { grid-area: c; background: var(--ds-card); border-radius: 0 0 var(--ds-r-card) var(--ds-r-card); padding: 12px 24px 22px; font-size: 13px; color: var(--ds-mut2); }

/* « Leads par agent » (nbt-agents.css) : la carte, les puces de période (.chips) et les barres (.hb) de la maquette. */
.nbt-tdb .nbt-lpa { margin: 0 0 22px; }
.nbt-tdb .nbt-lpa-per { padding: 0; border: 0; margin-top: 14px; }
.nbt-tdb .nbt-lpa .nbt-per button { border: 0; background: var(--tdb-well); border-radius: 999px; padding: 6px 12px; font: 400 13px/1.25 var(--ds-sans); color: var(--ds-ink2); }
.nbt-tdb .nbt-lpa .nbt-per button[aria-pressed="true"] { background: var(--ds-brand-softer); color: var(--ds-brand); box-shadow: inset 0 0 0 1px var(--ds-brand-soft); font-weight: 500; }
.nbt-tdb .nbt-lpa .nbt-per i { display: none; }
.nbt-tdb .nbt-lpa-bars { padding: 0; margin-top: 12px; gap: 0; }
.nbt-tdb .nbt-lpa-bar2 { grid-template-columns: minmax(90px, 22%) minmax(0, 1fr) 36px; gap: 12px; padding: 8px 0; font-size: 14px; }
.nbt-tdb .nbt-lpa-bar2 + .nbt-lpa-bar2 { border-top: 1px dashed var(--ds-grid); }
.nbt-tdb .nbt-lpa-bar2 b { font-weight: 500; }
.nbt-tdb .nbt-lpa-tr { height: 8px; background: var(--ds-bar); }
.nbt-tdb .nbt-lpa-bars > .nbt-lpa-hint, .nbt-tdb .nbt-lpa-body { padding: 0; margin-top: 12px; font-size: 13px; color: var(--ds-mut2); }
.nbt-tdb .nbt-lpa-tw { margin-top: 14px; }

/* objectifs de l'agent (.obj) */
.nbt-tdb-obj { margin-bottom: 22px; }
.nbt-tdb-og { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.nbt-tdb-ob { background: var(--tdb-well); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.nbt-tdb-ok2 { font-size: 13px; color: var(--ds-mut); }
.nbt-tdb-ov { font-family: var(--ds-mono); font-size: 22px; font-weight: 500; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nbt-tdb-ov small { font-family: var(--ds-sans); font-size: 13px; color: var(--ds-mut); }
.nbt-tdb-bar { height: 6px; border-radius: 999px; background: var(--ds-bar); margin-top: 10px; overflow: hidden; }
.nbt-tdb-bar i { display: block; height: 100%; background: var(--ds-brand); border-radius: 999px; }
.nbt-tdb-pct { font-size: 12.5px; color: var(--ds-mut2); margin-top: 6px; }
.nbt-tdb-note { margin: 12px 0 0; font-size: 13px; color: var(--ds-mut2); }

/* D-WA123-2 — cartes des justificatifs (maquette charges-justificatif-plus-tard, onglets 2 et 3) */
.nbt-tdb-card tr.nbt-tdb-retard td:first-child { box-shadow: inset 3px 0 0 #B42318; padding-left: 8px; }
.nbt-tdb-du { background: #FFF7E6; color: #B45309; box-shadow: inset 0 0 0 1px #FCD9A6; }
.nbt-tdb-def { background: #F2F4F7; color: #344054; }
.nbt-tdb .nbt-tdb-b-w, .nbt-tdb-b-w { background: #FFF7E6; color: #B45309; }
.nbt-tdb-b-w:hover { background: #FFEFD2; }
.nbt-tdb-bande { margin: 16px 0 0; gap: 12px; }
.nbt-tdb-bande > .nbt-tdb-cell { background: var(--tdb-well); box-shadow: none; border-radius: 14px; padding: 14px 16px; }
.nbt-tdb-bande .nbt-tdb-k { font-size: 13px; }
.nbt-tdb-hl.nbt-tdb-bande .nbt-tdb-v { font-size: min(22px, 13cqi); margin-top: 8px; }

/* La maquette, à 1 240 px puis 900 px puis 480 px. */
@media (max-width: 1240px) {
    .nbt-tdb-s5 { grid-column: span 6; }
    .nbt-tdb-s7 { grid-column: span 12; }
    .nbt-tdb-og { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .nbt-tdb-s5, .nbt-tdb-s6, .nbt-tdb-s7, .nbt-tdb-s12 { grid-column: span 12; }
    .nbt-tdb-head h1 { font-size: 28px; }
    .nbt-tdb .nbt-sup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c"; row-gap: 0; }
    .nbt-tdb .nbt-sup-strip { margin-bottom: 14px; }
}
@media (max-width: 480px) {
    .nbt-tdb-c, .nbt-tdb-card, .nbt-tdb .nbt-au-card { padding: 18px; }
    .nbt-tdb-hl, .nbt-tdb-perso .nbt-tdb-hl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .nbt-tdb-hl > .nbt-tdb-cell { padding: 16px 14px; }
    .nbt-tdb-hl > .nbt-tdb-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .nbt-tdb-hl .nbt-tdb-k { font-size: 14.5px; }
    .nbt-tdb-hl .nbt-tdb-v { font-size: min(21px, 16cqi); margin-top: 14px; }
    .nbt-tdb-pg .nbt-tdb-v { font-size: 28px; }
    .nbt-tdb-og { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .nbt-tdb .nbt-lpa-bar2 { grid-template-columns: minmax(76px, 30%) minmax(0, 1fr) 30px; gap: 8px; }
}

/* Mode sombre : les jetons passent au gris du panneau. */
.dark .nbt-tdb-page {
    --ds-card: var(--gray-900); --ds-ink: #FFFFFF; --ds-ink2: #D4D2D8; --ds-mut: #ACA5AF; --ds-mut2: #ACA5AF;
    --ds-grid: rgb(255 255 255 / .12); --ds-bar: rgb(255 255 255 / .1); --ds-flat-bg: rgb(255 255 255 / .08); --ds-flat: #D4D2D8;
    --tdb-well: rgb(255 255 255 / .04);
}
.dark .nbt-tdb-menu a, .dark .nbt-tdb-menu button { color: #FFFFFF; }
.dark .fi-dropdown-panel:has(> .nbt-tdb-menu) { background: var(--gray-900); border-color: rgb(255 255 255 / .1); }

/* Téléphone (Karim 5 oct) : les tableaux des cartes gardent leurs colonnes et défilent de côté. */
@media (max-width: 767px) { .nbt-tdb-tw > table { min-width: 720px; } }
/* « Demandes sans réponse » : trois colonnes courtes, elles tiennent sur un téléphone. */
.nbt-tdb-tw > table.nbt-tdb-dsr { min-width: 0; }
/* D-WA129 N3 G3 — le délai réglé dans la carte (maquette notes-equipe-v1, `.set`) */
.nbt-tdb-set { margin-top: 10px; background: #FAF9F7; border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.nbt-tdb-set select { border: 1px solid var(--ds-grid); border-radius: 8px; padding: 5px 8px; background: #fff; font: inherit; }
.nbt-tdb-hint { color: #6B6875; font-size: 12.5px; }
@media (max-width: 600px) { .nbt-tdb-set select { min-height: 40px; } }
