/* Tableaux de bord client (C1) et agent (A1) — maquette Docs\Maquette_TableauxDeBord_2026-10-17.html.
   Classes tdb-* partagées par ViewTableauBordClient, ViewTableauBordAgent et les blocs de Pages\DashboardCommun.
   Une seule vue par côté : la mise en page passe en une colonne sous 1100 px (plus de vue mobile à part). */

.tdb {
    height: 100%;
    overflow: auto;
    scrollbar-width: thin;
    background: var(--look-fond-travail); /* même fond que les écrans de travail (2026-10-19) */
    padding: 14px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #243b53;
}

/* ---------- En-tête : salutation + actions ---------- */
.tdb-entete {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.tdb-entete h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    color: #102a43;
}

.tdb-entete p {
    margin: 2px 0 0;
    color: #627d98;
    font-size: 13px;
}

.tdb-entete-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Boutons ---------- */
.tdb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    padding: 7px 14px;
    font-weight: 500;
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.3;
}

.tdb-btn.p {
    color: #fff;
    background: linear-gradient(90deg, #0080d7, #0b5ea8);
    box-shadow: 0 3px 10px #0080d733;
}

.tdb-btn.p:hover {
    filter: brightness(1.07);
    color: #fff;
}

.tdb-btn.s {
    color: #0b5ea8;
    background: #fff;
    border-color: #c3cfdc;
}

.tdb-btn.s:hover {
    background: #f2f7fc;
}

.tdb-btn.petit {
    padding: 4px 12px;
}

.tdb-lien {
    color: #0b5ea8;
    font-weight: 500;
    font-size: 12.5px;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    white-space: nowrap;
}

.tdb-lien:hover {
    text-decoration: underline;
}

/* ---------- Grille principale ---------- */
.tdb-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}

.tdb-colonne {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* ---------- Panneau ---------- */
.tdb-pan {
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 0;
}

.tdb-pan > h3 {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #102a43;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tdb-pan > h3 .n {
    color: #627d98;
    font-weight: 400;
}

.tdb-pan > h3 .tdb-lien {
    margin-left: auto;
    font-weight: 500;
    font-size: 12px;
}

.tdb-vide {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #486581;
    padding: 6px 0 2px;
}

.tdb-vide i {
    color: #2f855a;
    font-size: 18px;
}

/* ---------- Icône carrée de couleur ---------- */
.tdb-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    position: relative;
}

.tdb-t-sig {
    background: #ede7fb;
    color: #6b3fd4;
}

.tdb-t-mod {
    background: #fde8e8;
    color: #c62828;
}

.tdb-t-rep {
    background: #fff3db;
    color: #b26a00;
}

.tdb-t-frm {
    background: #e3f1fb;
    color: #0b5ea8;
}

/* Validation d'une demande (tâche VAL, 2026-10-25). */
.tdb-t-val {
    background: #e2f2ee;
    color: #2f7d6d;
}

.tdb-t-del {
    background: #e3f1fb;
    color: #0b5ea8;
}

.tdb-t-bro {
    background: #edf0f3;
    color: #52606d;
}

.tdb-t-ok {
    background: #e3f5ea;
    color: #2f855a;
}

.tdb-t-msg {
    background: #e3f1fb;
    color: #0080d7;
}

/* Point bleu « message non lu » sur l'icône */
.tdb-ico.non-lu::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0080d7;
    border: 2px solid #fff;
}

/* ---------- Ligne de liste ---------- */
.tdb-li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 4px;
    border-top: 1px solid #eef2f6;
    cursor: pointer;
    border-radius: 6px;
}

.tdb-li:first-of-type {
    border-top: 0;
}

.tdb-li:hover {
    background: #f6f9fc;
}

.tdb-li:focus-visible {
    outline: 2px solid #0080d7;
    outline-offset: -2px;
}

.tdb-li-tx {
    flex: 1;
    min-width: 0;
}

.tdb-li-tx b {
    display: block;
    font-weight: 500;
    color: #102a43;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdb-li-tx span {
    display: block;
    color: #627d98;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdb-li-tx .extrait {
    color: #486581;
    font-size: 12px;
}

.tdb-li.non-lu .tdb-li-tx b {
    font-weight: 700;
}

.tdb-li-dr {
    text-align: right;
    font-size: 11.5px;
    color: #627d98;
    white-space: nowrap;
}

.tdb-li-dr.urgent {
    color: #c62828;
    font-weight: 500;
}

.tdb-li-go {
    color: #0b5ea8;
    font-size: 14px;
}

.tdb-li-sup {
    color: #9aa5b1;
    background: none;
    border: 0;
    padding: 2px 4px;
    cursor: pointer;
}

.tdb-li-sup:hover {
    color: #c62828;
}

