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

        .noborder tr {
            height: 6mm;
        }

        tr , th {
            height: 7mm;
        }

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

        .txtc {
            text-align: center !important;
        }

        .underline {
            text-decoration:underline !important;
        }

        .bold {
            font-weight: bold;
        }


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

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

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

        .break {
            page-break-after: always;
        }

        .blkbg {
            background-color: #000000 !important;
        }

        label {
            font-size: 14px;
        }

        h4 {
            font-size: 16px;
        }

        h2 {
            font-size: 19px;
        }

        .curved {
            border-radius: 25px;
            border: 2px solid #73AD21;
            padding: 20px;
        }
    }
</style>

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

    td,
    th {
        border: 1px solid #000000;
        text-align: center;
        /* padding: 2px; */
        font-size: 14px;
    }

    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="row">
    <div class="portlet-title">
        <div class="caption">
            <h2 class="txtc  bold">Embryology Lab. Sperm Assessment</h2>
        </div>
    </div>

    <div class="curved" >
        <table class="noborder" >
            <tbody>
                <tr>
                    <td class="txtl"><label>Husband Name :</label></td>
                    <td class="txtl">{$husbandname}</td>
                    <td class="txtl"><label>Age : </label></td>
                    <td class="txtl"> {$husbandage}</td>
                    <td class="txtl"><label>Date : </label></td>
                    <td class="txtl">{$semenDate}</td>
                </tr>

                <tr>
                    <td class="txtl"><label>Wife Name :</label></td>
                    <td class="txtl" colspan="5">{$wifename}</td>
                </tr>

                <tr>
                    <td class="txtl"><label>Ref. By Prof. Dr :</label></td>
                    <td class="txtl" colspan="5">{$ref_dr}</td>
                </tr>
            </tbody>
        </table>
    </div>

    <hr>
    <div class="txtc underline bold col-md-12">
        <span>  Physical Parameter : </span>
    </div>

    <table>
        <thead>
            <tr>
                <th class="wds40">      Parameter  </th>
                <th>      Value  </th>
                <th class="wds25">      Reference  </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th>Volume</th>
                <td>{$semen_analysis.volume} ml</td>
                <td>   2-6 ml </td>
            </tr>

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

            <tr>
                <th>Liquefaction</th>
                <td>{$semen_analysis.liquefaction} </td>
                <td> </td>
            </tr>

            <tr>
                <th>Viscosity</th>
                <td>{$semen_analysis.viscosity} </td>
                <td>   Average</td>
            </tr>

        </tbody>
    </table>

    <hr>
    <div class="txtc underline bold col-md-12">
        <span>  Microscopic Examination : </span>
    </div>

    <table>
        <thead>
            <tr>
                <th class="wds40">      Parameter  </th>
                <th>      Value  </th>
                <th class="wds25">      Reference  : WHO 2010 </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th>Sperm Count (mill/ml)</th>
                <td>{$semen_analysis.sperm_count}  mill/ml</td>
                <td>    20mill/ml</td>
            </tr>

            <tr>
                <th>Total Motility (PR+NP,%)</th>
                <td>{$semen_analysis.mobility}  %</td>
                <td>    >60 %</td>
            </tr>

            <tr>
                <th>Progressive Motility (PR,%)</th>
                <td>{$semen_analysis.prog_mobility} %</td>
                <td>    >15 % </td>
            </tr>

            <tr>
                <th>Abnormal Forms (%)</th>
                <td>{$semen_analysis.ab_form} %</td>
                <td>    >15 % </td>
            </tr>

            <tr>
                <th>Agglutination</th>
                <td>{$semen_analysis.agglutination} </td>
                <td>   <10 % </td>
            </tr>

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

            <tr>
                <th>Spermatogenic Cells (HPF)</th>
                <td>{$semen_analysis.spermatogenic} </td>
                <td>1-2  </td>
            </tr>
        </tbody>
    </table>

    <hr>
    <div class="txtc underline bold col-md-12">
        <span>   </span>
    </div>


    <table>
        <tbody>
            <tr>
                <th class="wds40">Cryopreservation </th>
                <td>
                    {if $semen_analysis.cryopreservation==1} Yes
                    {else if $semen_analysis.cryopreservation==2 } No  {/if}
                </td>

            </tr>

            <tr>
                <th>No Of frozen samples </th>
                <td>{$semen_analysis.frozen_samples} </td>
            </tr>

            <tr>
                <th>Comment </th>
                <td>{$semen_analysis.comment} </td>
            </tr>
            <tr>
                <th>Diagnosis </th>
                <td>{$semen_analysis.diagnosis} </td>
            </tr>
        </tbody>
    </table>

</div>








