@charset "UTF-8";
/* i-table 기본 컨테이너 */
.i-table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 테이블 본체 (헤더+바디+푸터) */
.i-table-main {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* 헤더 스타일 */
.i-table-header {
    background: linear-gradient(to bottom, #f8f9fa, #f1f3f4);
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    height: 40px;
}

/* 헤더 스크롤바 숨김 */
.i-table-header::-webkit-scrollbar {
    display: none;
}

.i-table-header {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.i-table-header-contents {
    display: flex;
    align-items: stretch;
    height: 100%;
    position: relative;
    flex-wrap: nowrap;
    min-width: max-content;
}

.i-table-col {
    flex: 1;
    padding: 12px 8px;
    font-weight: 600;
    color: #333333;
    background-color: transparent;
    position: relative;
    user-select: none;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

/* 고정 너비가 설정된 컬럼 */
.i-table-col[style*="width"] {
    flex: none !important;
}

.i-table-col:last-child {
    border-right: none;
}

/* 정렬 가능한 컬럼 스타일 */
.i-table-sort-activate {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.i-table-sort-activate:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 정렬 아이콘 스타일 */
.sort-icon {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
    color: #999;
}

.i-table-sort-activate:hover .sort-icon {
    opacity: 0.7;
    color: #666;
}

/* 오름차순 정렬 */
.i-table-sort-activate.sort-asc .sort-icon {
    opacity: 1;
    color: #007bff;
}

/* 내림차순 정렬 */
.i-table-sort-activate.sort-desc .sort-icon {
    opacity: 1;
    color: #007bff;
}

.i-table-sort-disable {
    color: #666666;
}

/* 리사이즈 핸들 */
.i-table-resize-handle {
    width: 6px;
    cursor: col-resize;
    background-color: transparent;
    border-right: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.i-table-resize-handle:hover {
    background-color: rgba(0, 123, 255, 0.3);
    border-right-color: #007bff;
}

/* 바디의 리사이즈 핸들은 시각적으로만 */
.i-table-row .i-table-resize-handle {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
    border-right: 1px solid #f0f0f0;
}

/* 테이블 바디 */
.i-table-row {
    background-color: #ffffff;
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    min-height: 0;
}

.i-table-row-contents {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.i-table-row-contents > div {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0f0f0;;
    transition: background-color 0.2s ease;
    position: relative;
    flex-wrap: nowrap;
    min-width: max-content;
}

.i-table-row-contents > div:hover {
    background-color: #f8f9fa;
}

/* 클릭 가능한 행 스타일 */
.i-table-row-contents > div[data-index]:active {
    background-color: #e9ecef;
}

.i-table-row-contents > div[data-index][style*="cursor: pointer"]:hover {
    background-color: #e3f2fd;
}

.i-table-row-contents > div:last-child {
    /* border-bottom: none; */
}

/* 데이터가 하나만 있을 때 (first-child이면서 last-child인 경우) border-bottom 유지 */
.i-table-row-contents > div:first-child:last-child {
    border-bottom: 1px solid #f0f0f0;
}

/* 셀 스타일 */
.i-table-cell {
    flex: 1;
    padding: 10px 8px;
    color: #333333;
    position: relative;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* 고정 너비가 설정된 셀 */
.i-table-cell[style*="width"] {
    flex: none !important;
}

.i-table-cell:last-child {
    border-right: none;
}

/* 푸터 스타일 */
.i-table-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.i-table-footer-contents {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
}

/* 푸터 상단 (페이지 크기 선택, 페이지 정보) */
.i-table-footer-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 페이지 크기 선택 */
.i-table-pagesize-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.i-table-pagesize-select {
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.i-table-pagesize-select:focus {
    outline: none;
    border-color: #007bff;
}

/* 페이지 정보 */
.i-table-page-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* 푸터 하단 (페이징 버튼) */
.i-table-footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 페이징 */
.i-table-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

/* 페이지네이션 버튼 스타일 */
.i-table-page-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.2s ease;
    user-select: none;
}

.i-table-page-btn:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.i-table-page-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.i-table-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #999999;
}

/* 스크롤바 스타일 */
.i-table-row::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.i-table-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.i-table-row::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.i-table-row::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .i-table {
        font-size: 13px;
    }
    
    .i-table-col,
    .i-table-cell {
        padding: 8px 6px;
    }
    
    .i-table-footer {
        padding: 16px;
        height: 110px;
    }
    
    .i-table-footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .i-table-pagesize-section {
        font-size: 12px;
    }
    
    .i-table-page-info {
        font-size: 12px;
    }
}

/* 로딩 상태 */
.i-table.loading {
    position: relative;
}

.i-table.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 100;
}

.i-table.loading::after {
    content: '로딩 중...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #666666;
    font-weight: 500;
}

/* 빈 테이블 상태 */
.i-table-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999999;
    font-style: italic;
    background-color: #fafafa;
}

/* 선택된 행 스타일 */
.i-table-row-contents > div.selected {
    background-color: #e3f2fd !important;
    border-color: #2196f3;
}

.i-table-row-contents > div.selected .i-table-cell {
    color: #1976d2;
}

/* 애니메이션 */
.i-table-row-contents > div {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== i-table 툴바 스타일 ===== */

/* 툴바 컨테이너 */
.i-table-tool {
    padding: 0 0 12px 0;
    flex-shrink: 0;
}

.i-table-tool-contents {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* 필터 컨테이너 */
.i-table-filter-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 개별 필터 래퍼 */
.i-table-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 필터 라벨 */
.i-table-filter-label {
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
    margin: 0;
    font-weight: 500;
}

/* 필터 셀렉트박스 */
.i-table-filter-select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    font-size: 13px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.i-table-filter-select:hover {
    border-color: #007bff;
}

.i-table-filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}



/* ===== 빈 데이터 메시지 스타일 ===== */

/* i-table 빈 데이터 스타일 */
.i-table-empty-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    flex: 1;
}

.i-table-empty-message {
    color: #999999;
    font-size: 16px;
    font-weight: 500;
    margin: 20px;
    padding: 20px 20px;
    background-color: #ffffff;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    justify-content: center;
    display: flex;
    align-items: center;
    width: 100%;
}