﻿/* =====================================================
   INVENTORY MANAGEMENT - TYPOGRAPHY SYSTEM
   Font family and all text sizing are managed here.
===================================================== */

/* Apple SF Pro native stack on macOS/iOS + Inter (closest SF Pro twin for Windows/Android with full Vietnamese support) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* FONT FAMILY */
    --font-family-base: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bs-font-sans-serif: var(--font-family-base);
    --bs-body-font-family: var(--font-family-base);

    /* FONT SCALE */
    --font-size-2xs: 0.6875rem;  /* 11px */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.8125rem;   /* 13px */
    --font-size-base: 0.875rem;  /* 14px */
    --font-size-md: 0.9375rem;   /* 15px */
    --font-size-lg: 1rem;        /* 16px */
    --font-size-xl: 1.125rem;    /* 18px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */

    /* SEMANTIC SIZES */
    --font-size-body: var(--font-size-base);
    --font-size-heading: var(--font-size-2xl);
    --font-size-subheading: var(--font-size-lg);
    --font-size-table: var(--font-size-base);
    --font-size-table-header: var(--font-size-sm);
    --font-size-form: var(--font-size-base);
    --font-size-button: var(--font-size-base);
    --font-size-caption: var(--font-size-xs);
    --font-size-navigation: var(--font-size-base);
    --font-size-brand: var(--font-size-xl);
    --font-size-sidebar-section: var(--font-size-2xs);
    --font-size-user-name: var(--font-size-sm);
    --font-size-footer: var(--font-size-xs);
    --font-size-breadcrumb: var(--font-size-sm);

    /* FONT WEIGHT */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* FONT STYLE */
    --font-style-normal: normal;
    --font-style-italic: italic;

    /* LINE HEIGHT */
    --line-height-tight: 1.3;
    --line-height-normal: 1.55;
    --line-height-relaxed: 1.75;

    /* LETTER SPACING */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.035em;

    /* LEGACY ALIAS: keep older styles working during migration */
    --font-family: var(--font-family-base);
}

html {
    font-family: var(--font-family-base);
    font-size: 16px;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-normal);
    font-style: var(--font-style-normal);
    line-height: var(--line-height-normal);
    letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.022em;
}

button, input, select, textarea {
    font-family: inherit;
}


/* Apply the selected family consistently across Bootstrap and app shell. */
body,
.app-wrapper,
.app-sidebar,
.app-navbar,
.app-content,
.app-footer,
button,
input,
select,
textarea,
.table,
.pagination {
    font-family: var(--font-family-base), "Segoe UI", Arial, sans-serif;
}
