/**
 * jQuery Simple Group Table Plugin CSS
 * builderList.css 기반 + rowspan/colspan 기능 추가
 */

.simple-group-table-wrap table {
    table-layout: fixed;
    word-break: break-all;
}

/* start of simple-group-table-wrap table-title*/
.simple-group-table-wrap .table-header-icon {
    vertical-align: sub;
    width: 19px;
    height: 19px;
}

.simple-group-table-wrap .table-title {
    padding: 0 0 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #363636;
    margin-bottom: 6px;
    line-height: inherit;
    vertical-align: middle;
    overflow: hidden;
    width: 100%;
}

.simple-group-table-wrap .table-title > span {
    display: inline-block;
    vertical-align: middle;
    float: left;
    height: 23px;
}

.simple-group-table-wrap .table-title > span.right {
    float: right;
}

.simple-group-table-wrap .table-title > span > label.img-checkbox-label {
    vertical-align: sub;
}

.simple-group-table-wrap .table-title > span:first-child {
    font-size: 17px;
    margin-left: 0;
    margin-right: 10px;
    font-weight: bold;
}

.simple-group-table-wrap .table-title > span > input[type=text],
.simple-group-table-wrap .table-title > span > input[type=number],
.simple-group-table-wrap .table-title > span > select {
    border: solid 1px rgba(151, 151, 151, 0.5);
    height: 23px;
    padding: 0 20px 0 8px ;
    font-size: 13px;
    font-weight: normal;
    color: #363636;
    border-radius: 2px;
}

.simple-group-table-wrap .selectFilter {
    height: 23px;
    border: solid 1px #cdcdcd;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('../../image/dropdown01.png') no-repeat 97% 50%;
}

.simple-group-table-wrap .setSelectFilter {
    height: 23px;
    border: solid 1px #cdcdcd;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('../../image/dropdown-selected.png') no-repeat 97% 50%;
}

.simple-group-table-wrap .table-title > span > select::-ms-expand {
    display: none;
}

.simple-group-table-wrap .table-title > span > input[type=text],
.simple-group-table-wrap .table-title > span > input[type=number] {
    padding-right: 25px;
    width: 160px;
}

.simple-group-table-wrap .input-search-change-icon {
    position: absolute;
    display: inline-block;
    width: 19px;
    height: 19px;
    vertical-align: middle;
    background: url(/resources/image/search_filter.png) top no-repeat;
    margin-top: 6px;
    margin-left: -25px;
}

.simple-group-table-wrap .input-search-icon {
    position: absolute;
    display: inline-block;
    width: 19px;
    height: 19px;
    vertical-align: middle;
    background: url(/resources/image/search.png) top no-repeat;
    margin-top: 6px;
    margin-left: -25px;
}

/* End of table-title (filter) */

.simple-group-table-wrap table.builder-list {
    font-size: 12px;
    text-align: center;
}

.simple-group-table-wrap .builder-list-shadow-wrap {
    box-shadow: 0 0 5px 2px #e9e9e9;
}

.simple-group-table-wrap .list-content {
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
}

.floatThead-container {
    overflow: visible !important;
}

.simple-group-table-wrap .builder-list-shadow-wrap > table {
}

.simple-group-table-wrap table > thead > tr {
    height: 40px;
}

.simple-group-table-wrap table > thead > tr > th {
    padding: 0 4px;
    font-weight: 500;
    font-size: 15px;
    color: #363636;
    border-bottom: 1px solid #cdcdcd;
    background: #f7f7f7;
}

.simple-group-table-wrap table > thead > tr > th span {
    color: #ff0000;
    vertical-align: middle;
}

.simple-group-table-wrap table > tbody > tr {
    height: 32px;
}

.simple-group-table-wrap table > tbody > tr > td {
    padding: 0 4px;
    border-bottom: 1px solid rgba(205, 205, 205, 0.5);
    font-size: 13px;
    font-weight: 400;
    color: #363636;
    background: #ffffff;
}

.simple-group-table-wrap table > tbody > tr:hover > td {
    background: #dcdce9;
}

.no-hover table > tbody > tr:hover > td {
    background: none;
}

.simple-group-table-wrap table > tbody > tr > td > div.unfull-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-group-table-wrap table > tbody > tr > td.force-display > div {
    white-space: inherit;
    overflow: inherit;
    text-overflow: inherit;
}

