@charset "UTF-8";

/* Tabulator v4.7.1 - Phoenix Theme Skin */
.tabulator {
  position: relative;
  background-color: #fff;
  font-size: 13px;
  text-align: left;
  /* overflow: hidden; */
  transform: translatez(0);
  border-radius: 0.5rem;
}
.tabulator .tabulator-header {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  background-color: #f9fafd;
  border-left: 1px solid #e3e6ed;
  border-right: 1px solid #e3e6ed;
  border-top: 1px solid #e3e6ed;
  color: #3e4c6b;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  font-size: 15px;
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
  text-align: center !important;
  width: auto;
}
.tabulator .tabulator-tableHolder {
  outline: 1px solid #e3e6ed;
  outline-offset: -1px;
  flex-grow: 1;
  overflow-x: auto;
  overflow-y: auto !important;
}

.tabulator .tabulator-footer {
  flex-shrink: 0;
  z-index: 10;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  position: relative !important;
  padding: 10px 10px !important;
  display: block;
  align-items: center;
  box-sizing: border-box;
  padding-right: 25px !important;
}
/* 타블레이터 정렬 */
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-bottom: 5px solid #3874ff !important;
  border-top: none !important;
}

.tabulator .tabulator-header .tabulator-col[aria-sort="asc"] .tabulator-arrow {
  border-top: none !important;
  border-bottom: 5px solid #3874ff !important;
}

