/* _content/NEXORA.Modules.Sms/Components/Pages/Sms/ManufactureDetail.razor.rz.scp.css */
/* Manufacture detail — card/definition/tabs metrics. Tables, buttons, badges
   and notes use the global standard (erp-table.css, erp-shell.css). */

.detail-tabs[b-gwos4qawhc] { margin-top: 4px; }
.tab-body[b-gwos4qawhc] { padding: 20px 4px 0; }

/* Reference underline tabs (core.css .tabs/.tab): transparent tabs over a
   hairline, 2px sky underline on the active tab. MudTabs internals need
   ::deep — they render outside this component's scope. */
.detail-tabs[b-gwos4qawhc]  .mud-tabs-toolbar {
    border-bottom: 1px solid #e2e8f0;
    background-color: transparent;
}
.detail-tabs[b-gwos4qawhc]  .mud-tab {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: none;
    min-width: 0;
}
.detail-tabs[b-gwos4qawhc]  .mud-tab:hover { background-color: #f1f5f9; color: #1e293b; }
.detail-tabs[b-gwos4qawhc]  .mud-tab.mud-tab-active { color: #0f172a; background-color: #f8fafc; }
.detail-tabs[b-gwos4qawhc]  .mud-tab .mud-icon-root { color: #94a3b8; }
.detail-tabs[b-gwos4qawhc]  .mud-tab.mud-tab-active .mud-icon-root { color: #38bdf8; }
.detail-tabs[b-gwos4qawhc]  .mud-tab-slider { background-color: #38bdf8; height: 2px; }

.grid-2[b-gwos4qawhc] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.def-list[b-gwos4qawhc] { margin: 0; }
.def-list > div[b-gwos4qawhc] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.def-list > div:last-child[b-gwos4qawhc] { border-bottom: none; }
.def-list dt[b-gwos4qawhc] { color: #94a3b8; font-size: 13px; flex-shrink: 0; }
.def-list dd[b-gwos4qawhc] { margin: 0; color: #1e293b; font-size: 14px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.def-list dd strong[b-gwos4qawhc] { color: #0f172a; }

/* Long free text (description) reads in the natural direction, not
   pushed to the far side like short values. */
.def-list dd.desc[b-gwos4qawhc] { text-align: start; flex-basis: 100%; }

[dir="rtl"] .def-list dd[b-gwos4qawhc] { text-align: left; }
[dir="rtl"] .def-list dd.desc[b-gwos4qawhc] { text-align: start; }

@media (max-width: 992px) {
    .grid-2[b-gwos4qawhc] { grid-template-columns: 1fr; }
}
/* _content/NEXORA.Modules.Sms/Components/Pages/Sms/ProductDetail.razor.rz.scp.css */
/* Details gallery: hero preview + thumbnail strip under it. */

.prod-hero[b-8xi82hqasm] {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: grid;
    place-items: center;
    min-height: 260px;
}

.prod-hero > img[b-8xi82hqasm] {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.prod-hero .logo-initial[b-8xi82hqasm] {
    margin: 40px;
    font-size: 28px;
}

.hero-actions[b-8xi82hqasm] {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.prod-thumbs[b-8xi82hqasm] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.prod-thumbs button[b-8xi82hqasm] {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f8fafc;
    padding: 0;
    cursor: pointer;
}

.prod-thumbs button:hover[b-8xi82hqasm] {
    border-color: #cbd5e1;
}

.prod-thumbs button.on[b-8xi82hqasm] {
    border-color: var(--mud-palette-primary, #2d6cb0);
}

.prod-thumbs img[b-8xi82hqasm] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prod-main-flag[b-8xi82hqasm] {
    position: absolute;
    bottom: 2px;
    inset-inline-start: 2px;
    background: var(--mud-palette-primary, #2d6cb0);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}

/* Fullscreen lightbox overlay. */
.prod-hero[b-8xi82hqasm] {
    cursor: zoom-in;
}

.prod-lightbox[b-8xi82hqasm] {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(15, 23, 42, 0.94);
    display: flex;
    flex-direction: column;
}

.prod-lightbox-bar[b-8xi82hqasm] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #e8edf3;
}

.prod-lightbox-name[b-8xi82hqasm] {
    font-weight: 600;
    margin-inline-end: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prod-lightbox-btn[b-8xi82hqasm] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #e8edf3;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.prod-lightbox-btn:hover[b-8xi82hqasm] {
    background: rgba(255, 255, 255, 0.12);
}

.prod-lightbox-stage[b-8xi82hqasm] {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
    outline: none;
}

.prod-lightbox-stage img[b-8xi82hqasm] {
    max-width: 94vw;
    max-height: 84vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

.prod-lightbox-arrow[b-8xi82hqasm] {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #e8edf3;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.prod-lightbox-arrow:hover[b-8xi82hqasm] {
    background: rgba(255, 255, 255, 0.16);
}

.prod-lightbox-arrow.prev[b-8xi82hqasm] {
    inset-inline-start: 12px;
}

.prod-lightbox-arrow.next[b-8xi82hqasm] {
    inset-inline-end: 12px;
}

.prod-lightbox-film[b-8xi82hqasm] {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 4px 14px 14px;
    overflow-x: auto;
}

.prod-lightbox-film button[b-8xi82hqasm] {
    position: relative;
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    cursor: pointer;
}

.prod-lightbox-film button.on[b-8xi82hqasm] {
    border-color: #fff;
}

.prod-lightbox-film img[b-8xi82hqasm] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* _content/NEXORA.Modules.Sms/Components/Pages/Sms/Products.razor.rz.scp.css */
/* Product image tiles (edit dialog) — plain template tiles replacing the old
   MudCards (and the "legacy:" marker — unmigrated paths show an initial tile
   like list logos; re-upload replaces them). */

.img-tile[b-k0sa77513y] {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.img-tile img[b-k0sa77513y] {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.img-tile .logo-initial[b-k0sa77513y] { margin: 12px; }
.img-tile-actions[b-k0sa77513y] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid #f1f5f9;
}
/* _content/NEXORA.Modules.Sms/Components/Pages/Sms/Reports.razor.rz.scp.css */
/* NEXORA report page prototype â€” tokens mirror 02.Components/NEXORA.UI/wwwroot/css/nexora.css */
@font-face {
  font-family: "DIN Next LT Arabic";
  src: url("/_content/NEXORA.UI/fonts/din-next-lt-arabic-regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DIN Next LT Arabic";
  src: url("/_content/NEXORA.UI/fonts/din-next-lt-arabic-medium.ttf") format("truetype");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DIN Next LT Arabic";
  src: url("/_content/NEXORA.UI/fonts/din-next-lt-arabic-bold.ttf") format("truetype");
  font-weight: 700 900; font-style: normal; font-display: swap;
}

/* Tokens live in global nexora.css :root (Blazor scopes a local :root into
   a selector that never matches, which left every var() here undefined). */

*[b-6910jp1lr1] { box-sizing: border-box; }
html[b-6910jp1lr1], body[b-6910jp1lr1] { margin: 0; padding: 0; }
html[b-6910jp1lr1] { -webkit-text-size-adjust: 100%; }
body[b-6910jp1lr1] {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body[b-6910jp1lr1] { font-family: var(--font-ar); letter-spacing: 0; }
button[b-6910jp1lr1], input[b-6910jp1lr1], select[b-6910jp1lr1], textarea[b-6910jp1lr1] { font: inherit; color: inherit; }
button[b-6910jp1lr1] { cursor: pointer; }
a[b-6910jp1lr1] { color: inherit; text-decoration: none; }
h1[b-6910jp1lr1], h2[b-6910jp1lr1], h3[b-6910jp1lr1], h4[b-6910jp1lr1], p[b-6910jp1lr1] { margin: 0; }
svg.i[b-6910jp1lr1] { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite[b-6910jp1lr1] { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only[b-6910jp1lr1] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden][b-6910jp1lr1] { display: none !important; }
[b-6910jp1lr1]::selection { background: #c7d2fe; }

/* ---------- Shell ---------- */
.app[b-6910jp1lr1] { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar[b-6910jp1lr1] {
  position: sticky; top: 0; align-self: start;
  height: 100vh; display: flex; flex-direction: column;
  background: var(--sidebar); color: var(--side-text);
  padding: 18px 14px 14px; gap: 14px; z-index: 30;
}
.brand[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; padding: 2px 8px 6px; }
.brand img[b-6910jp1lr1] { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 16px rgba(99, 102, 241, .35); }
.brand div[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand strong[b-6910jp1lr1] { font-size: 15px; letter-spacing: .14em; font-weight: 800; color: #f8fafc; }
.brand small[b-6910jp1lr1] { font-size: 10.5px; color: var(--side-muted); letter-spacing: .02em; margin-top: 2px; }
.sidebar-close[b-6910jp1lr1] { display: none !important; margin-inline-start: auto; color: var(--side-link); }
.side-search[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 8px;
  background: rgba(148, 163, 184, .09);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px; padding: 0 10px; height: 38px; color: var(--side-muted);
}
.side-search input[b-6910jp1lr1] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--side-text); font-size: 12.5px; }
.side-search input[b-6910jp1lr1]::placeholder { color: #7c8ba1; }
.side-search kbd[b-6910jp1lr1] { font-family: inherit; font-size: 10px; color: #94a3b8; border: 1px solid #334155; border-radius: 5px; padding: 1px 5px; }
.side-nav[b-6910jp1lr1] { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-inline: 2px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.nav-label[b-6910jp1lr1] { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #64748b; font-weight: 700; padding: 16px 10px 6px; }
.nav-item[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px;
  border-radius: 9px; color: var(--side-link); font-size: 13px; font-weight: 500;
  border-inline-start: 2px solid transparent; transition: background .15s, color .15s;
}
.nav-item:hover[b-6910jp1lr1] { background: rgba(148, 163, 184, .1); color: #f1f5f9; }
.nav-item.active[b-6910jp1lr1] { background: rgba(56, 189, 248, .12); color: #e0f2fe; border-inline-start-color: var(--sky); }
.nav-item.active svg.i[b-6910jp1lr1] { color: var(--sky); }
.nav-item svg.i[b-6910jp1lr1] { width: 17px; height: 17px; color: #94a3b8; stroke-width: 1.6; }
.nav-dot[b-6910jp1lr1] { margin-inline-start: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, .15); }
.side-foot[b-6910jp1lr1] { border-top: 1px solid rgba(148, 163, 184, .12); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-company[b-6910jp1lr1], .side-user[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 9px; border-radius: 10px; padding: 8px;
  background: rgba(148, 163, 184, .06);
}
.side-company div[b-6910jp1lr1], .side-user div[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-company strong[b-6910jp1lr1], .side-user strong[b-6910jp1lr1] { font-size: 12px; color: #f1f5f9; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-company small[b-6910jp1lr1], .side-user small[b-6910jp1lr1] { font-size: 10.5px; color: var(--side-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-company .co-icon[b-6910jp1lr1] { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(56, 189, 248, .12); color: var(--sky); }
.side-company .co-icon svg[b-6910jp1lr1] { width: 16px; height: 16px; }
.side-user .avatar[b-6910jp1lr1] { width: 30px; height: 30px; font-size: 11px; }
.chev[b-6910jp1lr1] { color: #64748b; width: 14px !important; height: 14px !important; margin-inline-start: auto; }
.side-user[b-6910jp1lr1] { background: transparent; padding-top: 2px; }

/* ---------- Workspace / topbar ---------- */
.workspace[b-6910jp1lr1] { min-width: 0; display: flex; flex-direction: column; }
.topbar[b-6910jp1lr1] {
  height: 72px; background: #fff; border-bottom: 3px solid var(--accent);
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
  position: sticky; top: 0; z-index: 20;
}
.crumbs[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.crumbs strong[b-6910jp1lr1] { color: var(--ink-2); font-weight: 600; }
.crumbs .sep[b-6910jp1lr1] { color: #cbd5e1; }
.topbar-actions[b-6910jp1lr1] { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.company-pill[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.company-pill svg[b-6910jp1lr1] { width: 15px; height: 15px; color: var(--muted); }
.company-pill .chev[b-6910jp1lr1] { margin: 0; }
.lang-toggle[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.lang-toggle:hover[b-6910jp1lr1], .company-pill:hover[b-6910jp1lr1] { border-color: #cbd5e1; background: #f8fafc; }
.lang-toggle svg[b-6910jp1lr1] { width: 15px; height: 15px; color: var(--muted); }
.icon-btn[b-6910jp1lr1] {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 0; background: transparent; border-radius: 9px; color: var(--muted); position: relative;
}
.icon-btn:hover[b-6910jp1lr1] { background: #f1f5f9; color: var(--ink-2); }
.icon-btn.bordered[b-6910jp1lr1] { border: 1px solid var(--line); background: #fff; }
.icon-btn.has-dot[b-6910jp1lr1]::after {
  content: ""; position: absolute; top: 8px; inset-inline-end: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 0 2px #fff;
}
.avatar[b-6910jp1lr1] {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #38bdf8); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; flex: none;
}
.avatar-btn[b-6910jp1lr1] { border: 0; box-shadow: 0 0 0 3px #eef2ff; }
.menu-btn[b-6910jp1lr1] { display: none; }

/* ---------- Page ---------- */
.page[b-6910jp1lr1] { padding: 28px 32px 40px; max-width: 1560px; width: 100%; margin-inline: auto; }
/* v2: single-H1 context bar replaces the generic Reports hero */
.context-bar[b-6910jp1lr1] { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.back-link[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 2px; border-radius: 6px; }
.back-link:hover[b-6910jp1lr1] { color: var(--ink-2); }
.back-link svg.i[b-6910jp1lr1] { width: 15px; height: 15px; }
html[dir="rtl"] .back-link svg.i[b-6910jp1lr1] { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn[b-6910jp1lr1] {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent;
  font-size: 11.5px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
html[lang="ar"] .btn[b-6910jp1lr1] { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.btn svg.i[b-6910jp1lr1] { width: 15px; height: 15px; stroke-width: 1.9; }
.btn-primary[b-6910jp1lr1] { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, .22); }
.btn-primary:hover[b-6910jp1lr1] { background: var(--accent-d); }
.btn-outline[b-6910jp1lr1] { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover[b-6910jp1lr1] { border-color: #cbd5e1; background: #f8fafc; }
.btn-sm[b-6910jp1lr1] { height: 32px; padding: 0 11px; font-size: 10.5px; }
.btn-sm svg.i[b-6910jp1lr1] { width: 14px; height: 14px; }
.w-full[b-6910jp1lr1] { width: 100%; }
.link-btn[b-6910jp1lr1] {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 2px;
}
.link-btn:hover[b-6910jp1lr1] { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.link-btn svg.i[b-6910jp1lr1] { width: 15px; height: 15px; }
.btn-count[b-6910jp1lr1] {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 6px; background: var(--accent-soft); color: var(--accent-d);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0;
}
.menu-wrap[b-6910jp1lr1] { position: relative; }

/* ---------- Badges ---------- */
.badge[b-6910jp1lr1] {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px;
  border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.badge svg.i[b-6910jp1lr1] { width: 12px; height: 12px; }
.badge-live[b-6910jp1lr1] { background: var(--green-soft); color: var(--green); border: 1px solid #bbf7d0; }
.badge-soft[b-6910jp1lr1] { background: var(--accent-soft); color: var(--accent-d); border: 1px solid #e0e7ff; }
.badge-ghost[b-6910jp1lr1] { background: #f8fafc; color: var(--muted); border: 1px solid var(--line); }
.pulse[b-6910jp1lr1] { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(5, 150, 105, .13); }
.pulse.sky[b-6910jp1lr1] { color: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, .16); }

/* ---------- Report header ---------- */
.report-head[b-6910jp1lr1] {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, #fff 0%, #fbfcff 58%, #f6f8ff 100%);
  border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 16px; position: relative; overflow: hidden;
}
.report-head[b-6910jp1lr1]::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sky) 55%, transparent 92%);
}
.rh-badges[b-6910jp1lr1] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.rh-main h2[b-6910jp1lr1] { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
/* v2: report name is the single H1 */
.rh-main h1.rh-title[b-6910jp1lr1] { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.rh-main > p[b-6910jp1lr1] { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 720px; }
.rh-meta[b-6910jp1lr1] { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.rh-meta span[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 5px; }
.rh-meta svg.i[b-6910jp1lr1] { width: 13px; height: 13px; color: var(--muted-2); }
.rh-actions[b-6910jp1lr1] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 520px; }

/* ---------- Filters ---------- */
.filter-card[b-6910jp1lr1] {
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: visible;
}
.filter-head[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.filter-title[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.f-icon[b-6910jp1lr1] { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.f-icon svg.i[b-6910jp1lr1] { width: 15px; height: 15px; }
.count-pill[b-6910jp1lr1] { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: #f1f5f9; color: var(--muted); font-size: 10.5px; font-weight: 800; padding: 0 5px; }
.filter-applied[b-6910jp1lr1] { font-size: 11.5px; color: var(--muted-2); font-weight: 500; }
.filter-head .icon-btn[b-6910jp1lr1] { margin-inline-start: auto; transition: transform .2s; }
.filter-card.collapsed .filter-head .icon-btn[b-6910jp1lr1] { transform: rotate(180deg); }
.filter-card.collapsed .filter-body[b-6910jp1lr1] { display: none; }
.filter-card.collapsed .filter-head[b-6910jp1lr1] { border-bottom: 0; }
.filter-body[b-6910jp1lr1] { padding: 16px 18px 14px; }
.filters-grid[b-6910jp1lr1] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.field[b-6910jp1lr1] { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label[b-6910jp1lr1] { font-size: 11.5px; font-weight: 600; color: #475569; display: flex; align-items: center; gap: 5px; }
.field > small[b-6910jp1lr1] { font-size: 10.5px; color: var(--muted-2); }
.input[b-6910jp1lr1], .select-wrap[b-6910jp1lr1], .token-input[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 7px; min-height: 38px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 0 10px; transition: border-color .15s, box-shadow .15s;
}
.input:focus-within[b-6910jp1lr1], .select-wrap:focus-within[b-6910jp1lr1], .token-input:focus-within[b-6910jp1lr1] {
  border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}
.input svg.i[b-6910jp1lr1], .select-wrap svg.i[b-6910jp1lr1] { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.input input[b-6910jp1lr1], .token-input input[b-6910jp1lr1] { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; font-size: 12.5px; height: 36px; }
.input input[b-6910jp1lr1]::placeholder, .token-input input[b-6910jp1lr1]::placeholder { color: var(--muted-2); }
.input.date input[b-6910jp1lr1] { padding: 0; }
.input.locked[b-6910jp1lr1] { background: #f8fafc; color: #475569; font-size: 12.5px; font-weight: 500; justify-content: space-between; }
.input.locked svg.i[b-6910jp1lr1] { color: var(--muted-2); }
.select-wrap[b-6910jp1lr1] { position: relative; padding-inline-end: 30px; }
.select-wrap select[b-6910jp1lr1] {
  appearance: none; border: 0; outline: 0; background: transparent; width: 100%;
  height: 36px; font-size: 12.5px; cursor: pointer; color: var(--ink-2);
}
.select-wrap > svg.i[b-6910jp1lr1] { position: absolute; inset-inline-end: 9px; pointer-events: none; }
.select-wrap.small[b-6910jp1lr1] { min-height: 30px; height: 30px; padding-inline: 8px 24px; }
.select-wrap.small select[b-6910jp1lr1] { height: 28px; font-size: 11.5px; }
.select-wrap.small > svg.i[b-6910jp1lr1] { inset-inline-end: 6px; width: 13px; height: 13px; }
.token-input[b-6910jp1lr1] { padding: 3px 6px; gap: 4px; }
.token-input.wrap[b-6910jp1lr1] { flex-wrap: wrap; min-height: 40px; padding: 5px 6px; }
.token[b-6910jp1lr1] {
  display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft);
  color: #4338ca; border: 1px solid #e0e7ff; border-radius: 6px;
  font-size: 11px; font-weight: 600; padding: 3px 4px 3px 7px; white-space: nowrap;
}
.token-x[b-6910jp1lr1] { border: 0; background: transparent; color: #6366f1; font-size: 14px; line-height: 1; padding: 0 3px; }
.token-x:hover[b-6910jp1lr1] { color: #312e81; }
.token-input input[b-6910jp1lr1] { height: 28px; font-size: 11.5px; }
.filters-advanced[b-6910jp1lr1] {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px;
  padding-top: 14px; margin-top: 14px; border-top: 1px dashed var(--line);
}
.filter-foot[b-6910jp1lr1] {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding-top: 14px; margin-top: 14px; border-top: 1px solid #f1f5f9;
}
.chips-row[b-6910jp1lr1] { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 240px; }
.chips-label[b-6910jp1lr1] { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-inline-end: 2px; }
.chip[b-6910jp1lr1] {
  display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 3px 0 9px;
  border-radius: 7px; border: 1px solid #dbe3ef; background: #f8fafc;
  color: #334155; font-size: 11px; font-weight: 500;
}
.chip button[b-6910jp1lr1] { border: 0; background: transparent; color: var(--muted-2); font-size: 14px; padding: 0 4px; line-height: 1; border-radius: 4px; }
.chip button:hover[b-6910jp1lr1] { background: #e2e8f0; color: var(--ink-2); }
.chips-empty[b-6910jp1lr1] { font-size: 11.5px; color: var(--muted-2); }
.filter-actions[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; }

/* ---------- KPI strip ---------- */
.kpi-grid[b-6910jp1lr1] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi[b-6910jp1lr1] {
  background: #fff; border: 1px solid var(--card-line); border-radius: 14px;
  padding: 14px 16px 13px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  display: flex; flex-direction: column; min-width: 0;
}
.kpi-label[b-6910jp1lr1] { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kpi-ico[b-6910jp1lr1] { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.kpi-ico.warn[b-6910jp1lr1] { background: var(--rose-soft); color: var(--rose); }
.kpi-ico svg.i[b-6910jp1lr1] { width: 14px; height: 14px; }
.kpi-value[b-6910jp1lr1] { font-size: 23px; font-weight: 800; letter-spacing: -.025em; margin-top: 7px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-value .cur[b-6910jp1lr1] { font-size: 10.5px; font-weight: 700; color: var(--muted-2); letter-spacing: .04em; margin-inline-end: 3px; }
.kpi-foot[b-6910jp1lr1] { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 7px; font-size: 10.5px; color: var(--muted-2); flex-wrap: wrap; }
.kpi-foot strong[b-6910jp1lr1] { color: var(--ink-2); font-weight: 700; }
.kpi-right[b-6910jp1lr1] { margin-inline-start: auto; white-space: nowrap; }
.delta[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 10.5px; padding: 1px 5px; border-radius: 5px; }
.delta svg.i[b-6910jp1lr1] { width: 11px; height: 11px; transform: rotate(-45deg); stroke-width: 2.4; }
.delta.up[b-6910jp1lr1] { color: var(--green); background: var(--green-soft); }
.delta.down[b-6910jp1lr1] { color: var(--rose); background: var(--rose-soft); }
.progress[b-6910jp1lr1] { height: 5px; border-radius: 99px; background: #eef2f7; overflow: hidden; margin-top: 9px; }
.progress > span[b-6910jp1lr1] { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--sky)); transition: width .4s ease; }

/* ---------- Cards ---------- */
.card[b-6910jp1lr1] { background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head[b-6910jp1lr1] { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; }
.card-head h3[b-6910jp1lr1] { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.card-head h3 svg.i[b-6910jp1lr1] { width: 16px; height: 16px; color: var(--muted-2); }
.card-head p[b-6910jp1lr1] { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.chart-card[b-6910jp1lr1] { margin-bottom: 16px; }
.chart-legend[b-6910jp1lr1] { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 2px; }
.lg[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.swatch[b-6910jp1lr1] { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch.booked[b-6910jp1lr1] { background: linear-gradient(180deg, #60a5fa, #6366f1); }
.swatch.target[b-6910jp1lr1] { background: repeating-linear-gradient(90deg, #f59e0b 0 3px, transparent 3px 6px); height: 2px; width: 14px; }
.chart-wrap[b-6910jp1lr1] { padding: 0 12px 12px; }
.chart-wrap svg[b-6910jp1lr1] { width: 100%; height: auto; display: block; direction: ltr; }

/* ---------- Table ---------- */
.table-card[b-6910jp1lr1] { margin-bottom: 16px; }
.table-head[b-6910jp1lr1] { align-items: center; padding-bottom: 12px; }
.table-head p[b-6910jp1lr1] { display: flex; align-items: center; gap: 3px; }
.table-tools[b-6910jp1lr1] { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.mini-search[b-6910jp1lr1] { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; height: 34px; padding: 0 9px; background: #fff; width: 190px; }
.mini-search svg.i[b-6910jp1lr1] { width: 14px; height: 14px; color: var(--muted-2); }
.mini-search input[b-6910jp1lr1] { border: 0; outline: 0; min-width: 0; width: 100%; font-size: 11.5px; background: transparent; }
.density[b-6910jp1lr1] { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 34px; }
.density button[b-6910jp1lr1] { border: 0; background: #fff; width: 32px; display: grid; place-items: center; color: var(--muted-2); }
.density button + button[b-6910jp1lr1] { border-inline-start: 1px solid var(--line); }
.density button.active[b-6910jp1lr1] { background: #f1f5f9; color: var(--ink-2); }
.density svg.i[b-6910jp1lr1] { width: 15px; height: 15px; }
.dense-ico[b-6910jp1lr1] { display: block; width: 13px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.dense-ico[b-6910jp1lr1]::after { content: ""; position: absolute; inset-inline: 0; top: 3px; border-top: 1.5px solid currentColor; }
.table-scroll[b-6910jp1lr1] { overflow: auto; border-top: 1px solid #f1f5f9; }
.data-table[b-6910jp1lr1] { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 940px; }
.data-table th[b-6910jp1lr1] {
  position: sticky; top: 0; z-index: 2; background: #f8fafc; text-align: start;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
html[lang="ar"] .data-table th[b-6910jp1lr1] { letter-spacing: 0; text-transform: none; font-size: 11px; }
.data-table th.num-col[b-6910jp1lr1] { width: 36px; text-align: center; }
.data-table th.money[b-6910jp1lr1], .data-table td.money[b-6910jp1lr1] { text-align: end; font-variant-numeric: tabular-nums; }
.data-table td[b-6910jp1lr1] { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr[b-6910jp1lr1] { transition: background .12s; }
.data-table tbody tr:hover[b-6910jp1lr1] { background: #f8faff; }
.data-table .num-col[b-6910jp1lr1] { color: var(--muted-2); text-align: center; font-variant-numeric: tabular-nums; width: 36px; }
.data-table .order-id[b-6910jp1lr1] { font-weight: 700; color: #3730a3; font-variant-numeric: tabular-nums; }
.data-table .date[b-6910jp1lr1] { color: var(--muted); font-variant-numeric: tabular-nums; }
.data-table .acct strong[b-6910jp1lr1] { font-weight: 600; color: var(--ink-2); }
.data-table .money[b-6910jp1lr1] { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.data-table .money.muted[b-6910jp1lr1] { color: var(--muted); }
.data-table .money.neg[b-6910jp1lr1] { color: var(--rose); }
.data-table .net[b-6910jp1lr1] { font-weight: 700; color: var(--ink); }
.data-table .terr[b-6910jp1lr1] { color: var(--muted); }
.data-table thead .sortable[b-6910jp1lr1] { cursor: pointer; user-select: none; }
.data-table thead .sortable:hover[b-6910jp1lr1] { color: var(--ink-2); }
.sort-ico[b-6910jp1lr1] { width: 11px !important; height: 11px !important; opacity: .35; margin-inline-start: 3px; vertical-align: -1px; }
th.sorted .sort-ico[b-6910jp1lr1] { opacity: 1; color: var(--accent); }
.data-table th.money .sort-ico[b-6910jp1lr1] { float: inline-end; margin-top: 2px; }
.data-table tfoot td[b-6910jp1lr1] { background: #fbfcfe; border-top: 1px solid var(--line); border-bottom: 0; padding: 11px 12px; font-size: 11.5px; }
.data-table tfoot td:first-child[b-6910jp1lr1] { border-inline-start: 0; }
.data-table tfoot .muted[b-6910jp1lr1] { color: var(--muted); font-weight: 400; }
.data-table tfoot .net-total[b-6910jp1lr1] { color: var(--accent-d); }
.data-table .drill-col[b-6910jp1lr1] { width: 34px; text-align: center; }
.drill-btn[b-6910jp1lr1] { border: 0; background: transparent; color: var(--muted-2); width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; }
.drill-btn:hover[b-6910jp1lr1] { background: var(--accent-soft); color: var(--accent); }
.drill-btn svg.i[b-6910jp1lr1] { width: 14px; height: 14px; }
.density-compact .data-table td[b-6910jp1lr1] { padding-block: 6px; }
.density-compact .data-table th[b-6910jp1lr1] { padding-block: 7px; }
.status[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.status[b-6910jp1lr1]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.s-posted[b-6910jp1lr1] { background: var(--green-soft); color: var(--green); }
.s-invoiced[b-6910jp1lr1] { background: var(--accent-soft); color: #4338ca; }
.s-pending[b-6910jp1lr1] { background: var(--amber-soft); color: var(--amber); }
.s-returned[b-6910jp1lr1] { background: var(--rose-soft); color: var(--rose); }
.empty-note[b-6910jp1lr1] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 42px 20px; color: var(--muted); }
.empty-note svg.i[b-6910jp1lr1] { width: 24px; height: 24px; color: #cbd5e1; margin-bottom: 4px; }
.empty-note strong[b-6910jp1lr1] { font-size: 13px; color: var(--ink-2); }
.empty-note span[b-6910jp1lr1] { font-size: 12px; }
.empty-note .btn[b-6910jp1lr1] { margin-top: 8px; }
/* v2: loading skeleton + run error */
.skel[b-6910jp1lr1] { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 16px 8px 4px; }
.skel span[b-6910jp1lr1] { flex: 1; border-radius: 5px; background: linear-gradient(180deg, #eef2ff, #e2e8f0); animation: skelPulse-b-6910jp1lr1 1.1s ease-in-out infinite alternate; }
.skel span:nth-child(odd)[b-6910jp1lr1] { height: 55%; }
.skel span:nth-child(even)[b-6910jp1lr1] { height: 80%; }
.skel span:nth-child(3n)[b-6910jp1lr1] { height: 40%; }
.skel span:nth-child(4n)[b-6910jp1lr1] { height: 68%; }
@keyframes skelPulse-b-6910jp1lr1 { from { opacity: .55; } to { opacity: 1; } }
.run-error[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; margin: 0 20px 16px; padding: 10px 12px; border: 1px solid #fecdd3; background: #fff1f2; border-radius: 10px; font-size: 12px; color: #881337; }
.run-error svg.i[b-6910jp1lr1] { width: 16px; height: 16px; color: #e11d48; flex: none; }
.run-error div[b-6910jp1lr1] { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.run-error div span[b-6910jp1lr1] { font-size: 11px; color: #9f1239; }
.run-error .btn[b-6910jp1lr1] { flex: none; }
.is-loading .chart-wrap svg#chartSvg[b-6910jp1lr1] { visibility: hidden; }
.is-loading .kpi[b-6910jp1lr1] { opacity: .55; }
.is-loading .kpi .kpi-value[b-6910jp1lr1] { visibility: hidden; }
/* v2: visible focus everywhere */
.btn:focus-visible[b-6910jp1lr1], .icon-btn:focus-visible[b-6910jp1lr1], .link-btn:focus-visible[b-6910jp1lr1], .back-link:focus-visible[b-6910jp1lr1],
.chip button:focus-visible[b-6910jp1lr1], .density button:focus-visible[b-6910jp1lr1],
.seg button:focus-visible[b-6910jp1lr1], .drill-btn:focus-visible[b-6910jp1lr1] { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.table-tools .mini-search:focus-within[b-6910jp1lr1] { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }
.table-foot[b-6910jp1lr1] { padding: 10px 16px; border-top: 1px solid #f1f5f9; background: #fcfdff; border-radius: 0 0 var(--radius) var(--radius); }
/* Standard NEXORA footer (mirrors .tbl-footer in nexora.css / ErpTableFooter.razor):
   "show [10] perPage آ· Showing 1-10 of 56" left, "PREV Page 1 of 6 NEXT" right. No numbered buttons. */
.tbl-footer[b-6910jp1lr1] { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tbl-foot-side[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; }
.tbl-muted[b-6910jp1lr1] { color: var(--muted); font-size: 12.5px; }
.tbl-range[b-6910jp1lr1] { color: var(--muted-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl-page[b-6910jp1lr1] { color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl-size[b-6910jp1lr1] { border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12.5px; color: var(--ink-2); padding: 4px 6px; font-family: inherit; }
.btn-xs[b-6910jp1lr1] { min-height: 0; height: 28px; padding: 0 10px; font-size: 11px; }
.btn-xs svg.i[b-6910jp1lr1] { width: 13px; height: 13px; }

/* ---------- Meta / lineage ---------- */
.meta-grid[b-6910jp1lr1] { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.lineage-card[b-6910jp1lr1], .delivery-card[b-6910jp1lr1] { padding-bottom: 14px; }
.lineage-id[b-6910jp1lr1] { display: flex; align-items: center; gap: 11px; padding: 0 20px; }
.ds-icon[b-6910jp1lr1] { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ds-icon svg.i[b-6910jp1lr1] { width: 19px; height: 19px; }
.lineage-id > div:nth-child(2)[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.3; }
.lineage-id strong[b-6910jp1lr1] { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lineage-id span[b-6910jp1lr1] { font-size: 10.5px; color: var(--muted); }
.lineage-stats[b-6910jp1lr1] { display: flex; gap: 22px; margin-inline-start: auto; flex-wrap: wrap; }
.lineage-stats span[b-6910jp1lr1] { display: flex; flex-direction: column; gap: 1px; }
.lineage-stats small[b-6910jp1lr1] { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.lineage-stats strong[b-6910jp1lr1] { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
html[lang="ar"] .lineage-stats small[b-6910jp1lr1] { text-transform: none; letter-spacing: 0; }
.lineage-flow[b-6910jp1lr1] { display: flex; align-items: stretch; gap: 8px; padding: 14px 20px; margin-top: 10px; }
.flow-step[b-6910jp1lr1] { flex: 1; display: flex; gap: 9px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.flow-ico[b-6910jp1lr1] { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; }
.flow-ico svg.i[b-6910jp1lr1] { width: 14px; height: 14px; }
.flow-step div[b-6910jp1lr1] { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.flow-step small[b-6910jp1lr1] { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 700; }
.flow-step strong[b-6910jp1lr1] { font-size: 10.5px; font-weight: 600; color: #475569; white-space: normal; line-height: 1.35; }
.flow-arrow[b-6910jp1lr1] { display: flex; align-items: center; color: #cbd5e1; }
.flow-arrow svg.i[b-6910jp1lr1] { width: 14px; height: 14px; }
html[dir="rtl"] .flow-arrow svg[b-6910jp1lr1] { transform: rotate(180deg); }
.lineage-actions[b-6910jp1lr1] { display: flex; align-items: center; gap: 16px; padding: 0 20px; flex-wrap: wrap; }
.delivery-row[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; padding: 8px 20px; }
.deliv-ico[b-6910jp1lr1] { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; flex: none; }
.deliv-ico svg.i[b-6910jp1lr1] { width: 15px; height: 15px; }
.delivery-row div[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.delivery-row strong[b-6910jp1lr1] { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.delivery-row span[b-6910jp1lr1] { font-size: 10.5px; color: var(--muted); }
.delivery-row .badge[b-6910jp1lr1] { margin-inline-start: auto; }
.delivery-card > .btn[b-6910jp1lr1] { width: calc(100% - 40px); margin: 8px 20px 0; height: 34px; font-size: 10.5px; }
.run-foot[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 4px 0; font-size: 10.5px; color: var(--muted-2);
  border-top: 1px solid var(--line); margin-top: 4px;
}
.run-foot span[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 5px; }
.run-foot svg.i[b-6910jp1lr1] { width: 12px; height: 12px; }
.run-foot .live[b-6910jp1lr1] { margin-inline-start: auto; color: var(--green); font-weight: 600; }

/* Panels: pop menus, drawer, modals, print preview, toasts, responsive, print */

/* ---------- Pop menus ---------- */
.pop-menu[b-6910jp1lr1] {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 45;
  min-width: 205px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; box-shadow: 0 14px 40px rgba(15, 23, 42, .14); padding: 5px;
}
.pop-menu button[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 0; background: transparent; border-radius: 7px;
  padding: 8px 9px; font-size: 12px; color: var(--ink-2); text-align: start;
}
.pop-menu button:hover[b-6910jp1lr1] { background: #f8fafc; }
.pop-menu button svg.i[b-6910jp1lr1] { width: 15px; height: 15px; color: var(--muted); }
.pop-menu button.danger[b-6910jp1lr1] { color: var(--rose); }
.pop-menu button.danger svg.i[b-6910jp1lr1] { color: var(--rose); }
.pop-menu hr[b-6910jp1lr1] { border: 0; border-top: 1px solid #f1f5f9; margin: 5px 4px; }
.col-menu[b-6910jp1lr1] { min-width: 190px; padding: 8px; inset-inline-end: 0; }
.pop-title[b-6910jp1lr1] { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 2px 6px 7px; }
.col-menu label[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; font-size: 12px; color: #334155; cursor: pointer; }
.col-menu label:hover[b-6910jp1lr1] { background: #f8fafc; }
.col-menu input[b-6910jp1lr1] { accent-color: var(--accent); width: 14px; height: 14px; }

/* ---------- Overlay / drawer ---------- */
.scrim[b-6910jp1lr1] { position: fixed; inset: 0; background: rgba(15, 23, 42, .6); backdrop-filter: blur(4px); z-index: 50; opacity: 1; transition: opacity .2s; }
.scrim[hidden][b-6910jp1lr1] { display: none; }
.drawer[b-6910jp1lr1] {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: 430px; max-width: 92vw;
  background: #fff; z-index: 55; box-shadow: -20px 0 60px rgba(15, 23, 42, .16);
  transform: translateX(105%); transition: transform .28s cubic-bezier(.32, .72, .3, 1);
  display: flex; flex-direction: column;
}
html[dir="rtl"] .drawer[b-6910jp1lr1] { box-shadow: 20px 0 60px rgba(15, 23, 42, .16); transform: translateX(-105%); }
.drawer.open[b-6910jp1lr1] { transform: translateX(0) !important; }
.drawer-head[b-6910jp1lr1] { display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px 14px; border-bottom: 1px solid #f1f5f9; }
.drawer-head > div[b-6910jp1lr1] { flex: 1; min-width: 0; }
.drawer-badges[b-6910jp1lr1] { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.drawer-head h3[b-6910jp1lr1] { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.drawer-head p[b-6910jp1lr1] { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.drawer-body[b-6910jp1lr1] { padding: 16px 20px 22px; overflow-y: auto; }
.drawer-stats[b-6910jp1lr1] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer-stats > div[b-6910jp1lr1] { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 9px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drawer-stats small[b-6910jp1lr1] { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 600; }
.drawer-stats strong[b-6910jp1lr1] { font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
html[lang="ar"] .drawer-stats small[b-6910jp1lr1] { text-transform: none; letter-spacing: 0; }
.drawer-stats strong.num[b-6910jp1lr1] { direction: ltr; unicode-bidi: isolate; }
.drawer-stats .neg[b-6910jp1lr1] { color: var(--rose); }
.drawer-rows[b-6910jp1lr1] { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 14px; }
.drawer-rows > div[b-6910jp1lr1] { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eef2f7; font-size: 11px; }
.drawer-rows span[b-6910jp1lr1] { color: var(--muted); }
.drawer-rows strong[b-6910jp1lr1] { font-weight: 600; color: var(--ink-2); text-align: end; }
.drawer-body h4[b-6910jp1lr1] { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 18px 0 8px; }
.drawer-table[b-6910jp1lr1] { width: 100%; border-collapse: collapse; font-size: 11px; }
.drawer-table th[b-6910jp1lr1] { text-align: start; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; border-bottom: 1px solid var(--line); padding: 6px 4px; }
.drawer-table td[b-6910jp1lr1] { border-bottom: 1px solid #f1f5f9; padding: 7px 4px; }
.drawer-table td small[b-6910jp1lr1] { display: block; color: var(--muted-2); font-size: 9.5px; }
.drawer-table .money[b-6910jp1lr1] { text-align: end; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.drawer-timeline[b-6910jp1lr1] { margin-top: 4px; }
.tl-row[b-6910jp1lr1] { display: flex; gap: 9px; position: relative; padding-bottom: 12px; }
.tl-row[b-6910jp1lr1]::before { content: ""; position: absolute; inset-inline-start: 3px; top: 11px; bottom: 0; width: 1px; background: #e2e8f0; }
.tl-row:last-child[b-6910jp1lr1]::before { display: none; }
.tl-dot[b-6910jp1lr1] { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-top: 4px; flex: none; box-shadow: 0 0 0 3px #e0f2fe; z-index: 1; }
.tl-row div[b-6910jp1lr1] { display: flex; flex-direction: column; }
.tl-row strong[b-6910jp1lr1] { font-size: 11px; font-weight: 600; }
.tl-row span[b-6910jp1lr1] { font-size: 10px; color: var(--muted); }
.drawer-body > .btn[b-6910jp1lr1] { margin-top: 16px; }

/* ---------- Modals ---------- */
.modal[b-6910jp1lr1] {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 570px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px);
  background: #fff; border-radius: 0 0 20px 20px; z-index: 70;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); display: none;
  flex-direction: column; overflow: hidden; opacity: 0;
}
.modal.open[b-6910jp1lr1] { display: flex; opacity: 1; transform: translateX(-50%); animation: erp-dialog-in-b-6910jp1lr1 .45s ease; }
@keyframes erp-dialog-in-b-6910jp1lr1 { from { opacity: 0; transform: translate(-50%, -100%); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal.wide[b-6910jp1lr1] { width: 780px; }
.modal-head[b-6910jp1lr1] { display: flex; align-items: flex-start; gap: 11px; padding: 20px 24px 16px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; flex: none; }
.modal-head > div:nth-child(2)[b-6910jp1lr1] { flex: 1; min-width: 0; }
.modal-head h3[b-6910jp1lr1] { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.modal-head p[b-6910jp1lr1] { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.modal-ico[b-6910jp1lr1] { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.modal-ico.sky[b-6910jp1lr1] { background: #e0f2fe; color: #0284c7; }
.modal-ico.indigo[b-6910jp1lr1] { background: #eef2ff; color: #4338ca; }
.modal-ico.slate[b-6910jp1lr1] { background: #f1f5f9; color: #475569; }
.modal-ico svg.i[b-6910jp1lr1] { width: 18px; height: 18px; }
.modal-close[b-6910jp1lr1] { margin-inline-start: auto; }
.modal-body[b-6910jp1lr1] { padding: 24px; overflow-y: auto; flex: 1; }
.modal-foot[b-6910jp1lr1] { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid #e2e8f0; background: #f1f5f9; flex-wrap: wrap; flex: none; }
.modal-actions[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.foot-note[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted-2); }
.foot-note svg.i[b-6910jp1lr1] { width: 13px; height: 13px; }
.field-label[b-6910jp1lr1] { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); margin: 2px 0 8px; }
html[lang="ar"] .field-label[b-6910jp1lr1] { text-transform: none; letter-spacing: 0; font-size: 11px; }
.field-label:not(:first-child)[b-6910jp1lr1] { margin-top: 16px; }
.format-grid[b-6910jp1lr1] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.format-card[b-6910jp1lr1] {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 10px; cursor: pointer; position: relative;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.format-card:hover[b-6910jp1lr1] { border-color: #cbd5e1; background: #fcfdff; }
.format-card.selected[b-6910jp1lr1] { border-color: #a5b4fc; background: #f5f6ff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .07); }
.format-card input[b-6910jp1lr1] { position: absolute; opacity: 0; pointer-events: none; }
.fmt-ico[b-6910jp1lr1] { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; letter-spacing: .02em; flex: none; }
.fmt-ico.green[b-6910jp1lr1] { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.fmt-ico.red[b-6910jp1lr1] { background: #fff1f2; color: #be123c; border: 1px solid #ffe4e6; }
.fmt-ico.slate[b-6910jp1lr1] { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.fmt-ico.indigo[b-6910jp1lr1] { background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff; }
.format-card div[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.format-card strong[b-6910jp1lr1] { font-size: 11.5px; font-weight: 600; }
.format-card small[b-6910jp1lr1] { font-size: 10px; color: var(--muted); }
.tick[b-6910jp1lr1] { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line); margin-inline-start: auto; display: grid; place-items: center; color: transparent; flex: none; }
.format-card.selected .tick[b-6910jp1lr1] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tick svg.i[b-6910jp1lr1] { width: 11px; height: 11px; stroke-width: 3; }
.radio-list[b-6910jp1lr1] { display: flex; flex-direction: column; gap: 6px; }
.radio-row[b-6910jp1lr1] { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; cursor: pointer; }
.radio-row:hover[b-6910jp1lr1] { border-color: #cbd5e1; }
.radio-row.selected[b-6910jp1lr1] { border-color: #a5b4fc; background: #f8f9ff; }
.radio-row input[b-6910jp1lr1] { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark[b-6910jp1lr1] { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #cbd5e1; flex: none; position: relative; }
.radio-row.selected .radio-mark[b-6910jp1lr1] { border-color: var(--accent); }
.radio-row.selected .radio-mark[b-6910jp1lr1]::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.radio-row div[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.radio-row strong[b-6910jp1lr1] { font-size: 11.5px; font-weight: 600; }
.radio-row small[b-6910jp1lr1] { font-size: 10px; color: var(--muted); }
.export-note[b-6910jp1lr1] { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.export-note svg.i[b-6910jp1lr1] { width: 13px; height: 13px; margin-top: 1px; color: var(--muted-2); flex: none; }
.export-note.warn[b-6910jp1lr1] { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.export-note.warn svg.i[b-6910jp1lr1] { color: #b45309; }
.cap-note[b-6910jp1lr1] { display: flex; align-items: flex-start; gap: 7px; padding: 8px 16px; background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 11px; line-height: 1.45; color: #92400e; }
.cap-note svg.i[b-6910jp1lr1] { width: 14px; height: 14px; margin-top: 1px; color: #b45309; flex: none; }
.export-done[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid #bbf7d0; background: var(--green-soft); border-radius: 9px; padding: 9px 11px; }
.done-tick[b-6910jp1lr1] { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.done-tick svg.i[b-6910jp1lr1] { width: 14px; height: 14px; stroke-width: 2.6; }
.export-done > div[b-6910jp1lr1] { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.export-done strong[b-6910jp1lr1] { font-size: 11.5px; color: #065f46; }
.export-done span[b-6910jp1lr1] { font-size: 10.5px; color: #047857; font-variant-numeric: tabular-nums; }
.progress-track[b-6910jp1lr1] { margin-top: 14px; padding: 10px 12px; border: 1px solid #eef2f7; border-radius: 9px; background: #fcfdff; }
.progress-head[b-6910jp1lr1] { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.progress-track .progress[b-6910jp1lr1] { margin-top: 0; }
.progress-track small[b-6910jp1lr1] { display: block; margin-top: 6px; font-size: 9.5px; color: var(--muted-2); }
.form-grid[b-6910jp1lr1] { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-grid .field > label[b-6910jp1lr1] { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
html[lang="ar"] .form-grid .field > label[b-6910jp1lr1] { text-transform: none; letter-spacing: 0; font-size: 11px; }
.switch[b-6910jp1lr1] { display: flex; align-items: center; gap: 8px; height: 38px; cursor: pointer; }
.switch input[b-6910jp1lr1] { position: absolute; opacity: 0; pointer-events: none; }
.switch span[b-6910jp1lr1] { width: 34px; height: 20px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .15s; flex: none; }
.switch span[b-6910jp1lr1]::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span[b-6910jp1lr1] { background: var(--accent); }
.switch input:checked + span[b-6910jp1lr1]::after { transform: translateX(14px); }
html[dir="rtl"] .switch input:checked + span[b-6910jp1lr1]::after { transform: translateX(-14px); }
.switch em[b-6910jp1lr1] { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.def-meta[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); padding-bottom: 10px; }
.def-meta > span:not(.badge) + span[b-6910jp1lr1]::before { content: "آ·"; margin-inline-end: 10px; color: #cbd5e1; }
.code[b-6910jp1lr1] { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 16px; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.65; overflow-x: auto; direction: ltr; text-align: left; }
.version[b-6910jp1lr1] { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
.version:first-child[b-6910jp1lr1] { padding-top: 2px; }
.version > div[b-6910jp1lr1] { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.version strong[b-6910jp1lr1] { font-size: 11.5px; font-weight: 600; }
.version span[b-6910jp1lr1] { font-size: 10.5px; color: var(--muted); }
.version small[b-6910jp1lr1] { font-size: 9.5px; color: var(--muted-2); }
.version .link-btn[b-6910jp1lr1] { font-size: 10.5px; }
.v-badge[b-6910jp1lr1] { min-width: 30px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-d); font-size: 10.5px; font-weight: 800; flex: none; }
.v-badge.ghost[b-6910jp1lr1] { background: #f1f5f9; color: var(--muted); }
.version.current[b-6910jp1lr1] { background: #fafbff; border-radius: 9px; padding-inline: 9px; border-bottom-color: transparent; margin-bottom: 2px; }

/* ---------- Print preview modal ---------- */
.print-modal[b-6910jp1lr1] { width: 880px; }
.print-body[b-6910jp1lr1] { background: #eef2f7; padding: 12px 16px 16px; }
.print-toolbar[b-6910jp1lr1] { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.seg[b-6910jp1lr1] { display: flex; border: 1px solid #cbd5e1; border-radius: 7px; overflow: hidden; background: #fff; }
.seg button[b-6910jp1lr1] { border: 0; background: #fff; padding: 5px 11px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.seg button.active[b-6910jp1lr1] { background: var(--ink-2); color: #fff; }
.check[b-6910jp1lr1] { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #475569; font-weight: 500; }
.check input[b-6910jp1lr1] { accent-color: var(--accent); width: 13px; height: 13px; }
.print-hint[b-6910jp1lr1] { margin-inline-start: auto; font-size: 10px; color: var(--muted-2); }
.preview-stage[b-6910jp1lr1] { display: flex; justify-content: center; }
.preview-sheet[b-6910jp1lr1] {
  background: #fff; width: 100%; max-width: 660px; padding: 24px 26px 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .16); border-radius: 2px;
  font-family: var(--font); color: var(--ink);
}
.ps-head[b-6910jp1lr1] { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.ps-head img[b-6910jp1lr1] { width: 28px; height: 28px; border-radius: 7px; }
.ps-head > div:nth-child(2)[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.25; }
.ps-head strong[b-6910jp1lr1] { font-size: 11.5px; }
.ps-head span[b-6910jp1lr1] { font-size: 8.5px; color: var(--muted); }
.ps-meta[b-6910jp1lr1] { margin-inline-start: auto; text-align: end; display: flex; flex-direction: column !important; gap: 1px; }
.ps-meta strong[b-6910jp1lr1] { font-size: 10.5px; font-weight: 700; }
.ps-meta span[b-6910jp1lr1] { font-size: 8px; }
.ps-filterline[b-6910jp1lr1] { font-size: 7.5px; color: var(--muted); margin: 8px 0; padding: 4px 6px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 4px; }
.ps-kpis[b-6910jp1lr1] { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.ps-kpis > div[b-6910jp1lr1] { border: 1px solid #eef2f7; border-radius: 5px; padding: 5px 7px; display: flex; flex-direction: column; }
.ps-kpis small[b-6910jp1lr1] { font-size: 6.8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); font-weight: 600; }
.ps-kpis strong[b-6910jp1lr1] { font-size: 10.5px; font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.ps-table[b-6910jp1lr1] { width: 100%; border-collapse: collapse; font-size: 7.5px; }
.ps-table th[b-6910jp1lr1] { background: #f8fafc; text-align: start; font-size: 6.8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 5px; border-bottom: 1px solid var(--line); }
.ps-table td[b-6910jp1lr1] { padding: 4px 5px; border-bottom: 1px solid #f1f5f9; }
.ps-table .money[b-6910jp1lr1] { text-align: end; font-variant-numeric: tabular-nums; }
.ps-ar[b-6910jp1lr1] { font-family: var(--font-ar); direction: rtl; }

/* ---------- Toasts ---------- */
.toast-stack[b-6910jp1lr1] { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast[b-6910jp1lr1] {
  display: flex; align-items: flex-start; gap: 9px; background: #111827; color: #e5e7eb;
  padding: 10px 12px; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
  font-size: 11.5px; line-height: 1.4; animation: toastIn-b-6910jp1lr1 .22s ease;
}
.toast .t-ico[b-6910jp1lr1] { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(56, 189, 248, .16); color: #7dd3fc; flex: none; }
.toast .t-ico.ok[b-6910jp1lr1] { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.toast .t-ico.warn[b-6910jp1lr1] { background: rgba(244, 63, 94, .16); color: #fda4af; }
.toast svg.i[b-6910jp1lr1] { width: 12px; height: 12px; stroke-width: 2.2; }
.toast.out[b-6910jp1lr1] { animation: toastOut-b-6910jp1lr1 .2s ease forwards; }
@keyframes toastIn-b-6910jp1lr1 { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastOut-b-6910jp1lr1 { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Small utilities ---------- */
.btn:disabled[b-6910jp1lr1] { opacity: .55; cursor: progress; box-shadow: none; }
.chart-bar[b-6910jp1lr1] { cursor: default; }
.chart-bar:hover rect[b-6910jp1lr1] { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .kpi-grid[b-6910jp1lr1] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lineage-stats[b-6910jp1lr1] { gap: 16px; }
}
@media (max-width: 1180px) {
  .filters-grid[b-6910jp1lr1], .filters-advanced[b-6910jp1lr1] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-head[b-6910jp1lr1] { flex-direction: column; gap: 14px; }
  .rh-actions[b-6910jp1lr1] { max-width: none; justify-content: flex-start; }
  .meta-grid[b-6910jp1lr1] { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .app[b-6910jp1lr1] { grid-template-columns: 1fr; }
  .sidebar[b-6910jp1lr1] {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: 260px; height: 100vh;
    transform: translateX(-105%); transition: transform .25s ease; z-index: 60;
  }
  html[dir="rtl"] .sidebar[b-6910jp1lr1] { transform: translateX(105%); }
  .sidebar.open[b-6910jp1lr1] { transform: translateX(0); }
  .sidebar-close[b-6910jp1lr1] { display: inline-grid !important; }
  .menu-btn[b-6910jp1lr1] { display: inline-grid; }
  .topbar[b-6910jp1lr1] { padding: 0 20px; }
  .page[b-6910jp1lr1] { padding: 22px 20px 34px; }
  .report-head[b-6910jp1lr1] { flex-direction: column; gap: 14px; }
  .rh-actions[b-6910jp1lr1] { justify-content: flex-start; max-width: none; }
  .filter-body .filters-grid[b-6910jp1lr1] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .company-pill[b-6910jp1lr1] { display: none; }
  .page-head[b-6910jp1lr1] { flex-direction: column; }
  .page-head-actions[b-6910jp1lr1] { padding-top: 0; }
  .filters-grid[b-6910jp1lr1], .filters-advanced[b-6910jp1lr1] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-body .filters-grid[b-6910jp1lr1] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid[b-6910jp1lr1] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineage-stats[b-6910jp1lr1] { margin-inline-start: 0; width: 100%; padding-top: 4px; }
  .lineage-id[b-6910jp1lr1] { flex-wrap: wrap; }
  .lineage-flow[b-6910jp1lr1] { flex-direction: column; }
  .flow-arrow[b-6910jp1lr1] { justify-content: center; transform: rotate(90deg); }
  html[dir="rtl"] .flow-arrow[b-6910jp1lr1] { transform: rotate(90deg); }
  .table-head[b-6910jp1lr1] { align-items: flex-start; flex-direction: column; }
  .table-tools[b-6910jp1lr1] { width: 100%; justify-content: flex-start; }
  .mini-search[b-6910jp1lr1] { flex: 1; width: auto; }
  .run-foot .live[b-6910jp1lr1] { margin-inline-start: 0; }
  .format-grid[b-6910jp1lr1] { grid-template-columns: 1fr; }
  .toast-stack[b-6910jp1lr1] { inset-inline: 16px; max-width: none; }
}
@media (max-width: 640px) {
  .topbar[b-6910jp1lr1] { height: 62px; gap: 6px; padding: 0 12px; }
  .crumbs[b-6910jp1lr1] { font-size: 11px; }
  .crumbs span:first-child[b-6910jp1lr1], .crumbs .sep[b-6910jp1lr1] { display: none; }
  .topbar-actions[b-6910jp1lr1] { gap: 2px; }
  .lang-toggle[b-6910jp1lr1] { padding: 0 8px; }
  .lang-toggle span[b-6910jp1lr1] { display: none; }
  .page[b-6910jp1lr1] { padding: 16px 14px 30px; }
  .page-head h1[b-6910jp1lr1] { font-size: 22px; }
  .page-head-actions[b-6910jp1lr1] { width: 100%; }
  .page-head-actions .btn[b-6910jp1lr1] { flex: 1; }
  .report-head[b-6910jp1lr1] { padding: 18px 16px; }
  .rh-main h2[b-6910jp1lr1] { font-size: 19px; }
  .rh-main h1.rh-title[b-6910jp1lr1] { font-size: 19px; }
  .rh-actions[b-6910jp1lr1] { gap: 5px; }
  .rh-actions .btn span:not(.btn-count)[b-6910jp1lr1] { display: none; }
  .rh-actions .btn[b-6910jp1lr1] { width: 38px; padding: 0; }
  .rh-actions .btn-count[b-6910jp1lr1] { display: none; }
  .rh-actions .icon-btn[b-6910jp1lr1] { display: none; }
  .filters-grid[b-6910jp1lr1], .filters-advanced[b-6910jp1lr1] { grid-template-columns: 1fr; }
  .filter-body .filters-grid[b-6910jp1lr1] { grid-template-columns: 1fr; }
  .filter-applied[b-6910jp1lr1] { display: none; }
  .filter-foot[b-6910jp1lr1] { align-items: stretch; flex-direction: column; }
  .filter-actions[b-6910jp1lr1] { justify-content: flex-end; }
  .kpi-grid[b-6910jp1lr1] { grid-template-columns: 1fr; }
  .card-head[b-6910jp1lr1] { flex-direction: column; gap: 8px; padding: 14px 14px 10px; }
  .chart-legend[b-6910jp1lr1] { gap: 10px; }
  .table-head[b-6910jp1lr1] { padding-bottom: 10px; }
  .table-tools .mini-search[b-6910jp1lr1] { display: none; }
  .table-foot[b-6910jp1lr1] { padding: 9px 12px; }
  .meta-grid[b-6910jp1lr1] { gap: 12px; }
  .lineage-flow[b-6910jp1lr1] { padding: 10px 14px; }
  .lineage-id[b-6910jp1lr1], .lineage-actions[b-6910jp1lr1] { padding-inline: 14px; }
  .lineage-actions[b-6910jp1lr1] { gap: 10px; }
  .delivery-row[b-6910jp1lr1] { padding-inline: 14px; }
  .delivery-card > .btn[b-6910jp1lr1] { width: calc(100% - 28px); margin-inline: 14px; }
  .modal[b-6910jp1lr1] { max-height: calc(100vh - 20px); }
  .modal.wide[b-6910jp1lr1] { width: 100%; }
  .modal-body[b-6910jp1lr1] { padding: 14px 14px; }
  .modal-head[b-6910jp1lr1], .modal-foot[b-6910jp1lr1] { padding-inline: 14px; }
  .form-grid[b-6910jp1lr1] { grid-template-columns: 1fr; }
  .drawer[b-6910jp1lr1] { width: 100%; max-width: 100%; }
  .preview-sheet[b-6910jp1lr1] { padding: 16px 12px 12px; }
  .ps-kpis[b-6910jp1lr1] { grid-template-columns: 1fr 1fr; }
  .print-modal .modal-foot .foot-note[b-6910jp1lr1] { display: none; }
}

/* ---------- RTL polish ---------- */
html[dir="rtl"] .report-head[b-6910jp1lr1]::before { background: linear-gradient(270deg, var(--accent), var(--sky) 55%, transparent 92%); }
html[dir="rtl"] .delta svg[b-6910jp1lr1] { transform: rotate(-135deg); }
html[dir="rtl"] .data-table .drill-btn svg[b-6910jp1lr1] { transform: rotate(180deg); }
html[dir="rtl"] .table-head .mini-search svg[b-6910jp1lr1], html[dir="rtl"] .filters-grid .input svg:first-child[b-6910jp1lr1] { transform: none; }

/* ---------- Physical print sheet ----------
   The global stylesheet (nexora.css) hides everything except .doc-print when
   printing, so the report sheet below is the only thing the printer sees. */
.rpt-print[b-6910jp1lr1] { display: none; }

@media print {
  .rpt-print[b-6910jp1lr1] { display: block; color: #0f172a; background: #fff; }
  .rpt-print .rp-head[b-6910jp1lr1] { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid #6366f1; }
  .rpt-print .rp-head img[b-6910jp1lr1] { width: 34px; height: 34px; border-radius: 8px; }
  .rpt-print .rp-brand[b-6910jp1lr1] { display: flex; flex-direction: column; line-height: 1.3; }
  .rpt-print .rp-brand strong[b-6910jp1lr1] { font-size: 11pt; }
  .rpt-print .rp-brand span[b-6910jp1lr1] { font-size: 7.5pt; color: #64748b; }
  .rpt-print .rp-title[b-6910jp1lr1] { margin-inline-start: auto; text-align: end; display: flex; flex-direction: column; line-height: 1.3; }
  .rpt-print .rp-title strong[b-6910jp1lr1] { font-size: 10.5pt; }
  .rpt-print .rp-title span[b-6910jp1lr1] { font-size: 7.5pt; color: #64748b; }
  .rpt-print .rp-title.solo[b-6910jp1lr1] { margin: 0; text-align: start; }
  .rpt-print .rp-title.solo strong[b-6910jp1lr1] { font-size: 12pt; }
  .rpt-print .rp-scope[b-6910jp1lr1] { font-size: 7.5pt; color: #475569; background: #f8fafc; border: 1px solid #eef2f7; padding: 4px 6px; margin: 8px 0; }
  .rpt-print .rp-kpis[b-6910jp1lr1] { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
  .rpt-print .rp-kpis > div[b-6910jp1lr1] { border: 1px solid #eef2f7; border-radius: 4px; padding: 6px 8px; display: flex; flex-direction: column; }
  .rpt-print .rp-kpis small[b-6910jp1lr1] { font-size: 7pt; color: #64748b; }
  .rpt-print .rp-kpis strong[b-6910jp1lr1] { font-size: 10pt; font-weight: 700; margin-top: 1px; }
  .rpt-print .rp-kpis em[b-6910jp1lr1] { font-style: normal; font-size: 6.8pt; color: #64748b; margin-top: 1px; }
  .rpt-print .rp-table[b-6910jp1lr1] { width: 100%; border-collapse: collapse; font-size: 7.5pt; table-layout: auto; }
  .rpt-print .rp-table thead[b-6910jp1lr1] { display: table-header-group; }
  .rpt-print .rp-table tr[b-6910jp1lr1] { break-inside: avoid; }
  .rpt-print .rp-table th[b-6910jp1lr1] { background: #f8fafc !important; color: #475569; text-align: start; font-size: 6.8pt; text-transform: uppercase; letter-spacing: .03em; padding: 5px; border-bottom: 1px solid #cbd5e1; print-color-adjust: exact; }
  .rpt-print .rp-table td[b-6910jp1lr1] { padding: 4.5px 5px; border-bottom: 1px solid #eef2f7; }
  .rpt-print .rp-table .money[b-6910jp1lr1] { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .rpt-print .rp-table tfoot td[b-6910jp1lr1] { font-weight: 700; border-top: 1px solid #cbd5e1; }
}

/* Appended: generic hidden-cell support for the column chooser (cells carry data-col). */
#dataTable [hidden][b-6910jp1lr1] { display: none !important; }


.menu-catcher[b-6910jp1lr1] { position: fixed; inset: 0; z-index: 44; }

/* Blazor scopes `:root` away (it never matches), so the prototype tokens live
   on the report wrapper instead — every var() below resolves from here. */
.rpt-root[b-6910jp1lr1] {
  --sidebar: #0f172a;
  --side-surface: #1e293b;
  --side-text: #e2e8f0;
  --side-muted: #64748b;
  --side-link: #cbd5e1;
  --sky: #38bdf8;
  --accent: #6366f1;
  --accent-d: #4f46e5;
  --accent-soft: #eef2ff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --card-line: #eef2f6;
  --bg: #f6f8fb;
  --card: #ffffff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .05);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "DIN Next LT Arabic", "Segoe UI", Tahoma, sans-serif;
}
.filter-drawer[b-6910jp1lr1] { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 92vw); z-index: 1200; background: var(--card); border-inline-start: 1px solid var(--line); box-shadow: -8px 0 24px rgba(15, 23, 42, .12); display: flex; flex-direction: column; }
.filter-drawer-head[b-6910jp1lr1] { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--card-line); }
.filter-drawer-title[b-6910jp1lr1] { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.filter-drawer-title strong[b-6910jp1lr1] { font-size: 14px; }
.filter-drawer-title span[b-6910jp1lr1] { font-size: 11.5px; color: var(--muted); }
.filter-drawer-body[b-6910jp1lr1] { flex: 1; overflow-y: auto; padding: 16px 18px; }
.filter-drawer-foot[b-6910jp1lr1] { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--card-line); }
.filter-drawer-foot .btn[b-6910jp1lr1] { flex: 1; justify-content: center; }
.filter-drawer[b-6910jp1lr1] { transform: translateX(105%); visibility: hidden; transition: transform 0.32s ease, visibility 0s linear 0.32s; }
.filter-drawer.open[b-6910jp1lr1] { transform: translateX(0); visibility: visible; transition: transform 0.32s ease; }
[dir="rtl"] .filter-drawer[b-6910jp1lr1] { transform: translateX(-105%); }
[dir="rtl"] .filter-drawer.open[b-6910jp1lr1] { transform: translateX(0); }
