/* Typed dates/times share the ordinary field style; the picker button sits inside
   the field's border, and the native input stays underneath for the picker. */
@layer components {
  .date-time-control {
    position: relative;
    display: flex;
    min-width: 0;

    > .ui-input {
      flex: 1 1 auto;
      min-width: 0;
      padding-right: var(--ui-action-size);
    }

    > .ui-button {
      position: absolute;
      top: 1px;
      right: 1px;
      width: calc(var(--ui-action-size) - 2px);
      height: calc(100% - 2px);
    }

    > .date-time-native {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      pointer-events: none;
    }
  }
}
