/* === 테이블 리스트 패널 전용 CSS === */

/* 테이블 리스트 패널 전체 설정 */
#tableListPanelContent {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* 대시보드 추가 버튼 하단 고정 */
#tableListPanelContent #finalActions {
    margin-top: auto;
    border-top: 1px solid var(--krds-color-light-gray-90);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* 레이어 선택 섹션 */
#layerSelectionSection .box-inner {
    width: 100%;
}

#layerSelectionSection .layer-group-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#activeLayersList {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#activeLayersList .layer-group {
    width: 100% !important;
    flex-shrink: 0;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* 테이블 리스트 컬럼 아이템 */
.column-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: transparent;
}

.column-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* 컬럼 체크박스 래퍼 */
.column-checkbox-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* 체크박스 스타일은 KRDS에서 제공 */

/* 타입 뱃지 스타일 */
.column-type {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: var(--krds-color-light-gray-70, #4a4a4a);
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 컬럼 컨트롤 버튼 */
.column-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}



/* 컬럼 통계 텍스트 */
#tl-column-stats-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* 로딩 인디케이터 */
#tl-column-loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tl-column-loading.hidden {
    display: none;
}

/* 테이블 리스트 컬럼 설정 패널 */
#tableListColumnConfigPanel {
    transition: all 0.3s ease;
}

#tableListConfigPanel {
    width: 100%;
}

#tableListColumnConfigPanel.collapsed {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

/* 테이블 리스트 컬럼 리스트 컨테이너 */
#table-column-list {
    width: 100%;
    overflow-y: auto;
}

/* 스크롤바 스타일 - KRDS 다크 테마 */
#table-column-list::-webkit-scrollbar {
    width: 6px;
}

#table-column-list::-webkit-scrollbar-track {
    background: var(--krds-color-light-gray-85, #333);
    border-radius: 3px;
}

#table-column-list::-webkit-scrollbar-thumb {
    background: var(--krds-color-light-gray-60, #666);
    border-radius: 3px;
}

#table-column-list::-webkit-scrollbar-thumb:hover {
    background: var(--krds-color-light-gray-50, #888);
}

/* 컬럼 선택 버튼 영역 */
.tl-column-btn-wrap {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--krds-color-light-gray-80, #2a2a2a);
}

/* 컬럼 선택 버튼들 */
.tl-btn-action {
    flex: 1;
    font-weight: 500;
    background: var(--krds-color-light-primary-60, #0052a3) !important;
    border: 1px solid var(--krds-color-light-primary-50, #0066cc) !important;
    color: #fff !important;
    transition: all 0.15s ease;
}

.tl-btn-action:hover {
    background: var(--krds-color-light-primary-50, #0066cc) !important;
}

/* 빈 상태 */
#table-column-list:empty::after {
    content: "레이어를 선택하면 컬럼 목록이 표시됩니다.";
    display: block;
    text-align: center;
    padding: 32px 20px;
    color: var(--krds-color-light-gray-50, #888);
    font-size: 13px;
}

/* 애니메이션 */
@keyframes tl-column-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.column-item {
    animation: tl-column-slide-in 0.15s ease-out;
}

/* 드래그 중 스타일 */
.column-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}