﻿.page[b-nke4wkcs7o] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure the page takes full height */
    overflow: hidden; /* Ensure no accidental scrollbars */
}

main[b-nke4wkcs7o] {
    flex: 1;
    overflow-y: auto; /* Enable scrolling for the main content */
}

.sidebar[b-nke4wkcs7o] {
    background-image: linear-gradient(180deg, #ffffff 0%, #dbdbdb 70%);
    height: 100vh; /* Sidebar takes full viewport height */
    overflow-y: auto; /* Allow the sidebar to scroll */
    position: sticky;
    top: 0;
}

.top-row[b-nke4wkcs7o] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10; /* Ensure it stays above other content */
}

    .top-row[b-nke4wkcs7o] a, .top-row[b-nke4wkcs7o] .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-nke4wkcs7o] a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .top-row[b-nke4wkcs7o] {
        justify-content: space-between;
    }

        .top-row[b-nke4wkcs7o] a, .top-row[b-nke4wkcs7o] .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-nke4wkcs7o] {
        flex-direction: row;
        height: 100vh; /* Full height for desktop view */
    }

    .sidebar[b-nke4wkcs7o] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-nke4wkcs7o], article[b-nke4wkcs7o] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
