/*
Generic Styling, for Desktops/Laptops
*/
table {
    width: 100%;
    border-collapse: collapse;
}
/* Zebra striping */
tr:nth-of-type(odd) {
    background: #eee;
}
th {
    background: #607D8B;
    color: white;
    font-weight: bold;
}
td, th {
    padding: 6px;
    border: 1px solid #ccc;
    text-align: center;
}

/*
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    td#nombre5 {
        color: black;
        font-weight: bold;
        font-size: 105%;

    }

    td#nombre {
        color: black;
        text-overflow:ellipsis;
        white-space: pre-wrap;
        padding-left: 23%;
    }

    tr {
       border: 1px solid #ccc;
       border-top: 1px solid #ccc;


    }

    td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;  /*ESPACIO ENTRE FILAS*/
        position: relative;
        padding-left: 25%;
        white-space:nowrap;
        text-overflow:ellipsis;
    }

    #bottom-entrada {
        /* Behave  like a "row" */
        border: none;
        top: 0px;
        position: absolute;
        padding-left: 2%;
        text-align: left;
        white-space:nowrap;
        text-overflow:ellipsis;
        border-bottom:none;
    }

    #bottom-comision {
        /* Behave  like a "row" */
        border: none;
        top: 28px;
        position: absolute;
        padding-left: 2%;
        text-align: left;
        white-space:nowrap;
        text-overflow:ellipsis;
        border-bottom:none;
    }
    #bottom-total {
        /* Behave  like a "row" */
        border: none;
        font-weight: bold;
        top: 56px;
        position: absolute;
        padding-left: 2%;
        text-align: left;
        white-space:nowrap;
        text-overflow:ellipsis;
        border-bottom:none;
    }

    #mt-importe-resumen {
        position: relative;
        text-align: right;
        padding-left: 72%;
        top: 1px;
        height: 26px;

    }
    #mt-comision-resumen {
        position: relative;
        text-align: right;
        padding-left: 72%;
        top: 1px;
        height: 26px;

    }
    #mt-total-resumen {
        font-weight: bold;
        position: relative;
        text-align: right;
        padding-left: 72%;
        top: 1px;
        height: 26px;
        border-bottom: 1px;

    }

    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 10%;
        padding-right: 10px;
    }

    /*
    Label the data
    */
    td#nombre:nth-of-type(1):before  { content: "Nombre"; }
    td#nombre1:nth-of-type(2):before  { content: "Precio"; }
    td#nombre2:nth-of-type(3):before  { content: "Comisión"; }
    td#nombre3:nth-of-type(4):before  { content: "Disponibilidad"; }
    td#nombre4:nth-of-type(5):before  { content: "Cantidad"; }
    td#nombre5:nth-of-type(6):before  { content: "TOTAL"; }

}
