<style type='text/css'>
    <?php require('./Assets/css/' . $data['estilo']) ?>
</style>

    <div style='position:absolute;top:61mm;right:58mm;'>
        <barcode code="<?php echo $data['venta']['numdoc']; ?>" type="C128B" size="0.8" height="1" text="1" />
    </div>

    <table id="datos-empresa" cellpadding='0' style='margin-bottom:0px;'>
        <tr>
            <td class="logo" style='width:34mm;'>
                <img src="<?php echo base_url . 'Assets/img/logo-factura.png'; ?>" alt="" style='width:34mm;'>
            </td>
            <td class="info-empresa" style='padding-left:4mm;padding-right:4mm;'>
                <table>
                    <tr><td style='background:<?=$data['color']?>;font-size:4.5mm;color:#fff;font-weight:bold;'>FACTURA CAMBIARIA</td></tr>
                    <tr><td style='font-size:2.3mm;color:<?=$data['color']?>;padding-top:1mm;'>
                            <strong>DISTRIBUIDORA TECNICA INDUSTRIAL, SOCIEDAD ANONIMA</strong><br/>
                            <span style='font-size:2.1mm;'>Condado El Naranjo 17 Calle 14-99, Bodega 11 Complejo<br/>
                            Industrial, Zona 4 Mixco, Guatemala, Guatemala<br/>
                            PBX: 2462-8200<br/>
                            E-mail: ventas@distinsa.net<br/>
                            www.distinsa.net<br/>
                            <strong>NIT: 23154179</strong><br/>
                            <strong>PATENTE DE COMERCIO No. 234808-549-196</strong>
                            </span>
                    </td></tr>
                </table>
            </td>            

            <td class="info-detalle" style='width:65mm;'>
                <table align='right' style='line-height:3.1mm;'>
                    <tr><td style='font-size:3.2mm;color:<?=$data['color']?>;font-weight:bold;border-bottom:1px solid <?=$data['color']?>;' colspan='2'>Documento Tributario Electrónico</td></tr>
                    <tr><td style='font-size:2.8mm;color:<?=$data['color']?>;font-weight:bold;padding:0px;padding-top:1mm;' colspan='2'>NÚMERO AUTORIZACIÓN</td></tr>
                    <tr><td style='font-size:2.5mm;color:#000;font-weight:bold;padding:0px;' colspan='2'><?php echo $data['venta']['autorizacion']; ?></td></tr>
                    <tr><td style='font-size:2.8mm;color:<?=$data['color']?>;font-weight:bold;padding:0px;'>Serie:</td><td style='font-size:2.8mm;color:#000;font-weight:bold;width:30mm;'><?php echo $data['venta']['seriefel']; ?></td></tr>
                    <tr><td style='font-size:2.8mm;color:<?=$data['color']?>;font-weight:bold;padding:0px;'>Número de DTE:</td><td style='font-size:2.8mm;color:#000;font-weight:bold;width:30mm;'><?php echo $data['venta']['numfel']; ?></td></tr>
                    <tr><td style='font-size:2.8mm;color:<?=$data['color']?>;font-weight:bold;padding:0px;' colspan='2'>Fecha y Hora de Certificación:</td></tr>
                    <tr><td style='font-size:2.8mm;color:#000;font-weight:bold;padding:0px;' colspan='2'><?php echo date('d/m/Y h:i:s A',strtotime($data['venta']['fechaproc'])); ?></td></tr>
                </table>
            </td>

        </tr>
    </table>

    <div id="container-info" style='border:0.50mm solid <?= $data['color'] ?>;'>
        <table cellpadding='0' cellpadding='0' style='margin-bottom:0px;'>
            <tr>
                <td style='vertical-align:top;background-color:#fff;width:140mm;'>
                    <table style='font-size:2.7mm;color:<?= $data['color'] ?>;line-height:2.8mm;' cellpadding='2' cellspacing='2'>
                        <tr>
                            <td style='width:20mm;font-weight:bold;'>DIA: <span style='color:#000;'><?php echo date('d',strtotime($data['venta']['fechaproc'])); ?></span></td>
                            <td style='width:20mm;font-weight:bold;'>MES: <span style='color:#000;'><?php echo date('m',strtotime($data['venta']['fechaproc'])); ?></span></td>
                            <td style='width:20mm;font-weight:bold;'>AÑO: <span style='color:#000;'><?php echo date('Y',strtotime($data['venta']['fechaproc'])); ?></span></td>
                            <td>&nbsp;&nbsp;&nbsp;</td>
                        </tr>
                        <tr>
                            <td style='width:20mm;font-weight:bold;'>NOMBRE:</td>
                            <td colspan='3' style='font-weight:bold;color:#000;'><?php echo $data['venta']['nomcliente']; ?></td>
                            <td>&nbsp;&nbsp;&nbsp;</td>
                        </tr>
                        <tr>
                            <td style='width:20mm;font-weight:bold;'><?php if($data['venta']['tipoid']==1) { echo 'NIT:'; } else if($data['venta']['tipoid']==2) { echo 'CUI:'; } else if($data['venta']['tipoid']==3) { echo 'PASAPORTE:'; } ?></td>
                            <td colspan='3' style='font-weight:bold;color:#000;'><?php echo $data['venta']['nitcliente']; ?></td>
                            <td>&nbsp;&nbsp;&nbsp;</td>
                        </tr>
                        <tr>
                            <td style='width:20mm;font-weight:bold;'>DIRECCIÓN</td>
                            <td colspan='4' style='font-weight:bold;color:#000;'><?php echo substr($data['venta']['direccion'], 0, 132); ?></td>
                        </tr>
                    </table>

                    <table style='font-size:2.7mm;color:<?= $data['color'] ?>;line-height:2.8mm;margin-top:0mm;' cellpadding='2' cellspacing='2'>
                        <tr>
                            <td style='width:30mm;font-weight:bold;'>DÍAS CRÉDITO: <span style='color:#000;'><?php echo (int)$data['venta']["dias_cred"]; ?></span></td>
                            <td style='width:43mm;font-weight:bold;'>ORDEN COMPRA: <span style='color:#000;'><?php echo $data['venta']["ord_compra"]; ?></span></td>
                            <td style='width: 43mm;'>&nbsp;</td>
                            <td>&nbsp;&nbsp;&nbsp;</td>
                        </tr>
                        <tr>
                            <td style='padding:0px;padding-left:0.5mm;' colspan='4'>
                                <table style='font-size:2.7mm;color:<?= $data['color'] ?>;line-height:2.8mm;width:110mm;' cellpadding='0' cellspacing='0'>
                                    <tr>
                                        <td style='width:mm;font-weight:bold;'>CODIGO: <span style='color:#000;'><?php echo $data['venta']["codcliente"]; ?></span></td>
                                        <td style='width:mm;font-weight:bold;'>VENDEDOR: <span style='color:#000;'><?php echo $data['venta']["codven"]; ?></span></td>
                                        <td style='width:mm;font-weight:bold;'>TELEFONO: <span style='color:#000;'><?php echo $data['venta']["telefono"]; ?></span></td>
                                    </tr>
                                </table>
                            </td>
                            <!-- <td style='width:30mm;font-weight:bold;'>CODIGO: <span style='color:#000;'><?php echo $data['venta']["codcliente"]; ?></span></td>
                            <td style='width:43mm;font-weight:bold;'>VENDEDOR: <span style='color:#000;'><?php echo $data['venta']["codven"]; ?></span></td>
                            <td style='width:43mm;font-weight:bold;'>TELEFONO: <span style='color:#000;'><?php echo $data['venta']["telefono"]; ?></span></td>
                            <td>&nbsp;&nbsp;&nbsp;</td> -->
                        </tr> 
                    </table>

                <td width='30%' style='text-align:center;'>
                    <table style='font-size:2.1mm;color:<?= $data['color'] ?>;line-height:2.8mm;'>
                        <tr>
                            <td>
                                <strong>(LIBRE DE PROTESTO)</strong><br/>
                                ESTA FACTURA NO ES COMPROBANTE DE<br/>
                                PAGO, EXIJA EL RECIBO DE CAJA<br/>
                                CORRESPONDIENTE         
                            </td>
                        </tr>
                    </table>
                    <table style='font-size:2.5mm;color:<?= $data['color'] ?>;line-height:3.5mm;margin-top:1mm;'>
                        <tr>
                            <td>
                                <strong>SUJETO A PAGOS TRIMESTRALES<br/>
                                AGENTE RETENEDOR DE IVA</strong>         
                            </td>
                        </tr>
                    </table>
                    <table style='font-size:3mm;color:#000;line-height:3mm;text-align:right;margin-top:1mm;'>
                        <tr>
                            <td>
                                <strong>CORRELATIVO # <span style='color:<?= $data['color'] ?>;'><?php echo $data['venta']['numdoc']; ?></span></strong>         
                            </td>
                        </tr>
                    </table>
                </td>                
            </tr>
        </table>
    </div>
    <div style='position:absolute;left:60mm;top:81mm;z-index:0;'>
        <img src="Assets/img/logos-factura-nt2.png" style="opacity:0.1;width:65mm;"/>
    </div>

    <div id="detalle-factura" style='border:0.50mm solid <?= $data['color'] ?>;height:55mm;'>
        <table id="container-producto" cellpadding='0' cellspacing='0'>
            <thead>
                <tr style='background-color: rgba(<?= $data['color_rgb'] ?>,0.3);'>
                    <th style='width:15mm;color:<?= $data['color'] ?>;border-right:0.25mm solid <?= $data['color'] ?>;'>CODIGO</th>
                    <th style='width:18mm;color:<?= $data['color'] ?>;border-right:0.25mm solid <?= $data['color'] ?>;'>CANTIDAD</th>
                    <th style='color:<?= $data['color'] ?>;border-right:0.25mm solid <?= $data['color'] ?>;'>DESCRIPCION</th>
                    <th style='width:20mm;color:<?= $data['color'] ?>;border-right:0.25mm solid <?= $data['color'] ?>;'>PRECIO<BR/>UNITARIO</th>
                    <th style='width:20mm;color:<?= $data['color'] ?>;border-right:0.25mm solid <?= $data['color'] ?>;'>IMPORTE</th>
                    <th style='width:23mm;border-right:0 none;color:<?= $data['color'] ?>;'>IMPUESTO</th>
                </tr>
            </thead>
            <tbody>

                <?php
                $descuento = 0;
                $padding_init='padding-top:0.5mm;';

                foreach ($data['detalle'] as $producto) {
                    $descuento += $producto['descuento']; ?>
                    <tr>
                        <td style='text-align:right;border-right:0.25mm solid <?= $data['color'] ?>;<?php echo $padding_init;?>'><?php echo $producto['codart']; ?></td>
                        <td style='text-align:right;border-right:0.25mm solid <?= $data['color'] ?>;<?php echo $padding_init;?>'><?php echo $producto['cantidad']; ?></td>
                        <td style='border-right:0.25mm solid <?= $data['color'] ?>;<?php echo $padding_init;?>'><?php echo substr($producto['descripcion'], 0, 61); ?></td>
                        <td style='text-align:right;border-right:0.25mm solid <?= $data['color'] ?>;<?php echo $padding_init;?>'>Q.<?php echo number_format($producto['precio_uni'], 2); ?></td>
                        <td style='text-align:right;border-right:0.25mm solid <?= $data['color'] ?>;<?php echo $padding_init;?>'>Q.<?php echo number_format($producto['precio'], 2); ?></td>
                        <td style='text-align:right;border-right:0 none;<?php echo $padding_init;?>'><small style='font-size:2mm;color:<?= $data['color'] ?>'>IVA</small> Q.<?php echo number_format($producto['iva'], 2); ?></td>
                    </tr>
                <?php
                        $padding_init='';
                    } 
                ?>
                

                <?php
                for($n=0;$n<(11-count($data['detalle']));$n++)
                {
                    ?>
                    <tr>
                        <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                        <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                        <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                        <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                        <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                        <td style='border-right:0 none;'>&nbsp;</td>
                    </tr>                    
                    <?php
                }
                ?>
                <tr>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;text-align:center;font-size:2.8mm;font-weight:bold;color:<?= $data['color'] ?>;padding-top:0.82mm; '>NO SE ACEPTAN CAMBIOS NI DEVOLUCIONES</td>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                    <td style='border-right:0 none;'>&nbsp;</td>
                </tr>                

            </tbody>
            <tfoot>
                <tr>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;border-top:0.25mm solid <?= $data['color'] ?>;font-size:2.5mm;padding-top:0.5mm;padding-bottom:0.5mm;' colspan='3'>
                    <STRONG style="color: <?= $data['color'] ?>;">TOTAL EN LETRAS</STRONG><BR/><span style='font-size:2.1mm;'><?php echo $data['total_letras']; ?></span>
                    </td>
                    <td style='background-color: rgba(<?= $data['color_rgb'] ?>,0.3);border-right:0.25mm solid <?= $data['color'] ?>;border-top:0.25mm solid <?= $data['color'] ?>;font-weight:bold;font-size:2.5mm;text-align:right;color: <?= $data['color'] ?>;'>TOTAL</td>
                    <td style='border-right:0.25mm solid <?= $data['color'] ?>;border-top:0.25mm solid <?= $data['color'] ?>;text-align:right;font-weight:bold;font-size:2.5mm;'>Q.<?php echo number_format($data['venta']['total'], 2); ?></td>
                    <td style='background-color: rgba(<?= $data['color_rgb'] ?>,0.3);border-right:0 none;border-top:0.25mm solid <?= $data['color'] ?>;'>&nbsp;</td>
                </tr>                
            </tfoot>
        </table>
    </div>

    <div id="abono" style='height:20mm;width:195mm;'>
        <table cellpadding='0' cellspacing='0' style='padding:0px;margin:0px;'>
            <tr>
                <td style='padding:1.5mm;font-size:2.5mm;line-height:4mm;color:<?= $data['color'] ?>;padding-bottom:0px;'>
                    <strong style='font-size:3.5mm;'>ABONOS</strong><br/>
                    <strong style=''>No.:</strong> <span>1</span><br/>
                    <strong style=''>Abono:</strong> <span>Q.<?php echo number_format($data['venta']['total'], 2); ?></span><br/>
                    <strong style=''>Fecha de Vencimiento:</strong> <span><?php echo date('d/m/Y', strtotime($data['venta']['fechadoc'] . ' +30 days')); ?></span><br/>
                </td>
                <td style='width:142mm;font-size:2.1mm;line-height:2.8mm;color:<?= $data['color'] ?>;padding:1.5mm;padding-bottom:0px;'>
                        Se servirá(n) usted(es) pagar esta única Factura Cambiaría libre de protesto a la orden o endoso de DISTINSA la totalidad de su
                        importe. Valor recibido que asentará(n) usted(es) en su cuenta según nuestro aviso. Si el aceptante-comprador incurriere en
                        atraso en el pago de esta factura acepta un cargo de interés del 2% mensual. La falta de pago de uno sólo de los abonos
                        convenidos, dará por vencidos los demás plazos a favor del comprador y hará exigible el saldo de la obligación, por el carácter de
                        Factura Cambiaría. El aceptante comprador y el avalista aceptan las condiciones de esta factura. La mercadería sigue siendo de
                        nuestra propiedad hasta su cancelación total.
                </td>
            </tr>
        </table>
    </div>
    
    <div id="observaciones" style='font-size:2.5mm;height:19.7mm;width:166mm;border:0.50mm solid <?= $data['color'] ?>;border-radius:2mm;padding:1mm;word-wrap: break-word;'>
        <strong style='font-size:3.3mm;color:<?= $data['color'] ?>;'>CONDICIONES DE ENTREGA:</strong><br/>
        <strong style='color:<?= $data['color'] ?>;'>TRANSPORTE:</strong> <?=$data['venta']['transporte']?><br/>
        <strong style='color:<?= $data['color'] ?>;'>OBSERVACIONES:</strong><br/>
        <?=$data['venta']['ENTREGAOBS']?>
    </div>

    <div id='autorizacion' style='width:168mm;font-size:2.7mm;margin-top:0.5mm;text-align:right;padding:0px;'>
        <strong style='color:<?= $data['color'] ?>;'>CERTIFICADOR:</strong> MEGAPRINT, S.A.
        <strong style='color:<?= $data['color'] ?>;'>NIT:</strong> 50510231
    </div>

    <div style='width:23mm;height:26mm;position:absolute;right:11mm;top:148mm;text-align:center;'>
        <barcode code="https://felpub.c.sat.gob.gt/verificador-web/publico/vistas/verificacionDte.jsf?tipo=autorizacion&numero=<?=$data['venta']['autorizacion']?>&emisor=<?=$data['sucursal']['nit']?>&receptor=<?=$data['venta']['nitcliente']?>&monto=<?=$data['venta']['total']?>" type="QR" class="barcode" size="1.10" error="M" disableborder="1" style='margin-bottom:1mm;'/>
        <strong style='font-size:2.5mm;color:#000;padding-top:1mm;'>VERIFICACIÓN SAT</strong>
    </div>

    <div id="abono" style='height:20mm;width:195mm;margin-top:10mm;'>
        <table cellpadding='0' cellspacing='0' style='padding:0px;margin:0px;'>
            <tr>
                <td style='width:90mm;vertical-align:top;text-align:center;border-top:0.3mm solid <?= $data['color'] ?>;color:<?= $data['color'] ?>;font-size:2.8mm;padding-top:0.5mm;padding-bottom:2.0mm;'>
                    <strong>FIRMA Y SELLO DEL COMPRADOR-CLIENTE</strong>
                </td>
                <td style='width:25mm;'>&nbsp;</td>
                <td style='width:90mm;vertical-align:top;text-align:center;border-top:0.3mm solid <?= $data['color'] ?>;color:<?= $data['color'] ?>;font-size:2.8mm;padding-top:0.5mm;padding-bottom:2.0mm;'>
                    <strong>POR <?php echo strtoupper($data['sucursal']['comercio']); ?></strong>
                </td>
            </tr>
            <tr>
                <td style='vertical-align:top;padding:0px;margin:0px;'>
                    <table cellpadding='0' cellspacing='0' style='font-size:2.5mm;line-height:2.5mm;'>
                        <tr>
                            <td style='border-bottom: 0.25mm dotted <?= $data['color'] ?>;color:<?= $data['color'] ?>;'>NOMBRE:</td>
                        </tr>
                        <tr>
                            <td style='border-bottom: 0.25mm dotted <?= $data['color'] ?>;padding-top:2.5mm;color:<?= $data['color'] ?>;'>DPI No.:</td>
                        </tr>
                    </table>
                </td>
                <td>&nbsp;</td><td>&nbsp;</td>
            </tr>
        </table>
    </div>

    <div style='position:absolute;top:217.5mm;right:10.9mm;width:66.5mm;height:8.2mm;border-top-left-radius:2mm;border-top-right-radius:2mm;border:0.5mm solid <?= $data['color'] ?>;border-bottom:0mm;'></div>

    <div id="recibo" style='position:relative;height:68mm;width:195mm;border-top:0.1mm dashed <?= $data['color'] ?>;padding:0;margin:0mm;padding-top:3mm;'>

        <table cellpadding='0' cellspacing='0' style='padding:0px;margin:0px;'>
            <tr>
                <td style='vertical-align:top;'>
                   <img src="<?php echo base_url . 'Assets/img/logo-factura.png'; ?>" alt="" style='width:20mm;'>
                </td>
                <td style='font-size:2.3mm;line-height:3mm;color:<?= $data['color'] ?>;text-align:center;vertical-align:bottom;padding-bottom:1mm;'>
                    <strong>DISTRIBUIDORA TECNICA INDUSTRIAL, SOCIEDAD ANONIMA</strong><br/>
                    Condado El Naranjo 17 Calle 14-99, Bodega 11 Complejo<br/>
                    Industrial, Zona 4 Mixco, Guatemala, Guatemala<br/>
                    PBX: 2462-8200<br/>
                    E-mail: ventas@distinsa.net<br/>
                    www.distinsa.net
                </td>
                <td style='vertical-align:bottom;'>
                        <strong style='font-size:3.4mm;color:<?= $data['color'] ?>;'>RECIBO DE CAJA No.</strong> <span style='font-size:3.4mm;color:#000;'><?= $data['venta']['numdoc'] ?></span><br/>
                        <table cellpadding='0' cellspacing='0' style='padding:0px;margin:0px;width:100%;margin-top:2mm;'>
                            <tr>
                                <td style='text-align:center;padding:1.5mm 2mm;border-right:0.5mm solid <?= $data['color'] ?>;'>
                                    <strong style='font-size:1.6mm;color:<?= $data['color'] ?>;'>DIA</strong><br/>
                                    <span style='font-size:3.0mm;'><?=date('d',strtotime($data['venta']["fechadoc"])) ?></span>
                                </td>
                                <td style='text-align:center;padding:1.5mm 2mm;border-right:0.5mm solid <?= $data['color'] ?>;'>
                                    <strong style='font-size:1.6mm;color:<?= $data['color'] ?>;'>MES</strong><br/>
                                    <span style='font-size:3.0mm;'><?=date('m',strtotime($data['venta']["fechadoc"])) ?></span>
                                </td>
                                <td style='text-align:center;padding:1.5mm 2mm;border-right:0.5mm solid <?= $data['color'] ?>;'>
                                    <strong style='font-size:1.6mm;color:<?= $data['color'] ?>;'>AÑO</strong><br/>
                                    <span style='font-size:3.0mm;'><?=date('Y',strtotime($data['venta']["fechadoc"])) ?></span>
                                </td>
                                <td style='text-align:center;padding:1.5mm 2mm;'>
                                    <strong style='font-size:1.6mm;color:<?= $data['color'] ?>;'>POR</strong><br/>
                                    <span style='font-size:3.0mm;'><span style='color:<?= $data['color'] ?>'>Q.</span> <?php echo number_format($data['venta']['total'], 2); ?></span>
                                </td>
                            </tr>
                        </table>
                </td>
            </tr>            
        </table>

        <div style='border:0.5mm solid <?= $data['color'] ?>;height:44mm;border-top-left-radius:2mm;border-bottom-left-radius:2mm;border-bottom-right-radius:2mm;padding:2mm;'>

            <table cellpadding='0' cellspacing='0' style='padding:0px;margin:0px;width:100%;font-size:2.5mm;line-height:4.5mm;'>
                <tr>
                    <th style='color:<?= $data['color'] ?>;text-align:left;width:30mm;'>RECIBIMOS DE:</th>
                    <td style='color:#000;text-align:left;' colspan="7"><?= trim($data['venta']["nomcliente"]) ?></td>
                </tr>
                <tr>
                    <th style='color:<?= $data['color'] ?>;text-align:left;'>LA CANTIDAD DE:</th>
                    <td style='color:#000;text-align:left;' colspan="7"><?=$data['total_letras'] ?></td>
                </tr>

                <tr>
                    <th style='color:<?= $data['color'] ?>;text-align:left;'>EFECTIVO Q.:</th>
                    <td style='width:20mm;'></td>
                    <th style='color:<?= $data['color'] ?>;text-align:left;'>CHEQUE No.:</th>
                    <td style='width:20mm;'></td>
                    <th style='color:<?= $data['color'] ?>;text-align:left;'>BANCO:</th>
                    <td style='width:20mm;'></td>
                    <th style='color:<?= $data['color'] ?>;text-align:left;width:14mm;'>TOTAL Q.</th>
                    <td style='color:#000;text-align:left;width:25mm;'>&nbsp;&nbsp;<?php echo number_format($data['venta']['total'], 2); ?></td>
                </tr>                
                <tr>
                    <th style='color:<?= $data['color'] ?>;text-align:center;padding-top:1mm;padding-bottom:0;line-height:1.6mm;' colspan="4">
                        <p style='font-size:1.5mm;'>SI EL PAGO SE EFECTUA CON CHEQUE Y RESULTA SIN FONDOS, ESTE RECIBO NO SE CONSIDERA<br/>COMPROBANTE DE CANCELACIÓN, CARGANDO Q.100.00 POR GASTOS ADMINISTRATIVOS</p>
                        <p style='font-size:58mm;'>&nbsp;</p>
                        <p style='font-size:1.8mm;'>POR DISTRIBUIDORA TÉCNICA INDUSTRIAL, S.A.</p>
                    </th>
                    <td colspan='4' rowspan="2" style='vertical-align:top;'>
                        <p style='color:<?= $data['color'] ?>;'><strong>PREFECHADO</strong>&nbsp;&nbsp;&nbsp;<span style='border:0.3mm solid <?= $data['color'] ?>;'>&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;<strong>FECHA:</strong></p>
                        <p style='color:#000;'><strong style='color:<?= $data['color'] ?>;'>SERIE:</strong>&nbsp;<?=$data['venta']['seriefel'] ?>&nbsp;&nbsp;&nbsp;&nbsp;<strong style='color:<?= $data['color'] ?>;'>DTE:</strong> <?=$data['venta']['numfel'] ?></p>
                    </td>
                </tr>
                <tr>
                    <th style='color:<?= $data['color'] ?>;text-align:center;line-height:2.8mm;font-size:1.5mm;padding:0px;' colspan="4">
                        NOTA: este recibo es el único comprobante de pago que la empresa reconoce
                    </th>
                </tr>                
            </table>

        </div>

    </div>

    <div style='position:absolute;top: 232.5mm;right:13mm;width:169mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 237mm;right:13mm;width:165.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 241.5mm;right:154mm;width:30mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 241.5mm;right:99.5mm;width:35mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 241.5mm;right:53mm;width:35mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>

    <div style='position:absolute;top: 241.5mm;right:13mm;width:26mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>

    <div style='position:absolute;top: 246mm;right:13mm;width:48.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    
    <div style='position:absolute;top: 250.5mm;right:13mm;width:86.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 255mm;right:13mm;width:86.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 259.5mm;right:13mm;width:86.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 264mm;right:13mm;width:86.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>
    <div style='position:absolute;top: 268.5mm;right:13mm;width:86.5mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>

    <div style='position:absolute;top: 266mm;right:118mm;width:66mm;height:0.1;border-bottom:0.1mm solid <?= $data['color'] ?>;'></div>