<style>
    @media print {
        #patient_profile_print {
            transform: scale(.9);
        }

        .noborder tr {
            height: 8mm;
        }

        .txtl {
            text-align: left !important;
        }

        .bold {
            font-weight: bold;
        }

        .h1 {
            font-weight: 900;
            font-size: 28px;
        }

        .h3 {
            font-weight: 700;
            font-size: 24px;
        }

        .col-md-12 {
            width: 100% !important;
        }

        .col-md-4 {
            width: 33% !important;
        }

        .col-md-8 {
            width: 66% !important;
        }

        .break {
            page-break-after: always;
        }
    }
</style>

<style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;

    }


    td:not(.patient_data),
    th {
        border: 1px solid #000000;
        text-align: center;
        padding: 2px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>






<style>
    @page {
        ldelim
    }

    size: auto;

    margin-top: {
        $ProgramesettingData->above
    }

    cm;

    margin-bottom: {
        $ProgramesettingData->buttom
    }

    cm;

        {
        rdelim
    }

    .arbfnt {
        ldelim
    }

    font-size: {
        $ProgramesettingData->fontsizear
    }

    px !important;

        {
        rdelim
    }

    .enfnt {
        ldelim
    }

    font-size: {
        $ProgramesettingData->fontsizeen
    }

    px !important;

        {
        rdelim
    }
</style>


<div class="page-content-wrapper" id="mydiv">

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h2 style="text-align:center; text-decoration: underline; ">Emb. lab.sperm assessment</h2>
            </div>
        </div>
        <table class="noborder">
            <tr>
                <td class="patient_data">
                    <label> Name :</label>

                </td>
                <td class="patient_data">
                    {$husbandname}
                </td>
                <td class="patient_data">
                    <label> &nbsp; Date :</label>
                </td>
                <td class="patient_data">
                    {$semen_cryopreservation.semen_date}
                </td>
            </tr>
            <tr>
                <td class="patient_data">

                    <label>Wife Name :</label>
                </td>

                <td class="patient_data">
                    {$wifename}

                </td>
                <td class="patient_data">

                    <label>Referred Dr :</label>
                </td>
                <td class="patient_data">
                    {$ref_dr}

                </td>
            </tr>
            <tr>
                <td class="patient_data">

                    <label>Age :</label>
                </td>
                <td class="patient_data">
                    {$husbandage}
                </td>
            </tr>
        </table>
    </div>

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h3 style="text-decoration: underline; ">Physical Parameter</h3>
            </div>
        </div>
        <table style="width: 100%;margin: 5px auto;border-collapse: unset;">
            <thead>
                <tr style="text-decoration: underline;">
                    <th style="border-width: 4px; border-style: double;">Parameter</th>
                    <th style="border-width: 4px; border-style: double;">Value</th>
                    <th style="border-width: 4px; border-style: double;">Reference</th>
                </tr>
            </thead>

            <tbody>
                <tr>
                    <td>Volume</td>
                    <td>
                        {$semen_cryopreservation.volume} ml
                    </td>
                    <td> 2-6 ml </td>
                </tr>

                <tr>
                    <td>PH</td>
                    <td>
                        {$semen_cryopreservation.ph}
                    </td>
                    <td> 7.2-7.6</td>
                </tr>

                <tr>
                    <td>Liquefaction</td>
                    <td>
                        {$semen_cryopreservation.liquefaction}
                    </td>
                    <td> </td>
                </tr>

                <tr>
                    <td>Viscosity</td>
                    <td>
                        {$semen_cryopreservation.viscosity}
                    </td>
                    <td> Average </td>
                </tr>
            </tbody>
        </table>
    </div>

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h3 style="text-decoration: underline; ">Microscopic Examination</h3>
            </div>
        </div>
        <table style="width: 100%;margin: 5px auto;border-collapse: unset;">
            <thead>
                <tr style="text-decoration: underline;">
                    <th style="border-width: 4px; border-style: double;">Parameter</th>
                    <th style="border-width: 4px; border-style: double;">Value</th>
                    <th style="border-width: 4px; border-style: double;">Reference value: WHO 2010</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Sperm Count (mill/ml)</td>
                    <td>
                        {$semen_cryopreservation.sperm_count}
                    </td>
                    <td> 15mill/ml</td>
                </tr>

                <tr>
                    <td>Total Motility (PR+NP,%)</td>
                    <td>
                        {$semen_cryopreservation.mobility}
                        <span class="wds25">%</span>
                    </td>
                    <td> ≥ 40 %</td>
                </tr>
                <tr>
                    <td>Progressive Motility (PR,%)</td>
                    <td>
                        {$semen_cryopreservation.pr_motility}
                        <span class="wds25">%</span>
                    </td>
                    <td> ≥ 32 %</td>
                </tr>
                {if $semen_cryopreservation.grade_a}
                <tr>
                    <td>Grade A (%)</td>
                    <td>
                        {$semen_cryopreservation.grade_a}<span class="wds25">%</span>
                    </td>
                    <td> >25 % </td>
                </tr>
                {/if}
                {if $semen_cryopreservation.grade_b}
                <tr>
                    <td>Grade B (%)</td>
                    <td>
                        {$semen_cryopreservation.grade_b}<span class="wds25">%</span>
                    </td>
                    <td> >25 % </td>
                </tr>
                {/if}
                {if $semen_cryopreservation.grade_ab}
                <tr>
                    <td>Grade A+B (%)</td>
                    <td>
                        {$semen_cryopreservation.grade_ab}<span class="wds25">%</span>
                    </td>
                    <td> >50 % </td>
                </tr>
                {/if}
                {if $semen_cryopreservation.grade_c}
                <tr>
                    <td>Grade C (%)</td>
                    <td>
                        {$semen_cryopreservation.grade_c}<span class="wds25">%</span>
                    </td>
                    <td> </td>
                </tr>
                {/if}
                {if $semen_cryopreservation.grade_d}
                <tr>
                    <td>Grade D (%)</td>
                    <td>
                        {$semen_cryopreservation.grade_d}<span class="wds25">%</span>
                    </td>
                    <td> </td>
                </tr>
                {/if}
                {if $semen_cryopreservation.morphology}
                <tr>
                    <td>Morphology (Nor. %)</td>
                    <td>
                        {$semen_cryopreservation.morphology}<span class="wds25">%</span>
                    </td>
                    <td> >15 % </td>
                </tr>
                {/if}
                <tr>
                    <td>Abnornmal forms (%)</td>
                    <td>
                        {$semen_cryopreservation.abnormal_forms}
                    </td>
                    <td> ≤ 96 % </td>
                </tr>
                <tr>
                    <td>Agglutination</td>
                    <td>
                        {$semen_cryopreservation.agglutination}
                    </td>
                    <td> ≤ 10 % </td>
                </tr>

                <tr>
                    <td>Pus Cells (HPF)_</td>
                    <td>
                        {$semen_cryopreservation.pus_cells}
                    </td>
                    <td> 2-3</td>
                </tr>

                <tr>
                    <td>Spermatogenic Cells (HPF)</td>
                    <td>
                        {$semen_cryopreservation.spermatogenic}
                    </td>
                    <td>1-2</td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="row">
        <label style="text-decoration: underline;">Cryopreservation: </label> {if
        $semen_cryopreservation.cryopreservation == 1}Yes{else}No{/if}
        <br />
        <label style="text-decoration: underline;">Number of frozen samples: </label>
        {$semen_cryopreservation.frozen_samples}
        <br />
        <label style="text-decoration: underline;">Comment: </label> 
        {$semen_cryopreservation.comment}
    </div>
    <br />
    <br />
    <div class="row">
        <label style="float: right;">Signature</label>
    </div>

</div>