<table cellspacing="0" style="width: 100%;padding-top: 5px;">
    <tr>
        <td style="width: 69%;">
            <table cellspacing="0" style="width: 100%;">
                <tr>
                    <td style="width: 100%;color:white;background-color:#bdc3c7;padding:2px;text-align:center;"> 
                        <strong style="font-size:10px;color: #000" >OBSERVACIONES</strong>
                    </td>
                </tr>
            
                <tr>
                    <td style="width: 100%;border-left:solid 1px #bdc3c7;border-bottom:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;"><strong style="font-size:8px;"><?php echo $observaciones;?> </strong>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellspacing="0" style="width: 100%;" >
                            <tr>
                                <td colspan="3" style="width: 100%;padding-bottom: 36px"></td>
                            </tr>
                            <tr>
                                <td style="width: 45%;">_______________________________</td>
                                <td style="width: 5%;"></td>
                                <td style="width: 45%;">_____________________________</td>  
                            </tr>
                            <tr>
                                <td style="width: 45%;font-size:8px;">Cliente C.C</td>
                                <td style="width: 5%;"></td>
                                <td style="width: 45%;font-size:8px;">Vendedor C.C</td>     
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        <td style="width: 1%;"></td>
        <td style="width: 30%;">
            <table cellspacing="0" style="width: 100%;">
                <tr>
                    <td colspan="2" style="width: 100%;color:white;background-color:#bdc3c7;text-align:center;padding:2px;"> 
                        <strong style="font-size:10px;color: #000" >TOTALES</strong>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        SUBTOTAL 1
                    </td>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        <?php echo number_format($subtotal_global,0); ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        DESCUENTO
                    </td>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        <?php echo number_format($descuento_global,0); ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        SUBTOTAL 2
                    </td>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        <?php echo number_format($subtotal_global-$descuento_global,0); ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        IMPUESTO
                    </td>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        <?php echo number_format($iva_global,0); ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        RETENCION
                    </td>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        <?php echo number_format($total_retencion,0); ?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;font-size:10px;text-align:right;"> 
                        TOTAL
                    </td>
                    <td style="width: 50%;padding:2px;text-align:center;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;font-size:11px;text-align:right; color: red;"> 
                        <strong><?php echo number_format($sumador_total,0); ?></strong>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<table cellspacing="0" style="width: 100%;padding-top: 5px">
    <tr>
        <td style="width: 100%;color:white;background-color:#bdc3c7;padding:2px;text-align:center;"> 
            <strong style="font-size:10px;color: #000" >CONDICIONES DE GARANTIA</strong>
        </td>
    </tr>
    <tr>
        <td style="width: 100%;border-left:solid 1px #bdc3c7;border-bottom:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;"><strong style="font-size:8px;"><?php echo $condiciones;?> </strong>
        </td>
    </tr>
</table>