/* Styles for the toggle button */
#sidebar {
    min-height: 60vh;
    height: 100%;
    width: 300px;
    background-color: #F8F6F4;
    position: absolute;
    left: 0;
    padding-bottom: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Optional: hides horizontal scrollbar */
    z-index: 1;
}

.doc-activity {
    min-height: 60vh;
    width: 350px;

    padding-top: 20px;
    padding-bottom: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    /* z-index: 99; */
}

/* #sidebar .sticky-footer {
    position: sticky;
    bottom: 0;
    padding: 10px 15px;
    background-color: #F8F6F4;
    margin-bottom: 20px;
} */

/* Adjust main content when sidebar is visible */
#main-content {
    min-height: 60vh;
    margin-left: 310px;
    /* Offset the content when sidebar is visible */
    /* transition: margin-left 0.3s ease-in-out; */
}



.category-heading {
    padding: .15rem .5rem;
    font-weight: 700;
    /* Slightly bolder than links */
    color: rgba(0, 0, 0, 0.75);
    /* margin-left: 1.25rem; */
    /* Align with list items */
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    /* Slightly smaller than default headings */
}

.btn-toggle {
    padding: .15rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: none;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    margin-left: 0;
    /* Align with other list items */
}

/* Ensuring nested dropdown is aligned consistently */
.btn-toggle-nav>li>.btn-toggle {
    margin-left: 1.00rem;
    /* Add indentation for nested dropdown */
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .85);
    background-color: #d2d3d3;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

/* Styles for nav links within the toggle */
.btn-toggle-nav a {
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    display: block;
    color: inherit;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: #d2d3d3;
    color: #000;
}

/* Optional: Add a bit of styling for the li elements if needed */
.btn-toggle-nav li {
    margin-bottom: 0.25rem;
}

#toggleSidebar {
    display: none;
}

#DocumentationOffcanvas {
    width: 250px;
}

.companyKB-mainviewsidebar {
    display: block;
}

.companyKB-offcanvas {
    display: none;
}

@media (min-width: 320px) and (max-width: 768px) {

    .companyKB-mainviewsidebar {
        display: none;
    }

    .companyKB-offcanvas {
        display: block;
    }
    
    #main-content {
        min-height: 5vh;
        margin-left: 0px;
        /* Offset the content when sidebar is visible */
        /* transition: margin-left 0.3s ease-in-out; */
    }
}