﻿.sidebarmain {
    /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/
    background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 70%);
    z-index: 1;
}

    .sidebarmain .top-row {
        /*background-color: rgba(0,0,0,0.4);*/
        color: black;
        background-color: white;
    }

    .sidebarmain .navbar-brand {
        color: black;
        font-size: 1rem;
    }

    .sidebarmain .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebarmain .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebarmain .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebarmain .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebarmain .nav-item a {
            color: #000000;
            /*border-radius: 4px;*/
            height: 3.5rem;
            display: flex;
            width: 250px;
            align-items: center;
            line-height: 3.5rem;
        }

            .sidebarmain .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebarmain .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.shadow-left {
    /*border-radius: 10px 0 0 10px;*/
    box-shadow: -3px 0 5px 0 black;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.sidebarheader {
    position: relative;
    color: black;
    height: 3.5rem;
    width: 100vh;
    display: flex;
    align-items: center;
    line-height: 3.5rem;
}

#logoicondiv {
    width: 100%;
    position: absolute;
    top: 0;
    opacity: 0;
}

.menuheadericon {
    display: inline-block;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-line-pack: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    vertical-align: middle;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 2.5em;
    width: 100%;
    margin-top: 0;
    margin-right: 0.1em;
    margin-left: 0.1em;
    overflow: hidden;
}

#minlogoicondiv {
    position: absolute;
    top: 0;
    opacity: 1;
}

.minlogo {
    display: inline-block;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-line-pack: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    vertical-align: middle;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 2.3em;
    width: 2.3em;
    margin-right: 0.1em;
    margin-left: 0.1em;
    overflow: hidden;
}

.pr-submenu {
    padding-right: 30px;
}

.ver-span {
    position: absolute;
    top: -15px;
    left: 5px;
    float: left;
    font-size: 8px !important;
}

#togglerdiv {
    z-index: 10;
    position: absolute;
}

#sidebar {
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    height: 100%;
    z-index: 1;
}

    #sidebar .logo {
        filter: drop-shadow(2px 5px 5px rgba(0, 0, 0, 0.75));
        display: block;
        width: 90px;
        height: 90px;
        margin: 0 auto;
        border: 5px solid #555;
    }

        #sidebar .logo span {
            display: block;
        }

.sidebar-logo {
    width: 200px;
    height: 9rem;
}

@media only screen and (min-width: 120px) and (max-width: 640px) {
    .sidebar-logo {
        width: 100%;
        height: 9rem;
    }
}

#interaction-mainmenu-box {
    height: auto;
    white-space: nowrap;
    overflow-y: scroll;
    text-align: right;
}

    #interaction-mainmenu-box::-webkit-scrollbar {
        display: none;
    }

.menu-div-item {
    background-color: transparent;
}

    .menu-div-item:hover {
        background: #FAFAFB;
    }

.menuicon {
    display: inline-block;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-line-pack: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    vertical-align: middle;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 2em;
    width: 2em;
    margin-right: 0.1em;
    margin-left: 0.1em;
    overflow: hidden;
    z-index: -1;
}

.submenuicon {
    display: inline-block;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-line-pack: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    vertical-align: middle;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 2em;
    width: 2em;
    margin-right: 1.6em;
    margin-left: 0.5em;
    overflow: hidden;
    z-index: -1;
}

.menu-text {
    color: #11253e !important;
    font-size: 12px !important;
}

    .menu-text:hover {
        color: #2DAAE1 !important;
        background-color: #dffbff !important;
        font-size: 14px !important;
    }

.submenu-div {
    background-color: rgba(45,170,225,0.05);
}

.main {
    flex: 1;
}

    .main .top-row {
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            text-overflow: ellipsis;
        }

.navbar-toggler {
    /*background-color: rgba(0, 0, 0, 0.1);*/
    color: rgba(0, 0, 0, 0.1);
    margin-left: 0.5em;
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebarmain:hover {
        width: 200px;
    }

        .sidebarmain:hover #minlogoicondiv {
            /*visibility: hidden;*/
            opacity: 0;
            transition: opacity 1s;
            /*transition: visibility 2s, opacity 1.5s linear;*/
        }

        .sidebarmain:hover #logoicondiv {
            /*visibility: visible;*/
            opacity: 1;
            transition: opacity 1s;
            /*transition: visibility 2s, opacity 1.5s linear;*/
        }

    .sidebarmain {
        height: 100vh;
        width: 2em;
        position: absolute;
        z-index: 1000;
        top: 0;
        overflow: hidden;
        -webkit-transition: width .05s linear;
        transition: width .05s linear;
        -webkit-transform: translateZ(0) scale(1,1);
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebarmain .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    /******************************************************************************************************************************/
}

@media only screen and (min-width: 120px) and (max-width: 640px) {
    #minlogoicondiv {
        opacity: 0;
    }

    #logoicondiv {
        opacity: 1;
    }
}

.logo {
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #555;
    background-color: transparent;
}
