.govbr-treeview-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--colors_gray02);
    border: 1px solid #00000022;
    border-radius: 0.5rem;
    box-shadow: -1px -1px 16px -2px #00000022 inset;
    box-sizing: border-box;
}

.govbr-treeview.jstree {
    padding: var(--padding-padrao-tabelas);
    overflow: hidden auto;
    flex: 1 0 0;
}

.govbr-treeview-pesquisa {
    flex: 0 0 auto;
    padding: var(--padding-padrao-tabelas);
    padding-bottom: 0;
    color: var(--colors_gray08);
}

.govbr-treeview-pesquisa-campo {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--colors_gray05);
    border-radius: 0.5rem;
    height: 2.5rem;
    padding-left: 3rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: inherit;
}

.govbr-treeview-pesquisa-icone {
    width: 3rem;
    margin-right: -3rem;
    text-align: center;
    z-index: 1;
    position: relative;
}

.jstree-container-ul,
.jstree-children {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--colors_gray08);
}

.jstree-node {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    position: relative;
}

.jstree-children {
    grid-column: 2 / -1;
}

.jstree-anchor {
    height: 2.2rem;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    outline: none;
}

.jstree-hidden {
    display: none;
}

.jstree-disabled {
    opacity: 0.6;
    cursor: default;
}

.jstree-wholerow {
    display: none;
}

.jstree-icon.jstree-ocl {
    visibility: hidden;
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
}

.jstree-open > .jstree-icon.jstree-ocl,
.jstree-closed > .jstree-icon.jstree-ocl {
    visibility: visible;
    cursor: pointer;
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: 0.2rem solid var(--colors_gray02);
}

.jstree-open > .jstree-icon.jstree-ocl + .jstree-anchor,
.jstree-closed > .jstree-icon.jstree-ocl + .jstree-anchor {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.jstree-node > .jstree-icon.jstree-ocl::before,
.jstree-closed > .jstree-icon.jstree-ocl::before {
    z-index: 1;
    content: '';
    position: absolute;
    top: 0.9rem;
    left: 1.1rem;
    right: 0;
    height: 1px;
    border-bottom: 2px dotted var(--colors_basecolor);
    opacity: 0.25;
    pointer-events: none;
}

.jstree-container-ul::before,
.jstree-node > .jstree-children::before,
.jstree-closed > .jstree-children::before {
    z-index: 1;
    content: '';
    position: absolute;
    top: 0.1rem;
    left: 1.1rem;
    bottom: 0.1rem;
    width: 1px;
    border-left: 2px dotted var(--colors_basecolor);
    opacity: 0.25;
    pointer-events: none;
}

.jstree-open > .jstree-icon.jstree-ocl::after,
.jstree-closed > .jstree-icon.jstree-ocl::after {
    z-index: 2;
    content: '';
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    height: 0.6rem;
    width: 0.6rem;
    background: var(--colors_actionhoverborder);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    transition: transform 0.25s;
    transform-origin: center;
    pointer-events: none;
}

.jstree-icon.jstree-ocl:hover,
.jstree-icon.jstree-ocl:hover + .jstree-anchor,
.jstree-icon.jstree-ocl:focus-visible,
.jstree-icon.jstree-ocl:focus-visible + .jstree-anchor {
    background: var(--colors_gray04);
}

.jstree-closed > .jstree-icon.jstree-ocl::after {
    transform: rotate(-45deg);
}

.jstree-anchor:hover,
.jstree-anchor:focus-visible {
    background: var(--colors_gray04);
}

.jstree-anchor > .jstree-themeicon {
    display: none;
}

.govbr-tree-view-icone-item {
    width: 2.25rem;
    text-align: center;
    color: var(--colors_actionhoverborder);
}

.govbr-tree-view-conteudo-item {
    font-weight: 600;
}

.govbr-tree-view-conteudo-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2rem;
    width: 2.2rem;
}

