/* ---------- Responsive Table Styling ---------- */
.responsive-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Adjust if needed */
}

/* ---------- Print Button Styling (Screen Only) ---------- */
.print-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.print-button-wrapper .wp-block-button__link,
.print-button-wrapper button {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.print-button-wrapper .wp-block-button__link:hover,
.print-button-wrapper button:hover {
  background-color: #444;
}

/* Small Screen Fix for Print Button */
@media screen and (max-width: 600px) {
  .print-button-wrapper {
    padding: 0 1rem;
  }

  .print-button-wrapper .wp-block-button__link,
  .print-button-wrapper button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
}

/* ---------- Print View Styling ---------- */
@media print {
  /* Hide headers, footers, nav, subscription, etc */
  .site-header,
  .site-footer,
  .subscribe-button,
  .gb-container.gb-container-xxxxxx, /* Replace with actual container ID if needed */
  nav,
  .print-hide,
  .widget-area,
  .entry-meta,
  .entry-footer,
  header,
  footer,
  .print-button-wrapper {
    display: none !important;
  }

  /* Expand content and fix background */
  .responsive-table-container {
    overflow: visible !important;
  }

  .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  /* Show custom print header/footer */
  .custom-print-header,
  .custom-print-footer {
    display: block !important;
  }

  /* Set clean page margins */
  @page {
    margin: 1in;
  }
}

/* ---------- Hide Print Header/Footer on Screen ---------- */
@media screen {
  .custom-print-header,
  .custom-print-footer {
    display: none !important;
  }
}
