/* Lokalny arkusz TYLKO wydruku K05. Bez zmian bazodanowiec.css.
   KALKULATORXXL V10 – implementacja jedynego wzorca PDF: szablon_wydruku_A4_przyklad.pdf.
   18pt to 24px przy referencyjnym przeliczniku CSS 96dpi.
   Nagłówek, sekcje, teksty i tabele współdzielą jeden kontener 100%. */
.kx-print-root { display: none; }
.kx-report, .kx-report * { box-sizing: border-box; }
.kx-report {
  width: 100%; max-width: 100%; margin: 0; padding: 0;
  color: #17304e; background: #fff; font-family: Arial, 'DejaVu Sans', sans-serif;
  font-size: 10pt; line-height: 1.38;
}
.kx-report .kx-report-title {
  box-sizing: border-box; width: 100%; max-width: 100%; background: #102c50; color: #fff;
  padding: 14px 16px; margin: 0 0 24px 0; border: 0; border-radius: 0;
  position: static !important; inset: auto !important; float: none !important;
}
.kx-report .kx-report-title .kx-report-heading { color: #fff; font-size: 17pt; line-height: 1.18; margin: 0; font-weight: 700; }
.kx-report .kx-report-title p { color: #e4efff; font-size: 9pt; margin: 6px 0 0; }
.kx-report .kx-print-section { width: 100%; margin: 0 0 22px 0; padding: 0; }
.kx-report .kx-print-section h2 { color: #102c50; font-size: 12pt; line-height: 1.25; font-weight: 700; margin: 0; padding: 0; border: 0; }
/* WYMÓG: dokładnie 24px = 18pt między końcem nagłówka sekcji a tabelą */
.kx-report .kx-print-section > table { width: 100%; max-width: 100%; margin: 24px 0 0; padding: 0; border-collapse: collapse; border-spacing: 0; table-layout: fixed; }
.kx-report table th, .kx-report table td { border: 1px solid #d3dfeb; padding: 6px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.kx-report table th { background: #eaf2fb; color: #153859; font-weight: 700; }
.kx-report table td:last-child { font-weight: 600; }
.kx-report table tr { break-inside: avoid; page-break-inside: avoid; }
.kx-report .kx-print-note { width:100%; max-width:100%; margin: 10px 0 0; padding: 0; color: #405973; font-size: 9pt; }
.kx-report .kx-print-footer { width: 100%; max-width: 100%; margin: 22px 0 0; padding: 10px 0 0; border-top: 1px solid #cbd8e4; font-size: 8.5pt; color: #46617b; }
@page { size: A4 portrait; margin: 14mm; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body * { visibility: hidden !important; }
  .kx-print-root, .kx-print-root * { visibility: visible !important; }
  /* bazodanowiec.css ustawia body > * {display:none!important}; ID daje wyższy priorytet. */
  body > #sunDayPrintRoot, body > #printRoot, body > .kx-print-root {
    display: block !important; visibility:visible !important;
    height:auto !important; min-height:0 !important; max-height:none !important;
    overflow:visible !important; transform:none !important; box-shadow:none !important;
  }
  .kx-print-root { display: block !important; position: static !important; left: auto !important; top: auto !important; width: 100%; max-width: 100%; padding:0 !important; margin:0 !important; }
  .kx-report { width: 100% !important; max-width: 100% !important; }
  /* Globalne header {position:fixed} nie może przykryć danych raportu. */
  .kx-report > .kx-report-title { position:static !important; display:block !important; }
  .kx-report > .kx-print-footer { position:static !important; display:block !important; }
  .kx-report .kx-report-title, .kx-report th { print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important; }
  .kx-report .kx-report-title { break-inside: avoid; page-break-inside: avoid; }
  .kx-report .kx-print-section h2 { break-after: avoid; page-break-after: avoid; }
  .kx-report .kx-print-section > table { break-inside: auto; page-break-inside: auto; }
  .kx-report .kx-print-note, .kx-report .kx-print-footer { break-inside: avoid; page-break-inside: avoid; }
}
@media screen {
  #astroSunDay .bd_result_value { white-space: normal; overflow-wrap: anywhere; }
}
