@font-face{font-family:"Cairo";src:url("../fonts/Cairo-Variable.ttf") format("truetype");font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:"Fleet Arabic";src:url("../fonts/NotoNaskhArabic-Regular.ttf") format("truetype");font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
/* Shared account language UI and Arabic layout overrides. */
.account-language-selector{display:inline-flex;gap:3px;align-items:center;padding:3px;border:1px solid #94a3b8;border-radius:10px;flex-shrink:0;max-width:100%}
.account-language-selector button{font-family:Tahoma,Arial,sans-serif;font-size:12px;line-height:1.5;padding:5px 9px;border:0;border-radius:7px;background:transparent;color:inherit;cursor:pointer;white-space:nowrap}
/* The Arabic language name uses Cairo even on English pages. */
.account-language-selector button[lang="ar"]{font-family:"Cairo",Tahoma,Arial,sans-serif}
.account-language-selector button[aria-pressed="true"]{background:#2563eb;color:white}
.account-language-selector button:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}
body>.account-language-selector{position:absolute;inset-block-start:12px;inset-inline-end:12px;z-index:2}
html[lang="ar"] body,html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea,html[lang="ar"] button{font-family:"Cairo",Tahoma,Arial,sans-serif}
html[lang="ar"] :where(h1,h2,h3,h4,h5,h6,p,label,button,small){letter-spacing:normal;line-height:1.6}
html[dir="rtl"] :where(th,td,.field,.form-group,.navbtn,.accordion-head,.title,.panel-head,.modal-head,.drawer-head){text-align:start}
html[dir="rtl"] :where(.top-left,.top-actions,.brand,.panel-head,.modal-head,.form-actions){min-width:0}
html[dir="rtl"] .side{border-right:0;border-left:1px solid var(--line,#334155)}
html[dir="rtl"] .side-close{margin-left:0;margin-right:auto}
html[dir="rtl"] .accordion.nested{margin-left:0;margin-right:10px}
html[dir="rtl"] .accordion-head .chev{transform:scaleX(-1)}
html[dir="rtl"] .accordion.open>.accordion-head .chev{transform:rotate(90deg)}
html[dir="rtl"] .crumb>.fa-chevron-right{transform:scaleX(-1)}
html[dir="rtl"] :where(.dummy-chip,.navbtn.placeholder::after){margin-left:0;margin-right:auto}
html[dir="rtl"] :where(.list-tight,.value-list ul){padding-left:0;padding-right:18px}
html[dir="rtl"] :where(.workflow-node,.flow-step):not(:last-child)::after{right:auto;left:-17px;transform:scaleX(-1)}
html[dir="rtl"] :where(.field.locked label)::after{content:" مقفل";margin-left:0;margin-right:7px}
html[dir="rtl"] .navbtn.placeholder::after{content:"تجريبي"}
html[dir="rtl"] :where(.dropdown-menu,.lang-dropdown){left:0;right:auto}
html[dir="rtl"] :where(input[type="email"],input[type="url"],input[type="tel"],input[type="number"],.codebox,.code-mini,code,.ltr-value,[data-identifier]){direction:ltr;unicode-bidi:isolate;text-align:start}
html[dir="rtl"] :where(textarea,input[type="text"]){unicode-bidi:plaintext}
html[dir="rtl"] :where(.modal-card,.drawer,.panel,.card){overflow-wrap:break-word}
html[dir="rtl"] :where(.top,.top-actions,.filter-row,.form-actions){flex-wrap:wrap}
html[dir="rtl"] .top-left{flex:1}
html[dir="rtl"] .title{min-width:0}
html[dir="rtl"] :where(.title h2,.title p){white-space:normal}
@media(max-width:640px){.account-language-selector button{padding:4px 6px}.top-actions{gap:6px!important}html[dir="rtl"] .quick-find{min-width:0!important;width:100%}}
@media print{.account-language-selector{display:none!important}}
@media(max-width:1180px){
  html[dir="rtl"] #appRoot>.side{left:auto!important;right:0!important;transform:translateX(104%)!important;box-shadow:-18px 0 42px rgba(31,49,75,.16)!important}
  html[dir="rtl"] #appRoot.sidebar-open>.side{transform:translateX(0)!important}
  html[dir="rtl"] #appRoot.sidebar-closed>.side{transform:translateX(104%)!important}
}
@media(max-width:640px){
  html[dir="rtl"] .top-left{flex:1 1 100%;width:100%}
  html[dir="rtl"] .top-actions{flex:1 1 100%;justify-content:flex-start}
}
/* Labels generated by CSS must also follow the account language. */
html[lang="ar"] .field.locked label::after{content:" مقفل";margin-inline-start:7px;margin-inline-end:0}
html[lang="ar"] .facility-column-choice.locked>span::after{content:"ثابت";margin-inline-start:6px;margin-inline-end:0}
html[lang="ar"] .policy-embedded .pf-body::before{content:"تفاصيل وثيقة التأمين وشروط التغطية."}
html[lang="ar"] .svc109-selected td:nth-child(3)::before{content:"قراءة العداد الحالية"}

/* Arabic typography, including embedded workspace screens and shared tables. */
html[lang="ar"]{--font-sans:"Cairo",Tahoma,Arial,sans-serif}
html[lang="ar"] #appRoot .screen{font-family:"Cairo",Tahoma,Arial,sans-serif}
