/* GAINVO v4.7.1 — resilient document table-header contrast.
   Modern and Compact documents must remain legible when an exporter, PDF
   viewer or printer lightens/removes background colours. */

.receipt-paper.template-modern .receipt-items thead th,
.receipt-paper.template-compact .receipt-items thead th{
  background:#e8f1f2!important;
  color:#17343b!important;
  border-top:2px solid var(--receipt-brand,#0f766e)!important;
  border-bottom:1px solid #b9cbd0!important;
  font-weight:900!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact
}

.receipt-paper.template-modern .receipt-items thead th:first-child,
.receipt-paper.template-compact .receipt-items thead th:first-child{
  padding-left:11px!important
}

/* Keep the same deterministic colours on off-screen Image/PDF clones and
   public secure documents, independent of device colour preferences. */
.document-export-mode.template-modern .receipt-items thead th,
.document-export-mode.template-compact .receipt-items thead th,
.public-document-main>.receipt-paper.template-modern .receipt-items thead th,
.public-document-main>.receipt-paper.template-compact .receipt-items thead th{
  background:#e8f1f2!important;
  color:#17343b!important
}

@media print{
  #receiptPaper.template-modern .receipt-items thead th,
  #receiptPaper.template-compact .receipt-items thead th,
  .public-document-main>.receipt-paper.template-modern .receipt-items thead th,
  .public-document-main>.receipt-paper.template-compact .receipt-items thead th{
    background:#e8f1f2!important;
    color:#17343b!important;
    border-top:2px solid var(--receipt-brand,#0f766e)!important;
    border-bottom:1px solid #9fb5bb!important
  }

  /* Thermal receipts keep their intentionally monochrome header. */
  body[data-print-format^="thermal"] #receiptPaper .receipt-items thead th{
    background:#000!important;
    color:#fff!important;
    border-color:#000!important
  }
}
