/**
 * Table Styles
 * 표 컴포넌트 전용 스타일 (테마 공통)
 */

/* ===========================================
   테이블 텍스트 선택 허용
   =========================================== */
table,
table td,
table th,
table tbody,
table thead {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===========================================
   좌측 헤더 표 스타일
   =========================================== */
table.left-header-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

table.left-header-table td {
    padding: 12px;
    border: 1px solid #f0f0f0;
    vertical-align: middle;
    font-family: var(--theme-font-normal);
    font-size: var(--theme-font-size-body);
}

table.left-header-table td:first-child {
    color: var(--theme-text-color);
    width: 25%;
    text-align: center;
    vertical-align: middle;
    background: var(--theme-table-bg);
    font-family: var(--theme-font-bold);
    font-size: var(--theme-font-size-body);
    border-left: 1px solid #999;
}

table.left-header-table td:last-child {
    width: 75%;
    text-align: left;
    padding-left: 30px;
    color: var(--theme-info-text);
}

table.left-header-table td:last-child a {
    color: var(--theme-info-text);
}

table.left-header-table td:last-child a:hover {
    color: var(--theme-main-color);
}

table.left-header-table tr:first-child td {
    border-top: none;
}

table.left-header-table tr:last-child td {
    border-bottom: none;
}

table.top-header-table th:last-child,
table.top-header-table td:last-child {
    border-right: none;
}

/* ===========================================
   상단 헤더 표 스타일
   =========================================== */

table.top-header-table td,
table.top-header-table th {
    padding: 18px;
    border: 1px solid #f0f0f0;
    font-family: var(--theme-font-normal);
    vertical-align: middle;
}

table.top-header-table td:first-child,
table.top-header-table th:first-child {
    border-left: none;
}

.top-header-table thead th {
    font-family: var(--theme-font-bold);
    font-size: var(--theme-font-size-body) !important;
    color: var(--theme-text-color) !important;
    padding: 12px;
    background-color: var(--theme-table-bg);
    text-align: center;
    border-top: 1px solid #999;
    font-weight: normal;
}