﻿
@media screen and (max-width: 767px) {
    .table-div { width: 100%; }
    .table-div > .thead { display: none; }
    .table-div > .tbody {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }

    .table-div > .tbody > .tr {
        width: 100%;
        border: 1px solid #8ac1cc;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
    }

    .table-div > .tbody > .tr > .td {
        width: 50%;
        height: 50px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-size: 16px;
    }

    .table-div > .tbody > .tr > .td.td-radio {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .table-div > .tbody > .tr > .td.td-img {
        width: 100%;
        height: 170px;
    }

    .table-div > .tbody > .tr > .td.td-full {
        width: 100%;
    }

    .table-div > .tbody > .tr > .td:not(.td-radio, .td-link)::before {
        content: attr(data-title);
        min-width: 84px;
        height: 100%;
        background-color: #8ac1cc;
        box-sizing: border-box;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        padding: 0px 10px;
        white-space: nowrap;
    }
    
    .table-div > .tbody > .tr > .td > input[type="radio"] {
        width: 30px;
        height: 30px;
    }
    .table-div > .tbody > .tr > .td + .td { border-top: 1px solid #8ac1cc; }
    .table-div > .tbody > .tr > .td.td-link { justify-content: flex-end; }
    .table-div > .tbody > .tr > .td > span { display: inline-block; font-size: 16px; font-weight: 700; padding-left: 5px; }
    .table-div > .tbody > .tr > .td > input[type="text"],
    .table-div > .tbody > .tr > .td > input[type="number"] {
        width: calc(100% - 94px);
        height: 30px;
        border: none;
        outline: 1px solid #9b9b9b;
        font-size: 16px;
        margin: auto;

    }

    .table-div > .thead > .tr > .td > input[type="checkbox"],
    .table-div > .tbody > .tr > .td > input[type="checkbox"] { width: 20px; height: 20px; box-sizing: border-box; }

    .table-div > .tbody > .tr > .td > input:hover,
    .table-div > .tbody > .tr > .td > input:focus {
        border: none;
    }
    .table-div > .tbody > .tr > .td > a { color: #40a2bd; display: block; font-weight: 700; }
    .table-div > .tbody > .tr > .td > a:link,
    .table-div > .tbody > .tr > .td > a:active { color: #40a2bd; }

    i.remove {
        color: #d45a43;
        font-size: 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .table-div { width: 100%; }
    .table-div > .thead { display: none; }
    .table-div > .tbody {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }

    .table-div > .tbody > .tr {
        width: 100%;
        border: 1px solid #8ac1cc;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
    }

    .table-div > .tbody > .tr > .td {
        width: 50%;
        height: 50px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-size: 16px;
    }

    .table-div > .tbody > .tr > .td.td-radio {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .table-div > .tbody > .tr > .td.td-img {
        width: 100%;
        height: 170px;
    }

    .table-div > .tbody > .tr > .td.td-full {
        width: 100%;
    }

    .table-div > .tbody > .tr > .td:not(.td-radio, .td-link)::before {
        content: attr(data-title);
        min-width: 84px;
        height: 100%;
        background-color: #8ac1cc;
        box-sizing: border-box;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        padding: 0px 10px;
        white-space: nowrap;
    }
    
    .table-div > .tbody > .tr > .td > input[type="radio"] {
        width: 30px;
        height: 30px;
    }
    .table-div > .tbody > .tr > .td + .td { border-top: 1px solid #8ac1cc; }
    .table-div > .tbody > .tr > .td.td-link { justify-content: flex-end; }
    .table-div > .tbody > .tr > .td > span { display: inline-block; font-size: 16px; font-weight: 700; padding-left: 5px; }
    .table-div > .tbody > .tr > .td > input[type="text"],
    .table-div > .tbody > .tr > .td > input[type="number"] {
        width: calc(100% - 94px);
        height: 30px;
        border: none;
        outline: 1px solid #9b9b9b;
        font-size: 16px;
        margin: auto;

    }

    .table-div > .thead > .tr > .td > input[type="checkbox"],
    .table-div > .tbody > .tr > .td > input[type="checkbox"] { width: 20px; height: 20px; box-sizing: border-box; }

    .table-div > .tbody > .tr > .td > input:hover,
    .table-div > .tbody > .tr > .td > input:focus {
        border: none;
    }
    .table-div > .tbody > .tr > .td > a { color: #40a2bd; display: block; font-weight: 700; }
    .table-div > .tbody > .tr > .td > a:link,
    .table-div > .tbody > .tr > .td > a:active { color: #40a2bd; }

    i.remove {
        color: #d45a43;
        font-size: 20px;
    }
}

@media screen and (min-width: 1025px) {
    .table-div {
        width: 100%;
        height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: center;
    }
    
    .table-div > .thead,
    .table-div > .tbody {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .table-div > .thead {
        width: calc(100% - 17px);
        height: 50px;
        background-color: #8cbdcd;
        border: 1px solid #8cbdcd;
        color: #ffffff;
        font-weight: 700;
    }
    
    .table-div > .tbody {
        width: 100%;
        height: calc(100% - 50px);
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .table-div > .thead > .tr,
    .table-div > .tbody > .tr {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .table-div > .thead > .tr {
        height: 100%;
    }
    
    .table-div > .tbody > .tr {
        min-height: 50px;
        border-right: 1px solid #d9d9d9;
        border-bottom: 1px solid #d9d9d9;
        border-left: 1px solid #d9d9d9;
    }
    
    .table-div > .tbody > .tr:nth-child(even) {
        background-color: #f5f5f5;
    }
    
    .table-div > .thead > .tr > .td {
        letter-spacing: 2px;
    }

    .table-div > .thead > .tr > .td,
    .table-div > .tbody > .tr > .td {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .table-div > .thead > .tr > .td + .td {
        border-left: 1px solid #8cbdcd;
    }

    .table-div > .tbody > .tr > .td + .td {
        border-left: 1px solid #d9d9d9;
    }
    
    .table-div > .thead > .tr > .td { }
    .table-div > .tbody > .tr > .td { padding: 10px; }
    
    .table-div > .tbody > .tr > .td > span { font-size: 16px; }

    .table-div > .tbody > .tr > .td > i { cursor: pointer; font-size: 18px; }
    .table-div > .tbody > .tr > .td > i.remove { color: #d45a43; }

    .table-div > .tbody > .tr > .td > input { width: 100%; height: 30px; }

    .table-div > .thead > .tr > .td > input[type="checkbox"],
    .table-div > .tbody > .tr > .td > input[type="checkbox"] { width: 20px; height: 20px; box-sizing: border-box; margin: 0px; }

    .table-div > .tbody > .tr > .td > a { color: #109dbd; display: block; font-weight: 700; }
    .table-div > .tbody > .tr > .td > a:link,
    .table-div > .tbody > .tr > .td > a:active { color: #109dbd; }
}
