@charset "UTF-8";

/* Table */
.table-wrapper {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

table {
    margin: 0 0 5rem 0;
    width: 100%;
    table-layout: auto; /* 기본 설정 (셀 내용에 따라 크기 변동) */
}

table tbody tr {
    border: solid 1px #eee;
    border-left: 0;
    border-right: 0;
}

table td {
    color: #7c838b;
    padding: 1rem;
    word-break: break-word;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 400;
    letter-spacing: 0.08em;
    word-spacing: 0.1em;
    line-height: 180%;
}

table td:first-child {
    min-width: 150px; /* 첫 번째 열의 최소 너비 설정 */
    width: 30%; /* 비율 지정 (필요시 조정 가능) */
    /*text-align: center;*/
    vertical-align: middle;
}
@media screen and (max-width: 736px) {
    table td:first-child {
        min-width: 100%;
        width: 100%;
        text-align: left;
        vertical-align: baseline;
    }
}

table th {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.5;
    padding: 1rem;
    text-align: center;
    text-transform: uppercase;
}

table thead {
    border-bottom: solid 2px;
}

table tfoot {
    border-top: solid 2px;
}

/* Table row alternate background color */
table tbody tr:nth-child(2n + 1) {
    background-color: rgba(220, 220, 220, 0.1); /* 연한 회색 */
}

table tbody tr:nth-child(2n) {
    background-color: #ffffff; /* 흰색 */
}

/* Alternative styling for table */
table.alt tbody tr td {
    border: solid 1px #eee;
    border-left-width: 0;
    border-top-width: 0;
}
@media screen and (max-width: 736px) {
    table.alt tbody tr td {
        border: solid 0px #eee;
        font-size: 0.95rem !important;
    }
}
table.alt tbody tr td:first-child {
    border-left-width: 1px;
    color: #303030;
    /*padding: 0.75rem 0.75rem;*/
    word-break: break-word;
    font-family: 'Noto Serif KR', sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    word-spacing: 0.1em;
}
@media screen and (max-width: 736px) {
    table.alt tbody tr td:first-child {
        border-left-width: 0px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 736px) {
    table {
        font-size: 0.85rem;
        width: 100%;
        table-layout: fixed; /* 고정형 레이아웃 */
    }

    table th, table td {
        padding: 0.5rem;
        font-size: 0.85rem;
        text-align: left;
    }

    table td {
        display: block;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: bold;
        text-transform: uppercase;
        padding-left: 0.75rem;
    }

    /* Scrollable wrapper */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
}