/* ============================================================
   FICHA PERSONAL DEL ESTUDIANTE
   PHPRunner 11.1
   ============================================================ */


/* ------------------------------------------------------------
   CONTENEDOR
   ------------------------------------------------------------ */

.ficha-estudiante {
    width: 190mm;
    max-width: 100%;
    margin: 15px auto;
    padding: 7mm;

    background: #ffffff;
    color: #111111;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;

    box-sizing: border-box;

    border: 1px solid #cccccc;
}


.ficha-botones {
    width: 190mm;
    max-width: 100%;

    margin: 10px auto;

    text-align: right;
}



/* ------------------------------------------------------------
   ENCABEZADO
   ------------------------------------------------------------ */

.ficha-encabezado {

    display: grid;

    grid-template-columns:
        30mm
        1fr
        30mm;

    min-height: 36mm;

    align-items: stretch;

    border: 1px solid #333333;

    margin-bottom: 0;
}



.ficha-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    border-right: 1px solid #333333;

    text-align: center;

    overflow: hidden;

    padding: 2mm;

    box-sizing: border-box;
}

.logo-institucional {

    max-width: 26mm;

    max-height: 30mm;

    width: auto;

    height: auto;

    object-fit: contain;

    display: block;
}



.logo-texto {

    font-size: 12px;

    font-weight: bold;
}



.ficha-institucion {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 3mm;
}



.ficha-institucion .institucion {

    font-size: 16px;

    font-weight: bold;

    line-height: 1.2;
}



.ficha-institucion .titulo {

    font-size: 13px;

    font-weight: bold;

    margin-top: 4px;
}



.ficha-institucion .periodo {

    font-size: 10px;

    margin-top: 4px;
}



/* ------------------------------------------------------------
   FOTO
   ------------------------------------------------------------ */

.ficha-foto {

    width: 30mm;

    height: 36mm;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    box-sizing: border-box;
}



.foto-estudiante {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;
}



.sin-foto {

    font-size: 8px;

    color: #777777;

    text-align: center;
}



/* ------------------------------------------------------------
   SECCIONES
   ------------------------------------------------------------ */

.seccion {

    background: #e6e6e6;

    border-left: 1px solid #333333;

    border-right: 1px solid #333333;

    border-bottom: 1px solid #333333;

    padding: 4px 7px;

    font-size: 10px;

    font-weight: bold;

    text-transform: uppercase;
}



/* ------------------------------------------------------------
   TABLAS
   ------------------------------------------------------------ */

.tabla-ficha {

    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    margin: 0 0 5px 0;
}



.tabla-ficha td {

    border: 1px solid #444444;

    padding: 4px 6px;

    vertical-align: top;

    min-height: 25px;

    word-wrap: break-word;

    overflow-wrap: break-word;
}



/* ------------------------------------------------------------
   ETIQUETAS
   ------------------------------------------------------------ */

.etiqueta {

    display: block;

    font-size: 8px;

    line-height: 1.1;

    font-weight: bold;

    color: #555555;

    margin-bottom: 2px;

    text-transform: uppercase;
}



/* ------------------------------------------------------------
   DATOS
   ------------------------------------------------------------ */

.dato {

    display: block;

    font-size: 10px;

    line-height: 1.2;

    min-height: 12px;
}



.dato-importante {

    font-size: 11px;

    font-weight: bold;
}



.campo-grande {

    height: 38px;
}



/* ------------------------------------------------------------
   FIRMAS
   ------------------------------------------------------------ */

.firmas {

    display: flex;

    justify-content: space-around;

    align-items: flex-end;

    margin-top: 25mm;

    margin-bottom: 4mm;

    text-align: center;

    font-size: 9px;

    font-weight: bold;
}



.firma {

    width: 65mm;
}



.linea-firma {

    border-top: 1px solid #222222;

    margin-bottom: 4px;
}



/* ============================================================
   IMPRESIÓN
   ============================================================ */

@media print {


    @page {

        size: A4 portrait;

        margin: 5mm;

    }



    html,
    body {

        background: #ffffff !important;

        margin: 0 !important;

        padding: 0 !important;

    }



    /* --------------------------------------------------------
       OCULTAR INTERFAZ PHPRUNNER
       -------------------------------------------------------- */

    nav,

    header,

    footer,

    .navbar,

    .breadcrumb,

    .r-breadcrumb,

    .r-topbar,

    .r-menu,

    .r-left,

    .r-right,

    .r-footer,

    .r-header,

    .sidebar,

    .ficha-botones {

        display: none !important;

    }



    /* --------------------------------------------------------
       FICHA
       -------------------------------------------------------- */

    .ficha-estudiante {

        width: 196mm !important;

        max-width: 196mm !important;

        margin: 0 auto !important;

        padding: 0 !important;

        border: none !important;

        box-shadow: none !important;

        background: #ffffff !important;

    }



    /* --------------------------------------------------------
       COLORES DE IMPRESIÓN
       -------------------------------------------------------- */

    .seccion {

        background: #e6e6e6 !important;

        -webkit-print-color-adjust: exact !important;

        print-color-adjust: exact !important;

    }



    /* --------------------------------------------------------
       FOTO
       -------------------------------------------------------- */

    .foto-estudiante {

        display: block !important;

        width: 100% !important;

        height: 100% !important;

        object-fit: cover !important;

    }

.logo-institucional {

    display: block !important;

    max-width: 26mm !important;

    max-height: 26mm !important;

    width: auto !important;

    height: auto !important;

    object-fit: contain !important;
}

    /* --------------------------------------------------------
       EVITAR CORTES INCORRECTOS
       -------------------------------------------------------- */

    .tabla-ficha {

        page-break-inside: auto;

    }


    .tabla-ficha tr {

        page-break-inside: avoid !important;

        break-inside: avoid !important;

    }


    .tabla-ficha td {

        page-break-inside: avoid !important;

        break-inside: avoid !important;

    }


    .seccion {

        page-break-after: avoid !important;

        break-after: avoid !important;

    }


    .ficha-encabezado {

        page-break-inside: avoid !important;

        break-inside: avoid !important;

    }


    .firmas {

        page-break-inside: avoid !important;

        break-inside: avoid !important;

    }

}