.fw-print-copy { display: none; }
@page fds-work-plan {
  size: A4 landscape;
  margin: 12mm 13mm 14mm;
  @bottom-right {
    content: "Strona " counter(page) " / " counter(pages);
    font: 8pt "Segoe UI", Arial, sans-serif;
    color: #36493f;
  }
}
@media print {
  html:has(body > .fw-print-copy), body:has(> .fw-print-copy) {
    page: fds-work-plan;
    display: block;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 0;
    background: #fff;
  }
  body:has(> .fw-print-copy) > :not(.fw-print-copy) { display: none !important; }
  body > .fw-print-copy {
    page: fds-work-plan;
    display: block;
    color: #17261f;
    font: 10pt/1.28 "Segoe UI", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
  }
  .fw-print-head { margin-bottom: 4mm; break-after: avoid; }
  .fw-print-head h1 { margin: 0 0 1.3mm; font-size: 18pt; letter-spacing: -.025em; }
  .fw-print-head p { margin: .6mm 0; }
  .fw-draft { font-weight: 650; }
  .fw-day { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; margin: 0 0 3mm; }
  .fw-col-time { width: 16%; }
  .fw-col-house { width: 9%; }
  .fw-col-task { width: 31%; }
  .fw-col-team { width: 13%; }
  .fw-day thead { display: table-header-group; break-inside: avoid; break-after: avoid; }
  .fw-day tr { break-inside: avoid; }
  .fw-day :is(th, td) {
    padding: 1.3mm 1.8mm;
    border-bottom: .2mm solid #bbc8bf;
    background: transparent;
    color: inherit;
    font-size: 10pt;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    vertical-align: top;
  }
  .fw-day thead th { font-size: 9pt; font-weight: 650; text-transform: none; letter-spacing: normal; }
  .fw-day .fw-day-heading { font-size: 12pt; border-top: .45mm solid #315544; }
  .fw-day-heading span { font-weight: 500; font-size: 10pt; }
  .fw-day small { display: block; color: #36493f; font-size: 8.5pt; }
  .fw-day .fw-notes { white-space: pre-line; }
}
