/* ==========================================================================
   print.css — Versión para impresión (carta o A4).
   Solo se imprime #print-root; la interfaz (botones, navegación, buscadores,
   modales y notificaciones) se oculta.
   ========================================================================== */

@page {
  size: auto;
  margin: 12mm 12mm 14mm;
}

html, body {
  background: #fff !important;
  color: #111 !important;
}

body > *:not(#print-root) { display: none !important; }

#print-root {
  display: block !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.35;
  color: #111;
}

.p-header {
  padding-bottom: 8pt;
  margin-bottom: 12pt;
  border-bottom: 1.5pt solid #111;
}
.p-kicker {
  margin: 0;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
}
.p-title {
  margin: 2pt 0 0;
  font-family: ui-serif, "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 20pt;
  font-weight: 600;
}
.p-meta { margin: 2pt 0 0; font-size: 10pt; color: #333; }
.p-meta--small { font-size: 8pt; color: #666; }

/* --------------------------------------------------------- plano completo */

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10pt 12pt;
}

.p-table {
  break-inside: avoid;
  page-break-inside: avoid;
  border: 0.75pt solid #999;
  border-radius: 5pt;
  padding: 6pt 8pt 7pt;
}
.p-table-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 4pt;
  padding-bottom: 3pt;
  border-bottom: 0.75pt solid #ccc;
  font-size: 10.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.p-table-count { font-size: 9pt; font-weight: 600; color: #444; }
.p-table table { width: 100%; border-collapse: collapse; }
.p-table td { padding: 1.4pt 0; vertical-align: top; font-size: 9.5pt; }
.p-seat { width: 18pt; color: #666; font-variant-numeric: tabular-nums; }
.p-table tr.is-free .p-name { color: #aaa; font-style: italic; }

.p-unassigned {
  break-inside: avoid;
  margin-top: 12pt;
  border: 0.75pt dashed #999;
  border-radius: 5pt;
  padding: 6pt 8pt;
}
.p-unassigned p { margin: 0; font-size: 9.5pt; }

/* --------------------------------------------------------- mesa individual */

.p-table--detailed { border: 0; padding: 0; }
.p-table--detailed .p-table-title { font-size: 15pt; border-bottom: 1pt solid #111; padding-bottom: 5pt; }
.p-table--detailed th {
  text-align: left;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  padding: 5pt 6pt;
  border-bottom: 0.75pt solid #999;
}
.p-table--detailed td { font-size: 12pt; padding: 7pt 6pt; border-bottom: 0.5pt solid #ddd; }
.p-table--detailed .p-seat { width: 46pt; font-weight: 700; color: #111; }
.p-table--detailed .p-group { color: #444; font-size: 10.5pt; }
.p-table--detailed .p-notes { color: #555; font-size: 9.5pt; }

/* --------------------------------------------------------- lista A-Z */

.p-list { width: 100%; border-collapse: collapse; }
.p-list thead { display: table-header-group; }
.p-list th {
  text-align: left;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  padding: 4pt 6pt;
  border-bottom: 1pt solid #111;
}
.p-list td { padding: 3.2pt 6pt; border-bottom: 0.5pt solid #ddd; font-size: 10pt; }
.p-list tr { break-inside: avoid; page-break-inside: avoid; }
.p-idx { width: 24pt; color: #888; font-variant-numeric: tabular-nums; }
.p-strong { font-weight: 700; font-variant-numeric: tabular-nums; width: 46pt; }
