/* Suivi d'équipe (lot SUIVI, ch. 7 ter) — les écrans de la Leader (E7.10 → E7.12), Mon parcours (E7.13),
   Mes résultats (E7.14). Jetons seulement : la pastille d'état, les cinq cases d'étapes, les volets du
   parcours, la courbe d'engagement. Le rouge n'existe que pour un retard de plus de 7 jours vu de la
   Leader (jamais côté partenaire — C5-R04 / C5-R16). */

/* La carte d'une partenaire dans la liste (E7.10) — cliquable en entier */
.tf-card { display: block; text-decoration: none; color: inherit; background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--brand-radius-lg, 16px); padding: .85rem 1rem; margin-bottom: .7rem; }
.tf-card:hover, .tf-card:focus-visible { border-color: var(--brand-accent); color: inherit; }
.tf-card .row-item { padding: 0 0 .6rem; border-bottom: 0; }
.tf-next { text-align: right; flex: 0 0 auto; max-width: 45%; font-size: .7rem; color: var(--brand-muted); }
.tf-next b { display: block; font-size: .78rem; color: var(--brand-secondary); }
.tf-next.is-warn b { color: var(--brand-warning, #d97706); }
.tf-next.is-late b { color: var(--brand-danger); }

/* Les cinq cases d'étapes : Appel · N° 1 → N° 4 */
.tf-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.tf-steps .tf-step { border: 1px solid var(--brand-line); border-radius: 9px; padding: .3rem .15rem; text-align: center; font-size: .66rem; line-height: 1.25; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.tf-steps .tf-step i { display: block; font-style: normal; font-weight: 700; color: var(--brand-secondary); font-size: .7rem; }
.tf-steps .tf-step.is-done { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-on-accent); }
.tf-steps .tf-step.is-warn { border-color: var(--brand-warning, #d97706); color: var(--brand-warning, #d97706); }
.tf-steps .tf-step.is-late { border-color: var(--brand-danger); color: var(--brand-danger); }

/* La pastille d'état — vert / ambre / rouge (> 7 j, Leader seule) / bleu (parcours terminé) / gris (arrêtée) */
.light-dot.light-blue { background: var(--brand-primary); }
.light-dot.light-grey { background: var(--brand-line); }

/* La légende sous les filtres */
/* AJUST-161 : « Suivies par… » — la liste avec recherche, sous les puces de périmètre, à la largeur d'un nom et d'un code. */
.tf-leader { display: flex; align-items: center; gap: .5rem; max-width: 26rem; margin: 0 0 .75rem; }
.tf-leader .form-select, .tf-leader .ts-wrapper { flex: 1; min-width: 0; }

.tf-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .7rem; color: var(--brand-muted); margin: .2rem 0 .8rem; }
.tf-legend span { display: inline-flex; align-items: center; gap: .35rem; }

/* Les alertes en tête du tableau (E7.10) — un onglet ou « voir toutes » ramène la carte sous la barre du haut (AJUST-109) */
.tf-alerts, .tf-search { scroll-margin-top: 5rem; }
/* Les onglets par type passent à la ligne, même sur téléphone : l'onglet ouvert reste toujours en vue (AJUST-109) */
.tf-alert-tabs { flex-wrap: wrap; overflow: visible; }
.tf-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem 0; border-bottom: 1px dashed var(--brand-line-soft); }
.tf-alert:last-child { border-bottom: 0; }
.tf-alert .tf-alert-text { flex: 1; min-width: 0; font-size: .78rem; }
.tf-alert .tf-alert-text b { display: block; color: var(--brand-secondary); }
.tf-alert .tf-alert-text small { color: var(--brand-muted); }
.tf-alert .tf-alert-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem; margin-top: .35rem; }

/* Les volets d'étapes de la fiche partenaire (E7.11) et de Mon parcours (E7.13) */
.tf-journey details { background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--brand-radius-lg, 16px); margin-bottom: .6rem; overflow: hidden; }
.tf-journey summary { list-style: none; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; cursor: pointer; }
.tf-journey summary::-webkit-details-marker { display: none; }
.tf-journey summary .tf-title { flex: 1; min-width: 0; }
.tf-journey summary .tf-title b { display: block; font-size: .95rem; color: var(--brand-secondary); }
.tf-journey summary .tf-title small { color: var(--brand-muted); font-size: .72rem; }
.tf-journey .tf-inner { padding: 0 1rem 1rem; border-top: 1px solid var(--brand-line-soft); }
.tf-pill { flex: 0 0 auto; font-size: .66rem; font-weight: 700; border-radius: var(--brand-radius-pill); padding: .15rem .6rem; border: 1px solid var(--brand-line); color: var(--brand-muted); white-space: nowrap; }
.tf-pill.is-done { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-on-accent); }
.tf-pill.is-current { border-color: var(--brand-success); color: var(--brand-success); }
.tf-pill.is-warn { border-color: var(--brand-warning, #d97706); color: var(--brand-warning, #d97706); }
.tf-pill.is-late { border-color: var(--brand-danger); color: var(--brand-danger); }

/* Un point de check-list avec ses marques (déclaré, reporté, vidéo, validé) */
.tf-check .form-check { padding: .35rem 0 .35rem 1.8rem; }
.tf-check .form-check-label { font-size: .85rem; }
.tf-check .form-check-label .tf-mark { display: inline-block; margin-left: .35rem; font-size: .62rem; font-weight: 700; padding: .05rem .45rem; border-radius: var(--brand-radius-pill); background: var(--brand-surface-2, var(--brand-bg)); color: var(--brand-muted); border: 1px solid var(--brand-line); vertical-align: middle; }
.tf-check .form-check-label .tf-mark.is-declared { color: var(--brand-secondary); border-color: var(--brand-accent); background: var(--brand-accent-light); }
.tf-check .form-check-label .tf-mark.is-video { color: var(--brand-primary); border-color: var(--brand-primary); }
.tf-check .form-check-label .tf-mark.is-carried { color: var(--brand-warning, #d97706); border-color: var(--brand-warning, #d97706); }
.tf-check .form-check-input:checked ~ .form-check-label { color: var(--brand-muted); }

/* La date « Réalisé le » et les notes */
.tf-dateline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: .7rem; font-size: .78rem; color: var(--brand-muted); }
.tf-dateline input[type="date"] { max-width: 11rem; }
/* AJUST-97 (#2786) : l'aide sous « Réalisé le » */
.tf-hint { width: 100%; margin-top: .35rem; font-size: .72rem; line-height: 1.4; color: var(--brand-muted); }

/* La courbe d'engagement (douze semaines) : un SVG inline, dimensionné ici */
.tf-curve { width: 100%; height: 96px; display: block; }
.tf-curve .tf-curve-line { fill: none; stroke: var(--brand-accent); stroke-width: 2.5; stroke-linejoin: round; }
.tf-curve .tf-curve-area { fill: var(--brand-accent-light); opacity: .6; }
.tf-curve .tf-curve-low { stroke: var(--brand-line); stroke-dasharray: 4 4; stroke-width: 1; }
.tf-curve .tf-curve-dot { fill: var(--brand-secondary); }
.tf-curve-foot { display: flex; justify-content: space-between; font-size: .66rem; color: var(--brand-muted); }

/* Le tableau du parcours (E7.12) : une ligne par partenaire, une colonne par étape */
.tf-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.tf-table th { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); font-weight: 700; padding: .4rem .3rem; text-align: center; border-bottom: 1px solid var(--brand-line); }
.tf-table th:first-child, .tf-table td:first-child { text-align: left; }
.tf-table td { padding: .55rem .3rem; text-align: center; border-bottom: 1px dashed var(--brand-line-soft); white-space: nowrap; }
.tf-table td:first-child { white-space: normal; }
.tf-table .tf-cell { display: inline-block; min-width: 2rem; padding: .15rem .35rem; border-radius: 8px; font-size: .7rem; font-weight: 700; border: 1px solid var(--brand-line); color: var(--brand-muted); }
.tf-table .tf-cell.is-done { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-on-accent); }
.tf-table .tf-cell.is-late { border-color: var(--brand-danger); color: var(--brand-danger); }
.tf-table .tf-cell.is-warn { border-color: var(--brand-warning, #d97706); color: var(--brand-warning, #d97706); }
/* AJUST-152 (RM-523) : une étape du parcours de démarrage non faite, passée hors délai — ni alerte ni retard, juste effacée. */
.tf-table .tf-cell.is-lapsed, .tf-steps .tf-step.is-lapsed { opacity: .45; }
.tf-table .tf-cell.is-current { border-color: var(--brand-success); color: var(--brand-success); }
/* Onze colonnes depuis SUIVI-12 (J45, J90, mois) : le tableau défile dans sa carte à toutes les largeurs. */
.tf-table-wrap { overflow-x: auto; }
@media (max-width: 575.98px) {
    .tf-table { min-width: 34rem; }
}

/* Les onglets des coachings de Mon parcours */
.tf-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.tf-tabs::-webkit-scrollbar { display: none; }
.tf-tabs .chip.is-locked { opacity: .55; }

/* Mes résultats : la ligne d'un mois */
.tf-month { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--brand-line-soft); font-size: .8rem; }
.tf-month:last-child { border-bottom: 0; }
.tf-month b { color: var(--brand-secondary); }
.tf-month .tf-muted { color: var(--brand-muted); font-size: .7rem; }
.tf-month .is-missing { color: var(--brand-warning, #d97706); font-weight: 700; }

/* PLAN-11 : le message pré-rempli de la relance se montre en entier (la hauteur suit le texte quand le navigateur le sait). */
.tf-remind-text { field-sizing: content; }
/* #3128 (retour #14982 d'Axel, 05/11/2026) : « Par tâche » — chaque tâche est un bloc, de l'air et un filet entre deux. */
.tf-task { padding: .65rem 0; }
.tf-task:first-child { padding-top: .2rem; }
.tf-task + .tf-task { border-top: 1px dashed var(--brand-line-soft); }

/* AJUST-125 (RM-563) : ses preuves des gestes du jour, jour par jour. */
.tf-proof-day + .tf-proof-day { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--bs-border-color); }
