Plantilla Para Rifa 100 Numeros Pdf __top__ -
<div class="action-buttons"> <button class="btn btn-print" id="printBtn">🖨️ Imprimir / Guardar como PDF</button> <button class="btn btn-pdf" id="pdfBtn">📄 Generar PDF (alta calidad)</button> </div>
/* Grid de números: 10 columnas x 10 filas = 100 */ .numbers-grid display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px 14px; margin: 2rem 0 1.5rem;
</body> </html>
/* Contenedor principal que simulará la hoja PDF */ .ticket-container max-width: 1200px; width: 100%; background: white; box-shadow: 0 20px 35px -12px rgba(0,0,0,0.2); border-radius: 20px; padding: 1.8rem 2rem 2.2rem; margin-bottom: 2rem; transition: all 0.2s;
@media print body background: white; padding: 0; margin: 0; .action-buttons display: none; .ticket-container box-shadow: none; padding: 0.5rem; max-width: 100%; border-radius: 0; .numbers-grid gap: 8px 10px; .ticket-cell border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid; .header h1 font-size: 1.8rem; .info-footer break-inside: avoid; plantilla para rifa 100 numeros pdf
/* Información adicional y datos de la rifa */ .info-footer display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 2px solid #f1f5f9; font-size: 0.85rem; color: #1e293b; gap: 20px; .seller-box, .notes-box background: #fefce8; padding: 12px 20px; border-radius: 28px; flex: 1; min-width: 180px; .seller-box strong, .notes-box strong display: block; font-size: 0.75rem; text-transform: uppercase; color: #ca8a04; letter-spacing: 1px; .sign-line border-bottom: 1.5px solid #334155; margin-top: 8px; width: 80%; min-height: 24px;
/* Cada celda: número + línea para nombre/comprador */ .ticket-cell background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 18px; padding: 10px 6px 8px; text-align: center; transition: 0.1s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.02); .ticket-cell:hover border-color: #facc15; background: #fffbeb; button class="btn btn-print" id="printBtn">
<!-- Estilos adicionales para garantizar lineas claras en todos los navegadores --> <style> /* mejoras específicas para la línea de nombre en cada celda */ .line-placeholder border-bottom: 1px dashed #94a3b8; width: 90%; margin: 6px auto 0 auto; height: 16px; .nombre-line span font-size: 0.6rem; font-weight: 500; display: block; margin-bottom: 3px; color: #6b7280; .ticket-cell transition: all 0.1s ease; background: #ffffff; /* para que en impresión los bordes sean nítidos */ @media print .line-placeholder border-bottom: 1px solid #000; height: 12px; .ticket-cell border: 1px solid #aaa; box-shadow: none; .numero background: #f0f0f0; border: 1px solid #ccc; .info-footer div, .seller-box, .notes-box border: 1px solid #ddd; .header border-bottom: 2px solid #facc15; .btn, .action-buttons display: none; body margin: 0; padding: 0; /* adicional para mejorar la legibilidad en pantalla grande */ @media (min-width: 1024px) .numbers-grid gap: 16px; .ticket-cell padding: 12px 6px; .numero width: 54px; height: 54px; line-height: 54px; font-size: 1.7rem; /* líneas punteadas con mayor claridad */ .seller-box div, .notes-box div margin-bottom: 8px; font-family: monospace; letter-spacing: 0.3px; .sign-line border-bottom: 2px dotted #334155; width: 100%; margin-top: 4px; </style>