/* Vertical Sidebar Menu Styles (VSM) */
.vsm_nav {
    position: fixed;
    left: 0;
    z-index: 9999;
    height: 100%;
    box-shadow: 10px 0 20px -5px #0003;
    transition: width .5s;
    background-color: #203c6d;
    width: 230px;
}
.vsm_logo {
    text-align: center;
    margin-bottom: 8px;
}
.vsm_header_nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.vsm_header_nav > li {
    padding: 0 10px;
}
.vsm_header_nav > li > a {
    cursor: pointer;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    height: 48px;
    padding: 0 8px;
    text-transform: uppercase;
}
.vsm_header_nav > li > a:hover {
    background: #1a315a;
}
.vsm_header_nav > li.current-menu-item > a {
    background: #33c85d;
}
.vsm_header_nav li.menu-item-has-children {
    position: relative;
}
.vsm_header_nav .sub-menu {
    position: absolute;
    border: 1px solid #efefef;
    left: 100%;
    top: 0;
    list-style-type: none;
    margin: 0;
    padding: 8px;
    background: #203c6d;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
}
.vsm_header_nav li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}
.vsm_header_nav .sub-menu > li > a {
    color: #f1f1f1;
    font-size: 14px;
    display: block;
    padding: 4px 15px;
    white-space: nowrap;
}
.vsm_header_nav .sub-menu > li > a:hover {
    color: #fff;
}
.vsm_sidebar_switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    right: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #33c85d;
    border: none;
}
.vsm_sidebar_switch svg {
    width: 24px;
    height: 24px;
}
/* Collapsed */
.vsm_nav.vsm_hide {
    width: 75px;
}
.vsm_nav.vsm_hide .vsm_logo img {
    max-width: 100%;
    height: auto;
}
.vsm_nav.vsm_hide .vsm_header_nav > li > a {
    text-indent: -99999px;
    width: 50px;
    gap: 0;
    justify-content: center;
}
.vsm_nav.vsm_hide .vsm_sidebar_switch {
    transform: rotate(180deg);
}
/* Body margin transitions */
body {
    transition: margin-left .5s;
    min-width: 320px;
    overflow-x: auto;
}
body.vsm_body_collapsed {
    margin-left: 75px !important;
    width: calc(100% - 75px) !important;
}
body.vsm_body_expanded {
    margin-left: 230px !important;
    width: calc(100% - 230px) !important;
}
.header-main {
    display: none;
}

@media (max-width: 849px) {
    .vsm_nav {
        display: none;
    }
    body.vsm_body_collapsed,
    body.vsm_body_expanded {
        margin-left: 0 !important;
        width: 100% !important;
        overflow-x: hidden;
    }
    .header-main {
        display: block;
    }
}
