/* A4 document sheet: shared by on-screen preview and printing / Save as PDF. */
.sheet { width: 210mm; min-height: 297mm; box-sizing: border-box; background: #fff; color: #000; margin: 0 auto; }
.sheet p { margin: 0; orphans: 2; widows: 2; word-wrap: break-word; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0 0 6pt 0; }
.sheet td, .sheet th { vertical-align: top; padding: 2pt 4pt; font-weight: 400; text-align: left; }
.sheet table.t-all td, .sheet table.t-all th { border: 1px solid #000; }
.sheet table.t-columns { border: 1px solid #000; }
.sheet table.t-columns td, .sheet table.t-columns th { border-left: 1px solid #000; border-right: 1px solid #000; }
.sheet table.t-columns thead th { border-bottom: 1px solid #000; }
.sheet table.t-none td { padding: 0 0 0 0; }
.sheet thead { display: table-header-group; }
.sheet tr { page-break-inside: auto; }
.pb { page-break-after: always; height: 0; }

@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  #print-area .sheet { margin: 0; box-shadow: none !important; min-height: 0; page-break-after: always; }
  #print-area .sheet:last-child { page-break-after: auto; }
}
#print-area { display: none; }
