/* English layout overrides only. Arabic styles, colors and business values are unchanged. */
@media screen {
 html[lang="en"] body.zace-desktop :is(#mainNav,#desktopToolbar,#screenTabs.screen-tabs,.vx-dropdown,.vx-submenu,.vx-toolbar,.modal-content,.page-head,.report-controls,.report-filter){direction:ltr!important}
 html[lang="en"] body.zace-desktop :is(#mainNav summary,#mainNav button,.vx-dropdown button,.vx-submenu summary,.form-grid label,.modal-content label){text-align:start}
 html[lang="en"] body.zace-desktop .nav-dropdown{right:auto;left:0}
 html[lang="en"] body.zace-desktop .window-tools{right:auto;left:7px}
 html[lang="en"] body.zace-desktop .content.desktop-report{padding-right:8px;padding-left:135px}
 html[lang="en"] body.zace-desktop :is(#screenTabs,.vx-toolbar,#desktopToolbar){unicode-bidi:isolate}
}
@media screen and (max-width:999px){
 html[lang="en"] body.zace-desktop .nav-dropdown{padding-right:0;padding-left:10px}
 html[lang="en"] body.zace-desktop .content.desktop-report{padding-left:8px}
}
@media screen {
 html[lang="en"] body.zace-desktop .zace-language-control{width:100px!important;min-width:100px!important;max-width:100px!important;flex:0 0 100px!important}
 html[lang="en"] body.zace-desktop .zace-language-control select{width:100px!important;min-width:100px!important;max-width:100px!important;box-sizing:border-box!important}
}
@media screen {
 html[lang="en"] body.zace-desktop :is(.cd-sidebar,.rd-sidebar,.vp-sidebar) :is(button,label,small){white-space:normal!important;overflow-wrap:anywhere}
 html[lang="en"] body.zace-desktop :is(.cd-sidebar,.rd-sidebar,.vp-sidebar) select{max-width:100%;min-width:0;box-sizing:border-box}
 html[lang="en"] body.zace-desktop .cd-sidebar [class*="search"]{min-width:0}
}
@layer modernApproved {
 @media screen {
  html[lang="en"] body.zace-modern .topbar .zace-language-control select{width:100px!important;min-width:100px!important;max-width:100px!important}
 }
}
/* The new language selector must fit in both languages; existing Arabic controls are untouched. */
@layer modernApproved {
 @media screen {
  html[lang="ar"] body.zace-modern .topbar .zace-language-control select{width:100px!important;min-width:100px!important;max-width:100px!important}
 }
}
@media screen {
 html[lang="en"] body.zace-desktop #content .cd-reference-pickers{grid-template-columns:minmax(0,1fr)!important}
 html[lang="en"] body.zace-desktop :is(.cd-main,.cd-sidebar){direction:ltr}
}
@media screen {
 html[lang="en"] body.zace-desktop .cd-sidebar kbd{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;min-width:24px}
}

/* Explicit RTL grids follow the selected interface language; column/value order is unchanged. */
@media screen {
 html[lang="en"] body.zace-desktop :is(.ve-grid,.ce-grid,.mc-sales,.vertex-help-reader){direction:ltr!important;text-align:start}
 html[lang="en"] body.zace-desktop :is(.ve-grid,.ce-grid,.mc-sales,.vertex-help-reader) table[dir="rtl"]{direction:ltr!important}
}

@media screen {
 html[lang="en"] body.zace-desktop :is(#voucherForm,#chequeForm) .ve-cash-box{height:auto!important;min-height:70px!important}
 html[lang="en"] body.zace-desktop :is(#voucherForm,#chequeForm) .ve-cash-box>div{direction:ltr!important;height:auto!important;min-height:30px!important;align-items:center!important}
 html[lang="en"] body.zace-desktop :is(#voucherForm,#chequeForm) .ve-cash-box label{width:85px!important;min-width:85px!important;white-space:normal!important;line-height:14px!important;text-align:start!important}
}

@media screen { html[lang="en"] .fuel-monitoring[dir="rtl"]{direction:ltr!important;text-align:start} }
