





<style>
    @font-face {
        font-family: "MyFont"; src: url(../../views/default/assets/admin/layout2/css/font/GE_Dinar_One.otf) format("truetype");
    }

    html,body,div,p,ul,li,sapn{
        margin:0px;
        padding:0px;
    }
    .zprint_aw{
        width: 19cm;
        height: auto;
        direction: rtl;
        font-size: 18px;
        margin:0px;
        padding:0px;
        font-weight: 700;
    }
    .zname_aw{
        width:98%;
        margin:0px auto;
    }

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

    .right{
        float:right;
    }
    .left{
        float:left;
    }
    .arab{
        font-family:"Swissra-Bold";
        font-size: 13px
    }
    .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;
    }

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


</style>

<style>

    .noborder tr { height: 8mm; }
    .bold { font-weight: bold;}
    .h1 { font-weight: 900; font-size: 28px;}

    .form-group.form-md-line-input .help-block {
        position: absolute;
        margin: 2px 0 0 0;
        opacity: 1;
        filter: alpha(opacity=0);
        font-size: 13px;
    }

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

        .noborder tr { height: 8mm; }

        .bold { font-weight: bold;}
        .h1 { font-weight: 900; font-size: 28px;}
        .col-md-12 { width: 100% !important ;}
        .break { page-break-after: always;}
    }
</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">

    {if $show == 1}

    <div class="row " style="direction: rtl;">

        <div class="col-md-12">
            <h1 class="h1" style="text-align: center;">   {$instructions->name} </h1>              
        </div>

        <div class="right txtr col-md-12">

            <hr class="col-md-12"  style="border: 1px solid black;">

            <div class="col-md-12">

                <table style="width: 95%;margin: 5px auto;padding-right: 3%;" class="noborder">
                    <tr>
                        <!--                        <td class="bold wds10" >   رقم الحالة  </td>-->
                        <!--                        <td class="arbfnt"> {$patient->statusno}   </td>-->
                        <td class="bold wds10"> اسم الحالة     </td>
                        <td class="arbfnt">  {$name}        </td>
                        <td class="bold wds10" > التاريخ    </td>
                        <td class="arbfnt wds13" >   {$printDate}   </td>
                    </tr>
                </table>
            </div>

            <hr class="col-md-12"  style="border: 1px solid black;">

        </div>

        <div class="col-md-12">

            <table style="width: 95%;margin: 5px auto;" cellpadding="2" class="noborder">
                <tr>
                    <td colspan="2">
                        {$instructions->content} 
                    </td>
                </tr>

            </table>

        </div>
    </div>

    {else}

    {foreach $instructions as $inst}
    <div class="row break " style="direction: rtl;">

        <div class="col-md-12">
            <h1 class="h1" style="text-align: center;">   {$inst->name} </h1>              
        </div>

        <div class="right txtr col-md-12">

            <hr class="col-md-12"  style="border: 1px solid black;">

            <div class="col-md-12">

                <table style="width: 95%;margin: 5px auto;padding-right: 3%;" class="noborder">
                    <tr>
                        <!--                        <td class="bold wds10" >   رقم الحالة  </td>-->
                        <!--                        <td class="arbfnt"> {$patient->statusno}   </td>-->
                        <td class="bold wds10"> اسم الحالة     </td>
                        <td class="arbfnt">{if $show == 3 } {$inst->pName} {else}  {$name}     {/if}     </td>
                        <td class="bold wds10" > التاريخ    </td>
                        <td class="arbfnt wds13" >   {$printDate}   </td>
                    </tr>

                </table>

            </div>

            <hr class="col-md-12"  style="border: 1px solid black;">

        </div>

        <div class="col-md-12">

            <table style="width: 95%;margin: 5px auto;" cellpadding="2" class="noborder">
                <tr>
                    <td colspan="2">
                        {$inst->content} 
                    </td>
                </tr>

            </table>

        </div>
    </div>
    {/foreach}

    {/if}
</div>