.tabulator .tabulator-header .tabulator-col[aria-sort="desc"] .tabulator-arrow {
  border-bottom: none !important;
  border-top: 5px solid #3874ff !important;
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-resize-handle.prev {
  display: none !important;
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-resize-handle {
  position: absolute !important;
  top: 0 !important;
  right: -5px !important; 
  width: 10px !important; 
  height: 100% !important;
  z-index: 100 !important;
  cursor: col-resize !important;
  background-color: transparent;
}
.tabulator-row.tabulator-row-even {
  background-color: #fdfdfe;
}
.tabulator-row.tabulator-selectable:hover {
  background-color: #f1f5f9;
  cursor: pointer;
}
.tabulator-row.tabulator-selected {
  background-color: rgba(56, 116, 255, 0.08);
  color: #3874ff;
}
.tabulator-row {
  position: relative;
  box-sizing: border-box;
  background-color: #fff;
  border-bottom: 1px solid #eff2f6;
  border-right: 1px solid #eff2f6;
  color: #525b75;
  display: inline-flex !important; 
  min-width: 100%;
  height: 42px !important;
  min-height: 42px !important;
}
.tabulator-row .tabulator-cell {
  justify-content: center;
  box-sizing: border-box !important; 
  display: flex !important;
  align-items: center !important;
  padding: 10px 10px;
  border-right: 1px solid #eff2f6;
  font-size: 15px;
  overflow: hidden !important; 
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.tabulator-row .tabulator-cell:first-child {
  border-left: 1px solid #eff2f6;
}
.tabulator .tabulator-header .tabulator-col {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  border-right: 1px solid #eff2f6;
  border-bottom: none;
  background: transparent;
  text-align: left;
  vertical-align: bottom;
}
/* footer 영역 */
.tabulator .tabulator-footer {
  position: relative;
  display: block !important;
  height: 50px;
  padding: 10px 0px;
}
.tabulator .tabulator-footer .total-counter {
  float: left;
  line-height: 30px;
}
.tabulator .tabulator-footer .tabulator-paginator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
  width: 60%;
  justify-content: center;
}
.tabulator .tabulator-footer .tabulator-pages {
  display: flex;
  gap: 4px;
}
.tabulator .tabulator-footer .tabulator-page-size-wrapper {
  float: right;
}

.tabulator .tabulator-footer select {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #d8dbe0;
  border-radius: 4px;
  outline: none;
}
/* --- 버튼 스타일 --- */
.tabulator .tabulator-footer .tabulator-page {
  display: inline-block;
  color: #525b75 !important;
  background: #fff;
  border: 1px solid #d8dbe0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* 현재 페이지 하이라이트 */
.tabulator .tabulator-footer .tabulator-page.active {
  background-color: #3874ff !important;
  border-color: #3874ff !important;
  color: #fff !important;
  font-weight: bold;
}

/* 비활성 버튼 */
.tabulator .tabulator-footer .tabulator-page[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* 로딩 오버레이 */
.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading {
  border: none;
  background: #3874ff;
  color: #fff;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* --- 체크박스(rowSelection) --- */
.tabulator-row .tabulator-cell.tabulator-col-row-handle,
.tabulator-row .tabulator-cell[tabulator-field="rowSelection"],
.tabulator-col[tabulator-field="rowSelection"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.tabulator .tabulator-header .tabulator-col:first-child input[type="checkbox"] {
margin-left: 4px;
}
.tabulator .tabulator-header .tabulator-col input[type="checkbox"]:not(.form-check-input),
.tabulator-row .tabulator-cell input[type="checkbox"]:not(.form-check-input) {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #d8dbe0;
  border-radius: 4px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tabulator-row .tabulator-cell input[type="checkbox"]:hover {
    border-color: #3874ff;
}

.tabulator .tabulator-header .tabulator-col input[type="checkbox"]:checked,
.tabulator-row .tabulator-cell input[type="checkbox"]:checked {
  background-color: #3874ff;
  border-color: #3874ff;
}

.tabulator .tabulator-header .tabulator-col input[type="checkbox"]:not(.form-check-input):checked::after,
.tabulator-row .tabulator-cell input[type="checkbox"]:not(.form-check-input):checked::after,
.tabulator-row .tabulator-cell .form-check:not(.form-switch) input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* 스크롤바 */
.tabulator-tableHolder::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.tabulator-tableHolder::-webkit-scrollbar-thumb {
  background: #d8dbe0;
  border-radius: 10px;
}
.tabulator-tableHolder::-webkit-scrollbar-track {
  background: #f1f5f9;
}

/* --- 부트스트랩 다크모드 연동 수정 --- */
[data-bs-theme="dark"] .tabulator {
  background-color: #1b1e28;
  border-color: #31374a;
}

/* 헤더 및 전체 경계선 수정 */
[data-bs-theme="dark"] .tabulator .tabulator-header {
  background-color: #222834;
  border-color: #31374a; /* 흰 선 방지를 위해 상하좌우 일치 */
  color: #e3e6ed;
}

[data-bs-theme="dark"] .tabulator .tabulator-header .tabulator-col {
  border-right: 1px solid #31374a;
  background-color: transparent;
}

/* 테이블 홀더(본체) 배경 */
[data-bs-theme="dark"] .tabulator-tableHolder {
  outline: 1px solid #31374a;
  background-color: #1b1e28;
}

/* 행(Row) 및 셀 경계선 */
[data-bs-theme="dark"] .tabulator-row {
  background-color: #1b1e28;
  border-bottom: 1px solid #31374a;
  color: #9fa6bc;
}

[data-bs-theme="dark"] .tabulator-row .tabulator-cell {
  border-right: 1px solid #31374a;
}

[data-bs-theme="dark"] .tabulator-row .tabulator-cell:first-child {
  border-left: 1px solid #31374a;
}

/* 기존에 #fff로 강제 고정되었던 부분을 테마에 맞춰 변경합니다 */
[data-bs-theme="dark"] .tabulator .tabulator-cell.tabulator-frozen {
  background-color: #1b1e28 !important; 
  border-right: 1px solid #31374a !important;
}

[data-bs-theme="dark"] .tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen {
  background-color: #1e222f !important; /* Even 행 색상에 맞춤 */
}

[data-bs-theme="dark"] .tabulator .tabulator-col.tabulator-frozen {
  background-color: #222834 !important;
  border-right: 1px solid #31374a !important;
}



/* 푸터 경계선 */
[data-bs-theme="dark"] .tabulator .tabulator-footer {
  border-top: 1px solid #31374a !important;
}

/* 정렬 아이콘 */
.custom-sort-icon.active {
  color: #1a73e8 !important;
}
.custom-sort-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  transition: transform 0.2s ease;
}
.custom-sort-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #cbd5e0;
}
.custom-sort-icon.active::before {
  border-bottom-color: #3874ff; 
}
.custom-sort-icon.active.desc {
  transform: translateY(-50%) rotate(180deg);
}
.custom-sort-icon.active.asc {
  transform: translateY(-50%) rotate(0deg);
}
[data-bs-theme="dark"] .custom-sort-icon::before {
  border-bottom-color: #434b63; 
}

[data-bs-theme="dark"] .custom-sort-icon.active::before {
  border-bottom-color: #3874ff;
}

.tabulator .tabulator-tableHolder .tabulator-table,
.tabulator .tabulator-tableHolder .tabulator-placeholder {
  width: 100% !important;
  min-width: 100% !important;
}