/* 기본 */
.table {
    margin: 0;
}

.table th, .table td {
    padding: 10px 15px;
}

.table td {
    vertical-align: middle;
    text-align: start;
}

.table_custom {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0;
}

.table_custom td {
    text-align: center;
    vertical-align: middle; /* 수직 가운데 정렬 */
}

.table_custom tbody tr:nth-child(even) td {
    background-color: #EFEFEF80;
}

.table_custom th:first-child, .table_custom td:first-child, .table_basic th:first-child, .table_basic td:first-child{
    padding-left: 35px !important;
}

.table_custom td {
    line-height: 25px;
}

/* box안 테이블 */
.table_custom th {
    background-color: #F4F4F7;
    font-size: 1em;
    line-height: 35px;
    vertical-align: middle;
}

/* box 없는 테이블 */
div.table {
    margin-bottom: 20px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #D9D9D9;
    overflow: hidden;
}
div.table tr, div.table td {
    border: none;
}
div.table th {
    background-color: #DFE1E7;
    font-size: 1.2em;
    color: #405472;
}
div.table td {
    line-height: 30px;
}

/* 기본 테이블 */
.table_basic {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table_basic th {
    background-color: #ffffff !important;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    color: #444444 !important;
}

.table_basic td {
    border-bottom: 1px solid #dee2e6 !important;
    line-height: 30px;
}

.table_basic th:last-child, .table_basic td:last-child {
    text-align: center;
}

.position_sticky_td {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 테이블 트리 */
#table_tree {
    border: none;
}
#table_tree th {
    border-top-width: 1px;
    border-bottom-width: 1px;
    font-size: 1.1em;
    line-height: 24px;
}
#table_tree td {
    background-color: white;
    line-height: 25px;
    padding: 7px 15px;
}

.gw-table1 th:first-child, .gw-table1 td:first-child {
    padding-left: 22px;
}

.gw-table1 {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    margin-bottom: 12px;
    background-color: #fff;
}

.gw-table1 {
    text-indent: 0;
    border-color: inherit;
}

.gw-table1 thead td, .gw-table1 thead th {
    height: 42px;
    font-weight: 500;
    font-size: 14px;
    color: #241e17;
    vertical-align: middle;
    box-sizing: border-box;
}

.gw-table1 thead, .gw-table1 thead td, .gw-table1 thead th {
    padding-left: 20px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
}

.gw-table1 tbody td {
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid #f2f2f2;
}

.gw-table1 tbody td:last-child {
    padding: 8px 20px 8px 20px;
}

.gw-table1 th span button {
    background: none;
    border-radius: 4px;
}

.gw-table1 th {
    padding: 4px 20px;
}

/* 행 선택 색상 */
.gw-table1 tbody tr.selected-row {
    --bs-table-bg: #f7f7f7;
}

/* 안쪽 테두리 설정 */
.gw-table-border th,
.gw-table-border td {
    border: none;              /* 기본 테두리 제거 */
    border-right: 1px solid #f2f2f2;  /* 세로줄만 표시 */
    vertical-align: middle;
}

.gw-table-border th:last-child,
.gw-table-border td:last-child {
    border-right: none; /* 마지막 열은 오른쪽 선 제거 */
}

.gw-table-border {
    border-collapse: collapse;
    width: 100%;
}

/* no-hover-bg 클래스를 가진 tr은 hover 시 배경색 적용 안 함 */
.table-hover > tbody > tr.no-hover-bg:hover > * {
    --bs-table-bg-state: inherit !important; /* 기본 배경색 유지 */
}

.gw-table1.border_right_table th,
.gw-table1.border_right_table td {
    border-right: 1px #d8d8d8 dashed;
}

table.gw-table1.border_right_table th:last-child,
table.gw-table1.border_right_table td:last-child {
    border-right: 0;
}

.gw-table1.same-pedding tbody td {
    padding: 8px 10px;
}