﻿/* Force table to not be like tables anymore */
.mobile-grid table,
.mobile-grid thead,
.mobile-grid tbody,
.mobile-grid th,
.mobile-grid tr,
.mobile-grid td {
    display: block;
}

    /* Hide table headers (but not display: none;, for accessibility) */
/*    .mobile-grid thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }*/

.k-grid.mobile-grid tr {
    border: 1px solid rgba(0,0,0,.2);
    margin-bottom: 10px;
}

.k-grid.mobile-grid .k-grid-content .k-table-row > td.k-table-td {
    /* Behave  like a "row" */
    border-bottom: 1px solid rgba(0,0,0,.08);
    position: relative;
    padding-left: 50%;
}

.mobile-grid td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
}
