div.sidebar {
    position: fixed;
    left: 0px;
    top: 0px;
    bottom: 0px;
    background: #FFFFFF;
    box-shadow: 10px 0px 10px rgba(0, 0, 87, 0.05);
    z-index:10;
    height:100vh;
    justify-content: flex-start;
}

button.menu-btn{
    display: none;
    font-family: Manrope;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 19px;
    /* identical to box height */

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #000057;
background-color: transparent;
    border: none;
}

@media (max-width:768px) {
    div.catalog-container div.sidebar, div.queries-container div.sidebar{
        display: none;
    }
    div.sidebar {
        width: 100%!important;
        height: 80px!important;
        bottom: unset;
        overflow: hidden;
    }
    div.collapsed-container{
        padding: 0.8rem 1.2rem!important;
    }
    div.sidebar.sidebar-opened{
        height: 100vh!important;
        bottom: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    div.sidebar.sidebar-closed, div.sidebar.sidebar-opened{
        width: 100%!important;
    }
    div.sidebar-closed div.logo-container > div.logo-text {
        width: max-content!important;
    }
    button.menu-btn{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
}

#sidebar-profile img{
	max-width:40px;
	border-radius:40px;
	box-shadow:1px 1px 1px #000;
}

div.sidebar.sidebar-closed, div.sidebar.sidebar-opened{
    height: inherit;
    transition: width 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.sidebar.sidebar-closed{
    width: 100px;
}

div.sidebar.sidebar-opened{
    width: 370px;
}

div.collapsed-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    padding-left: 1.5rem;
    border-bottom: 1px solid #E6EAF3;
    width: 100%;

}

div.logo-container{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

div.logo-container > div.logo-text{
    margin-left: 10px;
}

ul.sidebar-menu{
    list-style: none;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 2.2rem;
}

ul.sidebar-menu > li.sidebar-menu-item > a{
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    text-decoration: none;
    cursor: pointer;
}

li.sidebar-menu-item > a:hover{
    text-decoration: underline!important;
}

li.sidebar-menu-item > a > label{
    color: #000057;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 14px;
    white-space: nowrap;
    font-size: 16px;
    cursor: pointer;
}


div.sidebar-closed ul.sidebar-menu li.sidebar-menu-item > a > label, div.sidebar-closed div.logo-container > div.logo-text{
    width:0;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
}

div.sidebar-opened ul.sidebar-menu > li.sidebar-menu-item > a > label, div.sidebar-opened div.logo-container > div.logo-text{
    width: max-content;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
}



/*li.sidebar-menu-item > a > span.caret, */
a span.caret{
    margin-left:1rem;
    height: 6px;
    background-image: url("data:image/svg+xml, %3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4 2L7 5' stroke='%23000057' stroke-width='2'/%3E%3C/svg%3E");
    transform: rotate(0deg);
}

a.collapsed > span.caret{
    transform: rotate(180deg);
}

div.sidebar-opened span.caret{
    width: 0px;
}

div.sidebar-opened span.caret{
    width: 8px;
}


ul.sidebar-categories{
    list-style: none;
    margin: 0 0 2rem 0;
}

ul.sidebar-categories li {
    margin-bottom: 1rem;
}

ul.sidebar-categories > li > a{
    color: #000057;
    font-size: 14px;
    line-height: 18px;
}

ul.sidebar-categories > li > a:hover{
    color: #0048FF;
    font-size: 14px;
    line-height: 18px;
}



div.sidebar-opened ul.sidebar-menu{
    /*overflow-y: auto;*/
    overflow-x: hidden;
    margin-right: 1.2rem;
}

div.scrolled-menu::-webkit-scrollbar {
    width: 6px;               /* ширина scrollbar */
}
div.scrolled-menu::-webkit-scrollbar-track {
    background: rgba(0, 72, 255, 0.11);
    border-radius: 1px;
    border: 2px solid white;
}
div.scrolled-menu::-webkit-scrollbar-thumb {
    background-color: #0048ff;
    border-radius: 0.5rem;

}

div.scrolled-menu{
    overflow-x: hidden;
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}