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

table.tri4 td:nth-child(3){
    text-align: left;padding-left: 2%;
}



/* 
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.tri4 , table.tri4  thead, table.tri4  tbody, table.tri4  th, table.tri4  td, table.tri4  tr { 
    display: block; 
}

/* Hide table headers (but not display: none;, for accessibility) */
table.tri4  thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
}

table.tri4  tr { border: 1px solid #ccc; }

table.tri4  td { 
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee; 
    position: relative;
    padding-left: 53%; 
}

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


/*
Label the data
*/
table.tri4  td:nth-of-type(1):before { content: "Sr. No.";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.tri4  td:nth-of-type(2):before { content: "Name of the equipment";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.tri4  td:nth-of-type(3):before { content: "Nos";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }


}

/* Smartphones (portrait and landscape) ----------- */
@media only screen
        and (min-device-width : 320px)
        and (max-device-width : 480px) {
    body { 
        padding: 0; 
        margin: 0; 
        width: 320px; }
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    body { 
        width: 495px; 
    }
}







