&.body-small {
    &:not(.mini-navbar) {
        nav.navbar-static-side {
            top: -100%;
            z-index: 12;
        }
    }

    .logo-navigation-wrapper {
        img {
            display: none;
        }
    }

    nav.navbar-static-side {
        top: 0%;
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: $menu-color;

        .footer {
            position: relative;
            background-color: $menu-color;
            margin-top: -1px;

            i {
                display: inline-block;
                margin-bottom: 20px;
                margin-top: 5px;
                font-size: 3vw;
                cursor: pointer;
            }
        }

        #side-menu {
            & > li {
                float: left;
                width: calc(100% / 3);
                height: calc(100vw / 3);
                position: unset;
                border-top: 0;

                &:first-child {
                    display: none;
                }

                &.dropdown {
                    & > a {
                        padding: 10px;

                        &:after {
                            content: "\f107";
                            font-family: 'FontAwesome';
                            display: block;
                            text-align: center;
                            color: $secondary-color;
                            font-size: 3vw;
                            padding-bottom: 2px;
                            position: absolute;
                            bottom: 0;
                        }
                    }

                    & > ul {
                        display: none;
                    }

                    @media only screen and (min-width:$min-screen-md) {
                        &:hover {
                            & > a:after {
                                color: $menu-color;
                                font-weight: bold;
                            }
                        }
                    }

                    &.active {
                        border: 0;

                        & > a:after {
                            content: "\f106";
                            color: $accent-color;
                            font-weight: bold;
                        }

                        &.active-dropdown {
                            & > ul {
                                display: block;
                                position: relative;
                                top: 0;
                                left: -1px;
                                width: calc(100% - 1px);
                                min-width: unset;

                                &:before {
                                    content: unset;
                                }

                                & > li {
                                    a {
                                        font-size: 2.7vw;
                                        padding: 10px 9px 10px 9px;

                                        &:hover {
                                            border-right: 0;
                                            text-decoration: underline;
                                            text-decoration-color: $accent-color;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                & > a {
                    height: 100%;
                    text-align: center;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;
                    border-bottom: 1px solid $icon-border-color;
                    border-right: 1px solid $icon-border-color;

                    & > i {
                        display: block;
                        font-size: 8vw;
                        margin-bottom: 3vw;
                    }

                    span.nav-label {
                        display: block;
                        font-size: 2.9vw;
                    }
                }
            }
        }
    }
}

.nav-min-navigation {
    & {
        color: $light-color;
        background-color: transparent;
        text-decoration: none;
        margin: 0;
        text-align: right;
        padding: 6px 20px;
        min-height: 49px;

        &:hover, &:focus {
            color: darken($light-color, 10%);
        }

        .logo-navigation-wrapper {
            position: absolute;
        }

        .logo-navigation {
            height: 38px;
            float: left;
            background-repeat: no-repeat;
            background-size: contain;

            &.menu-logo-large {
                width: 180px;
                background-image: $logo-image;
            }

            &.menu-logo-small {
                width: 70px;
                position: relative;
                margin-right: 10px;
                margin-left: 10px;
                background-image: $logo-image-small;
            }
        }
    }
}

nav.navbar-static-side {
    & #side-menu {
        @include no-select();

        .menu-line {
            border-color: $icon-border-color;
            margin-top: 0px;
            margin-bottom: 0px;
        }
    }

    .footer {
        font-size: 11px;
        background-color: transparent;
        border-top: 1px solid $icon-border-color;
        color: $icon-color;
        padding: 8px 0px;

        i {
            display: none;
        }
    }

    &.mini-navbar .footer {
        display: none;
    }

    &.navbar-default {
        height: 100%;
        max-height: 100%;
        border-right: 1px solid $divider-color;

        .nav {
            .nav-header {
                padding: 0px;
                background: transparent;
                color: $light-color;
                border-right: 4px solid $menu-color;
                margin-right: -2px;

                a {
                    color: $light-color;
                    background-color: transparent;
                    text-decoration: none;
                    margin: 0;
                    text-align: right;
                    padding: 6px 20px;
                    min-height: 49px;

                    &:hover, &:focus {
                        color: darken($light-color, 10%);
                    }

                    .logo-navigation-wrapper {
                        position: absolute;
                    }

                    .logo-navigation {
                        height: 38px;
                        float: left;
                        background-repeat: no-repeat;
                        background-size: contain;

                        &.menu-logo-large {
                            width: 180px;
                            background-image: $logo-image;
                        }

                        &.menu-logo-small {
                            width: 70px;
                            position: relative;
                            margin-right: 10px;
                            background-image: $logo-image-small;
                        }
                    }
                }

                .logo-element {
                    .dropdown {
                        .dropdown-backdrop {
                            display: none;
                        }

                        a {
                            padding: 0;

                            span {
                                display: inline-block;
                                color: $light-color;
                                font-size: 15px;
                            }
                        }
                    }
                }

                .logout-option {
                    .dropdown-menu {
                        &:hover {
                            background-color: darken($light-color, 3%);

                            a {
                                color: darken($menu-main-text-color, 15%);
                            }
                        }

                        a {
                            color: $menu-main-text-color;
                            padding: 0 15px;
                        }
                    }
                }

                & + li {
                    border-top: 1px solid $divider-color;

                    &.active, &:hover {
                        border-top: 1px solid $divider-color;
                    }
                }
            }

            ul {
                //Edge bulletin bug
                list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=);

                &.dropdown-menu {
                    min-width: 200px;

                    li {
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                }
            }

            li:not(.nav-header) {
                & > a, & > a:active {
                    color: $menu-main-text-color;
                    text-decoration: none;
                    padding-left: 20px;
                    background-color: transparent;

                    @media screen and (max-height: 700px) {
                        padding: 1.75vh 20px 1.75vh 25px;
                    }
                }

                & > a > i {
                    margin-right: 5px;
                }

                & > a > span {
                    font-weight: 500;
                }

                @media only screen and (min-width:$min-screen-md) {
                    &:hover, &:focus {
                        & > a {
                            color: $menu-secondary-text-color;
                            background-color: darken($secondary-color, 5%);
                        }
                    }
                }

                &.active {
                    background-color: $secondary-color;
                    border-left: 10px solid $accent-color;

                    & > a {
                        color: $menu-secondary-text-color;
                        padding-left: 10px;

                        i {
                            color: $accent-color;
                        }

                        span {
                            font-weight: 600;
                        }
                    }
                }

                .dropdown-menu.collapse.in {
                    display: none;
                }

                @media only screen and (min-width: 768px) {
                    &.dropdown:hover .dropdown-menu {
                        display: block;
                        height: auto !important;
                    }
                }

                .dropdown-menu {
                    margin: 0;
                    border-radius: 0;
                    margin-top: -1px;
                    border: 1px solid $divider-color;

                    &.dropdown-menu-right {
                        position: absolute;
                        float: right;
                        top: 0;
                        left: 100%;
                    }

                    &:before {
                        content: "";
                        width: 0;
                        height: 0;
                        border-top: 10px solid transparent;
                        border-bottom: 10px solid transparent;
                        border-right: 10px solid $divider-color;
                        position: absolute;
                        left: -10px;
                        top: 15px;
                    }

                    &.dropdown-menu-top {
                        top: auto;
                        bottom: 0;

                        &:before {
                            top: auto;
                            bottom: 10px;
                        }
                    }

                    li a {
                        margin: 0;
                        padding: 14px 20px 14px 25px;
                        line-height: 1.42857143;
                        color: $menu-secondary-text-color;
                        background-color: $secondary-color;

                        &:hover {
                            border-right: 10px solid $accent-color;
                        }
                    }
                }
            }
        }
    }
}

.logo-navigation-wrapper-large {
    display: flex;
}

.logo-navigation-wrapper-small {
    display: none;
}

&.mini-navbar nav.navbar-default .nav > li:not(.nav-header) > a {
    @media only screen and (max-height: 870px) {
        font-size: 13px;
        padding: 10px 20px 10px 25px;
    }

    @media only screen and (max-height: 695px) {
        font-size: 11px;
        padding: 8px 20px 8px 25px;
    }
}

&:not(.mini-navbar) nav.navbar-default .nav > li:not(.nav-header) > a {
    @media only screen and (max-height: 775px) {
        font-size: 11px;
        padding: 10px 20px 10px 25px;
    }
}

&.mini-navbar .nav-label,
&.mini-navbar .navbar-default .nav li a span {
    display: initial;
}

&.mini-navbar #side-menu .nav-label,
&.mini-navbar .navbar-default #side-menu.nav li a span {
    display: none;
}

&.mini-navbar {
    nav.navbar-default {
        .nav-header {
            padding: 0;

            a.nav-min-navigation {
                padding: 6px 3px;

                .logo-navigation-wrapper-large {
                    display: none;
                }

                .logo-navigation-wrapper-small {
                    display: flex;
                }
            }
        }
    }
}

a.nav-min-navigation {
    &:hover {
        background-color: unset;
    }
}

&.body-small {
    #page-wrapper {
        margin-left: 0;
    }

    a.nav-min-navigation {
        padding: 6px 3px;

        .logo-navigation-wrapper-large {
            display: none;
        }

        .logo-navigation-wrapper-small {
            display: flex;
        }
    }
}

&:not(.body-small) {
    .top-menu {
        a.nav-min-navigation {
            .logo-navigation-wrapper-large {
                display: none;
            }

            .logo-navigation-wrapper-small {
                display: none;
            }
        }
    }
}

// Tablet and mobile
@media only screen and (max-width: $max-screen-sm) {
    .mobile-menu-load-fix {
        display: none;
    }
}

//For autotests
.autotest-menu {
    .dropdown > a {
        pointer-events: none;
    }
}

&.mini-navbar {
    .autotest-menu {
        .dropdown > a {
            pointer-events: all;
        }
    }
}
