/*
 * DataTables 1.10.18 Bootstrap 4 스타일(css/lib/datatables.css = dataTables.bootstrap4.css) 위에 얹는 앱 수정분.
 * 원본 파일을 직접 고쳐 쓰던 것을 그대로 옮겼다. css/lib/datatables.css 바로 다음에 로드한다.
 * 원본 규칙보다 뒤에 오므로, 원본에서 같은 명시도로 뒤에 있던 선언은 여기서 다시 적어 순서를 지킨다(주석 "순서 유지").
 */

/* 표 테두리: separate → collapse, 위아래 선 */
table.dataTable {
    border-collapse: collapse !important;
    border-bottom: 1px solid #e7e7e7 !important;
    border-top: 1px solid #d7d7d7 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin: 20px 0;
}

/* 정렬 화살표 위치 */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc_disabled:before {
    top: 6px;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    right: 0.1em;
    top: 6px;
}

/* table-bordered: 머리 배경, 칸 테두리, 자간 */
table.table-bordered.dataTable th {
    background-color: #f9f9f9;
}

table.table-bordered.dataTable th,
table.table-bordered.dataTable td {
    border: 1px solid #e7e7e7;
    border-left-width: 0; /* 순서 유지 — 원본 같은 규칙의 선언. 위 border 단축 속성에 덮이지 않게 다시 적는다 */
    letter-spacing: 0;
}

/* stat/mainManageMonitor.jsp */
table.table-bordered.dataTable.table_whitespace th {
    white-space: normal !important;
}

table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable td:last-child {
    letter-spacing: 0;
}

table.table-bordered.dataTable tbody th,
table.table-bordered.dataTable tbody td {
    letter-spacing: 0;
}
