/*
  print.css - Precision A4 Print & PDF Stylesheet
  Matches Sharonply physical QC paper report format exactly
*/

@media print {
  /* Hide all screen UI components */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-header,
  .toolbar-container,
  .app-main,
  .toast-container,
  button {
    display: none !important;
  }

  /* Display only print container */
  #printArea {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  @page {
    size: A4 portrait;
    margin: 12mm 10mm 12mm 10mm;
  }

  .print-page {
    width: 100%;
    box-sizing: border-box;
    font-family: "Arial", "Calibri", sans-serif;
    color: #000000;
  }

  /* Header */
  .print-header {
    position: relative;
    text-align: center;
    margin-bottom: 12px;
  }

  .print-title {
    font-size: 16pt;
    font-weight: bold;
    text-decoration: underline;
    margin: 0;
    letter-spacing: 0.5px;
  }

  .print-date {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 11pt;
    font-weight: bold;
  }

  .print-meta-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 10.5pt;
    padding: 0 4px;
  }

  .print-meta-item strong {
    font-weight: bold;
  }

  /* Table */
  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    line-height: 1.1;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #000000 !important;
    padding: 3px 4px;
    text-align: center;
  }

  .print-table th {
    font-weight: bold;
    background-color: #f2f2f2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    text-transform: uppercase;
    font-size: 9pt;
  }

  .pt-sno {
    width: 7%;
    font-weight: bold;
  }

  .pt-species {
    width: 33%;
    text-align: left !important;
    padding-left: 6px !important;
  }

  .pt-mc {
    font-weight: bold;
    margin-right: 4px;
  }

  .pt-t {
    width: 12%;
  }

  .pt-avg {
    width: 12%;
    font-weight: bold;
  }

  /* Signatures Footer */
  .print-footer-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 35px;
    padding: 0 30px;
  }

  .sig-block {
    text-align: center;
    min-width: 120px;
  }

  .sig-line {
    width: 100%;
    border-bottom: 1px solid #000000;
    margin-bottom: 6px;
    height: 30px;
  }

  .sig-block strong {
    font-size: 10.5pt;
  }
}
