/* Ajustes gerais de tabelas */
.md-typeset table {
  width: 100%;
  table-layout: fixed;
  word-break: break-word;
}

.md-typeset table th,
.md-typeset table td {
  padding: 4px 8px;
  vertical-align: top;
  line-height: 1.25;
  white-space: normal;
}

/* Zebra básica (fallback se não estiver no extra.css) */
.md-typeset tbody tr:nth-child(odd) {
  background: #f6f8fa;
}
[data-md-color-scheme="slate"] .md-typeset tbody tr:nth-child(odd) {
  background: #2d333c;
}
[data-md-color-scheme="slate"] .md-typeset tbody tr:nth-child(even) {
  background: #242a2f;
}

.md-typeset tbody tr:hover {
  background: rgba(255, 214, 0, 0.18);
  transition: background .15s;
}

/* Sentinel para páginas landscape já usado em eventos.md */
.page-landscape {
  page: eventos;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}


/* Regras específicas de impressão / PDF */
@media print {
  @page {
    size: A4;
    margin: 15mm 12mm 18mm 12mm;
  }
  @page eventos {
    size: A4 landscape;
    margin: 12mm 12mm 15mm 12mm;
  }
  .md-typeset table {
    font-size: 11px;
  }
  .md-typeset tbody tr:nth-child(odd) {
    background: #e9edf0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .md-typeset tbody tr:nth-child(even) {
    background: #ffffff !important;
  }
  .md-typeset code {
    font-size: .9em;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .md-typeset table tr {
    page-break-inside: avoid;
  }
}

.api-pdf-only {
  display: none;
}

@media print {
  .api-browser-only {
    display: none !important;
  }

  .api-pdf-only {
    display: block !important;
  }
}