﻿/* 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 {
    cursor: pointer;
    display: table-cell;
    border-bottom: #ccc 1px solid;
    border-top: #ccc 1px solid;
    background: #00a0c6;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 12px 4px;
    cursor: pointer;
    /*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;
    background: #f3f2f2;
    
    padding-top: 7px;
    padding-bottom: 7px;
    /*aboue padding-top & padding-bottom works mobile display not table view*/
}

.table_row > .table_small > .table_cell {
    padding: 12px 4px;
    text-align: left;
    color: #5b5b5b;
    border-bottom: #ccc 1px solid;
    border-right: #ccc 1px solid;
    /*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: #f3f2f2;
}

/*@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;
    }
}
