/* Podgląd raportu do druku (/panel/raport/podglad): biała kartka A4 niezależna od motywu panelu, pasek działań tylko na ekranie. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.rp{margin:0;background:#5B6770;color:#10222B;font:400 15px/1.45 Arial,Helvetica,sans-serif}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rp-bar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;padding:.6rem 1rem;background:#10222B;color:#fff}
.rp-bar-title{margin:0;font-weight:700;font-size:1.05rem}
.rp-bar-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.rp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.45rem 1.1rem;border:2px solid #fff;border-radius:.5rem;background:transparent;color:#fff;font:700 1rem Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}
.rp-btn:hover{background:#fff;color:#10222B}
.rp-btn:focus-visible{outline:3px solid #FFD54A;outline-offset:2px}
.rp-btn-main{background:#fff;color:#10222B}
.rp-btn-main:hover{background:#D7E3E8}
.rp-sheet{max-width:210mm;margin:1.2rem auto;padding:0 .6rem}
.rp-report{background:#fff;padding:14mm 13mm;margin:0 0 1.2rem;box-shadow:0 2px 14px rgba(0,0,0,.35)}
.rp-org{margin:0;font-size:.8rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4A6370}
.report-title{margin:.2rem 0 1rem;font-size:1.45rem;line-height:1.2}
.report-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.5rem;margin:0 0 1.2rem}
.report-stats .card{display:flex;flex-direction:column;gap:.15rem;padding:.6rem .7rem;background:#E3F0F4;border-left:.3rem solid #0F6E8C}
.report-stats small{font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4A6370}
.report-stats b{font-size:1.25rem;white-space:nowrap}
.report-stats span{font-size:.78rem;color:#4A6370;line-height:1.3;overflow-wrap:anywhere}
.report-table{width:100%;border-collapse:collapse;margin:0 0 1.2rem;font-size:.9rem}
.report-table caption{text-align:left;font-weight:700;font-size:1.1rem;color:#0F6E8C;padding:.3rem 0}
.report-table th,.report-table td{padding:.35rem .5rem;border-bottom:1px solid #DCE6EA;text-align:left;font-weight:400;vertical-align:top}
.report-table thead th{background:#0F6E8C;color:#fff;font-weight:700;font-size:.8rem;border-bottom:0}
.report-table .n{text-align:right;white-space:nowrap}
.report-table thead th:first-child:nth-last-child(-n+4){width:40%}
/* nagłówki mogą się łamać (liczby w wierszach nie), żeby żadna tabela nie wychodziła poza kartkę */
.report-table thead th.n{white-space:normal}
.report-table abbr{text-decoration:none}
/* „Według miesięcy”: na basenie do siedmiu kolumn, więc ciaśniej i mniejszą czcionką (jak w PDF) */
.report-months{font-size:.8rem}
.report-months th,.report-months td{padding:.3rem .35rem}
.report-months tbody th,.report-months tfoot th{white-space:nowrap}
.report-months td.n{white-space:normal}
.report-table tfoot th,.report-table tfoot td{background:#E3F0F4;font-weight:700;border-bottom:0}
.rp-meta{margin:0 0 .8rem;font-size:.8rem;color:#4A6370}
.rp-notes{font-size:.8rem;color:#4A6370}
.rp-notes h3{margin:0 0 .3rem;font-size:.9rem;color:#10222B}
.rp-notes p{margin:0 0 .3rem}
@media (max-width:640px){.rp-report{padding:1rem .8rem}.report-table{font-size:.8rem}.report-table th,.report-table td{padding:.3rem .25rem}.report-table .n{white-space:normal}}
@page{size:A4 portrait;margin:14mm 13mm}
@media print{
  body.rp{background:#fff;font-size:11pt}
  .rp-bar{display:none !important}
  .rp-sheet{max-width:none;margin:0;padding:0}
  .rp-report{padding:0;margin:0;box-shadow:none}
  .rp-report + .rp-report{break-before:page}
  .report-table{break-inside:auto}
  .report-table tr,.report-stats,.rp-notes{break-inside:avoid}
  .report-table thead{display:table-header-group}
  .report-stats .card,.report-table thead th,.report-table tfoot th,.report-table tfoot td{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
