
.tree {
    margin: 2% auto;
    width: 100%;
    list-style: none;
    padding-left: 0 !important;
}

.tree ul {
    display: none;
    margin: 4px auto;
    margin-left: 6px !important;
    list-style: none;
    border-left: 1px dashed #dfdfdf;
}

.tree li {
    padding: 6px 4px;
    cursor: pointer;
    vertical-align: middle;
    /*background: #fff;*/
}

.tree li:first-child {
    border-radius: 3px 3px 0 0;
}

.tree label {
    display: initial !important;
}

.tree li:last-child {
    border-radius: 0 0 3px 3px;
}

.tree .active,
.active li {
    background: #efefef;
}

.tree label {
    cursor: pointer;
}

.tree input[type=checkbox] {
    margin: -2px 6px 0 0px;
}

.has > label {
    color: #000;
}

.tree .total {
    color: #e13300;
}

.tree .has > .arrow:first-child {
    --b: 4px; /* the thickness */
    width: 14px;
    margin: 1px;
    aspect-ratio: 1;
    background: conic-gradient(from 90deg at var(--b) var(--b), #efefef 90deg, #000 0) calc(100% + var(--b) / 2) calc(100% + var(--b) / 2)/
    calc(50% + var(--b)) calc(50% + var(--b));
    display: inline-block;
    border: none;
}
.tree .has.opened > .arrow:first-child {
    --b: 4px; /* the thickness */
    width: 14px;
    margin: 1px;
    aspect-ratio: 1;
    background: conic-gradient(from 90deg at var(--b) var(--b), #efefef 180deg, #000 0) calc(100% + var(--b) / 2) calc(100% + var(--b) / 2)/calc(50% + var(--b)) calc(50% + var(--b));
    display: inline-block;
    border: none;
}

.tree li.has > ul > li {
    padding-left: 30px;
}
