@charset "UTF-8";

/* ==========================================================================
   공통 데이터 테이블 컨트롤 (MVNO Modern Data Table)
   - 옵션 A: Clean Modern Slate 스타일 기반
   - 기존 Bootstrap .table 및 Gentelella .jambo_table 오버라이드 지원
   ========================================================================== */

/* ── 기본 테이블 프레임 ── */
.table.mvno-table,
table.mvno-table,
.mvno-forms table.jambo_table,
.mvno-popup table.jambo_table {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: var(--mvno-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif);
    font-size: 13px;
    color: #334155;
}

/* ── 헤더 (thead th) ── */
.table.mvno-table thead th,
table.mvno-table thead th,
table.mvno-table thead tr th,
.mvno-forms table.jambo_table thead th,
.mvno-forms table.jambo_table thead tr th,
.mvno-popup table.jambo_table thead th,
.mvno-popup table.jambo_table thead tr th {
    height: auto;
    padding: 11px 14px;
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.4;
    text-align: inherit;
    vertical-align: middle;
    border-top: none !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-left: none !important;
    border-right: 1px solid #f1f5f9 !important;
    box-shadow: none !important;
    white-space: nowrap;
}
.table.mvno-table thead th:last-child,
table.mvno-table thead tr th:last-child,
.mvno-forms table.jambo_table thead th:last-child,
.mvno-forms table.jambo_table thead tr th:last-child {
    border-right: none !important;
}

/* Gentelella 원본 헤더 텍스트 색상 및 링크 오버라이드 */
.mvno-forms table.jambo_table thead,
.mvno-popup table.jambo_table thead {
    background: #f8fafc !important;
    color: #475569 !important;
}
.mvno-forms table.jambo_table thead th a,
.mvno-forms table.jambo_table thead th span {
    color: #475569 !important;
}

/* ── 본문 셀 (tbody td) ── */
.table.mvno-table tbody td,
table.mvno-table tbody td,
table.mvno-table tbody tr td,
.mvno-forms table.jambo_table tbody td,
.mvno-forms table.jambo_table tbody tr td,
.mvno-popup table.jambo_table tbody td,
.mvno-popup table.jambo_table tbody tr td {
    padding: 10px 14px;
    border-top: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-left: none !important;
    border-right: none !important;
    background-color: #ffffff;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

/* 마지막 행 하단선 처리 */
.table.mvno-table tbody tr:last-child td,
table.mvno-table tbody tr:last-child td,
.mvno-forms table.jambo_table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── 행 호버 & 선택 상태 ── */
.table.mvno-table tbody tr:hover td,
table.mvno-table tbody tr:hover td,
.mvno-forms table.jambo_table tbody tr:hover td,
.mvno-popup table.jambo_table tbody tr:hover td {
    background-color: rgba(22, 128, 106, 0.04) !important;
    border-top: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.table.mvno-table tbody tr.selected td,
table.mvno-table tbody tr.selected td,
.mvno-forms table.jambo_table tbody tr.selected td,
.mvno-popup table.jambo_table tbody tr.selected td {
    background-color: rgba(22, 128, 106, 0.08) !important;
    border-top: none !important;
    border-bottom: 1px solid #cbd5e1 !important;
    font-weight: 500;
}

/* ── 데이터 없음 (Empty State) ── */
.table.mvno-table tbody td[colspan],
table.mvno-table tbody td[align="center"],
.mvno-forms table.jambo_table tbody td[colspan],
.mvno-forms table.jambo_table tbody td[align="center"] {
    padding: 40px 16px !important;
    text-align: center;
    color: #94a3b8;
    background-color: #ffffff !important;
}

/* ── 팝업 및 상세용 컴팩트 모드 (.table-compact) ── */
.table.mvno-table.table-compact thead th,
table.mvno-table.table-compact thead th,
.table-compact thead th {
    padding: 8px 10px !important;
    font-size: 12px !important;
}
.table.mvno-table.table-compact tbody td,
table.mvno-table.table-compact tbody td,
.table-compact tbody td {
    padding: 7px 10px !important;
    font-size: 12px !important;
}

/* ── 반응형 컨테이너 감싸개 보정 ── */
.table-responsive:has(> .mvno-table),
.table-responsive:has(> table.jambo_table) {
    border: none;
    margin-bottom: 8px;
}
