﻿/* Make HTML Table Responsive */
.responsive_table {
    margin: auto;
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: Arial;
    font-size: 0.7rem;
}

    .responsive_table tr:first-child {
        text-align: center;
        background-color: rgb(231, 236, 240); /*rgb(83, 82, 82);*/
        color: rgb(90, 156, 190); /*#fff;*/
    }

    .responsive_table tr {
        text-align: center;
        background-color: rgb(231, 236, 240);
    }

        .responsive_table tr:nth-child(even):not(:first-child) {
            text-align: center;
            background-color: #fff; /*rgb(226, 226, 226);*/
        }

    .responsive_table th {
        display: none;
    }

    .responsive_table td {
        text-align: center;
        display: block;
        /*border-bottom: 1px solid;*/
        /*    border-color: rgb(201, 201, 201);*/
    }

        .responsive_table td:first-child {
            margin-top: 1px;
        }

        .responsive_table td:last-child {
            margin-bottom: 1px;
        }

        .responsive_table td:before {
            content: attr(data-th) "  ";
            font-weight: bold;
            width: 120px;
            display: inline-block;
            color: inherit;
        }

    .responsive_table th,
    .responsive_table td {
        text-align: left;
    }

.responsive_table {
    color: inherit;
    overflow: hidden;
}

    .responsive_table tr {
        border-color: inherit;
    }

    .responsive_table th,
    .responsive_table td {
        padding: 0.5em 1em;
    }

@media screen and (max-width: 768px) {
    .responsive_table tr:nth-child(2) {
        color: inherit;
    }

    .responsive_table tr:hover:not(:first-child) {
        background-color: rgb(90, 156, 190); /*rgb(83, 82, 82);*/
        color: #fff;
    }

    .middle-box {
        margin: auto;
        width: 375px;
        padding: 10px;
        box-shadow: 5px 10px 10px #f7f7f7;
        border-radius: 20px;
        transition: margin-top 0.8s ease;
        margin-top: 200px;
    }
}

@media screen and (min-width: 767px) {
    .responsive_table tr:hover:not(:first-child) {
        background-color: rgb(90, 156, 190); /*rgb(83, 82, 82);*/
        color: #fff;
    }

    .responsive_table td:before {
        display: none;
    }

    .responsive_table th,
    .responsive_table td {
        display: table-cell;
        padding: 0.25em 0.5em;
    }

        .responsive_table th:first-child,
        .responsive_table td:first-child {
            padding-left: 0;
        }

        .responsive_table th:last-child,
        .responsive_table td:last-child {
            padding-right: 0;
        }

    .responsive_table th,
    .responsive_table td {
        /*padding: 1em !important;*/
    }

    .middle-box {
        margin: auto;
        width: 500px;
        padding: 30px;
        /*box-shadow: 5px 10px 18px #f7f7f7;*/
        border-radius: 20px;
        transition: margin-top 0.8s ease;
        margin-top: 300px;        
    }
}

.sort-th {
    cursor: pointer;
}

.btn-custom {
    color: black;
    text-decoration: none;
    transition: background-color .3s;
    border: 2px solid #fff;
    margin: 0px 2px 0px 2px;
}

.pageSize {
    height: 100%;
    color: rgb(90, 156, 190);
    border: 2px solid #fff;
    margin: 0px 2px 0px 2px;
}

#page-first:focus {
    background-color: #C0C0C0 !important;
    color: rgb(90, 156, 190);
}

#page-back:focus {
    background-color: #C0C0C0 !important;
    color: rgb(90, 156, 190);
}

#page-forward:focus {
    background-color: #C0C0C0 !important;
    color: rgb(90, 156, 190);
}

#page-last:focus {
    background-color: #C0C0C0 !important;
    color: rgb(90, 156, 190);
}

/****************************************************/

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.loginDiv {
    /* This section calls the slideInFromLeft animation we defined above */
    animation: 2s ease-out 0s 1 slideInFromTop;
    /*background: #333;*/
    padding: 15px;
}
