/*
 * The application shell is intentionally left screen-first.  This frame is
 * enabled only for a normal browser print of a page rendered from base.html.
 * PDF sheets have their own page-sized frame in app.py.
 */
.print-branding {
  display: none;
}

@media print {
  @page {
    margin: 24mm 14mm 18mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .admin-rail,
  .site-footer,
  .menu-toggle,
  .site-nav {
    display: none !important;
  }

  .wrap {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-branding {
    display: block;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 7pt;
    line-height: 1.1;
  }

  .print-branding-header {
    position: fixed;
    z-index: 2147483647;
    /* Fixed print boxes are positioned from the @page content box. */
    top: -17mm;
    right: 0;
    width: 45mm;
    text-align: right;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .print-branding-header img {
    display: block;
    width: 45mm;
    height: auto;
    margin: 0 0 1.5mm auto;
  }

  .print-branding-footer {
    position: fixed;
    z-index: 2147483647;
    right: 0;
    bottom: -11mm;
    left: 0;
    text-align: center;
    font-size: 8pt;
  }
}