/* ============================================================
   JOINT.MX
   IMPRESIÓN DE EXPEDIENTE
   imprime-exp/imprime-exp.css

   SOLO AFECTA AL DOCUMENTO DE IMPRESIÓN
   ============================================================ */


/* ============================================================
   CONFIGURACIÓN GENERAL
   ============================================================ */

/* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    font-size: 12px;
    line-height: 1.25;
}

body {
    width: 100%;
}*/

#expedientePrint,
#expedientePrint * {
    box-sizing: border-box;
}

#expedientePrint {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    font-size: 9px;
    line-height: 1.25;
    width: 100%;
}
/* ============================================================
   HOJA
   ============================================================ */

#expedientePrint {

    width: 100%;

    max-width: 216mm;

    margin: 0 auto;

    padding: 5mm;

    background: #ffffff;

}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.imp-header {

    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        1fr;

    align-items: center;

    min-height: 20mm;

    padding-bottom: 3mm;

    border-bottom: 1.2px solid #168f91;

    margin-bottom: 3mm;

}


.imp-brand {

    display: flex;

    align-items: center;

    gap: 2.5mm;

}


.imp-logo {

    width: 13mm;

    height: 13mm;

    object-fit: contain;

}


.imp-brand-name {

    font-size: 17px;

    font-weight: 800;

    letter-spacing: -0.5px;

    color: #087f82;

}


.imp-brand-subtitle {

    font-size: 8px;

    color: #666666;

    margin-top: 1px;

}


.imp-document-title {

    text-align: center;

}


.imp-title-main {

    font-size: 18px;

    font-weight: 900;

    letter-spacing: 0.3px;

}


.imp-title-sub {

    font-size: 10px;

    font-weight: 800;

    color: #087f82;

    margin-top: 1px;

}


.imp-header-right {

    text-align: right;

    font-size: 8px;

}


.imp-header-right div {

    margin-bottom: 2px;

}


.imp-header-right span {

    color: #555555;

}


.imp-header-right strong {

    display: inline-block;

    margin-left: 2px;

    font-size: 9px;

}


/* ============================================================
   SECCIONES
   ============================================================ */

.imp-section {

    border: 0.7px solid #9b9b9b;

    margin-bottom: 2.2mm;

    break-inside: avoid;

    page-break-inside: avoid;

    background: #ffffff;

}


.imp-section-title {

    text-align: center;

    background: #eaf6f6;

    border-bottom: 0.7px solid #9b9b9b;

    padding: 1.5mm 2mm;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 0.15px;

    color: #087f82;

}


/* ============================================================
   CAMPOS
   ============================================================ */

.imp-grid-4 {

    display: grid;

    grid-template-columns:
        2.1fr
        0.8fr
        1fr
        1.5fr;

    border-bottom: 0.7px solid #aaa;

}


.imp-grid-3 {

    display: grid;

    grid-template-columns:
        2.5fr
        1.1fr
        1.4fr;

}


.imp-field {

    padding: 1.6mm 2mm;

    min-height: 9mm;

    border-right: 0.7px solid #aaa;

}


.imp-field:last-child {

    border-right: none;

}


.imp-field label {

    display: block;

    font-size: 7.5px;

    font-weight: 800;

    color: #111111;

    margin-bottom: 1mm;

}


.imp-field strong {

    display: block;

    font-size: 9px;

    font-weight: 800;

    color: #111111;

    overflow-wrap: anywhere;

}


/* ============================================================
   ANTECEDENTES
   ============================================================ */

.imp-antecedentes {

    display: grid;

    grid-template-columns: 1fr 1fr 1.1fr;

}


.imp-ante-box {

    padding: 2mm;

    min-height: 25mm;

    border-right: 0.7px solid #aaa;

}


.imp-ante-box:last-child {

    border-right: none;

}


.imp-ante-box h4 {

    margin: 0 0 1.5mm;

    text-align: center;

    font-size: 8px;

    color: #087f82;

    font-weight: 900;

}


.imp-ante-box p {

    margin: 1mm 0;

    font-size: 7.8px;

}


.imp-ante-box b {

    font-weight: 800;

}


/* ============================================================
   SIGNOS VITALES
   ============================================================ */

.imp-vitals {

    display: grid;

    grid-template-columns:
        repeat(9, 1fr);

}


.imp-vitals > div {

    text-align: center;

    padding: 1.5mm 0.8mm;

    border-right: 0.7px solid #aaa;

}


.imp-vitals > div:last-child {

    border-right: none;

}


.imp-vitals label {

    display: block;

    font-size: 7px;

    font-weight: 800;

    color: #087f82;

    margin-bottom: 1mm;

}


.imp-vitals strong {

    display: block;

    font-size: 8.5px;

    font-weight: 800;

}


.imp-inline {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 0.7px solid #aaa;

}


