﻿/*.submenu {
    background-color: #f0f0f0;
    margin-top: -15px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: solid 1px #dddddd;
}
.submenu-childs:first-child {
    padding-left: 5px !important;
}
.submenu-childs:last-child {
    padding-right: 5px !important;
}
.submenu-title {
    display: inline;
    padding-right: 10px;
}
.submenu-item {
    display: inline;
    padding-left: 10px;
    padding-right: 10px;
}
.submenu-link.active {
    font-weight: 600;
}*/


/* SUB MENU */
main {
    margin-top: 64px;
    /* transition: margin-left .3s; */
    padding: 20px;
    margin-left: 250px;
}

.submenu {
    display: initial;
    height: 100%;
    height: calc(100% - 64px);
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 64px;
    left: 0;
    background-color: #fff;
    border-right: solid 1px #d5d5d5;
    overflow-x: hidden;
    /* transition: 0.3s; */
    /*padding-top: 80px;*/
}

    .submenu .button {
        display: initial;
        position: absolute;
        top: 0px;
        right: 0px;
    }

.submenu-section {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    min-height: 50px;
    background-color: #ffffff;
    border-bottom: solid 1px #d5d5d5;
    padding-left: 20px;
    padding-top: 14px;
}

.submenu-entry {
    font-size: 14px;
    min-height: 50px;
    background-color: #f9f9f9;
    margin-top: 1px;
    padding-left: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-right: 14px;
}

    .submenu-entry:hover {
        background-color: #f2f2f2;
        cursor: pointer;
    }

    .submenu-entry.active {
        color: #4d5c64;
        border-left: solid 6px #4e8ab4;
        background-color: #ebebeb !important;
    }

    .submenu-entry > a:link, .submenu-entry > a:hover, .submenu-entry > a:active, .submenu-entry > a:visited {
        color: #000000 !important;
        text-decoration: none;
    }

    .submenu-entry.active > a:link, .submenu-entry.active > a:hover, .submenu-entry.active > a:active, .submenu-entry.active > a:visited {
        color: #000000 !important;
        text-decoration: none;
    }

@media (max-width: 991px) {
    main {
        margin-left: 0px !important;
    }

    .submenu {
        display: none;
    }

        .submenu .button {
            display: none;
        }
}

/* Fix for sub menu entries in main nav */
.lineheight-150 {
    line-height: 1.5 !important;
}


/* DROP DOWN IN NAV */
.dropdown-menu {
    margin-top: 0px !important;
    border-radius: 0px !important;
    border: none !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    left: auto;
    right: 0px;
}

@media (min-width: 992px) {
    .dropdown-menu.show {
        height: fit-content;
        /* height: auto; */
        overflow: auto;
    }
}

@media (max-width: 992px) {
    @media (min-height: 700px) {
        .dropdown-menu.show {
            height: calc(50vh - 20px);
            /* height: auto; */
            overflow: auto;
        }
    }

    @media (max-height: 700px) {
        .dropdown-menu.show {
            height: calc(30vh - 20px);
            /* height: auto; */
            overflow: auto;
        }
    }

    @media (max-width: 500px) {
        .dropdown-menu.show {
            height: calc(30vh - 20px);
            /* height: auto; */
            overflow: auto;
        }
    }
}

.dropdown-toggle::after {
    display: none;
}

.nav-link > .submenu-container {
    color: #fff !important;
    padding-top: 26px;
    padding-left: 40px;
    padding-right: 40px;
    min-height: 64px;
}

    .nav-link > .submenu-container:hover {
        background-color: #083b86 !important;
    }

    .nav-link > .submenu-container.active:hover {
        background-color: #fff !important;
    }

    .nav-link > .submenu-container.active {
        color: #000 !important;
        background-color: #fff;
        padding-top: 26px;
        padding-left: 20px;
        padding-right: 20px;
        min-height: 64px;
    }

.nav-link > .submenu-container-black {
    color: #fff !important;
    background-color: #000;
    padding-top: 26px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 64px;
}