/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-1o7x4frdkc] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-1o7x4frdkc] {
    flex: 1;
}

.sidebar[b-1o7x4frdkc] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-1o7x4frdkc] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-1o7x4frdkc]  a, .top-row[b-1o7x4frdkc]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-1o7x4frdkc]  a:hover, .top-row[b-1o7x4frdkc]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-1o7x4frdkc]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-1o7x4frdkc] {
        justify-content: space-between;
    }

    .top-row[b-1o7x4frdkc]  a, .top-row[b-1o7x4frdkc]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-1o7x4frdkc] {
        flex-direction: row;
    }

    .sidebar[b-1o7x4frdkc] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-1o7x4frdkc] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-1o7x4frdkc]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-1o7x4frdkc], article[b-1o7x4frdkc] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-1o7x4frdkc] {
    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-1o7x4frdkc] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-vnuirvdz7p] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-vnuirvdz7p] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-vnuirvdz7p] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-vnuirvdz7p] {
    font-size: 1.1rem;
}

.bi[b-vnuirvdz7p] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-vnuirvdz7p] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-vnuirvdz7p] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-vnuirvdz7p] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-vnuirvdz7p] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-vnuirvdz7p] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-vnuirvdz7p] {
        padding-bottom: 1rem;
    }

    .nav-item[b-vnuirvdz7p]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-vnuirvdz7p]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-vnuirvdz7p]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-vnuirvdz7p] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-vnuirvdz7p] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-vnuirvdz7p] {
        display: none;
    }

    .nav-scrollable[b-vnuirvdz7p] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-h7yn610vy5],
