/* ============================================================
   El acta de la reunión de aprobación de pagos, en papel
   ============================================================
   Papel de oficina: sin colores de fondo, sin degradés, sin nada que se coma
   el tóner. Lo que distingue una fila de otra es el peso de la tipografía y
   una línea fina, como en cualquier planilla que se archiva.

   Va en A4 y puede ocupar más de una hoja sin problema: las tablas cortan
   entre filas y el encabezado de cada tabla se repite arriba de cada página.
   ============================================================ */

.rh-hoja {
  font-family: "Segoe UI", Inter, system-ui, Arial, sans-serif;
  color: #16130f;
  background: #fff;
  width: 210mm;
  margin: 0 auto;
  padding: 16mm 15mm 14mm;
  box-sizing: border-box;
  font-size: 11.5px;
  line-height: 1.45;
}

/* ---- Encabezado ---- */
.rh-cab {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 2.5px solid #16130f;
}
.rh-marca { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.rh-marca span {
  display: block; font-size: 9.5px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: #6b6257; margin-top: 1px;
}
.rh-tit { text-align: right; }
.rh-tit h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.rh-fecha { font-size: 11px; color: #6b6257; margin-top: 2px; }

/* ---- Títulos de sección ---- */
.rh-h {
  margin: 20px 0 7px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  padding-bottom: 4px; border-bottom: 1px solid #cfc6b8;
}
.rh-h span {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: #6b6257; font-size: 10.5px; margin-left: 6px;
}

/* ---- Tablas ---- */
.rh-tabla, .rh-resumen { width: 100%; border-collapse: collapse; }
.rh-tabla th, .rh-resumen th {
  text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em;
  color: #6b6257; font-weight: 700; padding: 5px 6px; border-bottom: 1px solid #16130f;
}
.rh-tabla td, .rh-resumen td {
  padding: 5px 6px; border-bottom: 1px solid #e6dfd3; vertical-align: top;
}
.rh-tabla tfoot td, .rh-resumen tfoot td {
  border-top: 1.5px solid #16130f; border-bottom: 0;
  font-weight: 800; padding-top: 6px;
}
/* Los importes SIEMPRE alineados a la derecha y con cifras de ancho fijo: es
   lo que permite comparar una columna de un vistazo. */
.rh-m { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rh-c { text-align: right; font-variant-numeric: tabular-nums; width: 80px; }
.rh-n { width: 22px; color: #8a8377; text-align: right; }
.rh-v { width: 52px; font-weight: 700; }
.rh-d { width: 84px; color: #6b6257; }
.rh-antes { color: #6b6257; text-decoration: line-through; }

/* En el resumen, cada decisión con su marca al margen: se distinguen sin
   depender del color, que en blanco y negro no existe. */
.rh-resumen tbody td:first-child { padding-left: 14px; position: relative; font-weight: 600; }
.rh-resumen tbody tr td:first-child::before {
  position: absolute; left: 2px; font-weight: 700;
}
.rh-resumen tr.ap td:first-child::before { content: "✓"; }
.rh-resumen tr.no td:first-child::before { content: "✕"; }
.rh-resumen tr.pat td:first-child::before { content: "»"; }
.rh-resumen tr.sin td:first-child::before { content: "·"; }
.rh-resumen tr.sin td { color: #6b6257; }

.rh-nota {
  margin: 6px 0 0; font-size: 11px; color: #6b6257; font-style: italic;
}

.rh-pie {
  display: flex; justify-content: space-between;
  margin-top: 22px; padding-top: 8px; border-top: 1px solid #cfc6b8;
  font-size: 9.5px; color: #8a8377;
}

/* ---- Impresión ----
   Mismo criterio que la constancia de retención: se esconde todo lo de la
   pantalla y se deja sólo la hoja. */
@media print {
  @page { size: A4; margin: 12mm 0; }
  body * { visibility: hidden; }
  .rh-hoja, .rh-hoja * { visibility: visible; }
  .rh-hoja {
    position: absolute; left: 0; top: 0;
    width: 210mm; margin: 0; padding: 0 15mm;
    box-shadow: none;
  }
  /* Una fila no se parte entre dos hojas, y el encabezado de la tabla se
     repite arriba de cada página: si no, la segunda hoja son números sueltos. */
  .rh-tabla tr, .rh-resumen tr { break-inside: avoid; }
  .rh-tabla thead, .rh-resumen thead { display: table-header-group; }
  .rh-h { break-after: avoid; }
}

@media screen {
  .rh-hoja { box-shadow: 0 10px 40px rgba(0,0,0,.35); margin: 0 auto 24px; }
}

/* La hoja escondida hasta que se imprime, como en Retenciones. */
#hoja-reunion { display: none; }
#hoja-reunion.ver {
  display: block; position: fixed; inset: 0; z-index: 3000;
  background: rgba(20,16,11,.55); overflow: auto; padding: 20px 0;
}
#hojaReunionCerrar { position: fixed; right: 18px; top: 18px; z-index: 3001; }
@media print { #hojaReunionCerrar { display: none !important; } }
