/* ============================================================================
   CraftGrid One — Global Typography Standard
   Typeface: Segoe UI (native system font)
   Weight:   Regular / 400 throughout the application

   This file is loaded last by the shared layout so the rule is consistent across
   ERP, CRM, Inventory, Procurement, Finance, Administration and Distributor UI.
   It changes typography only; it does not alter spacing, colour, sizing, layout,
   workflows or business logic.
   ============================================================================ */

:root {
    --cg-font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    --cg-font-normal: 400;
    --cg-font-medium: 400;
    --cg-font-semibold: 400;
    --cg-font-bold: 400;

    --erp-font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    --erp-font-normal: 400;
    --erp-font-medium: 400;
    --erp-font-semibold: 400;
    --erp-font-bold: 400;

    --button-font-weight: 400;
    --bs-font-sans-serif: var(--cg-font-family);
    --bs-body-font-family: var(--cg-font-family);
    --bs-body-font-weight: 400;
    --bs-headings-font-weight: 400;
    --bs-btn-font-weight: 400;
    --bs-nav-link-font-weight: 400;
}

html,
body {
    font-family: var(--cg-font-family) !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/*
 * Apply the normal typeface/weight to all visible text, including semantic
 * strong/b elements and Bootstrap fw-bold/fw-semibold utilities. Bootstrap
 * Icons and code samples retain their dedicated font families.
 */
html body :not(.bi):not([class*="bi-"]):not(.fa):not([class*="fa-"]):not(code):not(pre):not(kbd):not(samp):not(.font-monospace) {
    font-family: var(--cg-font-family) !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

html body :not(.bi):not([class*="bi-"]):not(.fa):not([class*="fa-"])::before,
html body :not(.bi):not([class*="bi-"]):not(.fa):not([class*="fa-"])::after {
    font-weight: 400 !important;
    font-style: normal !important;
}

html body input::placeholder,
html body textarea::placeholder {
    font-family: var(--cg-font-family) !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* Prevent browser controls from retaining native bold defaults. */
html body button,
html body input,
html body select,
html body textarea,
html body optgroup,
html body option {
    font-family: var(--cg-font-family) !important;
    font-weight: 400 !important;
    font-style: normal !important;
}
