/* Template Variables */
:root {
    --topbar-height: 48px;
    --side-bar-width: 225px;
}

.navbar {
    position: sticky;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1);
    z-index: 1000;
    left: 0;
    top: 0;
    right: 0;
    height: 48px;
}

/* ScreenWidth <= 768px */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        height: auto;
    }

    footer {
        left: 0 !important;
    }
}

/* ScreenWidth >= 768 */
/*@media (min-width: 768px) {*/
/*    .navbar {*/
/*        top: 0;*/
/*        position: sticky;*/
/*        z-index: 999;*/
/*    }*/
/*}*/

.sidebar {
    position: fixed;
    top: var(--topbar-height);
    bottom: 0;
    left: 0;
    width: var(--side-bar-width);
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    z-index: 99;
}

#mainContainer {
    padding-left: var(--side-bar-width);
}

/* ScreenWidth <= 768px */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        top: 0;
        border: 2px solid grey;
    }

    #mainContainer {
        padding-left: 1rem;
    }
}

/* FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: var(--side-bar-width);
    right: 0;
}

/* Main menu hover effect */
#sidebar li:hover {
    background-color: #666 !important;
    color: #fff !important;
}

#sidebar li.active {
    background-image: url("/img/caret-right.png");
    background-repeat: no-repeat;
    background-position: right;
}

.accordion-button:hover {
    background-color: lightgray;
}

#logo {
    max-height: 36px;
    margin: 2px 10px 2px 0;
}

/* SCROLLBAR STYLE */
.sb-style-1::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

.sb-style-1::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

.sb-style-1::-webkit-scrollbar-thumb {
    background-color: #999;
    border: 2px solid #888;
}

/* Z indices */
.z-100 {
    z-index: 100;
}

.z-1000 {
    z-index: 1000;
}