/* Shared styles for PrintableView — used by both the web print tab and
   the Electron print window. The Electron window (print.html) has its own
   duplicate of these but the web SPA needs them bundled here. */

.print-area {
  background: white;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #ccc;
  margin: 0 auto;
  padding: 32px;
  width: 8.5in;
  min-height: 11in;
  box-sizing: border-box;
  position: relative;
  border-radius: 8px;
}

.footer-table {
  width: 100%;
  display: table;
  table-layout: fixed;
}

.footer-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  font-size: 11px;
}

.footer-cell.left {
  text-align: left;
}

.footer-cell.right {
  text-align: right;
}

.print-toolbar {
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding-left: 32px;
}

@page {
  size: Letter;
  margin: 0.5in;
}

@media print {
  body,
  html {
    background: white !important;
    padding: 0 !important;
    min-width: unset !important;
    min-height: unset !important;
    display: block !important;
  }

  .print-toolbar,
  button {
    display: none !important;
  }

  .print-area {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0.5in !important;
    display: block !important;
  }
}