/* ---------- Tableau léger ---------- */
.tdb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.tdb-table th {
    text-align: left;
    font-weight: 500;
    color: #627d98;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 6px 8px;
    border-bottom: 1px solid #e1e8f0;
    white-space: nowrap;
}

.tdb-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #eef2f6;
    color: #243b53;
    vertical-align: middle;
}

.tdb-table tbody tr {
    cursor: pointer;
}

.tdb-table tbody tr:hover td {
    background: #f6f9fc;
}

.tdb-table td.no {
    color: #0b5ea8;
    font-weight: 500;
    white-space: nowrap;
}

.tdb-table td.date {
    color: #627d98;
    white-space: nowrap;
}

.tdb-table td.age {
    white-space: nowrap;
}

.tdb-table td.age.retard {
    color: #c62828;
    font-weight: 500;
}

.tdb-table .sous {
    display: block;
    color: #627d98;
    font-size: 11.5px;
}

.tdb-table .badge.pastille-statut {
    white-space: nowrap;
}

/* ---------- Frise d'avancement : soumise → en traitement → terminée ---------- */
.tdb-frise {
    display: flex;
    align-items: center;
    width: 110px;
}

.tdb-frise i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0080d7;
    flex-shrink: 0;
}

.tdb-frise s {
    flex: 1;
    height: 2px;
    background: #0080d7;
}

.tdb-frise .off {
    background: #d8dee6;
}

.tdb-frise .alerte {
    background: #dc2626;
}

.tdb-repart {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #e1e8f0;
    margin: 4px 0 6px;
}

.tdb-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 11.5px;
    color: #486581;
}

.tdb-legende span::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--c);
    margin-right: 5px;
}

/* ---------- Pastille « Système » ---------- */
.tdb-systeme {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #b7e1c6;
    color: #2f855a;
    cursor: pointer;
}

.tdb-systeme i {
    font-size: 8px;
}

