.av-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-open);
    background-color: var(--bg-two);
    border-right: 1px solid var(--border);
    transition: .3s;
    z-index: 999
}

.av-sidebar.closed {
    width: var(--sidebar-closed)
}

.av-sidebar .av-sidebar-menu {
    position: relative;
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    overflow-x: hidden
}

.av-sidebar .av-sidebar-menu::-webkit-scrollbar {
    display: none
}

.av-sidebar ul {
    margin: 0
}

.av-sidebar li {
    position: relative;
    min-height: 30px;
    list-style: none;
    display: flex;
    align-items: center;
    margin: 1px 0;
    padding: 0 10px
}

.av-sidebar li a {
    position: relative;
    list-style: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 30px;
    border-radius: var(--rounded-default);
    width: 100%;
    text-decoration: none;
    transition: padding .3s
}

.av-sidebar li a:hover,
.av-sidebar li.active a {
    background-color: var(--on-hover)
}

.av-sidebar li a:hover i,
.av-sidebar li a:hover svg,
.av-sidebar li a:hover>*,
.av-sidebar li.active a>*,
.av-sidebar li.active i,
.av-sidebar li.active svg {
    color: var(--primary)
}

.av-sidebar li i,
.av-sidebar li svg {
    color: var(--svg)
}

.av-sidebar-image {
    min-width: 150px;
    border-radius: var(--rounded-default);
    display: flex;
    align-items: center;
    justify-content: center
}

.av-sidebar.closed .av-sidebar-image {
    margin-left: -5px
}

.av-sidebar-image img {
    width: 150px
}

.av-sidebar .icon {
    min-width: 28px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-default);
    font-size: 13px;
    transition: .3s
}

.av-sidebar.closed .icon {
    margin-left: 8px
}

.av-sidebar .text {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    padding-left: 5px;
    width: auto;
    visibility: visible;
    transition: .3s;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1
}

.av-sidebar.closed .text {
    visibility: hidden;
    opacity: 0;
    transition: none;
    padding: 0;
    position: absolute
}

.av-sidebar header {
    position: relative
}

.av-sidebar-header-content {
    display: flex;
    align-items: center;
    padding: 10px 10px 0
}

.av-sidebar-title {
    display: flex;
    flex-direction: column
}

.av-sidebar-title .title {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--title);
    text-transform: uppercase
}

.av-sidebar-title .subtitle {
    display: block;
    font-size: 1rem;
    margin-top: -2px;
    line-height: 1.5
}

.av-sidebar-toggle {
    position: absolute;
    bottom: 65px;
    right: -12.5px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary);
    color: var(--on-surface);
    border-radius: var(--rounded-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer
}

.av-sidebar.closed .av-sidebar-toggle {
    transform: translateY(-50%) rotate(0)
}

.av-sidebar-tooltip {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    margin-left: -5px;
    width: 0;
    z-index: 1000
}

.av-sidebar-tooltip.active {
    margin-top: 0;
    visibility: visible;
    opacity: 1;
    margin-left: 0;
    width: auto;
    transition: .3s
}

.av-sidebar-tooltip .av-sidebar-tooltip-container {
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    max-width: 300px;
    background-color: #32363a;
    white-space: nowrap;
    border-radius: var(--rounded-default);
    box-shadow: var(--shadow-lg), var(--shadow-relief)
}

.av-sidebar.closed .sidebar-user-container {
    justify-content: center
}

.sidebar-user-container {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 6px 8px;
    width: auto;
    transition: .3s;
    cursor: pointer;
    border-radius: var(--rounded-default);
    user-select: none
}

.sidebar-user-container.active,
.sidebar-user-container:hover {
    background-color: var(--on-hover)
}

.sidebar-user-container span {
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
    user-select: none
}

.user-avatar {
    position: relative;
    height: 24px;
    min-height: 24px;
    width: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: rgba(var(--primary-rgb), .2);
    color: var(--primary);
    border-radius: var(--rounded-full);
    font-weight: 500;
    font-size: .8rem;
    transform-style: preserve-3d;
    margin-right: 8px
}

.user-avatar.bigger {
    height: 32px;
    min-height: 32px;
    width: 32px;
    min-width: 32px;
    font-size: 1rem
}

.user-avatar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(-1px);
    background-color: var(--bg-three);
    width: 115%;
    height: 115%;
    border-radius: var(--rounded-full)
}

#desktop-avatar-dropdown,
#mobile-avatar-dropdown {
    min-width: 250px !important;
    z-index: 1000;
    bottom: unset;
    top: 40px;
    right: 10px
}

@media (max-width:768px) {

    .sidebar-user-container i,
    .sidebar-user-container span {
        display: none
    }

    .user-avatar {
        height: 26px;
        min-height: 26px;
        width: 26px;
        min-width: 26px;
        font-size: 1rem;
        margin-right: 0
    }

    #desktop-avatar-dropdown,
    #mobile-avatar-dropdown {
        top: 60px;
        width: 100%;
        max-width: calc(100% - 20px)
    }
}

.av-sidebar-mob-top {
    display: none;
    width: 100%;
    height: auto;
    position: fixed;
    transition: .5s;
    background: var(--bg-three);
    border-bottom: 1px solid var(--border);
    z-index: 1000
}

.av-sidebar-mob-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--mobile-topbar-height);
    padding: 8px 10px;
    margin: 0 auto;
    top: 0;
    left: 0;
    transition: .5s;
    z-index: 1000
}

.av-sidebar-mob-left {
    display: flex;
    align-items: center;
    gap: 8px
}

.av-sidebar-mob-left .title {
    font-size: 1rem
}

@media(max-width:768px) {
    .av-sidebar.closed {
        left: calc(-1 * var(--sidebar-closed))
    }

    .av-sidebar {
        top: var(--mobile-topbar-height)
    }

    .av-sidebar header {
        display: none
    }

    .av-sidebar-mob-top {
        display: block
    }

    .av-sidebar-toggle {
        display: none
    }
}

@media(max-width:576px) {
    .av-sidebar {
        width: 100%
    }
}

.av-sidebar-mob-container .av-sidebar-image {
    min-width: unset
}

.av-sidebar-mob-container .av-sidebar-image img {
    width: 40px;
    height: 40px
}

.av-sidebar-mob-toggle {
    width: 26px;
    height: 26px;
    cursor: pointer
}

.av-sidebar-mob-toggle svg {
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: var(--title)
}

.av-sidebar-mob-toggle.active svg {
    transform: rotate(90deg)
}

.av-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--toolbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 15px;
    margin-left: var(--sidebar-open);
    width: calc(100% - var(--sidebar-open));
    background-color: var(--bg-two);
    border-bottom: 1px solid var(--border);
    transition: .3s;
    z-index: 999
}

.av-toolbar.closed {
    margin-left: var(--sidebar-closed);
    width: calc(100% - var(--sidebar-closed))
}

ul.menu-links>li.nav-group-heading {
    border-top: 1px solid var(--border) !important;
    margin: 13px 0 6px;
    padding-top: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box
}

ul.menu-links>li.nav-group-heading:first-of-type {
    margin-top: 0
}