.simple-group-table-wrap table > tbody > tr > td:first-child > div,
.simple-group-table-wrap table > thead > tr > th:first-child > div {
    white-space: inherit;
    overflow: inherit;
    text-overflow: inherit;
}

.simple-group-table-wrap select {
    font-size: 11px;
}

.simple-group-table-wrap table > tbody > tr > td input[type=checkbox],
.simple-group-table-wrap table > tbody > tr > td input[type=radio] {
    vertical-align: middle;
}

.simple-group-table-wrap table > tbody > tr > td:first-child {
}

.simple-group-table-wrap table > tbody > tr > td div a > img {
    width: 14px;
    height: 16px;
    margin-right: 4px;
}

.simple-group-table-wrap table > tbody > tr > td div a:last-child > img {
    margin-right: 1px;
}

.simple-group-table-wrap .set-row-num {
    padding: 2px 3px;
    color: #363636;
    text-align: left;
    font-size: 14px;
    background: #ffffff;
    border: none;
    overflow: hidden;
}

.simple-group-table-wrap .set-row-num select {
    font-size: 12px;
}

.simple-group-table-wrap .list-foot-wrap {
}

.simple-group-table-wrap .link {
    font-weight: normal;
    color: #6a8ef8;
}

/* Start of override paging-wrap(common.css) */
.simple-group-table-wrap .paging-wrap {
    padding: 0;
    text-align: center;
    letter-spacing: -1px;
    margin-top: 5px;
}

.simple-group-table-wrap .paging-wrap a {
    margin: 0 3px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 0 5px 1px #f2f2f2;
    border-radius: 2px;
    background: #acacac;
    text-decoration: none;
    display: inline-block;
}

.simple-group-table-wrap .paging-wrap a.page-on {
    background: #6930b8;
    color: #ffffff !important;
    box-shadow: 0 0 1px 0 rgba(164, 164, 164, 0.5);
    border: solid 1px #6930b8;
}

.simple-group-table-wrap .paging-wrap a.paging-number {
    background: #ffffff;
    color: #6930b8 !important;
    box-shadow: 0 0 1px 0 rgba(164, 164, 164, 0.5);
    border: solid 1px #6930b8;
}

.simple-group-table-wrap .paging-wrap a:link,
.simple-group-table-wrap .paging-wrap a:active,
.simple-group-table-wrap .paging-wrap a:visited {
}

.simple-group-table-wrap .paging-wrap a:hover {
    background: #6930b8;
    color: #ffffff !important;
    box-shadow: 0 0 1px 0 rgba(164, 164, 164, 0.5);
}

/* End of override paging-wrap(common.css) */

/* ==== Simple Group Table 전용 스타일 ==== */

/* 그룹화 기능을 위한 테두리 */
.simple-group-table-wrap.group-borders table.builder-list tbody td {
    border-right: 1px solid #dee2e6 !important;
}

.simple-group-table-wrap.group-borders table.builder-list tbody td:last-child {
    border-right: none !important;
}

/* Rowspan된 셀의 세로 중앙 정렬 */
.simple-group-table-wrap table.builder-list tbody td[rowspan] {
    vertical-align: middle;
}

/* Colspan된 셀의 가로 중앙 정렬 */
.simple-group-table-wrap table.builder-list tbody td[colspan] {
    text-align: center;
}

/* Rowspan + Colspan 조합 시 중앙 정렬 */
.simple-group-table-wrap table.builder-list tbody td[rowspan][colspan] {
    vertical-align: middle;
    text-align: center;
}

/* 삭제된 행 스타일 */
.simple-group-table-wrap table > tbody > tr > td.td-deleted {
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: line-through;
}

/* 그룹화된 테이블의 특별한 스타일링 */
.simple-group-table-wrap .group-cell {
    font-weight: 500;
    background-color: #f8f9fa;
}

/* 그룹 헤더 스타일 */
.simple-group-table-wrap .group-header {
    background-color: #e9ecef;
    font-weight: bold;
}

/* 그룹 아이템 스타일 */
.simple-group-table-wrap .group-item {
    background-color: #ffffff;
}

/* 컬럼 숨김 처리 */
.simple-group-table-wrap .column-hidden {
    display: none !important;
}