/* ---------- Petit écran ---------- */
@media (max-width: 1100px) {
    .tdb-grille {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .tdb {
        padding: 12px 12px 20px;
    }

    .tdb-table .tdb-col-large {
        display: none;
    }

    .tdb-li-dr.facultatif {
        display: none;
    }

    .tdb-entete-actions {
        margin-left: 0;
        width: 100%;
    }

    .tdb-entete-actions .tdb-btn {
        flex: 1;
    }
}

/* ---------- Onglets et segments (maquette A2) ---------- */
.tdb-seg {
    display: inline-flex;
    background: #e1e8f0;
    border-radius: 20px;
    padding: 3px;
    flex-wrap: wrap;
}

.tdb-seg button {
    border: 0;
    background: none;
    padding: 5px 14px;
    border-radius: 16px;
    color: #486581;
    font-weight: 500;
    font-size: 12.5px;
    cursor: pointer;
    white-space: nowrap;
}

.tdb-seg button.a {
    background: #fff;
    color: #0f5c9e;
    font-weight: 500;
    box-shadow: 0 1px 2px #102a4320;
}

.tdb-seg button em {
    font-style: normal;
    margin-left: 6px;
    font-size: 11px;
    background: #0080d7;
    color: #fff;
    border-radius: 9px;
    padding: 0 6px;
}

.tdb-onglets {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tdb-onglets .droite {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---------- Aperçu agent : maquettes E1 + P1 + D3 + L2 (2026-10-17) ---------- */

/* Numéro de demande dans une ligne (le span imbriqué ne doit pas passer en bloc) */
.tdb-li-tx span span {
    display: inline;
}

.tdb-no {
    color: #0b5ea8;
    font-weight: 500;
}

/* Rangée du haut (maquette H2) : Indicateurs · Démarrer · Délégations, pour tenir au premier écran.
   Les groupes ouverts prennent la même hauteur ; un groupe replié se réduit à son en-tête. */
.tdb-haut {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: stretch;
}

.tdb-haut > .tdb-groupe {
    display: flex;
    flex-direction: column;
}

.tdb-haut > .tdb-groupe.replie {
    align-self: start;
}

.tdb-haut > .tdb-groupe > .tdb-groupe-corps {
    flex: 1;
}

/* Tuiles du groupe Démarrer : même tuile que les indicateurs, empilées sur toute la hauteur du groupe ;
   une icône tient la place du chiffre */
.tdb-haut > .tdb-groupe > .tdb-groupe-corps:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.tdb-tuiles.pile {
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
}

.tdb-tuiles.pile .tdb-tuile {
    min-height: 84px;
    padding: 11px 14px;
}

.tdb-tuiles.pile .tdb-tuile .chiffre {
    font-size: 24px;
}

/* Tuiles en ligne (groupe Délégations) : chiffre ou icône à gauche, libellé et précision à droite,
   pour en loger trois dans la hauteur des indicateurs */
.tdb-tuiles.pile .tdb-tuile.ligne {
    min-height: 0;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tdb-tuile.ligne .chiffre {
    min-width: 30px;
    text-align: center;
}

.tdb-tuile.ligne .textes {
    flex: 1;
    min-width: 0;
    padding-right: 14px;
}

.tdb-tuile.ligne .textes .lib {
    margin-top: 0;
}

.tdb-tuile.ligne .filigrane {
    font-size: 42px;
    bottom: -6px;
}

/* Tuiles des compteurs L2 : aplats unis, tons sourds, chiffre blanc, icône en filigrane */
.tdb-tuiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* En 2 × 2 dans la rangée du haut : un peu moins hautes, pour s'aligner sur les groupes voisins */
.tdb-tuiles.deux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tdb-tuiles.deux .tdb-tuile {
    min-height: 84px;
    padding: 11px 14px;
}

.tdb-tuiles.deux .tdb-tuile .chiffre {
    font-size: 30px;
}

.tdb-tuile {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    min-height: 100px;
    background: var(--fond);
    color: #fff;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.tdb-tuile:hover {
    filter: brightness(1.06);
}

.tdb-tuile .chiffre {
    display: block;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.tdb-tuile .lib {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.tdb-tuile .precision {
    display: block;
    font-size: 11.5px;
    margin-top: 2px;
    opacity: .88;
}

.tdb-tuile .filigrane {
    position: absolute;
    right: 4px;
    bottom: -4px;
    font-size: 38px;
    opacity: .08;
}

.tdb-tuile .fleche {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 13px;
    opacity: .7;
}

/* Couleur principale (bleu pétrole, 2026-10-19 : le bleu #123e8f à côté du rouge rappelait trop le Canadien) pour
   toutes les tuiles ; secondaire pour les délégations et les compteurs à zéro. Le retard ne change
   plus la couleur de la tuile : une horloge ambre suit le chiffre (maquette F,
   Docs\Maquette_TuileEnRetard_Couleurs_2026-10-19.html). Les pastilles des résumés suivent. */
:root {
    --tdb-principal: #0e5a78;
}

.tdb-tuile, .tdb-pastille {
    --fond: var(--tdb-principal);
}

.tdb-tuile.secondaire, .tdb-pastille.secondaire {
    --fond: #e6ebf5;
}

/* Secondaire = fond pâle : texte foncé au lieu du blanc. Voile pétrole au lieu du gris bleuté (2026-10-20, retouche 5 de
   Docs\Maquette_PortailMenuCouleur_2026-10-20.html). */
.tdb-tuile.secondaire {
    --fond: #f2f7f9;
    color: var(--tdb-principal);
    box-shadow: inset 0 0 0 1px #e3edf1;
}

.tdb-tuile.secondaire .precision {
    color: #356a7e;
    opacity: 1;
}

.tdb-tuile.secondaire .filigrane {
    opacity: .08;
}

/* Contour (Nouvelle demande, maquette D, Docs\Maquette_TuileNouvelleDemande_2026-10-23.html) : blanc bordé de pétrole,
   icône dans une pastille ; plus léger que l'Assistance, mais détaché du fond du groupe. */
.tdb-tuile.contour {
    --fond: #fff;
    color: var(--tdb-principal);
    box-shadow: inset 0 0 0 1px #7fa9bab0;
}

.tdb-tuile.contour:hover {
    filter: none;
    background: #f2f7f9;
}

.tdb-tuile.contour .chiffre i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeaf0;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tdb-tuile.contour .precision {
    color: #356a7e;
    opacity: 1;
}

.tdb-tuile.contour .filigrane {
    opacity: .07;
}

.tdb-pastille.secondaire b {
    color: var(--tdb-principal);
}

/* Retard (maquette F) : la tuile garde la couleur principale, l'horloge ambre suit le chiffre ; la pastille du
   résumé passe à l'ambre, texte foncé (le blanc n'y serait pas lisible). */
.tdb-pastille.retard {
    --fond: #f5a524;
}

.tdb-pastille.retard b {
    color: #3b2300;
}

.tdb-tuile .chiffre .horloge {
    color: #f5a524;
    font-size: .62em;
    margin-left: 8px;
    vertical-align: .12em;
}

/* Groupes repliables (maquette G1) : carte blanche, en-tête cliquable, contenu sur fond blanc. Ombre douce au lieu de la
   bordure grise, et plus de filet sous l'en-tête (2026-10-20, retouche 5). */
.tdb-groupe {
    background: #fff;
    border: 1px solid #edf1f4;
    border-radius: 12px;
    box-shadow: 0 1px 2px #10283c0a, 0 4px 14px #10283c0f;
}

.tdb-groupe-tete {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    flex-wrap: wrap;
    row-gap: 6px;
}

.tdb-groupe:not(.replie) > .tdb-groupe-tete {
    border-bottom: 0;
}

.tdb-groupe-tete .chevron {
    font-size: 13px;
    color: #486581;
    transition: transform .15s;
}

.tdb-groupe.replie .chevron {
    transform: rotate(-90deg);
}

.tdb-groupe-titre {
    font-size: 14px;
    font-weight: 500;
    color: #102a43;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.tdb-groupe-titre i {
    color: #0b5ea8;
}

.tdb-groupe-resume {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 8px;
}

.tdb-groupe-lien {
    margin-left: auto;
    white-space: nowrap;
}

.tdb-groupe-corps {
    padding: 12px 14px 14px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.tdb-groupe-corps[hidden] {
    display: none;
}

.tdb-pastille {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 3px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dde4ec;
    color: #334e68;
    font-size: 12px;
    white-space: nowrap;
}

.tdb-pastille b {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--fond, #627d98);
    color: #fff;
    font-size: 11.5px;
    text-align: center;
}

/* Étages à hauteur fixe : chaque bloc défile à l'intérieur, son titre reste visible */
.tdb-etage {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

/* Deux blocs seulement (tableau de bord client : brouillons, favoris) */
.tdb-etage.deux {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tdb-etage > .tdb-pan {
    height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-top: 0;
}

/* Étages SOUPLES (tableau de bord client, 2026-10-24) : la hauteur suit le contenu, entre 160 et 340 px ; au-delà le
   bloc défile. Les blocs d'une même rangée restent alignés sur le plus haut (étirement de la grille). Le tableau de
   bord des agents garde ses 320 px fixes. */
.tdb-etage.souple > .tdb-pan {
    height: auto;
    min-height: 160px;
    max-height: 340px;
}

.tdb-etage > .tdb-pan > h3 {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    padding: 12px 0 6px;
    margin: 0 0 2px;
}

@media (max-width: 1100px) {
    .tdb-haut,
    .tdb-etage,
    .tdb-etage.deux {
        grid-template-columns: minmax(0, 1fr);
    }

    .tdb-tuiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tdb-etage > .tdb-pan {
        height: auto;
        max-height: 360px;
    }
}

/* ---------- Onglet Aperçu : une seule couleur d'accent (#123e8f, 2026-10-18) ----------
   Icônes, badges et boutons de l'Aperçu prennent la couleur des tuiles. Seul le rouge du retard (tuile,
   pastille) reste, comme signal. ⚠️ !important : bat les couleurs en ligne des icônes de titre et les
   .bg-* !important de Bootstrap / app.css. Les fenêtres ouvertes depuis l'Aperçu ne sont pas visées. */
.tdb-apercu {
    --tdb-accent: var(--tdb-principal);
    --tdb-accent-pale: #f2f7f9;
}

/* Icônes */
.tdb-apercu .tdb-pan > h3 > i:not(.bi-star-fill),
.tdb-apercu .tdb-groupe-titre i,
.tdb-apercu .tdb-groupe-tete .chevron,
.tdb-apercu .tdb-li > i:not(.tdb-drapeau),
.tdb-apercu .tdb-li-go,
.tdb-apercu .tdb-vide i {
    color: var(--tdb-accent) !important;
}

.tdb-apercu .tdb-ico {
    background: var(--tdb-accent-pale);
    color: var(--tdb-accent);
}

.tdb-apercu .tdb-ico.non-lu::after {
    background: var(--tdb-accent);
}

/* Badges : point de statut, « Réponse attendue », pastilles des résumés */
body .tdb-apercu .badge.pastille-statut:not(.rounded-pill) {
    --pastille-statut: var(--tdb-accent);
}

.tdb-apercu .badge.rounded-pill {
    background-color: var(--tdb-accent) !important;
    color: #fff !important;
}

/* Boutons et liens */
.tdb-apercu .tdb-btn.p {
    background: var(--tdb-accent);
    box-shadow: 0 3px 10px #0e5a7833;
}

.tdb-apercu .tdb-btn.s {
    color: var(--tdb-accent);
    border-color: #b9c6de;
}

.tdb-apercu .tdb-btn.s:hover {
    background: var(--tdb-accent-pale);
}

.tdb-apercu .tdb-lien,
.tdb-apercu .tdb-seg button.a {
    color: var(--tdb-accent);
}

/* Titres des blocs des étages (maquette T2) : bandeau bleu pâle sur toute la largeur du haut du bloc,
       pour qu'ils ne se fondent plus dans les lignes ; il reste en place au défilement (sticky). */
.tdb-apercu .tdb-etage > .tdb-pan > h3 {
    margin: 0 -16px 4px;
    padding: 10px 16px;
    background: var(--tdb-accent-pale);
    border-bottom: 1px solid #d3dcec;
    border-radius: 9px 9px 0 0;
    color: var(--tdb-accent);
    font-weight: 700;
}

.tdb-apercu .tdb-etage > .tdb-pan > h3 .n {
    color: #356a7e;
}

/* Onglets « Mes favoris | Mes drapeaux » dans le titre du panneau (2026-10-18) */
.tdb-h3-onglets {
    padding-top: 6px !important;
    padding-bottom: 0 !important;
}

.tdb-mini-onglets {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
}

.tdb-mini-onglets button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: none;
    color: #356a7e;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.tdb-mini-onglets button.a {
    border-color: #cfe0e7;
    background: #fff;
    color: var(--tdb-principal);
    font-weight: 700;
}

.tdb-mini-onglets button .n {
    font-weight: 400;
    color: #356a7e;
}

/* Le drapeau d'une ligne garde SA couleur (rouge, orange…), même sous l'accent de l'Aperçu */
.tdb-li > .tdb-drapeau {
    flex: none;
    font-size: 13px;
}

/* ---------- Onglet Statistiques (maquette du 2026-10-18) : vues Graphiques | Chiffres ---------- */
.sta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Barre d'options */
.sta-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 10px 14px;
}

.sta-options label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    font-size: 11.5px;
    font-weight: 500;
    color: #627d98;
}

.sta-options select {
    min-width: 170px;
    padding: 5px 8px;
    border: 1px solid #c3cfdc;
    border-radius: 7px;
    font-size: 12.5px;
    color: #102a43;
    background: #fff;
}

/* Liste de filtre + bouton ✕ (seulement quand un filtre est posé) */
.sta-filtre {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sta-effacer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #e3eff3;
    color: #0e5a78;
    font-size: 11px;
    cursor: pointer;
}

.sta-effacer:hover {
    background: #0e5a78;
    color: #fff;
}

.sta-options .droite {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 4px;
}

.sta-seg {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 8px;
    background: #eef2f7;
}

.sta-seg button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #486581;
    cursor: pointer;
}

.sta-seg button.a {
    background: #0e5a78;
    color: #fff;
    font-weight: 500;
}

/* Interrupteur « Comparer » */
.sta-bascule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 12.5px;
    font-weight: 500;
    color: #102a43;
}

.sta-bascule .rail {
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: 9px;
    background: #c3cfdc;
    transition: background .15s;
}

.sta-bascule .rail::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s;
}

.sta-bascule.on .rail {
    background: #0e5a78;
}

.sta-bascule.on .rail::after {
    left: 18px;
}

/* Deux colonnes : période actuelle | période précédente (ou deux blocs voisins) */
.sta-deux {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.sta-bandeau {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
}

.sta-bandeau b {
    font-size: 14px;
}

.sta-bandeau span {
    font-size: 12.5px;
}

.sta-bandeau.actuelle {
    background: #0e5a78;
    color: #fff;
}

.sta-bandeau.actuelle span {
    color: #cbe2ea;
}

.sta-bandeau.precedente {
    background: #e3eff3;
    color: #0e5a78;
    box-shadow: inset 0 0 0 1px #cfe0e7;
}

.sta-bandeau.precedente span {
    color: #356a7e;
}

/* Bloc à bandeau de titre (style de l'Aperçu) */
.sta-pan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
}

.sta-pan > h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    background: #e6ebf5; /* 2026-10-20, demande de l'utilisateur (d'abord #e3eff3 ; autre choix proposé : #cfe0e7) */
    border-bottom: 1px solid #cfe0e7;
    color: #0e5a78;
    font-size: 13.5px;
    font-weight: 700;
}

.sta-pan > h3 .aide {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 400;
    color: #356a7e;
}

.sta-pan.precedente > h3 {
    background: #f3f5f9;
    color: #356a7e;
}

.sta-pan > .corps {
    flex: 1;
    padding: 12px 16px 14px;
}

.sta-phrase {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #102a43;
}

.sta-phrase b {
    color: #0e5a78;
}

.sta-note {
    font-size: 11.5px;
    color: #627d98;
}

/* Graphique : SVG étiré, axes en HTML */
.sta-graph {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
}

.sta-graph svg {
    display: block;
    width: 100%;
    height: 180px;
}

.sta-plot {
    position: relative;
    min-width: 0;
}

/* Nombre de chaque barre : une colonne par barre, l'étiquette posée à la hauteur de la barre */
.sta-valeurs {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.sta-valeurs span {
    position: relative;
    flex: 1;
    min-width: 0;
}

.sta-valeurs b {
    position: absolute;
    left: 0;
    right: 0;
    margin-bottom: 2px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #0e5a78;
}

/* Barre assez haute : le nombre se loge dedans, en blanc */
.sta-valeurs b.dedans {
    margin-bottom: 0;
    transform: translateY(100%);
    padding-top: 3px;
    color: #fff;
}

/* Accumulation : un point et son nombre au-dessus, sur l'aire ambre */
.sta-plot.accumulation svg {
    height: 150px;
}

.sta-valeurs.points {
    pointer-events: auto;
}

.sta-valeurs.points i {
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    transform: translateY(50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px #c98a12;
}

.sta-valeurs.points b {
    margin-bottom: 7px;
    color: #8a5a00;
}

/* 30 barres dans une demi-largeur : illisible, on garde l'infobulle */
.sta-deux .sta-valeurs.dense {
    display: none;
}

.sta-valeurs.dense b {
    font-size: 10px;
}

.sta-axe-y {
    position: relative;
}

.sta-axe-y span {
    position: absolute;
    right: 6px;
    transform: translateY(-50%);
    font-size: 11px;
    color: #829ab1;
}

.sta-axe-x {
    grid-column: 2;
    display: flex;
    padding-top: 4px;
}

.sta-axe-x span {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 11px;
    color: #627d98;
    white-space: nowrap;
    overflow: visible;
}

/* Point de couleur devant un statut ou une tranche (vue Chiffres) */
.sta-point {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334e68;
    white-space: nowrap;
}

.sta-point::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}

/* Vue Chiffres (maquette C2 du 2026-10-18) : un tableau regroupé par thème et, à sa droite sur écran standard, le
   tableau par période ; l'ensemble est plafonné pour que les chiffres restent près de leur libellé sur écran large. */
.sta-chiffres {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    max-width: 1500px;
}

.sta-colonne {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sta-tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.sta-tableau th {
    padding: 6px 8px;
    border-bottom: 1px solid #e1e8f0;
    text-align: right;
    font-size: 11.5px;
    font-weight: 500;
    color: #627d98;
    white-space: nowrap;
}

.sta-tableau th:first-child {
    text-align: left;
}

.sta-tableau td {
    padding: 7px 8px;
    border-bottom: 1px solid #eef2f7;
}

.sta-tableau td.n {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.sta-tableau td.avant {
    font-weight: 400;
    color: #627d98;
}

.sta-tableau tr.total td {
    font-weight: 700;
    border-bottom: 0;
}

.sta-tableau.groupes tr.groupe td {
    padding-top: 9px;
    background: #f4f7fb;
    color: #0e5a78;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.sta-tableau.groupes tr.groupe td i {
    margin-right: 6px;
}

.sta-tableau.groupes tr.groupe td .resume {
    float: right;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #356a7e;
}

.sta-tableau.groupes tr.cle td:first-child {
    font-weight: 500;
    color: #102a43;
}

.sta-tableau.groupes tr.sous td:first-child {
    padding-left: 28px;
    color: #486581;
}

.sta-tableau .sta-point {
    margin-right: 7px;
}

.sta-tableau .detail {
    margin-left: 4px;
    font-weight: 400;
    color: #829ab1;
}

.sta-tableau.periodes td.n.fort {
    color: #0e5a78;
}

.sta-tableau.periodes tr.total td {
    border-top: 2px solid #e1e8f0;
}

/* Barre de part dans une cellule */
.sta-barre {
    display: inline-block;
    width: 56px;
    height: 7px;
    margin-left: 10px;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 4px;
    background: #eef2f7;
}

.sta-barre i {
    display: block;
    height: 100%;
    background: var(--c);
}

/* Variation du stock : ▲ rouge quand il grossit, ▼ vert quand il baisse */
.sta-variation {
    font-size: 11.5px;
    font-weight: 700;
    color: #627d98;
}

.sta-variation.monte {
    color: #a12d2d;
}

.sta-variation.baisse {
    color: #1d6b43;
}

/* Titre de bloc repliable (tableau par période) */
.sta-pan > h3.repliable {
    cursor: pointer;
    user-select: none;
}

.sta-ecart {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    background: #eef2f7;
    color: #486581;
}

.sta-ecart.bon {
    background: #e3f5ea;
    color: #1d6b43;
}

.sta-ecart.mauvais {
    background: #fbe7e7;
    color: #a12d2d;
}

/* Tâches client en trois volets (maquette TC2 du 2026-10-18) : réponse · délais · rappels */
/* Volets plafonnés et alignés à gauche : sur écran large, ils s'étiraient trop (2026-10-18). */
.sta-tc {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 460px) minmax(0, 340px);
    justify-content: start;
}

.sta-tc > div {
    min-width: 0;
    padding: 4px 18px;
    border-left: 1px solid #e1e8f0;
}

.sta-tc > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.sta-tc > div:last-child {
    padding-right: 0;
}

/* Demi-largeur (« Comparer ») ou écran étroit : anneau et rappels sur une rangée, colonnes en dessous */
.sta-tc.compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 16px;
}

.sta-tc.compact > .v-delais {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8f0;
    max-width: 560px; /* Rapport : la section est pleine largeur, les colonnes s'étiraient trop (2026-10-18) */
}

.sta-tc.compact > .v-rappels {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
}

.sta-tc.compact .sta-anneau svg {
    width: 120px;
    height: 120px;
}

.sta-tc.compact .sta-grand-chiffre {
    font-size: 34px;
}

.sta-sous-titre {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #486581;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sta-sous-titre span {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.sta-sous-titre span b {
    color: #0e5a78;
}

.sta-anneau {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sta-anneau svg {
    flex: none;
    width: 150px;
    height: 150px;
}

.sta-anneau .sta-phrase {
    margin: 0;
}

.sta-colonnes {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 170px;
    padding: 18px 4px 0;
    border-bottom: 1px solid #e1e8f0;
}

.sta-colonnes > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.sta-colonnes .b {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 64px;
    min-height: 2px;
    padding-top: 4px;
    border-radius: 6px 6px 0 0;
    background: var(--c);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.sta-colonnes .b em {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    padding-bottom: 2px;
    text-align: center;
    font-style: normal;
    color: #102a43;
}

.sta-colonnes-axe {
    display: flex;
    gap: 14px;
    padding: 4px 4px 0;
}

.sta-colonnes-axe span {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 11.5px;
    color: #627d98;
}

.sta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.sta-chips span {
    padding: 3px 9px;
    border-radius: 12px;
    background: #f4f7fb;
    font-size: 11.5px;
    color: #334e68;
}

.sta-chips b {
    color: #102a43;
}

.sta-grand-chiffre {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #0e5a78;
}

.sta-jauge {
    height: 14px;
    margin: 10px 0 6px;
    border-radius: 7px;
    overflow: hidden;
    background: #eef2f7;
}

.sta-jauge i {
    display: block;
    height: 100%;
    border-radius: 7px;
    background: #e0a33a;
}

.sta-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sta-mini div {
    padding: 7px 10px;
    border-radius: 8px;
    background: #f4f7fb;
}

.sta-mini b {
    display: block;
    font-size: 16px;
    color: #102a43;
}

.sta-mini span {
    font-size: 11px;
    color: #627d98;
}

/* ---------- Statistiques en trois vues (maquette du 2026-10-18) : tuiles blanches, anneaux, Rapport ---------- */
.sta-tuiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.sta-tuiles.trois {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sta-tuile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    min-height: 104px;
    padding: 10px 12px 8px;
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: #fff;
}

.sta-tuile .fil {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 22px;
    color: #0e5a7830;
}

.sta-tuile .lib {
    font-size: 12px;
    font-weight: 500;
    color: #102a43;
}

.sta-tuile .val {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.sta-tuile .val b {
    font-size: 26px;
    line-height: 1.15;
    color: #0e5a78;
}

.sta-tuile .courbe {
    display: block;
    width: 100%;
    height: 28px;
    margin-top: 4px;
}

.sta-tuile .sous {
    margin-top: auto;
    font-size: 11px;
    color: #356a7e;
}

/* Grille 2 × 2 de la vue Graphiques */
.sta-grille {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 12px;
}

/* Anneau + liste (délais, statuts) */
.sta-donut {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sta-anneau-svg {
    flex: none;
    width: 140px;
    height: 140px;
}

.sta-liste {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    max-width: 400px;
    font-size: 12.5px;
    color: #334e68;
}

.sta-liste > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sta-liste > div::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c);
}

.sta-liste > div b {
    margin-left: auto;
    color: #102a43;
}

.sta-liste > div small {
    width: 40px;
    text-align: right;
    color: #627d98;
}

.sta-liste > div.entete,
.sta-liste > div.note {
    font-size: 11px;
    color: #627d98;
}

.sta-liste > div.entete::before,
.sta-liste > div.note::before {
    visibility: hidden;
}

.sta-liste > div.total {
    padding-top: 5px;
    border-top: 1px solid #e1e8f0;
}

/* Légende sous un graphique superposé */
.sta-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #334e68;
}

.sta-legende span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sta-legende span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c);
}

.sta-legende span.pointille::before {
    height: 0;
    border-top: 2px dashed var(--c);
    background: none;
}

/* Vue Rapport : bandeau « En bref » et sections numérotées.
   Bandeau compact et clair (2026-10-20, demande de l'utilisateur : il occupait trop de place) : les quatre chiffres sur
   UNE rangée au lieu d'une grille 2 × 2, texte à 14,5 px au lieu de 18, marges réduites ; fond gris-bleu #e6ebf5 (celui
   des en-têtes .sta-pan) au lieu du dégradé pétrole, chiffres sur tuiles blanches. Les écarts reprennent leurs couleurs
   bon / mauvais, que le blanc translucide masquait. */
.sta-bref {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #b9cadb;
    border-radius: 10px;
    background: #cedbe9; /* choisi par l'utilisateur le 2026-10-20 (d'abord #e6ebf5) */
    color: #102a43;
}

.sta-bref h3 {
    margin: 0 0 4px;
    font-size: 13px; /* 11 px d'abord : trop petit (2026-10-20) */
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #1f4f66; /* plus foncé que #356a7e : lisible sur #cedbe9 */
}

.sta-bref p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
}

.sta-bref p b {
    color: #0e5a78;
}

.sta-bref .chiffres {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 8px;
}

.sta-bref .chiffres div {
    min-width: 92px;
    max-width: 130px;
    padding: 6px 12px;
    border: 1px solid #dbe6eb;
    border-radius: 8px;
    background: #fff;
}

.sta-bref .chiffres b {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    color: #0e5a78;
}

.sta-bref .chiffres span {
    margin-right: 6px;
    font-size: 11.5px;
    line-height: 1.25;
    color: #486581;
}

/* Petit écran : les quatre chiffres repassent sur deux rangées. */
@media (max-width: 640px) {
    .sta-bref .chiffres {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sta-bref .chiffres div {
        max-width: none;
    }
}

.sta-section {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: #fff;
}

.sta-section > .texte {
    padding: 18px 20px;
    border-right: 1px solid #e1e8f0;
    background: #f8fafc;
}

.sta-section > .texte .num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #356a7e;
}

.sta-section > .texte h4 {
    margin: 4px 0 8px;
    font-size: 16px;
    color: #102a43;
}

.sta-section > .texte p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334e68;
}

