﻿@import 'https://fonts.googleapis.com/css?family=Open+Sans:600,700';

* {
    font-family: 'Open Sans', sans-serif;
}

.rwd-table {
    margin: auto;
    min-width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

    .rwd-table tr:first-child {
        border-top: none;
        background: #428bca;
        color: #fff;
    }

    .rwd-table tr {
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        background-color: #f5f9fc;
    }

        .rwd-table tr:nth-child(odd):not(:first-child) {
            background-color: #ebf3f9;
        }

    .rwd-table th {
        display: none;
    }

    .rwd-table td {
        display: block;
    }

        .rwd-table td:first-child {
            margin-top: .4em;
        }

        .rwd-table td:last-child {
            margin-bottom: .4em;
        }

        .rwd-table td:before {
            content: attr(data-th) " ";
            font-weight: bold;
            width: 120px;
            display: inline-block;
            color: #000;
        }


    .rwd-table th,
    .rwd-table td {
        text-align: left;
    }

.rwd-table {
    color: #333;
    border-radius: .4em;
    overflow: hidden;
}

    .rwd-table tr {
        border-color: #bfbfbf;
    }

    .rwd-table th,
    .rwd-table td {
        padding: .2em 1em;
    }

@media screen and (max-width: 601px) {
    .rwd-table tr:nth-child(2) {
        border-top: none;
    }

    input[name=doinput] {
        width: 100px !important;
    }

    a[name=dodelete] {
        width: 100px !important;
        float: right;
        border: solid 1px #1761fd;
        border-radius: 2px;
        padding: 3px;
        background-color: #1761fd;
        color: #fff;
        margin-top: -74%;
        content: "Delete";
    }

    td[name=headhide] {
        display: none;
    }
}

@media screen and (min-width: 600px) {
    .rwd-table tr:hover:not(:first-child) {
        background-color: #d8e7f3;
    }

    .rwd-table td:before {
        display: none;
    }

    .rwd-table th,
    .rwd-table td {
        display: table-cell;
        padding: .25em .5em;
    }

        .rwd-table th:first-child,
        .rwd-table td:first-child {
            padding-left: 0;
        }

        .rwd-table th:last-child,
        .rwd-table td:last-child {
            padding-right: 0;
        }

    .rwd-table th,
    .rwd-table td {
        padding: 0.3em !important;
        font-size: 14px !important;
    }
}


.rwd-table-child {
    margin: auto;
    min-width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

    .rwd-table-child tr:first-child {
        border-top: none;
        background: #428bca;
        color: #fff;
    }

    .rwd-table-child tr {
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        background-color: #f5f9fc;
    }

        .rwd-table-child tr:nth-child(odd):not(:first-child) {
            background-color: #d8e7f3;
        }

    .rwd-table-child th {
        display: none;
    }

    .rwd-table-child td {
        display: block;
    }

        .rwd-table-child td:first-child {
            margin-top: .5em;
        }

        .rwd-table-child td:last-child {
            margin-bottom: .5em;
        }

        .rwd-table-child td:before {
            content: attr(data-th) "";
            font-weight: bold;
            width: 120px;
            display: inline-block;
            color: #000;
        }


    .rwd-table-child th,
    .rwd-table-child td {
        text-align: left;
    }

.rwd-table-child {
    color: #333;
    border-radius: .4em;
    overflow: hidden;
}

    .rwd-table-child tr {
        border-color: #bfbfbf;
    }

    .rwd-table-child th,
    .rwd-table-child td {
        padding: .2em 1em;
    }

@media screen and (max-width: 601px) {
    .rwd-table-child tr:nth-child(2) {
        border-top: none;
    }
}

@media screen and (min-width: 600px) {
    .rwd-table-child tr:hover:not(:first-child) {
        background-color: #d8e7f3;
    }

    .rwd-table-child td:before {
        display: none;
    }

    .rwd-table-child th,
    .rwd-table-child td {
        display: table-cell;
        padding: .25em .5em;
    }

        .rwd-table-child th:first-child,
        .rwd-table-child td:first-child {
            padding-left: 0;
        }

        .rwd-table-child th:last-child,
        .rwd-table-child td:last-child {
            padding-right: 0;
        }

    .rwd-table-child th,
    .rwd-table-child td {
        padding: 0.3em !important;
        font-size: 14px !important;
    }
}


.tableFixHead {
    overflow-y: auto;
    height: 220px;
}

    .tableFixHead thead th {
        position: sticky;
        top: 0;
    }

/*.tableFixHead th {
background: white;
}*/
