@font-face{font-family:Vazirmatn;src:url("fonts/Vazirmatn-variable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
.language-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:8px 4%;background:#f4f8fa;border-bottom:1px solid #d8e3e9;font:13px/1.7 system-ui,sans-serif;direction:ltr}
.language-bar label{display:flex;align-items:center;gap:8px;margin:0}.language-bar select{width:auto;min-height:36px;padding:4px 10px;font-size:14px}.language-pilot{direction:rtl;color:#526b78}
html[lang=fa] body{font-family:Vazirmatn,Tahoma,Arial,sans-serif;line-height:1.85}html[lang=fa] h1,html[lang=fa] h2,html[lang=fa] h3{letter-spacing:0;line-height:1.6}
html[dir=rtl] th,html[dir=rtl] td{text-align:right}html[dir=rtl] input[type=number],html[dir=rtl] input[type=date],html[dir=rtl] input[type=password],html[dir=rtl] input[type=email],html[dir=rtl] input[inputmode=decimal],html[dir=rtl] input[name=username]{direction:ltr;text-align:left}
html[dir=rtl] .amount,html[dir=rtl] .invoice-total{unicode-bidi:plaintext}html[dir=rtl] .workspace aside{border-right:0;border-left:1px solid #d8e3e9}html[dir=rtl] .eyebrow{letter-spacing:0}
/* Exported invoices keep their original language and layout in the Persian UI pilot. */
#printArea,.proforma,.statement-page,.report-export-stage,.pdf-stage{direction:ltr}html[dir=rtl] #printArea td,html[dir=rtl] #printArea th,html[dir=rtl] .proforma td,html[dir=rtl] .proforma th,html[dir=rtl] .statement-page td,html[dir=rtl] .statement-page th,html[dir=rtl] .report-export-stage td,html[dir=rtl] .report-export-stage th{text-align:left}
@media(max-width:640px){.language-bar{padding:8px 14px}.language-pilot{font-size:11px}html[dir=rtl] .workspace aside{border-left:0}}
@media print{.language-bar{display:none!important}}

.saved-text-toggle{display:block;font-size:11px;padding:2px 7px;margin-top:5px;min-height:26px}.saved-text-original{display:block;margin-top:6px;padding:7px;background:#f3f6f8;color:#415966;white-space:pre-wrap}.product-weight-fields input[type=hidden]{display:none}.unit-weight-info{grid-column:1/-1}

.saved-field-translation{display:block;white-space:pre-wrap;color:#24566a;padding:.6rem;background:#eef6f8;border-radius:6px;margin-top:.3rem}

html[lang=fa] .language-bar{font-family:Vazirmatn,Tahoma,sans-serif}html[lang=fa] button,html[lang=fa] input,html[lang=fa] select,html[lang=fa] textarea{font-family:inherit}html[lang=fa] h1,html[lang=fa] h2,html[lang=fa] h3{font-weight:700}.saved-field-translation,#savedTranslationRows textarea{font-family:Vazirmatn,Tahoma,sans-serif}

html[lang=zh-CN] body,html[lang=zh-CN] .language-bar{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;line-height:1.75}html[lang=zh-CN] h1,html[lang=zh-CN] h2,html[lang=zh-CN] h3,html[lang=zh-CN] .eyebrow{letter-spacing:0}html[lang=zh-CN] h1,html[lang=zh-CN] h2,html[lang=zh-CN] h3{line-height:1.5}html[lang=zh-CN] .saved-field-translation{font-family:inherit}

.persian-date-hint{display:block;line-height:1.8;font-weight:400;color:#526b78;margin-top:5px}html[lang=fa] .persian-date-hint{font-family:Vazirmatn,Tahoma,sans-serif}