.imp-inline > div {

    text-align: center;

    padding: 1.5mm;

    border-right: 0.7px solid #aaa;

    font-size: 7.5px;

}


.imp-inline > div:last-child {

    border-right: none;

}


/* ============================================================
   DOS COLUMNAS
   ============================================================ */

.imp-two-columns {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 2.5mm;

    align-items: stretch;

}


.imp-column-section {

    min-width: 0;

}


/* ============================================================
   PLAN
   ============================================================ */

.imp-check-list {

    padding: 2mm;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    column-gap: 4mm;

}


.imp-check-item {

    padding: 0.8mm 0;

    font-size: 7.8px;

    font-weight: 700;

}


.imp-check {

    font-weight: 900;

    margin-right: 1mm;

}


/* ============================================================
   ANÁLISIS FÍSICO
   ============================================================ */

.imp-analysis-item {

    display: grid;

    grid-template-columns: 4mm 1fr;

    gap: 1mm;

    padding: 1.2mm 2mm;

    border-bottom: 0.5px solid #cccccc;

    font-size: 7.8px;

    font-weight: 700;

}


.imp-analysis-item:last-child {

    border-bottom: none;

}


.imp-analysis-number {

    font-weight: 900;

    color: #087f82;

}


/* ============================================================
   CORRECCIONES
   ============================================================ */

.imp-correction-head {

    padding: 1.5mm 2mm;

    border-bottom: 0.7px solid #aaa;

    font-size: 7.5px;

    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 2mm;

}


.imp-correction-row {

    display: grid;

    grid-template-columns: 4mm 1fr;

    gap: 1mm;

    padding: 1.2mm 2mm;

    border-bottom: 0.5px solid #cccccc;

    font-size: 7.8px;

    font-weight: 700;

}


.imp-correction-row:last-child {

    border-bottom: none;

}


.imp-correction-number {

    font-weight: 900;

    color: #087f82;

}


/* ============================================================
   DIAGNÓSTICO TERAPÉUTICO
   ============================================================ */

.imp-therapeutic-row {

    display: grid;

    grid-template-columns: 42% 58%;

    padding: 1.6mm 2mm;

    border-bottom: 0.5px solid #cccccc;

    font-size: 7.8px;

}


.imp-therapeutic-row:last-child {

    border-bottom: none;

}


.imp-therapeutic-name {

    font-weight: 900;

}


.imp-therapeutic-values {

    font-weight: 700;

}


/* ============================================================
   COLUMNA VERTEBRAL
   ============================================================ */

.imp-spine-table {

    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

}


.imp-spine-table th {

    background: #f5f5f5;

    color: #087f82;

    font-size: 7px;

    font-weight: 900;

    padding: 1.3mm;

    border: 0.5px solid #aaa;

    text-transform: uppercase;

}


.imp-spine-table td {

    font-size: 7.5px;

    font-weight: 700;

    padding: 1.5mm;

    border: 0.5px solid #aaa;

    vertical-align: middle;

}


.imp-spine-table th:nth-child(1) {

    width: 25%;

}


.imp-spine-table th:nth-child(2) {

    width: 30%;

}


.imp-spine-table th:nth-child(3) {

    width: 45%;

}


/* ============================================================
   LISTAS
   ============================================================ */

.imp-check-grid {

    padding: 2mm;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 0.8mm 3mm;

}


.imp-check-grid .imp-check-item {

    font-size: 7.5px;

}


/* ============================================================
   FOOTER
   ============================================================ */

.imp-footer {

    display: grid;

    grid-template-columns: 1fr 1.5fr 1fr;

    align-items: center;

    border-top: 1px solid #777777;

    margin-top: 2mm;

    padding-top: 2mm;

    font-size: 7.5px;

    font-weight: 700;

}


.imp-footer div:nth-child(2) {

    text-align: center;

}


.imp-footer div:last-child {

    text-align: right;

}


/* ============================================================
   IMPRESIÓN
   ============================================================ */

@page {

    size: Letter portrait;

    margin: 5mm;

}


@media print {

    html,
    body {

        width: 216mm;

        height: 279mm;

        margin: 0 !important;

        padding: 0 !important;

        background: #ffffff !important;

        overflow: hidden;

        -webkit-print-color-adjust: exact !important;

        print-color-adjust: exact !important;

    }


    #expedientePrint {

        width: 206mm;

        min-height: 269mm;

        max-width: none;

        margin: 0;

        padding: 0;

        background: #ffffff;

    }


    .imp-section {

        break-inside: avoid !important;

        page-break-inside: avoid !important;

    }


    .imp-two-columns {

        break-inside: avoid !important;

        page-break-inside: avoid !important;

    }


    .imp-header {

        break-inside: avoid !important;

        page-break-inside: avoid !important;

    }


    * {

        -webkit-print-color-adjust: exact !important;

        print-color-adjust: exact !important;

    }

}