/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-5k6u3wsbxy] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-5k6u3wsbxy] {
    flex: 1;
}

.sidebar[b-5k6u3wsbxy] {
    background-image: linear-gradient(180deg, rgb(134, 89, 45) 0%, #331a00 70%);
}

.top-row[b-5k6u3wsbxy] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-5k6u3wsbxy]  a, .top-row[b-5k6u3wsbxy]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-5k6u3wsbxy]  a:hover, .top-row[b-5k6u3wsbxy]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-5k6u3wsbxy]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-5k6u3wsbxy] {
        display: none;
    }

    .top-row.auth[b-5k6u3wsbxy] {
        justify-content: space-between;
    }

    .top-row[b-5k6u3wsbxy]  a, .top-row[b-5k6u3wsbxy]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-5k6u3wsbxy] {
        flex-direction: row;
    }

    .sidebar[b-5k6u3wsbxy] {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-5k6u3wsbxy] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-5k6u3wsbxy]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-5k6u3wsbxy], article[b-5k6u3wsbxy] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-8a7mis0u62] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-8a7mis0u62] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-8a7mis0u62] {
    font-size: 1.1rem;
}

.oi[b-8a7mis0u62] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

/* Fix for nav items */
.nav-item[b-8a7mis0u62] {
    font-size: 0.9rem;
    padding-bottom: 0.2rem;
    text-indent: 10%;
    position: relative;
    display: block;
    flex-direction: column;
    min-height: 3rem;
    margin-bottom: 0.15rem; /* Add space between menu items */
}

    .nav-item:first-of-type[b-8a7mis0u62] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-8a7mis0u62] {
        padding-bottom: 1rem;
    }

    /* Essential fix for the overlapping issue */
    .nav-item[b-8a7mis0u62]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: auto !important; /* Allow height to adjust based on content */
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1.2rem; /* Reduce line height to prevent overlap */
        padding: 0.2rem 0; /* Add padding for touch targets */
        margin: 0.2rem 0; /* Add margin between links */
        overflow: visible; /* Allow content to be visible */
        white-space: normal; /* Allow text to wrap */
        position: relative;
    }

        .nav-item[b-8a7mis0u62]  a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item[b-8a7mis0u62]  a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

/* Fix for MudNavGroup */
[b-8a7mis0u62] .mud-nav-group {
    height: auto !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

[b-8a7mis0u62] .mud-nav-group-children {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

[b-8a7mis0u62] .mud-nav-link {
    height: auto !important;
    min-height: 3rem;
    margin-bottom: 0.5rem;
}

/* Fix for the expanded menu */
nav.flex-column[b-8a7mis0u62] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem; /* Add gap between menu items */
}

@media (min-width: 641px) {
    .navbar-toggler[b-8a7mis0u62] {
        display: none;
    }

    .collapse[b-8a7mis0u62] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
