/* Stage 89: global AR/EN direction support without redesigning the approved UI. */
html[dir="ltr"] body{direction:ltr!important}
html[dir="rtl"] body{direction:rtl!important}
html[dir="ltr"] input:not([dir]),
html[dir="ltr"] textarea:not([dir]),
html[dir="ltr"] select:not([dir]){direction:ltr}
html[dir="rtl"] input:not([dir]),
html[dir="rtl"] textarea:not([dir]),
html[dir="rtl"] select:not([dir]){direction:rtl}
html[dir="ltr"] .app-global-language-form,
html[dir="rtl"] .app-global-language-form{margin:0;display:block}
.app-global-language-button{font-size:10px!important;letter-spacing:.3px}
html[dir="ltr"] .app-global-company-link,
html[dir="ltr"] .app-global-title small,
html[dir="ltr"] label,
html[dir="ltr"] .field label,
html[dir="ltr"] th,
html[dir="ltr"] td{text-align:left}
html[dir="rtl"] th,
html[dir="rtl"] td{text-align:right}
html[dir="ltr"] .app-global-notification-badge{left:auto;right:-4px}
html[dir="ltr"] .customer-meta span:not(:last-child)::after,
html[dir="ltr"] .customer-submeta span:not(:last-child)::after{margin-right:0;margin-left:8px}
html[dir="ltr"] .order-list-card-foot em{margin-right:0;margin-left:auto}
html[dir="ltr"] .app-global-bottom-nav,
html[dir="ltr"] .app-global-header,
html[dir="ltr"] .orders-app-shell{direction:ltr}
/* Keep user-entered Arabic data readable even while the interface is English. */
html[dir="ltr"] [dir="rtl"]{direction:rtl!important;text-align:right!important}


/* Stage 89.1: complete LTR/RTL coverage for existing screens without redesign. */
html[dir="ltr"] body,
html[dir="ltr"] .home-stage81-content,
html[dir="ltr"] .orders-app-shell,
html[dir="ltr"] .orders-app-main,
html[dir="ltr"] .page,
html[dir="ltr"] .panel,
html[dir="ltr"] .modal,
html[dir="ltr"] .modal-card,
html[dir="ltr"] .commitments-page,
html[dir="ltr"] .financial-report-page,
html[dir="ltr"] .daily-report-page{direction:ltr!important}
html[dir="rtl"] body,
html[dir="rtl"] .home-stage81-content,
html[dir="rtl"] .orders-app-shell,
html[dir="rtl"] .orders-app-main,
html[dir="rtl"] .page,
html[dir="rtl"] .panel{direction:rtl!important}
html[dir="ltr"] h1,html[dir="ltr"] h2,html[dir="ltr"] h3,html[dir="ltr"] h4,
html[dir="ltr"] .section-heading,html[dir="ltr"] .orders-section-title,
html[dir="ltr"] .home81-section-title,html[dir="ltr"] .commitments-section-title,
html[dir="ltr"] .financial-section-title{text-align:left}
html[dir="ltr"] .app-global-header-row{direction:ltr}
html[dir="ltr"] .app-global-brand{direction:ltr;text-align:left}
html[dir="ltr"] .app-global-header-actions{direction:ltr}
html[dir="ltr"] .app-global-bottom-nav{direction:ltr}
html[dir="ltr"] table{direction:ltr}
html[dir="ltr"] select,html[dir="ltr"] input,html[dir="ltr"] textarea{text-align:left}
html[dir="ltr"] input[type="number"]{direction:ltr}
html[dir="ltr"] .orders-data-form label,
html[dir="ltr"] .compact-order-form .inline-labeled-field>label,
html[dir="ltr"] .field label{text-align:left}
html[dir="ltr"] .orders-close{left:auto;right:18px}
html[dir="ltr"] .orders-page-header h1{right:auto;left:24px}