.sta-section > .texte p b {
    color: #0e5a78;
}

.sta-section > .visuel {
    min-width: 0;
    padding: 18px 20px;
}

/* Impression du Rapport : seul l'onglet Statistiques, sans la barre d'options */
@media print {
    body * {
        visibility: hidden;
    }

    .sta,
    .sta * {
        visibility: visible;
    }

    .sta {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .sta-options {
        display: none !important;
    }

    .sta-bref,
    .sta-section {
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 1100px) {
    .sta-deux,
    .sta-chiffres,
    .sta-grille,
    .sta-bref,
    .sta-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .sta-tuiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sta-section > .texte {
        border-right: 0;
        border-bottom: 1px solid #e1e8f0;
    }

    .sta-options .droite {
        margin-left: 0;
    }

    .sta-tc {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 16px;
    }

    .sta-tc > .v-delais {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 14px 0 0;
        border-left: 0;
        border-top: 1px solid #e1e8f0;
    }

    .sta-tc > .v-rappels {
        grid-column: 2;
        grid-row: 1;
    }
}

/* ---------- Onglet Système en console (maquette S3 du 2026-10-18) : une piste par mesure + les connectés ---------- */
.sys {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 12px;
    align-items: start;
}

.sys-pistes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.sys-piste {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: #fff;
}

.sys-piste .gauche {
    padding: 12px 14px;
    border-left: 4px solid var(--c);
    border-right: 1px solid #e1e8f0;
}

.sys-piste .gauche .lib {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #627d98;
}

.sys-piste .gauche .lib i {
    color: var(--c);
}

.sys-piste .gauche b {
    display: block;
    margin: 2px 0;
    font-size: 26px;
    color: #102a43;
}

.sys-piste .gauche .stats {
    font-size: 11px;
    line-height: 1.5;
    color: #627d98;
}

.sys-piste .droite {
    min-width: 0;
    padding: 10px 14px 8px;
}

.sys-piste .droite svg {
    display: block;
    width: 100%;
    height: 92px;
}

.sys-axe {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: #627d98;
}

.sys-direct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #1d6b43;
}

.sys-direct::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d6b43;
    animation: sys-pouls 1.6s infinite;
}

