$tree-pro-prefix-cls: $lib-name + "-tree-pro";

.#{$tree-pro-prefix-cls} {
  position: relative;
  cursor: default;
  color: #606266;

  &__empty-block {
    position: relative;
    min-height: 60px;
    text-align: center;
    width: 100%;
    height: 100%;
  }

  &__empty-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #909399;
    font-size: 14px;
  }

  &__drop-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #3790FB;
  }

  &-node {
    white-space: nowrap;
    outline: none;

    &__content{
      padding: 5px 0;
    }

    &__title {
      display: inline-block;
      vertical-align: middle;
      padding: 0 3px;
      cursor: pointer;
    }
  }

  &-context-menu {
    position: absolute;
  }
}

.#{$tree-pro-prefix-cls}-node:focus > .#{$tree-pro-prefix-cls}-node__content >.#{$tree-pro-prefix-cls}-node__title {
  background-color: #cde3fe;
}

.#{$tree-pro-prefix-cls}-node.is-drop-inner > .#{$tree-pro-prefix-cls}-node__content .#{$tree-pro-prefix-cls}-node__label {
  background-color: #3790FB;
  color: #fff;
}

.#{$tree-pro-prefix-cls}-node__content > .#{$tree-pro-prefix-cls}-node__expand-icon {
  padding: 0 5px;
}

.#{$tree-pro-prefix-cls}-node__content > label.#{$lib-name}-checkbox-wrapper {
  margin-right: 8px;
}

.#{$tree-pro-prefix-cls}-node__title:hover {
  background-color: #cde3fe;
}

.#{$tree-pro-prefix-cls}.is-dragging .#{$tree-pro-prefix-cls}-node__content {
  cursor: move;
}

.#{$tree-pro-prefix-cls}.is-dragging .#{$tree-pro-prefix-cls}-node__content * {
  pointer-events: none;
}

.#{$tree-pro-prefix-cls}.is-dragging.is-drop-not-allow .#{$tree-pro-prefix-cls}-node__content {
  cursor: not-allowed;
}

.#{$tree-pro-prefix-cls}-node__expand-icon {
  cursor: pointer;
  color: #333;
  font-size: 12px;
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

.#{$tree-pro-prefix-cls}-node__expand-icon.expanded {
  transform: rotate(90deg);
}

.#{$tree-pro-prefix-cls}-node__expand-icon.is-leaf {
  color: transparent;
  cursor: default;
}

.#{$tree-pro-prefix-cls}-node__label {
  font-size: 14px;
}

.#{$tree-pro-prefix-cls}-node__loading-icon {
  margin-right: 8px;
  font-size: 14px;
  color: #333;

  &.#{$lib-name}-icon-spinner2 {
    animation: rotating 1s linear infinite;
  }
}

.#{$tree-pro-prefix-cls}-node > .#{$tree-pro-prefix-cls}-node__children {
  background-color: transparent;
}

.#{$tree-pro-prefix-cls}-node.is-expanded > .#{$tree-pro-prefix-cls}-node__children {
  display: block;
}

.#{$tree-pro-prefix-cls}--highlight-current .#{$tree-pro-prefix-cls}-node.is-current > .#{$tree-pro-prefix-cls}-node__content >.#{$tree-pro-prefix-cls}-node__title{
  background-color: #cde3fe;
}
