/**
 * @file
 * Print styling
 */

/**
 * By importing this CSS file as media "all", we allow this print file to
 * be aggregated with other stylesheets, for improved front-end performance.
 */
@media print {
  /* things to hide - basically, all but the main div */
  .print-hide
  ,header
  ,div#header-links
  ,div.alert
  ,table.sticky-header
  ,div.region-page-top
  ,div.region-page-bottom
  ,div.region-dashboard-nav
  ,#header
  ,#navigation
  ,#footer
  ,#footer-nh
  ,#master-export-link
  ,fieldset.tables-fieldset>legend
  ,fieldset.tables-fieldset>legend span.fieldset-legend
  ,fieldset.details-fieldset>legend
  ,fieldset.details-fieldset>legend span.fieldset-legend
  ,formfeed
  ,table.rgraph_key
  ,ul.sf-menu
  ,div.messages
  ,.element-invisible
  ,section#block-menu-devel
  ,div.form-item-states
  ,div.form-item-regions
  ,caption a
  ,button
  {
    display:none !important;
  }

  /* things to show */
  .print-show
  ,img.legend-image
  ,h2.measure-details-title
  {
    display:block !important;
  }

  /* adjustments */
  html, body {
    width: 8.5in;
    height: auto;
    padding:0px;
    margin:0px;
  }
  body,
  #page,
  #main,
  #content {
    background-color: white !important;
  }
  canvas, img, table, div.well, img#heatmap-image, img.heatmap-image {
    max-width: 100% !important;
  }
  canvas, img, div.well, thead {
    page-break-inside: avoid;
  }
  div.printbreak {
    page-break-after:always;
  }
  table.sticky-table tr,
  table.sticky-table tr th,
  table.sticky-table tr td {
    border:1px solid #C6C7C9;
  }
  th a[href]:after {
    content: '';
  }
  div.compendium-component {
    width:100% !important;
  }
  fieldset.tables-fieldset,
  fieldset.details-fieldset {
    border:0px;
    margin:0px;
    padding:0px;
  }
  div.printonly-pagebreak {
    page-break-after: always;
  }

  /* further adjustments for landscape printing */
  @media (orientation:landscape) {
    html, body {
      width:100%;
    }
  }
}

