

/* 
	Generic Styling, for Desktops/Laptops 
	*/
table.tableresponsive {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}
/* Zebra striping */
.tableresponsive tr:nth-of-type(odd) {
    /*background: #f7f7f7; */
}

.tableresponsive th {
    background: #5B5F5F;
    color: white;
    font-weight: normal;
    font-size: 15px;
}


.tableresponsive.sottotabella th {
    background: #006fa0;
    color: white;
    border: none;
    text-align: left;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.47);
    font-size: 13px;
    padding: 5px 10px;
}



.descrizione .tableresponsive.sottotabella th {
    background: #FFFFFF;
    color: #006FA0;
    border: none;
    text-align: left;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.47);
    font-size: 13px;
    width: 119px;
    padding: 5px 10px;
}


.tableresponsive .field_module {
    padding: 6px;
    border: none;
    background: #f8f8f8;
    font-size: 12px;
    float: inherit;
    width: 40px;
    color: rgb(0, 111, 160);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    -moz-border-radius: 2px;
    border-radius: 2px;
    text-align: center;
}




.tableresponsive td, .tableresponsive th {
    padding: 10px;
    border-bottom: 1px solid #dadada;
    border-top: none;
    border-right: none;
    border-left: none;
    text-align: left;
    line-height: 20px;
}


.tableresponsive td {
    color: #666;
    text-shadow: 0 1px 0 white;
}

.tableresponsive a {
    color: rgb(0, 137, 203);
}


.tabelle_carrello.sottotabella.tableresponsive {
    width: auto;
    float: right;
}




/* 
	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)  {*/

@media only screen and (max-width:800px) {

    .tabelle_carrello.sottotabella.tableresponsive {
        width: 100%;
    }

    .tableresponsive th {
        display: none !important;
    }

    .tabelle_carrello.sottotabella .btn {
        margin-bottom: 10px;
        background-color: #88bcd9;
        float: inherit;
        padding: 5px 10px;
        font-size: 15px;
        margin-left: 0px;
        width: inherit;
        position: absolute;
        margin-left: 49px;
    }

    .tabelle_carrello.sottotabella td, .tabelle_carrello.sottotabella th {
        min-height: 41px;
    }


    .tabelle_carrello .minifield_module {
        height: 40px;
    }

    /* Force table to not be like tables anymore */
    table.tableresponsive, .tableresponsive thead, .tableresponsive tbody, .tableresponsive th, .tableresponsive td, .tableresponsive tr {
        display: block;
    }

    table.tableresponsive {
        border: none;
        border-bottom: none;
        width: 100%;
        clear: both;
        padding: 10px 0px;
    }


    /* Hide table headers (but not display: none;, for accessibility) */
    .tableresponsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .tableresponsive tr {
        border-bottom: 2px solid #ccc;
    }

    .tableresponsive.sottotabella tr {
        border-bottom: 1px solid #ccc;
    }

    .tableresponsive td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #f7f7f7;
        position: relative;
        padding-left: 40% !important;
    }

    .tableresponsive.dettaglioforum td {
        border: none;
        border-bottom: 1px solid #f7f7f7;
        position: relative;
        padding-top: 33px;
        padding-left: 10px;
    }

    .tableresponsive td:before {
        /* Now like a table header */
        position: absolute;
        font-weight: normal !important;
        top: 6px;
        left: 6px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        color: black;
    }


    .tableresponsive.sottotabella td:before {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 30%;
        padding-right: 0px;
        white-space: nowrap;
        background-color: #1C93C1;
        color: white;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.51);
        padding: 10px;
    }


    .tableresponsive.dettaglioforum td:before {
        position: absolute;
        top: 8px;
        left: 10px;
        width: 100%;
        padding-right: 10px;
        white-space: nowrap;
        color: black;
        /* font-weight: 700; */
        font-size: 17px;
        /* text-transform: uppercase; */
    }
    /*
		Label the data
		*/

    .tableresponsive .field_module {
        background: #f8f8f8;
        font-size: 12px;
        float: inherit;
        width: 40px;
        color: rgb(0, 111, 160);
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        margin-bottom: 0px;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        -moz-border-radius: 2px;
        border-radius: 2px;
        text-align: center;
        border: 1px solid #dadada;
        margin-left: 0px;
        position: absolute;
        padding: 5px 10px;
    }

    .tabelle_carrello .btn {
        /*     background-color: #88bcd9;
    float: inherit;
    padding: 5px 10px;
    font-size: 15px;
    position: absolute;
    margin-left: 47px;*/
        margin-bottom: 10px;
        background-color: #88bcd9;
        float: inherit;
        padding: 10px 10px;
        font-size: 20px;
        margin-left: 0px;
        width: 100%;
        position: relative;
    }

    .prezzo_totale {
        font-size: 20px;
        padding: 4px;
    }

    .riepilogo_tabella .tableresponsive td, .riepilogo_tabella .tableresponsive th {
        padding: 10px;
        min-height: 41px;
    }
}
