﻿@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");

.table-container {
    background-color: var(--itzone-extra);    
    color: #555555;
    font-size: 16px;
    font-weight: 400;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Table Header Cell and Standard Cell */
th,
td {
    text-align: right;
    padding: 8px;
}

/* Table Headings */
th {
    color: #555555;
    background: #DDD;
    font-size: 17px;
    font-weight: 600;
}


/* For All Devices Above 600px */
@media only screen and (min-width: 600px) {

    /* Styles the background color off every odd table row */
    tr:nth-child(odd) {
        background: var(--itzone-extra);
    }
    tr:nth-child(even) {
        background: #FFFFFF;
    }
}
/* Close Media Query */


/* For All Devices Below 600px */
@media only screen and (max-width: 600px) {

    .container {
        margin: 3.5% 1.5%;
    }

    /* Force table to not be like tables anymore */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

        /* Hide table headers (but not display: none;, for accessibility) */
        thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    /* Add Border to make easier to read*/
    tr {
        border: 1px solid #ccc;
    }

    /* Behave  like a "row" */
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 60%;
    }

        td:nth-child(1) {
            background: #DDD;
        }

        /* Now like a table header */
        td:before {
            position: absolute;
            top: 6px;
            left: 6px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: 600;
        }

    /* Hide Table Headings */
    th {
        display: none;
    }
}
