.filter-label {
    font-size: 0.7333333333em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7e8590;
    margin-bottom: 0;
    display: block;
    padding-left: 3px;
}

/* Tabler 1.4 + TomSelect의 z-index / background-color 스타일 충돌 문제 fix */
.ts-dropdown {
    background-color: #fff !important;   /* 흰색 불투명 배경 */
    z-index: 9999 !important;            /* 다른 요소 위로 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 시각적 분리 */
}


/* 1) 단일 선택(single) 셀렉트 높이 조정 */
    /* 전체 래퍼 */
    .ts-wrapper.single .ts-control {
        height: 38px;              /* 원하는 높이 */
        min-height: 38px;          /* 최소 높이 보장 */
        line-height: 38px;         /* 텍스트 수직 가운데 정렬 */
        padding: 0 10px;           /* 좌우 여백 조정 */
        display: flex;
        align-items: center;
    }

    /* 내부 input 정렬 보정 */
    .ts-wrapper.single .ts-control input {
        height: auto !important;
        line-height: normal !important;
        margin: 0 !important;
        padding: 0 !important;
    }

/* 2) 다중 선택(multi) 셀렉트의 경우 */
.ts-wrapper.multi .ts-control {
    min-height: 38px;
    padding: 4px 8px;
}

.ts-wrapper.multi .item {
    line-height: 24px;   /* 태그(선택된 항목) 높이 */
    padding: 2px 6px;
}

/* 3) placeholder 영역이나 dropdown 화살표 크기까지 맞추고 싶다면 */
.ts-control::after {
    font-size: 0.9rem;
    margin-top: 0;              /* 아이콘 정렬 */
}

/* 4) CSS 적용 우선순위 확보 */
.ts-wrapper.single .ts-control {
    height: 38px !important;
    line-height: 38px !important;
}

/* X 버튼 옆의 회색 구분선(|) 제거 */
.ts-wrapper.plugin-remove_button .remove {
    border-left: none !important; /* 왼쪽 테두리(구분선) 제거 */
    padding-left: 0 !important;   /* 선이 있던 자리의 여백도 줄임 */
    margin-left: auto;            /* X 버튼을 항상 오른쪽 끝으로 밀어줌 (선택사항) */
    color: #a0a0a0;               /* X 버튼 색상 (필요시 조정) */
}


/* 마우스 커서 정의*/
.cursor-pointer {
    cursor: pointer;
}


/* 아이콘 옆에 텍스트 배치시 세로 센터 정렬
 <div class="v-center">
    <i class="ti ti-circle-filled text-success" style="font-size: 1.5em;"></i>
    <span>정상</span>
</div>
*/
.v-center {
    display: flex;
    align-items: center;
    gap: 6px; /* 아이콘-텍스트 간격 */
}

/* 로딩화면 */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* 다른 모든 요소보다 위에 배치 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 반투명 배경 (검은색 50%) */
#global-loader .loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px); /* (선택사항) 배경을 흐리게 처리하여 더 고급스럽게 */
}

/* 로딩 문구와 스피너가 배경 위에 뜨도록 설정 */
#global-loader .loader-content {
    position: relative;
    z-index: 1;
}


/* 모달창의 table 속성 */
/* 1) selector: .table-modal 로 변경 */
.table-modal {
    border: 1px solid #dee2e6;
    border-collapse: separate;
    border-spacing: 0;
}

/* 2) 기본 헤더 회색 + sticky */
.table-modal thead th {
    background: #f8f9fa; /* Tabler 기본 톤 */
    border-bottom: 1px solid #dee2e6 !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 내부 라인 제거 */
.table-modal th,
.table-modal td {
    border-bottom: none !important;
}

/* 3) 짝수행 stripe */
.table-modal tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Hover 강화 */
.table-modal tbody tr:hover {
    background-color: #eef2f7 !important;
}

/* 4) 스크롤 시 헤더의 첫 라인 사라지는 문제 해결 (상단 border 다시 부여) */
.table-scroll-limit {
    max-height: 350px;
    overflow-y: auto;
}
.table-scroll-limit .table-modal thead th {
    border-top: 1px solid #dee2e6 !important; /* 고정헤더 위쪽 라인 보존 */
}



/* 테이블 컨테이너 높이 고정 및 스크롤
<div class="table-fixed-container">
    <table>...
*/
.table-fixed-container {
    max-height: 600px;       /* 원하는 높이로 조정 */
    overflow-y: auto;
}

/* 테이블 헤더 고정 */
.table-fixed-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;  /* 헤더 배경 색 유지 */
}

/* 선택사항: 스크롤 시 그림자 효과 */
.table-fixed-container thead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
