/* Eccount size tokens — single source for Blazor. Mirror of docs/ai/UI_CONTRACT.md section 4 and
   src/Eccount.Maui/Resources/Styles/SizeTokens.xaml. Change all three together.
   Size classes: Compact < 600, Medium 600-1023, Expanded >= 1024. "Short" = height < 720.
   Reference POS machine: 1366x768 @100% = Expanded + Short. Values are derived, not yet measured on a device. */

:root {
    /* Default = Expanded */
    --ecc-font-family: 'Sarabun', sans-serif;
    --ecc-fs-body: 13px;
    --ecc-fs-caption: 12px;
    --ecc-fs-title: 16px;
    --ecc-fs-money: 32px;
    --ecc-filter-h: 36px;
    --ecc-row-h: 36px;
    --ecc-touch-min: 32px;
    --ecc-topbar-h: 40px;
    --ecc-actionbar-h: 56px;
    --ecc-statusbar-h: 24px;
    --ecc-side-panel-w: 380px;
    --ecc-gap: 8px;
    --ecc-pad: 12px;
}

/* Medium: tablet */
@media (max-width: 1023.98px) {
    :root {
        --ecc-fs-body: 13px;
        --ecc-fs-title: 18px;
        --ecc-fs-money: 28px;
        --ecc-filter-h: 40px;
        --ecc-row-h: 44px;
        --ecc-touch-min: 44px;
        --ecc-topbar-h: 56px;
        --ecc-actionbar-h: 64px;
    }
}

/* Compact: phone */
@media (max-width: 599.98px) {
    :root {
        --ecc-fs-body: 14px;
        --ecc-fs-money: 28px;
        --ecc-filter-h: 44px;
        --ecc-row-h: 48px;
        --ecc-side-panel-w: 100%;
    }
}

/* Short height (e.g. 1366x768): keep Expanded sizes, shrink only the money emphasis */
@media (min-width: 1024px) and (max-height: 719.98px) {
    :root {
        --ecc-fs-money: 28px;
    }
}

/* Touch devices on Expanded get touch-sized controls */
@media (min-width: 1024px) and (pointer: coarse) {
    :root {
        --ecc-touch-min: 44px;
        --ecc-row-h: 44px;
    }
}
