/*
 * Nodes
 */

.jstree-default .jstree-anchor {
    position: relative;
    max-width: calc(100% - 45px);
    height: auto !important;
    padding: 3px 5px 3px 25px;
    color: #4f4f4f !important;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 18px !important;
    white-space: normal;
}

/*
 * Highlight lowest-level nodes in search context
 */

.jstree-container-ul li:not(:has(ul)) .has-match {
    color: #212121 !important;
    font-weight: 700;
}

.all-trees-wrapper[data-context="default"] .jstree-container-ul .concept_name {
    color: #212121 !important;
    font-weight: 600;
}

.all-trees-wrapper[data-context="selection"] .jstree-container-ul li a {
    color: #212121 !important;
    font-weight: 700;
}

.all-trees-wrapper[data-context="selection"]
.jstree-container-ul
li:not(:has(ul))
a
.concept_name {
    color: #212121 !important;
    font-weight: 500;
}

.concept_name {
    line-height: 18px;
}

.jstree-default .jstree-node {
    margin-bottom: 3px;
    background-image: none !important;
}

/*
 * Icons
 */

.jstree-icon {
    float: left;
}

.jstree-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 2px;
}

.jstree-icon.jstree-checkbox {
    margin-right: 3px !important;
}

/*
 * States
 */

.jstree-default .jstree-hovered {
    background: #f2f9ff !important;
}

.jstree-checked {
    font-weight: 700;
}

/*
 * Custom tree icons
 */

.jstree-default .jstree-checkbox {
    background: url("../../assets/images/unchecked.png") center / 16px no-repeat !important;
}

.jstree-default .jstree-anchor > .jstree-undetermined {
    background: url("../../assets/images/undetermined.png") center / 16px no-repeat !important;
}

.jstree-default .jstree-open > .jstree-ocl {
    background: url("../../assets/images/minus_2.png") center / 12px no-repeat !important;
}

.jstree-default .jstree-closed > .jstree-ocl {
    background: url("../../assets/images/plus_2.png") center / 12px no-repeat !important;
}

.jstree-default.jstree-checkbox-selection
.jstree-clicked
> .jstree-checkbox,
.jstree-default .jstree-checked > .jstree-checkbox {
    background: url("../../assets/images/checked.png") center / 16px no-repeat !important;
}

/*
 * Loading
 */

.js-tree-refresh {
    z-index: 1000;
    width: 40px;
    height: 40px;
    margin: 50px auto;
    background: url("../../assets/images/wait.gif") center / 40px no-repeat;
}


.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.container .checkmark {
    position: absolute;
    top: 0;
    height: 20px;
    width: 20px;
    border: 1.5px solid #91A5AE;
    background: #fff;
    left: 50%;
    transform: translateX(-50%);
    /* border-bottom: 4px; */
    border-radius: 4px;
    box-sizing: content-box;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: whitesmoke;
    border: 2px solid #2e94fa;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: #f25a89;
    border: 2px solid #f25a89;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    box-sizing: content-box;
}