table {
    width: 100%;
    border-collapse: collapse;
    box-sizing: border-box;
}

/* Zebra striping */
.data-table tr:nth-of-type(even) {
    background: rgba(0, 0, 0, 0.04);
}
.data-table th {
    font-weight: 500;
}
.data-table td,
.data-table th {
    padding: 0.1rem 1rem;
    border: none;
    text-align: left;
}

.data-table td:first-child,
.data-table th:first-child {
    padding-top: 0.8rem;
}

.data-table td:first-child:before {
    padding-top: 0;
}

.data-table td:last-child,
.data-table th:last-child {
    padding-bottom: 0.8rem;
}

.data-table tr {
    border-radius: 5px;
}

/*
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
/* Force table to not be like tables anymore */
.data-table table,
.data-table thead,
.data-table tbody,
.data-table th,
.data-table td,
.data-table tr {
    display: block;
}

/* Hide table headers (but not display: none;, for accessibility) */
.data-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.data-table tr {
    border: none;
}

.data-table td {
    border: none;
    border-bottom: none;
    position: relative;
}

.data-table td:before {
    white-space: nowrap;
    display: block;
    padding-top: 0.4rem;
}

/*
	Label the data
	*/
#license_keys td:nth-of-type(1):before {
    content: "Key:";
}
#license_keys td:nth-of-type(2):before {
    content: "Kind:";
}
#license_keys td:nth-of-type(3):before {
    content: "Date Issued:";
}
#license_keys td:nth-of-type(4):before {
    content: "Actions:";
}

.data-table th.text_right,
.data-table td.text_right {
    text-align: left;
}

@media (min-width: 640px) {
    .data-table table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: unset;
    }

    .data-table tr {
        display: table-row;
    }

    .data-table tbody {
        display: table-row-group;
    }

    .data-table thead {
        display: table-header-group;
    }

    .data-table thead tr {
        top: 0;
        left: 0;
        display: table-row;
        position: relative;
        box-shadow: 0 1px 0 rgba(216, 216, 216, 0.7);
    }

    .data-table th {
        display: table-cell;
    }

    .data-table table {
        display: table;
    }

    .data-table td:before {
        display: none;
        content: unset !important;
    }

    .data-table td {
        display: table-cell;
        vertical-align: top;
        padding: 0.5rem 1rem;
    }

    .data-table td:first-child,
    .data-table th:first-child {
        padding-top: 0.5rem;
    }

    .data-table td:last-child {
        box-shadow: none;
    }

    .data-table td {
        box-shadow: 1px 0 0 rgba(216, 216, 216, 0.7);
    }

    .data-table th {
        box-shadow: 1px 1px 0 rgba(216, 216, 216, 0.7);
    }
    .data-table th:last-child {
        box-shadow: 0 1px 0 rgba(216, 216, 216, 0.7);
    }

    .data-table tr.border_bottom td {
        box-shadow: 0 1px 0 rgba(216, 216, 216, 0.7);
    }

    th.text_right,
    td.text_right {
        text-align: right;
    }
}
