<style>
    @font-face {
        font-family: 'Droid Arabic Kufi';
        font-style: normal;
        font-weight: 700;
        src: url(../_assets/custom/fonts/DroidKufi-Regular.eot);
        src: url(../_assets/custom/fonts/DroidKufi-Regular.eot?#iefix) format('embedded-opentype'),
            url(../_assets/custom/fonts/DroidKufi-Regular.woff2) format('woff2'),
            url(../_assets/custom/fonts/DroidKufi-Regular.woff) format('woff'),
            url(../_assets/custom/fonts/DroidKufi-Regular.ttf) format('truetype');
    }

    @font-face {
        font-family:"GE Dinar One Medium";
        src:url("../_assets/custom/fonts/GE_Dinar_One_Medium.eot?") format("eot"),
            url("../_assets/custom/fonts/GE_Dinar_One_Medium.woff") format("woff"),
            url("../_assets/custom/fonts/GE_Dinar_One_Medium.ttf") format("truetype"),
            url("../_assets/custom/fonts/GE_Dinar_One_Medium.svg#GEDinarOne-Medium") format("svg");
        font-weight:normal;
        font-style:normal;
    }

    @font-face {
        font-family: 'Swissra-Bold';
        font-weight: 700;
        src: url(../_assets/custom/fonts/SwissraBold.woff) format('woff')
    }


    html,body,div,p,ul,li,sapn{
        margin:0px;
        padding:0px;
        font-weight: 700 !important;
        font-size: 15px !important;
    }
    .zprint_aw{
        width: 100%;
        height: auto;
        direction: rtl;
        font-size: 14px;
        margin:0px;
        padding:0px;
        font-weight: 700;
    }
    .zname_aw{
        width:100%;
        margin:0px auto;
        height:30px;
    }

    .zdetlz_aw{
        width:100%;
        margin:0px auto;
        height:300px;
        margin-top: 0.5cm;
    }
    .aw_bottom_p {
        margin: 0px;
        padding: 0px;
        width: 100%;
        position: absolute;
        bottom: 0px;
    }

    .right{
        float:right;
    }
    .left{
        float:left;
    }
    .arab{
        font-family:"Swissra-Bold";
        font-size: 16px;
    }
    .arabq{
        font-size: 16px;
    }
    .txtr{
        text-align:right;
    }
    .txtl{
        text-align:left;
    }
    .txtc{
        text-align:center;
    }
    .clr{
        clear:both;
    }
    .cntr{
        margin:0px auto;
    }
    .rtl{
        direction:rtl;
    }
    .ltr{
        direction:ltr !important;
    }

    .cenet{
        float: right;
        margin-right: 21%;
        border: 1px solid;
        padding: 3px 6px;
    }
    .space{
        width: 110px;
        display: inline-block;
    }
    .onyio{
        margin-top: 7px;
        display: block;
    }

    li{
        list-style: initial;
    }
    .pnumz{
        position: absolute;
        top: 0;
        right: 50%;
        border: 1px solid #000;
        padding: 0px 20px;
        border-radius: 25px;
    }
    @page {
        padding-right: 0px !important;
        padding-left: 0px !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
        width: 176mm !important;
        font-weight: 700 !important;
    }
    td{
        padding: 10px;
    }

    .justdo{
        border:none;
        font-weight: bold;
        text-align: left;
        font-family:inherit;
        direction: ltr;
    }
</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="zprint_aw" style="margin: 0px auto;position: inherit;padding: 0px 50px;padding-right: 20px !important; padding-left: 20px !important; margin-right: 0px !important; margin-left: 0px !important; min-width: 176mm !important;">




    <div class="zname_aw">

        <div class="right txtr">

            {if !empty($name)}<p class="arab"> {$title} / <span> {$name}   </span></p>{/if}

        </div>


        <div class="left arab">
            {if !empty($date)}<p><span class="arab ltr">{$date}</span></p>{/if}

        </div>
        {if $ProgramesettingData->ishide eq 1 }
        <div class="left pnumz">
            <center>
                {if !empty($statusNo)}<p><span>{$statusNo}</span></p>{/if}
            </center>
        </div>
        {/if}
    </div>

    <div class="zname_aw">

        <div class="right txtr">
            {if !empty($hospitalName)}
            <br />   <br /> <br />
            <p class="arab"> {$hospitalName}</p>{/if}

        </div>
        <div class="clr"></div>
        <div class="left txtr">
            {if !empty($instNotes)}
            <br />
            <p class=" ltr enfnt"> <pre class="justdo enfnt">{$instNotes}</pre></p>{/if}

        </div>


        <div class="left">

            <p><span class="arab" ></span></p>

        </div>

    </div>

    <div style="clear: both"></div>
    <div class="zdetlz_aw">


        <div >

            <div style="margin-bottom:5px;">
                <div class="cntr txtl" style="direction:ltr;" >
                    {if !empty($mainObj->lmp) && $mainObj->lmp neq "0000-00-00"}
                    <div class="enfnt" style="width:100%;margin-left: 1%;float:left;">
                        {if !empty($mainObj->g) && $mainObj->g neq 0} G {$mainObj->g}{/if} {if !empty($p) && $p neq 0}, P {$p}{/if} {if !empty($weeks) && $weeks neq 0}, pregnant {$weeks}  weeks . {/if}
                    </div>
                    {/if}
                    {if !empty($mainObj->notes)}<br /> <br />
                    <div class="enfnt" style="width:100%;margin-left: 1%;float:left;">
                        {$mainObj->notes}  .
                    </div>{/if}
                    {if !empty($mypastmedical)}
                    <br /> <br />
                    <div class="enfnt" style="width:100%;margin-left: 1%;float:left;">
                        {$mypastmedical } .
                    </div>{/if}
                    {if !empty($mypastsurgical)}
                    <br /> <br />
                    <div class="enfnt" style="width:100%;margin-left: 1%;float:left;">
                        {$mypastsurgical } .
                    </div>{/if}
                    {if !empty($mypastgyna)}
                    <br /> <br />
                    <div class="enfnt" style="width:100%;margin-left: 1%;float:left;">
                        {$mypastgyna } .
                    </div>{/if}
                    <br />  <br /> <br />
                    <div style="clear: both"></div>
                    <br />
                    <table style="width:100%;margin-left: 1%;float:left;font-weight: bold;">
                        <tr>
                            {if !empty($blodd)} <td style="width: 300px"><span class="enfnt"> blood group : {$blodd} </span></td>{/if}
                            {if !empty($mainObj->hb)} <td><span class="enfnt"> Hb : {$mainObj->hb }  </span></td>{/if}
                        </tr>
                        <tr>
                            {if !empty($mainObj->eed)}<td><span class="enfnt"> EDD :  {$mainObj->eed } </span></td>{/if}
                            {if !empty($antUS.placenta)}<td><span class="enfnt">Placenta is  {$antUS.placenta}  </span></td>{/if}
                        </tr>
                    </table>

                </div>
                {if !empty($opInst)}
                <br /> <br />
                <div class="clr"></div>
                <hr />
                <div class="clr"></div>
                <br />
                <u class="arab" style="float:none; text-align:right !important; direction: rtl !important">
                    <center>تعليمات العمليات</center>
                </u> <br />

                <div class="clr"></div>

                <div class="cntr txtr">
                    <div class="clr"></div>
                    <u class="arab"> </u>
                    <div class="clr"></div>
                    <span class="arab" style="padding-right: 0px;margin-top: 20px;">
                        {foreach $opInst as $inst}
                        {$inst->insttext}<br/>
                        {/foreach}
                    </span>
                </div>
                {/if}
            </div>

        </div>



    </div>
</div>
