﻿.table-group {
    word-break: break-all;
    /* ReSharper disable once InvalidValue */
    word-break: break-word;
}
table {
    border-collapse: collapse;
    margin:.5em 0 .5em 0;
    width: 100%;
}
th,
td {
    border: 1px solid;
    border-color: rgb(220,220,220);
    line-height: 1.5;
    padding: 0.5em;
    text-align: left;
}
th {
    background-color: rgba(51,204,255,0.5);
    font-weight: bold;
    text-align: left;
}
/* Stack rows vertically on small screens */
@media (max-width: 30em) {
    /* Hide column labels */
    thead tr {
        position: absolute;
        top: -9999em;
        left: -9999em;
    }
    tr {
        border-bottom: 0;
    }
    /* Leave a space between table rows */
    tr + tr {
        margin-top: 1.5em;
    }
    /* Get table cells to act like rows */
    tr,
    td {
        text-align: left;
        display: block;
    }
    td {
        border: none;
        border-bottom: 1px solid;
        border-color: rgb(220,220,220);
        /* Leave a space for data labels */
        padding-left: 50%;
    }
    /* Add data labels */
    td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        line-height: 1.5;
        margin-left: -100%;
        width: 100%;
    }
}
/* Stack labels vertically on smaller screens */
@media (max-width: 20em) {
    td {
        padding-left: 0.75em;
        text-align: left;
    }
    td:before {
        display: block;
        margin-bottom: 0.75em;
        margin-left: 0;
    }
}