/* --- SCREEN STYLES --- */
header div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header div:first-child p {
  text-align: right;
  font-size: .8em;
}

header div:nth-child(2) {
  text-align: center;
}

header div:nth-child(2) span {
  display: block;
  font-style: italic;
  font-size: .9em;
}

body {
  margin: 0 auto;
  max-width: 8.5in;
  width: 100%;
  font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, sans-serif;
}

.center { text-align: center; }

h1 { font-size: 20px; font-weight: bold; text-align: center; }

.first { font-size: 16px; font-weight: bold; text-align: center; text-decoration: none; }

h2 { font-size: 16px; font-weight: normal; text-decoration: underline; }

.print-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  cursor: pointer;
}

.print-icon img { width: 24px; height: 24px; }

table {
  border: 1px solid #000;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
}

th, td {
  border: 1px solid #000;
  padding: 3px 7px;
  text-align: left;
}
.tableHeader, .tableH1 {display: none;}

/* --- PRINT STYLES --- */
@media print {
  @page {
    size: letter;
    margin: .5in 0.5in 0.5in;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    max-width: none;
    width: auto;
    margin: 0;
  }

  /* Hide the on-screen header during print */
  header {
    display: none !important;
  }

  .print-icon { display: none; }

  /* Table setup for print */
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    border: none;
  }

  thead {
    display: table-header-group; /* repeat table header */
  }

  thead th {
    position: static;
    background: #fff;
    font-weight: bold;
    text-align: left;
    padding: 3px 7px;
  }
  
  .tableHeader,
  .tableH1 {
    display: table-cell !important;
  }
  
  thead th.tableHeader, thead td.tableHeader {
    border: none;
    text-align: center;
    vertical-align: top;
    padding: 0 0 5px 0;
  }
  
  thead th.tableHeader span, thead td.tableHeader span {
    text-align: right;
    font-size: .8em;
  }

  thead th.tableH1 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: none;
    padding: 0 0 5px 0;
  }
  thead th.tableH1 em {
    font-size: .9em;   
  }
  thead th.tableHeader div, thead td.tableHeader div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
  }
  
  thead th.tableH1 div {
    display: block;
    width: 100%;
  }
  
  thead th.tableTH {
    border-top: 1px solid #000;  
  }
  
  tr {
    page-break-inside: avoid;
  }
  
  /* Optional: give more room before first row */
  tbody tr:first-child td {
    padding-top: 4px;
  }
  
  main {
    margin-top: 0; /* no overlap */
  }
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .print-icon {
    top: auto;
    bottom: 20px;
    right: 20px;
  }

  .release { width: 95%; }
  .logoHeader { display: initial; padding: 0; }
  .infoHeader { padding: 0; }
}