/* original: http://css-tricks.com/responsive-data-tables/ */

.responsive {
    width: 100%;
    border-collapse: collapse;
}

@media only screen and (max-width: 767px) {

    /* Force table to not be like tables anymore */
    /* table.responsive,*/
    .responsive > thead,
    .responsive > tbody,
    .responsive > tbody > tr,
    .responsive > thead > th {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .responsive > thead > tr, 
    .responsive > thead > tr > th, 
    .responsive > tbody > tr > th {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive > tbody > tr {
        border: 1px solid #ccc;
    }

    .responsive > tbody > tr > td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 20% !important;
        white-space: normal;
        text-align: left;

        display: block;
        -webkit-box-sizing: content-box;
           -moz-box-sizing: content-box;
                box-sizing: content-box;
        min-height: 1em;
    }

    .responsive > tbody > tr > td::before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        left: 6px;
        width: 45%;
        padding-right: 10px;
        -ms-word-wrap: break-word;
            word-wrap: break-word;
        text-align: left;
        font-weight: bold;
        /*
        Label the data
        */
        content: attr(data-title);
    }
    
    .responsive td.responsive-omit-title:nth-child(odd), .responsive td.responsive-omit-title:nth-child(even) {
        padding-left: 6px;
    }

    .responsive td.responsive-omit-title::before {
        display: none;
    }

    .responsive td.responsive-omit-if-empty:empty {
        display: none;
    }
}
