/* ==========================================================================
   Formularios Jurídicos - estilos de impresión
   ========================================================================== */

@page {
    size: A4;
    margin: 2cm 2cm 2cm 2cm;
}

@media print {

    body * {
        visibility: hidden !important;
    }

    .fj-document,
    .fj-document * {
        visibility: visible !important;
    }

    .fj-document {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
        box-shadow: none;
        border-radius: 0;
    }

    .fj-actions,
    .fj-breadcrumbs,
    .fj-help,
    .fj-disclaimer,
    .fj-document__footer,
    .no-print {
        display: none !important;
    }

    .fj-document {
        font-family: 'Times New Roman', Times, serif;
        font-size: 11pt;
        line-height: 1.45;
        color: #000;
        text-align: justify;
    }

    .fj-document__title {
        font-size: 16pt;
        text-align: center;
        margin: 0 0 18pt;
        font-weight: 700;
    }

    .fj-document__intro {
        font-size: 10pt;
        text-align: center;
        margin-bottom: 18pt;
        color: #333;
    }

    .fj-document__body h2 {
        font-size: 12pt;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: center;
        margin: 16pt 0 8pt;
    }

    .fj-document__body h3 {
        font-size: 11pt;
        text-align: center;
        margin: 14pt 0 6pt;
    }

    .fj-document__body p {
        margin: 0 0 8pt;
        orphans: 3;
        widows: 3;
    }

    /* Campos rellenables:
       - Vacíos: línea continua a base de border-bottom
       - Con valor: el texto se imprime sin caja ni fondo */
    .fj-field {
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #000 !important;
        padding: 0 4px !important;
        min-width: 100px;
        color: #000;
        font-family: inherit;
        font-size: inherit;
    }

    .fj-field--long {
        display: block;
        width: 100%;
        min-height: 50pt;
        border: 1px solid #000 !important;
        padding: 4pt 6pt !important;
    }

    .fj-field::placeholder {
        color: transparent !important;
    }

    .fj-field:not(:placeholder-shown) {
        border-bottom: none !important;
    }

    .fj-filled {
        text-decoration: none;
    }

    .fj-blank {
        display: inline-block;
        border-bottom: 1px solid #000;
        min-width: 120px;
    }

    h2, h3, h4 {
        page-break-after: avoid;
    }

    a, a:visited {
        color: #000;
        text-decoration: none;
    }
}
