<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.loadState('main-container')
        } catch (e) {}
    </script>

    <div id="sidebar" class="sidebar responsive ace-save-state">
        <script type="text/javascript">
            try {
                ace.settings.loadState('sidebar')
            } catch (e) {}
        </script>

        <div class="sidebar-shortcuts" id="sidebar-shortcuts">
            <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                <button class="btn btn-success">
                    <i class="ace-icon fa fa-signal"></i>
                </button>
                <button class="btn btn-info">
                    <i class="ace-icon fa fa-pencil"></i>
                </button>
                <button class="btn btn-warning">
                    <i class="ace-icon fa fa-users"></i>
                </button>
                <button class="btn btn-danger">
                    <i class="ace-icon fa fa-cogs"></i>
                </button>
            </div>

            <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                <span class="btn btn-success"></span>
                <span class="btn btn-info"></span>
                <span class="btn btn-warning"></span>
                <span class="btn btn-danger"></span>
            </div>
        </div>

        <?php include 'sidebar.php'; ?>

        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>
    </div> 

    <div class="main-content">
        <div class="main-content-inner">
            <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="#">Home</a>
                    </li>
                    <li>
                        <a href="#">PRE-DISPATCH INSPECTION REPORT</a>
                    </li>
                </ul>
            </div>

            <div class="page-content">
            


    <style>
       
        table {
            width: 100%;
            border-collapse: collapse;
        }

        th,
        td {
            border: 1px solid #000;
            padding: 5px;
            text-align: center;
        }

        .header {
            text-align: center;
            font-weight: bold;
            font-size: 20px;
            padding: 10px 0;
        }

        .sub-header {
            text-align: right;
            font-size: 12px;
            margin-bottom: 10px;
        }

        .green {
            background-color: #007000;
            color: #fff;
            width: 150px;
        }

        .yellow {
            background-color: yellow;
        }

        .green-cell {
            background-color: #007000;
            color: white;
        }

        .note {
            background-color: #d9d9d9;
            text-align: left;
            padding: 5px 10px;
            font-size: 12px;
        }

        .accept-reject {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 14px;
        }

        .checked-verified {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 14px;
        }

        .section-table td {
            width: 200px;
        }
        .firsthead{
            text-align: left !important;
        }
    </style>


 <table style="width: 100%; border-collapse: collapse; margin-bottom: 10px;" border="1">
    <tr>
        <!-- Logo -->
        <td colspan="2" style="border:1px solid black; text-align:center; border-right-color: #ffffff; width: 20%;">
            <img style="width: 80px; height: auto;" src="<?= base_url() ?>public/images/y-cut-logo-615x3.png" alt="Logo">
        </td>

        <!-- Company Name -->
        <td colspan="4" style="border:1px solid black; text-align:center; font-size:22px; width: 80%;">
            <b>Bhor Engineering Pvt Ltd</b>
        </td>
    </tr>

    <tr>
        <!-- Report Title -->
        <td colspan="3" style="padding: 10px; text-align: center; font-size: 18px;">
            Pre Dispatch Inspection Report
        </td>

        <!-- Format No -->
        <td colspan="3" style="padding: 5px; text-align: center; font-size: 14px;">
            Format No: PR01 Rev.02 Date - 20.11.14
        </td>
    </tr>
</table>

 <!-- Header Section -->
    <table class="section-table">
        <tr>
            <!-- Left Block -->
            <td class="firsthead" colspan="">Part Name</td>
            <td class="firsthead" colspan="2"></td>
            <td class="firsthead" colspan="">Customer</td>
            <td class="firsthead"  colspan=""></td>
            <td class="firsthead" colspan="">Invoice No</td>
            <td class="firsthead" colspan=""></td>
        </tr>
        <tr>
            <td class="firsthead" colspan="">Part No</td>
            <td class="firsthead" colspan=""></td>
            <td class="firsthead" colspan="">Tab. No-</td>
            <td class="firsthead" colspan="">Lot Qty</td>
            <td class="firsthead" colspan=""></td>
            <td class="firsthead" colspan="">Sample Qty</td>
            <td class="firsthead" colspan=""></td>
        </tr>
        <tr>
            <td class="firsthead" colspan="">Rev.No / Date</td>
            <td class="firsthead" colspan=""></td>
            <td class="firsthead" colspan="">Rev.No / Date</td>
            <td class="firsthead" colspan="">Inspection Date</td>
            <td class="firsthead" colspan=""></td>
            <td class="firsthead" colspan="">Record Qty</td>
            <td class="firsthead" colspan=""></td>
        </tr>
    </table>

    <!-- Inspection Table -->
    <table style="margin-top: 10px;">
        <tr>
            <th rowspan="2" style="width: 50px;">Sr.No</th>
            <th rowspan="2" style="width: 80px;">Ballon drg No</th>
            <th rowspan="2" style="width: 150px;">Parameter</th>
            <th rowspan="2" style="width: 150px;">Specification</th>
            <th rowspan="2" style="width: 80px;">Class</th>
            <th rowspan="2" style="width: 150px;">Measuring Method</th>
            <th colspan="5">Actual Dimensions</th>
            <th rowspan="2" style="width: 120px;">Remarks</th>
        </tr>
        <tr>
            <th style="width: 50px;">1</th>
            <th style="width: 50px;">2</th>
            <th style="width: 50px;">3</th>
            <th style="width: 50px;">4</th>
            <th style="width: 50px;">5</th>
        </tr>

        <!-- Sample Row -->
        <tr>
            <td class="yellow"></td>
            <td class="yellow"></td>
            <td class="yellow"></td>
            <td class="yellow"></td>
            <td class="yellow"></td>
            <td class="yellow"></td>
            <td class="green"></td>
            <td class="green"></td>
            <td class="green"></td>
            <td class="green"></td>
            <td class="green"></td>
            <td></td>
        </tr>
        <!-- You can repeat this row for more entries -->
    </table>


   
   <!-- Footer Table -->
<table style="width: 100%; border-collapse: collapse; margin-top: 10px;">
    <tr>
        <td colspan="9" style="border: 1px solid #000; padding: 5px; text-align: left;">
            Note - All dimensions are in mm &nbsp;&nbsp; Sampling Plan No - WI / INQUA / 001 &nbsp;&nbsp; Reference IS 2500, Part II, AQL 0.4%
        </td>
        <td colspan="3" style="border: 1px solid #000; padding: 5px; text-align: left;">
            
        </td>
    </tr>
    <tr>
        <th colspan="4" style="border: 1px solid #000; padding: 5px; text-align: left;">
            Accepted 
        </th>
        <th colspan="4" style="border: 1px solid #000; padding: 5px; text-align: left;">
            Rejected
        </th>
        <td colspan="4" style="border: 1px solid #000; padding: 5px; text-align: left;">
            * With Deviation Part Supplied
        </td>
    </tr>
    <tr>
        <th colspan="6" style="border: 1px solid #000; padding: 5px; text-align: left;">
            Checked by: 
        </th>
        <th colspan="6" style="border: 1px solid #000; padding: 5px; text-align: left;">
            Verified by: 
        </th>
    </tr>
</table>


  <div class="col-md-12 center" style="margin-top: 10px;">
                                <button name="print" id="print" class="btn btn-success" style="width:20%">Print</button>
                            </div>


            </div>
        </div>
    </div>

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div>

<script>
    $(document).on('click', '#print', function() {
        $('#print').hide();
        window.print();
    });
</script>

</body>
</html>