:root {
    --icon-fg: #FFFFFF;
    --icon-surface: rgba(255, 255, 255, 0.16);
    --icon-surface-hover: rgba(255, 255, 255, 0.24);
    --icon-surface-active: #F86466;
}

.wb-product-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-fg);
    background: var(--icon-surface);
    flex: 0 0 auto;
    box-sizing: border-box;
}

.wb-product-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    overflow: visible;
}

.nav-icon.wb-product-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.nav-item[data-section="SETTINGS"] .nav-icon svg {
    width: 24px;
    height: 24px;
}

.wb-product-icon--sm {
    width: 36px;
    height: 36px;
    min-width: 36px;
}

.wb-product-icon--sm svg { width: 20px; height: 20px; }

.wb-product-icon--lg {
    width: 80px;
    height: 80px;
    min-width: 80px;
}

.wb-product-icon--lg svg { width: 40px; height: 40px; }

#discipline-level .level-icon .wb-product-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
}

#discipline-level .level-icon .wb-product-icon svg {
    width: 26px;
    height: 26px;
}

#import-export .card-icon .wb-product-icon {
    width: 100%;
    height: 100%;
    min-width: 100%;
}

#import-export .card-icon .wb-product-icon svg {
    width: 48%;
    height: 48%;
}

.password-modal-icon-container .wb-password-modal-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.password-modal-icon-container .wb-password-modal-glyph svg {
    width: 100%;
    height: 100%;
    display: block;
}

.active > .wb-product-icon,
.nav-item.active .wb-product-icon {
    background: var(--icon-surface-active);
}

/* Stable sidebar navigation for every localized label. */
.sidebar .nav-item.active::before {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
}

.sidebar .nav-item.active .nav-text::after {
    display: none;
}

.sidebar .nav-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
}

#discipline-level .more-btn {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

#discipline-level .more-btn .triangle {
    flex: 0 0 auto;
    margin: 0;
}

@media screen and (min-width: 1037px) and (max-width: 1400px) {
    .sidebar .nav-item {
        width: 240px;
        min-height: 70px;
        box-sizing: border-box;
        gap: 12px;
        padding: 10px 12px 10px 0;
    }

    .sidebar .nav-item::before {
        width: 280px;
    }

    html[lang] .sidebar .nav-text {
        max-width: 172px;
        font-size: 17px !important;
        line-height: 1.18;
        letter-spacing: 0;
    }
}

@media (max-width: 390px) {
    .wb-product-icon { width: 40px; height: 40px; min-width: 40px; }
    .wb-product-icon svg { width: 20px; height: 20px; }
    .wb-product-icon--sm { width: 32px; height: 32px; min-width: 32px; }
    .wb-product-icon--sm svg { width: 18px; height: 18px; }
    .wb-product-icon--lg { width: 72px; height: 72px; min-width: 72px; }
    .wb-product-icon--lg svg { width: 36px; height: 36px; }
    #discipline-level .level-icon .wb-product-icon { width: 36px; height: 36px; min-width: 36px; }
    #discipline-level .level-icon .wb-product-icon svg { width: 20px; height: 20px; }
}

@media (max-width: 799px) {
    .nav-icon.wb-product-icon { width: 40px; height: 40px; min-width: 40px; }

    .sidebar .nav-item {
        box-sizing: border-box;
        gap: 12px;
        padding-right: 24px;
    }

    .sidebar .nav-text {
        flex: 1 1 auto;
        line-height: 1.18;
    }
}
