/* Reference sidebar */
.experimental-sidebar {
    display: flex !important;
    flex-direction: column;
    width: 264px !important;
    min-width: 264px !important;
    height: 108.69565vh !important;
    min-height: 108.69565vh !important;
    height: calc(100dvh / .92) !important;
    min-height: calc(100dvh / .92) !important;
    align-self: stretch;
    padding: 0 12px !important;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff !important;
    border-right: 1px solid #e8edf4;
    color: #30343b;
    font-family: Inter, sans-serif;
}

.experimental-sidebar .logo-area {
    display: flex;
    align-items: center;
    height: 92px;
    margin: 0 -12px 8px;
    padding: 0 12px;
    box-sizing: border-box;
    border-bottom: 1px solid #e7ebf1;
    flex: 0 0 92px;
}

.experimental-sidebar .logo img {
    display: block;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    object-fit: contain;
}

.experimental-sidebar .top-controls-oval {
    display: flex;
    align-items: center;
    gap: 7px !important;
    margin-left: auto !important;
}

.experimental-sidebar .oval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b929d;
    cursor: pointer;
}

.experimental-sidebar .oval-btn:hover {
    background: #f2f6fc;
    color: #246fe8;
}

.experimental-sidebar .logo-area .oval-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experimental-sidebar .control-divider {
    width: 1px;
    height: 24px;
    margin: 0 1px;
    background: #e6eaf0;
}

.experimental-sidebar .experimental-notifications {
    position: relative;
}

.experimental-sidebar .experimental-notifications::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 4px;
    width: 5px;
    height: 5px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #ff6977;
}

.experimental-sidebar .experimental-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 -12px;
    padding: 0 12px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.experimental-sidebar .experimental-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.experimental-sidebar .experimental-divider {
    height: 1px;
    flex: 0 0 1px;
    margin: 10px -12px;
    border: 0;
    background: #e7ebf1;
}

.experimental-sidebar .experimental-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #33363d;
    font: 500 16px/1 Inter, sans-serif;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.experimental-sidebar .experimental-item:hover {
    background: #f4f7fc;
    color: #246fe8;
}

.experimental-sidebar .experimental-item.active {
    background: #e9f2ff;
    color: #246fe8;
}

.experimental-sidebar .experimental-item[hidden] {
    display: none !important;
}

