/* /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/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;
}

.pref-actions[b-ysgz95d4cf] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

@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;
}

.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 (partagé par toutes les sections), non bloquant. */
.pref-toast[b-ysgz95d4cf] {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--green, #1E9E6B);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
    animation: pref-toast-in-b-ysgz95d4cf .18s ease-out;
    max-width: min(90vw, 420px);
}

.pref-toast.err[b-ysgz95d4cf] {
    background: var(--red, #dc2626);
}

.pref-toast-ico[b-ysgz95d4cf] {
    font-size: 15px;
    line-height: 1;
}

@keyframes pref-toast-in-b-ysgz95d4cf {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .pref-toast[b-ysgz95d4cf] {
        left: 12px;
        right: 12px;
        top: 68px;
        max-width: none;
        justify-content: center;
    }
}

.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);
}
/* /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/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);
}
