﻿@media (max-width: 418px) {
    .navbar-brand span {
        font-size: 20px;
    }
}

@media (max-width: 353px) {
    .navbar-brand span {
        font-size: 16px;
    }
}

@media (max-width: 321px) {
    .navbar-brand span {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .mega-menu.show {
        animation: ShowIndex 1.0s;
        -moz-animation: ShowIndex 1.0s; /* Firefox */
        -webkit-animation: ShowIndex 1.0s; /* Safari and Chrome */
        -o-animation: ShowIndex 1.0s; /* Opera */
        display: block;
    }

    .userinfo-menu.show {
        animation: ShowIndex 0.7s;
        -moz-animation: ShowIndex 0.7s; /* Firefox */
        -webkit-animation: ShowIndex 0.7s; /* Safari and Chrome */
        -o-animation: ShowIndex 0.7s; /* Opera */
        display: block;
    }
}

@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu:not(.show) {
        animation: ShowIndex 0.7s;
        -moz-animation: ShowIndex 0.7s; /* Firefox */
        -webkit-animation: ShowIndex 0.7s; /* Safari and Chrome */
        -o-animation: ShowIndex 0.7s; /* Opera */
        display: block;
    }
}

@keyframes ShowIndex {

    from {
        opacity: 0.5;
        max-height: 0px;
    }

    to {
        opacity: 1;
        max-height: 1800px;
    }
}




.navbar {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

    .navbar .dropdown a, .navbar .dropdown div.nav-link, .navbar .nav-item .nav-link {
        margin: 10px 5px 5px 5px;
    }

.nav-mega {
    width: 100%;
}

    .nav-mega .dropdown {
        position: static;
    }

    .nav-mega .dropdown-menu.mega-menu {
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -moz-border-radius-topleft: 0;
        -webkit-border-top-left-radius: 0;
        border-top-left-radius: 0;
        -moz-border-radius-topright: 0;
        -webkit-border-top-right-radius: 0;
        border-top-right-radius: 0;
        min-width: auto;
        width: 100%;
        margin-top: 0;
        padding: 0;
        border-color: #ccc;
    }

        .nav-mega .dropdown-menu.mega-menu .row {
            margin-left: 0;
            margin-right: 0;
        }

@media (max-width: 767px) {
    .nav-userinfo {
        width: 100%;
    }

        .nav-userinfo .dropdown {
            position: static;
        }

        .nav-userinfo .dropdown-menu.userinfo-men {
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -moz-border-radius-topleft: 0;
            -webkit-border-top-left-radius: 0;
            border-top-left-radius: 0;
            -moz-border-radius-topright: 0;
            -webkit-border-top-right-radius: 0;
            border-top-right-radius: 0;
            min-width: auto;
            width: 100%;
            margin-top: 0;
            padding: 0;
            border-color: #ccc;
        }
}

@media (min-width: 768px) {
    .nav-userinfo .nav-item {
        margin: auto;
    }
}

.nav-userinfo .dropdown-menu.userinfo-menu {
    margin-top: 0;
}

.userinfo-menu a {
    color: black;
}

#logout {
    color: #007bff;
    font-weight: 600;
}

.card img {
    display: block;
    margin: auto;
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: 100%;
}

.card .img_block {
    display: flex;
    vertical-align: middle;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
}


.navbar .label {
    /* background-color: #343a40; */
    position: absolute;
    top: -10px;
    /*right: 10px;*/
    font-size: 14px;
    font-family: "Helvetica Neue";
    text-shadow: none;
    color: white;
}

.head_icon {
    width: 20px;
}

#nav_menu {
    text-align: center;
}

.dropdown-item.active, .dropdown-item:active {
    color: unset;
    background-color: unset;
}

.navbar-toggler-icon {
    height: 1.4rem;
    width: 1.4rem;
}

.navbar-toggler-icon-custom {
    padding-top: 0.1rem;
}

.navbar-cart {
    flex-grow: 0;
}


#mainContainer_backgroud {
    background: #9e9e9e;
    display: none;
    position: absolute;
    width: 100%;
    z-index: 999;
    opacity: .6;
}

