/*
Generic Styling, for Desktops/Laptops
*/
table.non-staff {
    width: 100%;
    border-collapse: collapse;      
}
/* Zebra striping */
table.non-staff  tr:nth-of-type(odd) {
    background: #fff;
}
table.non-staff  th {
   background: #585858;
    font-weight: bold;
    text-align: center;
    color: #f1f1f1
}
table.non-staff  td, th {
    padding: 6px;
    border: 1px solid #ccc;
    text-align: center;
}

table.non-staff  td,th.cen{
	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.non-staff , table.non-staff  thead, table.non-staff  tbody, table.non-staff  th, table.non-staff  td, table.non-staff  tr {
    display: block;
}

/* Hide table headers (but not display: none;, for accessibility) */
table.non-staff  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

table.non-staff  tr { border: 1px solid #ccc; }

table.non-staff  td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 53%;
}

table.non-staff  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;
}


table.non-staff  td,th.cen{
	text-align: left;
}


/*
Label the data
*/
table.non-staff  td:nth-of-type(1):before { content: "S.No.";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.non-staff  td:nth-of-type(2):before { content: "Photo";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.non-staff  td:nth-of-type(3):before { content: "Name";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.non-staff  td:nth-of-type(4):before { content: "Date of Birth";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.non-staff  td:nth-of-type(5):before { content: "Designation"; font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%;}
table.non-staff  td:nth-of-type(6):before { content: "Qualification";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }
table.non-staff  td:nth-of-type(7):before { content: "Joining Date";font-weight: bold;color: #454545;border-right:1px solid #bbb;height:100%; }


}





