/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-cbxwjrofxn] {
    display: flex;
    min-height: 100vh;
    background: #f4f6fa;
}

.main-area[b-cbxwjrofxn] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-area[b-cbxwjrofxn] {
    flex: 1;
    padding: 1.5rem;
}

#blazor-error-ui[b-cbxwjrofxn] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-cbxwjrofxn] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Sous 768px, la sidebar devient un tiroir "position: fixed" (voir Sidebar.razor.css) :
   elle sort du flux flex normal, donc .app-shell reste en ligne (pas besoin de
   flex-direction: column) et .main-area occupe naturellement toute la largeur. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-oloc7yezi4],
.components-reconnect-repeated-attempt-visible[b-oloc7yezi4],
.components-reconnect-failed-visible[b-oloc7yezi4],
.components-pause-visible[b-oloc7yezi4],
.components-resume-failed-visible[b-oloc7yezi4],
.components-rejoining-animation[b-oloc7yezi4] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-retrying[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-failed[b-oloc7yezi4],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-oloc7yezi4] {
    display: block;
}


#components-reconnect-modal[b-oloc7yezi4] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-oloc7yezi4 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-oloc7yezi4 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-oloc7yezi4 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-oloc7yezi4]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-oloc7yezi4 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-oloc7yezi4 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-oloc7yezi4 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-oloc7yezi4 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-oloc7yezi4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-oloc7yezi4] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-oloc7yezi4] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-oloc7yezi4] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-oloc7yezi4] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-oloc7yezi4] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-oloc7yezi4] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-oloc7yezi4 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-oloc7yezi4] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-oloc7yezi4 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/Sidebar.razor.rz.scp.css */
.app-sidebar[b-pmydz0qsy0] {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0c1730 0%, #101f42 100%);
    color: #cbd5e1;
    overflow: hidden;
}

.sidebar-brand[b-pmydz0qsy0] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-logo[b-pmydz0qsy0] {
    width: 100%;
    max-width: 190px;
    height: auto;
}

.sidebar-close[b-pmydz0qsy0] {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}

    .sidebar-close:hover[b-pmydz0qsy0] {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

.sidebar-overlay[b-pmydz0qsy0] {
    display: none;
}

.sidebar-nav[b-pmydz0qsy0] {
    flex: 1;
    padding: 0.5rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

    .sidebar-nav[b-pmydz0qsy0]::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-nav[b-pmydz0qsy0]::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 3px;
    }

    .sidebar-nav[b-pmydz0qsy0]::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.sidebar-section-header[b-pmydz0qsy0] {
    margin: 1.15rem 0.5rem 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #5ecbb3;
    text-transform: uppercase;
}

    .sidebar-section-header[b-pmydz0qsy0]::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, rgba(94, 203, 179, 0.35), transparent);
    }

.sidebar-nav[b-pmydz0qsy0]  .sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.48rem 0.75rem 0.48rem 0.9rem;
    margin: 0.1rem 0;
    border-radius: 7px;
    color: #b6c2d9;
    text-decoration: none;
    font-size: 0.87rem;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

    .sidebar-nav[b-pmydz0qsy0]  .sidebar-link::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.2rem;
        bottom: 0.2rem;
        width: 3px;
        border-radius: 2px;
        background: #ffffff;
        opacity: 0;
        transition: opacity 0.15s ease;
    }

.sidebar-dot[b-pmydz0qsy0] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    flex: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-label[b-pmydz0qsy0] {
    flex: 1;
    min-width: 0;
}

/* T9-h — badge « à venir ». Discret VOLONTAIREMENT : il informe sans crier, et ne doit pas
   attirer l'œil davantage que les modules réellement disponibles.
   ⚠️ Pas de ::deep ici : le <span> est écrit dans le markup de Sidebar.razor, il porte donc
   l'attribut de portée (comme .sidebar-label). ::deep ne sert qu'à l'élément racine rendu PAR
   le composant NavLink lui-même (piège #9). */
.sidebar-avenir[b-pmydz0qsy0] {
    flex: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    white-space: nowrap;
}

.sidebar-nav[b-pmydz0qsy0]  .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
    padding-left: 1.05rem;
}

    .sidebar-nav[b-pmydz0qsy0]  .sidebar-link:hover .sidebar-dot {
        opacity: 0.9;
    }

.sidebar-nav[b-pmydz0qsy0]  .sidebar-link.active {
    background: linear-gradient(90deg, rgba(20, 163, 127, 0.9), rgba(6, 182, 212, 0.75));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 163, 127, 0.25);
}

    .sidebar-nav[b-pmydz0qsy0]  .sidebar-link.active::before {
        opacity: 1;
    }

    .sidebar-nav[b-pmydz0qsy0]  .sidebar-link.active .sidebar-dot {
        opacity: 1;
        transform: scale(1.3);
    }

.sidebar-footer[b-pmydz0qsy0] {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer[b-pmydz0qsy0]  .sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.48rem 0.75rem 0.48rem 0.9rem;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.87rem;
    color: #f87171;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .sidebar-footer[b-pmydz0qsy0]  .sidebar-link .sidebar-dot {
        background: #f87171;
    }

    .sidebar-footer[b-pmydz0qsy0]  .sidebar-link:hover {
        background: rgba(248, 113, 113, 0.12);
        color: #fca5a5;
        text-decoration: none;
    }

/* Sous 768px : la sidebar devient un tiroir hors-écran ("off-canvas drawer") plutôt
   que la colonne fixe du desktop. "position: fixed" (et non plus "sticky") la sort
   entièrement du flux flex de .app-shell, donc .main-area reprend automatiquement
   toute la largeur sans qu'il soit nécessaire de changer .app-shell en colonne. */
@media (max-width: 768px) {
    .app-sidebar[b-pmydz0qsy0] {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        min-width: 0;
        height: 100vh;
        max-height: 100vh;
        z-index: 1100;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

        .app-sidebar.open[b-pmydz0qsy0] {
            transform: translateX(0);
        }

    .sidebar-brand[b-pmydz0qsy0] {
        justify-content: space-between;
    }

    .sidebar-close[b-pmydz0qsy0] {
        display: flex;
    }

    .sidebar-overlay[b-pmydz0qsy0] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(12, 23, 48, 0.55);
        z-index: 1090;
    }

    .sidebar-nav[b-pmydz0qsy0]  .sidebar-link,
    .sidebar-footer[b-pmydz0qsy0]  .sidebar-link {
        min-height: 44px;
    }
}
/* /Components/Layout/TopBar.razor.rz.scp.css */
.app-topbar[b-eqn01cwto3] {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.topbar-brand[b-eqn01cwto3] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: none;
    margin-right: 26px;
}

