﻿

/* 
Generic Styling, for Desktops/Laptops 
*/
.table-vertical {
    width: 100%;
    height: auto;
    border-collapse: collapse;
}
    /* Zebra striping */
    .table-vertical > tbody > tr:nth-of-type(odd) {
        background: #f9f9f9;
    }

    .table-vertical > thead > tr > th {
        background: #fff;
        /*color: #000;*/
        color: #8e8e8e;
        font-weight: bold;
    }

    .table-vertical > tbody > tr > td, .table-vertical > thead > tr > th {
        padding: 6px;
        border-top: 1px solid #ddd;
        text-align: left;
        vertical-align: middle;
    }



/* 
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-vertical>table,thead, tbody, td, tr { 
display: block; 
}*/
    .table-vertical table,
    .table-vertical thead,
    .table-vertical tbody,
    .table-vertical th,
    .table-vertical td,
    .table-vertical tr {
        display: block;
    }

    .table-vertical th {
        display: none;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .table-vertical thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
        display: none;
    }

    .table-vertical > thead > tr, .table-vertical > tbody > tr {
        border-bottom: 1px solid #a49e9e;
    }


    .table-vertical > thead > tr > td, .table-vertical > tbody > tr > td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 40%; /*50%*/
    }

    .table-vertical > tbody > tr > td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 55%; /*45%*/
        padding-right: 10px;
        white-space: nowrap;
    }

    /*
    Label the data
    */
    .table-vertical > tbody > tr > td:before {
        content: attr(data-title);
    }



}
