<style>
body{
    body {font-size:60%}
}
label
{
    margin-right: 0;
}
.grid
{
    border-top: 1px solid #77d5f7;
    border-left: 1px solid #77d5f7;
    
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    
    border-bottom-right-radius: 5px; 
    border-bottom-left-radius: 5px;
    <?php if( $imprimir ){ ?>
    font-size:60% !important;
    <?php } ?>
}
.grid th 
{
    border-right: 1px solid #77d5f7;
    border-bottom: 1px solid #77d5f7;
    background-color: #0a7db1;
    font-weight: normal;
    font-family: Verdana,Arial,sans-serif;
    height: 24px;
    padding: 0 2px;
    
    font-size:100%;
}
.grid td 
{
    border-right: 1px solid #77d5f7;
    border-bottom: 1px solid #77d5f7;
    padding: 0 2px;
    /*white-space: pre;*/
    height: 22px;
}
</style>
<center>
<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0" class="grid">
    <tbody>
        <tr>
            <th style="text-align: center; width: 5%; border-top-left-radius: 5px;">Item</th>
            <th style="text-align: center; width: 5%;">CodBarras</th>
            <th style="text-align: center; width: 15%;">Descripci&oacute;n</th>
            
            <?php foreach ( $a_ALM_AlmacenMast as $i_Key => $o_ALM_AlmacenMastBN ){ ?>
                <th style="text-align: center;">
                    <?=substr( $o_ALM_AlmacenMastBN->getDescripcionLocal(), 0, 6 )?>
                </th>
            <?php } ?>
        </tr>
        <?php foreach ( $a_ALM_ItemMast as $i_Key => $o_ALM_ItemMastBN ){ ?>
        <tr>
            <td style="text-align: center;"><?=$o_ALM_ItemMastBN->getIdItem()?></td>
            <td style="text-align: center;"><?=$o_ALM_ItemMastBN->getCodigoBarras()?></td>
            <td style="text-align: left;"><?=$o_ALM_ItemMastBN->getDescripcionCompleta()?></td>
            
            <?php foreach ( $a_ALM_AlmacenMast as $i_Key => $o_ALM_AlmacenMastBN ){ ?>
                <td style="text-align: center;"><?=ALM_ItemAlmacenStockFN::buscarSumaStockxItemAlmacen( $o_ALM_ItemMastBN->getIdItem(), $o_ALM_AlmacenMastBN->getIdAlmacen() )?></td>
            <?php } ?>
            
        </tr>
        <?php } ?>
    </tbody>
</table>