/* One workspace language for all accounting reports. Geometry modules load before this file. */
html[data-theme] .qp-report-page { color:var(--ui-text); font-family:var(--ui-font); --qp-primary:var(--ui-primary); --qp-text:var(--ui-text); --qp-text-soft:var(--ui-muted); --qp-line:var(--ui-border); }
.qp-report-page .qp-report-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px; margin-bottom:20px; border:1px solid var(--ui-border); border-radius:var(--ui-radius); background:var(--ui-surface); }
.qp-report-hero__content { display:flex; align-items:center; gap:16px; min-width:0; }
.qp-report-hero__icon { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; color:var(--ui-primary); background:var(--ui-primary-soft); font-size:22px; flex-shrink:0; }
.qp-report-hero__actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.qp-report-breadcrumb { display:flex; align-items:center; gap:8px; font-size:11px; margin-bottom:8px; color:var(--ui-muted); }
.qp-report-breadcrumb a { color:var(--ui-muted); }
html[data-theme] .qp-report-page :is(.qp-report-header,.qp-ledger-hero,.qp-pnl-page-head,.qp-trial-page-head,.qp-cashbook-hero,.qp-page-hero) { box-shadow:none; background:var(--ui-surface); color:var(--ui-text); border:1px solid var(--ui-border); }
html[data-theme] .qp-report-page :is(h1,h2,h3,h4,h5) { color:var(--ui-text); }
.qp-report-page :is(.qp-filter-actions,.qp-account-actions) { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.qp-report-page .qp-filter-actions { padding-top:16px; }
.qp-report-page .qp-modal .qp-filter-actions { padding:16px 22px; border-top:1px solid var(--ui-border); }
.qp-report-page .qp-filter-grid { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.qp-report-page :is(.qp-field,.qp-filter-item) small { display:block; color:var(--ui-muted); font-size:11px; margin-top:6px; line-height:1.8; }
.qp-report-page .qp-modal .qp-field { margin-bottom:16px; }
html[data-theme] .qp-report-page :is(.qp-btn,.qp-filter-actions button,.qp-account-actions button) { font-family:inherit; box-shadow:none; text-decoration:none; }
html[data-theme] .qp-report-page :is(.qp-btn--secondary,.qp-btn-secondary,.qp-btn--light,.qp-btn--ghost,.qp-btn-light,.qp-btn-outline) { background:var(--ui-surface); border-color:var(--ui-border); color:var(--ui-text); }
html[data-theme] .qp-report-page .qp-btn:not(:disabled):hover { border-color:var(--ui-primary); }
html[data-theme] .qp-report-page :is(.qp-btn-primary,.qp-btn--primary):not(:disabled):hover { background:var(--ui-primary-hover); }
.qp-report-page :is(button,a,input,select):focus-visible { outline:2px solid var(--ui-primary); outline-offset:3px; }
.qp-report-page .qp-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin:18px 0; }
html[data-theme] .qp-report-page :is(.qp-stat-card,.qp-kpi-card) { box-shadow:none; border-color:var(--ui-border); background:var(--ui-surface); border-radius:12px; }
.qp-report-page .qp-stat-card { flex-wrap:wrap; }
.qp-report-page .qp-stat-card > :is(span,strong,small) { flex-basis:100%; }
.qp-report-context { color:var(--ui-muted); font-size:12px; line-height:1.9; }
.qp-report-page :is(.qp-table-head,.qp-table-header) { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 20px; border-bottom:1px solid var(--ui-border); }
.qp-report-page .qp-table-card { overflow-x:auto; margin-bottom:20px; }
.qp-report-table { width:100%; border-collapse:collapse; font-size:12px; }
html[data-theme] .qp-report-page table thead th { background:var(--ui-surface-alt); color:var(--ui-muted); }
.qp-report-page .qp-report-table thead th { position:sticky; top:0; z-index:1; }
.qp-report-page table tbody tr:nth-child(even) { background:color-mix(in srgb,var(--ui-surface-alt) 55%,transparent); }
html[data-theme] .qp-report-page table tbody tr:hover { background:var(--ui-primary-soft); }
.qp-report-page :is(.qp-money,.qp-number,.qp-account-code) { font-variant-numeric:tabular-nums; direction:ltr; unicode-bidi:isolate; white-space:nowrap; }
.qp-report-page :is(td.qp-money,td.qp-number) { text-align:left; }
.qp-report-page .qp-account-code { width:110px; color:var(--ui-muted); }
.qp-report-state { padding:20px; border:1px solid var(--ui-border); border-radius:12px; margin-bottom:16px; background:var(--ui-surface-alt); color:var(--ui-muted); line-height:1.9; }
.qp-report-state.is-error,.qp-report-state--error { color:var(--ui-danger); background:var(--ui-danger-soft); border-color:color-mix(in srgb,var(--ui-danger) 35%,var(--ui-border)); }
.qp-report-state.is-warning { color:var(--ui-warning); background:var(--ui-warning-soft); border-color:color-mix(in srgb,var(--ui-warning) 35%,var(--ui-border)); }
.qp-report-state.is-success { color:var(--ui-success); background:var(--ui-success-soft); }
.qp-report-state .qp-btn { margin-inline-start:10px; }
.qp-report-page .qp-empty { text-align:center; padding:44px 24px; color:var(--ui-muted); }
.qp-empty > i { font-size:28px; display:block; margin-bottom:16px; }
.qp-empty h2 { margin-bottom:8px; }
.qp-empty p { margin-bottom:18px; }
.qp-modal-close { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--ui-border); border-radius:8px; color:var(--ui-text); background:var(--ui-surface-alt); font-size:24px; }
.qp-modal-summary { display:flex; flex-wrap:wrap; gap:16px; padding:16px; background:var(--ui-surface-alt); border-radius:8px; }
.qp-account-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:16px 0; }
.qp-account-toolbar .qp-report-search { flex:1; min-width:230px; }
.qp-account-node { display:flex; align-items:center; gap:10px; min-width:220px; }
.qp-tree-leaf { width:26px; flex-shrink:0; }
.qp-account-root { font-weight:700; }
.qp-account-master .qp-account-tree { min-width:720px; }
.qp-account-master .qp-account-code { direction:ltr; text-align:right; width:120px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.qp-account-master .qp-account-root > td { background:var(--ui-primary-soft); color:var(--ui-text); font-weight:700; }
.qp-account-master .qp-account-ledger-row > td { background:color-mix(in srgb,var(--ui-surface-alt) 45%,var(--ui-surface)); }
.qp-account-master .qp-account-ledger-row .qp-account-node > i { color:var(--ui-muted); }
.qp-account-master .qp-account-ledger-toggle { display:inline-flex; align-items:center; gap:8px; color:var(--ui-muted); font-size:12px; white-space:nowrap; cursor:pointer; }
.qp-account-master .qp-account-ledger-toggle input { width:17px; height:17px; accent-color:var(--ui-primary); }
.qp-account-master .qp-account-actions { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.qp-account-master .qp-account-actions .qp-btn { min-height:34px; padding:6px 9px; font-size:11px; }
.qp-account-badge { display:inline-flex; align-items:center; border:1px solid var(--ui-border); background:var(--ui-surface-alt); color:var(--ui-muted); border-radius:6px; padding:4px 8px; font-size:11px; white-space:nowrap; font-weight:500; }
.qp-account-master .qp-report-badge { display:inline-flex; padding:4px 7px; color:var(--ui-muted); background:var(--ui-surface-alt); border-radius:6px; font-size:11px; }
.qp-account-master .qp-report-warning { display:block; padding:4px 7px; margin-top:4px; color:var(--ui-warning); background:var(--ui-warning-soft); border-radius:6px; font-size:11px; }
.qp-account-master .qp-field-hint { display:block; color:var(--ui-muted); font-size:11px; margin:6px 0; line-height:1.8; }
.qp-report-page #printable-form > .qp-report-context { padding:18px 20px; border-bottom:1px solid var(--ui-border); }
.qp-report-page #printable-form > .qp-report-context span { display:inline-block; margin-inline-end:18px; }
.qp-account-master .qp-ledger-link-info { display:grid; gap:5px; }
.qp-account-master .qp-ledger-link-info small { color:var(--ui-muted); }
.qp-account-master .qp-ledger-link-warning { display:inline-flex; color:var(--ui-warning); background:var(--ui-warning-soft); border-radius:6px; padding:3px 7px; font-size:11px; }
/* The account chart keeps the compact, three-column accounting tree. */
.qp-chart-accounts .section-body > .row > .col-12 > .card { border:0; border-radius:0; box-shadow:none; }
.qp-chart-accounts .section-body > .row > .col-12 > .card > .card-body { padding:0; }
.qp-chart-accounts .rz-tabview-panels { padding:0; }
.qp-chart-accounts .qp-chart-toolbar { padding:7px 0; gap:8px; }
.qp-chart-accounts .qp-chart-toolbar .qp-report-search { min-height:30px; border-radius:3px; padding:0 8px; }
.qp-chart-accounts .qp-chart-toolbar .qp-report-search input { padding:5px 0; font-size:12px; }
.qp-chart-accounts .qp-chart-toolbar .qp-btn { min-height:30px; padding:4px 9px; border-radius:3px; font-size:11px; }
.qp-chart-accounts .qp-chart-toolbar .qp-account-ledger-toggle { font-size:11px; gap:5px; }
.qp-chart-accounts .qp-chart-toolbar .qp-account-ledger-toggle input { width:14px; height:14px; accent-color:#168de2; }
.qp-chart-accounts .qp-chart-review { margin:0 0 6px; padding:3px 6px; color:#866319; font-size:11px; }
.qp-chart-accounts .qp-chart-review summary { width:fit-content; cursor:pointer; }
.qp-chart-accounts .qp-chart-review ul { margin:4px 0; padding-inline-start:22px; line-height:1.8; }
.qp-chart-accounts .qp-chart-table-wrap { width:100%; overflow:auto; border:0; border-radius:0; box-shadow:none; }
.qp-chart-accounts .qp-chart-tree-table { width:100%; min-width:620px; table-layout:fixed; border-collapse:collapse; border:1px solid #dadada; font-size:12px; line-height:22px; direction:rtl; }
.qp-chart-accounts .qp-chart-account-column { width:auto; }
.qp-chart-accounts .qp-chart-detail-column { width:100px; }
.qp-chart-accounts .qp-chart-classification-column { width:200px; }
html[data-theme] .qp-chart-accounts .qp-chart-tree-table :is(th,td) { height:35px; padding:3px 7px; border:1px solid #dadada; vertical-align:middle; text-align:right; color:#202b3b; background:#fff; font-weight:400; box-sizing:border-box; }
html[data-theme] .qp-chart-accounts .qp-chart-tree-table thead th { height:34px; color:#87909b; background:#fff; font-size:12px; position:static; }
html[data-theme] .qp-chart-accounts .qp-chart-tree-table tbody :is(tr:nth-child(even),tr:hover) { background:#fff; }
html[data-theme] .qp-chart-accounts .qp-chart-tree-table tbody tr:hover > td { background:#f9fbfd; }
.qp-chart-accounts .qp-chart-node { display:flex; align-items:center; gap:4px; min-width:0; min-height:27px; padding-inline-start:calc(var(--qp-chart-level,0) * 18px); }
.qp-chart-accounts .qp-chart-tree .qp-chart-name { display:inline; min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; color:#0788e3; font:inherit; font-weight:600; line-height:22px; text-align:right; text-decoration:none; overflow-wrap:anywhere; }
.qp-chart-accounts .qp-chart-tree button.qp-chart-name { cursor:pointer; }
.qp-chart-accounts .qp-chart-tree button.qp-chart-name:hover { color:#056cae; text-decoration:underline; }
.qp-chart-accounts .qp-account-root .qp-chart-name { color:#111; font-weight:700; }
.qp-chart-accounts .qp-chart-tree :is(.qp-chart-disclosure,.qp-chart-leaf,.qp-chart-lock) { display:inline-grid; place-items:center; width:12px; min-width:12px; height:18px; min-height:0; margin:0; padding:0; flex:0 0 12px; border:0; border-radius:0; box-shadow:none; background:transparent; color:#979797; font-size:10px; line-height:1; }
.qp-chart-accounts .qp-chart-tree .qp-chart-disclosure { cursor:pointer; }
.qp-chart-accounts .qp-chart-tree .qp-chart-disclosure:hover { color:#263546; }
.qp-chart-accounts .qp-chart-tree .qp-chart-lock { color:#111; font-size:9px; }
.qp-chart-accounts .qp-chart-tree-table .qp-chart-classification { white-space:normal; }
.qp-chart-accounts .qp-chart-row-actions { display:inline-flex; align-items:center; gap:2px; margin-inline-start:10px; opacity:0; }
.qp-chart-accounts .qp-chart-tree-table tr:is(:hover,:focus-within) .qp-chart-row-actions { opacity:1; }
.qp-chart-accounts .qp-chart-row-actions button { display:inline-grid; place-items:center; width:22px; height:22px; min-height:0; padding:0; margin:0; border:0; border-radius:2px; box-shadow:none; background:transparent; color:#7b8694; font-size:10px; }
.qp-chart-accounts .qp-chart-row-actions button:hover { color:#0788e3; background:#eef6fc; }
.qp-chart-accounts .qp-chart-tree :is(button,input):focus-visible { outline:2px solid #0788e3; outline-offset:2px; }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree-table { border-color:var(--ui-border); }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree-table :is(th,td) { border-color:var(--ui-border); background:var(--ui-surface); color:var(--ui-text); }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree-table thead th { background:var(--ui-surface); color:var(--ui-muted); }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree-table tbody tr:hover > td { background:var(--ui-surface-alt); }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree .qp-chart-name { color:#83c4ff; }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree .qp-account-root .qp-chart-name,
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree .qp-chart-lock { color:var(--ui-text); }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-tree .qp-chart-disclosure,
html[data-theme="dark"] .qp-chart-accounts .qp-chart-row-actions button { color:var(--ui-muted); }
html[data-theme="dark"] .qp-chart-accounts .qp-chart-review { color:var(--ui-warning); }
@media (hover:none) { .qp-chart-accounts .qp-chart-row-actions { opacity:1; } }
@media (max-width:700px) {
    .qp-chart-accounts .qp-chart-detail-column { width:76px; }
    .qp-chart-accounts .qp-chart-classification-column { width:160px; }
    .qp-chart-accounts .qp-chart-tree-table { min-width:580px; }
}
.qp-report-page .qp-report-search { display:flex; align-items:center; gap:10px; min-height:44px; border:1px solid var(--ui-border); border-radius:9px; padding:0 13px; background:var(--ui-input); color:var(--ui-muted); }
.qp-report-search input { width:100%; min-width:0; padding:11px 0; border:0; outline:0; color:var(--ui-text); background:transparent; font:inherit; font-size:13px; }
.qp-report-search:focus-within { border-color:var(--ui-primary); box-shadow:0 0 0 3px var(--ui-primary-soft); }
.qp-report-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0 0 24px; }
.qp-report-shortcuts > a { display:flex; align-items:center; gap:14px; padding:20px; background:var(--ui-surface); border:1px solid var(--ui-border); border-radius:12px; color:var(--ui-text); text-decoration:none; transition:border-color .15s; }
.qp-report-shortcuts > a > i:first-child { font-size:22px; color:var(--ui-primary); }
.qp-report-shortcuts > a > i:last-child { margin-inline-start:auto; color:var(--ui-muted); font-size:12px; }
.qp-report-shortcuts :is(strong,span) { display:block; }
.qp-report-shortcuts strong { font-size:14px; margin-bottom:6px; }
.qp-report-shortcuts span { font-size:11px; color:var(--ui-muted); }
.qp-report-shortcuts > a:hover { border-color:var(--ui-primary); }
.qp-report-hub-toolbar { display:grid; gap:16px; margin-bottom:14px; }
.qp-report-hub-toolbar .qp-report-search { max-width:540px; }
.qp-report-categories { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:14px; border-bottom:1px solid var(--ui-border); }
.qp-report-categories button { padding:8px 13px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--ui-muted); font:inherit; font-size:12px; }
.qp-report-categories button.is-active { color:var(--ui-primary); border-color:var(--ui-border); background:var(--ui-primary-soft); font-weight:700; }
.qp-report-categories button:hover { color:var(--ui-primary); }
.qp-report-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:start; margin-top:16px; }
.qp-report-category { background:var(--ui-surface); border:1px solid var(--ui-border); border-radius:12px; overflow:hidden; }
.qp-report-category > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:18px; background:var(--ui-surface-alt); border-bottom:1px solid var(--ui-border); }
.qp-report-category > header > div { display:flex; align-items:center; gap:10px; }
.qp-report-category > header i { color:var(--ui-primary); }
.qp-report-category > header h2 { margin:0; font-size:14px; }
.qp-report-category > header span { color:var(--ui-muted); font-size:11px; }
.qp-report-catalog-link { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; border-bottom:1px solid var(--ui-border); color:var(--ui-text); text-decoration:none; }
.qp-report-catalog-link:last-child { border-bottom:0; }
.qp-report-catalog-link h3 { margin:0 0 5px; font-size:13px; }
.qp-report-catalog-link p { font-size:11px; line-height:1.8; }
.qp-report-catalog-link > i { color:var(--ui-subtle); font-size:11px; }
.qp-report-catalog-link:hover { background:var(--ui-primary-soft); }
.qp-report-catalog-link:hover :is(h3,i) { color:var(--ui-primary); }
.qp-report-export-surface { --ui-bg:#fff; --ui-surface:#fff; --ui-surface-alt:#f1f3f6; --ui-text:#17202c; --ui-muted:#556273; --ui-border:#d2d7df; --ui-primary:#315f9b; --ui-primary-soft:#edf3fc; --ui-success:#136544; --ui-danger:#aa2332; --ui-warning:#805700; --ui-warning-soft:#fff4d8; --ui-info:#275a9f; background:#fff; color:#17202c; padding:20px; width:1100px; direction:rtl; }
.qp-report-export-surface :is(table,.table) { width:100%; border-collapse:collapse; }
.qp-report-export-surface :is(th,td) { padding:8px; border:1px solid #d2d7df; color:#17202c; background:#fff; font-size:11px; }
.qp-report-export-surface th,.qp-report-export-surface tfoot td { background:#f1f3f6; font-weight:bold; }
@media(max-width:1100px) { .qp-report-catalog { grid-template-columns:repeat(2,minmax(0,1fr)); } .qp-report-shortcuts { gap:10px; } .qp-report-shortcuts > a { padding:16px; } }
@media(max-width:700px) { .qp-report-page .qp-report-hero { flex-direction:column; align-items:stretch; padding:18px; } .qp-report-hero__actions { justify-content:flex-start; } .qp-report-catalog,.qp-report-shortcuts { grid-template-columns:minmax(0,1fr); } .qp-report-page .qp-filter-grid { grid-template-columns:minmax(0,1fr); } .qp-report-page .qp-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .qp-account-toolbar .qp-report-search { flex-basis:100%; } .qp-report-shortcuts > a { padding:14px 18px; } }
@media(prefers-reduced-motion:reduce) { .qp-report-page * { scroll-behavior:auto!important; transition:none!important; } }
@media print {
    @page { size:A4 landscape; margin:12mm; }
    html[data-theme] .qp-report-page { --ui-surface:#fff; --ui-surface-alt:#f3f4f6; --ui-text:#111; --ui-muted:#444; --ui-border:#ccc; color:#111; background:#fff; padding:0; }
    .qp-report-page :is(.qp-filter-card,.qp-filter-strip,.qp-filter-actions,.qp-quick-actions,.qp-report-hero__actions,.qp-actions,.qp-actions-wrap,.qp-tree-tools,.qp-grid-toolbar,.rz-paginator,.qp-report-breadcrumb,.qp-tree-toggle,.qp-report-categories,.qp-report-hub-toolbar,button,[data-report-screen]) { display:none!important; }
    .qp-report-page [data-report-export] { display:block!important; }
    .qp-report-page :is(.qp-table-card,.qp-grid-card,.qp-table-shell,.qp-table-wrap,.qp-bs-table-wrap) { overflow:visible!important; box-shadow:none; border-radius:0; }
    .qp-report-page table { width:100%; min-width:0!important; font-size:9pt; }
    .qp-report-page thead { display:table-header-group; }
    .qp-report-page tfoot { display:table-row-group; }
    .qp-report-page tr { break-inside:avoid; }
    .qp-report-page table thead th { position:static; }
    .qp-report-page .hidden { display:table-row!important; }
    .qp-report-page :is(.qp-report-hero,.qp-report-header,.qp-ledger-hero) { border:0; padding:0 0 12px; margin-bottom:12px; }
}

/* Shared spacing for inventory and older operational reports. */
.qp-report-page :is(.qp-stat-grid,.qp-stats-grid,.qp-ledger-stats,.qp-kpi-grid,.qp-voucher-top-cards){gap:20px!important}.qp-report-page:not(.qp-financial-page) :is(.qp-filter-card,.qp-report-hero,.qp-grid-card,.qp-table-card,.qp-stat-grid,.qp-stats-grid)+:is(.qp-filter-card,.qp-report-hero,.qp-grid-card,.qp-table-card,.qp-stat-grid,.qp-stats-grid){margin-top:24px}.qp-report-page .qp-grid-card__head{padding:22px}.qp-report-page .qp-grid-card{border-radius:18px}.qp-report-page .qp-stat-card{padding:21px;border-radius:17px!important}.qp-report-page .qp-grid-scroll-shell{padding:0 4px}.qp-report-page .qp-report-hero{padding:27px;border-radius:20px}.qp-report-page:not(.qp-financial-page)>.qp-filter-card{margin-bottom:24px}.qp-report-page .qp-stats-grid--inventory-flow{margin-block:24px}.qp-report-page :is(.qp-kpi-card,.qp-stat-card)>small{line-height:1.8}@media(max-width:700px){.qp-report-page :is(.qp-stat-grid,.qp-stats-grid,.qp-ledger-stats,.qp-kpi-grid){gap:13px!important}.qp-report-page .qp-stat-card{padding:17px}.qp-report-page .qp-report-hero{padding:20px;align-items:flex-start;flex-direction:column}.qp-report-page .qp-report-hero__actions{justify-content:flex-start}}
