/*
 * PinInput, NumberInput and PasswordInput: Ark roots that only carry context, around a control row (number, password)
 * or a run of control-sized cells (pin); the rows reuse Input's `.dx-input-row` (ring, adornments, disabled).
 */

@layer dx-components {
  .dx-control-root {
    display: contents;
  }
  :is(.dx-field, .dx-container[data-layout='stack']) > .dx-control-root > :is(.dx-control, .dx-pin-input) {
    margin-block: var(--dx-control-inset);
  }

  /* Cells are control-sized squares a gap apart, so a code reads at the same scale as any control of its size. */
  .dx-pin-input {
    display: flex;
    align-items: center;
    gap: var(--dx-gap-size);
    height: var(--dx-control-size);
  }
  .dx-pin-input-cell {
    width: var(--dx-control-size);
    padding-inline: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  /* Tabular figures, like PinInput's cells and DateInput's segments, so the digits keep their width as the value steps. */
  .dx-number-input > .dx-input-field {
    font-variant-numeric: tabular-nums;
  }
  .dx-pin-input-cell:disabled {
    opacity: 0.5;
  }
}