@keyframes sys-pouls {
    0% {
        box-shadow: 0 0 0 0 #1d6b4366;
    }

    70% {
        box-shadow: 0 0 0 7px #1d6b4300;
    }

    100% {
        box-shadow: 0 0 0 0 #1d6b4300;
    }
}

.sys-recherche {
    width: 100%;
    margin-bottom: 6px;
    padding: 6px 10px;
    border: 1px solid #c3cfdc;
    border-radius: 7px;
    font-size: 12.5px;
}

.sys-usagers .corps {
    max-height: 520px;
    overflow: auto;
    scrollbar-width: thin;
}

.sys-usagers .ligne {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f3f7;
}

.sys-usagers .ligne .av {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e3eff3;
    color: #0e5a78;
    font-size: 11.5px;
    font-weight: 700;
}

.sys-usagers .ligne .nom {
    flex: 1;
    min-width: 0;
}

.sys-usagers .ligne .nom b {
    display: block;
    overflow: hidden;
    font-weight: 500;
    color: #102a43;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sys-usagers .ligne .nom small {
    color: #627d98;
}

.sys-usagers .ligne .badge-sessions {
    padding: 1px 7px;
    border-radius: 9px;
    background: #eef2f7;
    font-size: 11px;
    color: #334e68;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .sys {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .sys-piste {
        grid-template-columns: minmax(0, 1fr);
    }

    .sys-piste .gauche {
        border-right: 0;
        border-bottom: 1px solid #e1e8f0;
    }
}
