/* Preferences and bidirectional layout. Business values keep their original labels. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page-size{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}.page-size select{width:75px}.pagination{padding:18px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.pagination-summary{font-size:12px;color:var(--muted)}.pagination-links{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.pagination-links a,.pagination-links>span{display:inline-flex;min-width:34px;height:34px;align-items:center;justify-content:center;padding:0 10px;border:1px solid var(--line);border-radius:7px;font-size:12px;background:var(--bg);color:var(--ink)}.pagination-links a:hover{border-color:var(--purple);color:var(--purple)}.pagination-links .current{background:#6854d8;color:white;border-color:#6854d8;font-weight:700}.pagination-links .disabled{opacity:.45;cursor:default}.pagination-links .ellipsis{border:0;background:none;min-width:18px;padding:0}.pagination-links [aria-current]{direction:ltr}@media(max-width:650px){.pagination{padding:16px;gap:12px}.pagination-links{width:100%;justify-content:center}.pagination-summary{width:100%;text-align:center}.pagination-links a,.pagination-links>span{padding:0 8px;min-width:30px}}
.preferences{display:flex;align-items:center;gap:8px;flex-shrink:0}
.sidebar{overflow:hidden}.sidebar>.brand,.sidebar>.nav-label,.sidebar>.sidebar-bottom{flex-shrink:0}.sidebar>nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-width:thin;padding-bottom:8px}.sidebar>nav:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.line-table input.product-search{width:100%;min-width:260px;max-width:530px;font-size:12px}
@media(max-width:650px){.sidebar>nav{flex:auto;overflow-x:auto;padding-bottom:4px}}
.language-control{display:block!important;margin:0!important}
.language-control select,.theme-switch{height:36px;font-size:12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#626474;padding:6px 10px}
.language-control select{min-width:95px;width:auto}
.theme-switch{display:inline-flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap}
.theme-icon{font-size:18px;line-height:1}
.theme-switch:hover{border-color:var(--purple);color:var(--purple)}
.auth-form>.preferences{justify-content:flex-end;margin-bottom:34px}
html[lang="ar"] body{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .brand,html[lang="ar"] .eyebrow,html[lang="ar"] .nav-label,html[lang="ar"] .brand-sub{letter-spacing:0}
html[lang="ar"] h1{line-height:1.6}
html[lang="ar"] .auth-intro h1{line-height:1.6;font-size:44px}
html[lang="ar"] .eyebrow,html[lang="ar"] .nav-label,html[lang="ar"] .brand-sub{font-size:11px}
html[lang="ar"] th,html[lang="ar"] .badge{font-size:12px}
html[lang="ar"] .page-heading p,html[lang="ar"] .card-heading p,html[lang="ar"] .help-text{font-size:12px;line-height:1.8}
html[lang="ar"] .stat>div{font-size:12px}
html[lang="ar"] .stat small{font-size:11px;white-space:normal}
html[dir="rtl"] table{text-align:right}
html[dir="rtl"] .document-header>div:last-child{text-align:left}
html[dir="rtl"] .status-dot{margin-right:0;margin-left:6px}
html[dir="rtl"] .amber-text{margin-right:0;margin-left:5px}
html[dir="rtl"] .overview-label>span:last-child,html[dir="rtl"] .quick-link b,html[dir="rtl"] .form-footer .help-text{margin-left:0;margin-right:auto}
input[type="number"],input[type="date"],input[name="sku"],input[name="phone"],input[name="username"],input[type="password"],.mono{direction:ltr;unicode-bidi:isolate}
.product-name{unicode-bidi:plaintext}
@media screen{
 html[dir="rtl"] .sidebar{left:auto;right:0}
 html[dir="rtl"] .workspace{margin-left:0;margin-right:237px}
 html[data-theme="dark"]{color-scheme:dark;--ink:#edf0f7;--muted:#a8afc1;--line:#343a4e;--bg:#141824;--purple:#b4a7ff;--purple-dark:#d1c7ff;--green:#72d7b4;--blue:#96baff;--amber:#efbd68}
 html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .card,html[data-theme="dark"] .stat,html[data-theme="dark"] .auth{background:#1d2231}
 html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .theme-switch{background:#171c29;color:#e5e9f3;border-color:#454c63}
 html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#919bb0}
 html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{outline-color:#463c6d;border-color:#b4a7ff}
 html[data-theme="dark"] .button{background:#7761dc;border-color:#8d77ef;color:white}
 html[data-theme="dark"] .button:hover{background:#8973ed}
 html[data-theme="dark"] .button.secondary{background:#252b3e;border-color:#464e64;color:#e0daff}
 html[data-theme="dark"] .button.danger{background:#422933;border-color:#70434d;color:#ffb4bc}
 html[data-theme="dark"] nav a{color:#b9c0d1}
 html[data-theme="dark"] nav a.active,html[data-theme="dark"] nav a:hover{background:#342c50;color:#cbbfff}
 html[data-theme="dark"] .topbar,html[data-theme="dark"] .topbar strong,html[data-theme="dark"] .user-menu,html[data-theme="dark"] .overview-label,html[data-theme="dark"] .stat>div,html[data-theme="dark"] td,html[data-theme="dark"] .form-grid label,html[data-theme="dark"] .auth-form label,html[data-theme="dark"] .check{color:#b9c1d3}
 html[data-theme="dark"] .stat strong,html[data-theme="dark"] td strong,html[data-theme="dark"] .product-name,html[data-theme="dark"] .strong-link{color:#eff1f9}
 html[data-theme="dark"] th,html[data-theme="dark"] .supplier-checks,html[data-theme="dark"] .document-info,html[data-theme="dark"] .total-block{background:#222839;color:#b9c1d3}
 html[data-theme="dark"] td{border-color:#30364a}
 html[data-theme="dark"] .purple,html[data-theme="dark"] .avatar{background:#382e55;color:#c4b6ff}
 html[data-theme="dark"] .green{background:#203e36;color:#83dfba}
 html[data-theme="dark"] .blue{background:#263953;color:#9ac4ff}
 html[data-theme="dark"] .amber{background:#42372b;color:#f4c87f}
 html[data-theme="dark"] .quick-card,html[data-theme="dark"] .auth-intro{background:linear-gradient(140deg,#2d2841,#202537);border-color:#443b5e}
 html[data-theme="dark"] .quick-card h2,html[data-theme="dark"] .auth-intro h1{color:#e4d8ff}
 html[data-theme="dark"] .quick-card>p,html[data-theme="dark"] .auth-intro p,html[data-theme="dark"] .quick-link,html[data-theme="dark"] .quiet-link,html[data-theme="dark"] .total-block span,html[data-theme="dark"] .document-notes p{color:#bcb2d1}
 html[data-theme="dark"] .quick-link{border-color:#443c58}
 html[data-theme="dark"] .alert{background:#342c48;border-color:#56466c;color:#d1c5ef}
 html[data-theme="dark"] .alert.success{background:#213c32;border-color:#3b6553;color:#a2e2bf}
 html[data-theme="dark"] .alert.error{background:#432c35;border-color:#6d424e;color:#ffbec4}
 html[data-theme="dark"] .icon-button:hover{background:#383049;color:#e0d5ff}
 html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .nav-label,html[data-theme="dark"] .brand-sub,html[data-theme="dark"] .optional,html[data-theme="dark"] .help-text,html[data-theme="dark"] .empty,html[data-theme="dark"] .signatures,html[data-theme="dark"] footer{color:#a8afc1}
}
@media screen and (max-width:1250px){html[dir="rtl"] .workspace{margin-right:205px}.theme-label{display:none}.theme-switch{min-width:36px;justify-content:center}.user-menu{gap:8px}}
@media screen and (max-width:650px){html[dir="rtl"] .workspace{margin:0}.topbar{height:auto;min-height:62px;gap:10px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.topbar>span{font-size:11px}.preferences{gap:6px}.user-menu{margin-inline-start:auto}.language-control select{min-width:85px}.auth-form .theme-label{display:inline}.auth-form>.preferences{margin-bottom:28px}html[lang="ar"] h1{font-size:24px}html[dir="rtl"] .form-footer .help-text{margin-right:0}html[lang="ar"] .stat small{font-size:10px}.stat{min-height:135px}}
@media print{html{color-scheme:light!important}.preferences{display:none!important}html[dir="rtl"] .workspace{margin:0}html[lang="ar"] th{font-size:11px}html[lang="ar"] .brand-sub{font-size:9px}}
