/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Navigation de section dans l'entête : le flux (Leads › Soumissions › Commandes ›
   Production) puis le suivi, en retrait. CSS isolé (scoped) — ne touche pas app.css.
   Couleurs via tokens d'app.css. */
.section-nav[b-ho34x1x8p0] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    justify-content: center;
}

/* Un groupe reste soudé : le flux ne se coupe pas au milieu d'un chevron. */
.nav-groupe[b-ho34x1x8p0] { display: inline-flex; align-items: center; gap: 2px; }

/* Le chevron dit que ces quatre écrans sont UNE chaîne, pas quatre destinations. */
.nav-chevron[b-ho34x1x8p0] {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1;
    user-select: none;
}

/* Le suivi est transversal, pas une étape : séparé, et visuellement plus léger. */
.nav-suivi[b-ho34x1x8p0] {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}
.nav-suivi .section-link[b-ho34x1x8p0] { font-size: 13px; }

.section-link[b-ho34x1x8p0] {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.section-link:hover[b-ho34x1x8p0] {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.section-link.is-active[b-ho34x1x8p0] {
    color: var(--accent);
    background: var(--accent-soft);
}

@media (max-width: 1130px) {
    .section-link[b-ho34x1x8p0] { padding: 6px 9px; font-size: 13px; }
    .nav-chevron[b-ho34x1x8p0] { display: none; }
    .nav-suivi[b-ho34x1x8p0] { margin-left: 6px; padding-left: 6px; }
}

/* La navigation occupe sa propre rangée (voir app.css). Quand cette rangée elle-même ne
   suffit plus — la barre mesure ~1073 px + 48 px de marges —, deux régimes :

   • TABLETTE (641-1130 px) : elle passe à la ligne, groupe par groupe. Le défilement
     horizontal d'avant coupait « Tâches » à 820 px et cachait « Rapports » sans le moindre
     indice qu'il restait quelque chose à droite. Chaque groupe reste soudé (flex: none) : le
     flux ne se coupe jamais au milieu, il garde son ordre, le suivi passe dessous.
   • TÉLÉPHONE (≤ 640 px) : trois rangées de navigation mangeraient l'écran sous une barre
     collante. Elle DÉFILE donc, avec un fondu au bord droit qui dit « il y en a encore » ;
     la marge de fin laisse le dernier lien sortir du fondu quand on arrive au bout.
     `justify-content: flex-start` est obligatoire : centré, le début d'un conteneur qui
     déborde devient inatteignable au défilement. */
@media (max-width: 1130px) {
    .nav-groupe[b-ho34x1x8p0]   { flex: none; }
    .section-link[b-ho34x1x8p0] { white-space: nowrap; }
}
@media (max-width: 640px) {
    .section-nav[b-ho34x1x8p0] {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-inline-end: 28px;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
                mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    }
    .section-nav[b-ho34x1x8p0]::-webkit-scrollbar { display: none; }
    .section-link[b-ho34x1x8p0] { padding: 5px 7px; font-size: 12.5px; }
    .nav-suivi .section-link[b-ho34x1x8p0] { font-size: 12.5px; }
}

/* Point "Prêt" de l'entête — override du .status-dot partagé (voir app.css), scopé à cette page. */
.appbar .status-dot[b-ho34x1x8p0] {
    background: var(--accent-progression);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-progression) 18%, transparent);
}

/* Recherche globale — un formulaire GET, donc utilisable sans circuit interactif. */
.recherche-globale[b-ho34x1x8p0] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    /* --bg-surface n'existait pas (champ transparent). --bg-glass est réécrit par .appbar
       en voile blanc à 10 % : le champ se détache du bleu comme le sélecteur voisin. */
    background: var(--bg-glass);
    color: var(--text-muted);
}
.recherche-globale:focus-within[b-ho34x1x8p0] { border-color: var(--accent); color: var(--accent); }
.recherche-champ[b-ho34x1x8p0] {
    border: none;
    background: none;
    outline: none;
    font: inherit;
    font-size: 13px;
    color: var(--text-primary);
    width: 190px;
}
.recherche-champ[b-ho34x1x8p0]::placeholder { color: var(--text-muted); }
@media (max-width: 900px) {
    .recherche-champ[b-ho34x1x8p0] { width: 110px; }
}

/* Cloche : pastille du nombre de notifications non lues. */
.btn-icon[b-ho34x1x8p0] { position: relative; }
.badge-cloche[b-ho34x1x8p0] {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: var(--radius-sm);
    background: var(--status-danger-plein);
    color: var(--texte-sur-plein);
    font-size: var(--fs-xxs); /* 11 px : le plancher du guide */
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

/* Identité courante — ouvre le menu personnel (mon compte, mes notifications, thème, sortir). */
.menu-identite[b-ho34x1x8p0] { position: relative; }
.menu-identite > summary[b-ho34x1x8p0] { list-style: none; cursor: pointer; }
.menu-identite > summary[b-ho34x1x8p0]::-webkit-details-marker { display: none; }
.menu-identite[open] > summary[b-ho34x1x8p0] { border-color: var(--accent); color: var(--accent); }
.menu-identite-panneau[b-ho34x1x8p0] {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: var(--z-dropdown);
    min-width: 220px;
    padding: 6px;
    display: grid;
    gap: 2px;
    background: var(--menu-fond);
    border: 1px solid var(--menu-trait);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--menu-texte);
}
.menu-identite-tete[b-ho34x1x8p0] {
    padding: 8px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--menu-muet);
}
.menu-identite-panneau a[b-ho34x1x8p0],
.menu-identite-panneau button[b-ho34x1x8p0] {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--menu-texte);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.menu-identite-panneau a:hover[b-ho34x1x8p0],
.menu-identite-panneau button:hover[b-ho34x1x8p0] { background: var(--menu-survol); color: var(--menu-accent); }
.menu-identite-panneau form[b-ho34x1x8p0] { margin: 0; border-top: 1px solid var(--menu-trait); padding-top: 4px; margin-top: 4px; }

.chip-identite[b-ho34x1x8p0] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px 3px 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
}
.chip-identite:hover[b-ho34x1x8p0] { border-color: var(--accent); color: var(--accent); }
.chip-initiales[b-ho34x1x8p0] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    /* --accent-fill, pas --accent : le second s'éclaircit en thème sombre pour rester
       lisible en TEXTE, ce qui ruinerait le contraste du blanc par-dessus. */
    background: var(--accent-fill);
    color: var(--texte-sur-plein);
    font-size: var(--fs-xxs);
    font-weight: 700;
}
@media (max-width: 640px) {
    .chip-nom[b-ho34x1x8p0] { display: none; }
}
/* /Components/Layout/PersonnificationSelecteur.razor.rz.scp.css */
/* Sélecteur « voir en tant que » de la barre d'app (patron visuel du starter kit). */
.personnification[b-rfa7g2lmxn] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.personnification-select[b-rfa7g2lmxn] {
    height: 32px;
    width: auto;
    max-width: 180px;
    padding: 4px 28px 4px 8px; /* la place du chevron du <select>, norme maison */
    font-size: 12.5px;
    /* La barre d'app réécrit les jetons de texte en blanc (elle vit sur le bleu) mais pas
       --bg-elevated : en thème clair, `.input` donnait blanc sur blanc — noms invisibles.
       Fond translucide comme la recherche, et liste déroulante sur le marine de la barre. */
    background: var(--bg-glass);
    color: var(--text-primary);
    color-scheme: dark;
}
.personnification-select option[b-rfa7g2lmxn] {
    background: var(--fond-haut);
    color: var(--fond-encre);
}

/* Personnification EN COURS : le sélecteur passe à l'accent — « ceci n'est pas ma vue »
   doit se voir d'un coup d'œil, pas se déduire. */
.personnification.est-active .personnification-select[b-rfa7g2lmxn] {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.personnification-badge[b-rfa7g2lmxn] {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    color: var(--accent);
    background: var(--accent-soft);
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Le bandeau de reconnexion (voir ReconnectModal.razor). Les classes d'état sont posées par
   Blazor sur le <dialog> ; chaque texte et chaque bouton ne se montre que dans son état. */

.si-tentative[b-szmpehjxm2],
.si-nouvelle-tentative[b-szmpehjxm2],
.si-echec[b-szmpehjxm2],
.si-pause[b-szmpehjxm2],
.si-reprise-echec[b-szmpehjxm2] { display: none; }

.components-reconnect-show .si-tentative[b-szmpehjxm2],
.components-reconnect-retrying .si-nouvelle-tentative[b-szmpehjxm2],
.components-reconnect-failed .si-echec[b-szmpehjxm2],
.components-reconnect-paused .si-pause[b-szmpehjxm2],
.components-reconnect-resume-failed .si-reprise-echec[b-szmpehjxm2] { display: inline; }
/* « retrying » arrive avec « show » retiré, mais par prudence : un seul texte à la fois. */
.components-reconnect-retrying .si-tentative[b-szmpehjxm2] { display: none; }

.components-reconnect-failed button.si-echec[b-szmpehjxm2],
.components-reconnect-paused button.si-pause[b-szmpehjxm2],
.components-reconnect-resume-failed button.si-reprise-echec[b-szmpehjxm2] { display: inline-flex; }

/* Un bandeau en bas, centré, pas une boîte au milieu de l'écran. */
.reconnexion[b-szmpehjxm2] {
    position: fixed;
    inset: auto 0 20px 0;
    margin: 0 auto;
    max-width: min(640px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}
/* showModal() pose le focus sur le <dialog> lui-même quand aucun bouton n'est visible : le
   cadre de focus du navigateur dessinait alors un épais contour noir autour d'un texte qui ne
   se manipule pas. Les boutons, eux, gardent leur anneau. */
.reconnexion:focus[b-szmpehjxm2],
.reconnexion:focus-visible[b-szmpehjxm2] { outline: none; }
.reconnexion[open][b-szmpehjxm2] { animation: reconnexion-entree-b-szmpehjxm2 0.2s ease-out; }
/* Le voile est presque transparent : la page reste lisible, mais inerte (showModal). */
.reconnexion[b-szmpehjxm2]::backdrop { background: rgba(var(--bg-primary-rgb), 0.35); }

.reconnexion-corps[b-szmpehjxm2] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 16px;
}
.reconnexion-texte[b-szmpehjxm2] { flex: 1 1 240px; margin: 0; font-size: 13.5px; line-height: 1.45; }
.reconnexion-gestes[b-szmpehjxm2] { display: flex; gap: 8px; }
.reconnexion-gestes button[b-szmpehjxm2] { display: none; }

/* La roue ne tourne que pendant les tentatives : après l'échec, elle mentirait. */
.reconnexion-roue[b-szmpehjxm2] {
    display: none;
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: reconnexion-tour-b-szmpehjxm2 0.9s linear infinite;
}
.components-reconnect-show .reconnexion-roue[b-szmpehjxm2],
.components-reconnect-retrying .reconnexion-roue[b-szmpehjxm2] { display: inline-block; }

@keyframes reconnexion-tour-b-szmpehjxm2 { to { transform: rotate(360deg); } }
@keyframes reconnexion-entree-b-szmpehjxm2 { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
    .reconnexion[open][b-szmpehjxm2] { animation: none; }
    .reconnexion-roue[b-szmpehjxm2] { animation-duration: 2.4s; }
}
/* /Components/Pages/CataloguePage.razor.rz.scp.css */
/* Styles de la page Catalogue.
   La disposition (barre latérale groupée, cartes, zone de danger) vient du design
   system global (app.css → « Configuration — barre latérale groupée ») ; ne
   restent ici que les grilles éditables, partagées d'idiome avec les autres
   écrans de réglage. */

/* ── Tables éditables ─────────────────────────────────────────────────────────── */
.edit-scroll[b-jx2l8lqq3d] { overflow-x: auto; }
.edit-table td[b-jx2l8lqq3d] { padding: 5px 6px; vertical-align: middle; }
.edit-table .input[b-jx2l8lqq3d] { font-size: 13px; padding: 6px 8px; min-width: 130px; }
.edit-table .input.lg[b-jx2l8lqq3d] { min-width: 260px; }
.edit-table .input.sm[b-jx2l8lqq3d] { min-width: 110px; }
.edit-table .input.xs[b-jx2l8lqq3d] { min-width: 70px; max-width: 110px; }
.edit-table .input.num[b-jx2l8lqq3d] { text-align: right; font-variant-numeric: tabular-nums; }

/* ── En-tête d'une carte recette : le sélecteur d'article produit à gauche,
   le ✕ de retrait à sa droite — sur UNE ligne, quel que soit le libellé. */
.recette-head[b-jx2l8lqq3d] { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.recette-head .input[b-jx2l8lqq3d] { flex: 1; min-width: 0; }

/* ── Parcours de fabrication : une case par étape, centrée sous son en-tête ─────── */
.parcours-table th.parcours-etape[b-jx2l8lqq3d],
.parcours-table td.parcours-etape[b-jx2l8lqq3d] { text-align: center; width: 84px; }
.parcours-table td.parcours-etape input[b-jx2l8lqq3d] { width: 16px; height: 16px; cursor: pointer; }
.parcours-table td.parcours-etape input:disabled[b-jx2l8lqq3d] { cursor: default; }

/* Étiquettes de production : trois blocs de réglage, chacun avec son titre. */
.etq-reglage[b-jx2l8lqq3d] { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.etq-reglage legend[b-jx2l8lqq3d] { padding: 0; margin-bottom: 8px; }
.etq-reglage .choix-role-nom[b-jx2l8lqq3d] { display: block; }
/* /Components/Pages/ClientDetail.razor.rz.scp.css */
.detail-2col[b-zre76rnla4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
@media (max-width: 900px) {
    .detail-2col[b-zre76rnla4] { grid-template-columns: 1fr; }
}

.totaux-liste[b-zre76rnla4] { list-style: none; margin: 0; padding: 0; }
.totaux-liste li[b-zre76rnla4] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13.5px;
}
.totaux-liste li:last-child[b-zre76rnla4] { border-bottom: none; }
.totaux-liste li span[b-zre76rnla4] { color: var(--text-secondary); }
.totaux-liste li strong[b-zre76rnla4] { text-align: right; }

.kpi-grid[b-zre76rnla4] { margin-bottom: 18px; }

/* L'état « contact principal » utilise la pastille `.chip.is-on` du style guide,
   définie globalement dans app.css — plus rien à surcharger ici. */

/* ── Les projets du compte ──────────────────────────────────────────────────
   La rangée d'en-tête d'un projet et l'indentation de ses pièces : c'est
   l'écart visuel entre les deux qui fait lire le regroupement d'un coup d'œil.
   Les jetons suivent le thème, donc clair et sombre restent d'accord. */
.data-table tr.row-projet td[b-zre76rnla4] {
    background: var(--bg-tertiary);
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
}
.data-table tr.row-projet td .pill[b-zre76rnla4] { margin-left: 8px; }
.data-table tr.row-projet td .text-muted[b-zre76rnla4] { font-weight: 400; margin-left: 6px; }

/* Le décalage dit « cette pièce appartient au projet du dessus » sans une ligne
   de plus dans le tableau. */
.data-table td.cell-membre[b-zre76rnla4] { padding-left: 24px; }
/* /Components/Pages/CommandeDetail.razor.rz.scp.css */
/* La fiche commande — ce qui reste propre à la PAGE. L'idiome « fiche » (entête,
   chemin de vie, faits clés, prochain geste, onglets, rail) vit dans app.css : la
   fiche soumission le partage. Les sections (lignes, changements, documents…)
   gardent chacune leur carte et leur CSS scoped. */

.fiche-principal[b-ukfan67smk] { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* La barre d'onglets seule : les sections rendent leurs propres cartes dessous. ::deep, parce
   que les onglets sont rendus par le composant partagé <Onglets>, hors de la portée de cette page. */
.onglets-seuls[b-ukfan67smk]  .onglets-fiche { padding: 2px 6px 0; border-bottom: 0; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.onglets-seuls[b-ukfan67smk]  .tab { padding: 9px 10px; font-size: 13px; white-space: nowrap; }

/* Le compteur « ⚠ » du matériel se lit comme une alerte, pas comme un compte. */
.tab-count.est-alerte[b-ukfan67smk] { background: var(--status-danger-fond); color: var(--status-danger-texte); }

/* Le rail : le dossier d'abord. Les chips de statut tiennent sur deux lignes. */
.rail-carte .seg[b-ukfan67smk] { display: flex; flex-wrap: wrap; gap: 6px; }

/* Indicateur de charge d'acier — bleu, pour ne pas se confondre avec le vert
   « terminé » que porte .pill-ok ailleurs. */
.rail-titre .status-row[b-ukfan67smk] { font-weight: 500; }
.rail-titre .status-dot[b-ukfan67smk] { background: var(--accent-progression); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-progression) 18%, transparent); }
/* /Components/Pages/Commandes.razor.rz.scp.css */
/* Le carnet de commandes : UNE carte, un menu d'onglets intégré à sa tête, et le
   corps de la vue choisie dessous. Les onglets reprennent l'idiome .tab de l'app
   (gris, accent bleu à l'actif, compteur en pastille) ; ce qui s'ajoute ici, c'est
   le mouvement — le filet qui s'étire sous l'onglet choisi, le corps qui entre en
   fondu, les cartes qui arrivent l'une après l'autre. Tout s'éteint sous
   prefers-reduced-motion. */

.carnet-vues[b-pkxgk8uzrt] { padding: 0; overflow: hidden; }

/* ══ Le menu ═══════════════════════════════════════════════════════════════ */

.vues-commandes[b-pkxgk8uzrt] {
    display: flex;
    gap: 2px;
    padding: 6px 12px 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-glass) 0%, transparent 100%);
    overflow-x: auto;
    scrollbar-width: none;
}
.vues-commandes[b-pkxgk8uzrt]::-webkit-scrollbar { display: none; }

.vue-onglet[b-pkxgk8uzrt] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 13px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: color var(--transition), background-color var(--transition);
}
.vue-onglet:hover[b-pkxgk8uzrt] { color: var(--text-primary); background: var(--bg-glass-hover); }
.vue-onglet:focus-visible[b-pkxgk8uzrt] { outline: none; box-shadow: inset 0 0 0 2px var(--accent-soft), inset 0 0 0 1px var(--accent); }

/* Le filet : il s'étire depuis le centre sous l'onglet choisi, au lieu d'apparaître. */
.vue-onglet[b-pkxgk8uzrt]::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vue-onglet.is-active[b-pkxgk8uzrt] { color: var(--accent); }
.vue-onglet.is-active[b-pkxgk8uzrt]::after { transform: scaleX(1); animation: vue-filet-b-pkxgk8uzrt 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.vue-onglet-icone[b-pkxgk8uzrt] { display: inline-flex; opacity: 0.75; }
.vue-onglet.is-active .vue-onglet-icone[b-pkxgk8uzrt] { opacity: 1; }

.vue-onglet-compte[b-pkxgk8uzrt] {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    transition: background-color var(--transition), color var(--transition);
}
.vue-onglet.is-active .vue-onglet-compte[b-pkxgk8uzrt] { background: var(--accent-soft); color: var(--accent); }
/* Jaune : quelqu'un doit décider — la seule chose que le jaune veut dire dans l'app. */
.vue-onglet-compte.est-attente[b-pkxgk8uzrt] { background: var(--status-warning-fond); color: var(--status-warning-texte); }

/* Le point rouge d'« Amendées » : un client tient un papier périmé. Il bat doucement. */
.vue-onglet-alerte[b-pkxgk8uzrt] {
    position: absolute;
    top: 9px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-danger);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-danger) 45%, transparent);
    animation: vue-pouls-b-pkxgk8uzrt 2.4s ease-out infinite;
}

/* ══ Le corps ══════════════════════════════════════════════════════════════ */

.vue-corps[b-pkxgk8uzrt] { padding: 16px 20px 20px; animation: vue-entree-b-pkxgk8uzrt 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.vue-squelette[b-pkxgk8uzrt] { display: grid; gap: 10px; }
.vue-squelette span[b-pkxgk8uzrt] {
    display: block;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--shimmer);
    background-size: 200% 100%;
    animation: vue-miroir-b-pkxgk8uzrt 1.4s linear infinite;
}
.vue-squelette span:nth-child(2)[b-pkxgk8uzrt] { width: 86%; }
.vue-squelette span:nth-child(3)[b-pkxgk8uzrt] { width: 64%; }

