/* ═════════ TRANSACTION JOURNAL ═════════ */
  .tj-head .tj-f{width:190px}
  .tj-head .tj-st{width:170px}
  .tj-tbl{min-width:1100px;font-size:12.5px}
  .tj-tbl thead th{position:sticky;top:0;z-index:2;background:#09162f;font-size:9.5px;padding:11px 12px 8px;white-space:nowrap}
  body.theme-light .tj-tbl thead th{background:#fff}                 /* light mode: white heading row, like the other lists */
  .tj-tbl thead th.num{text-align:right}
  .tj-h{display:inline-flex;align-items:center;gap:6px}
  th.num .tj-h{flex-direction:row}
  .tj-tbl thead th.sorted .tj-hl::after{content:" ↑";color:var(--cyan-soft)}
  .tj-tbl thead th.sorted[data-dir="desc"] .tj-hl::after{content:" ↓"}
  /* the dropdown button on a heading, like Excel's */
  .tj-dd{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;border:1px solid var(--line-strong);background:rgba(255,255,255,.03);
    color:var(--muted);cursor:pointer;transition:background .2s,border-color .2s,color .2s,box-shadow .2s}
  .tj-dd svg{width:12px;height:12px}
  .tj-dd:hover,.tj-dd.open{color:var(--cyan);border-color:rgba(0,229,255,.6);background:rgba(0,229,255,.1);box-shadow:0 0 0 3px rgba(0,229,255,.1)}
  .tj-dd.on{color:#04101f;background:linear-gradient(135deg,var(--cyan),var(--blue));border-color:transparent}
  body.theme-light .tj-dd{background:#fff}
  body.theme-light .tj-dd.on{color:#fff}
  /* the dropdown panel */
  .tj-pop{position:fixed;z-index:120;width:270px;padding:8px;border-radius:14px;border:1px solid rgba(0,229,255,.35);background:#0a1836;
    box-shadow:0 24px 60px -18px rgba(0,0,0,.75),0 0 0 1px rgba(0,229,255,.06);font-size:12.5px;text-transform:none;letter-spacing:0;color:var(--text)}
  body.theme-light .tj-pop{background:#fff;border-color:rgba(8,145,178,.35);box-shadow:0 24px 60px -20px rgba(15,23,42,.35)}
  .tj-pi{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:none;color:var(--text);font:500 12.5px var(--sans);cursor:pointer;text-align:left}
  .tj-pi svg{width:14px;height:14px;color:var(--muted);flex:none}
  .tj-pi:hover:not(:disabled){background:rgba(0,229,255,.08)}
  .tj-pi:disabled{opacity:.4;cursor:default}
  .tj-pi .tk{margin-left:auto;color:var(--cyan-soft)}
  .tj-psep{height:1px;background:var(--line);margin:6px 2px}
  .tj-pq{position:relative;margin:4px 2px 6px}
  .tj-pq svg{position:absolute;left:10px;top:50%;width:13px;height:13px;transform:translateY(-50%);color:var(--faint)}
  .tj-pq input{width:100%;height:32px;padding:0 10px 0 30px;border-radius:9px;border:1px solid var(--line-strong);background:rgba(255,255,255,.03);color:var(--text);font:500 12.5px var(--sans);outline:none}
  .tj-pq input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(0,229,255,.1)}
  body.theme-light .tj-pq input{background:#fff}
  .tj-pl{max-height:220px;overflow-y:auto;padding:4px;margin:0 2px;border-radius:9px;border:1px solid var(--line)}
  .tj-pc{display:flex;align-items:center;gap:9px;padding:5px 6px;border-radius:7px;cursor:pointer;white-space:nowrap}
  .tj-pc:hover{background:rgba(0,229,255,.06)}
  .tj-pc span{overflow:hidden;text-overflow:ellipsis}
  .tj-pc.all{font-weight:700}
  .tj-pc input{width:15px;height:15px;flex:none;accent-color:#00c6e6;cursor:pointer}
  .tj-pn{padding:10px;color:var(--faint);text-align:center}
  .tj-pf{display:flex;gap:8px;justify-content:flex-end;padding:8px 2px 2px}
  .tj-pf .qbtn{height:34px;padding:0 16px}
  .tj-tbl td{padding:9px 12px;vertical-align:top}
  .tj-tbl .num{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
  .tj-tbl tbody tr{cursor:pointer}
  .tj-tbl tbody tr:hover td{background:rgba(0,229,255,.04)}
  .tj-tbl tbody tr.first td{border-top:1px solid var(--line-strong)}
  .tj-tbl tbody tr.first:first-child td{border-top:0}
  .tj-tbl tbody tr:not(.first) td.g{color:transparent}            /* date / no. / type only on a voucher's first line */
  .tj-tbl tbody tr:not(.first) td.g *{visibility:hidden}
  .tj-tbl .tj-no{font-weight:800;color:var(--cyan-soft);white-space:nowrap}
  .tj-tbl .tj-acc{font-weight:600;min-width:200px}
  .tj-tbl .tj-desc{color:var(--muted);max-width:320px}
  .tj-tbl .tj-desc i{font-style:normal;color:var(--faint)}
  .tj-tbl tr.pend td{opacity:.6}
  .tj-type{display:inline-block;padding:2px 8px;border-radius:6px;font-size:10.5px;font-weight:800;letter-spacing:.06em;white-space:nowrap;
    color:#a8ccff;background:rgba(96,165,255,.1);border:1px solid rgba(96,165,255,.35)}
  body.theme-light .tj-type{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
  .tj-tbl tfoot td{padding:12px;font-weight:800;border-top:1px solid var(--line-strong);background:rgba(0,229,255,.03)}
  .tj-tbl tfoot .ok{color:#59f0b4} .tj-tbl tfoot .bad{color:#ff8aa0}
  body.theme-light .tj-tbl tfoot .ok{color:#047857} body.theme-light .tj-tbl tfoot .bad{color:#be123c}
  @media (max-width:700px){
    .tj-head.coa-head{grid-template-columns:1fr 1fr;grid-template-areas:"search search" "type st" "range range" "reset reset"}
    .tj-head .jv-search{grid-area:search;width:auto;min-width:0;max-width:none}
    .tj-head .tj-f{grid-area:type;width:auto} .tj-head .tj-st{grid-area:st;width:auto}
    .tj-head .jv-range{grid-area:range} .tj-head .jv-range input{width:auto;flex:1;min-width:0}
    .tj-head .jv-reset{grid-area:reset;justify-self:start}
    table.tbl.tj-tbl{min-width:0;width:100%}
    .tj-tbl,.tj-tbl tbody,.tj-tbl tfoot{display:block;width:100%}
    .tj-tbl thead{display:block} .tj-tbl thead tr{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px;border-bottom:1px solid var(--line)}
    .tj-tbl thead th{position:static;padding:5px 6px 5px 10px;border:1px solid var(--line)!important;border-radius:9px}
    .tj-tbl tbody tr,.tj-tbl tfoot tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}
    .tj-tbl td{display:block;border:0!important;padding:0}
    .tj-tbl tbody tr:not(.first) td.g{display:none}
    .tj-tbl td[data-l]::before{content:attr(data-l);display:block;font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);margin-bottom:2px}
    .tj-tbl td.num{text-align:left}
    .tj-tbl .tj-acc,.tj-tbl .tj-desc{grid-column:1/-1;max-width:none}
    .tj-tbl tbody tr:has(td[colspan]){display:block}
  }
