/* Only ASCII digits use Arial; Chinese, letters and punctuation retain the ERP text font. */
@font-face {
  font-family: "ERP Arial Digits";
  src: local("Arial"), local("ArialMT");
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "tnum" 1, "kern" 0;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "ERP Arial Digits";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-style: normal;
  font-weight: 700;
  font-feature-settings: "tnum" 1, "kern" 0;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "ERP Arial Digits";
  src: local("Arial Italic"), local("Arial-ItalicMT");
  font-style: italic;
  font-weight: 400;
  font-feature-settings: "tnum" 1, "kern" 0;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "ERP Arial Digits";
  src: local("Arial Bold Italic"), local("Arial-BoldItalicMT");
  font-style: italic;
  font-weight: 700;
  font-feature-settings: "tnum" 1, "kern" 0;
  unicode-range: U+0030-0039;
}

/* Layered !important outranks the legacy component font rules, including dynamically rendered fields. */
@layer erp-numeric-typography {
  html body,
  html body *,
  html body *::before,
  html body *::after {
    font-family: "ERP Arial Digits", "Microsoft YaHei", "PingFang SC", 微软雅黑, Arial, sans-serif !important;
    font-variant-numeric: tabular-nums lining-nums !important;
  }
}
