header#masthead, #sidebar, #footer, .calendar, .noprint {
  display: none;
}

.header, .header-space {
  height: 1.75in;
}
.footer, .footer-space {
  height: 1in;
}

h3:not(:first-of-type) {
    page-break-before: always;
}

header, footer {
    position: fixed;
    width: 100%;
    text-align: right;
}

footer {
    bottom: 0;
    text-align: center;
    font-size: 10px;
}

.printTemplate td, .printTemplate tr {
  border: 0 !important;
}

.printHeader {
  display:block;
  position:fixed;
  top:0;
  left:0;
  right:0;
}

.printLeft {
  font-size: 0.8rem;
  line-height: 1rem;
  display:inline;
  float:left;
  text-align:center;
}

.printRight {
  font-size: 0.8rem;
  line-height: 1rem;
  display:inline;
  float:right;
  text-align:right;
  border:1px solid #aaa;
  padding: 0.6rem;
  width:33%;
}

.clearHead {
  clear:both;
  display:block;
  padding:0.6rem;
}

.toddHorse {
  float:left;
}

.clearHead hr {
  display:block;
  opacity:.25;
  background-color:#000;
  border-top: solid 1px #000 !important;
}

.printFooter {
  display:block;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  border-top:1px solid #aaa;
  padding-top:0.6rem;
  counter-reset: page;
}

.printFooter .printLeft, .printFooter .printRight {
  font-size:0.7rem;
  line-height:0.7rem;
}

.printFooter .printRight {
  width:33%;
}

.printFooter .printCenter {
  font-size: 0.6rem;
  color: #eee;
  line-height: 0.6rem;
  text-align:center;
}

.page-number:before {
  color:#666;
  counter-increment: page;
  content: "Page: " counter(page);
}

table { page-break-inside:auto }
tr    { page-break-inside:avoid; page-break-after:auto }
thead { display:table-header-group; }
tfoot { display:table-footer-group; }

@media print {
   thead {display: table-header-group;}
   tfoot {display: table-footer-group;}

   button, .btn {display: none;}

   body {margin: 0;}
   
   .normRow div:not(.row) {display:inline-block; font-size:0.8rem; border:1px solid #aaaaaa; border-left: 0; border-top: 0; padding: 0 0.2rem; vertical-align: top; margin:0 0 2px; background-color: #dddddd;}
   .normRow div label {display:block; font-size:0.6rem; font-weight:bold; color:#aaaaaa;}
   .normRow div span {display:block;min-height:1rem;}
   .table > :not(caption) > * > * {padding:0;}
}
