/************** PRINT - TREC **********************/

@media print {
  .heading {
    margin-left: 15px;
    margin-right: 15px;
    font-family: 'Times New Roman', Times, serif;
  }

  .title {
    display: flex;
    flex-direction: row;
    margin-top: 8px;
  }

  .trec-logo {
    width: 100px;
    margin-right: 15px;
    margin-top: 8px;
  }

  .heading-text {
    margin-left: 15px;
    margin-top: 48px;
    padding-top: 0px;
    font-weight: bold;
    font-size: 30px;
    vertical-align: middle;
    text-align: center;
  }

  .information {
    margin-top: 10px;
    margin-bottom: 6px;
    margin-right: 20px;
    border: 3px solid black;
    width: 97%;
    height: 148px;
    font-size: 13.25px;
  }

  .info-container-row {
    display: flex;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 4px;
    margin-bottom: 0px;
    height: 32.5px;
  }

  .info-pair-left {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    width: 56%;
  }

  .info-pair-right {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    width: 44%;
  }

  .info-pair-address {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding: 0px;
    width: 100%;
  }

  .info-top {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    border-bottom: 0.525px solid black;
    height: 16.4px;
  }

  .italicized {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-style: italic;
    font-size: 13px;
    line-height: normal;
  }

  .trec-boilerplate {
    margin-left: 15px;
    margin-right: 15px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
  }

  .bp-title {
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .bp-paragraph {
    line-height: normal;
    text-align: justify;
    margin-top: 0px;
    margin-bottom: 6px;
  }

  p.bp-paragraph {
    font-size: 13px;
  }

  .lists {
    line-height: normal;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .bp-list {
    margin-left: 21px;
    line-height: normal;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .break {
    height: 12px;
  }

  .break2 {
    height: 6px;
  }

  .break3 {
    height: 18px;
  }

  .span {
    margin-bottom: 0px;
    margin-top: 5px;
    line-height: normal;
  }

  .notice-concerning {
    font-weight: bold;
    text-decoration: underline;
    margin-top: 10px;
    padding-top: 5px;
    margin-bottom: 0px;
    line-height: 50px;
    text-align: center;
    vertical-align: bottom;
  }

  #notice-concerning-paragraph {
    font-weight: bold;
    text-decoration: underline;
  }

  #border-break {
    height: 3px;
    width: 98%;
    margin-left: 7px;
    border-bottom: 3px double black;
  }

  #additional-title {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 13.5px;
    line-height: 90%;
  }

  #additional-container {
    box-shadow: inset 1px 1px 1px 1px #555;
    margin-left: 15px;
    width: 96%;
    min-height: 155px;
    font-family: 'Times New Roman', Times, serif;
    padding: 1px 5px 1px 5px;
  }

  #additional-text {
    margin: 1px 0px 1px 0px;
    font-size: 14px;
  }

  .additional-subtitle {
    margin: 2px 0px 1px 0px;
    font-size: 14px;
    font-weight: bold;
  }

  #border-break2 {
    margin-left: 15px;
    width: 96%;
    border-bottom: 2px solid black;
    margin-top: 2px;
    margin-bottom: 0px;
  }

  .trec-inspection-sections {
    font-family: 'Times New Roman', Times, serif;
    margin: 0px 7px 2px 7px;
    padding-top: 0;
    font-size: 13.5;
  }

  .inspection-chapter-title {
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 95%;
  }

  .trec-section {
    margin-bottom: 8px;
  }

  .inspection-section-container {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
  }

  .additional-inspection-section-title {
    font-weight: bold;
    font-size: 13.5px;
    text-align: center;
    padding-top: 0px;
    padding-left: 6px;
    line-height: 90%;
    margin-bottom: 2px;
    padding-bottom: 2px;
  }

  .inspection-section-title {
    font-weight: bold;
    font-size: 13.5px;
    text-align: center;
    padding-top: 0px;
    padding-left: 6px;
    line-height: 90%;
    margin-bottom: 2px;
    padding-bottom: 2px;
  }

  #coliform {
    font-weight: normal;
  }

  .trec-field {
    margin-left: 135px;
    font-style: italic;
    line-height: normal;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    white-space: pre-wrap;
  }

  .trec-field-additional {
    margin-left: 15px;
    font-style: italic;
    line-height: normal;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    white-space: pre-wrap;
  }

  .trec-field-checkbox-container {
    padding-left: 10px;
    padding-bottom: 0px;
    display: inline-block;
  }

  .trec-field-checkbox {
    height: 15px;
    vertical-align: top;
  }

  .trec-section-checkbox-container {
    padding-left: 9px;
    padding-bottom: 0px;
    display: inline-block;
  }

  .trec-section-checkbox {
    height: 18px;
    vertical-align: middle;
  }

  .trec-section-comments {
    margin-left: 135px;
    font-style: italic;
    line-height: normal;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 24px;
    padding-top: 0px;
    padding-bottom: 0px;
    white-space: pre-wrap;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
  }

  .trec-observation {
    font-style: normal;
    white-space: pre-wrap;
    font-size: 14px;
  }

  #trec-modifier {
    font-size: 14px;
  }

  /************** PRINT - Headers ******************/

  /* Special TREC Header */

  /* If a page has the trec header, it has the trec footer too */
  .has-header {
    page: trecHead;
  }

  .trec-pdf-header {
    flow: static(header-html);
    font-size: small;
    text-align: left;
    width: 98vw;
  }

  .rep-id-underline {
    border-top: 1px solid black;
    margin-left: 118px;
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 6px;
    width: 622px;
  }

  .identify {
    margin: 15px 6px 6px 6px !important;
    padding-left: 10px !important;
    font-family: 'Times New Roman', Times, serif !important;
    width: 98vw;
    line-height: 90%;
  }

  .key {
    margin: 9px 7px 0px 7px !important;
    padding-left: 8px !important;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif !important;
  }

  .key-type {
    margin-right: 60px;
  }

  .inspected {
    margin: 4px 7px 0px 12px !important;
    padding-left: 6px !important;
    border: solid 2px black !important;
    width: 96vw;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif !important;
    line-height: 18px;
  }

  .inspected-type {
    margin-right: 15px;
  }

  /************** PRINT - Footers *********************************/

  /* Special TREC Footers */
  .has-trec-footer {
    page: trecFoot;
  }

  .pdf-footer {
    flow: static(footer-html);
    page: trecFoot;
    font-size: small;
    font-family: 'Times New Roman', Times, serif;
  }

  .pdf-footer-page-number {
    flow: static(footer-html);
    page: trecFootWithPage;
    font-size: small;
    font-family: 'Times New Roman', Times, serif;
  }

  .trec-page-number {
    content: 'Page ' counter(page) ' of ' counter(pages);
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
  }

  .footer-line-2 {
    display: flex;
    justify-content: space-between;
    font-size: 13.25px;
    margin-bottom: 2px;
  }

  .REI {
    font-size: 12px;
  }

  .has-trec-page-numbers {
    page: trecFootWithPage;
  }

  /*********************** PRINT - Page Types ************************/

  /* Only footer, no header or page number, only on page 1 */
  @page trecFoot {
    margin-bottom: 40px !important;
    @bottom-left {
      content: flow(footer-html);
    }
  }

  /* Footer with page number but no header, only on page 2 */
  @page trecFootWithPage {
    margin-bottom: 69px !important;
    @bottom-left {
      content: flow(footer-html);
    }
  }

  /* If header then footer & page number too, pages 3 - end */
  @page trecHead {
    margin-top: 130px !important;
    margin-bottom: 69px !important;
    @top-right {
      content: flow(header-html);
    }
    @bottom-left {
      content: flow(footer-html);
    }
  }
}
