/* ================== ESTILOS DE IMPRESIÓN FURIPS ================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin: 0;
    background: #f5f5f5;
}

.page {
    width: 210mm;
    min-height: 297mm;
    margin: 10px auto;
    background: #fff;
    padding: 12mm 10mm;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Encabezado */
.header-form {
    text-align: center;
    margin-bottom: 8px;
}
.header-form h1 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
}
.header-form h2 {
    margin: 2px 0 0 0;
    font-size: 12px;
    text-transform: uppercase;
}
.header-form small {
    display: block;
    font-size: 9px;
    margin-top: 2px;
}

/* Secciones */
.section {
    border: 1px solid #000;
    margin-bottom: 5px;
}
.section-title {
    background: #e0e0e0;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
}
.section-body {
    padding: 3px 4px 4px 4px;
}

/* Filas y campos */
.row-print {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.field {
    padding: 1px 2px;
    font-size: 10px;
}

/* Anchos tipo columnas */
.w-15 { flex: 0 0 15%; max-width: 15%; }
.w-20 { flex: 0 0 20%; max-width: 20%; }
.w-25 { flex: 0 0 25%; max-width: 25%; }
.w-30 { flex: 0 0 30%; max-width: 30%; }
.w-33 { flex: 0 0 33.33%; max-width: 33.33%; }
.w-40 { flex: 0 0 40%; max-width: 40%; }
.w-50 { flex: 0 0 50%; max-width: 50%; }
.w-60 { flex: 0 0 60%; max-width: 60%; }
.w-75 { flex: 0 0 75%; max-width: 75%; }
.w-100{ flex: 0 0 100%; max-width: 100%; }

.field-label {
    font-weight: bold;
    display: block;
}
.field-value {
    border-bottom: 1px solid #000;
    min-height: 11px;
    padding-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Firma */
.firma-bloque {
    margin-top: 15px;
}

.firma-contenedor {
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.firma-contenedor img {
    max-height: 30px;
}
.lugar-fecha {
    height: 40px;
}

/* Controles fuera de impresión */
.no-print {
    margin: 10px auto;
    width: 210mm;
    text-align: right;
}
.no-print button,
.no-print a {
    font-size: 12px;
    padding: 4px 10px;
    margin-left: 5px;
}

/* Márgenes de la hoja al imprimir */
@page {
    size: A4;
    margin: 10mm;
}

@media print {
    body {
        background: #fff;
        margin: 0;
    }
    .page {
        box-shadow: none;
        margin: 0;
    }
    .no-print {
        display: none;
    }
}

/* ================== VISTA WEB: AUDITORÍA FURIPS1 TXT ================== */
/* Esto solo afecta a furips_auditar_txt.php, porque todo está dentro
   del div .furips-auditar-container que tiene esa clase en el HTML. */

/* Contenedor general de la vista de auditoría */
.furips-auditar-container {
    width: 100%;
    max-width: 1400px;    /* casi todo el ancho en pantallas grandes */
    margin: 20px auto;
    padding: 0 24px;
    font-size: 16px;      /* fuente base más grande que el body (11px) */
}

/* Todo lo que esté dentro del contenedor usa fuente grande */
.furips-auditar-container h1,
.furips-auditar-container h2,
.furips-auditar-container h3,
.furips-auditar-container h4,
.furips-auditar-container h5,
.furips-auditar-container h6,
.furips-auditar-container p,
.furips-auditar-container td,
.furips-auditar-container th,
.furips-auditar-container li,
.furips-auditar-container pre,
.furips-auditar-container .form-control,
.furips-auditar-container .btn,
.furips-auditar-container .badge,
.furips-auditar-container .legend-text,
.furips-auditar-container .small {
    font-size: 16px;
}

/* Caja de drag & drop: área visible para arrastrar el TXT */
#dropzone {
    display: block;
    border: 2px dashed #4b5563;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #555;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

/* Estado cuando arrastras el archivo encima */
#dropzone.dragover {
    border-color: #198754;     /* verde tipo btn-success */
    background-color: #e6ffed; /* fondo verdoso */
    color: #14532d;
}

/* Texto dentro del área de drag & drop un poquito más grande */
#dropzone p,
#dropzone .small {
    font-size: 15px;
}

/* Área donde se muestra la línea original */
.pre-line {
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 180px;
    overflow-y: auto;
}

/* Scroll de la tabla de los 102 campos */
.table-furips-scroll {
    max-height: 450px;
    overflow-y: auto;
}

/* Columnas de la tabla de auditoría */
.col-num {
    width: 5%;
    min-width: 40px;
}

.col-label {
    width: 40%;
    min-width: 260px;
}

.col-value {
    width: 55%;
}

/* Inputs de los campos FURIPS dentro de la tabla */
.campo-furips-input {
    font-size: 16px;
    padding: 4px 8px;
}

/* Texto de la leyenda de medallas obligatorio/condicional */
.legend-text {
    margin-bottom: 6px;
}
