/*
 * RTL / Arabic-first foundation (additive; does not modify Core).
 * Day-1 baseline. Screen-specific RTL fixes are added on Day 2 and referenced
 * from hooks.app_include_css. Keep selectors defensive and scoped.
 */

/* Ensure Arabic content renders with a legible fallback stack. */
:root {
  --me-arabic-font: "Noto Naskh Arabic", "Amiri", "Tahoma", sans-serif;
}

/* When the workspace language is Arabic, Frappe sets dir="rtl" on <html>. */
html[dir="rtl"] body {
  font-family: var(--me-arabic-font);
}

/* Keep numeric/currency cells LTR inside an RTL layout (accounting clarity). */
html[dir="rtl"] .me-force-ltr,
html[dir="rtl"] [data-me-numeric] {
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}
