.tree-menu {
    --spacing: 30px;
    --radius: 12px;
    /*padding-left: 0;*/
    /*padding-top: 10px;*/
    /*padding-right: 10px;*/
    border: 1px dashed;
    border-color: #ddd;
    margin: 0;
    padding: 15px;
    padding-left: 0;

}

.tree-menu, .tree-menu ul, .tree-menu li {
    list-style: none;
}

.tree-menu li {
    display: block;
    position: relative;
    padding-left: calc(2 * var(--spacing) - var(--radius) - 2px);
}

.tree-menu ul {
    margin-left: calc(var(--radius) - var(--spacing));
    padding-left: 0;
}

.tree-menu ul li {
    border-left: 1px dashed #ddd;
}

.tree-menu ul li:last-child {
    border-color: transparent;
}

.tree-menu ul li::before {
    content: '';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / -2);
    left: -1px;
    width: calc(var(--spacing) + 2px);
    height: calc(var(--spacing) + 1px);
    border: dashed #ddd;
    border-width: 0 0 1px 1px;
}

.tree-menu summary {
    display: block;
    cursor: pointer;
}

.tree-menu summary::marker,
.tree-menu summary::-webkit-details-marker {
    display: none;
}

.tree-menu summary:focus {
    outline: none;
}

.tree-menu summary::before {
    content: '+';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / 2 - var(--radius));
    left: calc(var(--spacing) - var(--radius) - 1px);
    width: calc(2 * var(--radius));
    height: calc(2 * var(--radius));
    line-height: calc(2 * var(--radius) - 4px);
    background: #ddd;
    text-align: center;
    z-index: 999;
    color: #fff;
}

.tree-menu li a::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / 2 - var(--radius));
    left: calc(var(--spacing) - var(--radius) - 1px);
    width: calc(2 * var(--radius));
    height: calc(2 * var(--radius));
    background: #ddd;
    border-radius: 50%;

}
.tree-menu li .active::after{
    background: #007bff;
}

.tree-menu .active a::after {
    content: '';
    z-index: 1;
    background: #696;
    color: #fff;
    line-height: calc(2 * var(--radius));
    text-align: center;
}

.tree-menu details[open] > summary::before{
    content: '−';
    background: #696;
}
.tree-menu details[open] > .active::before{
    background: #007bff;
}

.tree ul li a {
    display: block;
    text-decoration: none;
}

.inner {
    display: block;
    height: 30px;
    line-height: 24px;
    padding: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222222;

}

.inner:hover {
    color: #696;
}

.inner:hover {
    background: rgba(0, 0, 0, 0.1);
}

.tree-menu a:hover {
    text-decoration: none;
}

.tree-menu .active a {
    color: #0ea5e9;
}

.active, .active a {
    color: #0ea5e9;
}

.active .inner {
    color: #0ea5e9;

}