.brand-badge[b-eqn01cwto3] {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ink);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 15px;
}

.brand-name[b-eqn01cwto3] {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.2px;
    color: var(--ink);
}

.hamburger-btn[b-eqn01cwto3] {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
}

    .hamburger-btn:hover[b-eqn01cwto3] {
        background: #f1f5f9;
    }

.mobile-brand[b-eqn01cwto3] {
    display: none;
    flex: none;
    align-items: center;
    margin-right: auto;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.top-tabs[b-eqn01cwto3] {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 30px;
    margin-right: auto;
    overflow-x: auto;
}

.top-tab[b-eqn01cwto3] {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 2px;
    color: var(--slate);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
}

.top-tab:hover[b-eqn01cwto3] {
    color: var(--ink);
    text-decoration: none;
}

.top-tab.active[b-eqn01cwto3] {
    color: var(--ink);
    border-bottom-color: var(--teal);
}

.topbar-user[b-eqn01cwto3] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: none;
}

.icon-btn[b-eqn01cwto3] {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--paper);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn:hover[b-eqn01cwto3] {
    background: var(--line);
}

.icon-btn .badge[b-eqn01cwto3] {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    border: 2px solid var(--surface);
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 12px;
    text-align: center;
}

.user-chip[b-eqn01cwto3] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0.85rem;
    margin-left: 0.3rem;
    border-left: 1px solid var(--line);
}

.avatar[b-eqn01cwto3] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-meta[b-eqn01cwto3] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .user-meta strong[b-eqn01cwto3] {
        color: var(--ink);
        font-size: 13.5px;
        font-weight: 600;
    }

    .user-meta small[b-eqn01cwto3] {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--green);
        font-size: 11px;
        font-weight: 500;
    }

.status-dot[b-eqn01cwto3] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* Sous 768px : ligne 1 = hamburger + marque compacte + zone utilisateur réduite ;
   ligne 2 (forcée par flex-wrap + "order") = les onglets, défilables horizontalement
   plutôt qu'empilés verticalement. Choix fait plutôt que de les déplacer dans le
   tiroir : ils restent accessibles en un seul geste (glisser), sans le tap
   supplémentaire qu'il faudrait pour ouvrir le tiroir juste pour changer d'onglet. */
