﻿.tree-menu {
    padding: 0;
    overflow-x: auto;
}

.tree-menu__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tree-menu__node {
    margin-left: 0;
}

    .tree-menu__node + .tree-menu__node {
        margin-top: 4px;
    }

.tree-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 14px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    color: #1f1f1f;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

    .tree-menu__item:focus {
        outline: none;
    }

    .tree-menu__item:hover {
        background-color: #f4f2fb;
    }

.tree-menu__item--selected {
    background-color: rgb(52, 40, 118);
    color: #ffffff;
}

.tree-menu__item--disabled {
    cursor: default;
    pointer-events: none;
}

.tree-menu__children {
    margin-left: 20px;
    margin-top: 4px;
}

.tree-menu__toggle {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

    .tree-menu__toggle:focus {
        outline: none;
    }

.tree-menu__item-icon {
    width: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: inherit;
}

.tree-menu__item-icon--question {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    border: 1px solid #000000;
}

.tree-menu__item--selected .tree-menu__item-icon--question {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

.tree-menu__item-icon--section {
    width: 1.1rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    margin-right: 4px;
}

.tree-menu__section-icon-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.tree-menu__section-icon-row::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #000000;
}

.tree-menu__section-icon-row::after {
    content: "";
    height: 1px;
    width: 12px;
    background-color: #000000;
}

.tree-menu__item--selected .tree-menu__section-icon-row::before,
.tree-menu__item--selected .tree-menu__section-icon-row::after {
    background-color: #ffffff;
}

.tree-menu__item-text {
    flex: 1;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