.govbr-tree-view-conteudo-hint:hover {
    background: var(--colors_gray05);
    border-radius: 0.5rem;
}

#jstree-dnd .govbr-tree-view-conteudo-hint {
    display: none;
}

.jstree-icon.jstree-checkbox {
    z-index: 2;
    position: relative;
    display: block;
    content: '';
    border: 2px solid var(--colors_actionhoverborder);
    border-radius: 0.5rem;
    margin: 0.275rem;
    padding: 0;
    height: 1.7rem;
    width: 1.7rem;
    line-height: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.jstree-icon.jstree-checkbox::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 1.4rem;
    width: 1.4rem;
    border: 2px solid var(--colors_basecolor);
    border-radius: 2px;
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
    transform: none;
    pointer-events: none;
    box-sizing: border-box;
    opacity: 0;
    transform-origin: center;
    transition:
        opacity 0.1s,
        clip-path 0.1s,
        transform 0.1s;
}

.jstree-icon.jstree-checkbox.jstree-undetermined::after {
    content: '';
    position: absolute;
    transform: translate(-0.5px, -0.5px) scale(0.785);
    background: var(--colors_basecolor);
    border-radius: 2px;
    pointer-events: none;
    box-sizing: border-box;
    opacity: 1;
}

.jstree-clicked .jstree-icon.jstree-checkbox::after {
    opacity: 1;
    transform: translate(-2px, -6px) rotate(45deg);
    clip-path: polygon(60% 30%, 60% 100%, 100% 100%, 100% 30%);
}

.govbr-treeview.jstree.jstree-selection .jstree-icon.jstree-ocl:has(+ .jstree-clicked),
.govbr-treeview.jstree.jstree-selection .jstree-clicked {
    background: var(--colors_basecolor10);
}

.jstree-icon.jstree-er::after {
    content: '\2298';
    text-decoration: none;
    font-style: initial;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--colors_danger);
    vertical-align: top;
    line-height: 1.5rem;
}

#jstree-dnd {
    position: relative;
    background: var(--colors_gray04);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--colors_gray05);
    box-shadow: 2px 2px 4px var(--colors_gray05);
    min-width: 10rem;
    height: 1.6rem;
    top: -2.3rem;
    left: 0.5rem;
    pointer-events: none;
}

.jstree-icon.jstree-ok,
.jstree-icon.jstree-er {
    display: inline-block;
    width: 0.5rem;
    z-index: 1;
    position: relative;
    top: -0.05rem;
    left: -0.75rem;
}

#jstree-dnd:has(.jstree-er) {
    opacity: 0.6;
}

#jstree-dnd:has(.jstree-er),
#jstree-dnd:has(.jstree-er)::before {
    background: var(--colors_danger_condform_row_background);
    border: 1px solid var(--colors_danger_condform);
}

#jstree-dnd::before {
    content: '';
    position: absolute;
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    background: var(--colors_gray04);
    border: 1px solid var(--colors_gray05);
    top: 0.3rem;
    left: -0.75rem;
    transform: rotate(45deg);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

#jstree-marker {
    position: absolute;
    background: var(--colors_actionhoverborder);
    opacity: 0.5;
}

#jstree-marker.jstree-above {
    width: 1.5rem;
    height: 1.5rem;
    transform: translate(1rem, -1.4rem);
    clip-path: polygon(0 0, 0.2rem 0, 0.2rem calc(100% - 0.2rem), 100% calc(100% - 0.2rem), 100% 100%, 0 100%);
}

#jstree-marker.jstree-below {
    width: 1.5rem;
    height: 1.5rem;
    transform: translate(1rem, 0);
    clip-path: polygon(0 0, 100% 0, 100% 0.2rem, 0.2rem 0.2rem, 0.2rem 100%, 0 100%);
}

#jstree-marker.jstree-inside {
    width: 1rem;
    height: 1rem;
    transform: translate(-0.3rem, -0.6rem) rotate(45deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
