@use 'src/styles/abstracts' as *;

.ColumnItem {
  border: $border-main;
  margin-bottom: $space-xxxs;
  border-radius: $space-xxxs;
  padding: $space-xxxs $space-xs;
  background-color: $cuddle-10;
  display: flex;
  width: 100%;
  cursor: default;

  &__iconPlaceholder {
    width: 12px;
    margin-right: 0.785rem;
  }

  &.highlighted {
    background-color: $cuddle-50;
  }

  &:hover {
    background-color: $cuddle-30;
  }

  &.dragging {
    background-color: $primary-color-10;
    border: 1px solid $primary-color-50;
  }

  div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    width: calc(100% - 26px);
  }

  &__toggle {
    margin-right: 0.785rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    color: $primary-color;
    &.isHidden {
      color: $pico-80;
    }
    &.disabled {
      pointer-events: none;
      color: $pico-20;
    }
  }

  &__name {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    @include monospaceFontFamily(14);
  }

  &__iconDrag {
    display: flex;
    margin-left: $space-xs;
    i {
      font-size: 0.625rem;
    }
  }
}