/* ══ À trancher : une carte par commande ═══════════════════════════════════
   Une carte plutôt qu'une rangée, parce que la JUSTIFICATION est le contenu
   principal et qu'elle ne tient pas en cellule. */

.chg-liste[b-pkxgk8uzrt] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.chg-carte[b-pkxgk8uzrt] {
    position: relative;
    border: 1px solid var(--border);
    border-left: 3px solid var(--status-warning);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: var(--bg-secondary);
    animation: carte-entree-b-pkxgk8uzrt 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition: box-shadow var(--transition), transform var(--transition);
}
.chg-carte:hover[b-pkxgk8uzrt] { box-shadow: var(--shadow-md); }

.chg-tete[b-pkxgk8uzrt], .amd-tete[b-pkxgk8uzrt] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.chg-numero[b-pkxgk8uzrt], .amd-numero[b-pkxgk8uzrt] {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.chg-numero:hover[b-pkxgk8uzrt], .amd-numero:hover[b-pkxgk8uzrt] { text-decoration: underline; }
.chg-client[b-pkxgk8uzrt], .amd-client[b-pkxgk8uzrt] { font-weight: 500; color: var(--text-primary); }
.chg-attente[b-pkxgk8uzrt] { margin-left: auto; }

/* Les demandes en attente — en retrait, sous le dossier : c'est la commande qu'on
   ouvre, elles ne sont que ce qu'on lui demande. */
.chg-demandes[b-pkxgk8uzrt] {
    list-style: none;
    margin: 0 0 12px;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--border);
}
.chg-demandes li + li[b-pkxgk8uzrt] {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}
.chg-demande-tete[b-pkxgk8uzrt] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chg-par[b-pkxgk8uzrt] { font-size: 12.5px; color: var(--text-muted); }
.chg-manque[b-pkxgk8uzrt] { margin: 6px 0 0; font-size: 12.5px; color: var(--text-muted); }
.chg-justif[b-pkxgk8uzrt] {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* ══ Amendées : la piste des versions ══════════════════════════════════════ */

.amd-barre[b-pkxgk8uzrt] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.amd-recherche[b-pkxgk8uzrt] { max-width: 280px; flex: 1 1 200px; }

.amd-legende[b-pkxgk8uzrt] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.amd-legende span[b-pkxgk8uzrt] { display: inline-flex; align-items: center; gap: 6px; }
.amd-legende .amd-repere[b-pkxgk8uzrt] { width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.amd-trait-ecart[b-pkxgk8uzrt] {
    width: 22px;
    height: 0;
    border-top: 2px dashed var(--status-danger);
}

.amd-vide[b-pkxgk8uzrt] { margin: 8px 0; }
.amd-liste[b-pkxgk8uzrt] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.amd-carte[b-pkxgk8uzrt] {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px 6px;
    background: var(--bg-secondary);
    animation: carte-entree-b-pkxgk8uzrt 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.amd-carte:hover[b-pkxgk8uzrt] { box-shadow: var(--shadow-md); }
/* Deux papiers circulent : la carte le porte d'un liseré rouge, discret mais net. */
.amd-carte.est-ecart[b-pkxgk8uzrt] { border-color: var(--status-danger-bord); box-shadow: inset 3px 0 0 var(--status-danger); }
.amd-carte.est-ecart:hover[b-pkxgk8uzrt] { box-shadow: inset 3px 0 0 var(--status-danger), var(--shadow-md); }

.amd-actions[b-pkxgk8uzrt] { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }

/* La piste : une rangée de jalons reliés par un trait. Elle défile à l'horizontale
   quand une commande a beaucoup de versions, chaque jalon s'aimantant au bord. */
.amd-piste[b-pkxgk8uzrt] {
    list-style: none;
    margin: 0;
    padding: 4px 2px 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 260px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.amd-jalon[b-pkxgk8uzrt] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 14px;
    scroll-snap-align: start;
    animation: jalon-entree-b-pkxgk8uzrt 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms + var(--j, 1) * 60ms);
}

/* Le trait vers le jalon suivant, tiré depuis le nœud. */
.amd-jalon[b-pkxgk8uzrt]::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 34px;
    right: 0;
    height: 2px;
    background: var(--border);
}
.amd-jalon:last-child[b-pkxgk8uzrt]::before { display: none; }
/* Le trait qui MÈNE à une version que le client n'a pas : tireté rouge. Il est porté
   par le jalon précédent — on marque donc le jalon qui précède un « dans-ecart ». */
.amd-jalon:has(+ .dans-ecart)[b-pkxgk8uzrt]::before {
    height: 0;
    background: none;
    border-top: 2px dashed var(--status-danger);
}

.amd-noeud[b-pkxgk8uzrt] {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 0 1px var(--border);
}
.amd-jalon.est-courante .amd-noeud[b-pkxgk8uzrt] {
    color: var(--texte-sur-plein);
    background: var(--accent-gradient);
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft);
}
.amd-jalon.est-papier:not(.est-courante) .amd-noeud[b-pkxgk8uzrt] {
    color: var(--status-accent-texte);
    background: var(--status-accent-fond);
    box-shadow: 0 0 0 1px var(--status-accent-bord);
}
.amd-jalon.dans-ecart.est-courante .amd-noeud[b-pkxgk8uzrt] {
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--status-danger-fond);
}

