<br>
<div style="color: #0803c9;">
    <div style="width: 100%;">
        <div style="width: 60%; float: left">
            <table style="color: #0803c9">
                <tr>
                    <td style="width: 18%">Taller:</td>
                    <td style="width: 96%; border-bottom: 1px solid #0803c9;">
                        <?= $orden['pre_taller'] ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 18%">Señor:</td>
                    <td style="width: 96%; border-bottom: 1px solid #0803c9;">
                        <?= $orden['cli_razon_social'] ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 18%">Motor:</td>
                    <td style="width: 96%; border-bottom: 1px solid #0803c9;">
                        <?= $motor ?>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table style="color: #0803c9">
                <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 18%">Tlf:</td>
                    <td style="width: 100%; border-bottom: 1px solid #0803c9;">
                        <?= $orden['cli_telefono'] ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 18%">Rif:</td>
                    <td style="width: 100%; border-bottom: 1px solid #0803c9;">
                        <?= $orden['cli_dni'] ?>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="margin-top:20px">
        <span class="" style="margin-top: 0.5rem; font-weight: bold;">PARTES RECIBIDAS</span>
        <br>
        <br>
    </div>
    <div style="width: 100%; text-align: left; font-size: 10px">
        <?php $i = 0; ?>
        <?php foreach ($partes as $row) : ?>
            <?php $i++; ?>
            <?php if ($i > 3) : ?>
                <?php $i = 0; ?>
                <br>
                <br>
            <?php endif; ?>
            <span style="text-align: right;"><?= $row['par_parte'] ?>&nbsp;</span>
            <span style=" border-bottom: 1px solid black; text-align: right;">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <?= $row['prepar_cantidad'] ?>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </span>&nbsp;
        <?php endforeach; ?>
    </div>
    <br>
    <hr>
    <div>
        <span class="" style="margin-top: 0.5rem; font-weight: bold;">TRABAJOS A EFECTUARSE</span>
    </div>
    <?php foreach ($servicios as $cat) : ?>
        <div style="width: 100%; margin-top:20px">
            <div style="width: 35%; float: left; text-align: center; ">
                <?= $cat['categoria'] ?>
                <div style="margin-left: 65px; margin-top: 5px; border: 1px solid black; width: 50px; height: 50px; border-color: #0803c9;">&nbsp;</div>
            </div>
            <div style="float: left;">
                <?php $i = 0; ?>
                <?php foreach ($cat['servicios'] as $serv) : ?>
                    <?php $i++; ?>
                    <?php if ($i > 2) : ?>
                        <?php $i = 0; ?>
                        <br>
                        <br>
                    <?php endif; ?>
                    <span style="text-align: right;"><?= $serv['servicio'] ?>&nbsp;</span>
                    <span style=" border-bottom: 1px solid black; text-align: right;">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <?= $serv['cantidad'] ?>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </span>&nbsp;
                <?php endforeach; ?>
            </div>
        </div>
    <?php endforeach; ?>
</div>