.experimental-sidebar.collapsed {
    width: 72px !important;
    min-width: 72px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.experimental-sidebar.collapsed .logo-area {
    justify-content: center;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.experimental-sidebar.collapsed .logo img {
    width: 42px;
    height: 42px;
}

.experimental-sidebar.collapsed .top-controls-oval {
    display: none;
}

.experimental-sidebar.collapsed .experimental-scroll {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.experimental-sidebar.collapsed .experimental-item {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.experimental-sidebar.collapsed .experimental-item > span:not(.experimental-chevron),
.experimental-sidebar.collapsed .experimental-chevron,
.experimental-sidebar.collapsed .experimental-submenu {
    display: none !important;
}

.experimental-sidebar.collapsed .experimental-divider {
    margin-left: 0;
    margin-right: 0;
}

.experimental-sidebar.collapsed > .user-profile {
    padding: 8px 4px 10px !important;
}

.experimental-sidebar.collapsed .user-card-inner {
    padding: 8px 4px;
}

.experimental-sidebar.collapsed .user-card-top {
    justify-content: center;
}

.experimental-sidebar.collapsed .user-name,
.experimental-sidebar.collapsed .user-role,
.experimental-sidebar.collapsed .user-logout-full {
    display: none !important;
}

.experimental-sidebar .experimental-item > svg:first-child {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: #fff;
    stroke: #858c97;
    color: #858c97;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    shape-rendering: geometricPrecision;
}

.experimental-sidebar .experimental-item > svg:first-child > use {
    color: inherit;
    fill: inherit;
    stroke: inherit;
    --icon-detail-fill: #fff;
    --icon-detail-stroke: #858c97;
}

.experimental-sidebar .experimental-item > svg:first-child * {
    fill: #fff !important;
    stroke: #858c97 !important;
    stroke-width: 1.75 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experimental-sidebar .experimental-item.active > svg:first-child {
    fill: #246fe8;
    stroke: #fff;
    color: #fff;
    transform: scale(1.16);
    transform-origin: center;
}

.experimental-sidebar .experimental-item.active > svg:first-child > use {
    --icon-detail-fill: #fff;
    --icon-detail-stroke: #246fe8;
}

.experimental-sidebar .experimental-item.active > svg:first-child * {
    fill: #246fe8 !important;
    stroke: #fff !important;
}

.experimental-sidebar .experimental-item.active > .experimental-settings-icon {
    fill: none !important;
    stroke: #246fe8 !important;
    stroke-width: 2.2 !important;
    color: #246fe8;
}

.experimental-sidebar .experimental-item > svg:first-child path,
.experimental-sidebar .experimental-item > svg:first-child rect,
.experimental-sidebar .experimental-item > svg:first-child circle,
.experimental-sidebar .experimental-item > svg:first-child line,
.experimental-sidebar .experimental-item > svg:first-child polygon {
    vector-effect: non-scaling-stroke;
}

.experimental-sidebar .experimental-item > span:not(.experimental-chevron) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.experimental-sidebar .experimental-chevron {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-left: auto;
    fill: none;
    stroke: #777e89;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experimental-sidebar .experimental-chevron path {
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform .18s ease, top .18s ease;
}

.experimental-sidebar .experimental-item.open .experimental-chevron path {
    transform: rotate(225deg);
}

.experimental-sidebar .experimental-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 4px 49px;
}

.experimental-sidebar .experimental-submenu.open {
    display: flex;
}

.experimental-sidebar .experimental-subitem {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #737b87;
    font: 500 13px/1 Inter, sans-serif;
    text-align: left;
    cursor: pointer;
}

.experimental-sidebar .experimental-subicon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experimental-sidebar .experimental-subicon * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experimental-sidebar .experimental-subitem:hover {
    background: #f1f5fb;
    color: #246fe8;
}

.experimental-sidebar .experimental-scroll::-webkit-scrollbar {
    width: 9px;
}

.experimental-sidebar .experimental-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.experimental-sidebar .experimental-scroll::-webkit-scrollbar-thumb {
    min-height: 80px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #b6cdf5;
}

.experimental-sidebar > .user-profile {
    display: block !important;
    flex: 0 0 auto;
    margin: 0 -12px !important;
    padding: 10px 12px 14px !important;
    box-sizing: border-box;
    border-top: 1px solid #e7ebf1;
    background: #fff;
}

.experimental-sidebar .user-card-inner {
    width: calc(100% + 10px);
    margin-left: -5px;
    padding: 10px 11px 11px;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 51, 79, .04);
}

.experimental-sidebar .user-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.experimental-sidebar .user-card-top .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9f2ff;
    color: #246fe8;
    font-size: 13px;
    font-weight: 700;
}

.experimental-sidebar .user-profile .user-name {
    min-width: 0;
    overflow: hidden;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.experimental-sidebar .user-profile .user-role {
    display: block !important;
    margin: 5px 0 0 46px;
    color: #8b929d;
    font-size: 11px;
}

.experimental-sidebar.updated-user-card .user-profile .user-role {
    display: none !important;
}

.experimental-sidebar .user-logout-full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin-top: 9px;
    padding: 7px 12px;
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.experimental-sidebar .user-logout-full:hover {
    border-color: #c8dbfb;
    background: #f4f8ff;
    color: #246fe8;
}

.experimental-sidebar .experimental-card-icon {
    width: 15px;
    height: 15px;
    margin-right: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The same card option also applies when the legacy sidebar is active. */
.sidebar.updated-user-card:not(.experimental-sidebar) .user-profile {
    padding: 10px 6px 12px;
    margin-left: -6px;
    margin-right: -6px;
    width: calc(100% + 12px);
    border-top: 1px solid #edf1f7;
}

.sidebar.updated-user-card:not(.experimental-sidebar) .user-card-inner {
    width: calc(100% + 16px);
    margin-left: -8px;
    min-height: 62px;
    padding: 8px 10px 10px;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 51, 79, .04);
}

.sidebar.updated-user-card:not(.experimental-sidebar) .user-card-top {
    gap: 9px;
}

.sidebar.updated-user-card:not(.experimental-sidebar) .user-card-top .avatar {
    width: 36px;
    height: 36px;
    background: #eaf2ff;
    color: #246fe8;
    font-size: 13px;
}

.sidebar.updated-user-card:not(.experimental-sidebar) .user-name {
    color: #000;
    font-size: 12.5px;
    font-weight: 700;
}

.sidebar.updated-user-card:not(.experimental-sidebar) .user-role {
    display: none !important;
}

.sidebar.updated-user-card:not(.experimental-sidebar) .user-logout-full {
    min-height: 36px;
    margin-top: 8px;
    padding: 8px 12px;
    border-color: #e4e9f0;
    border-radius: 8px;
    color: #000;
    font-size: 12px;
}

.sidebar:not(.experimental-sidebar) .experimental-card-icon {
    width: 15px;
    height: 15px;
    margin-right: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .experimental-sidebar {
        width: 328px !important;
        min-width: 328px !important;
    }
}