.amd-reperes[b-pkxgk8uzrt] { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.amd-repere[b-pkxgk8uzrt] {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.amd-repere.est-atelier[b-pkxgk8uzrt] { background: var(--accent-soft); color: var(--accent); }
.amd-legende .amd-repere.est-atelier[b-pkxgk8uzrt] { background: var(--accent); }
.amd-repere.est-client[b-pkxgk8uzrt] { background: var(--status-accent-fond); color: var(--status-accent-texte); }
.amd-legende .amd-repere.est-client[b-pkxgk8uzrt] { background: var(--status-accent-texte); }

.amd-quoi[b-pkxgk8uzrt] { font-size: 13.5px; line-height: 1.35; color: var(--text-primary); }
.amd-quoi strong[b-pkxgk8uzrt] { font-weight: 600; }

.amd-meta[b-pkxgk8uzrt] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.amd-delta[b-pkxgk8uzrt] { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.amd-delta.est-hausse[b-pkxgk8uzrt] { color: var(--status-danger-texte); }
.amd-delta.est-baisse[b-pkxgk8uzrt] { color: var(--status-success-texte); }
.amd-delai[b-pkxgk8uzrt] { font-weight: 600; color: var(--status-warning-texte); }

/* ══ Le mouvement ══════════════════════════════════════════════════════════ */

@keyframes vue-entree-b-pkxgk8uzrt { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes vue-filet-b-pkxgk8uzrt { from { transform: scaleX(0.2); opacity: 0.4; } to { transform: scaleX(1); opacity: 1; } }
@keyframes carte-entree-b-pkxgk8uzrt { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes jalon-entree-b-pkxgk8uzrt { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes vue-miroir-b-pkxgk8uzrt { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes vue-pouls-b-pkxgk8uzrt {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-danger) 45%, transparent); }
    70%  { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .vue-corps[b-pkxgk8uzrt], .chg-carte[b-pkxgk8uzrt], .amd-carte[b-pkxgk8uzrt], .amd-jalon[b-pkxgk8uzrt], .vue-onglet.is-active[b-pkxgk8uzrt]::after,
    .vue-onglet-alerte[b-pkxgk8uzrt], .vue-squelette span[b-pkxgk8uzrt] { animation: none; }
    .vue-onglet[b-pkxgk8uzrt]::after { transition: none; }
}

@media (max-width: 640px) {
    .vue-corps[b-pkxgk8uzrt] { padding: 14px; }
    .vues-commandes[b-pkxgk8uzrt] { padding: 4px 6px 0; }
    .vue-onglet[b-pkxgk8uzrt] { padding: 11px 9px 12px; gap: 6px; }
    .vue-onglet-icone[b-pkxgk8uzrt] { display: none; }
    .amd-actions[b-pkxgk8uzrt] { margin-left: 0; width: 100%; justify-content: space-between; }
    .chg-attente[b-pkxgk8uzrt] { margin-left: 0; }
}
/* /Components/Pages/Compte.razor.rz.scp.css */
/* Ce que l'application sait de la session, une ligne par fait : l'étiquette à gauche, la valeur
   à droite — lisible d'un coup d'œil, comme un reçu. */
.compte-faits[b-8yyrxli4sb] {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compte-faits li[b-8yyrxli4sb] {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.compte-faits span[b-8yyrxli4sb] { color: var(--text-muted); }
.compte-faits strong[b-8yyrxli4sb] { text-align: right; color: var(--text-primary); }

/* L'activité récente : une ligne par événement, la date à chasse fixe. */
.compte-activite[b-8yyrxli4sb] { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.compte-activite li[b-8yyrxli4sb] { overflow-wrap: anywhere; }
.compte-quand[b-8yyrxli4sb] { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--text-muted); margin-right: 6px; }
/* /Components/Pages/CompteDoubleAuthentification.razor.rz.scp.css */
/* Le code QR : un carré blanc à marge calme, même en thème sombre — un lecteur lit mal un code
   inversé. Taille bornée : lisible par un téléphone tenu à 30 cm, sans dévorer la page. */
.qr-double-auth[b-kl35kcjsgl] {
    width: min(240px, 100%);
    margin: 12px 0 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.qr-double-auth[b-kl35kcjsgl]  svg {
    display: block;
    width: 100%;
    height: auto;
}

.cle-manuelle[b-kl35kcjsgl] {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    word-break: break-word;
}

/* Deux colonnes de codes : ils se recopient ou s'impriment d'un coup d'œil. */
.codes-secours[b-kl35kcjsgl] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 24px;
    margin: 12px 0;
    padding-left: 1.4em;
    font-size: 1.05rem;
}
/* /Components/Pages/Configurateur.razor.rz.scp.css */
/* Plan d'entrepôt : le panneau à gauche, le plan et la réponse vivante à droite. */

.plan-layout[b-vop3ze126g] {
    display: grid;
    grid-template-columns: minmax(340px, 420px) 1fr;
    gap: 18px;
    align-items: start;
}

.plan-form[b-vop3ze126g] { display: flex; flex-direction: column; gap: 14px; }
.plan-result[b-vop3ze126g] { display: flex; flex-direction: column; gap: 14px; }

.plan-sous-titre[b-vop3ze126g] {
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ── Le plan ─────────────────────────────────────────────────────────────── */
.plan-vue .card-body[b-vop3ze126g] { padding: 8px 8px 10px; }
.plan-scene[b-vop3ze126g] { border-radius: 10px; outline: none; color: var(--text-primary); }
.plan-scene:focus-visible[b-vop3ze126g] { box-shadow: 0 0 0 2px var(--accent); }
.plan-scene[b-vop3ze126g]  svg { display: block; width: 100%; height: auto; max-height: 70vh; user-select: none; }
.plan-scene.est-editable[b-vop3ze126g]  .plan-section,
.plan-scene.est-editable[b-vop3ze126g]  .plan-obstacle { touch-action: none; }
.plan-scene[b-vop3ze126g]  .plan-section.est-choisie .plan-emprise { filter: drop-shadow(0 0 4px rgba(51,102,255,0.6)); }

.plan-legende[b-vop3ze126g] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 8px 6px 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.plan-legende-item[b-vop3ze126g] { display: inline-flex; align-items: center; gap: 6px; }

/* Les pastilles de légende et de liste : les mêmes couleurs que le SVG. */
.plan-pastille[b-vop3ze126g] {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 3px;
    flex: 0 0 auto;
    border: 1px solid transparent;
}
.plan-pastille.est-acier[b-vop3ze126g] { background: rgba(51,102,255,0.35); border-color: #3366ff; }
.plan-pastille.est-retire[b-vop3ze126g] { background: repeating-linear-gradient(45deg, #dc2626 0 2px, transparent 2px 5px); border-color: #dc2626; }
.plan-pastille.est-colonne[b-vop3ze126g] { background: rgba(70,74,90,0.85); border-color: rgba(40,42,52,1); }
.plan-pastille.est-porte[b-vop3ze126g] { background: rgba(249,115,22,0.35); border-color: #f97316; }
.plan-pastille.est-exclu[b-vop3ze126g] { background: repeating-linear-gradient(45deg, rgba(128,132,150,0.7) 0 2px, transparent 2px 5px); border-color: rgba(128,132,150,0.9); }

/* ── Les listes d'obstacles et de sections ──────────────────────────────── */
.plan-liste[b-vop3ze126g] { margin: 0; }
.plan-item[b-vop3ze126g] {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 6px 8px;
}
.plan-item:hover[b-vop3ze126g] { background: var(--bg-glass-hover); }
.plan-item.est-choisi[b-vop3ze126g] { background: var(--accent-soft); }
/* Rouge et ambre par jeton : ils ont leur variante sombre (et l'ambre #d97706 échouait
   même en clair, 3,2:1). */
.plan-item.est-impossible .plan-item-nom[b-vop3ze126g] { color: var(--status-danger-texte); }
.plan-item-nom[b-vop3ze126g] { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.plan-edition[b-vop3ze126g] {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.plan-messages[b-vop3ze126g] { margin: 6px 0 0; padding-left: 18px; }
.plan-messages li[b-vop3ze126g] { margin: 3px 0; }

.plan-kpi[b-vop3ze126g] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1130px) {
    .plan-layout[b-vop3ze126g] { grid-template-columns: 1fr; }
    .plan-kpi[b-vop3ze126g] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Repris du configurateur (CSS scopé : chaque page porte le sien) ─────── */
.plan-mention-legale[b-vop3ze126g] {
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.5;
}
.plan-mention-legale strong[b-vop3ze126g] { color: var(--text-primary); }

.recap-list[b-vop3ze126g] { list-style: none; padding: 0; margin: 0; }
.recap-list li[b-vop3ze126g] {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.recap-list li:last-child[b-vop3ze126g] { border-bottom: none; }
.recap-list li span[b-vop3ze126g] { color: var(--text-secondary); font-size: 13px; }
.recap-list li strong[b-vop3ze126g] { color: var(--text-primary); font-weight: 500; }

.plan-desc[b-vop3ze126g] { flex: 1; min-width: 0; }
.plan-qte[b-vop3ze126g] { flex: none; width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.plan-mnt[b-vop3ze126g] { flex: none; width: 110px; text-align: right; font-variant-numeric: tabular-nums; }

/* ── La visite 3D : cohabite avec le plan dans le DOM (three.js garde sa scène) ── */
.plan-cadre[b-vop3ze126g] { position: relative; }
.plan-3d[b-vop3ze126g] { display: none; border-radius: 10px; overflow: hidden; }
.plan-3d[b-vop3ze126g]  canvas { display: block; width: 100% !important; height: auto !important; }
.plan-cadre.est-3d .plan-scene[b-vop3ze126g] { display: none; }
.plan-cadre.est-3d .plan-3d[b-vop3ze126g] { display: block; }
.plan-bascule[b-vop3ze126g] { padding: 8px 6px 0; flex-wrap: wrap; }
.plan-modes3d[b-vop3ze126g] { display: inline-flex; gap: 6px; margin-left: 12px; }
.plan-livrables[b-vop3ze126g] { flex-wrap: wrap; }

/* ── Le schéma isométrique de la section choisie (cliquable) ─────────────── */
/* Le SVG serveur est là dès le premier rendu ; la toile interactive prend sa place
   quand le module a démarré. Sans lui, on garde le SVG. La toile de sélection ne
   s'affiche jamais : elle sert à lire un pixel au clic — hors flux et invisible,
   mais pas display:none (un canvas caché ainsi garde quand même son contenu). */
.plan-schema[b-vop3ze126g] { display: none; position: relative; }
.plan-cadre.est-schema .plan-scene[b-vop3ze126g] { display: none; }
.plan-cadre.est-schema .plan-schema[b-vop3ze126g] { display: block; }
.plan-schema-svg[b-vop3ze126g]  svg { display: block; width: 100%; height: auto; }
.plan-toile[b-vop3ze126g] { display: none; width: 100%; height: auto; cursor: grab; outline: none; border-radius: 10px; }
.plan-toile:active[b-vop3ze126g] { cursor: grabbing; }
.plan-toile:focus-visible[b-vop3ze126g] { box-shadow: 0 0 0 2px var(--accent); }
.plan-schema.est-interactive .plan-schema-svg[b-vop3ze126g] { display: none; }
.plan-schema.est-interactive .plan-toile[b-vop3ze126g] { display: block; }
.plan-toile-selection[b-vop3ze126g] { position: absolute; left: -99999px; top: 0; pointer-events: none; }
.plan-selection-desc[b-vop3ze126g] { margin: 0 0 8px; font-weight: 500; }
.plan-modes3d .btn-icon[b-vop3ze126g] { width: 30px; height: 30px; }

/* ── Le dossier du plan ──────────────────────────────────────────────────── */
.plan-dossier-ligne[b-vop3ze126g] { display: flex; gap: 8px; align-items: center; }
.plan-dossier-ligne .input[b-vop3ze126g] { flex: 1; min-width: 0; }
.plan-non-enregistre[b-vop3ze126g] { color: var(--status-warning-texte); font-weight: 600; }
.plan-alignement[b-vop3ze126g] { color: var(--accent); }
/* /Components/Pages/ConfigurationGenerale.razor.rz.scp.css */
/* Styles de la page Configuration générale.
   La disposition (barre latérale groupée, cartes, formulaires) vient du design
   system global (app.css → « Configuration — barre latérale groupée ») ; ne
   restent ici que les grilles éditables, partagées d'idiome avec CataloguePage. */

/* ── Tables éditables (vendeurs, délais, termes présentés en grille) ──────────── */
.edit-scroll[b-b2tap0fjo5] { overflow-x: auto; }
.edit-table td[b-b2tap0fjo5] { padding: 5px 6px; vertical-align: middle; }
.edit-table .input[b-b2tap0fjo5] { font-size: 13px; padding: 6px 8px; min-width: 130px; }
.edit-table th:last-child[b-b2tap0fjo5], .edit-table td:last-child[b-b2tap0fjo5] { width: 1%; white-space: nowrap; }

/* ── Le tableau de la règle d'approbation ─────────────────────────────────────
   Il n'est PAS éditable : il rend lisible ce que les champs au-dessus viennent de
   régler. Il est donc posé sur un fond distinct, pour qu'on ne cherche pas à taper
   dedans — un tableau de lecture au milieu d'un formulaire prête sinon à confusion. */
.regle-appr[b-b2tap0fjo5] {
    margin-top: 18px;
    padding: 14px 16px 16px;
    border: 1px solid var(--border-subtle, #d7dde4);
    border-radius: 10px;
    background: var(--bg-glass, rgba(0, 0, 0, 0.02));
}

.regle-appr .data-table[b-b2tap0fjo5] { margin-bottom: 0; }
.regle-appr .data-table td[b-b2tap0fjo5] { vertical-align: middle; }

/* Un déclencheur coupé reste VISIBLE, en retrait : le lecteur doit voir qu'il existe
   et qu'il est éteint, pas le croire absent de la règle. */
.regle-appr tr.is-off td[b-b2tap0fjo5] { opacity: 0.55; }

/* Une règle maison : un petit formulaire encadré, répété. Le cadre est ce qui
   empêche deux règles voisines de se lire comme une seule. */
.regle-maison[b-b2tap0fjo5] {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.regle-maison:last-of-type[b-b2tap0fjo5] { margin-bottom: 0; }

/* Les champs de PHRASE prennent toute la largeur de la grille. Sans ça ils héritent
   d'une colonne de 155 px (« .form-grid.tight ») et on écrit une recommandation de
   deux lignes dans une fenêtre de trois mots. « span-3 » ne les sauvait pas : le
   design system ne définit que « span-2 ». */
.regle-maison .form-field.champ-large[b-b2tap0fjo5] { grid-column: 1 / -1; }

/* Ce qui déclenche la règle — système, mesure, comparaison, seuil — se lit d'un bloc.
   Le fond les rassemble en une phrase avant même de lire celle qui suit. */
.regle-maison .form-grid[b-b2tap0fjo5] { align-items: start; }

/* ── Le registre des règles ──────────────────────────────────────────────────
   Le code, le repère et la valeur du jour sont des SECONDES lignes : elles
   documentent la règle sans concurrencer son titre du regard. */

.regle-code[b-b2tap0fjo5] {
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

/* Une table qui porte des PHRASES, pas des chiffres : elle revient à la ligne.
   Le design system met .data-table en nowrap — juste pour des colonnes courtes,
   fatal pour celle-ci, qui sortait de l'écran et cachait ses dernières colonnes.
   L'en-tête, lui, reste sur une ligne : ses libellés sont courts. */
.regle-table td[b-b2tap0fjo5] { white-space: normal; }
.regle-table td strong[b-b2tap0fjo5] { display: inline-block; }

/* Les deux pastilles de gravité tiennent ensemble, jamais coupées en deux lignes. */
.regle-table td .pill[b-b2tap0fjo5] { white-space: nowrap; }

/* Le code et la source, sous le titre de la règle : deux repères courts sur une
   ligne, plutôt que deux colonnes qui poussent la table hors de l'écran. */
.regle-meta[b-b2tap0fjo5] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.regle-repere[b-b2tap0fjo5],
.regle-valeur[b-b2tap0fjo5] {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* La valeur courante du seuil : c'est le chiffre qu'on vient vérifier ici. */
.regle-valeur strong[b-b2tap0fjo5] { color: var(--text-secondary); }

/* Les gravités possibles d'une règle : deux pastilles au plus, sur une ligne. */
.data-table .pill + .pill[b-b2tap0fjo5] { margin-left: 4px; }

/* La règle maison RELUE, sous son formulaire : la phrase que le moteur applique. */
.regle-relue[b-b2tap0fjo5] {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-glass, rgba(0, 0, 0, 0.02));
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Le bloc à copier-coller pour le webmestre : une commande curl se lit en chasse fixe,
   et déborde horizontalement plutôt que de se replier n'importe où. */
.bloc-code[b-b2tap0fjo5] {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* L'aperçu d'un courriel préformaté : le sujet, puis le corps tel qu'Outlook l'ouvrira. */
.apercu-courriel[b-b2tap0fjo5] {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-elevated); padding: 10px 12px;
}
.apercu-courriel-sujet[b-b2tap0fjo5] { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.apercu-courriel-corps[b-b2tap0fjo5] {
    margin: 0; font: inherit; font-size: 13px; line-height: 1.5;
    white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-primary);
}
/* /Components/Pages/Connexion.razor.rz.scp.css */
/* Une section par groupe de sécurité — le groupe est l'information, pas la décoration :
   c'est lui qui décide de ce que l'écran proposera une fois l'identité choisie. */
.bloc-groupe[b-73jrt2cnck] { margin-bottom: 18px; }

.bloc-tete[b-73jrt2cnck] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.bloc-titre[b-73jrt2cnck] { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.bloc-desc[b-73jrt2cnck] { margin: 6px 0 10px; font-size: 12px; color: var(--text-muted); }

.grille-identites[b-73jrt2cnck] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.carte-identite[b-73jrt2cnck] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    /* --bg-surface n'a jamais existé : la carte était transparente. --bg-elevated la détache
       de la carte qui la porte, dans les deux thèmes. */
    background: var(--bg-elevated);
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.carte-identite:hover[b-73jrt2cnck] { border-color: var(--accent); }
.carte-identite.is-on[b-73jrt2cnck] { border-color: var(--accent); background: var(--accent-soft); }

.identite-avatar[b-73jrt2cnck] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-fill);
    color: var(--texte-sur-plein);
    font-weight: 600;
    font-size: 13px;
    flex: none;
}
.identite-txt[b-73jrt2cnck] { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.identite-nom[b-73jrt2cnck] { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.identite-titre[b-73jrt2cnck] {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Pages/FicheCommande/ChangementsCommande.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────────────────────────
   LA SECTION « CHANGEMENTS » d'une commande.

   Elle a une hiérarchie à tenir, et c'est tout le travail de cette feuille : le
   RÉGIME en tête (est-ce que je peux encore changer quelque chose, et à quel
   prix), puis chaque demande comme une CARTE fermée sur elle-même — parce que
   deux demandes ouvertes sur le même dossier se lisent séparément ou ne se
   lisent pas.

   Les autorisations, les cases de composantes et le fil réutilisent les classes de
   app.css (.autorisations, .autorisation, .cases-lignes, .cycle-detail) : elles sont partagées
   avec le cycle de vie, d'où elles viennent, et les dupliquer ici ferait deux
   apparences pour un même objet.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Le régime, en tête ─────────────────────────────────────────────────────
   Un bandeau, pas une pastille : ce qu'il annonce tient en trois lignes et
   décide de tout ce qui suit. */
.chg-regime[b-xmo9r9vmxi] {
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}
.chg-regime strong[b-xmo9r9vmxi] { color: var(--text-primary); }
.chg-regime.est-rigide[b-xmo9r9vmxi] { border-left-color: var(--status-danger); }
/* La modification directe : l'exception au régime, pour qui y a droit — au vert, c'est un feu. */
.chg-regime.est-direct[b-xmo9r9vmxi] { border-left-color: var(--status-success); }

/* ── Une demande = une carte ────────────────────────────────────────────────
   Le filet de gauche passe au rouge en régime rigide : trois signatures et de
   l'acier coupé ne se lisent pas comme une correction de couleur. */
.chg-demande[b-xmo9r9vmxi] {
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
}
.chg-demande + .chg-demande[b-xmo9r9vmxi] { margin-top: 12px; }
.chg-demande.est-rigide[b-xmo9r9vmxi] { border-left-color: var(--status-danger); }

.chg-demande-tete[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 14px; margin-bottom: 6px;
}
.chg-justification[b-xmo9r9vmxi] {
    margin: 0 0 10px; font-size: 13px; line-height: 1.55;
    color: var(--text-secondary); white-space: pre-wrap;
}

/* ── Ce que la demande fait au CONTENU ──────────────────────────────────────
   Vert pour ce qui entre, rouge pour ce qui sort : c'est la seule chose de
   cette carte qui change ce que l'atelier fabrique et ce que le client paie. */
.chg-contenu[b-xmo9r9vmxi] {
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--bg-glass);
}
.chg-mouvement + .chg-mouvement[b-xmo9r9vmxi] { margin-top: 10px; }
.chg-mouvement-titre[b-xmo9r9vmxi] {
    display: block; font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.02em; margin-bottom: 4px;
}
.chg-mouvement.est-ajout   .chg-mouvement-titre[b-xmo9r9vmxi] { color: var(--status-success-texte); }
.chg-mouvement.est-retrait .chg-mouvement-titre[b-xmo9r9vmxi] { color: var(--status-danger-texte); }
.chg-mouvement.est-quantite .chg-mouvement-titre[b-xmo9r9vmxi] { color: var(--status-warning, var(--accent)); }

.chg-mouvement ul[b-xmo9r9vmxi] { list-style: none; margin: 0; padding: 0; }
.chg-mouvement li[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
    font-size: 13px; padding: 2px 0;
}

/* ── Les incohérences ───────────────────────────────────────────────────────
   Jaune tant que ça ne fait qu'attirer l'œil, rouge dès qu'une seule bloque :
   l'encadré doit dire, sans être lu, si le bouton « Accepter » servira. */
.chg-incoherences[b-xmo9r9vmxi] {
    border: 1px solid var(--status-warning);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 10px 0;
    background: var(--bg-glass);
}
.chg-incoherences.est-bloquante[b-xmo9r9vmxi] { border-color: var(--status-danger); }
.chg-incoherences ul[b-xmo9r9vmxi] { list-style: none; margin: 6px 0 0; padding: 0; }
.chg-incoherences li[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
    padding: 5px 0; font-size: 13px;
}
.chg-incoherences li + li[b-xmo9r9vmxi] { border-top: 1px solid var(--border-subtle); }
.chg-incoherence-quoi[b-xmo9r9vmxi] {
    flex-basis: 100%; color: var(--text-secondary);
    font-size: 12.5px; line-height: 1.5;
}

/* La raison d'un bouton grisé — jamais silencieuse. */
.chg-barre[b-xmo9r9vmxi] { display: block; margin-top: 8px; }

/* ── La capture de l'acceptation ────────────────────────────────────────────
   Le dépôt de fichier se lit comme une ligne de formulaire, pas comme un
   bouton d'action : ce n'est pas lui qui consigne l'accord. */
.chg-preuve[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 8px 0; font-size: 13px;
}

/* ── Le formulaire, replié derrière un bouton ───────────────────────────────
   Fermé, il tient en une ligne : un mot sur le régime et le bouton. La section
   se lit d'abord pour ce qui attend une décision. */
.chg-invite[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px;
}
.chg-invite-texte[b-xmo9r9vmxi] { min-width: 0; flex: 1 1 320px; }
.chg-invite-texte .stitle[b-xmo9r9vmxi] { margin: 0 0 2px; }
.chg-invite-texte .form-hint[b-xmo9r9vmxi] { margin: 0; }

.chg-form-tete[b-xmo9r9vmxi] {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.chg-form-tete .stitle[b-xmo9r9vmxi] { margin: 0; }

/* ── Les étapes ─────────────────────────────────────────────────────────────
   Numérotées, parce que la demande se lit dans cet ordre : ce qui change et
   pourquoi, les produits touchés, ce qu'on ajoute. */
.chg-etape[b-xmo9r9vmxi] { padding: 14px 0; border-top: 1px solid var(--border-subtle); }
.chg-etape:first-of-type[b-xmo9r9vmxi] { border-top: none; padding-top: 4px; }
.chg-etape-titre[b-xmo9r9vmxi] {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.chg-etape-num[b-xmo9r9vmxi] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-size: 12px; font-weight: 700;
}
.chg-etape-action[b-xmo9r9vmxi] { margin-left: auto; }

.chg-champs[b-xmo9r9vmxi] {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.chg-champ-large[b-xmo9r9vmxi] { grid-column: span 3; }
.chg-champ-plein[b-xmo9r9vmxi] { grid-column: 1 / -1; }
.chg-champs textarea[b-xmo9r9vmxi] { resize: vertical; min-height: 56px; }

@media (max-width: 640px) {
    .chg-champs[b-xmo9r9vmxi] { grid-template-columns: 1fr 1fr; }
    .chg-champ-large[b-xmo9r9vmxi], .chg-champ-plein[b-xmo9r9vmxi] { grid-column: 1 / -1; }
}

/* ── Le tableau des produits de la commande ─────────────────────────────────
   Une ligne par composante et tous ses gestes sur la même ligne. Une ligne
   modifiée se souligne, une ligne retirée se barre : l'état se lit sans
   relire les nombres. */
.chg-table[b-xmo9r9vmxi] { white-space: normal; }
.chg-table tbody td[b-xmo9r9vmxi] { vertical-align: middle; }
.chg-table .num[b-xmo9r9vmxi] { white-space: nowrap; }
.chg-produit[b-xmo9r9vmxi] { min-width: 220px; }
.chg-produit .pill[b-xmo9r9vmxi] { margin-left: 6px; font-size: 11px; padding: 1px 8px; }
.chg-produit-desc[b-xmo9r9vmxi] { font-weight: 500; }
.chg-table tr.est-changee td[b-xmo9r9vmxi] { background: var(--accent-soft); }
.chg-table tr.est-retiree td[b-xmo9r9vmxi] { background: var(--bg-glass); }
.chg-table tr.est-retiree .chg-produit-desc[b-xmo9r9vmxi],
.chg-table tr.est-retiree td.num > span:first-child[b-xmo9r9vmxi] {
    text-decoration: line-through; color: var(--text-muted);
}
.chg-avant[b-xmo9r9vmxi] {
    display: block; font-size: 11.5px; color: var(--text-muted);
    text-decoration: none; margin-top: 2px;
}
.chg-col-revue[b-xmo9r9vmxi] { text-align: center; width: 1%; white-space: nowrap; }
.chg-col-action[b-xmo9r9vmxi] { text-align: right; width: 1%; white-space: nowrap; }
.chip.chip-retirer:hover:not(:disabled)[b-xmo9r9vmxi] {
    color: var(--status-danger-texte); border-color: var(--status-danger); background: transparent;
}
.chip:disabled[b-xmo9r9vmxi] { opacity: 0.45; cursor: not-allowed; }

/* La quantité se change en place : une petite case numérique, soulignée dès
   qu'elle diffère du dossier. */
.chg-qte[b-xmo9r9vmxi] { width: 80px; text-align: right; }
.chg-qte.est-changee[b-xmo9r9vmxi] { border-color: var(--accent); font-weight: 600; }

/* L'aide se déplie à la demande : on la lit une fois, pas à chaque demande. */
.chg-aide[b-xmo9r9vmxi] { margin-top: 8px; font-size: 12.5px; color: var(--text-secondary); }
.chg-aide summary[b-xmo9r9vmxi] { cursor: pointer; color: var(--accent); font-weight: 500; }
.chg-aide ul[b-xmo9r9vmxi] { margin: 6px 0 0; padding-left: 18px; line-height: 1.55; }
.chg-aide li + li[b-xmo9r9vmxi] { margin-top: 4px; }

.chg-vide[b-xmo9r9vmxi] { margin: 0; font-size: 13px; }

/* ── L'ajout d'un produit ──────────────────────────────────────────────────── */
.chg-ajout[b-xmo9r9vmxi] {
    margin-top: 10px; padding: 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
}
.chg-ajout-grille[b-xmo9r9vmxi] {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
@media (max-width: 640px) {
    .chg-ajout-grille[b-xmo9r9vmxi] { grid-template-columns: 1fr 1fr; }
    .chg-ajout-grille .chg-champ-large[b-xmo9r9vmxi] { grid-column: 1 / -1; }
}
.chg-ajout .form-hint[b-xmo9r9vmxi] { margin: 8px 0 0; }
.chg-ajout-actions[b-xmo9r9vmxi] { margin-top: 10px; }

/* Les onglets de la feuille « Quoi » et, pour un montant, une poutre ou un espaceur, la pièce
   du dossier d'où repartir : une rangée, avant les questions. */
.chg-ajout-tete[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
    gap: 10px 20px; margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.seg[b-xmo9r9vmxi] { display: flex; flex-wrap: wrap; gap: 8px; }
.chg-partir-de[b-xmo9r9vmxi] { display: flex; flex-direction: column; gap: 4px; min-width: 260px; max-width: 420px; flex: 1; }
.chg-partir-de label[b-xmo9r9vmxi] { font-size: 12px; color: var(--text-secondary); }
.chg-ajout-montant-actions[b-xmo9r9vmxi] {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

/* Le dessin d'un montant proposé : la fiche de production, en petit, sous sa ligne. La même
   que celle du configurateur — c'est celle qui suivra le montant au dossier. */
.chg-dessin[b-xmo9r9vmxi] { max-width: 420px; margin: 6px 0 4px; border-radius: var(--radius-md); }
/* Les vues de la poutre : un SVG à traits noirs, sur fond blanc même en thème sombre, et une
   hauteur fixe (il se met à l'échelle de sa boîte) — comme dans le configurateur. */
.chg-dessin-poutre[b-xmo9r9vmxi] {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px;
    height: 480px;
}
/* Dans le panier, la ligne est un flex qui s'enroule : le dessin prend une rangée à lui. */
.chg-dessin-ligne[b-xmo9r9vmxi] { flex: 0 0 100%; }
.chg-dessin-repli[b-xmo9r9vmxi] { flex-basis: 100%; margin-top: 4px; font-size: 12.5px; }
.chg-dessin-repli > summary[b-xmo9r9vmxi] { cursor: pointer; color: var(--accent); width: max-content; }
.chg-dessin-repli > summary:hover[b-xmo9r9vmxi] { text-decoration: underline; }
.chg-mouvement li:has(> .chg-dessin-repli)[b-xmo9r9vmxi] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.lien-dessin[b-xmo9r9vmxi] { font-size: 12.5px; margin-right: 8px; }

/* ── Le dépôt ───────────────────────────────────────────────────────────────
   Le résumé à gauche, les boutons à droite : on relit ce qu'on envoie au
   moment même où on l'envoie. */
.chg-depot[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 12px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
}
.chg-resume[b-xmo9r9vmxi] { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; min-width: 0; }
.chg-resume-morceau[b-xmo9r9vmxi] { color: var(--text-secondary); }
.chg-resume-morceau + .chg-resume-morceau[b-xmo9r9vmxi]::before {
    content: "·"; margin-right: 14px; color: var(--text-muted);
}
.chg-depot-boutons[b-xmo9r9vmxi] { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── Le panier des produits à ajouter ───────────────────────────────────────
   Ils n'existent nulle part tant que la demande n'est pas déposée : la liste
   se lit donc comme un brouillon, pas comme le contenu de la commande. */
.chg-panier[b-xmo9r9vmxi] {
    list-style: none; margin: 12px 0 0; padding: 10px 12px;
    border: 1px dashed var(--status-success);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
}
.chg-panier li[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 4px 0; font-size: 13px;
}
.chg-panier li + li[b-xmo9r9vmxi] { border-top: 1px solid var(--border-subtle); }
.chg-panier li .text-muted[b-xmo9r9vmxi] { flex: 1; }

/* ── L'historique des demandes tranchées ────────────────────────────────────
   Une ligne par décision, la pastille de statut en tête : on y cherche « qu'a-
   t-on déjà refusé sur ce dossier », et la réponse doit se balayer. */
.chg-historique[b-xmo9r9vmxi] { list-style: none; margin: 0; padding: 0; }
.chg-historique li[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 7px 0; font-size: 13px;
}
.chg-historique li + li[b-xmo9r9vmxi] { border-top: 1px solid var(--border-subtle); }
.chg-historique-mot[b-xmo9r9vmxi] {
    flex-basis: 100%; color: var(--text-secondary);
    font-size: 12.5px; line-height: 1.5;
}
.chg-depot + .form-hint[b-xmo9r9vmxi] { margin-top: 8px; }

/* ── Qui paie : refacturé au client ou absorbé par CamRack ─────────────────
   Le choix se fait LIGNE PAR LIGNE, à côté du montant qu'il concerne : deux
   boutons collés, l'un allumé. Absorbé, le montant reste lisible mais barré —
   c'est la valeur que la maison donne, pas ce que le client paie. */
.chg-facturer[b-xmo9r9vmxi] { display: inline-flex; gap: 0; margin-top: 4px; }
.chg-facturer .chip[b-xmo9r9vmxi] { font-size: 11.5px; padding: 2px 10px; }
.chg-facturer .chip + .chip[b-xmo9r9vmxi] { margin-left: -1px; }
.chg-facturer .chip:first-child[b-xmo9r9vmxi] { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.chg-facturer .chip:last-child[b-xmo9r9vmxi] { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.chg-table td.num .chg-facturer[b-xmo9r9vmxi] { justify-content: flex-end; }
.chg-barre[b-xmo9r9vmxi] { text-decoration: line-through; color: var(--text-muted); }
.chg-etiquette[b-xmo9r9vmxi] {
    display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--text-secondary);
}
.chg-facturation[b-xmo9r9vmxi] {
    display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: 13px;
    color: var(--text-secondary);
}
/* /Components/Pages/FicheCommande/ContenusAnterieursCommande.razor.rz.scp.css */
/* Les contenus antérieurs — un repli par modification directe, la plus récente ouverte. */

.ca-intro[b-um9w8gbto0] { margin: 0 0 12px; }

.ca-entree[b-um9w8gbto0] {
    border: 1px solid var(--border);
    border-left: 3px solid var(--status-success);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 10px;
    background: var(--bg-tertiary);
}
.ca-entree > summary[b-um9w8gbto0] {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 13px;
}
.ca-titre[b-um9w8gbto0] { font-weight: 600; color: var(--text-primary); }

.ca-motif[b-um9w8gbto0] { margin: 10px 0 8px; font-size: 13px; color: var(--text-secondary); }

.ca-table[b-um9w8gbto0] { width: 100%; margin-top: 4px; }
.ca-table .ca-desc[b-um9w8gbto0] { white-space: normal; min-width: 220px; }
.ca-table .ca-desc .text-muted[b-um9w8gbto0] { display: block; font-size: 12px; }
.ca-nom[b-um9w8gbto0] { font-weight: 500; }
.ca-par[b-um9w8gbto0] { margin-left: 6px; }
/* Une composante retirée se lit barrée : elle était là, elle n'y est plus. */
.ca-table tr.ca-retiree .ca-nom[b-um9w8gbto0] { text-decoration: line-through; }
.ca-table tfoot td[b-um9w8gbto0] { font-weight: 500; }

.ca-ajouts[b-um9w8gbto0] { margin-top: 10px; font-size: 13px; }
.ca-ajouts-titre[b-um9w8gbto0] { font-weight: 600; color: var(--status-success-texte); }
.ca-ajouts ul[b-um9w8gbto0] { margin: 4px 0 0; padding-left: 18px; }
/* /Components/Pages/FicheCommande/DocumentsCommande.razor.rz.scp.css */
/* La liste des documents : un groupe par destinataire, une rangée par document
   (nom + contenu à gauche, gestes à droite). */
.docs-groupe + .docs-groupe[b-jfpth0rmkv] { margin-top: 14px; }
.docs-groupe-titre[b-jfpth0rmkv] {
    font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
}
.docs-liste[b-jfpth0rmkv] { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.doc-rangee[b-jfpth0rmkv] { display: flex; align-items: flex-start; gap: 16px; padding: 10px 12px; }
.doc-rangee + .doc-rangee[b-jfpth0rmkv] { border-top: 1px solid var(--border-subtle, var(--border)); }
.doc-info[b-jfpth0rmkv] { flex: 1; min-width: 0; }
.doc-nom[b-jfpth0rmkv] { font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-desc[b-jfpth0rmkv] { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.doc-gestes[b-jfpth0rmkv] { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }

.doc-anciennes[b-jfpth0rmkv] { margin-top: 6px; font-size: 12.5px; }
.doc-anciennes summary[b-jfpth0rmkv] { cursor: pointer; color: var(--text-secondary); }
.doc-anciennes ul[b-jfpth0rmkv] { list-style: none; margin: 4px 0 0; padding: 0 0 0 14px; }
.doc-anciennes li[b-jfpth0rmkv] { display: flex; gap: 8px; align-items: baseline; }

@media (max-width: 640px) {
    .doc-rangee[b-jfpth0rmkv] { flex-direction: column; gap: 8px; }
    .doc-gestes[b-jfpth0rmkv] { justify-content: flex-start; }
}
/* /Components/Pages/FicheCommande/EnteteCommande.razor.rz.scp.css */
/* L'entête de la commande partage l'idiome « fiche » d'app.css (entête, chemin de vie,
   faits clés, prochain geste). Ici seulement ce qui lui est propre. */

/* La jauge d'avancement tient dans la tuile, à côté du pourcentage. */
.faits .prod-bar[b-ey1q05dzvm] { width: 72px; margin-left: 8px; }

.kpi-sub.est-retard[b-ey1q05dzvm] { color: var(--status-danger-texte); font-weight: 600; }

/* Les alertes du bandeau sont des RACCOURCIS : chacune ouvre la section qui la traite. */
.geste-alertes[b-ey1q05dzvm] { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.geste-alertes .pill[b-ey1q05dzvm] { border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.geste-alertes .pill:hover[b-ey1q05dzvm] { filter: brightness(0.96); }
/* /Components/Pages/FicheCommande/EtiquettesCommande.razor.rz.scp.css */
/* La carte des étiquettes : une barre de gestes, la table des lignes, puis l'historique. */
.etq-barre[b-pgbobdb05p] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.etq-compte[b-pgbobdb05p] { margin-left: auto; font-size: var(--fs-sm); }
.etq-case[b-pgbobdb05p] { width: 32px; text-align: center; }
.etq-no[b-pgbobdb05p] { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.etq-quand[b-pgbobdb05p] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.etq-gestes[b-pgbobdb05p] { text-align: right; white-space: nowrap; }
.etq-exemptee td[b-pgbobdb05p] { color: var(--text-muted); }
.etq-historique[b-pgbobdb05p] { margin-top: 18px; }
.etq-historique .stitle[b-pgbobdb05p] { margin-bottom: 6px; }

@media (max-width: 640px) {
    .etq-compte[b-pgbobdb05p] { margin-left: 0; width: 100%; }
}

/* Les descriptions d'acier sont longues : elles passent à la ligne, pour que la quantité,
   la production et la dernière impression restent visibles sans défilement. */
.etq-table td.etq-desc[b-pgbobdb05p] { white-space: normal; min-width: 180px; }
/* /Components/Pages/FicheCommande/LignesCommande.razor.rz.scp.css */
/* La table des lignes — les trois tableaux d'hier réduits à des groupes de colonnes.
   Le basculement se fait en CSS depuis `data-groupe` sur la carte : aucune colonne
   n'est re-rendue, elle s'affiche ou pas. */

.lignes-table[b-mq43q6drte] { width: 100%; }

/* `.data-table` est en `white-space: nowrap` (app.css) : sans ces deux exceptions, la
   table dépasse la largeur de sa carte et la DERNIÈRE colonne — celle des boutons de
   décision — se fait couper sans que rien ne le signale. */
.lignes-table .lig-desc[b-mq43q6drte],
.lignes-table .col-mot[b-mq43q6drte] { white-space: normal; }
.lignes-table .lig-desc[b-mq43q6drte] { min-width: 240px; }
.lignes-table .col-mot[b-mq43q6drte] { min-width: 160px; max-width: 300px; }
.lignes-table .col-decision[b-mq43q6drte] { min-width: 300px; }
.lignes-table .col-dessin[b-mq43q6drte] { min-width: 130px; }
.lignes-table .input.col-ref[b-mq43q6drte] { min-width: 120px; }
.lignes-table .col-envoi[b-mq43q6drte] { min-width: 104px; }
/* La vue « Tout » dépassait la carte à 1440 px : « ENVOI PRODUCTI… » se faisait couper au
   bord. Les coupables étaient des textes qui n'ont pas besoin d'une seule ligne — l'entête
   « Envoi Production » et les comptes du pied (« 6 approuvée(s) · 0 retenue(s) », 205 px à
   eux seuls). Ils passent à la ligne ; les montants et les dates, eux, restent d'un bloc. */
.lignes-table thead th.col-envoi[b-mq43q6drte],
.lignes-table tfoot td.g-revue[b-mq43q6drte],
.lignes-table tfoot td.col-envoi[b-mq43q6drte],
.lignes-table tfoot td.g-avct[b-mq43q6drte] { white-space: normal; }
.lignes-table .input.col-motif[b-mq43q6drte] { flex: 1 1 150px; min-width: 130px; }
.lignes-table .pointage-btns[b-mq43q6drte] { flex-wrap: wrap; row-gap: 6px; }
.lignes-table .verdicts[b-mq43q6drte] { display: inline-flex; gap: 4px; flex: none; }

.lig-nom[b-mq43q6drte] { font-weight: 500; }
.lien-dessin[b-mq43q6drte] { margin-left: 8px; font-size: 12px; }
.lignes-table .pill-tag[b-mq43q6drte] { margin-left: 6px; }
.lignes-table .tag-retenue[b-mq43q6drte] { margin-left: 6px; }

/* Une composante retenue est un ARRÊT : la rangée le porte, pas seulement une pastille
   au milieu d'une colonne qu'on peut avoir masquée. Une teinte À PEINE posée (une rangée
   entière, répétée, crierait) et le filet de signal à gauche. */
.lignes-table tbody tr.est-retenue[b-mq43q6drte] { background: color-mix(in srgb, var(--status-danger) 4.5%, transparent); }
.lignes-table tbody tr.est-retenue td:first-child[b-mq43q6drte] { box-shadow: inset 3px 0 0 var(--status-danger); }

/* La bascule Commercial · Revue · Tout se lit comme UN contrôle segmenté : un rail qui
   la cadre, des puces inactives à l'encre secondaire (7:1). Sans rail, en sombre, les
   contours à 8 % disparaissaient et les trois choix flottaient sans se lire comme tels. */
.seg-colonnes[b-mq43q6drte] {
    display: inline-flex; gap: 2px; padding: 2px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
}
.seg-colonnes .chip[b-mq43q6drte] { padding: 4px 11px; font-size: 12px; border-color: transparent; background: transparent; color: var(--text-secondary); }
.seg-colonnes .chip:hover:not(:disabled)[b-mq43q6drte] { color: var(--text-primary); background: var(--bg-glass-hover); border-color: transparent; }
.seg-colonnes .chip.is-on[b-mq43q6drte] { color: var(--accent); background: var(--bg-elevated); border-color: var(--accent); }
.lignes-table .chip-oui[b-mq43q6drte] { color: var(--accent); border-color: var(--accent); }

/* ── Les groupes de colonnes ─────────────────────────────────────────────────── */
[data-groupe="commercial"] .g-revue[b-mq43q6drte],
[data-groupe="commercial"] .g-atelier[b-mq43q6drte],
[data-groupe="revue"] .g-commercial[b-mq43q6drte],
[data-groupe="revue"] .g-atelier[b-mq43q6drte],
[data-groupe="atelier"] .g-commercial[b-mq43q6drte],
[data-groupe="atelier"] .g-revue[b-mq43q6drte] { display: none; }

/* La colonne Verdict le dit déjà : pas deux fois la même pastille sur la même rangée. */
[data-groupe="revue"] .tag-retenue[b-mq43q6drte] { display: none; }

/* « Tout » montre les trois grains d'un coup. Pour que la rangée tienne à l'écran, les
   quatre étapes se replient en quatre jauges, et les deux colonnes de texte long
   sortent — elles restent à un clic, dans « Revue ». */
.g-compact[b-mq43q6drte] { display: none; }
[data-groupe="tout"] .g-compact[b-mq43q6drte] { display: table-cell; }
[data-groupe="tout"] .g-etape[b-mq43q6drte],
[data-groupe="tout"] .g-avct[b-mq43q6drte],
[data-groupe="tout"] .g-par[b-mq43q6drte],
[data-groupe="tout"] .col-mot[b-mq43q6drte],
[data-groupe="tout"] .col-dessin[b-mq43q6drte],
[data-groupe="tout"] .col-decision[b-mq43q6drte] { display: none; }
[data-groupe="tout"] .lignes-table thead th[b-mq43q6drte],
[data-groupe="tout"] .lignes-table tbody td[b-mq43q6drte],
[data-groupe="tout"] .lignes-table tfoot td[b-mq43q6drte] { padding-left: 10px; padding-right: 10px; }
[data-groupe="tout"] .lignes-table .lig-desc[b-mq43q6drte] { min-width: 180px; }

.mini-etapes[b-mq43q6drte] { display: inline-flex; gap: 3px; }
.mini-etape[b-mq43q6drte] {
    display: block;
    width: 22px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--border-subtle);
    overflow: hidden;
}
.mini-etape i[b-mq43q6drte] { display: block; height: 100%; background: var(--accent-progression); }

/* Une étape finie est BLEUE, pas verte : le vert (.pill-ok) dit « dossier terminé »
   partout ailleurs dans l'app, et une étape close n'est pas une commande close. */
.pointage .pill-ok[b-mq43q6drte] { --badge-fond: var(--status-info-fond); --badge-texte: var(--status-info-texte); }

/* Ce qu'un changement a porté sans frais : sous le total, discret — le prix × la
   quantité ne donne plus le total, et la ligne dit pourquoi. */
.ligne-absorbe[b-mq43q6drte] {
    display: block; font-size: 11.5px; font-weight: 400; color: var(--text-muted); white-space: nowrap;
}
/* /Components/Pages/ForgeDemande.razor.rz.scp.css */
/* Les onglets (Nouvelle demande / Historique) sont ceux de l'app : <Onglets>, `.tabs` dans app.css. */

/* L'escalier des étapes (Où ? Quoi ? Quel impact ? Décris) est la classe partagée
   `.escalier` d'app.css ; ici, seulement sa largeur : un formulaire court, pas pleine page. */
.escalier[b-4spv98q09p] { max-width: 640px; }

/* Zone de dépôt d'une capture pour pré-remplir (reconnaissance d'image). */
.drop-capture[b-4spv98q09p] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.drop-capture:hover[b-4spv98q09p] { border-color: var(--accent); color: var(--text-primary); }
/* Le champ fichier natif est masqué (app.css, « Champ fichier ») : l'anneau de
   focus se pose donc sur la zone elle-même, sinon le clavier passe sur un
   contrôle invisible. */
.drop-capture:focus-within[b-4spv98q09p] {
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Pendant la reconnaissance, la zone dit qu'elle n'accepte rien de plus. */
.drop-capture.est-occupe[b-4spv98q09p] {
    cursor: progress;
    color: var(--text-muted);
    border-color: var(--border-subtle);
}

/* Contrôle segmenté (type, portée, priorité) — une rangée de pastilles `.chip`. */
.seg[b-4spv98q09p] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Écran de confirmation ────────────────────────────────────────────────────── */
.recap-phrase[b-4spv98q09p] {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.recap-list[b-4spv98q09p] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recap-list li[b-4spv98q09p] {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.recap-list li span[b-4spv98q09p] {
    color: var(--text-secondary);
    font-size: 13px;
}

.recap-list li strong[b-4spv98q09p] {
    color: var(--text-primary);
    font-weight: 500;
}

/* Point "SourceLabel" — override du .status-dot partagé (voir app.css). */
.status-dot[b-4spv98q09p] {
    background: var(--accent-progression);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-progression) 18%, transparent);
}
/* /Components/Pages/Generateur/ConfigurateurMontant.razor.rz.scp.css */
/* Les styles du constructeur de montant, repris de NouvelleSoumission.razor.css : le CSS scopé ne
   traverse pas la frontière d'un composant. Les règles s'ancrent sur .cfg-montant (la racine du
   composant) plutôt que sur l'escalier de la soumission : le même formulaire vit aussi dans la
   demande de changement d'une commande. */
.seg[b-rygt35ekvh] { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Aperçu de la ligne en cours (description + poids décomposé) ─────────────── */
.apercu-ligne[b-rygt35ekvh] {
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}
.apercu-desc[b-rygt35ekvh] { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.apercu-detail[b-rygt35ekvh] { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ── Titres et champs alignés ────────────────────────────────────────────────
   Chaque champ découpe sa cellule en trois rangées partagées avec ses voisins
   (titre · champ · aide) : un titre qui passe sur deux lignes descend toute la
   rangée au lieu de décaler son seul champ. Les titres s'appuient sur le champ. */
.cfg-montant .form-grid.tight[b-rygt35ekvh] { row-gap: 0; column-gap: 12px; }
.cfg-montant .form-grid.tight > .form-field[b-rygt35ekvh] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.cfg-montant .form-grid.tight > .form-field > label[b-rygt35ekvh] { align-self: end; line-height: 1.3; }
.cfg-montant .form-grid.tight > .form-field > .form-hint[b-rygt35ekvh] { margin: 0; font-size: 12px; line-height: 1.35; }
.cfg-montant .form-grid.tight > .form-field > .seg[b-rygt35ekvh] { min-height: 38px; align-items: center; }
.form-field label small[b-rygt35ekvh] { color: var(--text-muted); font-weight: 400; }

/* Les groupes du montant : un intertitre discret plutôt qu'une boîte de plus. */
.quoi-groupe[b-rygt35ekvh] { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.quoi-groupe:first-child[b-rygt35ekvh], .seg + .quoi-groupe[b-rygt35ekvh] { border-top: none; padding-top: 0; margin-top: 0; }
.quoi-groupe-titre[b-rygt35ekvh] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.quoi-groupe-titre > span:last-child:not(.quoi-chevron)[b-rygt35ekvh] {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 12px;
}
button.quoi-repli[b-rygt35ekvh] {
    width: 100%;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
button.quoi-repli:hover[b-rygt35ekvh] { color: var(--accent); }
.quoi-chevron[b-rygt35ekvh] { width: 10px; color: var(--text-muted); }

/* Une réponse qui ouvre une nouvelle ligne de la grille : les paires du renfort
   (renforcé + nombre, panneaux + hauteur) restent collées, quelle que soit la largeur. */
.cfg-montant .form-grid.tight > .form-field.quoi-ligne[b-rygt35ekvh] { grid-column-start: 1; }
.cfg-montant .form-grid.tight > .form-field.span-2.quoi-ligne[b-rygt35ekvh] { grid-column: 1 / span 2; }

/* La hauteur ramenée au pas de 3 po : dite, pas criée. */
.hauteur-corrigee[b-rygt35ekvh] { display: block; color: var(--accent); }

/* ── Montant : 2/3 configuration, 1/3 visualisation ───────────────────────────
   La fiche reste collée en haut de l'écran pendant qu'on fait défiler le formulaire. */
.montant-layout[b-rygt35ekvh] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.montant-config[b-rygt35ekvh] { min-width: 0; }
.montant-visu[b-rygt35ekvh] {
    position: sticky;
    top: 104px;                       /* sous la barre d'application (sticky elle aussi) */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    min-width: 0;
    border-radius: var(--radius-md);
}
@media (max-width: 1130px) {
    .montant-layout[b-rygt35ekvh] { grid-template-columns: minmax(0, 1fr); }
    .montant-visu[b-rygt35ekvh] { position: static; max-height: none; overflow: visible; }
}
/* /Components/Pages/Generateur/ConfigurateurQuoi.razor.rz.scp.css */
/* Les styles des questions « Quoi », repris de NouvelleSoumission.razor.css : le CSS scopé ne
   traverse pas la frontière d'un composant. Les règles s'ancrent sur .cfg-quoi (la racine du
   composant) plutôt que sur l'escalier de la soumission : le même formulaire vit aussi dans la
   demande de changement d'une commande. Le montant porte les siennes (ConfigurateurMontant). */
.seg[b-eqv0i1t14z] { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Aperçu de la ligne en cours (description + poids) ─────────────────────── */
.apercu-ligne[b-eqv0i1t14z] {
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}
.apercu-desc[b-eqv0i1t14z] { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.apercu-detail[b-eqv0i1t14z] { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ── Titres et champs alignés ────────────────────────────────────────────────
   Chaque champ découpe sa cellule en trois rangées partagées avec ses voisins
   (titre · champ · aide) : un titre qui passe sur deux lignes descend toute la
   rangée au lieu de décaler son seul champ. Les titres s'appuient sur le champ. */
.cfg-quoi .form-grid.tight[b-eqv0i1t14z] { row-gap: 0; column-gap: 12px; }
.cfg-quoi .form-grid.tight > .form-field[b-eqv0i1t14z] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.cfg-quoi .form-grid.tight > .form-field > label[b-eqv0i1t14z] { align-self: end; line-height: 1.3; }
.cfg-quoi .form-grid.tight > .form-field > .form-hint[b-eqv0i1t14z] { margin: 0; font-size: 12px; line-height: 1.35; }
.cfg-quoi .form-grid.tight > .form-field > .seg[b-eqv0i1t14z] { min-height: 38px; align-items: center; }
.form-field label small[b-eqv0i1t14z] { color: var(--text-muted); font-weight: 400; }

/* Les groupes : un intertitre discret plutôt qu'une boîte de plus. */
.quoi-groupe[b-eqv0i1t14z] { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.quoi-groupe:first-child[b-eqv0i1t14z], .seg + .quoi-groupe[b-eqv0i1t14z] { border-top: none; padding-top: 0; margin-top: 0; }
.quoi-groupe-titre[b-eqv0i1t14z] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.quoi-groupe-titre > span:last-child:not(.quoi-chevron)[b-eqv0i1t14z] {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 12px;
}

/* ── Poutre : 2/3 configuration, 1/3 visualisation — comme le montant ──────────
   Les vues du Configurateur Poutre Production V13 restent à droite du formulaire,
   collées en haut de l'écran pendant qu'on le fait défiler (ConfigurateurMontant.razor.css). */
.poutre-layout[b-eqv0i1t14z] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.poutre-config[b-eqv0i1t14z] { min-width: 0; }
.poutre-visu[b-eqv0i1t14z] {
    position: sticky;
    top: 104px;                       /* sous la barre d'application (sticky elle aussi) */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    min-width: 0;
    /* Encadrée de bleu avec un bandeau de tête, comme la fiche du montant (FicheMontantApercu). */
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px var(--accent-glow);
    padding: 0 14px 12px;
}
.poutre-fiche-head[b-eqv0i1t14z] {
    margin: 0 -14px 12px;
    padding: 12px 14px 10px;
    background: var(--accent-soft);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.poutre-fiche-titre[b-eqv0i1t14z] { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.poutre-fiche-desc[b-eqv0i1t14z] { font-size: 12px; color: var(--text-muted); }
/* Le SVG reste sur fond blanc (ses traits sont noirs), même en thème sombre. */
.poutre-fiche-dessin[b-eqv0i1t14z] {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px;
    height: min(560px, calc(100vh - 230px));
    min-height: 380px;
}
@media (max-width: 1130px) {
    .poutre-layout[b-eqv0i1t14z] { grid-template-columns: minmax(0, 1fr); }
    .poutre-visu[b-eqv0i1t14z] { position: static; max-height: none; overflow: visible; }
    .poutre-fiche-dessin[b-eqv0i1t14z] { height: 640px; }
}
/* /Components/Pages/Generateur/EtapeClient.razor.rz.scp.css */
/* Les styles de EtapeClient, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* Contrôle segmenté (familles de composantes). */
.seg[b-gd4dt091e8] { display: flex; flex-wrap: wrap; gap: 8px; }
.escalier-contenu .form-grid.tight > .form-field[b-gd4dt091e8] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.escalier-contenu .form-grid.tight > .form-field > label[b-gd4dt091e8] { align-self: end; line-height: 1.3; }
.escalier-contenu .form-grid.tight > .form-field > .form-hint[b-gd4dt091e8] { margin: 0; font-size: 12px; line-height: 1.35; }
.escalier-contenu .form-grid.tight > .form-field > .seg[b-gd4dt091e8] { min-height: 38px; align-items: center; }
.form-field label small[b-gd4dt091e8] { color: var(--text-muted); font-weight: 400; }
/* Un champ en faute au moment d'enregistrer : souligné, et c'est lui qui reçoit le focus. */
.escalier-contenu .input.is-invalid[b-gd4dt091e8] { border-color: var(--status-danger-texte); box-shadow: 0 0 0 3px var(--status-danger-fond); }
.escalier-etape:focus[b-gd4dt091e8] { outline: none; }
.escalier-etape:focus > .escalier-contenu > .escalier-titre[b-gd4dt091e8] { color: var(--status-danger-texte); }
/* /Components/Pages/Generateur/EtapeConditions.razor.rz.scp.css */
/* Les styles de EtapeConditions, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* ── Étape « Quoi » : titres et champs alignés ────────────────────────────────
   Chaque champ découpe sa cellule en trois rangées partagées avec ses voisins
   (titre · champ · aide) : un titre qui passe sur deux lignes descend toute la
   rangée au lieu de décaler son seul champ. Les titres s'appuient sur le champ. */
.escalier-contenu .form-grid.tight[b-d9imoomez9] { row-gap: 0; column-gap: 12px; }
.escalier-contenu .form-grid.tight > .form-field[b-d9imoomez9] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.escalier-contenu .form-grid.tight > .form-field > label[b-d9imoomez9] { align-self: end; line-height: 1.3; }
.escalier-contenu .form-grid.tight > .form-field > .form-hint[b-d9imoomez9] { margin: 0; font-size: 12px; line-height: 1.35; }
.form-field label small[b-d9imoomez9] { color: var(--text-muted); font-weight: 400; }
/* Un frais facturé POSÉ (transport, installation, ingénierie non nuls) se lit sur fond gris :
   la case est en lecture seule, le chiffre vient de la section d'estimé plus bas. Vide (0 $),
   elle reste blanche — rien n'y est encore chiffré. */
.escalier-contenu .input.frais-rempli[readonly][b-d9imoomez9] { background: var(--bg-tertiary); color: var(--text-primary); }
.escalier-etape:focus[b-d9imoomez9] { outline: none; }
.escalier-etape:focus > .escalier-contenu > .escalier-titre[b-d9imoomez9] { color: var(--status-danger-texte); }
/* /Components/Pages/Generateur/FicheMontantApercu.razor.rz.scp.css */
/* Les styles de FicheMontantApercu, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* L'escalier des quatre étapes (Pour qui ? Quoi ? À quelles conditions ? Réviser) est la
   classe partagée `.escalier` d'app.css — elle était copiée ici depuis ForgeDemande.
   Les titres de la fiche de production (plus bas) gardent leur style à eux. */
.stitle[b-xijnd9mem2] { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.sdesc[b-xijnd9mem2] { font-size: 12px; color: var(--text-muted); margin-bottom: 11px; }
/* ── Fiche de production du montant (Configurateur Montant Production V09) ──────
   Encadrée de bleu, avec un bandeau de tête : on voit d'un coup d'œil ce qui se
   règle (à gauche) et ce qui en sort (la fiche, à droite). */
.fiche-montant[b-xijnd9mem2] {
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px var(--accent-glow);
    padding: 0 14px 12px;
    overflow: hidden;
}
.fiche-vide[b-xijnd9mem2] { border-style: dashed; padding-top: 12px; box-shadow: none; }
.fiche-vide .sdesc[b-xijnd9mem2] { margin: 4px 0 0; }
.fiche-head[b-xijnd9mem2] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 -14px;
    padding: 12px 14px 10px;
    background: var(--accent-soft);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.fiche-head .stitle[b-xijnd9mem2] { color: var(--accent); }
.fiche-head .sdesc[b-xijnd9mem2] { margin-bottom: 0; }
/* La police de l'application (Inter), comme le reste de l'écran : l'empattement Times
   reste réservé au cartouche de la fiche IMPRIMÉE (DocumentFicheMontant). */
.fiche-titre[b-xijnd9mem2] {
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
.fiche-titre span[b-xijnd9mem2] { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: .03em; color: var(--text-secondary); }
.fiche-corps[b-xijnd9mem2] { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.fiche-dessin[b-xijnd9mem2] { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 6px; }
.fiche-dessin[b-xijnd9mem2]  svg { display: block; width: 100%; height: min(55vh, 540px); }
.fiche-liste[b-xijnd9mem2] { font-size: 12px; }
.fiche-h[b-xijnd9mem2] { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; color: var(--text-primary); }
.fiche-sous[b-xijnd9mem2] { color: var(--text-muted); font-size: 11px; margin-bottom: 6px; }
.fiche-table[b-xijnd9mem2] { width: 100%; border-collapse: collapse; }
.fiche-table th[b-xijnd9mem2] { font-size: 11px; text-transform: uppercase; color: var(--text-muted); text-align: left; border-bottom: 1px solid var(--border); padding: 3px 4px; }
.fiche-table td[b-xijnd9mem2] { padding: 3px 4px; vertical-align: top; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); }
.fiche-table .num[b-xijnd9mem2] { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fiche-table small[b-xijnd9mem2] { display: block; color: var(--text-muted); font-size: 11px; margin-left: 14px; }
.fiche-table i[b-xijnd9mem2], .fiche-legende i[b-xijnd9mem2] { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 1px; vertical-align: baseline; }
.fiche-groupe td[b-xijnd9mem2] { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding-top: 8px; border-bottom: 1px solid var(--border); }
.fiche-total td[b-xijnd9mem2] { font-weight: 700; border-bottom: none; }
/* Rouges par jeton : #b11d2c codé en dur tombait à 2,5:1 sur la carte sombre. */
.is-renf td[b-xijnd9mem2] { color: var(--status-danger-texte); }
.fiche-legende[b-xijnd9mem2] { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 6px; color: var(--text-secondary); }
.fiche-patron[b-xijnd9mem2] { color: var(--text-secondary); margin: 6px 0 4px; }
.fiche-note[b-xijnd9mem2] { color: var(--text-muted); font-style: italic; margin: 0 0 6px; }
.fiche-avis[b-xijnd9mem2] { color: var(--status-danger-texte); margin-top: 4px; }
/* /Components/Pages/Generateur/LignesAjoutees.razor.rz.scp.css */
/* Les styles de LignesAjoutees, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* Contrôle segmenté (familles de composantes). */
.seg[b-oiltcoqdje] { display: flex; flex-wrap: wrap; gap: 8px; }
/* ── Lignes ajoutées + suggestions ────────────────────────────────────────────── */
.lignes-ajoutees[b-oiltcoqdje] { margin-top: 18px; overflow-x: auto; }
.sugg-banner[b-oiltcoqdje] {
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    font-size: 13px;
    color: var(--text-secondary);
}
.escalier-contenu .form-grid.tight > .form-field > .seg[b-oiltcoqdje] { min-height: 38px; align-items: center; }
.fiche-table .num[b-oiltcoqdje] { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lignes-ajoutees tr.is-edition td[b-oiltcoqdje] { background: var(--accent-soft); }
.lignes-ajoutees tr.is-edition td:first-child[b-oiltcoqdje] { box-shadow: inset 3px 0 0 var(--accent-fill); }
.ligne-desc[b-oiltcoqdje] { color: var(--text-primary); }
.ligne-note[b-oiltcoqdje] { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ligne-actions[b-oiltcoqdje] { white-space: nowrap; text-align: right; }
.ligne-actions .btn-sm + .btn-sm[b-oiltcoqdje] { margin-left: 6px; }
.lignes-ajoutees tr.is-edition td[b-oiltcoqdje] { vertical-align: middle; }
.lignes-ajoutees .input-sm[b-oiltcoqdje] { display: block; width: 100%; padding: 5px 8px; font-size: 13px; min-width: 0; }
.lignes-ajoutees .input-num[b-oiltcoqdje] { width: 92px; margin-left: auto; text-align: right; }
.lignes-ajoutees select.input-sm[b-oiltcoqdje] { width: 96px; }
.ligne-note-saisie[b-oiltcoqdje] { margin-top: 6px; min-width: 220px; }

/* ── La couleur d'accent par famille (novembre 2026) ─────────────────────────
   Une bande de 4 px à gauche de chaque ligne, et la pastille de la légende. Des teintes moyennes
   qui gardent plus de 3:1 sur le fond clair comme sur le sombre (un élément graphique, pas du
   texte). La couleur n'est jamais seule : la légende nomme la famille. */
.lignes-ajoutees tr[b-oiltcoqdje] { --fam: transparent; }
.lignes-ajoutees tr td:first-child[b-oiltcoqdje] { box-shadow: inset 4px 0 0 var(--fam); padding-left: 14px; }
.lignes-ajoutees tr.is-edition td:first-child[b-oiltcoqdje] { box-shadow: inset 4px 0 0 var(--accent-fill); }
.fam-montant[b-oiltcoqdje] { --fam: #3b82f6; }
.fam-poutre[b-oiltcoqdje] { --fam: #f97316; }
.fam-espaceur[b-oiltcoqdje] { --fam: #14b8a6; }
.fam-grillage[b-oiltcoqdje] { --fam: #8b5cf6; }
.fam-barresecurite[b-oiltcoqdje] { --fam: #ec4899; }
.fam-protecteur[b-oiltcoqdje] { --fam: #eab308; }
.fam-protectionboutrangee[b-oiltcoqdje] { --fam: #84cc16; }
.fam-quincaillerie[b-oiltcoqdje] { --fam: #94a3b8; }
.fam-divers[b-oiltcoqdje] { --fam: #a8a29e; }
.fam-legende[b-oiltcoqdje] { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12px; color: var(--text-secondary); }
.fam-legende li[b-oiltcoqdje] { display: inline-flex; align-items: center; gap: 6px; }
.fam-pastille[b-oiltcoqdje] { width: 10px; height: 10px; border-radius: 3px; background: var(--fam); }

/* Les lignes que « Ajouter » vient de produire : un fond d'accent qui s'efface. */
.lignes-ajoutees tr.is-nouvelle td[b-oiltcoqdje] { animation: ligne-nouvelle-b-oiltcoqdje 2.4s ease-out; }
@keyframes ligne-nouvelle-b-oiltcoqdje {
    from { background: var(--accent-soft); }
    to { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .lignes-ajoutees tr.is-nouvelle td[b-oiltcoqdje] { animation: none; background: var(--accent-soft); }
}
/* /Components/Pages/Generateur/QuincaillerieComposante.razor.rz.scp.css */
/* Les styles du bloc de quincaillerie, repris de NouvelleSoumission.razor.css : le CSS scopé ne
   traverse pas la frontière d'un composant. Le bloc vit dans l'escalier de la soumission
   (.escalier-contenu) ou dans le configurateur de montant d'un changement (.cfg-montant). */
.seg[b-bogn1yrohd] { display: flex; flex-wrap: wrap; gap: 8px; }

/* Un groupe à part, parce qu'il répond à des questions DIFFÉRENTES de celles de la composante
   et produit ses propres lignes. Les « Non » tiennent côte à côte ; une réponse « Oui » prend
   toute la largeur (article + quantité). */
.quinc-bloc[b-bogn1yrohd] { margin: 4px 0 12px; }
.quoi-groupe[b-bogn1yrohd] { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.quoi-groupe.quinc-bloc:first-child[b-bogn1yrohd] { border-top: 1px solid var(--border-subtle); padding-top: 12px; }
.quinc-choix[b-bogn1yrohd] { display: flex; flex-wrap: wrap; column-gap: 32px; }
.quinc-choix > .quinc-ligne[b-bogn1yrohd] { flex: 0 0 auto; grid-template-columns: repeat(auto-fill, 155px); }
.quinc-choix > .quinc-ligne.is-inclus[b-bogn1yrohd] { flex-basis: 100%; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.quinc-edition[b-bogn1yrohd] { margin: 0; font-size: 12px; }

.quoi-groupe-titre[b-bogn1yrohd] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.quoi-groupe-titre > span:last-child[b-bogn1yrohd] {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 12px;
}

/* Titres et champs alignés (trois rangées partagées : titre · champ · aide). */
.escalier-contenu .form-grid.tight[b-bogn1yrohd], .cfg-montant .form-grid.tight[b-bogn1yrohd] { row-gap: 0; column-gap: 12px; }
.escalier-contenu .form-grid.tight > .form-field[b-bogn1yrohd], .cfg-montant .form-grid.tight > .form-field[b-bogn1yrohd] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.escalier-contenu .form-grid.tight > .form-field > label[b-bogn1yrohd],
.cfg-montant .form-grid.tight > .form-field > label[b-bogn1yrohd] { align-self: end; line-height: 1.3; }
.escalier-contenu .form-grid.tight > .form-field > .form-hint[b-bogn1yrohd],
.cfg-montant .form-grid.tight > .form-field > .form-hint[b-bogn1yrohd] { margin: 0; font-size: 12px; line-height: 1.35; }
.escalier-contenu .form-grid.tight > .form-field > .seg[b-bogn1yrohd],
.cfg-montant .form-grid.tight > .form-field > .seg[b-bogn1yrohd] { min-height: 38px; align-items: center; }
/* /Components/Pages/Generateur/QuoiDriveIn.razor.rz.scp.css */
/* Les styles de QuoiDriveIn, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* ── Étape « Quoi » : titres et champs alignés ────────────────────────────────
   Chaque champ découpe sa cellule en trois rangées partagées avec ses voisins
   (titre · champ · aide) : un titre qui passe sur deux lignes descend toute la
   rangée au lieu de décaler son seul champ. Les titres s'appuient sur le champ. */
.cfg-quoi .form-grid.tight[b-trnbtegkw8] { row-gap: 0; column-gap: 12px; }
.cfg-quoi .form-grid.tight > .form-field[b-trnbtegkw8] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.cfg-quoi .form-grid.tight > .form-field > label[b-trnbtegkw8] { align-self: end; line-height: 1.3; }
.form-field label small[b-trnbtegkw8] { color: var(--text-muted); font-weight: 400; }
/* Les groupes du montant : un intertitre discret plutôt qu'une boîte de plus. */
.quoi-groupe[b-trnbtegkw8] { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.quoi-groupe:first-child[b-trnbtegkw8], .seg + .quoi-groupe[b-trnbtegkw8] { border-top: none; padding-top: 0; margin-top: 0; }
.quoi-groupe-titre[b-trnbtegkw8] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.quoi-groupe-titre > span:last-child:not(.quoi-chevron)[b-trnbtegkw8] {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 12px;
}
/* /Components/Pages/Generateur/QuoiLigneLibre.razor.rz.scp.css */
/* Les styles de QuoiLigneLibre, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* ── Étape « Quoi » : titres et champs alignés ────────────────────────────────
   Chaque champ découpe sa cellule en trois rangées partagées avec ses voisins
   (titre · champ · aide) : un titre qui passe sur deux lignes descend toute la
   rangée au lieu de décaler son seul champ. Les titres s'appuient sur le champ. */
.cfg-quoi .form-grid.tight[b-ktoz8mwm3l] { row-gap: 0; column-gap: 12px; }
.cfg-quoi .form-grid.tight > .form-field[b-ktoz8mwm3l] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.cfg-quoi .form-grid.tight > .form-field > label[b-ktoz8mwm3l] { align-self: end; line-height: 1.3; }
.form-field label small[b-ktoz8mwm3l] { color: var(--text-muted); font-weight: 400; }
/* Les groupes du montant : un intertitre discret plutôt qu'une boîte de plus. */
.quoi-groupe[b-ktoz8mwm3l] { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.quoi-groupe:first-child[b-ktoz8mwm3l], .seg + .quoi-groupe[b-ktoz8mwm3l] { border-top: none; padding-top: 0; margin-top: 0; }
.quoi-groupe-titre[b-ktoz8mwm3l] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.quoi-groupe-titre > span:last-child:not(.quoi-chevron)[b-ktoz8mwm3l] {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 12px;
}
/* /Components/Pages/Generateur/RevisionEnregistrement.razor.rz.scp.css */
/* Les styles de RevisionEnregistrement, repris de NouvelleSoumission.razor.css : le CSS scopé ne traverse
   pas la frontière d'un composant, chaque composant porte donc les règles de ses éléments. */
/* ── Écran de révision ────────────────────────────────────────────────────────── */
.recap-phrase[b-w410mf8kqa] {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
}
.recap-list[b-w410mf8kqa] { list-style: none; padding: 0; margin: 0; }
.recap-list li[b-w410mf8kqa] {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.recap-list li span[b-w410mf8kqa] { color: var(--text-secondary); font-size: 13px; }
.recap-list li strong[b-w410mf8kqa] { color: var(--text-primary); font-weight: 500; }
.escalier-contenu .form-grid.tight > .form-field > .form-hint[b-w410mf8kqa] { margin: 0; font-size: 12px; line-height: 1.35; }
.escalier-etape:focus[b-w410mf8kqa] { outline: none; }
.escalier-etape:focus > .escalier-contenu > .escalier-titre[b-w410mf8kqa] { color: var(--status-danger-texte); }
/* /Components/Pages/Home.razor.rz.scp.css */
/* Deux colonnes pour le travail du jour (rappels dus / soumissions à relancer). */
.deux-col[b-rxt05qc87s] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
@media (max-width: 900px) {
    .deux-col[b-rxt05qc87s] { grid-template-columns: 1fr; }
}

/* NEUF tuiles, en trois rangées de trois : ventes (leads, soumissions, carnet), opérations
   (production, livraisons, clients), travail du jour (tâches, revues, relances). La grille
   générique (auto-fill de 180 px) en posait 6 + 3 à 1440 px, avec un trou de trois tuiles
   au bout de la seconde rangée. 3 × 3 se remplit toujours ; une seule rangée de neuf quand
   l'écran est assez large pour que chaque tuile garde ses ~180 px ; une colonne au téléphone. */
.kpi-accueil[b-rxt05qc87s] { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 641px)  { .kpi-accueil[b-rxt05qc87s] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 2000px) { .kpi-accueil[b-rxt05qc87s] { grid-template-columns: repeat(9, minmax(0, 1fr)); } }

/* « Production en cours » : numéro, client, jauge, échéance. Sur téléphone, les quatre ne
   tiennent pas sur une ligne — l'échéance débordait l'écran de 22 px. Elle passe dessous. */
.ligne-prod[b-rxt05qc87s] { gap: 6px 14px; flex-wrap: wrap; }

/* Les tuiles cliquables se comportent comme des cartes, pas comme des liens. */
a.kpi-card[b-rxt05qc87s] { text-decoration: none; }
a.kpi-card:hover[b-rxt05qc87s] { border-color: var(--accent); }
/* /Components/Pages/Journal.razor.rz.scp.css */
/* Journal des changements — la mise en forme sert UNE idée : replié, l'écran doit se lire
   d'un balayage vertical ; c'est la synthèse qui porte, tout le reste s'efface. */

.jrn-outils[b-nx9lkvvhx7] { display: flex; gap: 10px; align-items: center; }
.jrn-rech[b-nx9lkvvhx7] { min-width: 220px; }

.jrn-compte[b-nx9lkvvhx7] {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.jrn-mois[b-nx9lkvvhx7] { display: flex; flex-direction: column; gap: 10px; }

.jrn-mois-titre[b-nx9lkvvhx7] {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.jrn-liste[b-nx9lkvvhx7] { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.jrn-entree[b-nx9lkvvhx7] { padding: 0; transition: var(--transition); }
.jrn-entree:hover[b-nx9lkvvhx7] { border-color: var(--text-muted); }

/* La synthèse EST la ligne cliquable : toute la largeur, pas juste le triangle. */
/* ⚠️ PAS de display:flex ici. La synthèse contient du `code` injecté : en flex, CHAQUE
   nœud devient un élément flex et le texte se disloque autour du chiffon de code. Le texte
   doit rester en flux INLINE — le chevron est donc positionné en absolu, pas empilé. */
.jrn-entree summary[b-nx9lkvvhx7] {
    cursor: pointer;
    position: relative;
    padding: 14px 18px 14px 40px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-primary);
    list-style: none;
}
.jrn-entree summary[b-nx9lkvvhx7]::-webkit-details-marker { display: none; }

/* Chevron maison : tourne à l'ouverture. Le marqueur natif n'est pas stylable partout. */
.jrn-entree summary[b-nx9lkvvhx7]::before {
    content: "\203A";
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 17px;
    line-height: 1;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}
.jrn-entree details[open] summary[b-nx9lkvvhx7]::before { transform: rotate(90deg); }

.jrn-entree summary:hover[b-nx9lkvvhx7] { background: var(--bg-tertiary); }
.jrn-entree details[open] summary[b-nx9lkvvhx7] { font-weight: 600; }

.jrn-meta[b-nx9lkvvhx7] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 18px 0 40px;
    font-size: 12px;
    color: var(--text-muted);
}
.jrn-date[b-nx9lkvvhx7] { font-variant-numeric: tabular-nums; }
.jrn-auteur[b-nx9lkvvhx7]::before { content: "· "; }

/* La couleur des catégories vient du nuancier `.tag.cat-color-N` d'app.css (PR 57), déjà
   décliné clair/sombre — on ne redéfinit RIEN ici, sinon les deux nuanciers divergent.
   La correspondance catégorie → teinte vit dans EntreeJournal.CategorieCss. */

/* Numéro et catégorie dans la ligne repliée : des éléments INLINE (voir l'avertissement
   flex ci-dessus), calés sur la ligne de texte. */
.jrn-num[b-nx9lkvvhx7] {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    margin-right: 8px;
}
.jrn-cat[b-nx9lkvvhx7] {
    margin-right: 10px;
    vertical-align: 1px;
}
/* La graisse à l'ouverture s'applique à la synthèse, pas aux repères. */
.jrn-entree details[open] summary .jrn-num[b-nx9lkvvhx7] { font-weight: 400; }

/* Filtres rapides : les puces de catégorie portent leur vraie couleur — le filtre sert
   aussi de légende du nuancier. Éteint = assourdi, allumé = plein + liseré. */
.jrn-filtres[b-nx9lkvvhx7] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.jrn-filtres-nom[b-nx9lkvvhx7] {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 72px;
}
.jrn-filtre[b-nx9lkvvhx7] {
    cursor: pointer;
    text-decoration: none;   /* des liens (filtres dans l'adresse), qui gardent l'allure de puces */
    /* Le filtre au repos : contour neutre, sans fond. Il n'est plus « éteint » par une opacité
       (0,55 faisait tomber le texte à 2,6:1) : l'encre de la pastille garde son contraste, et le
       filtre actif se reconnaît à son fond et à son trait. */
    border: 1px solid var(--border);
    background: transparent;
    transition: var(--transition);
    font: inherit;
    font-size: var(--fs-xs);
}
.jrn-filtre:hover[b-nx9lkvvhx7] { border-color: currentColor; }
.jrn-filtre-actif[b-nx9lkvvhx7] { background: var(--badge-fond, var(--accent-soft)); border-color: currentColor; }
.jrn-filtre-n[b-nx9lkvvhx7] { font-weight: 700; font-variant-numeric: tabular-nums; }

.jrn-detail[b-nx9lkvvhx7] {
    margin: 10px 0 0;
    padding: 0 18px 16px 40px;
    display: grid;
    gap: 7px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    list-style: none;
}
.jrn-detail li[b-nx9lkvvhx7] { position: relative; padding-left: 14px; }
.jrn-detail li[b-nx9lkvvhx7]::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border);
}

/* Captures d'écran : bordées et bornées — une capture illustre, elle n'envahit pas. */
.jrn-captures[b-nx9lkvvhx7] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 16px 40px;
}
.jrn-capture[b-nx9lkvvhx7] { margin: 0; }
.jrn-capture img[b-nx9lkvvhx7] {
    display: block;
    max-width: min(420px, 100%);
    max-height: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.jrn-alerte[b-nx9lkvvhx7] {
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--status-warning);
    color: var(--status-warning-texte);
    font-size: 13px;
}

@media (max-width: 640px) {
    .jrn-outils[b-nx9lkvvhx7] { width: 100%; }
    .jrn-rech[b-nx9lkvvhx7] { flex: 1; min-width: 0; }
    .jrn-meta[b-nx9lkvvhx7], .jrn-detail[b-nx9lkvvhx7] { padding-left: 18px; }
    .jrn-captures[b-nx9lkvvhx7] { padding-left: 18px; }
    .jrn-filtres-nom[b-nx9lkvvhx7] { min-width: 100%; }
}

/* `code` et `**gras**` arrivent par MarkupString : ces éléments n'existent pas dans le .razor,
   donc ils NE PORTENT PAS l'attribut de portée. ::deep est obligatoire ici — sans lui la règle
   ne s'applique à rien, en silence. */
.jrn-entree[b-nx9lkvvhx7]  code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.88em;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.jrn-entree[b-nx9lkvvhx7]  strong { color: var(--text-primary); font-weight: 650; }
/* /Components/Pages/NouvelleSoumission.razor.rz.scp.css */


/* Contrôle segmenté (familles de composantes). */
.seg[b-eywv18keuk] { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Aperçu de la ligne en cours (description + poids décomposé) ─────────────── */
.apercu-ligne[b-eywv18keuk] {
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}
.apercu-desc[b-eywv18keuk] { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.apercu-detail[b-eywv18keuk] { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.recap-list[b-eywv18keuk] { list-style: none; padding: 0; margin: 0; }
.recap-list li[b-eywv18keuk] {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.recap-list li span[b-eywv18keuk] { color: var(--text-secondary); font-size: 13px; }
.recap-list li strong[b-eywv18keuk] { color: var(--text-primary); font-weight: 500; }

/* ── Étape « Quoi » : titres et champs alignés ────────────────────────────────
   Chaque champ découpe sa cellule en trois rangées partagées avec ses voisins
   (titre · champ · aide) : un titre qui passe sur deux lignes descend toute la
   rangée au lieu de décaler son seul champ. Les titres s'appuient sur le champ. */
.escalier-contenu .form-grid.tight[b-eywv18keuk] { row-gap: 0; column-gap: 12px; }
.escalier-contenu .form-grid.tight > .form-field[b-eywv18keuk] {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 5px;
    margin-bottom: 12px;
}
.escalier-contenu .form-grid.tight > .form-field > label[b-eywv18keuk] { align-self: end; line-height: 1.3; }
.escalier-contenu .form-grid.tight > .form-field > .form-hint[b-eywv18keuk] { margin: 0; font-size: 12px; line-height: 1.35; }
.escalier-contenu .form-grid.tight > .form-field > .seg[b-eywv18keuk] { min-height: 38px; align-items: center; }
.form-field label small[b-eywv18keuk] { color: var(--text-muted); font-weight: 400; }

/* Les groupes du montant : un intertitre discret plutôt qu'une boîte de plus. */
.quoi-groupe[b-eywv18keuk] { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.quoi-groupe:first-child[b-eywv18keuk], .seg + .quoi-groupe[b-eywv18keuk] { border-top: none; padding-top: 0; margin-top: 0; }
.quoi-groupe-titre[b-eywv18keuk] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.quoi-groupe-titre > span:last-child:not(.quoi-chevron)[b-eywv18keuk] {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 12px;
}
.fiche-table .num[b-eywv18keuk] { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Modifier une ligne déjà ajoutée ─────────────────────────────────────────────
   Le bandeau dit ce qu'on modifie et comment en sortir ; la ligne visée reste
   soulignée dans le tableau, pour que l'œil fasse le lien. */
#etape-quoi[b-eywv18keuk] { scroll-margin-top: 112px; }   /* sous la barre d'application, sticky */
.edition-bandeau[b-eywv18keuk] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-left: 4px solid var(--accent-fill);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}
.edition-icone[b-eywv18keuk] { color: var(--accent); font-size: 16px; }
.edition-texte[b-eywv18keuk] { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.edition-texte strong[b-eywv18keuk] { font-size: 13px; color: var(--accent); }
.edition-texte span[b-eywv18keuk] {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ligne-actions .btn-sm + .btn-sm[b-eywv18keuk] { margin-left: 6px; }

/* Un champ en faute au moment d'enregistrer : souligné, et c'est lui qui reçoit le focus. */
.escalier-contenu .input.is-invalid[b-eywv18keuk] { border-color: var(--status-danger-texte); box-shadow: 0 0 0 3px var(--status-danger-fond); }
.escalier-etape:focus[b-eywv18keuk] { outline: none; }
.escalier-etape:focus > .escalier-contenu > .escalier-titre[b-eywv18keuk] { color: var(--status-danger-texte); }

/* ── Estimés internes (étape 3) : visiblement À PART des frais facturés ───────── */
.estime-interne[b-eywv18keuk] {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
}
.estime-resultat[b-eywv18keuk] { margin: 0; min-height: 38px; display: flex; align-items: center; gap: 4px; }
.estime-note[b-eywv18keuk] { margin: 8px 0 0; color: var(--text-secondary); }
/* /Components/Pages/Production.razor.rz.scp.css */
/* ============================================================
   Vue plancher — la liste des pièces, projet ▸ commande ▸ ligne.
   Tout est en variables du design system (voir app.css) : la page
   suit le thème clair/sombre sans une seule couleur codée en dur,
   à l'exception des trois teintes d'état (à faire / en cours / fait)
   qui portent une INFORMATION et non une marque.

   DENSITÉ « PLANCHER » : cet écran se lit à un ou deux mètres et se touche au doigt, souvent
   ganté. Aucun texte sous 12 px, aucune cible sous 44 px (les puces denses de la barre de
   filtres : 40 px, espacées) — les règles communes aux deux écrans du plancher vivent dans
   app.css (section « Accessibilité », .plancher).
   ============================================================ */

/* ---- La date de production : neutre le jour même, AMBRE dès qu'on pointe un jour passé.
   L'ambre dit « attention, ce n'est pas aujourd'hui » — comme la pastille Dev de l'app bar. ---- */
.date-prod[b-wbexfxvmmz] {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-secondary);
}
.date-prod .filter-label[b-wbexfxvmmz] {
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted);
}
.date-prod-aide[b-wbexfxvmmz] { font-size: 12.5px; }
.date-prod.is-passee[b-wbexfxvmmz] {
    background: var(--status-warning-fond);
    border-color: var(--status-warning);
}
.date-prod-alerte[b-wbexfxvmmz] { color: var(--status-warning-texte); font-size: 13.5px; }
.date-prod-erreur[b-wbexfxvmmz] { color: var(--status-danger-texte); font-size: 12.5px; }
.date-prod-rappel[b-wbexfxvmmz] { color: var(--status-warning-texte); }

/* ---- Barre d'outils : les filtres rapides ---- */
.prod-toolbar[b-wbexfxvmmz] { display: flex; flex-direction: column; gap: 12px; }
.prod-toolbar-row[b-wbexfxvmmz] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Les groupes de puces respirent un peu plus qu'au bureau : 8 px entre deux cibles de 40 px. */
.prod-toolbar .filter-group[b-wbexfxvmmz] { gap: 8px; }

/* Les groupes de puces (`.filter-group`, `.filter-sep`), le compteur (`.chip-count`) et la
   teinte d'alerte (`.chip-alerte`) vivent dans app.css : les carnets (leads, soumissions,
   commandes) portent la même rangée de filtres rapides via DataTable. */

/* ---- Niveau 1 : le PROJET (= le numéro de dossier) ---- */
.projet-groupe[b-wbexfxvmmz] {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-secondary); overflow: hidden; box-shadow: var(--shadow-sm);
}
.projet-head[b-wbexfxvmmz] {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px;
    background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
    cursor: pointer; user-select: none;
}
.projet-head:hover[b-wbexfxvmmz] { background: var(--bg-glass-hover); }
.projet-head:focus-visible[b-wbexfxvmmz] { outline: 2px solid var(--accent); outline-offset: -2px; }
.projet-caret[b-wbexfxvmmz] { color: var(--text-muted); font-size: var(--fs-xs); width: 12px; flex-shrink: 0; }
.projet-kicker[b-wbexfxvmmz] {
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--accent);
}
.projet-nom[b-wbexfxvmmz] {
    font-weight: 650; font-size: 15px; letter-spacing: -0.01em; color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.projet-meta[b-wbexfxvmmz] { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.projet-right[b-wbexfxvmmz] { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.projet-pct[b-wbexfxvmmz] {
    font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
    min-width: 38px; text-align: right;
}

/* ---- Niveau 2 : la COMMANDE ---- */
.cmd-bloc + .cmd-bloc[b-wbexfxvmmz] { border-top: 1px solid var(--border); }
.cmd-head[b-wbexfxvmmz] {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 16px 10px 40px; background: var(--bg-glass);
}
.cmd-num[b-wbexfxvmmz] { font-weight: 700; font-size: 13.5px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cmd-num:hover[b-wbexfxvmmz] { text-decoration: underline; }
.cmd-client[b-wbexfxvmmz] { font-weight: 600; font-size: 13.5px; color: var(--text-primary); }
.cmd-meta[b-wbexfxvmmz] { font-size: 12.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.cmd-right[b-wbexfxvmmz] { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }

.cmd-foot[b-wbexfxvmmz] {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 8px 16px 10px 40px;
    font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.cmd-foot strong[b-wbexfxvmmz] { color: var(--text-secondary); }

/* ---- Niveau 3 : la table des pièces ---- */
.piece-table[b-wbexfxvmmz] { font-size: 13px; }
.piece-table thead th[b-wbexfxvmmz] { font-size: var(--fs-xs); letter-spacing: 0.05em; }
.piece-table thead th.etape-th[b-wbexfxvmmz] { text-align: center; width: 112px; }
.piece-table tbody td[b-wbexfxvmmz] { padding: 7px 12px; vertical-align: middle; }
.piece-table tbody td:first-child[b-wbexfxvmmz] { padding-left: 40px; }

.piece-ligne-no[b-wbexfxvmmz] {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* Les descriptions générées sont longues (« MONTANT 100" X 42" X 3.25" X 3" 13GA. DB AV/AR
   4" + 4 DIAG. BOX 2" ET PLAQUE 8" X 8" X 1/2" (2 TROUS) »). Sans borne elles poussent les
   colonnes d'étape hors de l'écran — et c'est justement là que le plancher clique.
   Le « nowrap » vient de .data-table (app.css) : il faut le lever ici, sinon le max-width
   ne sert à rien et la ligne s'étire quand même. */
.piece-desc[b-wbexfxvmmz] {
    line-height: 1.35; max-width: 430px;
    white-space: normal; overflow-wrap: anywhere;
}
.piece-produit[b-wbexfxvmmz] { font-weight: 550; color: var(--text-primary); }
.piece-fam[b-wbexfxvmmz] {
    display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: var(--radius-sm);
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    background: var(--bg-tertiary); color: var(--text-secondary); vertical-align: 1px;
    white-space: nowrap;
}
/* Deux familles de pièces, deux teintes de la palette des pastilles (bleu info, violet distinct). */
.piece-fam.fam-montant[b-wbexfxvmmz] { background: var(--status-info-fond); color: var(--status-info-texte); }
.piece-fam.fam-poutre[b-wbexfxvmmz] { background: var(--status-accent-fond); color: var(--status-accent-texte); }

/* Micro-champs sous la description (poste, mention « acheté ») — la feuille Proplan
   présente les cotes en COLONNES parce qu'un profileur lit des cotes, pas des phrases. */
.dims[b-wbexfxvmmz] { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.dim[b-wbexfxvmmz] {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 1px 6px; border-radius: var(--radius-sm);
    background: var(--bg-glass); border: 1px solid var(--border-subtle);
    font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-primary);
}
.dim i[b-wbexfxvmmz] {
    font-style: normal; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-muted);
}

.note-prod[b-wbexfxvmmz] {
    display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
    background: var(--status-warning-fond); color: var(--status-warning-texte);
    border-left: 3px solid var(--status-warning);
    font-size: var(--fs-xs); font-weight: 600; line-height: 1.35;
}
.note-prod.note-stock[b-wbexfxvmmz] {
    background: var(--bg-tertiary); color: var(--text-secondary);
    border-left-color: var(--text-muted);
}

.couleur-puce[b-wbexfxvmmz] {
    display: inline-block; width: 10px; height: 10px; border-radius: 3px;
    border: 1px solid var(--border); margin-right: 6px; vertical-align: -1px;
}

/* Une ligne achetée s'atténue — mais JAMAIS par une `opacity` posée sur la cellule
   d'étape : `opacity` crée un contexte d'empilement, et le panneau de pointage, qui vit
   dans cette cellule, s'y retrouvait enfermé. Son `z-index` ne valait plus rien hors du
   contexte et les rangées SUIVANTES lui passaient par-dessus. On atténue donc le contenu
   (la jauge, le « s. o. »), jamais la cellule qui porte le panneau.
   Et plus d'`opacity` du tout : à 0,82, le gris « muted » tombait sous 4,5:1 (3,7:1 mesuré)
   et le plancher le lit à distance. La ligne achetée se distingue par son fond (un voile) et
   son encre secondaire — des jetons qui gardent le contraste du guide (§8). */
.piece-table tbody tr.is-achat td[b-wbexfxvmmz] { background: var(--bg-glass); }
.piece-table tbody tr.is-achat td:not(.etape-cell)[b-wbexfxvmmz] { color: var(--text-secondary); }
.etape-na[b-wbexfxvmmz] { color: var(--text-muted); font-size: var(--fs-xs); }

/* Ligne en retard : un liseré, pas un fond rouge — le plancher balaie la table,
   un aplat coloré sur dix lignes ne veut plus rien dire. */
.piece-table tbody tr.is-retard td:first-child[b-wbexfxvmmz] { box-shadow: inset 3px 0 0 var(--status-danger); }

/* ---- LA cible du plancher : une jauge cliquable par étape ----
   Le FOND porte l'avancement, le CHIFFRE porte le compte : à deux mètres d'un poste
   de soudure on lit la couleur, à quarante centimètres on lit « 24/40 ». */
.etape-cell[b-wbexfxvmmz] { text-align: center; padding: 5px 6px !important; position: relative; }
.etape-btn[b-wbexfxvmmz] {
    position: relative; display: inline-flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 1px; width: 100px; min-height: 44px; padding: 5px 4px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-tertiary); cursor: pointer; overflow: hidden;
    font-family: inherit; transition: border-color 0.12s ease, transform 0.1s ease;
}
.etape-btn[b-wbexfxvmmz]::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%);
    background: var(--jauge, transparent); transition: width 0.2s ease;
}
.etape-btn > *[b-wbexfxvmmz] { position: relative; }
.etape-btn:hover:not(:disabled)[b-wbexfxvmmz] { border-color: var(--accent); }
.etape-btn:active:not(:disabled)[b-wbexfxvmmz] { transform: scale(0.97); }
.etape-btn:disabled[b-wbexfxvmmz] { cursor: default; }
.etape-btn:focus-visible[b-wbexfxvmmz] { outline: 2px solid var(--accent); outline-offset: 1px; }

.etape-val[b-wbexfxvmmz] { font-size: var(--fs-md); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.etape-sub[b-wbexfxvmmz] {
    font-size: var(--fs-xs); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted);
}

.etape-btn.is-todo[b-wbexfxvmmz] { --jauge: transparent; }
/* La jauge est un REMPLISSAGE partiel : un cran plus franc que le fond pâle d'une pastille,
   sinon une étape à moitié faite ne se distingue pas d'une étape vide. */
.etape-btn.is-partial[b-wbexfxvmmz] { --jauge: color-mix(in srgb, var(--status-warning) 28%, transparent); border-color: color-mix(in srgb, var(--status-warning) 45%, transparent); }
.etape-btn.is-done[b-wbexfxvmmz] { --jauge: color-mix(in srgb, var(--status-success) 22%, transparent); border-color: color-mix(in srgb, var(--status-success) 45%, transparent); }
/* Le chiffre d'une étape finie reste à l'encre normale, dans les deux thèmes : le vert est
   déjà dans la jauge et dans la bordure. Vert foncé sur jauge verte, il tombait à 3,7:1 en
   thème clair — illisible à un mètre du poste. À l'encre : 12,7:1 (clair), 8,8:1 (sombre). */
.etape-btn.is-done .etape-val[b-wbexfxvmmz] { color: var(--text-primary); }

/* L'étape qui attend la précédente se lit comme « pas à moi », pas comme du retard.
   Pointillés et encre « muted » plutôt qu'une opacité à 0,55 : le chiffre tombait à 2,1:1,
   illisible à un mètre du poste. */
.etape-btn.is-attente[b-wbexfxvmmz] { --jauge: transparent; border-style: dotted; background: var(--bg-secondary); }
.etape-btn.is-attente .etape-val[b-wbexfxvmmz],
.etape-btn.is-attente .etape-sub[b-wbexfxvmmz] { color: var(--text-muted); }

/* Le profilage d'un montant dont on suit les pièces : il se LIT (déduit des sous-lignes),
   il ne se pointe pas. Bordure pointillée = « calculé », pas « à toi de cliquer ». */
.etape-btn.is-derive[b-wbexfxvmmz] { border-style: dashed; cursor: default; }
.etape-btn.is-derive:disabled[b-wbexfxvmmz] { opacity: 1; }

/* Soudure en avance sur les pièces : un signal, pas un blocage. */
.etape-alerte[b-wbexfxvmmz] {
    position: absolute; top: 2px; right: 4px;
    font-size: var(--fs-xs); line-height: 1; color: var(--status-warning-texte); cursor: help;
}

/* ---- Les PIÈCES d'un montant : sous-lignes, en retrait ----
   Même grille de colonnes que le montant (la jauge tombe sous SON étape), mais plus
   discrètes : elles détaillent la ligne du dessus, elles ne sont pas des lignes de commande. */
.piece-table tbody tr.sous-ligne td[b-wbexfxvmmz] { padding-top: 3px; padding-bottom: 3px; background: var(--bg-glass); }
.piece-table tbody tr.sous-ligne td[b-wbexfxvmmz] { font-size: var(--fs-xs); color: var(--text-secondary); }
.sous-desc[b-wbexfxvmmz] { display: flex; align-items: baseline; gap: 6px; padding-left: 14px; }
.sous-fleche[b-wbexfxvmmz] { color: var(--text-muted); }
.sous-ratio[b-wbexfxvmmz] { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sous-dims[b-wbexfxvmmz] { padding-left: 34px; }
/* Les sous-lignes sont plus serrées, mais la jauge reste une cible de doigt : 44 px. */
.piece-table tbody tr.sous-ligne .etape-btn[b-wbexfxvmmz] { padding: 3px 4px; }

/* ---- Le pointage, ouvert au clic sur une jauge ---- */
.pointage-pop[b-wbexfxvmmz] {
    position: absolute; z-index: var(--z-dropdown); left: 50%; transform: translateX(-50%); margin-top: 4px;
    display: flex; flex-direction: column; gap: 8px; width: 300px; padding: 12px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-elevated); box-shadow: var(--shadow-lg); text-align: left;
    /* `.data-table` est en `white-space: nowrap` (app.css) et ça DESCEND jusqu'ici : sans
       ce retour à la ligne, la phrase d'aide sortait du panneau et traversait la table
       d'un bord à l'autre. Le panneau est un encart, pas une cellule. */
    white-space: normal;
}
.pointage-pop-titre[b-wbexfxvmmz] {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-muted);
}
/* La croix faisait 16 × 16 px : introuvable au doigt. 44 × 44, mais rentrée dans les marges
   du panneau (marges négatives) pour ne pas gonfler la ligne du titre. */
.pointage-pop-fermer[b-wbexfxvmmz] {
    margin: -10px -10px -10px auto; border: 0; background: none; cursor: pointer;
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0;
    color: var(--text-muted); font-size: 18px; line-height: 1;
    border-radius: var(--radius-sm);
}
.pointage-pop-fermer:focus-visible[b-wbexfxvmmz] { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.pointage-pop-fermer:hover[b-wbexfxvmmz] { color: var(--text-primary); background: var(--bg-glass-hover); }

/* « ✓ Tout » est une ACTION. Elle emprunte la forme d'une puce mais jamais « is-on »,
   qui ne signifie qu'une chose dans l'app : « ce filtre est actif ». */
.chip.chip-action[b-wbexfxvmmz] { border-color: var(--accent); color: var(--accent); }
.chip.chip-action:hover[b-wbexfxvmmz] { background: var(--accent-soft); }
.pointage-pop-row[b-wbexfxvmmz] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* Les puces du pointage (−, +, +10, +50, ✓ Tout) : des cibles de 44 px, pas des étiquettes. */
.pointage-pop .chip[b-wbexfxvmmz] { min-height: 44px; min-width: 44px; padding: 6px 12px; font-size: var(--fs-md); }
.pointage-pop .input[b-wbexfxvmmz] { min-height: 44px; font-size: var(--fs-md); }
.pointage-pop .input.qte[b-wbexfxvmmz] {
    width: 76px; padding: 5px 8px; font-size: var(--fs-lg);
    text-align: right; font-variant-numeric: tabular-nums;
}
.pointage-pop-aide[b-wbexfxvmmz] { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; }
.pointage-pop-alerte[b-wbexfxvmmz] {
    padding: 5px 8px; border-radius: var(--radius-sm);
    background: var(--status-warning-fond); border-left: 3px solid var(--status-warning);
    font-size: var(--fs-xs); line-height: 1.4; color: var(--status-warning-texte);
}

/* La table DÉFILE dans sa carte (`.data-scroll` est en `overflow: auto`) : un panneau
   ouvert sur l'une des dernières lignes se faisait couper net par le bas de la carte.
   Tant qu'un pointage est ouvert, la table qui le porte — elle seule — réserve sous sa
   dernière ligne la hauteur d'un panneau. */
.data-scroll.a-pointage[b-wbexfxvmmz] { padding-bottom: 320px; }

/* ---- Écrans étroits (tablette d'atelier) ---- */
@media (max-width: 900px) {
    .piece-table tbody td:first-child[b-wbexfxvmmz],
    .cmd-head[b-wbexfxvmmz],
    .cmd-foot[b-wbexfxvmmz] { padding-left: 16px; }
    .projet-right[b-wbexfxvmmz] { margin-left: 0; width: 100%; }
}
/* /Components/Pages/Recherche.razor.rz.scp.css */
.groupe-resultats[b-2h0ttrrdha] { margin-top: 16px; }
.groupe-resultats:first-of-type[b-2h0ttrrdha] { margin-top: 8px; }

.stitre[b-2h0ttrrdha] {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}
/* /Components/Pages/SoumissionDetail.razor.rz.scp.css */
/* La fiche soumission — ce qui reste propre à la PAGE. L'idiome « fiche » (entête,
   chemin de vie, faits clés, prochain geste, onglets, rail) vit dans app.css : la fiche
   commande le partage. */

/* La description est la seule colonne qui a le droit de passer à la ligne : la table doit
   tenir dans sa colonne, et les chiffres restent alignés à droite. */
/* Ancrée sur .carte-onglets (rendue par cette page) : le panneau .onglet-corps, lui, est rendu par
   le composant partagé <Onglets>, hors de la portée du CSS isolé. */
.carte-onglets[b-13dn2ak1cl]  .onglet-corps .data-table td.desc { white-space: normal; min-width: 260px; }

/* Un volet d'approbation : un rond d'état, le titre, l'historique en deux lignes, les gestes. */
.volet[b-13dn2ak1cl] { border-top: 1px solid var(--border-subtle); padding-top: 10px; margin-top: 10px; }
.volet-tete[b-13dn2ak1cl] { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; font-size: 13px; }
.volet-tete strong[b-13dn2ak1cl] { display: block; font-weight: 600; }
.volet-tete .text-muted[b-13dn2ak1cl] { display: block; font-size: 12.5px; }
.volet-ico[b-13dn2ak1cl] {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 700;
    background: var(--bg-tertiary); color: var(--text-muted);
}
.volet-historique[b-13dn2ak1cl] { margin-bottom: 8px; }
.volet-historique li[b-13dn2ak1cl] { font-size: 12.5px; padding: 4px 0; }
.volet .form-field[b-13dn2ak1cl] { margin-top: 8px; }
.volet .form-actions[b-13dn2ak1cl] { margin-top: 8px; }
.volet.est-geste[b-13dn2ak1cl] { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: var(--radius-sm); padding: 10px 12px; }
.volet.est-geste .form-field[b-13dn2ak1cl] { margin-top: 0; }

/* Point "lb d'acier" — override du .status-dot partagé (voir app.css). */
.status-dot[b-13dn2ak1cl] { background: var(--accent-progression); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-progression) 18%, transparent); }

/* Modale « Trancher l'approbation » (SoumissionDetail) : plus large, défile si les motifs sont nombreux. */
.modal-approbation[b-13dn2ak1cl] { width: 560px; max-height: calc(100vh - 48px); overflow-y: auto; }
.modal-approbation .volet[b-13dn2ak1cl] { margin-bottom: 14px; }
/* /Components/Pages/UtilisateursPage.razor.rz.scp.css */
/* Styles de la page Usagers.
   La disposition (en-tête, carte) vient du design system global, la liste du composant
   DataTable, la fiche du tiroir (TiroirUtilisateur, styles globaux « Usagers & accès » d'app.css)
   et la matrice des accès du composant MatriceAcces, qui porte sa propre mise en forme. */

/* ── La section « Qui a le droit de quoi » ────────────────────────────────────────
   La cible d'un lien vers la matrice ne doit pas se cacher sous la barre d'app collante. */
#groupes[b-0d2svlayan] { scroll-margin-top: calc(var(--appbar-h) + 28px); }

.groupe-sans[b-0d2svlayan] { margin-top: 14px; }
/* /Components/Shared/AccesGroupe.razor.rz.scp.css */
/* Les droits d'un accès, rendus lisibles.
   Tout vient des variables du design system — aucune couleur en dur, pour que le
   thème sombre suive sans retouche. */

/* Les droits accordés en pleine encre, les refusés estompés. Le « · » garde la ligne
   alignée sur le « ✓ » — une case vide ferait sauter la colonne. */
.acces-droits[b-t2hiet98hx] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2px 14px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.acces-droits li[b-t2hiet98hx] { display: flex; align-items: baseline; gap: 7px; }
.acces-droits .puce[b-t2hiet98hx] { width: 10px; flex: none; text-align: center; }
.acces-droits .oui[b-t2hiet98hx] { color: var(--text-primary); }
.acces-droits .oui .puce[b-t2hiet98hx] { color: var(--accent); font-weight: 600; }
.acces-droits .non[b-t2hiet98hx] { color: var(--text-muted); opacity: .5; }

.acces-portee[b-t2hiet98hx] { margin: 0 0 6px; font-size: 12px; color: var(--text-muted); }
/* /Components/Shared/HistoriqueVersions.razor.rz.scp.css */
/* Le fil des versions : une entrée par papier sorti de la maison.
   Volontairement plus calme que le cycle de vie d'une commande — ici on ne
   décide rien, on relit. */

.versions-fil[b-46gamujop7] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.version-entree[b-46gamujop7] {
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    background: var(--bg-secondary);
}

/* La première version ne se compare à rien : son filet reste neutre, pour que
   l'œil n'y cherche pas un changement qui n'existe pas. */
.version-entree.est-premiere[b-46gamujop7] { border-left-color: var(--border); }

.version-tete[b-46gamujop7] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.version-numero[b-46gamujop7] {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-decoration: none;
}
.version-numero:hover[b-46gamujop7] { text-decoration: underline; }

/* Le montant va à droite : c'est la colonne que l'œil descend quand il cherche
   « à partir de quand le prix a bougé ». */
.version-total[b-46gamujop7] {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.version-changements[b-46gamujop7] {
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.55;
}

.version-pied[b-46gamujop7] {
    margin: 0;
    font-size: 12px;
}

/* LES RENVOIS — le même papier reparti. Décalés et discrets : ce ne sont pas des
   versions, et les montrer au même rang ferait exactement la confusion qu'on corrige. */
.version-renvois[b-46gamujop7] {
    margin: 0 0 6px;
    padding-left: 10px;
    border-left: 2px dashed var(--border);
}

.version-renvois .version-changements[b-46gamujop7] {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Les gestes d'une ligne (revoir le papier, le reprendre) — calés à GAUCHE, sous
   le contenu qu'ils visent, et non à droite comme les gestes d'un formulaire :
   ils appartiennent à la version, pas à la page. */
.version-gestes[b-46gamujop7] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
/* /Components/Shared/JournalDossier.razor.rz.scp.css */
/* Les onglets du fil sont ceux de l'app (<Onglets>, variante `.tabs-compact` d'app.css). */

/* ── Mode déplié : tous les volets sur le même écran ──────────────────────────
   L'historique (le plus long) prend la colonne de gauche ; rappels et fichiers
   s'empilent à droite. Sur écran étroit, tout retombe en une colonne.

   Tout visible en même temps ne suffit pas : sans frontière, le fil de
   l'historique et la liste des rappels se lisaient comme un seul bloc. D'où
   DEUX marqueurs qui se répondent — un filet qui sépare, un intitulé qui
   annonce. */
.panneaux.est-deplie[b-oozgbq5fjr] { display: grid; gap: 24px; }

/* Le filet entre deux volets empilés. Le trait tombe au milieu du creux :
   24 px de gouttière au-dessus, 24 px de retrait en dessous. */
.panneaux.est-deplie .panneau + .panneau[b-oozgbq5fjr] {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

@media (min-width: 1131px) {
    .panneaux.est-deplie[b-oozgbq5fjr] {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        column-gap: 0;
        align-items: start;

        /* Le filet vertical est peint sur le CONTENEUR, à la frontière des
           colonnes (3fr sur 5 = 60 %), et non en bordure d'un volet : il court
           ainsi sur toute la hauteur de la carte, que l'historique soit plus
           court ou plus long que la colonne de droite. */
        background: linear-gradient(var(--border), var(--border)) no-repeat 60% 0;
        background-size: 1px 100%;
    }
    .panneaux.est-deplie .panneau[b-oozgbq5fjr] { grid-column: 2; padding-left: 28px; }
    .panneaux.est-deplie .panneau-historique[b-oozgbq5fjr] {
        grid-column: 1;
        grid-row: 1;
        padding-left: 0;
        padding-right: 28px;
    }
    /* En colonnes, l'historique ne précède plus les rappels à la verticale :
       c'est le filet vertical qui fait la séparation. */
    .panneaux.est-deplie .panneau-historique + .panneau[b-oozgbq5fjr] {
        border-top: none;
        padding-top: 0;
    }
}

/* Intitulé de volet : la barre d'accent est le repère que l'œil accroche —
   en petites capitales grises seules, le titre se noyait dans le contenu. */
.panneau-titre[b-oozgbq5fjr] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.panneau-titre[b-oozgbq5fjr]::before {
    content: "";
    width: 3px;
    height: 13px;
    border-radius: var(--radius-full);
    background: var(--accent);
    flex: none;
}

.saisie-activite[b-oozgbq5fjr] {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

/* Le fil : une ligne de temps verticale, l'automatique en retrait visuel. */
.fil[b-oozgbq5fjr] { list-style: none; margin: 0; padding: 0; }
.fil-item[b-oozgbq5fjr] { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.fil-item:last-child[b-oozgbq5fjr] { border-bottom: none; }
.fil-marque[b-oozgbq5fjr] {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}
.fil-item.est-systeme .fil-marque[b-oozgbq5fjr] { background: var(--border); }
.fil-item.est-systeme .fil-entete strong[b-oozgbq5fjr] { font-weight: 500; color: var(--text-secondary); }
.fil-corps[b-oozgbq5fjr] { min-width: 0; flex: 1; }
.fil-entete[b-oozgbq5fjr] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.fil-texte[b-oozgbq5fjr] { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
.fil-meta[b-oozgbq5fjr] { margin-top: 4px; font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

.depot-fichier[b-oozgbq5fjr] {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
/* /Components/Shared/MatriceAcces.razor.rz.scp.css */
/* La matrice « qui a le droit de quoi ».
   Le tableau lui-même vient du design system (.data-table dans un .data-scroll) ; ne
   restent ici que les réglages propres à une matrice — des colonnes nombreuses et
   étroites, et des cases qui se lisent d'une colonne à l'autre. */

.matrice-acces .mat-droit[b-ve4m9tuj9a] {
    /* Les en-têtes de droits sont étroites et nombreuses : le libellé s'y écrit sur
       deux lignes plutôt que d'étirer la table sur trois écrans. */
    white-space: normal;
    min-width: 74px;
    max-width: 92px;
    text-align: center;
}

.matrice-acces .mat-groupe[b-ve4m9tuj9a] { font-weight: 600; color: var(--text-primary); }
.matrice-acces .mat-case[b-ve4m9tuj9a] { text-align: center; }
.matrice-acces .mat-case.oui[b-ve4m9tuj9a] { color: var(--accent); font-weight: 700; }
.matrice-acces .mat-case.non[b-ve4m9tuj9a] { color: var(--text-muted); opacity: .4; }
.matrice-acces .mat-portee[b-ve4m9tuj9a] { color: var(--text-secondary); font-style: italic; }
/* /Components/Shared/PanneauConseilIngenierie.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────────────────────────
   Le panneau du conseil d'ingénierie.

   Un liseré à gauche porte la gravité la plus haute du lot : on sait au coup
   d'œil, sans lire, si le dossier a un point rouge. Les couleurs reprennent la
   grammaire de l'app — rouge = corriger, jaune = vérifier, bleu = améliorer,
   vert = rien de relevé — et les mêmes teintes que les pastilles d'app.css,
   avec le même relevé en thème sombre (le fond translucide tient, le TEXTE
   doit s'éclaircir).
   ───────────────────────────────────────────────────────────────────────────── */

.avis-carte[b-r7gqpam302] {
    border-left: 3px solid var(--border);
}

.avis-carte.est-bloquant[b-r7gqpam302]  { border-left-color: var(--status-danger); }
.avis-carte.est-attention[b-r7gqpam302] { border-left-color: var(--status-warning); }
.avis-carte.est-conseil[b-r7gqpam302]   { border-left-color: var(--accent); }
.avis-carte.est-sain[b-r7gqpam302]      { border-left-color: var(--status-success); }

.avis-liste[b-r7gqpam302] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avis-item[b-r7gqpam302] {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-glass);
}

/* Le symbole double la couleur : lisible à l'impression et pour un daltonien. */
.avis-symbole[b-r7gqpam302] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.avis-item.est-bloquant  .avis-symbole[b-r7gqpam302] { background: var(--status-danger-fond);  color: var(--status-danger-texte); }
.avis-item.est-attention .avis-symbole[b-r7gqpam302] { background: var(--status-warning-fond); color: var(--status-warning-texte); }
.avis-item.est-conseil   .avis-symbole[b-r7gqpam302] { background: var(--status-info-fond);    color: var(--status-info-texte); }

.avis-corps[b-r7gqpam302] { flex: 1; min-width: 0; }

.avis-entete[b-r7gqpam302] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.avis-titre[b-r7gqpam302] { font-size: 14px; color: var(--text-primary); }

.avis-constat[b-r7gqpam302],
.avis-reco[b-r7gqpam302],
.avis-reference[b-r7gqpam302] {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.avis-constat[b-r7gqpam302] { color: var(--text-secondary); }
.avis-reco[b-r7gqpam302]    { color: var(--text-primary); margin-top: 4px; }

.avis-reference[b-r7gqpam302] {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* L'avertissement suit les avis comme la mention légale suit le prix : jamais l'un sans l'autre. */
.avis-avertissement[b-r7gqpam302] {
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Le code de la règle : discret, mais c'est la clé qui mène au registre. */
.avis-code[b-r7gqpam302] {
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
}

/* Ce que le robot a regardé — au-dessus de l'avertissement, dans le même ton. */
.avis-portee[b-r7gqpam302] {
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

.avis-portee strong[b-r7gqpam302] { color: var(--text-secondary); }
.avis-portee .btn-link[b-r7gqpam302] { margin-left: 8px; }

/* Les deux blocs de pied se suivent : un seul filet entre eux. */
.avis-portee + .avis-avertissement[b-r7gqpam302] {
    border-top: 0;
    margin-top: 6px;
    padding-top: 0;
}
/* /Components/Shared/PreferencesNotifications.razor.rz.scp.css */
/* Les types de notification : une grille de cases, lisible d'un coup d'œil plutôt
   qu'une longue colonne qu'il faut faire défiler. */
.pref-notif-types[b-ekrpa44oy8] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px 16px;
}
/* /Components/Shared/RapportsSurDemande.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────────────────────────
   Rapports sur demande — tout le visuel suit le kit Proxima (STYLE_GUIDE.md) :
   jetons de surface, rayons, ombres, contrôle segmenté, avatars, progression.
   Les graphiques sont du HTML/CSS pur : aucune librairie, rien à charger, et ils
   suivent le thème clair/sombre comme le reste de l'app.
   ───────────────────────────────────────────────────────────────────────────── */

/* Les couleurs de SÉRIE — une teinte fixe par étape (ordre du plancher) et par type
   de système. Palette catégorielle validée daltonisme (écart ΔE ≥ 8 entre voisines),
   pas de bleu de marque recyclé : la marque reste pour l'interactif. En thème sombre,
   les mêmes teintes, éclaircies pour la surface sombre (pas une inversion automatique). */
.rapports[b-wh4i5h7gjb] {
    --serie-0: #2a78d6;
    --serie-1: #eb6834;
    --serie-2: #1baf7a;
    --serie-3: #eda100;
    --serie-4: #e87ba4;
    --serie-5: #008300;
    --serie-6: #6250d6;
    --serie-7: #e34948;
    --barre: var(--accent-fill);

    display: flex;
    flex-direction: column;
    gap: 16px;
}
[data-theme="dark"] .rapports[b-wh4i5h7gjb] {
    --serie-0: #3987e5;
    --serie-1: #d95926;
    --serie-2: #199e70;
    --serie-3: #c98500;
    --serie-4: #d55181;
    --serie-5: #008300;
    --serie-6: #9085e9;
    --serie-7: #e66767;
    --barre: #4d7dff;
}

.serie-0[b-wh4i5h7gjb] { --serie: var(--serie-0); }
.serie-1[b-wh4i5h7gjb] { --serie: var(--serie-1); }
.serie-2[b-wh4i5h7gjb] { --serie: var(--serie-2); }
.serie-3[b-wh4i5h7gjb] { --serie: var(--serie-3); }
.serie-4[b-wh4i5h7gjb] { --serie: var(--serie-4); }
.serie-5[b-wh4i5h7gjb] { --serie: var(--serie-5); }
.serie-6[b-wh4i5h7gjb] { --serie: var(--serie-6); }
.serie-7[b-wh4i5h7gjb] { --serie: var(--serie-7); }

.pastille[b-wh4i5h7gjb] {
    display: inline-block;
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--serie, var(--text-muted));
}

/* ── Le choix du rapport ─────────────────────────────────────────────────── */
.rapport-choix-grille[b-wh4i5h7gjb] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.rapport-choix[b-wh4i5h7gjb] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    text-align: left;
    font-family: inherit;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background-color var(--transition);
}
.rapport-choix:hover[b-wh4i5h7gjb] { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.rapport-choix:focus-visible[b-wh4i5h7gjb] { outline: 2px solid var(--accent); outline-offset: 2px; }
.rapport-choix.is-active[b-wh4i5h7gjb] {
    border-color: var(--accent);
    background-color: var(--bg-secondary);
    background-image: var(--accent-wash);
    box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md);
}
.rapport-choix-icone[b-wh4i5h7gjb] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: background-color var(--transition), color var(--transition);
}
.rapport-choix.is-active .rapport-choix-icone[b-wh4i5h7gjb] { background: var(--accent-gradient); color: var(--texte-sur-plein); box-shadow: 0 4px 12px var(--accent-glow); }
.rapport-choix-texte[b-wh4i5h7gjb] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rapport-choix-titre[b-wh4i5h7gjb] { font-size: 14.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.rapport-choix-question[b-wh4i5h7gjb] { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

/* ── Le panneau de filtres ───────────────────────────────────────────────── */
.rapport-panneau[b-wh4i5h7gjb] {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
}
.rapport-panneau-tete[b-wh4i5h7gjb] { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.rapport-panneau-titre[b-wh4i5h7gjb] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.rapport-panneau-aide[b-wh4i5h7gjb] { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: 860px; }

.filtres[b-wh4i5h7gjb] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 14px 16px;
    align-items: start;
}
.filtre[b-wh4i5h7gjb] { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filtre-large[b-wh4i5h7gjb] { grid-column: 1 / -1; }
.filtre-segmente[b-wh4i5h7gjb] { grid-column: span 2; }
@media (max-width: 640px) { .filtre-segmente[b-wh4i5h7gjb] { grid-column: 1 / -1; } }
.filtre .segmented-option[b-wh4i5h7gjb] { flex: 0 0 auto; }
.filtre .segmented[b-wh4i5h7gjb] { align-self: flex-start; }
.filtre-libelle[b-wh4i5h7gjb] { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

.chip-rangee[b-wh4i5h7gjb] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip .pastille[b-wh4i5h7gjb] { width: 8px; height: 8px; }

.case-a-cocher[b-wh4i5h7gjb] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 7px;
    font-size: 13px;
    color: var(--text-secondary);
}

.rapport-panneau-pied[b-wh4i5h7gjb] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}
.rapports .btn-secondary[b-wh4i5h7gjb] { gap: 7px; }
.rapport-panneau-pied .btn-primary[b-wh4i5h7gjb] { padding: 10px 20px; }

/* ── Avant le premier rapport ────────────────────────────────────────────── */
.rapport-attente[b-wh4i5h7gjb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 44px 24px;
    text-align: center;
    background-color: var(--bg-secondary);
    background-image: var(--accent-wash);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.rapport-attente-icone[b-wh4i5h7gjb] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}
.rapport-attente-titre[b-wh4i5h7gjb] { font-size: 17px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.rapport-attente-texte[b-wh4i5h7gjb] { font-size: 13.5px; color: var(--text-muted); }

/* ── Le résultat ─────────────────────────────────────────────────────────── */
.rapport-resultat[b-wh4i5h7gjb] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 24px;
    background-color: var(--bg-secondary);
    background-image: var(--accent-wash);
    background-repeat: no-repeat;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: entree-b-wh4i5h7gjb 0.35s ease-out;
}
.rapport-tete[b-wh4i5h7gjb] { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rapport-surtitre[b-wh4i5h7gjb] {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}
.rapport-titre[b-wh4i5h7gjb] { margin: 4px 0 2px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.rapport-meta[b-wh4i5h7gjb] { font-size: 12.5px; color: var(--text-muted); }
.rapport-vide[b-wh4i5h7gjb] { margin: 0; padding: 18px; text-align: center; color: var(--text-muted); background: var(--bg-glass); border-radius: var(--radius-md); }

/* Tuiles d'indicateurs : l'icône situe, le chiffre domine, la ligne du dessous l'explique. */
.tuiles[b-wh4i5h7gjb] { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tuile[b-wh4i5h7gjb] {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icone libelle" "valeur valeur" "sous sous";
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.tuile-icone[b-wh4i5h7gjb] {
    grid-area: icone;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
}
.tuile-libelle[b-wh4i5h7gjb] { grid-area: libelle; font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.tuile-valeur[b-wh4i5h7gjb] { grid-area: valeur; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.tuile-valeur small[b-wh4i5h7gjb] { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.tuile-sous[b-wh4i5h7gjb] { grid-area: sous; font-size: 12px; color: var(--text-muted); }
.tuile-alerte[b-wh4i5h7gjb] { border-color: var(--status-warning-bord); background: color-mix(in srgb, var(--status-warning) 6%, transparent); }
.tuile-alerte .tuile-icone[b-wh4i5h7gjb] { background: var(--status-warning-fond); color: var(--status-warning-texte); }

/* ── Les graphiques ──────────────────────────────────────────────────────── */
.rapport-grille[b-wh4i5h7gjb] { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .rapport-grille[b-wh4i5h7gjb] { grid-template-columns: 1fr; } }

.viz[b-wh4i5h7gjb] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.viz-tete[b-wh4i5h7gjb] { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.viz-titre[b-wh4i5h7gjb] { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.viz-note[b-wh4i5h7gjb] { font-size: 12px; color: var(--text-muted); }
.part[b-wh4i5h7gjb] { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Colonnes — une série, la couleur de marque ; grille discrète, axe à trois repères. */
.colonnes[b-wh4i5h7gjb] { display: grid; grid-template-columns: auto 1fr; gap: 8px; flex: 1; min-height: 240px; }
.colonnes-axe[b-wh4i5h7gjb] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 22px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.colonnes-axe span[b-wh4i5h7gjb] { transform: translateY(-50%); }
.colonnes-axe span:last-child[b-wh4i5h7gjb] { transform: translateY(50%); }
.colonnes-trace[b-wh4i5h7gjb] { position: relative; display: flex; align-items: flex-end; gap: 4px; padding-bottom: 22px; min-width: 0; }
.colonnes-grille[b-wh4i5h7gjb] {
    position: absolute;
    inset: 0 0 22px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.colonnes-grille span[b-wh4i5h7gjb] { border-top: 1px dashed var(--border); }
.colonnes-grille span:last-child[b-wh4i5h7gjb] { border-top: 1px solid var(--border); }

.colonne[b-wh4i5h7gjb] {
    position: relative;
    flex: 1 1 0;
    max-width: 44px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    outline: none;
    cursor: default;
}
.colonne-barre[b-wh4i5h7gjb] {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    background: var(--barre);
    transform-origin: bottom;
    animation: pousse-b-wh4i5h7gjb 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transition: filter var(--transition), opacity var(--transition);
}
.colonne.est-vide .colonne-barre[b-wh4i5h7gjb] { background: var(--border); }
.colonnes-trace:hover .colonne-barre[b-wh4i5h7gjb] { opacity: 0.45; }
.colonnes-trace .colonne:hover .colonne-barre[b-wh4i5h7gjb],
.colonne:focus-visible .colonne-barre[b-wh4i5h7gjb] { opacity: 1; filter: brightness(1.1); }
.colonne:focus-visible[b-wh4i5h7gjb] { box-shadow: inset 0 0 0 2px var(--accent-soft); border-radius: 6px; }
.colonne-x[b-wh4i5h7gjb] {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.colonne-record[b-wh4i5h7gjb] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    pointer-events: none;
}

/* L'infobulle commune (colonnes, segments empilés). */
.bulle[b-wh4i5h7gjb] {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    transform: translate(-50%, 4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.bulle strong[b-wh4i5h7gjb] { color: var(--text-primary); font-weight: 600; }
.colonne:hover .bulle[b-wh4i5h7gjb],
.colonne:focus-visible .bulle[b-wh4i5h7gjb],
.empile-segment:hover .bulle[b-wh4i5h7gjb],
.empile-segment:focus-visible .bulle[b-wh4i5h7gjb] { opacity: 1; transform: translate(-50%, 0); }

/* Barres horizontales classées (par poste, par personne). */
.barres-h[b-wh4i5h7gjb], .equipe[b-wh4i5h7gjb] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.barres-h-entete[b-wh4i5h7gjb] { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--text-secondary); margin-bottom: 5px; }
.barres-h-entete strong[b-wh4i5h7gjb] { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.barres-h-piste[b-wh4i5h7gjb] { height: 8px; border-radius: var(--radius-full); background: var(--bg-tertiary); overflow: hidden; }
.barres-h-piste span[b-wh4i5h7gjb] {
    display: block;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--barre);
    transform-origin: left;
    animation: etire-b-wh4i5h7gjb 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.barres-h li.est-vide[b-wh4i5h7gjb] { opacity: 0.55; }
.equipe li[b-wh4i5h7gjb] { display: flex; align-items: center; gap: 10px; }
.equipe-corps[b-wh4i5h7gjb] { flex: 1; min-width: 0; }

/* Barre empilée (composition). 2 px de surface entre segments : chacun se lit seul. */
.empile[b-wh4i5h7gjb] {
    display: flex;
    gap: 2px;
    height: 14px;
    border-radius: 4px;
}
.empile-segment[b-wh4i5h7gjb] {
    position: relative;
    flex-basis: 0;
    min-width: 4px;
    background: var(--serie);
    outline: none;
    animation: etire-b-wh4i5h7gjb 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transform-origin: left;
    transition: filter var(--transition);
}
.empile-segment:first-child[b-wh4i5h7gjb] { border-radius: 4px 0 0 4px; }
.empile-segment:last-child[b-wh4i5h7gjb] { border-radius: 0 4px 4px 0; }
.empile-segment:only-child[b-wh4i5h7gjb] { border-radius: 4px; }
.empile-segment:hover[b-wh4i5h7gjb], .empile-segment:focus-visible[b-wh4i5h7gjb] { filter: brightness(1.12); }
.empile-segment:focus-visible[b-wh4i5h7gjb] { box-shadow: 0 0 0 2px var(--bg-elevated), 0 0 0 4px var(--accent); }

.legende[b-wh4i5h7gjb] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legende li[b-wh4i5h7gjb] { display: grid; grid-template-columns: auto 1fr auto 42px; align-items: center; gap: 8px; font-size: 13px; }
.legende-nom[b-wh4i5h7gjb] { color: var(--text-secondary); }
.legende-valeur[b-wh4i5h7gjb] { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.legende .part[b-wh4i5h7gjb] { text-align: right; }
.legende-ligne[b-wh4i5h7gjb] { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
.legende-ligne li[b-wh4i5h7gjb] { display: inline-flex; gap: 6px; font-size: 12px; }

/* Ventes : une rangée par vendeur, la barre empilée par système. */
.vendeurs[b-wh4i5h7gjb] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vendeurs li[b-wh4i5h7gjb] { display: grid; grid-template-columns: minmax(170px, 220px) 1fr auto; align-items: center; gap: 14px; }
.vendeur-nom[b-wh4i5h7gjb] { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; color: var(--text-primary); }
.vendeur-piste[b-wh4i5h7gjb] { display: block; min-width: 0; }
.vendeur-piste .empile[b-wh4i5h7gjb] { height: 22px; }
.vendeur-piste .empile-segment:first-child[b-wh4i5h7gjb] { border-radius: 5px 0 0 5px; }
.vendeur-piste .empile-segment:last-child[b-wh4i5h7gjb] { border-radius: 0 5px 5px 0; }
.vendeur-piste .empile-segment:only-child[b-wh4i5h7gjb] { border-radius: 5px; }
.vendeur-total[b-wh4i5h7gjb] { font-size: 13.5px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
@media (max-width: 640px) {
    .vendeurs li[b-wh4i5h7gjb] { grid-template-columns: 1fr auto; }
    .vendeur-piste[b-wh4i5h7gjb] { grid-column: 1 / -1; grid-row: 2; }
}

/* ── Le journalier : un bloc par étape ───────────────────────────────────── */
.etape-bloc[b-wh4i5h7gjb] {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    overflow: hidden;
}
.etape-tete[b-wh4i5h7gjb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-left: 4px solid var(--serie, var(--border));
}
.etapes-vides[b-wh4i5h7gjb] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 12.5px; color: var(--text-muted); }
.etape-vide[b-wh4i5h7gjb] { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.etape-vide .pastille[b-wh4i5h7gjb] { opacity: 0.55; }
.etape-nom[b-wh4i5h7gjb] { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.etape-chiffres[b-wh4i5h7gjb] { display: inline-flex; align-items: baseline; gap: 14px; font-size: 13px; color: var(--text-muted); }
.etape-chiffres strong[b-wh4i5h7gjb] { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.etape-bloc .data-table thead th[b-wh4i5h7gjb] { position: static; }

/* Tables : plus d'air, numéros en pastille, personnes avec leur avatar. */
.table-aeree tbody td[b-wh4i5h7gjb] { padding: 10px 14px; vertical-align: middle; }
.table-aeree tbody tr:last-child td[b-wh4i5h7gjb] { border-bottom: 0; }
.numero[b-wh4i5h7gjb] {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background-color var(--transition);
}
.numero:hover[b-wh4i5h7gjb] { background: var(--accent-glow); }
.produit[b-wh4i5h7gjb] { white-space: normal; min-width: 240px; color: var(--text-secondary); }
.personne[b-wh4i5h7gjb] { display: inline-flex; align-items: center; gap: 8px; }
.machine[b-wh4i5h7gjb], .systeme[b-wh4i5h7gjb] {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}
.muted[b-wh4i5h7gjb] { color: var(--text-muted); }
.cellule-double[b-wh4i5h7gjb] { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.cellule-double .muted[b-wh4i5h7gjb] { font-size: 12px; }

/* ── Le carnet ───────────────────────────────────────────────────────────── */
.avancement-grille[b-wh4i5h7gjb] { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.avancement[b-wh4i5h7gjb] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.avancement.is-active[b-wh4i5h7gjb] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.avancement-tete[b-wh4i5h7gjb] { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.avancement-pct[b-wh4i5h7gjb] { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.avancement .progress[b-wh4i5h7gjb] { height: 8px; }
.avancement-pied[b-wh4i5h7gjb] { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.avancement-pied strong[b-wh4i5h7gjb] { color: var(--text-secondary); font-weight: 600; }

.mini-avancement[b-wh4i5h7gjb] { display: inline-flex; align-items: center; gap: 8px; min-width: 130px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mini-avancement .progress[b-wh4i5h7gjb] { width: 80px; }
.en-retard td:first-child[b-wh4i5h7gjb] { box-shadow: inset 3px 0 0 var(--status-warning); }
.retard[b-wh4i5h7gjb] { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--status-warning-texte); }

/* ── Le tableau détaillé (repliable) ─────────────────────────────────────── */
.rapport-tableau[b-wh4i5h7gjb] { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elevated); }
.rapport-tableau summary[b-wh4i5h7gjb] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.rapport-tableau summary[b-wh4i5h7gjb]::-webkit-details-marker { display: none; }
.rapport-tableau summary[b-wh4i5h7gjb]::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform var(--transition);
}
.rapport-tableau[open] summary[b-wh4i5h7gjb]::after { transform: rotate(45deg); }
.rapport-tableau summary span[b-wh4i5h7gjb] { font-weight: 400; font-size: 12.5px; color: var(--text-muted); margin-left: auto; }
.rapport-tableau .data-scroll[b-wh4i5h7gjb] { margin: 0 12px 12px; max-height: 520px; }

.groupe-poste[b-wh4i5h7gjb] { text-align: center !important; border-left: 1px solid var(--border); }
.groupe-debut[b-wh4i5h7gjb] { border-left: 1px solid var(--border); }
.col-fixe[b-wh4i5h7gjb] { position: sticky; left: 0; z-index: 2; background: var(--bg-elevated); }
thead .col-fixe[b-wh4i5h7gjb], tfoot .col-fixe[b-wh4i5h7gjb] { background: var(--bg-tertiary); z-index: 3; }
.periode-vide td[b-wh4i5h7gjb] { color: var(--text-muted); }

/* ── Mouvement ───────────────────────────────────────────────────────────── */
@keyframes entree-b-wh4i5h7gjb { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pousse-b-wh4i5h7gjb { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes etire-b-wh4i5h7gjb { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .rapport-resultat[b-wh4i5h7gjb], .colonne-barre[b-wh4i5h7gjb], .barres-h-piste span[b-wh4i5h7gjb], .empile-segment[b-wh4i5h7gjb] { animation: none; }
}

@media (max-width: 640px) {
    .rapport-resultat[b-wh4i5h7gjb], .rapport-panneau[b-wh4i5h7gjb] { padding: 16px; }
    .rapport-titre[b-wh4i5h7gjb] { font-size: 20px; }
    .colonnes[b-wh4i5h7gjb] { height: 200px; }
}
.colonne:hover .colonne-record[b-wh4i5h7gjb], .colonne:focus-visible .colonne-record[b-wh4i5h7gjb] { opacity: 0; }
