//
// Tree - used for tree control
// --------------------------------------------------

ul.sftree,
ul.sftree ul {
  padding: 0;
  margin-bottom: @spacing-lg-px;
  list-style-type: none;
}

ul.sftree ul {
  margin: 0 0 0 @spacing-md-px;
}

.sftree {
  .sftree-item {
    white-space: nowrap;
    &.is-inactive {
      color: lighten(@text-color, 20%);
      opacity: 1;
    }

    &:not(.is-inactive) {
      color: @text-color;
    }

    & > i {
      padding: 4px;
      cursor: pointer;
    }
  }

  li {
    margin: 0;
  }

  span,
  a {
    display: inline-block;
    margin: 1px;
  }

  .sftree-name:hover,
  span:hover,
  span:hover a {
    color: @tree-rollover-color;
    background: @tree-rollover-bg;
  }

  .selected,
  .selected a {
    color: @tree-selected-color;
    background: @tree-selected-bg;
  }

  .sftree-name {
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 3px;
  }

  .sftree-loading {
    margin-left: 10px;
    font-size: 12px;
    color: @text-color !important;

    i {
      margin-right: 5px;
    }
  }

  .sftree-leaf {
    padding-left: 18px;
  }
}

// treeview wrapper
.treeview {
  margin-bottom: @spacing-md-px;
  .treeview-frame {
    padding-left: 0;
  }

  .treeview-actions {
    margin-bottom: @spacing-sm-px;

    .btn {
      margin-bottom: 4px;
    }
  }
}
