﻿/* =====================================================
   INVENTORY MANAGEMENT - TYPOGRAPHY SYSTEM
   Fixed rem scale for Operate mode; balanced headings,
   crisp Vietnamese glyph rendering, tabular data support.
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    /* FONT FAMILY — Be Vietnam Pro for crisp Vietnamese diacritics with native OS fallbacks */
    --font-family-base: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-family-heading: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
    --bs-font-sans-serif: var(--font-family-base);
    --bs-body-font-family: var(--font-family-base);

    /* FONT SCALE (tight Operate ratio ~1.125-1.2) */
    --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.375rem;   /* 22px */
    --font-size-3xl: 1.75rem;    /* 28px */

    /* 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-xs);
    --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: 400;
    --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.28;
    --line-height-normal: 1.55;
    --line-height-relaxed: 1.7;

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

    /* LEGACY ALIAS */
    --font-family: var(--font-family-base);
}

html {
    font-family: var(--font-family-base);
    font-size: 16px;
    -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.008em;
}

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.02em;
    text-wrap: balance;
}

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

/* Consistent family 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);
}
