@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.84wtju4z0n.bundle.scp.css';

/* _content/Kiality.Frontend/Shared/MainLayout.razor.rz.scp.css */
.page[b-3yx2pn3h1o] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-3yx2pn3h1o] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* permet à main de rétrécir sous la largeur de son contenu (flexbox) */
}

article[b-3yx2pn3h1o] {
    flex: 1;
    min-width: 0; /* idem : sans ça, un contenu large (tableau, bloc de code…) étire
                     main puis .page hors de l'écran au lieu de scroller localement */
    overflow-x: auto;
    padding-bottom: 4.5rem; /* compense la hauteur du footer fixe */
}

.sidebar[b-3yx2pn3h1o] {
    padding-top: 15px;
    background-color: #03120d;
}

.top-row[b-3yx2pn3h1o] {
    background-color: #03120d;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

    .top-row[b-3yx2pn3h1o]  a, .top-row .btn-link[b-3yx2pn3h1o] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-3yx2pn3h1o] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.top-row-actions[b-3yx2pn3h1o] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.4rem;
    gap: 0.75rem;
}

/* Palier moyen : les libellés secondaires (Docs, nom du compte) laissent
   place à leurs icônes pour que la barre reste sur une seule ligne. */
@media (max-width: 1300px) {
    .top-row-actions[b-3yx2pn3h1o] {
        gap: 0.5rem;
    }

    .hide-medium[b-3yx2pn3h1o] {
        display: none;
    }
}

/* Palier étroit : les éléments les moins prioritaires disparaissent
   complètement ; le flex-wrap ci-dessus reste un filet de sécurité si,
   malgré tout, le contenu restant ne tient toujours pas. */
@media (max-width: 900px) {
    .top-row-actions[b-3yx2pn3h1o] {
        gap: 0.35rem;
    }

    .top-row-docs[b-3yx2pn3h1o] {
        display: none;
    }

    .hide-narrow[b-3yx2pn3h1o] {
        display: none;
    }
}

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-3yx2pn3h1o] {
        display: none;
    }

    .top-row.auth[b-3yx2pn3h1o] {
        justify-content: space-between;
    }

    .top-row a[b-3yx2pn3h1o], .top-row .btn-link[b-3yx2pn3h1o] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-3yx2pn3h1o] {
        flex-direction: row;
    }

    .sidebar[b-3yx2pn3h1o] {
        width: 250px;
        position: sticky;
        top: 0;
    }

    .top-row[b-3yx2pn3h1o] {
        position: sticky;
        top: 0;
        z-index: 200; /* doit être > z-index des th sticky des DataGrids (~1-2) */
    }

    .top-row[b-3yx2pn3h1o], article[b-3yx2pn3h1o] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .app-footer[b-3yx2pn3h1o] {
        left: 250px; /* ne pas chevaucher la sidebar */
    }
}

.app-footer[b-3yx2pn3h1o] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #03120d;
    color: #aaa;
    text-align: center;
    padding: .9rem 1rem;
    font-size: .82rem;
}

.app-footer-links[b-3yx2pn3h1o] {
    margin-bottom: .3rem;
}

.app-footer a[b-3yx2pn3h1o] {
    color: #ccc;
    text-decoration: none;
}

.app-footer a:hover[b-3yx2pn3h1o] {
    color: #fff;
}

.app-footer .sep[b-3yx2pn3h1o] {
    margin: 0 .4rem;
}

.app-footer-brand[b-3yx2pn3h1o] {
    color: #aaa;
}

.app-footer-brand a[b-3yx2pn3h1o] {
    color: #ccc;
    font-weight: 600;
}
/* _content/Kiality.Frontend/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-y2u7gy16ye] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-y2u7gy16ye] {
    height: 3.5rem;
    background-color: #03120d;
    margin-bottom: 0.5rem;
}

.navbar-brand[b-y2u7gy16ye] {
    font-size: 1.1rem;
}

.oi[b-y2u7gy16ye] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar-section[b-y2u7gy16ye] {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding: .5rem 1rem;
    margin-top: .5rem;
}

.nav-item[b-y2u7gy16ye] {
    font-size: 0.9rem;
    padding-bottom: 0.2rem;
}

    .nav-item[b-y2u7gy16ye]  a {
        color: #ccc;
        border-radius: 6px;
        padding: .6rem 1rem;
        display: flex;
        align-items: center;
    }

        .nav-item[b-y2u7gy16ye]  a.active {
            background-color: #164d34;
            color: #fff;
        }

        .nav-item[b-y2u7gy16ye]  a:hover {
            background-color: #164d34;
            color: #fff;
        }

@media (min-width: 641px) {
    .navbar-toggler[b-y2u7gy16ye] {
        display: none;
    }

    .collapse[b-y2u7gy16ye] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-y2u7gy16ye] {
        /* Filet de sécurité : si malgré le repli des sections (CollapsibleNavSection)
           le menu déplié dépasse encore la hauteur disponible, il scrolle plutôt que
           de déborder sur le reste de la page.
           padding-bottom reserves space above the fixed footer (~4.5rem)
           so the last nav items are fully reachable by scrolling. */
        /*height: calc(100vh - 3.5rem);*/
        overflow-y: auto;
        padding-bottom: 4.5rem;
    }
}

/* Petite hauteur d'écran : resserre le menu pour limiter le recours au scroll. */
@media (max-height: 700px) {
    .top-row[b-y2u7gy16ye] {
        height: 2.75rem;
    }

    .sidebar-section[b-y2u7gy16ye] {
        padding: .3rem 1rem;
        margin-top: .2rem;
    }

    .nav-item[b-y2u7gy16ye] {
        padding-bottom: 0;
    }

        .nav-item[b-y2u7gy16ye]  a {
            padding: .4rem 1rem;
        }
}
