﻿/*@media (min-width: 992px) {
    #sidebarMenu {
        height: calc(100vh - 56px);*/ /* 56px = default navbar height */
/*overflow-y: auto;
    }
}*/

/* Fix offcanvas-body flex layout */
/*#sidebarMenu .offcanvas-body {
    display: block;
}

main.flex-grow-1 {
    min-width: 0;
}*/

/* Desktop only */
@media (min-width: 992px) {
    /* Let sidebar take fixed width but full height of its flex container */
    #sidebarMenu {
        flex: 0 0 250px; /* same as style="width: 250px" but in flex terms */
        height: auto; /* important: remove the fixed viewport height */
    }

        /* Make only the menu area scrollable if it overflows */
        #sidebarMenu .offcanvas-body {
            max-height: calc(100vh - 56px); /* below the navbar */
            overflow-y: auto;
        }
}

/* Keep this to avoid flex weirdness in offcanvas */
#sidebarMenu .offcanvas-body {
    display: block;
}

main.flex-grow-1 {
    min-width: 0;
}
