.umb-tree-item {
    display: block;
    min-width: 100%;
    width: auto;
    margin-top:1px;

    &:hover .umb-tree-item__arrow {
        visibility: visible;
        cursor: pointer
    }
}

.umb-tree-item__label {
    user-select: none;
}

.umb-tree-item__arrow {
    position: relative;
    margin-left: -16px;
    margin-right: 4px;
    width: 12px;
    height: 12px;
    visibility: hidden;
    text-decoration: none;
    font-size: 12px;
    line-height: 12px;
    transition: color 120ms;

    &:hover {
        color: @ui-option-type-hover;
    }
}

.umb-tree-item > .umb-tree-item__inner {

    &:hover .umb-tree-item__label {
        overflow: hidden;
        margin-right: 6px;
    }

    // Loading Animation
    // ------------------------
    .umb-tree-item__loader {
        width: 100%;
        position: absolute;
        margin: 0;
    }

    .umb-tree-item__label {
        padding: 7px 0 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
    }
}

// active is equivilant to selected, its the item that is begin affected by the actions performed in the right-click-dialog.
.umb-tree-item.active > .umb-tree-item__inner {
    border-color: @ui-selected-border;
    box-shadow: 0 0 2px 0 fade(@ui-selected-border, 80%);
    color: @ui-selected-type;

    a {
        color: @ui-selected-type;
    }

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid fade(@white, 80%);
    }

    &:hover {
        color: @ui-selected-type-hover;

        a {
            color: @ui-selected-type-hover;
        }
    }
}

.umb-tree-item.current > .umb-tree-item__inner {
    background: @ui-active;
    color:@ui-active-type;

    // override small icon color. TODO => check usage
    &:before {
        color: @blue;
    }

    a,
    .umb-tree-icon,
    .umb-tree-item__arrow {
        color: @ui-active-type !important;
    }
}

.umb-tree-item.current-not-active > .umb-tree-item__inner {
    background: @ui-active-blur;
    color:@ui-active-type;
}
