﻿/* reference https://codepen.io/amwill04/pen/QNPpqx*/

#tblJobList {
    display: table;
    text-align: center;
    width: 100%;
    /*margin: 10% auto 0;*/
    border-collapse: separate;   
    font-weight: 400;
    font-size: 14px;
}

.table_row {
    display: table-row;
}

.theader {
    display: table-row;
}

.table_header {
    display: table-cell;
    cursor: pointer;
    /*border-bottom: #ccc 1px solid;
    border-top: #ccc 1px solid;*/
    padding: 10px 6px;	
	text-align: left;
	font-size: 13px;
    font-weight: 700;
	color: #4d4d4d;
	background: #EDE9E6;
	font-family: Arial, Tahoma, Geneva, sans-serif;
	height: 38px;
    /*padding: (top-bottom) (right-left)*/
    /*table header row & cell alignment => table bacground color, foreColor*/
}

/*
    .table_header:first-child {
        border-left: #ccc 1px solid;
        border-top-left-radius: 5px;
    }

    .table_header:last-child {
        border-right: #ccc 1px solid;
        border-top-right-radius: 5px;
    }
*/

.table_small {
    display: table-cell;
}

.table_row > .table_small > .table_cell:nth-child(odd) {
    display: none;
    padding-top: 7px;
    padding-bottom: 7px;	
	font-family: Arial, Tahoma, Geneva, sans-serif;
	background-color: #E30000;
	color: White;
	font-size: 14px;
    /*aboue padding-top & padding-bottom works mobile display not table view*/
}

.table_row > .table_small > .table_cell {
    padding: 8px 4px;
    text-align: left;    
	font-family: Arial, Tahoma, Geneva, sans-serif;
	background-color: #E30000;
	color: White;
	font-size: 14px;
	min-height: 30px;
    /*table row cell not header cell alignment,forColor*/
}

/*
.table_row > .table_small:first-child > .table_cell {
    border-left: #ccc 1px solid;
}

.table_row > .table_small:last-child > .table_cell {
    border-right: #ccc 1px solid;
}

.table_row:last-child > .table_small:last-child > .table_cell:last-child {
    border-bottom-right-radius: 5px;
}

.table_row:last-child > .table_small:first-child > .table_cell:last-child {
    border-bottom-left-radius: 5px;
}
*/

.table_row:nth-child(2n+3) {
    background: #E30000;
}

/*@media screen and (max-width: 900px) {
    #tblJobList {
        width: 90%
    }
}*/
/*max-width: 1024px*/
@media (min-width: 200px) and (max-width: 1200px) {
    #tblJobList {
        display: block;
    }

    .table_row:nth-child(2n+3) {
        background: none;
    }

    .theader {
        display: none;
    }

    .table_row > .table_small > .table_cell:nth-child(odd) {
        display: table-cell;
        width: 50%;
    }

    .table_cell {
        display: table-cell;
        width: 50%;
    }

    .table_row {
        display: table;
        width: 100%;
        border-collapse: separate;
        padding-bottom: 20px;
        margin: 10px auto 0;
        text-align: center;
    }

    .table_small {
        display: table-row;
    }

    .table_row > .table_small:first-child > .table_cell:last-child {
        border-left: none;
    }

    .table_row > .table_small > .table_cell:first-child {
        border-left: #ccc 1px solid;
    }

    .table_row > .table_small:first-child > .table_cell:first-child {
        border-top-left-radius: 5px;
        border-top: #ccc 1px solid;
    }

    .table_row > .table_small:first-child > .table_cell:last-child {
        border-top-right-radius: 5px;
        border-top: #ccc 1px solid;
    }

    .table_row > .table_small:last-child > .table_cell:first-child {
        border-right: none;
    }

    .table_row > .table_small > .table_cell:last-child {
        border-right: #ccc 1px solid;
    }

    .table_row > .table_small:last-child > .table_cell:first-child {
        border-bottom-left-radius: 5px;
    }

    .table_row > .table_small:last-child > .table_cell:last-child {
        border-bottom-right-radius: 5px;
    }
}

@media (min-width: 200px) and (max-width:1024px) {
     .table_row > .table_small > .table_cell {
         border-bottom: 1px solid #ccc;
     }
}