/* ═════════ FINANCIAL STATEMENTS ═════════ */
  .rp-head{align-items:flex-start}
  .rp-head{min-height:0;padding-top:16px;padding-bottom:18px}   /* the report's name is already in the top bar */
  .rp-head .coa-tools{justify-content:flex-start;width:100%}
  /* the filter bar stays at the top while the statement scrolls under it (Nov 13) — also the toolbars of the lists */
  .panel.rp-head,.panel.coa-head.jv-head{position:sticky;top:0;z-index:20;background:#0a1733;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 14px 28px -18px rgba(0,0,0,.85)}
  body.theme-light .panel.rp-head,body.theme-light .panel.coa-head.jv-head{background:#fff;box-shadow:0 14px 28px -20px rgba(15,23,42,.35)}
  .rp-f{display:flex;flex-direction:column;gap:5px}
  .rp-f > span{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);padding-left:2px}
  .rp-f .coa-filter{width:auto}
  .rp-f.f-year .coa-filter{width:100px}
  .rp-f.f-per .coa-filter{width:136px}
  .rp-f.f-part .coa-filter{width:150px}
  .rp-f.f-lvl .coa-filter{width:128px}
  .rp-f[hidden]{display:none}
  .rp-zero{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 12px;border-radius:11px;border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--muted);cursor:pointer;user-select:none;align-self:flex-end}
  .rp-zero input{accent-color:#00e5ff;width:15px;height:15px}
  /* the two checkboxes stacked in one column, so the filters stay on one line */
  /* the two checkboxes in one row, one box (Nov 15) */
  .rp-checks{display:flex;align-items:center;height:42px;border:1px solid var(--line);border-radius:11px;align-self:flex-end;overflow:hidden}
  .rp-checks .rp-zero{height:100%;border:0;border-radius:0;padding:0 11px;white-space:nowrap}
  .rp-checks .rp-zero + .rp-zero{border-left:1px solid var(--line)}

  .rp-sheet{width:100%;max-width:1000px;margin:0 auto;padding:34px 40px 40px;box-sizing:border-box}
  .coa-wrap:has(.rp-sheet){overflow-y:auto}
  .rp-top{text-align:center;margin-bottom:24px}
  .rp-top small{display:block;font-size:10.5px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--cyan)}
  .rp-top h2{font-size:23px;font-weight:800;margin-top:6px;text-wrap:balance}
  .rp-top p{font-size:13px;color:var(--muted);margin-top:4px}
  .rp-top .rp-note{font-size:11.5px;color:var(--faint);margin-top:6px}
  .rp-tbl{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
  .rp-tbl th{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);text-align:right;padding:8px 10px;border-bottom:1px solid var(--line)}
  .rp-tbl th:first-child{text-align:left}
  .rp-tbl td{padding:7px 10px;font-size:13.5px;vertical-align:baseline}
  .rp-tbl td.n{text-align:right;font-family:var(--mono);white-space:nowrap;width:170px}
  .rp-tbl td.l{padding-left:calc(10px + var(--d,0) * 20px)}
  .rp-tbl tr.rp-sec td{padding-top:20px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--cyan)}
  .rp-tbl tr.rp-sub td{padding-top:12px;font-size:12px;font-weight:700;color:#9cc2ff}
  .rp-tbl tr.rp-acc:hover td{background:rgba(0,229,255,.04)}
  .rp-tbl tr.rp-acc.rp-par td{font-weight:700}
  .rp-tbl tr.rp-shut td.l{font-weight:700}
  .rp-car{display:inline-grid;place-items:center;width:20px;height:20px;margin:0 2px 0 -22px;vertical-align:-4px;border:0;border-radius:6px;
    background:transparent;color:var(--muted);cursor:pointer;transition:background .2s,color .2s}
  .rp-car svg{width:13px;height:13px;transition:transform .2s}
  .rp-car.open svg{transform:rotate(90deg)}
  .rp-car:hover{color:var(--cyan);background:rgba(0,229,255,.1)}
  body.theme-light .rp-car:hover{color:#0e7490;background:#ecfeff}
  .rp-tbl tr.rp-acc.rp-ctr td.l{color:var(--muted)}
  .rp-tbl tr.rp-tot td{font-weight:700;border-top:1px solid var(--rule)}          /* same color as the double rule */
  .rp-tbl tr.rp-tot td.l{padding-left:10px}
  /* Less: Sales / Purchase Discount, Returns & Allowances — indented, its subtotal sits under it */
  .rp-tbl tr.rp-sub.rp-less td{font-style:italic}
  .rp-tbl tr.rp-gross td{font-weight:700}
  .rp-tbl tr.rp-ni td{font-weight:700}
  /* notes to financial statements */
  .nt{max-width:820px;margin:0 auto}
  .nt-note{padding:20px 0 6px;border-top:1px solid var(--line)}
  .nt-note:first-child{border-top:0}
  .nt-h{display:flex;align-items:center;gap:12px}
  .nt-h h3{flex:1;font-size:15px;font-weight:800;letter-spacing:.01em}
  .nt-no{display:inline-block;min-width:30px;color:var(--cyan-soft)}
  body.theme-light .nt-no{color:#0e7490}
  .nt-edit{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:9px;border:1px solid var(--line-strong);background:none;
    color:var(--muted);font:600 12px var(--sans);cursor:pointer;opacity:.75;transition:opacity .2s,color .2s,border-color .2s}
  .nt-edit svg{width:13px;height:13px}
  .nt-note:hover .nt-edit,.nt-edit:focus-visible{opacity:1}
  .nt-edit:hover{color:var(--cyan);border-color:rgba(0,229,255,.55)}
  .nt-body{padding-left:30px}
  .nt-body p{margin:10px 0 0;font-size:13.5px;line-height:1.7;color:var(--text);text-align:justify}
  .nt-body p b{font-weight:700}
  .nt-sched{padding-left:30px;margin-top:12px}
  .nt-sched small{display:block;font-size:11px;color:var(--faint);margin-bottom:4px}
  .nt-tbl td.l{padding-left:4px}
  .nt-ppe thead th{font-size:9.5px;text-align:right}
  .nt-ta{width:100%;height:auto;min-height:120px;padding:12px 14px;margin-top:10px;line-height:1.6;font:500 13.5px var(--sans);resize:vertical}
  .nt-act{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
  .nt-act span{flex:1;min-width:200px;font-size:11.5px;color:var(--faint)}
  .nt-act .qbtn{height:34px;padding:0 14px}
  .nt-act .nt-del{color:#ff7a8a;border-color:rgba(255,92,112,.4)}
  .nt-act .nt-del:hover{background:rgba(255,92,112,.12)}
  .nt .nt-ti{width:100%;height:40px;margin-top:10px;padding:0 14px;font:700 14px var(--sans)}
  .nt-add-row{display:flex;align-items:center;gap:12px;padding:14px 0 14px 30px;border-top:1px dashed var(--line-strong)}
  .nt-add-row span{font-size:11.5px;color:var(--faint)}
  .nt-add{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border-radius:10px;border:1px dashed rgba(0,229,255,.5);
    background:rgba(0,229,255,.06);color:var(--cyan);font:700 12.5px var(--sans);cursor:pointer;transition:background .2s,border-color .2s}
  .nt-add svg{width:14px;height:14px}
  .nt-add:hover{background:rgba(0,229,255,.14);border-style:solid}
  body.theme-light .nt-add{color:#0e7490;border-color:rgba(14,116,144,.45);background:rgba(14,116,144,.05)}
  .nt-mv{display:inline-flex;gap:4px}
  .nt-mv button{width:28px;height:30px;border-radius:8px;border:1px solid var(--line-strong);background:none;color:var(--muted);font:700 13px var(--sans);cursor:pointer}
  .nt-mv button:hover:not(:disabled){color:var(--cyan);border-color:rgba(0,229,255,.55)}
  .nt-mv button:disabled{opacity:.3;cursor:default}
  .nt-new{background:rgba(0,229,255,.03)}
  @media print{ .nt-add-row,.nt-mv{display:none} }
  @media print{ .nt-edit{display:none} }
  .rp-tbl tr.rp-tot.rp-ltot td{font-weight:600}
  .rp-tbl tr.rp-tot.rp-ltot td.l{padding-left:calc(10px + var(--d,0) * 20px)}
  /* the line over "Total … discount, returns & allowances" runs the full width, level with Net revenue's */
  .rp-tbl tr.rp-big td{font-weight:800;font-size:14.5px;border-top:1px solid var(--line-strong);padding-top:10px;padding-bottom:10px}
  /* the grand total: a double rule across the whole row — a thin line over a thick one */
  .rp-tbl{--rule:rgba(196,216,250,.6)}
  body.theme-light .rp-tbl{--rule:rgba(15,27,51,.72)}
  .rp-tbl tr.rp-big td{border-top-color:var(--rule);border-bottom:3px solid var(--rule);padding-bottom:13px;
    background:linear-gradient(var(--rule),var(--rule)) left bottom 3px / 100% 1px no-repeat}
  .rp-tbl tr.rp-gap td{height:8px;padding:0}
  /* Total current / non-current assets and liabilities: a line under them too, closing the group */
  .rp-tbl tr.rp-subtot td{border-bottom:1px solid var(--rule)}
  .rp-tbl .neg{color:#ff9fb2}
  /* trial balance: Transactions (debit / credit in the period) | Ending balance (debit / credit, used in the statements) */
  .tb-tbl td.n{width:138px}
  .tb-tbl thead tr.tb-grp th{text-align:center;color:var(--cyan-soft);border-bottom:1px solid var(--line-strong);padding-bottom:6px}
  .tb-tbl thead th small{display:block;margin-top:3px;font-size:9.5px;font-weight:600;letter-spacing:.04em;text-transform:none;color:var(--faint)}
  /* unbroken lines: under the headings, and down the whole table between Account | Transactions | Ending balance */
  .tb-tbl thead th{border-bottom:1px solid var(--line-strong)}
  .tb-tbl thead tr.tb-grp th:nth-child(n+2),
  .tb-tbl thead tr:not(.tb-grp) th:nth-child(2),.tb-tbl thead tr:not(.tb-grp) th:nth-child(4),
  .tb-tbl tbody td:nth-child(2),.tb-tbl tbody td:nth-child(4){border-left:1px solid var(--line-strong)}
  .tb-tbl thead tr:not(.tb-grp) th{text-align:right}               /* the Debit / Credit headings line up with their amounts */
  .tb-tbl thead tr:not(.tb-grp) th:first-child{text-align:left}
  /* Assets … Expenses: a filled band, so each group stands out in dark and light mode */
  .tb-tbl tr.rp-sec td{padding-top:9px;padding-bottom:9px;background:rgba(0,229,255,.09);border-top:1px solid rgba(0,229,255,.22);border-bottom:1px solid rgba(0,229,255,.22)}
  body.theme-light .tb-tbl tr.rp-sec td{background:#e0f4fa;border-top-color:#b5e3ef;border-bottom-color:#b5e3ef;color:#0e7490}
  .tb-tbl tr.rp-sec + tr td{padding-top:9px}
  body.theme-light .tb-tbl thead tr.tb-grp th{color:#0e7490}
  .rp-ok{display:flex;justify-content:center;margin-top:18px}
  .rp-ok span{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:700}
  .rp-ok span svg{width:14px;height:14px}
  .rp-ok .ok{color:#6ff7c2;border:1px solid rgba(16,185,129,.55);background:rgba(16,185,129,.12)}
  .rp-ok .off{color:#ff9fb2;border:1px solid rgba(244,63,94,.55);background:rgba(244,63,94,.12)}
  .rp-empty{text-align:center;padding:40px 10px 10px;color:var(--muted);font-size:13.5px}
  .rp-empty b{display:block;color:var(--text);font-size:15px;margin-bottom:6px}
  .rp-she td.n{width:140px}
  /* comparing with the prior year: two amount columns, the prior year in a softer color */
  .rp-tbl.rp-cmp td.n{width:150px}
  .rp-tbl.rp-cmp td.n:last-child,.rp-tbl.rp-cmp thead th:last-child{color:var(--muted)}
  .rp-tbl.rp-cmp td.n.neg:last-child{color:#ff9fb2}
  .rp-tbl.rp-cmp thead th:nth-child(n+2){color:var(--cyan-soft)}
  .rp-tbl.rp-cmp thead th:last-child{color:var(--faint)}
  .tb-tbl tbody td:nth-child(6),.tb-tbl thead tr:not(.tb-grp) th:nth-child(6){border-left:1px solid var(--line-strong)}
  .tb-tbl.tb-cmp td.n{width:118px}
  .rp-she tr.she-yr td{text-transform:none;letter-spacing:.02em;font-size:13px}
  .nt-yr{font-size:11.5px;font-weight:700;color:var(--muted);margin:14px 0 2px}
  .nt-yr:first-child{margin-top:4px}
  .nt-tbl thead th{font-size:10px}
  body.theme-light .rp-tbl.rp-cmp thead th:nth-child(n+2){color:#0e7490}
  body.theme-light .rp-tbl.rp-cmp thead th:last-child{color:#64748b}
  body.theme-light .rp-tbl.rp-cmp td.n.neg:last-child{color:#be123c}
  body.theme-light .rp-tbl tr.rp-sub td{color:#1d4ed8}
  body.theme-light .rp-tbl .neg{color:#be123c}
  body.theme-light .rp-ok .ok{color:#065f46;background:#d1fae5}
  body.theme-light .rp-ok .off{color:#9f1239;background:#ffe4e6}
  @media (max-width:760px){
    .panel.coa-head.rp-head{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:none;gap:10px;align-items:end}
    .rp-head .coa-tools{display:contents}
    .rp-head .rp-f.f-range,.rp-head .rp-f.f-lvl,.rp-head .rp-zero,.rp-head .rp-checks{grid-column:1 / -1}
    .rp-head .rp-checks .rp-zero{flex:1 1 0;min-width:0;justify-content:center;padding:0 6px;gap:6px;font-size:11.5px;white-space:normal;line-height:1.2}
    .rp-head .rp-f,.rp-head .rp-f .coa-filter{width:auto!important;grid-area:auto}
    .rp-head .jv-range{width:100%}
    .rp-head .jv-range input{flex:1;min-width:0}
    .rp-zero{justify-self:start}
    .rp-sheet{padding:22px 14px 26px}
    .rp-tbl td.n{width:auto}
    .rp-scroll{overflow-x:auto}
    .rp-tbl.rp-wide{min-width:560px}
    .rp-tbl.tb-tbl{min-width:760px}
    .rp-tbl td{font-size:12.5px;padding-left:6px;padding-right:6px}
    .rp-tbl td.l{padding-left:calc(6px + var(--d,0) * 12px)}
  }
