/* Revision 6 — the approved account-chart design, shared by every accounting report. */
html[data-theme] .qp-financial-page {
  --ui-bg:#f7f8fa; --ui-surface:#fff; --ui-surface-raised:#fff; --ui-surface-alt:#f7f8fa;
  --ui-input:#fff; --ui-text:#253446; --ui-muted:#647487; --ui-subtle:#647487; --ui-border:#e6eaee;
  --ui-primary:#08754f; --ui-primary-hover:#076143; --ui-primary-soft:#e9f8f1; --ui-on-primary:#fff;
  --ui-secondary:#8e3465; --ui-secondary-hover:#762653; --ui-secondary-soft:#f6eaf1; --ui-secondary-ink:#8e3465; --ui-on-secondary:#fff;
  --ui-success:#08754f; --ui-success-soft:#e9f8f1; --ui-danger:#b13c55; --ui-danger-soft:#fcedf0;
  --ui-warning:#8a5c16; --ui-warning-soft:#fff8e9; --ui-info:var(--ui-secondary-ink); --ui-info-soft:var(--ui-secondary-soft);
  --ui-radius:22px; --ui-radius-sm:11px; --ui-shadow:0 4px 20px rgba(29,49,68,.045);
  --qp-report-surface:var(--ui-surface); --qp-report-grid:var(--ui-border); --qp-report-root:var(--ui-primary);
  --qp-report-branch:var(--ui-secondary-ink); --qp-report-leaf:var(--ui-text); --qp-report-selected:var(--ui-primary-soft);
  --rz-primary:var(--ui-primary); --rz-primary-dark:var(--ui-primary-hover); --rz-primary-light:var(--ui-primary-soft); --rz-primary-lighter:var(--ui-primary-soft);
  --rz-on-primary:var(--ui-on-primary); --rz-secondary:var(--ui-secondary); --rz-on-secondary:var(--ui-on-secondary);
  --rz-grid-header-background-color:var(--ui-surface-alt); --rz-grid-background-color:var(--ui-surface);
  --rz-grid-cell-color:var(--ui-text); --rz-grid-header-color:var(--ui-muted); --rz-grid-hover-background-color:var(--ui-primary-soft);
  --rz-grid-selected-background-color:var(--ui-primary-soft); --rz-grid-selected-color:var(--ui-primary);
  --rz-input-background-color:var(--ui-input); --rz-input-color:var(--ui-text); --rz-input-border:1px solid var(--ui-border);
  --rz-input-focus-border:1px solid var(--ui-primary); --rz-input-focus-shadow:0 0 0 3px var(--ui-primary-soft);
  --rz-text-color:var(--ui-text); --rz-text-secondary-color:var(--ui-muted); --rz-border-color:var(--ui-border);
  color:var(--ui-text); font-family:var(--ui-font); min-width:0; max-width:1640px; margin-inline:auto; padding:20px 22px 32px;
}
html[data-theme="dark"] .qp-financial-page {
  --ui-bg:#111b24; --ui-surface:#182630; --ui-surface-raised:#1e2d38; --ui-surface-alt:#1e2d38; --ui-input:#14212a;
  --ui-text:#dce7ec; --ui-muted:#a4b5c2; --ui-subtle:#a4b5c2; --ui-border:#30434f;
  --ui-primary:#6de1b9; --ui-primary-hover:#91edcd; --ui-primary-soft:#1b3b36; --ui-on-primary:#0b2e22;
  --ui-secondary:#8e3465; --ui-secondary-hover:#a24277; --ui-secondary-soft:#3c2635; --ui-secondary-ink:#efadd1;
  --ui-success:#6de1b9; --ui-success-soft:#1b3b36; --ui-danger:#ffadbd; --ui-danger-soft:#402733;
  --ui-warning:#e9c381; --ui-warning-soft:#372f20; --ui-shadow:0 4px 20px rgba(0,0,0,.12);
}
html[data-theme] .qp-financial-page .qp-financial-header {
  display:block; border:1px solid var(--ui-border); border-top:3px solid var(--ui-secondary); border-radius:24px;
  background:var(--ui-surface); box-shadow:var(--ui-shadow); padding:22px 24px 12px; margin:0 0 22px;
}
.qp-financial-header__main {display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:20px}
.qp-financial-page .qp-financial-header h1 {font-size:24px;line-height:1.6;margin:0}
.qp-financial-page .qp-financial-header p {margin:7px 0 0;font-size:12px;line-height:1.9;color:var(--ui-muted)}
.qp-financial-title-line {display:flex;align-items:center;gap:12px}
.qp-financial-title-icon {display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--ui-primary-soft);color:var(--ui-primary);font-size:18px;flex-shrink:0}
.qp-financial-page .qp-financial-breadcrumb {margin-bottom:10px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ui-muted)}
.qp-financial-page .qp-financial-breadcrumb a {color:var(--ui-muted)}
.qp-financial-page .qp-financial-header__context {display:grid;text-align:left;gap:6px;font-size:11px;line-height:1.8;flex-shrink:0}
.qp-financial-page .qp-financial-header__context strong {font-size:13px;color:var(--ui-text)}
.qp-financial-page .qp-financial-unit {display:inline-flex;color:var(--ui-muted);font-size:11px;align-items:center;gap:5px}
.qp-financial-tabs {display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;border-top:1px solid var(--ui-border);padding-top:12px}
.qp-financial-tabs a {display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:1 0 auto;padding:11px 13px;min-height:43px;border-radius:13px;color:var(--ui-muted);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.qp-financial-tabs a:hover {background:var(--ui-surface-alt);color:var(--ui-text)}
.qp-financial-tabs a.active {background:var(--ui-secondary-soft);color:var(--ui-secondary-ink)}
.qp-financial-tabs a i {font-size:13px;opacity:.85}
html[data-theme] .qp-financial-page :is(.qp-filter-card,.qp-grid-card,.qp-tree-card,.qp-side-panel,.qp-content-card,.qp-statement-card,.qp-report-account-panel) {background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;box-shadow:var(--ui-shadow);min-width:0}
html[data-theme] .qp-financial-page .qp-filter-card {padding:20px;margin:0 0 20px}
.qp-financial-page :is(.qp-filter-grid,.qp-trial-filters) {gap:16px;align-items:end}
.qp-financial-page .qp-field {min-width:0;display:grid;gap:8px}
.qp-financial-page .qp-field :is(label,.qp-field__label) {font-size:12px;font-weight:600;margin:0;color:var(--ui-muted)}
.qp-financial-page :is(.qp-field__hint,.qp-field-hint,.qp-fiscal-year small) {color:var(--ui-muted);font-size:11px;line-height:1.7}
.qp-financial-page :is(.qp-field input,.qp-field select,.qp-input,.qp-search-inline input,.qp-statement-search input) {border:1px solid var(--ui-border);background:var(--ui-input);color:var(--ui-text);border-radius:11px;min-height:42px;padding:9px 12px;min-width:0;font:inherit;font-size:12px}
.qp-financial-page input::placeholder {color:var(--ui-subtle);opacity:.8}
.qp-financial-page :is(input[type="checkbox"],input[type="radio"]) {accent-color:var(--ui-primary);width:16px;height:16px;min-height:0;padding:0;flex-shrink:0}
.qp-financial-page :is(.qp-btn,.qp-blue-btn,.qp-picker-btn,.qp-tree-tools button,.qp-quick-actions button) {min-height:41px;border-radius:11px;padding:9px 15px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);font-size:12px;font-weight:600;gap:7px;box-shadow:none}
html[data-theme] .qp-financial-page :is(.qp-btn--primary,.qp-btn-primary,.qp-blue-btn) {background:var(--ui-primary);color:var(--ui-on-primary);border-color:var(--ui-primary)}
html[data-theme] .qp-financial-page :is(.qp-btn--primary,.qp-btn-primary,.qp-blue-btn):hover:not(:disabled) {background:var(--ui-primary-hover);border-color:var(--ui-primary-hover)}
.qp-financial-page .qp-btn--compact {min-height:35px;font-size:11px;padding:7px 11px}
.qp-financial-page .qp-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.qp-statement-filter-fields {display:grid;grid-template-columns:minmax(190px,.65fr) minmax(190px,.65fr) minmax(300px,1fr);align-items:end;gap:20px}
.qp-financial-page .qp-statement-filter-actions {justify-content:flex-end;margin:0;align-self:end}
.qp-fiscal-year {align-content:center}.qp-fiscal-year strong {font-size:14px;font-weight:650}
.qp-filter-pending {display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--ui-warning-soft);color:var(--ui-warning);border-radius:10px;margin:16px 0 0;font-size:12px;line-height:1.8}
html[data-theme] .qp-financial-page :is(.qp-stats-grid,.qp-ledger-stats,.qp-kpi-grid) {display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:13px;margin:0 0 20px;border:0;background:transparent;border-radius:0;overflow:visible}
html[data-theme] .qp-financial-page .qp-stats-grid--three {grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-theme] .qp-financial-page :is(.qp-stat-card,.qp-kpi-card) {border:1px solid var(--ui-border)!important;border-radius:18px;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow);padding:18px 20px;display:flex;gap:12px;align-items:center;min-width:0}
html[data-theme] .qp-financial-page .qp-stat-card:has(>span) {display:grid;gap:8px}
html[data-theme] .qp-financial-page .qp-stat-card--accent {background:var(--ui-secondary-soft)!important;border-color:color-mix(in srgb,var(--ui-secondary) 20%,var(--ui-border))!important}
.qp-financial-page :is(.qp-stat-card>span,.qp-stat-card__label,.qp-kpi-card span) {font-size:11px;color:var(--ui-muted)}
.qp-financial-page :is(.qp-stat-card strong,.qp-stat-card__value,.qp-kpi-card strong) {font-size:20px;line-height:1.5;margin:0;color:var(--ui-text);font-variant-numeric:tabular-nums;font-weight:700}
.qp-financial-page .qp-stat-card--accent strong {color:var(--ui-secondary-ink)}
.qp-financial-page .qp-report-scope-bar {display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:9px 18px;padding:14px 18px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);font-size:11px;color:var(--ui-muted);line-height:1.8;margin-bottom:18px}
.qp-report-scope-bar strong {color:var(--ui-text);font-size:12px}.qp-report-scope-bar>span {display:inline-flex;align-items:center;gap:6px}
.qp-statement-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.qp-statement-search {display:flex;align-items:center;gap:8px;min-width:230px;max-width:370px;flex:1;position:relative;color:var(--ui-muted)}
.qp-statement-search input {width:100%;padding-inline-start:36px!important}.qp-statement-search>i {position:absolute;inset-inline-start:13px;font-size:13px;pointer-events:none}
.qp-statement-view-options {display:flex;align-items:center;gap:8px;flex-wrap:wrap}.qp-statement-zero {display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ui-muted);margin-inline-end:8px;cursor:pointer}
.qp-statement-readme {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;color:var(--ui-muted);font-size:11px;line-height:1.8;margin:0 0 14px;padding-inline:3px}
.qp-statement-readme i {color:var(--ui-secondary-ink);margin-inline-end:6px}
.qp-balance-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px}
.qp-balance-column {display:grid;align-content:start;gap:16px;min-width:0}
.qp-balance-side-total {display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid color-mix(in srgb,var(--ui-primary) 20%,var(--ui-border));border-radius:17px;padding:16px 19px;background:var(--ui-primary-soft);color:var(--ui-primary)}
.qp-balance-side-total.is-secondary {background:var(--ui-secondary-soft);color:var(--ui-secondary-ink);border-color:color-mix(in srgb,var(--ui-secondary) 20%,var(--ui-border))}
.qp-balance-side-total>span {font-size:13px;font-weight:700}.qp-balance-side-total>bdi {font-size:23px;font-weight:750;line-height:1.4;white-space:nowrap}
.qp-statement-card {overflow:hidden}
.qp-statement-card-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid var(--ui-border);background:var(--ui-surface)}
.qp-statement-card-head>div {display:flex;align-items:center;gap:10px;min-width:0}
html[data-theme] .qp-financial-page .qp-statement-card-head h2 {font-size:15px;line-height:1.7;margin:0;font-weight:700}
.qp-statement-card-head>bdi {font-size:17px;font-weight:700}.qp-statement-card-icon {color:var(--ui-secondary-ink);width:32px;height:32px;border-radius:10px;background:var(--ui-secondary-soft);display:grid;place-items:center;flex-shrink:0}
.qp-statement-table-wrap {overflow-x:auto;min-width:0}
html[data-theme] .qp-financial-page .qp-compact-statement {width:100%;min-width:0;border-collapse:collapse;table-layout:auto;background:var(--ui-surface);font-size:12px;border:0;margin:0}
html[data-theme] .qp-financial-page .qp-compact-statement :is(th,td) {padding:10px 15px;border:0;border-bottom:1px solid var(--ui-border);vertical-align:middle;background:transparent;color:var(--ui-text);line-height:1.65;height:auto;font-weight:400}
html[data-theme] .qp-financial-page .qp-compact-statement thead th {padding-block:11px;color:var(--ui-muted);background:var(--ui-surface-alt);font-size:10px;font-weight:600;white-space:nowrap}
html[data-theme] .qp-financial-page .qp-compact-statement .qp-statement-amount {text-align:left;white-space:nowrap;width:36%;font-variant-numeric:tabular-nums;min-width:120px}
html[data-theme] .qp-financial-page .qp-compact-statement .qp-statement-section-row :is(td,th) {background:var(--ui-primary-soft);font-weight:650;border-bottom-color:color-mix(in srgb,var(--ui-primary) 10%,var(--ui-border));padding-block:11px}
.qp-statement-section-name,.qp-statement-account-name {display:flex;align-items:center;gap:7px;min-width:0}
.qp-statement-account-name {padding-inline-start:calc(min(var(--statement-depth,1),7)*12px)}
.qp-statement-name {border:0;background:none;color:inherit;padding:2px 0;font:inherit;text-align:right;line-height:1.75;cursor:pointer;display:inline-flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.qp-statement-code {color:var(--ui-muted);font-size:10px;background:var(--ui-surface-alt);padding:2px 5px;border-radius:5px;flex-shrink:0}
.qp-statement-toggle {display:inline-grid;place-items:center;width:23px;height:23px;border-radius:7px;background:var(--ui-surface);border:1px solid var(--ui-border);color:var(--ui-primary);font-size:9px;cursor:pointer;flex-shrink:0}
.qp-statement-leaf {display:inline-block;width:5px;height:5px;margin-inline:9px;border-radius:50%;background:var(--ui-secondary-ink);opacity:.55;flex-shrink:0}
.qp-statement-amount-link {display:inline-flex;align-items:center;justify-content:flex-end;gap:9px;white-space:nowrap;border:0;padding:4px 0;background:none;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;min-height:30px;max-width:100%}
.qp-statement-amount-link i {font-size:9px;opacity:.42;color:var(--ui-secondary-ink)}
.qp-financial-page .qp-statement-amount-link:disabled {opacity:1;color:var(--ui-muted);cursor:default}.qp-statement-amount-link:disabled i {visibility:hidden}
.qp-statement-amount-link:hover:not(:disabled) {color:var(--ui-secondary-ink)}.qp-statement-amount-link:hover i {opacity:1}
html[data-theme] .qp-financial-page .qp-compact-statement .is-branch .qp-statement-name {font-weight:600;color:var(--ui-secondary-ink)}
html[data-theme] .qp-financial-page .qp-compact-statement .qp-statement-account:hover>td,html[data-theme] .qp-financial-page .qp-compact-statement .qp-statement-account:focus-within>td {background:var(--ui-surface-alt)}
html[data-theme] .qp-financial-page .qp-compact-statement :is(tfoot tr,.qp-statement-subtotal)>:is(th,td) {background:var(--ui-secondary-soft);font-weight:700;border-top:1px solid var(--ui-border);padding-block:14px}
html[data-theme] .qp-financial-page .qp-compact-statement .qp-statement-subtotal.is-final>:is(th,td) {background:var(--ui-secondary);color:#fff!important;font-size:16px;padding-block:20px}
html[data-theme] .qp-financial-page .qp-compact-statement .qp-statement-period-result>:is(th,td) {background:var(--ui-surface-alt);font-size:11px}
html[data-theme] .qp-financial-page :is(.is-negative,.qp-negative) {color:var(--ui-danger)!important}
.qp-review-mark {color:var(--ui-warning);font-size:11px;flex-shrink:0}
.qp-financial-page .qp-statement-empty {font-size:11px;color:var(--ui-muted)!important;text-align:center;padding:24px!important}
.qp-statement-reconciliation {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:17px;font-size:12px;margin-top:18px}
.qp-statement-reconciliation>span {display:flex;align-items:center;gap:9px}.qp-statement-reconciliation strong {font-weight:700;font-size:14px}
.qp-statement-reconciliation.is-balanced {color:var(--ui-success);background:var(--ui-success-soft)}.qp-statement-reconciliation.is-unbalanced {color:var(--ui-danger);background:var(--ui-danger-soft)}
.qp-financial-page .qp-financial-footnote {font-size:11px;color:var(--ui-muted);line-height:2;padding:12px 4px;margin:0}
.qp-financial-page :is(.qp-source-notice,.qp-error-box) {border-radius:13px;padding:14px 17px;margin-bottom:16px;font-size:12px;line-height:1.9}
.qp-statement-notices p {margin:4px 0 0}.qp-statement-notices>i {margin-top:5px;flex-shrink:0}
.qp-profit-statement .qp-compact-statement .qp-statement-amount {width:28%!important}
.qp-cashflow-document {max-width:1060px;margin-inline:auto}
.qp-cashflow-opening {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px;border-radius:20px;background:var(--ui-secondary);color:white;margin-bottom:20px;box-shadow:var(--ui-shadow)}
.qp-cashflow-opening>span {display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650}.qp-cashflow-opening strong {font-size:25px;font-weight:750}
.qp-cashflow-section {margin-bottom:18px}.qp-cashflow-step {font-size:22px;font-weight:700;color:var(--ui-border)}
.qp-cashflow-section .qp-statement-card-head,.qp-cashflow-reconcile .qp-statement-card-head {border-bottom:1px solid var(--ui-border);padding:17px 22px}
.qp-cashflow-section .qp-compact-statement :is(td,th) {padding-inline:23px!important;padding-block:12px!important}
.qp-cash-in {color:var(--ui-primary);font-size:10px}.qp-cash-out {color:var(--ui-secondary-ink);font-size:10px}
.qp-cashflow-review {margin:18px 0;border-color:var(--ui-warning)!important}.qp-cashflow-review .qp-statement-card-head {color:var(--ui-warning);background:var(--ui-warning-soft)}
.qp-cashflow-reconcile {margin-top:20px}
.qp-report-view-tabs {display:flex;gap:7px;background:var(--ui-surface);padding:7px;border:1px solid var(--ui-border);border-radius:15px;width:fit-content;margin:0 0 17px}
.qp-report-view-tabs button {padding:10px 18px;border:0;border-radius:10px;background:transparent;color:var(--ui-muted);font-size:12px;font-weight:650;cursor:pointer}
.qp-report-view-tabs button.is-active {background:var(--ui-secondary-soft);color:var(--ui-secondary-ink)}
.qp-report-ledger-layout {display:grid;grid-template-columns:340px minmax(0,1fr);gap:20px;align-items:start}
.qp-report-account-panel {padding:18px;position:sticky;top:14px;overflow:hidden}
.qp-report-account-panel h3 {font-size:14px;margin:0 0 7px}.qp-report-account-panel>p {font-size:11px;line-height:1.9;color:var(--ui-muted);margin-bottom:15px}
.qp-report-account-panel .qp-account-tree-picker {min-width:0}.qp-report-account-panel .qp-tree-picker-panel {border:0;box-shadow:none}
.qp-report-account-panel .qp-actions {margin-top:12px}.qp-report-account-panel .qp-actions .qp-btn {width:100%}
.qp-financial-page .qp-report-breadcrumb {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px;font-size:11px;line-height:1.8}
.qp-report-breadcrumb button {border:0;background:var(--ui-secondary-soft);color:var(--ui-secondary-ink);border-radius:8px;padding:6px 9px;cursor:pointer;font:inherit}
.qp-financial-page .qp-grid-card__head {padding:18px 20px;border-bottom:1px solid var(--ui-border);gap:10px;align-items:center;flex-wrap:wrap}
.qp-financial-page .qp-grid-card__head h3 {font-size:14px;margin:0}.qp-financial-page .qp-grid-card__head p {font-size:11px;color:var(--ui-muted);margin:0;line-height:1.8}
.qp-financial-page .qp-grid-toolbar {padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-bottom:1px solid var(--ui-border)}
.qp-financial-page .qp-grid-toolbar>span {font-size:11px;color:var(--ui-muted);line-height:1.8}
.qp-financial-page .qp-print-head {padding:16px 18px}.qp-financial-page .qp-print-head__sub {font-size:11px;line-height:1.9;color:var(--ui-muted)}
html[data-theme] .qp-financial-page :is(.qp-trial-table,.qp-statement-table,.rz-grid-table) :is(td,th) {padding:11px 12px;border-color:var(--ui-border);line-height:1.8;font-size:12px;background:var(--ui-surface);color:var(--ui-text)}
html[data-theme] .qp-financial-page .qp-report-ledger-layout .rz-grid-table :is(td,th) {padding-inline:6px}
html[data-theme] .qp-financial-page .qp-report-ledger-layout .qp-account-title {white-space:normal;overflow-wrap:anywhere}
html[data-theme] .qp-financial-page :is(.qp-trial-table,.qp-statement-table,.rz-grid-table) thead th {background:var(--ui-surface-alt);color:var(--ui-muted);font-size:11px;font-weight:650;padding-block:12px}
html[data-theme] .qp-financial-page .qp-trial-table .qp-group-head th {color:var(--ui-secondary-ink);background:var(--ui-secondary-soft)}
html[data-theme] .qp-financial-page :is(.qp-trial-table,.qp-statement-table) tfoot :is(td,th) {background:var(--ui-primary-soft);font-weight:700;border-top:2px solid var(--ui-border)}
html[data-theme] .qp-financial-page .qp-trial-section-row>:is(td,th) {background:var(--ui-primary-soft);color:var(--ui-primary);font-weight:650}
html[data-theme] .qp-financial-page :is(.qp-financial-tree-row,.qp-grid-row-selected,.qp-selected-row,.rz-state-highlight):is(.is-selected,.qp-grid-row-selected,.qp-selected-row,.rz-state-highlight)>:is(td,th) {background:var(--ui-primary-soft)!important;color:var(--ui-text)!important}
html[data-theme] .qp-financial-page .rz-data-grid .rz-grid-table tbody tr:is(.qp-grid-row-selected,.qp-selected-row,.rz-state-highlight) :is(.rz-cell-data,.rz-cell-data *) {color:var(--ui-text)!important}
.qp-financial-page :is(.qp-report-node-name,.qp-voucher-link,.qp-row-view,.qp-voucher-number,.qp-code) {color:var(--ui-secondary-ink)}
.qp-financial-page :is(.qp-report-row-code,.qp-type-pill) {color:var(--ui-secondary-ink);background:var(--ui-secondary-soft);border-radius:6px;padding:3px 6px;font-size:10px}
.qp-financial-page .qp-debit {color:var(--ui-primary)}.qp-financial-page .qp-credit {color:var(--ui-secondary-ink)}
.qp-financial-page :is(.qp-daybook-narration,.qp-cashbook-narration,.qp-narration) {font-size:12px;line-height:1.9}
.qp-financial-page .qp-radzen-grid {border:0;border-radius:0;overflow:hidden}.qp-financial-page .rz-paginator {background:var(--ui-surface);padding:14px;border-top:1px solid var(--ui-border);gap:4px}
.qp-financial-page .rz-paginator-page {border-radius:8px;min-width:32px}.qp-financial-page .rz-paginator-page.rz-state-active {background:var(--ui-secondary);border-color:var(--ui-secondary);color:#fff}
.qp-financial-page .qp-grid-footer-summary {background:var(--ui-surface-alt);padding:14px 18px;font-size:12px}
.qp-financial-page .qp-turnover-dialog {width:min(1240px,calc(100vw - 48px));max-height:90svh;border-radius:22px;background:var(--ui-surface);box-shadow:var(--ui-shadow-pop)}
.qp-financial-page .qp-turnover-dialog .qp-voucher-modal__head {background:var(--ui-surface);border-bottom:1px solid var(--ui-border);padding:18px 22px}
.qp-turnover-dialog .qp-voucher-modal__head h3 {margin:0 0 4px;font-size:17px}.qp-turnover-dialog .qp-voucher-modal__head span {color:var(--ui-muted);font-size:11px;line-height:1.8}
.qp-turnover-dialog .qp-voucher-modal__head>button {border:1px solid var(--ui-border);background:var(--ui-surface-alt);color:var(--ui-text);width:35px;height:35px;min-height:35px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.qp-turnover-dialog .qp-voucher-modal__body {padding:20px}.qp-turnover-dialog .qp-stats-grid {margin-bottom:18px!important}
.qp-turnover-dialog .qp-print-meta {display:flex;flex-wrap:wrap;gap:8px 16px;padding:13px 16px;font-size:11px;color:var(--ui-muted);border-bottom:1px solid var(--ui-border)}
.qp-turnover-dialog .qp-opening-row {background:var(--ui-primary-soft);padding:10px 16px;font-size:12px;color:var(--ui-primary)}
.qp-financial-page :is(.qp-empty-box,.qp-loading-box) {min-height:190px;gap:13px;line-height:1.9}
.qp-financial-page :is(button,a,input,select):focus-visible {outline:3px solid var(--ui-secondary-ink);outline-offset:3px}
.qp-financial-page :is(.qp-statement-name,.qp-statement-amount-link):focus-visible {border-radius:4px;outline-offset:4px}
/* Selected chart labels stay legible inside report and account-management pickers. */
html[data-theme] :is(.qp-financial-page,.qp-chart-accounts) .qp-account-tree-picker {--picker-root:var(--ui-text);--picker-branch:var(--ui-secondary-ink);--picker-leaf:var(--ui-primary);--picker-selected:var(--ui-primary-soft)}
html[data-theme] :is(.qp-financial-page,.qp-chart-accounts) .qp-tree-picker__node.is-selected {background:var(--ui-primary-soft)!important;color:var(--ui-text)!important}
html[data-theme] :is(.qp-financial-page,.qp-chart-accounts) .qp-tree-picker__node.is-selected :is(.qp-tree-picker__name,.qp-tree-picker__code,.qp-tree-picker__disclosure,.qp-tree-picker__selected-mark,.qp-tree-picker__detail-context) {color:var(--ui-primary)!important}
.qp-financial-page .qp-report-detail-picker {width:100%;min-width:0}
.qp-financial-page .qp-report-detail-picker .rz-dropdown {width:100%;border-radius:11px}
@media (max-width:1200px) {
  .qp-report-ledger-layout {grid-template-columns:290px minmax(0,1fr);gap:15px}
  .qp-financial-tabs a {font-size:11px;padding-inline:10px}
  .qp-statement-filter-fields {grid-template-columns:1fr 1fr}.qp-statement-filter-actions {grid-column:1/-1;justify-content:flex-start!important}
  .qp-balance-grid {gap:15px}.qp-balance-side-total>bdi {font-size:20px}
  .qp-statement-account-name {padding-inline-start:calc(min(var(--statement-depth,1),6)*9px)}
}
@media (max-width:900px) {
  .qp-balance-grid {grid-template-columns:minmax(0,1fr)}
  .qp-report-ledger-layout {grid-template-columns:minmax(0,1fr)}.qp-report-account-panel {position:static}
  .qp-report-account-panel .qp-tree-picker-tree,.qp-report-account-panel .qp-tree-picker-rows {max-height:310px;overflow:auto}
  .qp-financial-header__main {align-items:flex-start;gap:18px}.qp-financial-page .qp-financial-header__context {max-width:35%;white-space:normal}
}
@media (max-width:640px) {
  html[data-theme] .qp-financial-page {padding:12px 5px 24px}
  html[data-theme] .qp-financial-page .qp-financial-header {padding:17px 15px 10px;border-radius:20px;margin-bottom:16px}
  .qp-financial-header__main {display:block;padding-bottom:14px}.qp-financial-page .qp-financial-header h1 {font-size:21px}
  .qp-financial-page .qp-financial-header__context {display:flex;flex-wrap:wrap;text-align:right;max-width:none;gap:6px 12px;margin-top:14px}
  .qp-financial-page .qp-financial-header__context strong {width:100%}.qp-financial-title-icon {width:36px;height:36px;font-size:15px;border-radius:11px}
  .qp-financial-tabs a {padding:10px 13px;min-height:40px}.qp-financial-tabs {gap:4px}
  html[data-theme] .qp-financial-page .qp-filter-card {padding:15px;border-radius:18px}
  .qp-statement-filter-fields {gap:13px}.qp-statement-filter-fields .qp-field {min-width:0}
  .qp-financial-page .qp-statement-filter-actions {gap:8px}.qp-statement-filter-actions>.qp-btn {flex:1}
  .qp-statement-view-options {width:100%;justify-content:space-between;gap:5px}.qp-statement-zero {font-size:10px;margin-inline-end:0}
  .qp-statement-search {max-width:none;min-width:0}.qp-statement-tools {gap:10px}.qp-statement-tools .qp-btn {font-size:10px;padding-inline:9px}
  .qp-balance-side-total {padding:14px 16px}.qp-balance-side-total>bdi {font-size:22px}.qp-balance-side-total>span {font-size:12px}
  .qp-statement-card-head {padding:14px 15px}.qp-statement-card-head h2 {font-size:14px!important}.qp-statement-card-head>bdi {font-size:15px}
  html[data-theme] .qp-financial-page .qp-compact-statement :is(th,td) {padding:9px 10px;font-size:11px}
  .qp-statement-account-name {padding-inline-start:calc(min(var(--statement-depth,1),6)*6px);gap:4px}.qp-statement-code {font-size:9px;padding-inline:3px}
  .qp-statement-toggle {width:20px;height:20px;font-size:8px}.qp-statement-leaf {margin-inline:7px;width:4px;height:4px}
  .qp-statement-amount-link {gap:5px}.qp-statement-amount-link i {font-size:8px}
  .qp-statement-reconciliation {align-items:flex-start;flex-direction:column;gap:9px;padding:15px}
  html[data-theme] .qp-financial-page .qp-stats-grid--three {grid-template-columns:1fr}
  html[data-theme] .qp-financial-page :is(.qp-stat-card,.qp-kpi-card) {padding:14px 16px;border-radius:15px}
  html[data-theme] .qp-financial-page .qp-stat-card:has(>span) {display:flex;justify-content:space-between}
  .qp-financial-page :is(.qp-stat-card strong,.qp-stat-card__value) {font-size:18px}
  .qp-cashflow-opening {padding:18px;border-radius:17px;align-items:flex-start}.qp-cashflow-opening>span {font-size:12px;gap:8px}.qp-cashflow-opening strong {font-size:22px}
  .qp-cashflow-section .qp-compact-statement :is(th,td) {padding-inline:15px!important}
  .qp-cashflow-section .qp-statement-name {font-size:11px;line-height:1.9}.qp-cashflow-step {font-size:18px}
  html[data-theme] .qp-financial-page.qp-cashflow-page .qp-compact-statement {table-layout:fixed}
  html[data-theme] .qp-financial-page.qp-cashflow-page .qp-compact-statement :is(th,.qp-statement-name) {white-space:normal;overflow-wrap:anywhere;max-width:100%}
  html[data-theme] .qp-financial-page.qp-cashflow-page .qp-compact-statement :is(td,th) {padding-inline:10px!important}
  html[data-theme] .qp-financial-page.qp-cashflow-page .qp-compact-statement .qp-statement-amount {min-width:0;width:42%}
  .qp-financial-page .qp-turnover-dialog {width:100%;max-height:95svh;border-radius:17px}.qp-financial-page .qp-voucher-modal-backdrop {padding:10px}
  .qp-turnover-dialog .qp-voucher-modal__body {padding:13px}.qp-turnover-dialog .qp-voucher-modal__head {padding:14px!important}
  .qp-financial-page .qp-report-scope-bar {padding:12px 14px;gap:5px 12px}
}
@media print {
  .qp-financial-tabs,.qp-statement-tools,.qp-statement-readme,[data-no-export],[data-report-screen] {display:none!important}
  .qp-financial-page [data-report-export] {display:block!important}
  html[data-theme] .qp-financial-page {--ui-text:#111;--ui-surface:#fff;--ui-border:#ccc;padding:0;max-width:none}
  .qp-financial-page .qp-statement-table {min-width:0;table-layout:auto}
  .qp-financial-page .qp-report-scope-bar {border:0;padding:0;margin:0 0 12px;background:#fff}
  .qp-financial-page .qp-financial-footnote {font-size:9px;color:#444}
}

.qp-turnover-detail-filter{display:grid;grid-template-columns:minmax(220px,420px) 1fr;align-items:center;gap:14px;margin:0 0 18px;padding:14px 16px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface-alt);color:var(--ui-text)}.qp-turnover-detail-filter>label{font-size:12px;font-weight:700}.qp-turnover-detail-filter>span{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.9}@media(max-width:640px){.qp-turnover-detail-filter{grid-template-columns:1fr}}
