/* Print stylesheet for MunjGo */
@media print {
  /* Hide non-essential elements */
  aside,
  nav,
  header,
  footer,
  button,
  .no-print,
  [x-data],
  [x-show],
  .htmx-indicator,
  #loading-bar {
    display: none !important;
  }

  /* Reset layout */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Make links visible */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  table, img {
    page-break-inside: avoid;
  }

  /* Tables */
  table {
    border-collapse: collapse;
  }

  th, td {
    border: 1px solid #ccc;
    padding: 4px 8px;
  }
}