#Message_Block {
    position: fixed;
    /*width: 25%;*/
    bottom: 50%;
    /*right: 25vw;*/
    z-index: 9999;
}

    #Message_Block .alert {
        width: 25%;
        margin: auto;
    }

    #Message_Block .close {
        margin: 0px;
        height: 100%;
    }

#Message_Block_backgroud {
    background: #eee;
    display: none;
    position: absolute;
    width: 100%;
    z-index: 9998;
    opacity: .2;
    position: fixed;
    top: 0;
}

.btn-black {
    border: 1px solid #000;
    background-color: black;
    color: white;
}

    .btn-black:hover {
        color: white;
    }

/*footer {
            margin-top: 30px;
        }*/

#sidebar {
    overflow: hidden;
    z-index: 3;
}

    #sidebar .list-group {
        min-width: 400px;
        background-color: #333;
        min-height: 100vh;
    }

    #sidebar i {
        margin-right: 6px;
    }

    #sidebar .list-group-item {
        border-radius: 0;
        background-color: #333;
        color: #ccc;
        border-left: 0;
        border-right: 0;
        border-color: #2c2c2c;
        white-space: nowrap;
    }

        /* highlight active menu */
        #sidebar .list-group-item:not(.collapsed) {
            background-color: #222;
        }

    /* closed state */
    #sidebar .list-group .list-group-item[aria-expanded="false"]::after {
        content: " \f0da";
        font-family: var(--fa-style-family, "Font Awesome 6 Free");
        font-weight: var(--fa-style, 900);
        display: inline;
        text-align: right;
        padding-left: 5px;
    }

    /* open state */
    #sidebar .list-group .list-group-item[aria-expanded="true"] {
        background-color: #222;
    }

        #sidebar .list-group .list-group-item[aria-expanded="true"]::after {
            content: " \f0dd";
            font-family: var(--fa-style-family, "Font Awesome 6 Free");
            font-weight: var(--fa-style, 900);
            display: inline;
            text-align: right;
            padding-left: 5px;
        }

    /* level 1*/
    #sidebar .list-group .collapse .list-group-item,
    #sidebar .list-group .collapsing .list-group-item {
        padding-left: 20px;
    }

    /* level 2*/
    #sidebar .list-group .collapse > .collapse .list-group-item,
    #sidebar .list-group .collapse > .collapsing .list-group-item {
        padding-left: 30px;
    }

    /* level 3*/
    #sidebar .list-group .collapse > .collapse > .collapse .list-group-item {
        padding-left: 40px;
    }


@media (max-width:768px) {
    #sidebar {
        min-width: 35px;
        max-width: 56px;
        /*max-width: 40px;*/
        overflow-y: auto;
        overflow-x: visible;
        transition: all 0.25s ease;
        transform: translateX(-45px);
        position: fixed;
    }

    #sidebar_btn {
        margin-left: 35px;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #sidebar::-webkit-scrollbar {
        width: 0px;
    }

    #sidebar, #sidebar .list-group {
        min-width: 1px;
        overflow: visible;
    }
        /* overlay sub levels on small screens */
        #sidebar .list-group .collapse.show, #sidebar .list-group .collapsing {
            position: relative;
            z-index: 1;
            width: 190px;
            top: 0;
        }

        #sidebar .list-group > .list-group-item {
            text-align: center;
            padding: .75rem .5rem;
        }
            /* hide caret icons of top level when collapsed */
            #sidebar .list-group > .list-group-item[aria-expanded="true"]::after,
            #sidebar .list-group > .list-group-item[aria-expanded="false"]::after {
                display: none;
            }
}

.collapse.show {
    visibility: visible;
}

.collapsing {
    visibility: visible;
    height: 0;
    -webkit-transition-property: height, visibility;
    transition-property: height, visibility;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

    .collapsing.width {
        -webkit-transition-property: width, visibility;
        transition-property: width, visibility;
        width: 0;
        height: 100%;
        -webkit-transition-timing-function: ease-out;
        transition-timing-function: ease-out;
    }

.swal2-container {
    z-index: 99999;
}
