.tree {
    margin: auto;
    padding: 0 0 0 9px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tree::before {
    display: inline-block;
    content: "";
    position: absolute;
    top: -20px;
    bottom: 16px;
    left: 0;
    z-index: 1;
    border: 1px dotted #67B2DD;
    border-width: 0 0 0 1px;
}

.tree .tree-item, .tree .tree-branch {
    /*border-left: 1px solid #FFF;*/
    margin: 1px 0;
    position: relative;
    list-style: none;
}

.tree .tree-branch::before, .tree .tree-item::before {
    display: inline-block;
    content: "";
    position: absolute;
    top: 14px;
    left: -13px;
    width: 18px;
    height: 0;
    border-top: 1px dotted #67B2DD;
    z-index: 1;
}

.tree .tree-branch {
    width: auto;
    min-height: 20px;
}

.tree .tree-branch i.toggle-icon,
.tree .tree-branch span.toggle-icon {
    display: inline-block;
    font-style: normal;
    height: 11px;
    width: 11px;
    box-sizing: content-box;
    text-align: center;
    border: 1px solid #8BAEBF;
    line-height: 10px;
    background-color: #FFF;
    position: absolute;
    z-index: 2;
    cursor: pointer;
    top: 9px;
}

.tree .tree-branch i.toggle-icon:first-child::before,
.tree .tree-branch span.toggle-icon:first-child::before{
    content: "";
    display: block;
    width: 7px;
    height: 0;
    border-top: 1px solid #4D6878;
    position: absolute;
    top: 5px;
    left: 2px;
}

.tree .tree-branch i.toggle-icon:first-child::after,
.tree .tree-branch span.toggle-icon:first-child::after{
    content: "";
    display: block;
    height: 7px;
    width: 0;
    border-left: 1px solid #4D6878;
    position: absolute;
    top: 2px;
    left: 5px;
}

.tree .tree-branch i.toggle-icon.sbs-open:first-child::after,
.tree .tree-branch span.toggle-icon.sbs-open:first-child::after{
    display: none;
}

.tree .tree-branch .tree-branch-header {
    display: inline-block;
    width: 100%;
    padding: 5px;
    color: #4D6878;
    box-sizing: border-box;
    position: relative;
    height: 30px;
    line-height: 20px;
    margin: 0 0 0 5px;
    & a {
        color: #4D6878;
    }
}

.tree .tree-branch i.toggle-icon + .tree-branch-header,
.tree .tree-branch span.toggle-icon + .tree-branch-header{
    width: calc(100% - 17px);
    margin: 0 0 0 17px;
}

.tree .tree-branch .tree-branch-header .tree-branch-name {
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree .tree-branch .tree-branch-header .tree-branch-name span.tree-label span.highlight {
    background-color: #fff8bc;
    color: #716833;
}

.tree .tree-branch .tree-branch-header:not(.inactive):hover {
    background-color: rgba(98, 168, 209, 0.1);
}

.tree .tree-branch .tree-branch-header .tree-branch-name .item-icon {
    color: #dd5a43;
}

.tree .tree-branch i.toggle-icon.sbs-open ~ .tree-branch-children,
.tree .tree-branch span.toggle-icon.sbs-open ~ .tree-branch-children{
    display: block;
}

.tree .tree-branch .tree-branch-children {
    margin: 0 0 0 23px;
    padding: 0;
    position: relative;
    display: none;
}

.tree .tree-branch .tree-branch-children::before {
    display: inline-block;
    content: "";
    position: absolute;
    z-index: 1;
    top: -14px;
    bottom: 16px;
    left: -14px;
    border: 1px dotted #67B2DD;
    border-width: 0 0 0 1px;
}

.tree .tree-branch:last-child::after {
    display: inline-block;
    content: "";
    position: absolute;
    z-index: 1;
    top: 15px;
    bottom: 0;
    left: -14px;
    border-left: 1px solid #FFF;
}

.tree .sbs-tree-item-active:not(.inactive), .tree .sbs-tree-item-active:not(.inactive):hover {
    background-color: #dff5ff !important;
}

.tree .inactive .tree-branch-name {
    cursor: default !important;
}
