@import "variables";

:host {
  display: block;
  padding: 0 10px 0 24px;
  margin: 0;
  overflow: scroll;
}

.gray {
  color: gray;
}

.item-key {
  font-size: 14px;
}

.list-item-key {
  font-size: 12px;
}

.al-ico-hide {
  opacity: 0;
}

mat-tree-node {
  cursor: pointer;

  &.parent {
    margin-right: 4px;
  }
}

mat-tree-node:hover .al-ico-hide {
  opacity: 0.4;
}

.unchecked {
  opacity: 0.4;
}

.toggle-icon {
  transition: transform 0.1s ease-in, color 0.1s ease-in;
}

.expanded {
  span {
    color: $purple;
  }

  .toggle-icon {
    transform: rotate(90deg);
  }
}

.last-child {
  margin-bottom: 16px;
}

.child-node {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  width: 100%;
  height: 32px;
  font-size: 12px;
  border-radius: 4px;
  line-height: 32px;
  padding: 0 4px;

  &:hover {
    background-color: $blue-50;
    transition: background-color 0.2s;
  }

  span {
    flex: 1;
  }
}

.parent-node {
  display: flex;
  flex: 1;
  align-items: center;
  height: 40px;
  width: calc(100% - 24px);
  font-weight: 500;
  cursor: pointer;
}