.components-reconnect-repeated-attempt-visible[b-h7yn610vy5],
.components-reconnect-failed-visible[b-h7yn610vy5],
.components-pause-visible[b-h7yn610vy5],
.components-resume-failed-visible[b-h7yn610vy5],
.components-rejoining-animation[b-h7yn610vy5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-retrying[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-failed[b-h7yn610vy5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-h7yn610vy5] {
    display: block;
}


#components-reconnect-modal[b-h7yn610vy5] {
    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-h7yn610vy5 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-h7yn610vy5 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-h7yn610vy5 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-h7yn610vy5]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-h7yn610vy5 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-h7yn610vy5 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-h7yn610vy5 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-h7yn610vy5 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-h7yn610vy5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-h7yn610vy5] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-h7yn610vy5] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-h7yn610vy5] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-h7yn610vy5] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-h7yn610vy5] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-h7yn610vy5] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-h7yn610vy5 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-h7yn610vy5] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-h7yn610vy5 {
    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/Pages/Parametrage/Etablissements.razor.rz.scp.css */
.modal-backdrop-custom[b-56j6qz7a0c] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-backdrop-nested[b-56j6qz7a0c] {
    z-index: 1100;
    background: rgba(0, 0, 0, 0.35);
}

.modal-etablissement[b-56j6qz7a0c] {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    width: 1000px;
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-etablissement-scroll[b-56j6qz7a0c] {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-etablissement-footer[b-56j6qz7a0c] {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #d9e1eb;
}

.modal-lieu[b-56j6qz7a0c] {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.modal-lieu-scroll[b-56j6qz7a0c] {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-lieu-footer[b-56j6qz7a0c] {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #d9e1eb;
}

.etab-form-grid[b-56j6qz7a0c] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.etab-form-col fieldset[b-56j6qz7a0c] {
    border: 1px solid #d9e1eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0 0 0.75rem;
}

.etab-form-col legend[b-56j6qz7a0c] {
    font-size: 0.8rem;
    font-weight: 700;
    color: #66748a;
    padding: 0 0.25rem;
    width: auto;
}

.lieu-row[b-56j6qz7a0c] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Ajouté lors de la refonte UI (09/08/2026) : ligne à 2 champs dans les fieldsets de la
   colonne gauche (ex. Téléphone/Email, SIRET/NAF, Société mère/Gérant). */
.etab-row[b-56j6qz7a0c] {
    display: flex;
    gap: 10px;
}

.etab-row > div[b-56j6qz7a0c] {
    flex: 1;
    min-width: 0;
}

.tampon-preview[b-56j6qz7a0c] {
    max-width: 100%;
    max-height: 160px;
    border: 1px solid #d9e1eb;
    border-radius: 6px;
    display: block;
    margin-bottom: 6px;
}

.autocomplete-wrap[b-56j6qz7a0c] {
    position: relative;
}

.suggestions-ban[b-56j6qz7a0c] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 6px 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 2px 0;
}

.suggestions-ban li[b-56j6qz7a0c] {
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.suggestions-ban li:hover[b-56j6qz7a0c] {
    background: #eaf4ff;
}

.etab-page tbody tr[b-56j6qz7a0c],
.etab-form-col tbody tr[b-56j6qz7a0c] {
    cursor: pointer;
}

/* --- Ajouts refonte UI (09/08/2026) : tableau Lieux à largeur de colonnes fixe --- */

.lieu-table-wrap[b-56j6qz7a0c] {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d9e1eb;
    border-radius: 4px;
}

.lieu-table-fixed[b-56j6qz7a0c] {
    table-layout: fixed;
    width: 100%;
    margin-bottom: 0;
}

.lieu-table-fixed th[b-56j6qz7a0c],
.lieu-table-fixed td[b-56j6qz7a0c] {
    white-space: normal;
    word-break: break-word;
    font-size: 12px;
    vertical-align: middle;
}

.lieu-table-fixed thead th[b-56j6qz7a0c] {
    position: sticky;
    top: 0;
    background: #f2f5f9;
    z-index: 1;
}

/* Bouton de sélection de couleur collé au champ Raison sociale / Libellé (lieu), sur le
   modèle du bouton dégradé WinDev -- le champ prend directement la couleur choisie en fond. */
.raison-sociale-wrap[b-56j6qz7a0c] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.raison-sociale-input[b-56j6qz7a0c] {
    flex: 1;
    min-width: 0;
}

.couleur-picker-btn[b-56j6qz7a0c] {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 2px;
    border: 1px solid #d9e1eb;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
}
/* /Components/Shared/LookupGrid.razor.rz.scp.css */
.modal-backdrop-custom[b-zrmu6b8wpy] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-custom[b-zrmu6b8wpy] {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lookup-grid tbody tr[b-zrmu6b8wpy] {
    cursor: pointer;
}
/* /Components/Shared/TopNav.razor.rz.scp.css */
/* Les variables --blue/--ink/--line/--muted viennent de wwwroot/css/shell.css (chargé
   globalement dans App.razor), plus besoin de les dupliquer ici. */

.topbar[b-1uomlulpy0] {
    height: 44px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0 18px;
    font: 13px/1.35 Segoe UI, Arial, sans-serif;
    color: var(--ink);
}

.brand[b-1uomlulpy0] { display: flex; gap: 7px; align-items: center; }
.brand b[b-1uomlulpy0] { color: #13487c; }
.brand span[b-1uomlulpy0] { color: var(--muted); }

.current-user[b-1uomlulpy0] { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.current-user form[b-1uomlulpy0] { margin: 0; }
.current-user small[b-1uomlulpy0] { color: var(--muted); }
.current-user button[b-1uomlulpy0] {
    border: 1px solid #d7e0eb;
    background: #fff;
    color: #4b5c75;
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 11px;
}

nav[b-1uomlulpy0] { height: 100%; display: flex; align-items: center; }

nav a[b-1uomlulpy0], nav button[b-1uomlulpy0], nav details summary[b-1uomlulpy0] {
    background: #fff;
    border: 0;
    padding: 0 11px;
    color: #33415a;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

nav a.active[b-1uomlulpy0], nav summary.active[b-1uomlulpy0] {
    font-weight: 700;
    color: var(--blue);
    border-bottom: 3px solid var(--blue);
}

details.menu-fichier[b-1uomlulpy0] { position: relative; height: 100%; }
details.menu-fichier summary[b-1uomlulpy0] { list-style: none; }
details.menu-fichier summary[b-1uomlulpy0]::-webkit-details-marker { display: none; }
details.menu-fichier[open] summary[b-1uomlulpy0] { color: var(--blue); font-weight: 700; }

.dropdown[b-1uomlulpy0] {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 6px 6px;
    min-width: 190px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    z-index: 50;
    padding: 4px 0;
}

.dropdown a[b-1uomlulpy0] {
    display: block;
    height: auto;
    padding: 8px 14px;
    color: #33415a;
    font-size: 12px;
}

.dropdown a:hover[b-1uomlulpy0] { background: #eaf4ff; }
