@import "../settings/variables";
@import "../tools/icons";

.table-cell-input,
.table-cell-textarea {
  border: $table-cell-input-border;
  border-radius: $input-textarea-border-radius;
  color: $table-cell-input-color;
  width: 100%;
  padding: $table-cell-input-padding;
  transition: $table-cell-input-transition-settings;

  &::placeholder {
    color: $table-cell-input-placeholder-color;
  }

  &::-ms-clear {
    display: none;
  }

  &:focus {
    border: $table-cell-input-focus-border;
    background-color: $table-cell-input-focus-background-color;
    box-shadow: $input-focus-box-shadow;
    outline: none;
  }

  &:hover {
    background-color: $table-cell-input-hover-background-color;
  }

  &--error {
    border: $table-cell-input-error-border;
    background-color: $table-cell-input-error-background-color;
  }
}

.table-cell-textarea {
  height: 32px;
  width: 100%;
  display: block;
}

.table-cell-text {
  margin: spacing(lg);
  display: flex;
  line-height: 16px;
  color: $table-cell-text-color;

  &--percent {
    justify-content: flex-end;
  }

  &--currency {
    justify-content: flex-end;
  }
}

.table-cell-icon {
  color: $table-cell-icon-color;
}
