:root {
    --bg-body: #0f1115;
    --bg-active: rgba(247, 241, 236, 0.06);
    --border-color: #2a2e36;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
}

/* Контейнер пунктов верхнего меню */
#componentTopMenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 130.092vh;
    height: 4.44vh;
    position: absolute;
    top: 2.664vh;
    left: 27.084vh;
}

/* Правый блок: уведомления и личный кабинет */
.component-top-menu-right-block {
    display: flex;
    gap: 1.776vh;
    position: absolute;
    top: 2.664vh;
    right: 4.44vh;
    align-items: center;
}

.component-top-menu-right-block:has(#dashboardStoreButtonOpen.show) {
    right: 2.664vh;
}

#dashboardStoreButtonOpen {
    cursor: pointer;
    display: none;
}

#dashboardStoreButtonOpen.show {
    display: block;
}

#personalAccountButtonOpen {
    display: block;
    align-self: center;
    cursor: pointer;
}

.comp-topMenu-svg-container {
    max-width: 2.4vh;
    max-height: 2.4vh;
}

.comp-topMenu-svg-container svg {
    max-width: 2.4vh;
    max-height: 2.4vh;
}

.tm-item svg {
    max-width: 2.4vh;
    max-height: 2.4vh;
    width: 2.4vh;
    height: 2.4vh;
}

.tm-container {
    display: flex;
    height: 4.44vh;
    background-color: transparent;
    border: none;
    user-select: none;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.tm-separator {
    width: 1.776vh;
    height: 2.4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-separator-line {
    visibility: hidden;
    margin-top: 1.888vh;
    width: 0.222vh;
    height: 2.4vh;
    background-color: #292C30;
    border-radius: 0.2vh;
}

/* Пункт верхнего меню */
.tm-item {
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, width 0.3s ease;
    box-sizing: border-box;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    border-radius: 0.888vh;
    background-color: transparent;
}

.tm-item.default {
    width: 11.544vh;
    padding-left: 0.888vh;
    padding-right: 0.888vh;
}

.tm-item.default:hover {
    background-color: rgba(247, 241, 236, 0.06);
    border-radius: 5.328vh;
    color: var(--text-main);
}

/* Выбранный пункт*/
.tm-item.active {
    background-color: var(--bg-active);
    color: #D0D0D1;
    padding: 0.888vh;
    overflow: hidden;
    border-radius: 5.328vh;
    outline: var(--app-border-width) solid rgba(247, 241, 236, 0.08);
    outline-offset: calc(-1 * var(--app-border-width));
    gap: 0.888vh;
}

.tm-item.active.with-sub {
    width: auto;
    min-width: 25.308vh;
    flex-shrink: 0;
    justify-content: flex-start;
}

.tm-item.active.no-sub {
    width: 11.544vh;
    justify-content: center;
}

.tm-main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1.2vh;
    font-size: 1.776vh;
    font-weight: 700;
}

.tm-main-content.is-icon {
    height: 2.664vh;
    width: 2.664vh;
    padding: 0;
    margin-left: 1.776vh;
    margin-right: 1.776vh;
}

.tm-item.active.no-sub .tm-main-content {
    width: 100%;
    padding: 0;
    color: #D0D0D1;
}

.tm-vert-sep {
    width: 0.222vh;
    height: 1.776vh;
    background-color: #3e434d;
    flex-shrink: 0;
}

.tm-sub-content {
    flex-grow: 1;
    flex-shrink: 0;
    min-width: max-content;
    font-size: 1.776vh;
    font-weight: 700;
    color: #e5e7eb;
    overflow: visible;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-left: 1.776vh;
    height: 100%;
}

.tm-close-btn {
    width: 2.4vh;
    height: 2.4vh;
    margin-right: 1.6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s;
}

.tm-close-btn:hover {
    color: #fff;
}

.tm-item svg {
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comp-topmenu-block {
    font-size: 1.776vh;
    font-weight: 700;
}
