﻿.access-sidebar-item {
    position: fixed;
    left: 0;
    top: calc(50% + (var(--sidebar-index, 0) * 50px));
    z-index: 500011;
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #173470;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.35s ease, background-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.access-sidebar-item--first {
    border-top-right-radius: 10px;
}

.access-sidebar-item--last {
    border-bottom-right-radius: 10px;
}

.access-sidebar-item--only {
    border-radius: 0 10px 10px 0;
}

@media (hover: hover) {
    .access-sidebar-item:hover {
        width: 260px;
        background-color: #1e4493;
    }

    .access-sidebar-item:hover .access-sidebar-label {
        opacity: 1;
    }
}

.access-sidebar-item:focus-visible,
.access-sidebar-item.expanded {
    width: 260px;
    background-color: #1e4493;
}

.access-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.access-sidebar-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.access-sidebar-label {
    padding-right: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
}

@media (hover: hover) {
    .access-sidebar-item:hover .access-sidebar-label {
        opacity: 1;
    }
}

.access-sidebar-item:focus-visible .access-sidebar-label,
.access-sidebar-item.expanded .access-sidebar-label {
    opacity: 1;
}
