﻿.format-table table {
    width: 100%;
}


.format-table tr:nth-child(even) {
    background: #f1f1f1;
}

.format-table tr:nth-child(odd) {
    background: #f8f8f8;
}


.stretch-table table {
    width: 100%;
}

.my-table-small-input input {
    margin-bottom: 0 !important;
}


.my-table {
    width: 100%;
    margin: 0; /* top right bottom left */
    padding: 0;
    clear: both;
}


    .my-table .right {
        text-align: right;
    }

    .my-table .left {
        text-align: left;
    }

    .my-table .center {
        text-align: center;
    }

    .my-table .col1 {
        width: 25%;
        float: left;
        border: 1px solid transparent;
        margin-right: 0.3571rem;
        min-height: 2rem;
    }

    .my-table .col1-no-height {
        width: 25%;
        float: left;
        border: 1px solid transparent;
        margin-right: 0.3571rem;
        min-height: 1.5rem;
    }

    .my-table .col1-small {
        width: 15%;
        float: left;
        border: 1px solid transparent;
        margin-right: 0.3571rem;
        min-height: 2rem;
    }

    .my-table .col2outer {
        width: 65%;
        float: left;
        margin: 0;
        padding: 0;
    }

    .my-table .col2outer-wide {
        width: 70%;
        float: left;
        margin: 0;
        padding: 0;
    }

.col2outer .col2mid, .col2outer-wide .col2mid {
    width: 30%;
    float: left;
}

.col2outer .col2side, .col2outer-wide .col2side {
    width: 30%;
    float: right;
}

.col2outer .col2mid-wide, .col2outer-wide .col2mide-wide {
    width: 70%;
    float: left;
}

.col2outer .col2side-small, .col2outer-wide .col2side-small {
    width: 10%;
    float: right;
}

.col2outer .col2mid-small, .col2outer-wide .col2mid-small {
    width: 30%;
    float: left;
}

.col2outer .col2side-wide, .col2outer-wide .col2side-wide {
    width: 70%;
    float: right;
}

.my-table .col70 {
    width: 68%;
    float: left;
    border: 1px solid transparent;
    margin-left: 0.3571rem;
}


.my-table .col30 {
    width: 30%;
    float: right;
}

.my-table .col80 {
    width: 80%;
    float: left;
}

.my-table .col20 {
    width: 20%;
    float: right;
}

.my-table input[type="text"], .my-table input[type="password"], .my-table input[type="number"], .my-table textarea {
    width: 100%;
}

.my-table .col2mid select, .my-table .col2side select {
    width: 4.5rem;
}

.my-table-middle table {
    width: 100%;
}

.my-table-middle tr td {
    text-align: center;
}


/*Equal two columns*/

.my-table .e-column1 {
    width: 45%;
    float: left;
    border: 1px solid transparent;
    margin-right: 0.3571rem;
}

.my-table .e-column2 {
    width: 45%;
    float: right;
    margin: 0;
    padding: 0;
}

.my-table .column1-auto {
    width: auto;
    float: left;
    border: 1px solid transparent;
    margin-right: 0.3571rem;
}

.my-table .column2-auto {
    width: auto;
    float: right;
    margin: 0;
    padding: 0;
}

.my-table .column2-auto-left {
    width: auto;
    float: left;
    margin: 0;
    padding: 0;
}

.my-table .no-border {
    border: none !important;
}

.my-table h5 {
    margin: 0;
}

.grid-container {
    width: 460px;
    float: left;
    min-height: 1px;
    margin-left: 20px;
}


@media (min-width: 1200px) {
    .grid-container {
        width: 570px;
    }
}

@media (min-width: 980px) and (max-width: 1200px) {
    .grid-container {
        float: none;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    .grid-container {
        width: 352px;
        float: none;
    }
}

@media (max-width: 767px) {
    .my-table input[type="text"], .my-table input[type="password"], .my-table select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /*.my-table {
        display: inline-block;
    }*/

        .my-table .col1 {
            float: none;
            text-align: center;
            width: 100%;
        }

        .my-table .col2outer {
            float: none;
            width: 100%;
            text-align: center;
        }

        .my-table .e-column1 {
            float: none;
            text-align: center;
            width: 100%;
        }

        .my-table .e-column2 {
            float: none;
            text-align: center;
            width: 100%;
        }
}

/*my-table-flex for displaying table on small device*/

.my-table-flex table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

    .my-table-flex table caption {
        font-size: 1.5em;
        margin: .5em 0 .75em;
    }

    .my-table-flex table tr {
        border: 1px solid #ddd;
        padding: .35em;
    }

    .my-table-flex table td {
        border: 1px solid #ddd;
        vertical-align: top;
    }

    .my-table-flex table th,
    .my-table-flex table td {
        padding: .625em;
        text-align: center;
    }

    .my-table-flex table th {
        font-size: .85em;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

@media screen and (max-width: 768px) {

    .my-table-flex .table th, .my-table-flex .table td {
         border-top: none; 
    }

    .my-table-flex table {
        border: 0;
    }

        .my-table-flex table caption {
            font-size: 1.3em;
        }

        .my-table-flex table thead {
            border: none;
            clip: rect(0 0 0 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px;
        }

        .my-table-flex table tr {
            display: block;
            margin-bottom: .625em;
        }

        .my-table-flex table td {
            border: none;
            border-bottom: 1px solid #ddd;
            display: block;
            font-size: .8em;
        }

            .my-table-flex table td::before {
                content: attr(data-label);
                font-weight: bold;
                text-transform: uppercase;
                display: block;
            }

            .my-table-flex table td:last-child {
                border-bottom: 0;
            }
}
