@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2') format('woff2'),
    url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

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

.tree ul {
    display: none;
    margin: 4px auto;
    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 {
    --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-of-type {
    --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:not(.has) > .arrow {
    min-height: 20px;
    min-width: 20px;
    width: 20px;
    display: inline-block;
}

body[dir="rtl"] .tree .has > .arrow {
    transform: scaleX(-1);
}

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

.tree .has.opened .arrow, .tree .has  .arrow{
    background: transparent;
    width: 15px;
}

.tree .has .arrow::after {
    font-family: 'FontAwesome';
    content: "\f054";
    display: inline-block;
    /* margin-left: 6px; */
}

.tree .has.opened > .attribute-tree > .arrow::after {
    transition: transform 0.5s ease;
    transform: rotate(90deg);
}

.ml-19{
    margin-left: 19px;
}

.parent-checkbox {
    margin: 0px 0px 0 2px !important;
    width: 1em;
    height: 1em;
}

.child-checkbox{
    margin: 0px 0px 0 2px !important;
    width: 1em;
    height: 1em;
}

.attribute-tree{
    display: inline-block;
    border-radius: 5px;
    padding: 1px 10px;
    color: #8A8989;
    font-weight: 600;
    font-size: 16px;
}

.child-span{
    width: 86%;
}

.parent-span{
    /*width: 78%;*/
}

.attribute-tree:hover{
    background-color: rgba(80, 80, 80, 0.06);
}
