details {
    position: relative;
    width: auto;
    height: auto;
    overflow: hidden;
    /* max-height: 2.5em !important; */
    transition: all 0.1s ease;
}

details ::-webkit-details-marker {
    display: none;
}

details>summary {
    /* position: relative; */
    /* margin-top: 0.25em; */
    /* color: #99e; */
    /* padding: 0.1em 0.5em 0.2em; */
    /* background: #444; */
    display: flex;
    align-items: center;
}

details>summary:before {
    content: "⊞";
    color: #1c1c1c;
    font-size: 15px;
    margin-right: 0.5em;
}

/* details[open]>summary {
    background: #66e;
    color: #eee;
} */

details[open]>summary:before {
    content: "⊟";
}

.folder {
    margin: 0 0 5px 8px;
    padding: 2px 0 5px 15px;
    border-left: solid 1px #1c1c1c;
    /* border-bottom: solid 1px #1c1c1c; */
}

.folder p {
    margin: 0;
}

details[open] {
    height: auto;
    /* max-height: 99em !important; */
    transition: all 1.2s ease;
}

details:not([open]) .folder {
    height: 0px !important;
}

.tree-cat {
	background: #eee;
	font-size: 13px;
	background-image: url(/images/templates/freccia.png);
    background-repeat: no-repeat;
    background-position: bottom 0 right 0;
    height: fit-content;
    width: 100%;
    border-radius: 3px;
}

/* .tree-cat > details {
    max-height: 300px;
    overflow-y: scroll;
} */

.tree-cat > details::-webkit-scrollbar-track {
    background: #eee;
}

/* .tree-cat > details > summary{
    position: sticky;
} */