/* =============================================================================
   OrganicSystem — UI chrome direction policy (Wave 0)
   Canonical: captions-only localization. Layout is always LTR.
   Matches AppCultures.IsRtl (always false) and os-i18n.js (dir forced to ltr).
   Field-level dir="rtl" on Arabic data inputs is unaffected.
   ============================================================================= */

html {
  direction: ltr !important;
}

html[dir="rtl"],
html[dir="ltr"],
body.os-rtl {
  direction: ltr !important;
}

/* Arabic / RTL script content islands (data fields only) */
[dir="rtl"]:not(html):not(body) {
  direction: rtl;
  unicode-bidi: isolate;
}

/* Numeric / date fields stay LTR even inside Arabic islands */
[dir="rtl"] input[type="number"],
[dir="rtl"] input[type="date"],
[dir="rtl"] input[type="time"],
[dir="rtl"] input[type="datetime-local"],
[dir="rtl"] .os-ltr-field {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
