/* Dropdown tree control wrapper */
.dropdown-tree {
    outline: none;
}

.dropdown-tree .collapsing {
    -webkit-transition: none;
    transition: none;
    display: none;
}

.dropdown-tree [data-template] {
    display: none !important;
}

.dropdown-tree > .form-control:not(.plain-mode) {
    padding: .375rem .75rem 0;
    margin-bottom: .375rem;
    min-height: calc(2.25rem + 2px);
}

.dropdown-tree > .form-control .placeholder {
    color: #6c757d;
}

.dropdown-tree > .form-control .dropdown-tree-tag:not([data-template]) + .placeholder {
    display: none;
}

.dropdown-tree.focuced > .form-control {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.dropdown-tree .form-control .dropdown-tree-tag {
    white-space: normal;
    margin-bottom: .375rem;
}

.dropdown-tree .form-control .dropdown-tree-tag p {
    /*display: -webkit-box;*/
    /*-webkit-line-clamp: 3;*/
    /*-webkit-box-orient: vertical;*/
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-tree .dropdown-menu {
    max-width: 100%;
    min-width: 0;
}

.dropdown-tree .dropdown-menu .dropdown-item {
    white-space: normal;
}

.dropdown-tree.dropdown-tree-lazy.loading .dropdown-menu {
    visibility: hidden;
}

/* Tree view control */
.custom-tree {
    overflow-y: auto;
    max-height: 190px;
}

.custom-tree .no-data-available {
    display: none;
}

.dropdown-tree.no-data .no-data-available {
    display: block;
}

.custom-tree .list-group-wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 0;
    -ms-flex-align: start;
    align-items: flex-start;
}

.custom-tree .list-group-inner {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: start !important;
    align-items: flex-start !important;
    margin-bottom: 10px;
}

.custom-tree .list-group-wrapper > .list-group-wrapper {
    margin-left: 15px;
    display: none !important;
}

.custom-tree .list-group-wrapper > .list-group-wrapper {
    -ms-flex-order: 0;
    order: 0;
}

.custom-tree .list-group-wrapper > .list-group-wrapper {
    -ms-flex-order: 1;
    order: 1;
}

.custom-tree .list-group-wrapper .list-group-item-control {
    width: 19px;
}

/*.custom-tree .list-group-wrapper .list-group-item-control .list-group-item-expand,*/
.custom-tree .list-group-wrapper .list-group-item-control .list-group-item-collapse {
    display: none;
}

.custom-tree .list-group-wrapper > .list-group-wrapper ~ div .list-group-item-control .list-group-item-expand {
    display: block;
}

.custom-tree .list-group-wrapper > input:checked ~ .list-group-wrapper ~ div .list-group-item-control .list-group-item-expand {
    display: none;
}

.custom-tree .list-group-wrapper > input:checked ~ .list-group-wrapper ~ div .list-group-item-control .list-group-item-collapse {
    display: block;
}

.custom-tree .list-group-wrapper > input:checked ~ .list-group-wrapper {
    display: -ms-flexbox !important;
    display: flex !important;
}

.custom-tree.filtered .list-group-wrapper.matches {
    color: #007bff;
}

.custom-tree.filtered .list-group-wrapper.matches ~ .list-group-inner:not(.matches),
.custom-tree.filtered .list-group-wrapper:not(.matches) {
    color: initial;
}

.custom-tree.filtered .list-group-inner:not(.matches),
.custom-tree.filtered .list-group-wrapper:not(.matches),
.custom-tree.filtered .list-group-wrapper.matches > input:checked ~ .list-group-wrapper:not(.matches),
.custom-tree.filtered .list-group-wrapper:not(.matches) ~ div .list-group-item-control .list-group-item-expand,
.custom-tree.filtered .list-group-wrapper:not(.matches) ~ div .list-group-item-control .list-group-item-collapse,
.custom-tree .list-group-wrapper.no-children .list-group-item-control .list-group-item-expand,
.custom-tree .list-group-wrapper.no-children .list-group-item-control .list-group-item-collapse {
    display: none !important;
}

.custom-tree.filtered .list-group-wrapper.matches ~ .list-group-inner:not(.matches) {
    display: -ms-flexbox !important;
    display: flex !important;
}

/*Tree dropdown preloader*/

.loader,
.loader:after {
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

.loader {
    margin: 18px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 2px solid rgba(0, 0, 0, .1);
    border-right: 2px solid rgba(0, 0, 0, .1);
    border-bottom: 2px solid #6c757d;
    border-left: 2px solid #6c757d;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 0.85s infinite linear;
    animation: load8 0.85s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

