/* Keep canonical Arabic textContent for existing column IDs, navigation and copy logic. */
.raseed-ui-translated>.raseed-ui-source{display:none!important}
.raseed-ui-translated::after{content:attr(data-display-text);white-space:inherit}
html[data-display-language="en"] body,html[data-display-language="tr"] body{direction:ltr}
html[data-display-language="ur"] body{direction:rtl;font-family:Arial,"Segoe UI",Tahoma,sans-serif}
html:is([data-display-language="en"],[data-display-language="tr"]) :is(main,form,dialog,.panel,.grid,.actions,.report-menus,.crystal-font-choice,.invoice-more-options){direction:ltr}
html:is([data-display-language="en"],[data-display-language="tr"]) :is(label,th,.invoice-more-options button){text-align:start}
.display-language-selector{min-width:110px;max-width:100%;font-family:Arial,"Segoe UI",sans-serif}
.display-language-status{display:block;max-width:280px;white-space:normal;font-size:12px;margin-top:4px}
@media print{.raseed-ui-translated>.raseed-ui-source{display:inline!important}.raseed-ui-translated::after{content:none}html[data-display-language] body{direction:rtl}}

/* Screen-only table order follows display language, overriding legacy RTL scroll wrappers. */
@media screen {
html:is([data-display-language="en"],[data-display-language="tr"]) body :is(.scroll,.line-table-wrap,.invoice-columns-scroll,table,thead,tbody,tfoot,tr){direction:ltr!important}
html:is([data-display-language="en"],[data-display-language="tr"]) body table th{text-align:left!important}
}
