/******************************************************************************
 *
 * File...........: print.css
 * Project........: EnigmaJS
 * Description....: Estilos específicos para impresión en papel o PDF (E0034)
 *
 ******************************************************************************/

@media print {
    /* Ocultar la UI completa por defecto */
    body * {
        visibility: hidden;
    }

    /* Preparar el contenedor especial de impresión */
    #printReportSection, #printReportSection * {
        visibility: visible;
    }

    #printReportSection {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
        background: #fff !important;
        font-family: 'Times New Roman', Times, serif;
        line-height: 1.5;
        padding: 20px;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .print-header {
        border-bottom: 2px solid #000;
        padding-bottom: 12px;
        margin-bottom: 24px;
    }

    .print-title {
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        margin: 0;
    }

    .print-subtitle {
        font-size: 12px;
        text-align: center;
        margin-top: 4px;
        color: #555;
    }

    .print-section {
        margin-bottom: 24px;
        page-break-inside: avoid;
    }

    .print-section-title {
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        border-bottom: 1px solid #000;
        margin-bottom: 10px;
        padding-bottom: 4px;
    }

    /* Estilo de la tabla de configuracion */
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 8px;
    }

    .print-table th, .print-table td {
        border: 1px solid #000;
        padding: 6px 10px;
        text-align: left;
        font-size: 12px;
    }

    .print-table th {
        background-color: #f2f2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Textos grande de entrada / salida */
    .print-text-area {
        background: #f9f9f9 !important;
        border: 1px solid #ddd;
        padding: 12px;
        font-family: monospace;
        font-size: 13px;
        white-space: pre-wrap;
        word-break: break-all;
        margin-top: 8px;
        min-height: 50px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Evitar saltos de página a mitad de elementos clave */
    tr {
        page-break-inside: avoid;
    }
}
