/* ==========================================================================
   Fluent UI inputs on the AAB field shape (Panel overhaul, 2026-09).
   Fluent's web components draw in Shadow DOM, so page CSS cannot reach their
   insides; they read FAST design tokens instead. FluentDesignTheme writes the
   tokens (and the accent, see FluentAccent.cs) higher up the tree; declaring
   them on the elements themselves wins for those elements. Values are the
   unitless numbers FAST multiplies into px.
   ========================================================================== */

fluent-text-field,
fluent-text-area,
fluent-number-field,
fluent-select,
fluent-combobox,
fluent-autocomplete,
fluent-search,
fluent-date-picker,
fluent-button,
fluent-checkbox,
fluent-radio,
fluent-switch {
    --control-corner-radius: 12;
    --body-font: var(--aab-font-body);
    --type-ramp-base-font-size: var(--aab-fs-body);
    --type-ramp-base-line-height: 1.4;
}

/* Field height: 9 x 4px = 36px with a mouse, 12 x 4px = 48px on a touch screen (the kit's
   --aab-target). */
fluent-text-field,
fluent-text-area,
fluent-number-field,
fluent-select,
fluent-combobox,
fluent-autocomplete,
fluent-search,
fluent-date-picker {
    --base-height-multiplier: 9;
}

@media (pointer: coarse) {
    fluent-text-field,
    fluent-number-field,
    fluent-select,
    fluent-combobox,
    fluent-autocomplete,
    fluent-search,
    fluent-date-picker {
        --base-height-multiplier: 12;
    }
}

/* Native date and time inputs next to Fluent fields: same shape. */
.pnl-content input[type="date"],
.pnl-content input[type="time"],
.pnl-content input[type="datetime-local"] {
    min-height: var(--aab-target);
    padding: 0 var(--aab-space-3);
    border: 1px solid var(--aab-line-strong);
    border-radius: var(--aab-radius-sm);
    background: var(--aab-surface);
    color: var(--aab-text);
    font-family: var(--aab-font-body);
    font-size: var(--aab-fs-body);
}
