.caption-wrapper {
  flex: 1;
}

.field-caption,
.field-key {
  flex: 1;
  text-overflow: ellipsis;
  border: none;
  outline: none;

  *:focus {
    outline: none;
  }
}

.field-key {
  &::-webkit-outer-spin-button,
  &::-webkit-inner-spin-button {
    appearance: none;
  }
}

.choice-new.children {
  margin-left: 25px;
}

.choice {
  margin-bottom: 16px;
}

.choices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;

  .choice-item {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 5px;

    border: 1px solid var(--color-gray-eee);
    border-radius: 5px;
    box-shadow: 0 1px 1px rgb(0 0 0 / 10%);

    .close-choice {
      cursor: pointer;
      position: relative;
      top: 3px;
    }

    .drag-icon {
      position: relative;
      top: 0;
      left: 1px;
    }

    .value {
      display: flex;
      flex: 1;
      gap: 5px;
      align-items: center;
    }

    .action-disable {
      cursor: pointer;
      width: 80px;

      &:hover {
        text-decoration: underline;
      }
    }

    .disabled {
      pointer-events: none;
    }
  }
}

.control {
  display: flex;
  flex-direction: column;
}

.alert div {
  color: #820000;
}

.filter-field {
  display: flex;
  flex-direction: row;
  align-items: baseline;

  label {
    min-width: fit-content;
    margin-right: 10px;
  }
}

:host ::ng-deep .custom-label .mat-form-field-infix {
  border-top: 0;
}

.choice-control {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.choice-input {
  width: 300px;
  height: 36px;
  margin-right: 8px;
  padding: 3px 6px;

  border: 2px solid var(--color-gray-eee);
  border-radius: 2px;
  outline: none;
}
