/* -------- Ajustes en PANTALLA (evita recortes) -------- */
#taq-asistencia .table-resumen td input[type="text"],
#taq-asistencia .table-resumen td textarea,
#taq-asistencia .table-resumen td select {
  width: 100%;
  min-width: 0;       /* permite encoger dentro de la celda */
  box-sizing: border-box;
}

/* Primera columna (instalación): permitir varias líneas */
#taq-asistencia .table-resumen td:nth-child(1) input[type="text"] {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  height: auto;                 /* por si el theme fuerza alto */
  line-height: 1.2;
  padding-top: 6px; padding-bottom: 6px;
}

/* Columna Fecha: no recortar, ancho auto */
#taq-asistencia .table-resumen td:nth-child(2) input[type="text"] {
  width: auto;
  min-width: 80px;
  display: inline-block;
  text-align: center;
}

/* Comentarios: que no se recorten */
#taq-asistencia .table-resumen td:nth-child(6) textarea {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* -------- MODO PDF / IMPRESIÓN -------- */

/* si vas a "imprimir" la tabla directamente */
@media print {
  #taq-asistencia { font-family: Arial, Helvetica, sans-serif; }
  #taq-asistencia table { border-collapse: collapse; width: 100%; }
}

/* y si usas una clase .pdf-export para la versión a capturar */
#taq-asistencia.pdf-export .no-print,
#taq-asistencia.pdf-export .btn,
#taq-asistencia.pdf-export button,
#taq-asistencia.pdf-export .add-row,
#taq-asistencia.pdf-export .add-install,
#taq-asistencia.pdf-export .controls {
  display: none !important;
}

/* Ocultar ayudas y depuración al exportar */
#taq-asistencia.pdf-export .steps { display:none !important; }
#taq-asistencia.pdf-export #asist-debug { display:none !important; }
#taq-asistencia.pdf-export details > summary small { display:none !important; }

#taq-asistencia.pdf-export .taq-card summary { pointer-events: none; }
#taq-asistencia.pdf-export details[open] > summary { margin-bottom: 8px; }

#taq-asistencia.pdf-export .table-resumen th,
#taq-asistencia.pdf-export .table-resumen td {
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid #c8d2e1;
  vertical-align: middle;
}

#taq-asistencia.pdf-export .table-resumen thead th {
  background: #0f3d66;
  color: #fff;
  text-align: center;
}

#taq-asistencia.pdf-export .table-resumen td,
#taq-asistencia.pdf-export .table-resumen th { text-align: center; }

/* Columna 1 (instalación) en varias líneas */
#taq-asistencia.pdf-export .table-resumen td:nth-child(1),
#taq-asistencia.pdf-export .table-resumen th:nth-child(1) {
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* anchos sugeridos (ajústalos a tu gusto) */


/* Ocultar columna de Acción (7ª) en PDF */
#taq-asistencia.pdf-export .table-resumen th.actions,
#taq-asistencia.pdf-export .table-resumen td.actions {
  display: none !important;
}


/* En PDF, inputs/textarea/select se ven como texto plano */
#taq-asistencia.pdf-export input,
#taq-asistencia.pdf-export textarea,
#taq-asistencia.pdf-export select {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  color: #111 !important;
  text-align: center;
  font: inherit;
}

#taq-asistencia.pdf-export td:nth-child(1) input { text-align: left !important; }
#taq-asistencia.pdf-export td:nth-child(2) input {
  display: inline-block; width: auto !important; min-width: 80px; text-align: center !important;
}
#taq-asistencia.pdf-export td:nth-child(6) textarea {
  display: block; width: 100% !important; white-space: normal !important; line-height: 1.3;
}



