/* Print stylesheet for "Print or save as PDF" (docs/design/reports.md).
   The app is drawn on a canvas, so printing the page itself would give a
   picture of the visible part. While the print dialog is open the app adds a
   plain HTML block, <div id="sd-print-root">, as a direct child of <body>; this
   file hides everything else and lets that block flow over as many pages as it
   needs. On screen the block is never visible (it has an inline display: none
   that the rule below overrides, and it exists only while printing). */
@page { margin: 18mm; }

html, body {
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

/* Everything the app puts in the page (the Flutter view, its helper elements,
   scripts' output) is hidden; only the print block stays. */
body > *:not(#sd-print-root) { display: none !important; }

#sd-print-root {
  display: block !important;
  position: static !important;
  color: #000;
  background: #fff;
  font: 11pt/1.45 Georgia, "Times New Roman", serif;
  orphans: 3;
  widows: 3;
}
#sd-print-root h1 { font-size: 18pt; margin: 0 0 4pt; }
#sd-print-root h2, #sd-print-root h3 {
  font-size: 13pt;
  margin: 14pt 0 4pt;
  break-after: avoid;
  page-break-after: avoid;
}
#sd-print-root p { margin: 0 0 6pt; }
#sd-print-root ul { margin: 0 0 6pt; padding-left: 18pt; list-style: disc outside; }
#sd-print-root li { display: list-item; }
#sd-print-root li { margin: 0 0 3pt; }
#sd-print-root .meta, #sd-print-root .footer { font-size: 9pt; color: #444; }
#sd-print-root .meta { margin: 0 0 2pt; }
#sd-print-root .footer {
  margin-top: 18pt;
  border-top: 1px solid #999;
  padding-top: 6pt;
}
