@import "../variables/dimensions";
@import "../variables/colors";

.rc-column-tree-view {
  width: 100%;
  min-height: 100%;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;

  padding: $column-tree-view-column-vertical-space 0;

  overflow-x: auto;
}

.rc-column-tree-view-fixed-height .rc-column-tree-view-col-content {
  position: absolute;

  top: $column-tree-view-column-vertical-space;
  right: 0;
  bottom: $column-tree-view-column-vertical-space;
  left: 0;

  overflow: auto;
}

.rc-column-tree-view-content {
  flex-grow: 1;

  min-width: (100% / 12) * 4;

  overflow-y: auto;
}

.rc-column-tree-view-col {
  position: relative;

  flex-shrink: 0;

  width: (100% / 12) * 2;

  padding: $column-tree-view-column-vertical-space 0;

  border-right: 1px solid $column-tree-view-border;

  overflow-y: auto;
}

.rc-column-tree-view-item {
  display: flex;

  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: auto;

  padding: $column-tree-view-column-vertical-space;

  color: $column-tree-view-text;

  text-align: left;

  background-color: transparent;

  border: none;

  outline: none;
}

.rc-column-tree-view-item:hover {
  color: $column-tree-view-text-highlight;
  background-color: $column-tree-view-background-selected;
}

.rc-column-tree-view-item:active {
  color: $column-tree-view-text-highlight;
  background-color: $column-tree-view-background-highlight;
}

.rc-column-tree-view-item-selected,
.rc-column-tree-view-item-selected:hover {
  color: $column-tree-view-text-highlight;
  background-color: $column-tree-view-background-selected;
}

.rc-column-tree-view-item-selected-active,
.rc-column-tree-view-item-selected-active:hover {
  color: $column-tree-view-text-highlight;
  background-color: $column-tree-view-background-active;
}

.rc-column-tree-view-item-name {
  overflow: hidden;
  text-overflow: ellipsis;

  white-space: nowrap;
}