<div class="main_window detalle" id="detalle_rec">

<div id="detalle-rec">
    <div id="cabezera-rec">
        <div id="asiento">
            <label>&nbsp;</label>
            <label>&nbsp;</label>
        </div>
        <div id="tipo-rec">
            <label class="tipofact">Recibo</label>
            <label>&nbsp;</label>
        </div>
        <div id="numero-rec">
            <label><?php echo $detalle['numf'] ?></label>
            <label><?php echo $detalle['fecha'] ?></label>
        </div>
    </div>
    
    
    <div id="dat_cliente-rec">
        <label id="lanom-rec">
           <strong><?php echo $detalle['lanom'] ?></strong> 
        </label>
        
        <label><strong><?php echo $detalle['ladir'] ?></strong></label>
        <label>&nbsp;</label>
    </div>
            
    
    <?php if ($detalle["arr_detalle"]): ?>
    <div id="items_cabezera">
        <div>Fecha</div>
        <div class="det" style="width: 200px !important;">Detalle</div>
        <div>Liquid.</div>
        <div>Pago</div>
    </div>
    <div style="overflow-y: scroll; height: 281px; width: 495px">
        <ul>
            <?php foreach($detalle["arr_detalle"] as $rs_det):?>
            <li style="width: 495px; text-align: left; border-bottom: 0.5px grey solid;">
                <span class="can-dec"><?php echo $rs_det['can'] ?></span>
                <span class="det-dec"><?php echo $rs_det['det'] ?></span>
                <span class="laimp-dec"><?php echo $rs_det['laimp'] ?></span>
                <span class="cod-dec"><?php echo $rs_det['cod'] ?></span>
            </li>
            <?php endforeach; ?>
        </ul>
    </div>
    <div id="sumatotalrec">
        <div id="totalrec"><?php echo $detalle["arr_pie"]["pagtotal"] ?></div>
        <div id="pagorec"><?php echo $detalle["arr_pie"]["liqtotal"] ?></div>
    </div>
    
    <?php endif; ?>
    
    <?php if ($detalle['laanu']=="A"): ?>
    <div id="anulada">
        ANULADA
    </div>
    <?php endif; ?>
    
    
    
    
    
</div>

<?php if (isset($detalle["arr_conductor"]) && $detalle["arr_conductor"]) { ?>
<div id="mas-datos">
    <label>Conductor:</label><?php echo $detalle["arr_conductor"]["CONDUCTOR"]; ?><br />
    <label>Vehículo:</label>
    <ul>
        <li><label>Marca:</label><?php echo $detalle["arr_conductor"]["V_MARCA"]; ?></li>
        <li><label>Patente:</label><?php echo $detalle["arr_conductor"]["V_PATENTE"]; ?></li>
        <li><label>Kms:</label><?php echo $detalle["arr_conductor"]["V_KM"]; ?></li>
    </ul>
</div>
<?php } else { ?>
<div id="mas-datos">
    <b>Sin Datos Adicionales</b>
</div>
<?php } ?>

<div class="button_form">
    <button id="button-dec" onclick="cerrar_detalle();"style="position: absolute; left: 393px; top: 460px;">Cerrar</button>
    <button onclick="imprimir_detalle_rec()" style="position: absolute; left: 225px; top: 460px;">Imprimir</button>
</div>

</div>