body {
  background: rgb(204, 204, 204);
}

@page {
  size: auto;
  margin: 0mm;
}

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    text-shadow: none !important;
    filter: none !important;
    -ms-filter: none !important;
  }

  body {
    margin: 0;
    padding: 0;
    line-height: 1.4em;
  }

  nav,
  footer,
  video,
  audio,
  object,
  embed {
    display: none;
  }
  .print {
    display: block;
  }

  .no-print {
    display: none;
  }

  img {
    max-width: 100%;
  }
  aside {
    display: block;
    page-break-before: always;
  }
  .wrap {
    width: 100%;
    margin: 0;
    float: none !important;
  }
  body {
    font: 12pt Georgia, "Times New Roman", Times, serif;
    color: #000;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 14pt;
  }
  q:after {
    content: " (" attr(cite) ")";
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a:link:after,
  a:visited:after {
    content: " (" attr(href) ") ";
  }
  a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }
  p a {
    word-wrap: break-word;
  }
  p {
    widows: 3;
  }
  p {
    orphans: 3;
  }
  .page-break {
    page-break-before: always;
  }
}

@media screen, print {
  .border {
    border: 1px solid;
  }
  
  .border-bottom {
    border-bottom: 1px solid;
  }
  
  .row-padded {
    padding: 35px;
    background-color: #cccccc;
    border: 1px solid #ddd;
  }
  .row-bold {
    font-weight: bold;
  }
  .row-right {
    text-align: right;
  }
}

page {
  background: white;
  display: block;
  margin-bottom: 0.5cm;
  margin: 0 auto;
  padding: 5mm;
  box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
}
page[size="A4"] {
  width: 21cm;
  min-height: 29.7cm;
}
page[size="A4"][layout="landscape"] {
  width: 29.7cm;
  min-height: 21cm;
}
page[size="A3"] {
  width: 29.7cm;
  min-height: 42cm;
}
page[size="A3"][layout="landscape"] {
  width: 42cm;
  min-height: 29.7cm;
}
page[size="A5"] {
  width: 14.8cm;
  min-height: 21cm;
}
page[size="A5"][layout="landscape"] {
  width: 21cm;
  min-height: 14.8cm;
}
