<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo $title; ?></title>
    </head>
    <body>

        <div class="container">
            
            <div class="heading">
<table style="border: 0; width: 100%;">
    <tr style="border: 0">
        <td style="border: 0; width: 80%;"><h1><?php echo Yii::app()->user->master_company_name;?></h1></td>

        <td style="border: 0;float: right; padding-left: 14rem;"><?php echo CHtml::image(Yii::app()->baseUrl . '/images/logo/'.Yii::app()->user->pdf_company_logo,'',array('class'=>'heading-img')); ?></td>
    </tr>
</table>
      </div>  






                    <div class="content">
                        <table class="table_grid table-bordered tnew">
                            <?php echo $product_items; ?>
                        </table>
                        <div class="stym-gen">
                            <span></span> </div>
                    </div>
                </div>

        <!--mpdf
    <htmlpagefooter name="myfooter" class="newfoot">

            <!-- <div style="text-align:center;width:100%;font-size:10px;"><?= Yii::app()->user->footer_autogenerated; ?>
        <?php
                  date_default_timezone_set("Asia/Dubai");
                 echo date('d/m/Y')." ".date("h:i:sa"); ?>
    </div> -->

    
        <div style="border-top: 1px dotted #000000; font-size: 12px; text-align: center; padding-top: 10px; background-color: #d7faeb;">
            <div style="text-align:center;width:100%">
                <b><?= Yii::app()->user->footer_line_1 ?></b><br>
                <?= Yii::app()->user->footer_line_2 ?>
            </div>
            <div style="text-align:center;width:100%">Page {PAGENO} of {nb} </div>
        </div>
    </htmlpagefooter>
        <sethtmlpagefooter name="myfooter" page="all" value="on" />
        mpdf-->


<style type="text/css">
@media print {
  @page {
    margin-top: 1.6cm;
    margin-bottom: 3cm;
  }
  *{
    box-sizing: border-box;
  }
  .table-tree{
    width:100%;
    text-align:left;
    padding-left:10px !important;
    font-size: 11px;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid rgb(31, 103, 178);
  }
  .table-tree th{
    background: rgb(31, 103, 178);
    color: #fff;
    padding-top:5px;
    padding-bottom:5px;
    border: 1px solid rgb(31, 103, 178);
  }
  .table-tree th, td{
    margin: 0;
    padding: 3px 5px;
    border: 1px solid rgb(31, 103, 178);
  }
  .ze{background: #CCC}
  .box-pad,.box-pad *{
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  .tre td{
    border:none;
  }
  .level-1{
    padding-left:5px !important;
  }
  .level-2{
    padding-left: 20px !important;
  }
  .level-3{
    padding-left: 35px !important;
  }
  .level-4{
    padding-left: 50px !important;
  }
  .txt-right{
    text-align: right !important;
  }
  .tittle{
    width: 100%;
    margin: 0 0 10px 0;
    float: left;

    text-align: center;
  }
  .tittle h6{
    border-bottom:2px solid #000;
    width: 180px;
    max-width: 330px;
    font-size: 16px;
    margin: 10px auto;
  }
  .date{
    width: 100%;
    float: left;
    font-size: 11px;
    padding-left: 5px;
    font-weight: 600;
    text-align: left;
    padding-bottom: 3px;
  }
  .date1{
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    padding-bottom: 3px;
  }
  .date span{
    width: 200px;
    display: inline-block;
  }
  .clear{
    clear: both;
  }
  .cell-left{
    text-align: left !important;
  }
  .cell-right{
    text-align: right !important;
  }
  .br-top{
    border: 1px solid rgb(31, 103, 178);
  }
  .space{
    width: 100%;
    float: left;
    clear: both;
    height: 5px;
  }
  .col-12{
    width: 100%;
  }
  .col-6{
    width: 50%;
  }
  .col-9{
    width: 75%
  }
  .col-3{
    width:25%;
    float: right;
  }
  .col-4{
    width: 33%;
    float:left;
  }
  .col-5{
    width: 40%;
    float:left;
  }
  .f-l{
    float: left;
  }
  .f-r{
    float: right;
  }
  .txt-right{
    text-align: right;
  }
  .txt-left{
    text-align: left;
  }
  .x-space{
    box-sizing: border-box;
  }
  .bg-w{
    background: #FFF !important;
  }
  .footer {
    width:100%;
    float:left;
    font-size:11px;
    position:absolute;
    bottom:0px;
    left:0px;
    text-align:center !important;
    line-height:18px;
    border-top: 1px dotted #000;
    padding: 5px;
  }
  .span1{
    width: 80px !important;
    display: inline-block;
    float: left;
  }
  .span2{
    width: 80px !important;
    display: inline-block;
    float: left;
  }
  .span3{
    width: auto !important;
    display: inline-block;
    float: left;
  }
  .f-l{
    float: left;
  }
  .div-ct{
    width: 500px !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
}

}
.left-col {
    float: left;
    width:40%;
}
.center-col {
    float: left;
    width: 5%;
}
.right-col {
    float: right;
    width: 40%;
    
}
    .header-top{
        text-align: center;
    }
    .page-title{
        text-align: center;
        text-decoration: underline;
    }
.logo{
    float: right;
}
table {
    border-collapse: collapse;
}

.tnew, td, th {
    border: 1px solid rgb(31, 103, 178);
    font-size: 12px;
}

table th{
    color: #fff;
    background: rgb(31, 103, 178);
}

</style>

</body>
</html>