@import "../../styles/common";

.root {

}

.node {
  position: relative;
  line-height: var(--swh-tree-row-height);
  border-radius: 4px;

  &:hover {
    background: var(--swh-tree-hover-bg);
  }
}

.node_selected {
  background: var(--swh-tree-selected-bg);

  &:hover {
    background: var(--swh-tree-selected-bg);

    .edit {
      display: block;
    }
  }
}

.node_drop_in {
  div[data-role="tree-node-body"] {
    background: var(--swh-primary-color);
    color: var(--swh-font-color-reverse);
    border-radius: var(--swh-border-radius);
  }
}

.arrow {
  font-size: 16px;
}

.for_drag {
  border: 1px solid var(--swh-border-color-1);
  background: var(--swh-tree-node-drag-bg);
  padding: 4px 8px;
  display: flex;
  align-items: center;

  span.icon {
    margin-right: 8px;
  }
}

.items_count {
  background: var(--swh-tree-selected-bg);
  margin-left: 0.5em;
  padding: 2px 0.5em;
  border-radius: var(--swh-border-radius);
  font-size: 12px;
}