@media (max-width: 768px) {
    .app-topbar[b-eqn01cwto3] {
        flex-wrap: wrap;
        height: auto;
        min-height: 3.75rem;
        padding: 0.4rem 0.75rem;
        row-gap: 0.35rem;
    }

    .hamburger-btn[b-eqn01cwto3] {
        display: inline-flex;
    }

    .mobile-brand[b-eqn01cwto3] {
        display: inline-flex;
    }

    .topbar-brand[b-eqn01cwto3] {
        display: none;
    }

    .top-tabs[b-eqn01cwto3] {
        order: 3;
        flex: 1 1 100%;
        height: 2.4rem;
        gap: 0.25rem;
    }

    .top-tab[b-eqn01cwto3] {
        padding: 0 0.6rem;
        font-size: 0.85rem;
    }

    .topbar-user[b-eqn01cwto3] {
        gap: 0.4rem;
    }

    .icon-btn[aria-label="Messages"][b-eqn01cwto3],
    .user-meta[b-eqn01cwto3] {
        display: none;
    }

    .user-chip[b-eqn01cwto3] {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
}
/* /Components/Pages/DocumentPublic.razor.rz.scp.css */
/* LIENDOC — la page publique.

   ⚠️⚠️ CSS ISOLÉ (.razor.css), jamais une feuille globale : c'est la SEULE page du dépôt servie
      à un anonyme, et la leçon T-UI a été payée DEUX FOIS — styler un conteneur partagé
      (`.btn-filtres`, puis `.crud-toolbar-actions`) avait cassé des écrans que la tranche ne
      touchait même pas. Ici la fuite est IMPOSSIBLE par construction.

   ⚠️ Et rien ici ne cible une BALISE NUE : un préfixe protège les classes, pas les balises — les
      composants d'impression sont rendus DANS cette page et hériteraient de tout sélecteur large.
      ⭐ Leur mise en page (`pf-*`) doit rester EXACTEMENT celle de l'impression interne : c'est le
      point de toute la tranche — le destinataire reçoit LE MÊME document, jamais une variante. */

.docpub-etat[b-rx9tt64qtc] {
    max-width: 34rem;
    margin: 6rem auto;
    padding: 0 1.25rem;
    text-align: center;
}

/* ⚠️ Ces états ne sont PAS des erreurs techniques : ce sont des états NORMAUX (lien expiré,
   document retiré, jeton inconnu). Le ton reste sobre — un cadre rouge ferait croire à une panne
   du navigateur du client, alors que le message DIT déjà quoi faire. */
.docpub-msg[b-rx9tt64qtc] {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink, #14171F);
}

/* ⚠️ Aucune marge ni aucun fond ici : le document doit occuper la page comme à l'impression. */
.docpub-doc[b-rx9tt64qtc] {
    margin: 0;
}

/* =============================================================================
   T-DOCPUB — LA PAGE PUBLIQUE : LE FOND, LE TELEPHONE, ET LE BOUTON D IMPRESSION

   (*)(*) TOUT CE BLOC EST BORNE A `@media screen`, ET C EST LA GARANTIE CENTRALE DE LA
   TRANCHE : le destinataire doit recevoir LE MEME document que celui qu on imprime en
   interne. Le rendu IMPRIME ne doit pas bouger d un pixel -- et il ne le peut pas, puisque
   rien ici ne s applique a l impression. C est PROUVE par t113 (le bouton disparait sous
   emulateMedia('print')) et par t97, qui compte les lignes rendues des onze impressions.

   ---------------------------------------------------------------------------------------
   1. LE FOND ETAIT ANCRE A LA FENETRE, PAS A LA FEUILLE.
   `app.css` pose `.papier-fond { position: fixed; inset: 0; width/height: 100% }`. A
   L IMPRESSION c est JUSTE : le viewport EST la feuille. A L ECRAN, le viewport est la
   FENETRE -- et `object-fit` vaut `fill` par defaut, donc l image est DEFORMEE, pas recadree.
   MESURE : fond 1920x900 = ratio 2,133 sur un papier dessine pour une A4 (0,707), soit
   TROIS FOIS trop large ; et 390x844 = 0,462 sur telephone. La feuille, elle, etait deja
   correcte (794 px, centree).
   (!)(!) LE DEFAUT EST PREEXISTANT ET PARTAGE PAR LES VINGT PAGES D IMPRESSION. S il
   n apparait que MAINTENANT, c est que `AutoImprimer="false"` n existe QUE dans cette page
   (mesure : 7 occurrences, un seul fichier) : les vingt autres vont DIRECTEMENT a
   window.print() et personne ne regarde jamais leur apercu a l ecran. CETTE PAGE EST LA
   SEULE DU DEPOT OU L ON CONSULTE UN DOCUMENT.
   (!) LE REMEDE EST DONC BORNE A ELLE : le poser dans `app.css` toucherait vingt pages pour
   un gain NUL, et ce depot a paye DEUX FOIS le prix d un style pose sur un conteneur
   partage (T-UI : .btn-filtres, puis .crud-toolbar-actions).
   (!) ET CE N EST PAS LE REMEDE DE T-MARGES : celui-la corrigeait une MARGE (une longueur
   physique qui ne suivait pas le format). Ici la marge va bien -- le contenu est deja borne
   a 210 mm et centre. C est le FOND qui est accroche au mauvais conteneur.
   ============================================================================= */
@media screen {

    /* `.pf-root` est le PARENT COMMUN de l image et de la feuille (structure mesuree :
       .pf-root > img.papier-fond + div.pf-sheet). On en fait un conteneur de position AU
       FORMAT D UNE A4 : le fond s y ancre alors exactement comme il s ancre a la feuille
       lors de l impression. */
    .docpub-doc[b-rx9tt64qtc]  .pf-root {
        position: relative;
        width: 210mm;
        max-width: 100%;
        min-height: 297mm;
        margin: 16px auto;
    }

    .docpub-doc[b-rx9tt64qtc]  .pf-fmt-a5 .pf-root,
    .docpub-doc[b-rx9tt64qtc]  .pf-root.pf-fmt-a5 {
        width: 148mm;
        min-height: 210mm;
    }

    /* (*)(*) `contain` ET NON `fill` : un papier a en-tete est une IMAGE REELLE, et un
       en-tete etire est bien pire qu un bas de page blanc. Avec `contain` le papier garde
       TOUJOURS son ratio ; `object-position: top` le laisse en haut, la ou l en-tete se
       lit. Sur un document plus long qu une page, le bas reste blanc -- c est la limite,
       elle est DITE, et elle vaut mieux qu un logo deforme. */
    .docpub-doc[b-rx9tt64qtc]  .papier-fond {
        position: absolute;
        object-fit: contain;
        object-position: top center;
    }

    /* La feuille remplit son conteneur : c est lui qui porte desormais la largeur. */
    .docpub-doc[b-rx9tt64qtc]  .pf-sheet {
        margin: 0;
        max-width: none;
        min-height: 0;
    }
}

/* =============================================================================
   2. LE TELEPHONE -- LE DOCUMENT DEBORDAIT DE LA PAGE.
   MESURE a 390 px : scrollWidth 445 pour un viewport de 390, et le coupable est le TABLEAU
   DES LIGNES (`.pf-lines`, 400 px de large). Le client devait faire defiler HORIZONTALEMENT
   pour lire les montants de sa facture -- sur l appareil ou il ouvre son courriel.
   (!)(!) ET LE VRAI GASPILLAGE N EST PAS LE TABLEAU, C EST LA MARGE DU PAPIER : elle est
   dessinee pour une A4 (12 mm de chaque cote, soit ~90 px) et mange 23 % d un ecran de
   390 px. On la reduit A L ECRAN ETROIT SEULEMENT -- l impression garde ses marges reglees
   (T-MARGES), puisque tout ce bloc est en `@media screen`.
   (!) ON NE MET PAS LE DOCUMENT A L ECHELLE (`transform: scale`) : il deviendrait illisible,
   et ce serait troquer un defaut contre un autre.
   (*) LE PATRON DU DEPOT : un contenu large defile dans SON PROPRE cadre, la PAGE jamais.
   ============================================================================= */
@media screen and (max-width: 768px) {

    .docpub-doc[b-rx9tt64qtc]  .pf-root {
        width: auto;
        min-height: 0;
        margin: 0;
    }

    /* Les marges du papier, ramenees a ce qu un ecran etroit peut offrir. */
    .docpub-doc[b-rx9tt64qtc]  .pf-sheet {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* (*) LE TABLEAU DEFILE DANS SON CADRE -- et il ne peut plus pousser la page. */
    .docpub-doc[b-rx9tt64qtc]  .pf-lines {
        display: block;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    /* (!) `display: block` sur un <table> detache ses parties : on les remet en tableau
       DANS le cadre, sinon les colonnes ne s alignent plus. */
    .docpub-doc[b-rx9tt64qtc]  .pf-lines > thead,
    .docpub-doc[b-rx9tt64qtc]  .pf-lines > tbody,
    .docpub-doc[b-rx9tt64qtc]  .pf-lines > tfoot {
        display: table;
        width: 100%;
        min-width: 340px;
    }

    /* (*)(*) LA MESURE QUI A IMPOSE CETTE REGLE, ET LA COLONNE QUI MANQUAIT ETAIT LA PIRE :
       apres le reste du correctif, SIX colonnes sur SEPT tenaient dans 390 px -- et la
       septieme, absente de 9 px, etait « NET TTC », c est-a-dire LE MONTANT DE LA LIGNE.
       Celle que le client regarde.
       (!) LE PADDING DES CELLULES COUTE 12 px PAR COLONNE, soit 84 px sur sept : le reduire
       rend bien plus que les 9 px manquants, SANS toucher a la taille du texte -- il reste
       donc aussi lisible qu avant. (*) ET ON NE MASQUE AUCUNE COLONNE : ce serait modifier
       LE DOCUMENT, alors que toute la tranche tient dans « le destinataire recoit LE MEME
       document ». */
    .docpub-doc[b-rx9tt64qtc]  .pf-lines th,
    .docpub-doc[b-rx9tt64qtc]  .pf-lines td {
        padding-left: 3px;
        padding-right: 3px;
    }
}

/* =============================================================================
   3. LE BOUTON D IMPRESSION -- LA PROMESSE DU LIEN ETAIT « consulter ET IMPRIMER », et les
   six textes de courriel le disent au destinataire. Rien ne le lui indiquait.
   (*)(*) IL EST EN HTML PUR (`onclick="window.print()"`), JAMAIS EN `@onclick` BLAZOR, ET
   C EST UNE DECISION MESUREE : `window.print` est une fonction du navigateur, pas un service
   Blazor. Un `@onclick` EXIGERAIT le circuit POUR TOUJOURS et alourdirait la dette (B) --
   celle de rendre les vingt pages d impression STATIQUES. En HTML pur, ce bouton continuera
   de fonctionner le jour ou cette dette sera payee. Une forme qui PRESERVE une dette future
   plutot que de l alourdir.
   (!) LA PAGE EST DEJA INTERACTIVE (`@rendermode InteractiveServer`, ligne 3) : le bouton ne
   rouvre AUCUNE decision. Ce qui empeche la boite de s ouvrir seule n est pas la staticite,
   c est `AutoImprimer="false"`, passe aux sept composants.
   ============================================================================= */
.docpub-actions[b-rx9tt64qtc] {
    max-width: 210mm;
    margin: 16px auto 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.docpub-imprimer[b-rx9tt64qtc] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line, #E7E9EC);
    border-radius: 6px;
    background: var(--surface, #FFFFFF);
    color: var(--ink, #14171F);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.docpub-imprimer:hover[b-rx9tt64qtc] {
    background: var(--teal-soft, #E4F3F1);
    border-color: var(--teal, #0E8F84);
}

/* (*)(*) « ENREGISTRER » ET « IMPRIMER » NE SONT PAS LE MEME GESTE, et la page ne promet
   que ce qu elle sait faire. La MEME boite d impression porte « Enregistrer au format PDF »
   sur Chrome, Edge, Firefox et Safari : on le DIT, au lieu d offrir un bouton
   « Telecharger » qui promettrait un fichier que ce depot ne sait PAS produire (l arbitrage
   PDF est ouvert, mesure trois fois -- aucun package de generation). C est la regle du
   ticket de caisse : on ecarte ce qui AFFIRME. */
.docpub-aide[b-rx9tt64qtc] {
    font-size: 12.5px;
    color: var(--slate, #6E7787);
    line-height: 1.5;
}

/* (!)(!) LE BOUTON NE S IMPRIME PAS. C est le genre de detail qui se decouvre sur la
   feuille du client -- il est donc ASSERTE, sous emulateMedia('print'). */
@media print {
    .docpub-actions[b-rx9tt64qtc] {
        display: none !important;
    }
}
/* /Components/Pages/ImpressionCheques.razor.rz.scp.css */
/* T9-0 — page « Impression Chèques » : l'iframe occupe toute la hauteur restante.
   La hauteur vient d'un calc() sur la hauteur de vue moins la navbar (64px) et les marges
   du contenu — pas d'un pourcentage, qui ne fonctionnerait pas sans chaîne de parents
   en hauteur fixe. min-height garde la page utilisable sur un écran très bas. */
.chq-page[b-h0zzf6l5ih] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chq-head[b-h0zzf6l5ih] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Repris à l'identique du stub qu'on remplace (ModuleStub.razor.css). */
.chq-breadcrumb[b-h0zzf6l5ih] {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chq-titre[b-h0zzf6l5ih] {
    margin: 0;
}

.chq-frame[b-h0zzf6l5ih] {
    width: 100%;
    height: calc(100vh - 190px);
    min-height: 480px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    background: #ffffff;
}

@media (max-width: 768px) {
    .chq-frame[b-h0zzf6l5ih] {
        height: calc(100vh - 230px);
        min-height: 420px;
    }
}
/* /Components/Pages/ModuleStub.razor.rz.scp.css */
.stub-page[b-sbgtjjr4so] {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 2.5rem;
}

.stub-breadcrumb[b-sbgtjjr4so] {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stub-message[b-sbgtjjr4so] {
    color: #64748b;
}

/* T9-h — pastille « à venir » accolée au titre, même vocabulaire visuel que le badge du menu :
   l'utilisateur retrouve le même mot au même endroit, du clic à la page. */
.stub-pill[b-sbgtjjr4so] {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    color: var(--slate);
    background: var(--paper);
    border: 1px solid var(--line);
}
/* /Components/Pages/Preferences.razor.rz.scp.css */
.pref-head[b-ysgz95d4cf] {
    margin-bottom: 18px;
}

.pref-head .page-eyebrow[b-ysgz95d4cf] {
    display: block;
}

.pref-head h1[b-ysgz95d4cf] {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    margin: 2px 0 4px;
}

/* Carte de section (page qui défile). */
.pref-section[b-ysgz95d4cf] {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    max-width: 880px;
}

.pref-section-head[b-ysgz95d4cf] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pref-section-head svg[b-ysgz95d4cf] {
    flex: none;
    color: var(--teal);
}

.pref-section-title[b-ysgz95d4cf] {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
}

.pref-section-actif[b-ysgz95d4cf] {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Le badge « à venir » (.avenir-badge, global) se pousse à droite ici. */
.pref-section-head .avenir-badge[b-ysgz95d4cf] {
    margin-left: auto;
}

.pref-section-desc[b-ysgz95d4cf] {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 14px;
}

.pref-grid[b-ysgz95d4cf] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

/* Section grisée pour signaler « non fonctionnel ». */
.pref-section-avenir[b-ysgz95d4cf] {
    background: #fcfcfd;
}

.pref-section-avenir .pref-section-title[b-ysgz95d4cf] {
    color: var(--slate);
}

.pref-case-hint[b-ysgz95d4cf] {
    font-size: 11px;
    color: var(--slate);
    margin-left: 6px;
}

.pref-apercu[b-ysgz95d4cf] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
    padding: 12px 14px;
    background: var(--teal-soft);
    border-radius: 10px;
}

.pref-apercu-label[b-ysgz95d4cf] {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pref-apercu-value[b-ysgz95d4cf] {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* RT2 — une carte par PIÈCE FISCALE (facture / avoir client) : masque, départ, aperçu. */
.pref-series[b-ysgz95d4cf] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pref-serie[b-ysgz95d4cf] {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: var(--paper);
}

.pref-serie-titre[b-ysgz95d4cf] {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

/* ═══════════════ T-PREFS — LA BARRE D'ACTIONS DE L'ONGLET, COLLANTE ═══════════════
   ⭐⭐ C'EST ELLE QUI RÉPOND À LA MESURE : avant cette tranche, enregistrer depuis le bas de la
   page affichait le message À 928 px DU BOUTON CLIQUÉ (mesuré). La barre collante garde le
   bouton dans la vue, et le toast passe en BAS À DROITE : l'écart tombe à ~28 px (mesuré sur la
   maquette). Le message n'était pas absent — il était hors du champ du geste. */
.pref-actions[b-ysgz95d4cf] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 12px 0 10px;
    /* Le dégradé évite que le contenu passe « sous » la barre sans transition. */
    background: linear-gradient(180deg, rgba(255,255,255,0), var(--paper, #F5F7FA) 38%);
}

.pref-dirty[b-ysgz95d4cf] {
    margin-right: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--amber, #B06F00);
}

.pref-dirty--calme[b-ysgz95d4cf] {
    font-weight: 500;
    color: var(--slate, #6E7787);
}

/* ═══════════════════════ T-PREFS — LA BARRE D'ONGLETS ═══════════════════════ */
.pref-onglets[b-ysgz95d4cf] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line, #E5E9F0);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.pref-onglet[b-ysgz95d4cf] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--slate, #6E7787);
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    white-space: nowrap;
}

.pref-onglet:hover[b-ysgz95d4cf] {
    background: var(--paper, #F5F7FA);
    color: var(--ink, #14171F);
}

.pref-onglet.on[b-ysgz95d4cf] {
    background: var(--surface, #fff);
    border-color: var(--line, #E5E9F0);
    color: var(--ink, #14171F);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(16,24,40,.07);
}

/* Une saisie laissée dans un AUTRE onglet doit se voir : sans cette pastille, on enregistre,
   on lit sa confirmation, et on ignore ce qu'on a laissé derrière soi. */
.pref-onglet-pastille[b-ysgz95d4cf] {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--amber, #B06F00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}

@media (max-width: 768px) {
    .pref-head h1[b-ysgz95d4cf] {
        font-size: 23px;
    }

    .pref-section[b-ysgz95d4cf] {
        padding: 16px;
    }

    .pref-grid[b-ysgz95d4cf] {
        grid-template-columns: 1fr;
    }

    .pref-actions button[b-ysgz95d4cf] {
        flex: 1 1 auto;
    }
}

/* Slots d'images société (entête / pied / cachet). */
.pref-images[b-ysgz95d4cf] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.pref-image-slot[b-ysgz95d4cf] {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pref-image-titre[b-ysgz95d4cf] {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

.pref-image-box[b-ysgz95d4cf] {
    height: 90px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--paper, #f4f6fa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pref-image-thumb[b-ysgz95d4cf] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== APERÇU À L'ÉCHELLE DU PAPIER (aide au réglage des marges) =====
   ⚠️⚠️ CE BLOC NE S'APPLIQUE QU'AU SLOT PAPIER. `.pref-image-box` est PARTAGÉE avec le
   cachet : lui donner le ratio d'une page changerait sa vignette sans aucune raison.
   ⭐ POURQUOI LE RATIO : sans lui la boîte fait 220x90 (ratio 2,44) quand une A4 vaut
   0,707 — en `object-fit: contain` l'image ne couvre que 29 % de la largeur, et une
   bande posée dessus traverserait 71 % de vide. Elle MENTIRAIT. Avec le ratio A4
   l'image remplit exactement, et 1 % de boîte = 1 % de page dans les deux axes.
   ⚠️ Tout est préfixé `pref-` et vit dans ce fichier SCOPED (attribut b-xxx) : aucune
   règle ne peut fuir. ⛔ AUCUN sélecteur de balise nu — un préfixe protège les
   classes, PAS les balises (leçon du lot n°13). */
.pref-image-box--page[b-ysgz95d4cf] {
    height: auto;
    aspect-ratio: 210 / 297;
    max-width: 150px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

.pref-image-box--page .pref-image-thumb[b-ysgz95d4cf] {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}

.pref-zone-marge[b-ysgz95d4cf] {
    position: absolute;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--teal) 26%, transparent);
    border-color: var(--teal);
    border-style: dashed;
    border-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pref-zone-haute[b-ysgz95d4cf] {
    top: 0;
    border-bottom-width: 1px;
}

.pref-zone-basse[b-ysgz95d4cf] {
    bottom: 0;
    border-top-width: 1px;
}

.pref-zone-txt[b-ysgz95d4cf] {
    font-size: 9px;
    font-weight: 700;
    color: var(--teal-dark, var(--ink));
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    padding: 0 3px;
    border-radius: 3px;
    white-space: nowrap;
}

.pref-image-vide[b-ysgz95d4cf] {
    font-size: 12px;
    color: var(--slate);
    font-style: italic;
}

.pref-image-aide[b-ysgz95d4cf] {
    font-size: 11px;
    color: var(--slate);
    line-height: 1.4;
}

.pref-image-actions[b-ysgz95d4cf] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pref-image-btn[b-ysgz95d4cf] {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pref-image-btn input[type="file"][b-ysgz95d4cf] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

@media (max-width: 768px) {
    .pref-images[b-ysgz95d4cf] {
        grid-template-columns: 1fr;
    }
}

/* ═══════════ Toast de confirmation — canal UNIQUE des neuf cartes, non bloquant ═══════════
   ⚠️⚠️ IL EST EN BAS À DROITE, ET C'EST UNE MESURE : en haut (top:76px) il s'affichait à 928 px
   du bouton cliqué quand on enregistrait depuis le bas de la page. En bas, à côté de la barre
   d'actions collante, l'écart tombe à ~28 px — le message entre dans le champ du geste.
   ⚠️ PAS de `pointer-events: none` (la maquette en a un) : il rendrait le toast invisible à
   `elementFromPoint`, donc INTESTABLE par le harnais — mesuré sur la maquette elle-même. */
.pref-toast[b-ysgz95d4cf] {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 18px;
    border-radius: 10px;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #E5E9F0);
    border-left: 4px solid var(--green, #1E9E6B);
    color: var(--ink, #14171F);
    font-size: 13.5px;
    box-shadow: 0 8px 26px rgba(16,24,40,.16);
    animation: pref-toast-in-b-ysgz95d4cf .18s ease-out;
    max-width: min(92vw, 430px);
}

.pref-toast.err[b-ysgz95d4cf] {
    border-left-color: var(--red, #dc2626);
}

.pref-toast-ico[b-ysgz95d4cf] {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--green, #1E9E6B);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    line-height: 1;
}

.pref-toast.err .pref-toast-ico[b-ysgz95d4cf] {
    background: var(--red, #dc2626);
}

.pref-toast-txt[b-ysgz95d4cf] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pref-toast-titre[b-ysgz95d4cf] {
    font-weight: 640;
}

.pref-toast-detail[b-ysgz95d4cf] {
    color: var(--slate, #6E7787);
    font-size: 12.5px;
    line-height: 1.45;
}

@keyframes pref-toast-in-b-ysgz95d4cf {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .pref-toast[b-ysgz95d4cf] {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    /* ⚠️⚠️ ONGLETS DÉFILABLES, JAMAIS UNE LISTE DÉROULANTE (tranché par Walid) : une liste CACHE
       ce qui existe, des onglets défilables le MONTRENT. Et le patron existe déjà — c'est celui
       de la barre d'onglets du haut (`.top-tabs`), défilable depuis la tranche mobile. */
    .pref-onglets[b-ysgz95d4cf] {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .pref-onglets[b-ysgz95d4cf]::-webkit-scrollbar {
        display: none;
    }

    .pref-onglet[b-ysgz95d4cf] {
        flex: none;
    }

    /* La barre d'actions garde ses deux boutons atteignables au pouce ; le compteur de
       modifications passe sous eux plutôt que de les comprimer. */
    .pref-actions[b-ysgz95d4cf] {
        flex-wrap: wrap;
        padding-bottom: 12px;
    }

    .pref-dirty[b-ysgz95d4cf] {
        order: 3;
        width: 100%;
        margin-right: 0;
        text-align: right;
    }
}

.pref-switch[b-ysgz95d4cf] {
    padding: 4px 0;
}

.pref-switch .form-check-input[b-ysgz95d4cf] {
    width: 2.4em;
    height: 1.3em;
    margin-top: 0.1em;
    cursor: pointer;
}

.pref-switch .form-check-label[b-ysgz95d4cf] {
    cursor: pointer;
    font-size: 13.5px;
    color: var(--ink);
}

.pref-switch-hint[b-ysgz95d4cf] {
    font-size: 12px;
    color: var(--slate);
}

/* T-INTERRUPTEURS — la SEULE règle ajoutée : le message de réversibilité de `gestion_variantes`
   quand du stock est DÉJÀ ventilé. ⚠️ Ambre et non rouge : ce n'est pas une erreur, c'est un
   coût — éteindre resterait POSSIBLE, mais ferait diverger les deux niveaux (INV29). */
.pref-switch-hint.pref-hint-alerte[b-ysgz95d4cf] {
    color: var(--amber);
    font-weight: 600;
}

/* ENVOI-MAIL - la rangee du courriel de test : bouton + explication cote a cote. */
.pref-envoi-test[b-ysgz95d4cf] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ENVOI-MAIL - paragraphe d'intro du bloc SMTP. Classe DEDIEE (pas pref-section-desc :
   t107 cible la description de la carte par cette classe - un 2e element la portant
   casserait son selecteur en strict mode). Meme rendu, plus l'ecart du haut. */
.pref-smtp-desc[b-ysgz95d4cf] {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
    margin-top: 14px;
    margin-bottom: 14px;
}

/* ENVOI-MAIL - le mot de passe enregistre : des POINTS et deux gestes explicites,
   jamais un champ pre-rempli (le secret dechiffre ne transite pas vers le navigateur). */
.pref-mdp-garde[b-ysgz95d4cf] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pref-mdp-points[b-ysgz95d4cf] {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--ink);
    line-height: 1;
}

/* =============================================================================
   T-CPPREF — LE SELECTEUR DE CLIENT DU POINT DE VENTE, HABILLE POUR CET ECRAN

   LE DEFAUT, ET SA CAUSE MESUREE : le composant ClientPicker n'a, dans son propre
   CSS scope, que sa STRUCTURE (position, z-index, max-height). Tout son habillage
   -- fond, bordure, ombre, hauteurs, la croix -- vit dans doc-v2.css SOUS `.docv2`.
   Or PREFERENCES est le SEUL des NEUF ecrans qui l'utilisent a ne PAS porter cette
   classe (mesure : 3-3-3-2-3-3-3-2 pour les huit documents, 0 pour Preferences).
   Le composant y est donc NU, et les TROIS plaintes n'en font qu'UNE :

     .cp-panel    -> background rgba(0,0,0,0), border 0px, shadow none
     .cp-selected -> background rgba(0,0,0,0), border 0px, display BLOCK
     .cp-clear    -> border 2px OUTSET, background rgb(240,240,240)  = bouton NATIF

   (*)(*) CE N'EST NI UN PROBLEME DE PLAN DE SUPERPOSITION, NI DE FLUX. Mesure :
   le panneau est en `position: absolute; z-index: 30` et `elementFromPoint` a son
   centre rend bien une SUGGESTION -- il est au-dessus et il recoit les clics. Sortir
   du flux est le comportement VOULU d'un menu deroulant, et le texte du dessous n'a
   jamais « remonte » : il etait deja la. CE QUI MANQUE, C'EST QUE LE PANNEAU LE
   MASQUE. Il est transparent, donc ce qui vit dessous TRANSPARAIT a travers -- et
   c'est cela qui se lit comme un chevauchement.

   (*) L'ALIGNEMENT SE FAIT SUR LE CHAMP VOISIN DE CET ECRAN, PAS SUR LE SKIN DES
   DOCUMENTS : la plainte est « ne ressemble a aucun autre champ DE L'ECRAN ». Le
   <select> d'a cote a ete mesure -- 38 px de haut, bordure 1px, rayon 6px, fond
   blanc -- et c'est lui la reference.

   (!)(!) POURQUOI `::deep`, ET POURQUOI C'EST MIEUX QU'UN PREFIXE : un CSS scope
   n'atteint PAS un composant enfant (erreur #9 du depot -- le scope attribute n'est
   pose que sur les elements ecrits dans CE fichier). `::deep` le traverse, et le
   selecteur compile devient `[data-testid=...][b-xxx] .cp-panel` : la fuite vers un
   AUTRE ecran est IMPOSSIBLE PAR CONSTRUCTION, pas par discipline.
   (!) ET ON NE TOUCHE NI LE COMPOSANT NI SES CLASSES : ClientPicker et
   FournisseurPicker PARTAGENT le meme vocabulaire `cp-` (mesure : les 9 classes,
   identiques des deux cotes), et ils servent 9 + 8 = DIX-SEPT ecrans. Redessiner
   `cp-` les toucherait tous.
   ============================================================================= */
@media (min-width: 769px) {

    /* (!) BORNE AU DESKTOP : sous 768 px la feuille T11-a pose deja son propre fond
       opaque (`body .cp-wrap.cp-sheet { background: var(--surface) }`, mesure) et
       remet le panneau en flux. C'est un correctif cherement acquis -- on n'y touche
       pas, et le defaut ne s'y produit pas. */

    /* 1. LE PANNEAU DE SUGGESTIONS -- le fond qui manquait. */
    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-panel {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 6px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }

    /* 1-bis. LES SUGGESTIONS se distinguent les unes des autres. */
    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-item {
        padding: 8px 11px;
        cursor: pointer;
        border-bottom: 1px solid var(--line);
        border-left: 3px solid transparent;
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-item:last-child {
        border-bottom: none;
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-item:hover,
    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-item.cp-active {
        background: var(--teal-soft);
        border-left-color: var(--teal);
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-item-nom {
        font-weight: 500;
        color: var(--ink);
        font-size: 13px;
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-item-sub {
        font-size: 11px;
        color: var(--slate);
        margin-top: 2px;
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-vide {
        padding: 12px;
        text-align: center;
        color: var(--slate);
        font-size: 12.5px;
    }

    /* 2. LE CLIENT CHOISI -- le JUMEAU du <select> voisin : 38 px, bordure 1px,
       rayon 6px, fond blanc (les quatre valeurs sont MESUREES sur lui). */
    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-selected {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 38px;
        padding: 0 6px 0 10px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface);
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-selected-nom {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        color: var(--ink);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 3. LA CROIX -- elle cesse d'etre le bouton NATIF du navigateur (mesure :
       `border: 2px outset` et fond gris 240, c'est-a-dire aucun style du tout). */
    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-clear {
        width: 24px;
        height: 24px;
        border: none;
        background: transparent;
        color: var(--slate);
        border-radius: 6px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    [data-testid="pref-pos-client-champ"][b-ysgz95d4cf]  .cp-clear:hover {
        background: var(--red-soft);
        color: var(--red);
    }
}
/* /Components/Shared/ClientPicker.razor.rz.scp.css */
/* ClientPicker — STRUCTURE seule (position). Les couleurs/skin docv2 vivent dans doc-v2.css
   sous .docv2 .cp-* (mêmes classes, non redéfinies ici → pas de conflit de spécificité). */
.cp-wrap[b-fm0uq4dtn2] {
    position: relative;
}

.cp-panel[b-fm0uq4dtn2] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    z-index: 30;
    max-height: 300px;
    overflow-y: auto;
}
/* /Components/Shared/EnvoyerCourriel.razor.rz.scp.css */
/* ENVOI-MAIL — le bouton Email et sa fenêtre. CSS SCOPED (borné à ce composant) : aucun
   sélecteur partagé n'est stylé — la leçon T-UI, payée deux fois. */

.mail-btn[b-c8h6rklpw1] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mail-confirmation[b-c8h6rklpw1] {
    font-size: 12px;
    color: var(--teal-dark);
    margin-left: 6px;
    white-space: nowrap;
}

.mail-form[b-c8h6rklpw1] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: min(520px, 90vw);
}

.mail-form[b-c8h6rklpw1]  textarea {
    resize: vertical;
    font-family: inherit;
    /* ⚠️⚠️ POURQUOI UNE HAUTEUR MINIMALE, ET POURQUOI rows="8" NE SUFFIT PAS.
       MESURÉ : le champ se rend à 31 px — UNE ligne — quel que soit le texte. `rows` exprime une
       hauteur PRÉFÉRÉE ; dans un conteneur `flex-direction: column`, le `flex-shrink: 1` par
       défaut laisse l'élément se comprimer jusqu'à son `min-height`, et Bootstrap pose
       `textarea.form-control-sm { min-height: calc(1.5em + .5rem + 2px) }` — soit UNE ligne.
       C'est donc le MIN qui décide, pas `rows`.
       ⚠️ Ne pas « corriger » en retirant form-control-sm (l'écran perdrait sa densité) ni en
       posant une hauteur FIXE : `resize: vertical` ne servirait plus à rien. Un MIN laisse
       l'agrandissement au poignet de l'utilisateur.
       ⚠️ Aucun sélecteur neuf : la règle EXISTAIT, elle est bornée par .mail-form (un ancêtre),
       jamais par la balise nue — un préfixe protège les classes, pas les balises. */
    min-height: 100px;
}

.mail-hint[b-c8h6rklpw1] {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.45;
    margin: 0;
}

.mail-erreur[b-c8h6rklpw1] {
    font-size: 12.5px;
    color: var(--red);
    background: var(--red-soft);
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1.45;
    margin: 0;
}
/* /Components/Shared/EnvoyerWhatsApp.razor.rz.scp.css */
/* ENVOI-WA — CSS SCOPÉ au composant (donc borné par construction : le scope attribute b-xxx ne
   sort pas d'ici — un préfixe protège les classes, le scoping protège même les balises).
   Aucune règle sur un conteneur partagé : la leçon T-UI (.btn-filtres puis .crud-toolbar-actions
   stylés ont cassé deux fois des écrans que la tranche ne touchait pas) reste payée. */

.wa-btn[b-fy6wc9mnfd] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.wa-wrap[b-fy6wc9mnfd] {
    position: relative;
    display: inline-flex;
}

/* Le message de refus (décision 3) : posé SOUS le bouton, détaché du flux pour ne pas déformer
   la rangée d'actions de l'en-tête. Ambre = information qui appelle un geste, pas une erreur. */
.wa-note[b-fy6wc9mnfd] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 340px;
    max-width: 82vw;
    padding: 10px 12px;
    border: 1px solid var(--amber);
    border-radius: 10px;
    background: var(--amber-soft);
    color: var(--ink);
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}
/* /Components/Shared/FichiersJoints.razor.rz.scp.css */
.fj-wrap[b-qe2nahd9ai] {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.fj-empty[b-qe2nahd9ai] {
    margin: 0;
    color: var(--slate, #64748b);
    font-size: .9rem;
    font-style: italic;
}

.fj-list[b-qe2nahd9ai] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.fj-item[b-qe2nahd9ai] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .6rem;
    border: 1px solid var(--line, #e5e9f0);
    border-radius: 10px;
    background: #fff;
}

.fj-thumb[b-qe2nahd9ai] {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--line, #e5e9f0);
    background: var(--paper, #f4f6fa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    color: var(--slate, #64748b);
}

.fj-thumb img[b-qe2nahd9ai] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fj-thumb-doc[b-qe2nahd9ai] {
    cursor: default;
    color: var(--red, #dc2626);
}

.fj-meta[b-qe2nahd9ai] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fj-nom[b-qe2nahd9ai] {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink, #0f172a);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fj-nom:hover[b-qe2nahd9ai] { text-decoration: underline; }

.fj-sub[b-qe2nahd9ai] {
    font-size: .78rem;
    color: var(--slate, #64748b);
}

.fj-actions[b-qe2nahd9ai] {
    flex: 0 0 auto;
    display: flex;
    gap: .35rem;
}

.fj-btn[b-qe2nahd9ai] {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--line, #e5e9f0);
    background: var(--paper, #f4f6fa);
    color: var(--slate, #475569);
    cursor: pointer;
    text-decoration: none;
}

.fj-btn:hover[b-qe2nahd9ai] { background: #e9edf4; }

.fj-btn-del:hover[b-qe2nahd9ai] {
    background: var(--red-soft, #fee2e2);
    color: var(--red, #dc2626);
    border-color: #fecaca;
}

.fj-upload[b-qe2nahd9ai] {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.fj-add[b-qe2nahd9ai] {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border-radius: 8px;
    border: 1px dashed var(--teal, #14b8a6);
    color: var(--teal-dark, #0f766e);
    background: var(--teal-soft, #f0fdfa);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.fj-add input[type="file"][b-qe2nahd9ai] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.fj-add-disabled[b-qe2nahd9ai] {
    opacity: .6;
    cursor: progress;
}

.fj-add-disabled input[type="file"][b-qe2nahd9ai] { cursor: progress; }

.fj-hint[b-qe2nahd9ai] {
    font-size: .78rem;
    color: var(--slate, #64748b);
}

.fj-erreurs[b-qe2nahd9ai] {
    list-style: none;
    margin: 0;
    padding: .5rem .7rem;
    border-radius: 8px;
    background: var(--red-soft, #fee2e2);
    color: var(--red, #b91c1c);
    font-size: .84rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.fj-apercu[b-qe2nahd9ai] {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
}

.fj-apercu img[b-qe2nahd9ai] {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .fj-item[b-qe2nahd9ai] {
        flex-wrap: wrap;
    }

    .fj-meta[b-qe2nahd9ai] {
        flex: 1 1 60%;
    }

    .fj-btn[b-qe2nahd9ai] {
        width: 40px;
        height: 40px;
    }
}
/* /Components/Shared/FournisseurPicker.razor.rz.scp.css */
/* FournisseurPicker — STRUCTURE seule (position). Skin docv2 partagé via .docv2 .cp-* (doc-v2.css). */
.cp-wrap[b-mt97vprbwb] {
    position: relative;
}

.cp-panel[b-mt97vprbwb] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    z-index: 30;
    max-height: 300px;
    overflow-y: auto;
}
/* /Components/Shared/Modal.razor.rz.scp.css */
.modal-overlay[b-miqtfby3jo] {
    position: fixed;
    inset: 0;
    background: rgba(12, 23, 48, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
    outline: none;
}

.modal-card[b-miqtfby3jo] {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modal-pop-b-miqtfby3jo 0.15s ease;
}

.modal-card-wide[b-miqtfby3jo] {
    max-width: 1060px;
}

@keyframes modal-pop-b-miqtfby3jo {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header[b-miqtfby3jo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, #0c1730, #101f42);
    border-radius: 10px 10px 0 0;
}

.modal-title[b-miqtfby3jo] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-close[b-miqtfby3jo] {
    flex: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .modal-close:hover[b-miqtfby3jo] {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

.modal-body[b-miqtfby3jo] {
    padding: 1.25rem;
}

.modal-footer[b-miqtfby3jo] {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

/* Mobile : la modale occupe tout l'écran plutôt que d'être une carte centrée.
   Même point de rupture (768px) que le reste du patron CRUD (voir app.css). */
@media (max-width: 768px) {
    .modal-overlay[b-miqtfby3jo] {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .modal-card[b-miqtfby3jo] {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        animation: none;
    }

    .modal-header[b-miqtfby3jo] {
        border-radius: 0;
        flex: none;
    }

    .modal-body[b-miqtfby3jo] {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .modal-footer[b-miqtfby3jo] {
        flex: none;
        position: sticky;
        bottom: 0;
        background: #ffffff;
        flex-wrap: wrap;
    }

        .modal-footer > *[b-miqtfby3jo] {
            flex: 1 1 auto;
        }
}
/* /Components/Shared/ProduitPicker.razor.rz.scp.css */
.pp-wrap[b-j2kqn25w80] {
    position: relative;
}


.pp-panel[b-j2kqn25w80] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1000;
    min-width: 100%;
    width: max-content;
    max-width: min(720px, 92vw);
    max-height: 320px;
    overflow: auto;
    background: var(--paper, #f3f5f7);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

.pp-table[b-j2kqn25w80] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pp-table th[b-j2kqn25w80] {
    position: sticky;
    top: 0;
    background: var(--thead-bg, #fafbfc);
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--slate, #64748b);
    padding: 8px 12px;
    border-bottom: 1px solid var(--line, #e5e7eb);
}

.pp-table td[b-j2kqn25w80] {
    padding: 7px 12px;
    border-bottom: 1px solid var(--line, #e5e7eb);
    white-space: nowrap;
}

.pp-table tbody tr[b-j2kqn25w80] {
    cursor: pointer;
}

.pp-table tbody tr:hover td[b-j2kqn25w80] {
    background: var(--teal-soft, #e4f3f1);
}

.pp-dh[b-j2kqn25w80] {
    font-size: 10px;
    color: var(--slate, #94a3b8);
    margin-left: 3px;
}

.pp-vide[b-j2kqn25w80] {
    padding: 14px;
    color: var(--slate, #64748b);
    font-size: 13px;
}

/* Mobile : panneau pleine largeur du champ (la rangée de saisie est déjà empilée). */
@media (max-width: 768px) {
    .pp-panel[b-j2kqn25w80] {
        width: 100%;
        max-width: 100%;
    }
}

/* Code-barres : colonne dédiée en desktop, inline sous la référence en mobile. */
.pp-cb-inline[b-j2kqn25w80] {
    display: none;
    font-size: 10px;
    color: var(--slate, #64748b);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .pp-hide-narrow[b-j2kqn25w80] { display: none; }
    .pp-cb-inline[b-j2kqn25w80] { display: inline; }
}
/* /Components/Shared/SaisieMultipleProduits.razor.rz.scp.css */
.sm-table-wrap[b-qfonhf6der] {
    max-height: 52vh;
    overflow: auto;
}

.sm-row-added[b-qfonhf6der] {
    background: var(--green-soft, #e6f6ec) !important;
    transition: background 0.3s ease;
}

.sm-row-added[b-qfonhf6der]  .btn-nouveau {
    background: var(--green, #1e9e6b);
}

.sm-compteur[b-qfonhf6der] {
    margin-right: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate, #64748b);
}

@media (max-width: 640px) {
    .sm-hide-narrow[b-qfonhf6der] {
        display: none;
    }
}

/* Dans la pop-up, l'en-tête colle en haut du conteneur scrollable (le sticky
   global à top:64px surplomberait la 1ère ligne et capterait ses clics). */
.sm-table-wrap .crud-list thead th[b-qfonhf6der] {
    top: 0;
    background: var(--thead-bg, #fafbfc);
}

/* Cohérence avec le ProduitPicker : survol = choix imminent (teal-soft). */
.sm-table-wrap .crud-list tbody tr:hover td[b-qfonhf6der] {
    background: var(--teal-soft, #e4f3f1);
}
