html, body { height: auto; color:black; background-color: white; margin: 0 !important; }
body:not(.dev):not(.mce-content-body), #dev_wrap { display:block; }

@page { 
	margin: 0;
	padding: 0;
	size: portrait;
}
@-moz-document { 
    @page {margin:-5mm;}
}
@media screen {
	body.paper  { padding-block: 20px; }
}

@media print {
	body { margin-top:0 !important; padding-top:0 !important; }

	.no-print,
	#read_scroll, #appbar, 
	menu, #navbar, #addBlock, .section-label, .code_file, 
	footer, #dev, #scrollUp { 
		display:none !important; 
	}

	.print-only { display:block !important; }

	#print-title {
		text-align: center;
		margin-top: 20px;
		font-weight: bold;
		font-size: 14pt;
	}

	.print-results { width:96%; margin:20px auto 40px auto; border-radius: 0; }

	.print-results.table_wrap { box-shadow: none !important; border: 1px solid black; border-radius: 0; }

	.print-results.table_wrap div.tbl:first-child,
	.print-results.table_wrap div.tbl:last-child { border-radius: 0; }

	.print-results .tbl.hdr { background-color: black; color:white !important; border-radius: 0; }
	.print-results .tbl.hdr .tblc { color:white; }


	.print-results .tblc { color:black; border-bottom: 1px solid black; }
	.print-results .tblc.o1 { width:40% !important; text-align: left; }

	.print-results .tblc.o2, .print-results .tblc.o3 { border-right: 1px solid black; }
	.print-results .tblc.o2:not(.exct), 
	.print-results .tblc.o3:not(.exct),
	.print-results .tblc.o4:not(.exct) { width:20% !important; }

	.print-results.table_wrap .tbl:not(.hdr) .tblc:last-child { border-right: 0 !important; }
	.print-results.table_wrap .tbl:not(.hdr):last-child .tblc { border-bottom: 0 !important; }

	body.paper { padding-block: 0 !important; }

	/* Fix for FireFox */
	@-moz-document url-prefix() {
		.sheet:first-child { margin-top:-5mm; } 
	}
}


.sheet {
  margin: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  page-break-after: always;
}

/** Paper sizes **/
body.A3               .sheet { width: 297mm; height: 419mm }
body.A3.landscape     .sheet { width: 420mm; height: 296mm }
body.A4               .sheet { width: 210mm; height: 296mm }
body.A4.landscape     .sheet { width: 297mm; height: 209mm }
body.A5               .sheet { width: 148mm; height: 209mm }
body.A5.landscape     .sheet { width: 210mm; height: 147mm }
body.letter           .sheet { width: 216mm; height: 279mm }
body.letter.landscape .sheet { width: 280mm; height: 215mm }
body.legal            .sheet { width: 216mm; height: 356mm }
body.legal.landscape  .sheet { width: 357mm; height: 215mm }

/** Padding area **/
.sheet.padding-5mm  { padding: 5mm 10mm; }
.sheet.padding-10mm { padding: 10mm }
.sheet.padding-15mm { padding: 15mm }
.sheet.padding-20mm { padding: 20mm }
.sheet.padding-25mm { padding: 25mm }

/** For screen preview **/
@media screen {
  body { background: #e0e0e0 }
  .sheet {
    background: white;
    box-shadow: 0 .5mm 2mm rgba(0,0,0,.3);
    margin: 5mm auto;
  }
}

/** Fix for Chrome issue #273306 **/
@media print {
           body.A3.landscape { width: 420mm }
  body.A3, body.A4.landscape { width: 297mm }
  body.A4, body.A5.landscape { width: 210mm }
  body.A5                    { width: 148mm }
  body.letter, body.legal    { width: 216mm }
  body.letter.landscape      { width: 280mm }
  body.legal.landscape       { width: 357mm }
}