/**
 * 🎨 정산 관리 시스템 - 파스텔 디자인 (완전판)
 * 파일: 13-settlement.css
 * 버전: 4.0 (완전 복원)
 * 업데이트: 2025-11-06
 * 
 * ✅ 포함 내용:
 * 1. 기본 레이아웃 및 색상 시스템
 * 2. 헤더 및 필터 영역
 * 3. 탭 네비게이션
 * 4. 통계 카드 (월별 리스트)
 * 5. 테이블 스타일
 * 6. 분석 카드 및 차트
 * 7. 정산서 테이블 및 폼
 * 8. 빈 상태 및 에러 화면
 * 9. 반응형 디자인
 * 10. 프린트 스타일
 */

/* ============= 기본 설정 ============= */
/* ✅ 정산 페이지 내부에만 적용 (다른 페이지 영향 방지) */
.settlement-pastel * { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

.settlement-pastel {
    padding: 20px 24px;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============= 색상 시스템 ============= */
.purple { color: #6c5ce7; }
.green { color: #20c997; }
.red { color: #ff6b6b; }
.blue { color: #4dabf7; }
.orange { color: #ffa94d; }
.teal { color: #0ca678; }
.indigo { color: #5f3dc4; }
.pink { color: #f06595; }

/* 배경 색상 */
.bg-purple { background: #6c5ce7; }
.bg-green { background: #20c997; }
.bg-blue { background: #4dabf7; }
.bg-orange { background: #ffa94d; }

/* ============= 헤더 (완전히 1줄) ============= */
.header-single-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 28px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-title-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title-inline h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

.header-subtitle {
    font-size: 14px;
    color: #868e96;
    padding-left: 12px;
    border-left: 2px solid #e9ecef;
}

.header-controls-inline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-controls-inline select {
    min-width: 100px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
}

.header-controls-inline select:hover { 
    border-color: #adb5bd; 
}

.header-controls-inline select:focus { 
    outline: none; 
    border-color: #6c5ce7; 
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.btn-refresh {
    padding: 12px 20px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-refresh:hover {
    background: #5f4dd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

/* ============= 탭 네비게이션 ============= */
#settlementContent .tabs,
#mySettlement .tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #868e96;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.tab:hover {
    background: #f8f9fa;
    color: #495057;
}

.tab.active {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

/* ============= 카드 공통 ============= */
.card-header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.delete-icon-btn {
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #ff6b6b;
    opacity: 0.7;
    transition: all 0.2s;
    margin-right: 4px;
}

.delete-icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.settlement-type-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.settlement-type-badge.ratio {
    background: linear-gradient(135deg, #c3fae8 0%, #96f2d7 100%);
    color: #087f5b;
}

.settlement-type-badge.fixed {
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd8a8 100%);
    color: #e67700;
}

/* ============= 월별 리스트 필터 (간격 통일) ============= */
.list-page {
    /* 월별 리스트 페이지 컨테이너 */
}

.list-month-filter {
    display: flex;
    gap: 16px;
    padding: 14px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
}

.filter-group-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-grow: 0;
}

.filter-group-inline label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    line-height: 1;
    padding-top: 2px;
}

.filter-group-inline select {
    min-width: 120px;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-group-inline select:hover {
    border-color: #adb5bd;
}

.filter-group-inline select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* ============= 통계 카드 (월별 리스트) ============= */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.metric-card:hover::before {
    opacity: 0.6;
}

.metric-card.pending {
    border-left: 4px solid #ffa94d;
}

.metric-card.pending:hover::before {
    color: #ffa94d;
}

.metric-card.total {
    border-left: 4px solid #6c5ce7;
}

.metric-card.total:hover::before {
    color: #6c5ce7;
}

.metric-card.final {
    border-left: 4px solid #20c997;
}

.metric-card.final:hover::before {
    color: #20c997;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 14px;
    color: #868e96;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-icon {
    font-size: 28px;
    opacity: 0.85;
}

.metric-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.metric-detail {
    font-size: 13px;
    color: #868e96;
    margin-top: 10px;
    font-weight: 500;
}

/* ============= 테이블 스타일 ============= */
.data-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(to bottom, #f8f9fa 0%, #f1f3f5 100%);
}

.data-table thead th {
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.data-table tbody td {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    border-bottom: 1px solid #f1f3f5;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============= 분석 탭 필터 (1줄, 간격 통일) ============= */
.filter-card-single-line {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    position: relative;
    z-index: 5;
}

.filter-card-single-line * {
    box-sizing: border-box !important;
}

.filter-card-single-line .filter-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.filter-card-single-line .filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    height: 34px;
    min-width: fit-content;
}

.filter-card-single-line .filter-group input[type="date"],
.filter-card-single-line .filter-group select {
    min-width: 90px;
    max-width: 110px;
    padding: 6px 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
    height: 34px;
    flex-shrink: 0;
    line-height: normal;
    box-sizing: border-box;
    margin: 0;
}

.filter-card-single-line .filter-group input[type="date"]:focus,
.filter-card-single-line .filter-group select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.filter-card-single-line .filter-group input[type="date"]:hover,
.filter-card-single-line .filter-group select:hover {
    border-color: #adb5bd;
}

.filter-actions-inline {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-apply-inline {
    padding: 0 16px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-apply-inline:hover {
    background: #5f4dd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.btn-apply-inline:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============= 분석 탭 2줄 필터 ============= */
.filter-card-two-lines {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    padding: 10px 16px;
}

.filter-line-1,
.filter-line-2 {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-line-1 {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f5;
}

.filter-card-two-lines .filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.filter-line-1 .filter-group {
    flex: 0 0 auto;
    min-width: 0;
}

.filter-line-2 .filter-group {
    flex: 1;
}

.filter-card-two-lines .filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.filter-card-two-lines .filter-group input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 140px;
    flex-shrink: 0;
    margin-top: 0;
}

.filter-line-1 .filter-group input[type="date"] {
    max-width: 150px;
}

.filter-card-two-lines .filter-group select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    min-width: 120px;
    width: 100%;
    margin-top: 0;
}

.filter-card-two-lines .filter-group input[type="date"]:focus,
.filter-card-two-lines .filter-group select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.filter-card-two-lines .filter-group input[type="date"]:hover,
.filter-card-two-lines .filter-group select:hover {
    border-color: #adb5bd;
}

/* ============= 분석 통계 카드 ============= */
.analysis-page {
    /* 분석 페이지 컨테이너 */
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============= 🔥 분석 탭: 월별 전체 요약 카드 (가로 길게) ============= */
.monthly-summary-wide-card {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #6c5ce7;
}

.monthly-summary-wide-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.monthly-summary-wide-card h3::before {
    content: '📊';
    font-size: 24px;
}

.summary-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.summary-metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.summary-metric-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.summary-metric-item .metric-label {
    font-size: 13px;
    font-weight: 600;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-metric-item .metric-value {
    font-size: 28px;
    font-weight: 800;
    color: #212529;
    line-height: 1.2;
}

.summary-metric-item .metric-value .unit {
    font-size: 16px;
    font-weight: 600;
    margin-left: 4px;
    color: #868e96;
}

.summary-metric-item.purple .metric-value {
    color: #6c5ce7;
}

.summary-metric-item.green .metric-value {
    color: #20c997;
}

.summary-metric-item.blue .metric-value {
    color: #4dabf7;
}

.summary-metric-item.orange .metric-value {
    color: #ffa94d;
}

.summary-metric-item.teal .metric-value {
    color: #0ca678;
}

/* ============= 분석 탭 KPI 카드 (정산 관리 전용) ============= */
.settlement-pastel .analysis-page .kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.settlement-pastel .analysis-page .kpi-card {
    background: white;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.settlement-pastel .analysis-page .kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    opacity: 0.8;
}

.settlement-pastel .analysis-page .kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* 색상 변형 */
.settlement-pastel .analysis-page .kpi-card.purple {
    color: #6c5ce7;
}

.settlement-pastel .analysis-page .kpi-card.purple::before {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.settlement-pastel .analysis-page .kpi-card.green {
    color: #20c997;
}

.settlement-pastel .analysis-page .kpi-card.green::before {
    background: linear-gradient(90deg, #20c997, #63e6be);
}

.settlement-pastel .analysis-page .kpi-card.blue {
    color: #4dabf7;
}

.settlement-pastel .analysis-page .kpi-card.blue::before {
    background: linear-gradient(90deg, #4dabf7, #74c0fc);
}

.settlement-pastel .analysis-page .kpi-card.orange {
    color: #ffa94d;
}

.settlement-pastel .analysis-page .kpi-card.orange::before {
    background: linear-gradient(90deg, #ffa94d, #ffc078);
}

/* KPI 카드 요소들 */
.settlement-pastel .analysis-page .kpi-icon {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 4px;
}

.settlement-pastel .analysis-page .kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settlement-pastel .analysis-page .kpi-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #212529;
    letter-spacing: -0.5px;
}

.settlement-pastel .analysis-page .kpi-sub {
    font-size: 12px;
    color: #adb5bd;
    font-weight: 500;
}

/* 체크박스 포함된 구조 (다른 탭용) - 대시보드는 그대로 유지 */
.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.kpi-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-card-title input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.kpi-card-title span {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* ============= 정산서 탭 필터 (1줄) ============= */
.statement-page {
    /* 정산서 페이지 컨테이너 */
}

.statement-filter-inline {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: nowrap;
}

.statement-filter-inline .filter-group-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.statement-filter-inline .filter-group-inline label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.statement-filter-inline .filter-group-inline select {
    padding: 10px 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 140px;
}

.statement-filter-inline .filter-group-inline.teacher-select select {
    min-width: 280px;
}

.statement-filter-inline .filter-group-inline select:hover {
    border-color: #adb5bd;
}

.statement-filter-inline .filter-group-inline select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.btn-apply-statement {
    padding: 10px 24px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    margin-left: auto;
}

.btn-apply-statement:hover {
    background: #5f4dd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.statement-empty-guide {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.statement-empty-guide h3 {
    font-size: 20px;
    color: #495057;
    margin-bottom: 12px;
}

.statement-empty-guide p {
    font-size: 15px;
    color: #868e96;
    line-height: 1.6;
}

.statement-empty-guide strong {
    color: #6c5ce7;
    font-weight: 600;
}

/* ============= 정산서 카드 ============= */
.teacher-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.teacher-section-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s, box-shadow 0.15s;
}

.teacher-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.teacher-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f5;
}

.teacher-name-large {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.settlement-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-row:last-child {
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #dee2e6;
}

.stat-label {
    font-size: 14px;
    color: #868e96;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.stat-value.final {
    font-size: 20px;
    color: #20c997;
}

.btn-view-detail {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 16px;
}

.btn-view-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

/* ============= 정산서 상세 페이지 ============= */
.statement-doc {
    max-width: 100%; /* 1200px → 100% (화면 전체 활용) */
    width: 100%;
    padding: 0 20px; /* 좌우 여백 */
    margin: 0 auto;
}

.back-to-list {
    margin-bottom: 20px;
}

.back-to-list button {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
}

.back-to-list button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.statement-header-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title-row h2 {
    font-size: 26px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.badge.period {
    background: #e7f5ff;
    color: #1971c2;
}

.badge.teal {
    background: #c3fae8;
    color: #087f5b;
}

.badge.orange {
    background: #ffe8cc;
    color: #e67700;
}

.badge.purple {
    background: #e5dbff;
    color: #6741d9;
}

/* 요약 카드 그리드 */
.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.summary-metric-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.summary-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.summary-metric-card.purple-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.summary-metric-card.green-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.summary-metric-card.orange-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.summary-metric-card.blue-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.summary-metric-card .metric-icon {
    font-size: 40px;
    line-height: 1;
}

.summary-metric-card .metric-content {
    flex: 1;
}

.summary-metric-card .metric-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
    font-weight: 500;
    color: white;
}

.summary-metric-card .metric-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
    color: white;
}

.summary-metric-card .metric-value .unit {
    font-size: 16px;
    font-weight: 600;
    margin-left: 4px;
}

.summary-metric-card .metric-detail {
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

/* 정산 요약 섹션 */
.settlement-summary-section {
    margin-top: 32px;
}

.summary-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid #6c5ce7;
}

.summary-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    font-size: 15px;
    color: #495057;
}

.summary-row strong {
    font-size: 17px;
    font-weight: 700;
    color: #212529;
}

.summary-row.final {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
    border-bottom: none;
}

.summary-row.final strong {
    font-size: 24px;
    color: #6c5ce7;
}

/* 정산서 액션 버튼 */
.statement-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.statement-actions-row button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-send-statement {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-send-statement:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-download-excel {
    background: #20c997;
    color: white;
}

.btn-download-excel:hover {
    background: #12b886;
    transform: translateY(-1px);
}

.btn-print-pdf {
    background: #4dabf7;
    color: white;
}

.btn-print-pdf:hover {
    background: #339af0;
    transform: translateY(-1px);
}

/* ============= 정산서 상세 (기존) ============= */
.statement-detail {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.statement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e9ecef;
}

.statement-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.statement-title p {
    font-size: 14px;
    color: #868e96;
}

.statement-actions {
    display: flex;
    gap: 12px;
}

.btn-back-to-filter,
.btn-print,
.btn-download {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-back-to-filter {
    background: #868e96;
    color: white;
}

.btn-back-to-filter:hover {
    background: #6b7280;
    transform: translateY(-1px);
}

.btn-print {
    background: #4dabf7;
    color: white;
}

.btn-print:hover {
    background: #339af0;
    transform: translateY(-1px);
}

.btn-download {
    background: #20c997;
    color: white;
}

.btn-download:hover {
    background: #12b886;
    transform: translateY(-1px);
}

/* ============= 정산서 테이블 (인건비/추가지급/지급내역) ============= */
.statement-form-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 24px;
}

/* A. 인건비 테이블 (비율제) */
.statement-form-table.percentage-type thead th,
.statement-form-table.percentage-type tbody td,
.statement-form-table.percentage-type tfoot td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* 비율제 열 너비 */
.statement-form-table.percentage-type thead th:nth-child(1),
.statement-form-table.percentage-type tbody td:nth-child(1),
.statement-form-table.percentage-type tfoot td:nth-child(1) {
    width: 12%; /* 정산월 */
}

.statement-form-table.percentage-type thead th:nth-child(2),
.statement-form-table.percentage-type tbody td:nth-child(2),
.statement-form-table.percentage-type tfoot td:nth-child(2) {
    width: 28%; /* 진행상품 */
}

.statement-form-table.percentage-type thead th:nth-child(3),
.statement-form-table.percentage-type tbody td:nth-child(3),
.statement-form-table.percentage-type tfoot td:nth-child(3) {
    width: 10%; /* 모객인원 */
}

.statement-form-table.percentage-type thead th:nth-child(4),
.statement-form-table.percentage-type tbody td:nth-child(4),
.statement-form-table.percentage-type tfoot td:nth-child(4) {
    width: 18%; /* 판매금액 */
}

.statement-form-table.percentage-type thead th:nth-child(5),
.statement-form-table.percentage-type tbody td:nth-child(5),
.statement-form-table.percentage-type tfoot td:nth-child(5) {
    width: 14%; /* 정산비율 */
}

.statement-form-table.percentage-type thead th:nth-child(6),
.statement-form-table.percentage-type tbody td:nth-child(6),
.statement-form-table.percentage-type tfoot td:nth-child(6) {
    width: 18%; /* 정산금액 */
}

/* B. 인건비 테이블 (고정제) */
.statement-form-table.fixed-type thead th,
.statement-form-table.fixed-type tbody td,
.statement-form-table.fixed-type tfoot td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* 고정제 열 너비 */
.statement-form-table.fixed-type thead th:nth-child(1),
.statement-form-table.fixed-type tbody td:nth-child(1),
.statement-form-table.fixed-type tfoot td:nth-child(1) {
    width: 12%; /* 정산월 */
}

.statement-form-table.fixed-type thead th:nth-child(2),
.statement-form-table.fixed-type tbody td:nth-child(2),
.statement-form-table.fixed-type tfoot td:nth-child(2) {
    width: 10%; /* 구분 */
}

.statement-form-table.fixed-type thead th:nth-child(3),
.statement-form-table.fixed-type tbody td:nth-child(3),
.statement-form-table.fixed-type tfoot td:nth-child(3) {
    width: 23%; /* 진행상품 */
}

.statement-form-table.fixed-type thead th:nth-child(4),
.statement-form-table.fixed-type tbody td:nth-child(4),
.statement-form-table.fixed-type tfoot td:nth-child(4) {
    width: 10%; /* 진행시간 */
}

.statement-form-table.fixed-type thead th:nth-child(5),
.statement-form-table.fixed-type tbody td:nth-child(5),
.statement-form-table.fixed-type tfoot td:nth-child(5) {
    width: 10%; /* 모객인원 */
}

.statement-form-table.fixed-type thead th:nth-child(6),
.statement-form-table.fixed-type tbody td:nth-child(6),
.statement-form-table.fixed-type tfoot td:nth-child(6) {
    width: 15%; /* 계약금액 */
}

.statement-form-table.fixed-type thead th:nth-child(7),
.statement-form-table.fixed-type tbody td:nth-child(7),
.statement-form-table.fixed-type tfoot td:nth-child(7) {
    width: 10%; /* 추가수당 */
}

.statement-form-table.fixed-type thead th:nth-child(8),
.statement-form-table.fixed-type tbody td:nth-child(8),
.statement-form-table.fixed-type tfoot td:nth-child(8) {
    width: 15%; /* 정산금액 */
}

/* C. 추가지급액 테이블 */
.statement-form-table.additional-payment thead th,
.statement-form-table.additional-payment tbody td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* 추가지급액 열 너비 */
.statement-form-table.additional-payment thead th:nth-child(1),
.statement-form-table.additional-payment tbody td:nth-child(1) {
    width: 15%; /* 정산월 */
}

.statement-form-table.additional-payment thead th:nth-child(2),
.statement-form-table.additional-payment tbody td:nth-child(2) {
    width: 30%; /* 항목 */
}

.statement-form-table.additional-payment thead th:nth-child(3),
.statement-form-table.additional-payment tbody td:nth-child(3) {
    width: 10%; /* 개수 */
}

.statement-form-table.additional-payment thead th:nth-child(4),
.statement-form-table.additional-payment tbody td:nth-child(4) {
    width: 15%; /* 진행비 */
}

.statement-form-table.additional-payment thead th:nth-child(5),
.statement-form-table.additional-payment tbody td:nth-child(5) {
    width: 15%; /* 금액 */
}

.statement-form-table.additional-payment thead th:nth-child(6),
.statement-form-table.additional-payment tbody td:nth-child(6) {
    width: 15%; /* 정산금액 */
}

/* D. 지급내역 테이블 */
.statement-form-table.payment-details thead th,
.statement-form-table.payment-details tbody td,
.statement-form-table.payment-details tfoot td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* 지급내역 열 너비 */
.statement-form-table.payment-details thead th:nth-child(1),
.statement-form-table.payment-details tbody td:nth-child(1),
.statement-form-table.payment-details tfoot td:nth-child(1) {
    width: 20%; /* 항목 */
}

.statement-form-table.payment-details thead th:nth-child(2),
.statement-form-table.payment-details tbody td:nth-child(2),
.statement-form-table.payment-details tfoot td:nth-child(2) {
    width: 16%; /* 정산액 */
}

.statement-form-table.payment-details thead th:nth-child(3),
.statement-form-table.payment-details tbody td:nth-child(3),
.statement-form-table.payment-details tfoot td:nth-child(3) {
    width: 16%; /* 사업소득세(3%) */
}

.statement-form-table.payment-details thead th:nth-child(4),
.statement-form-table.payment-details tbody td:nth-child(4),
.statement-form-table.payment-details tfoot td:nth-child(4) {
    width: 16%; /* 지방소득세(0.3%) */
}

.statement-form-table.payment-details thead th:nth-child(5),
.statement-form-table.payment-details tbody td:nth-child(5),
.statement-form-table.payment-details tfoot td:nth-child(5) {
    width: 16%; /* 원천징수합계 */
}

.statement-form-table.payment-details thead th:nth-child(6),
.statement-form-table.payment-details tbody td:nth-child(6),
.statement-form-table.payment-details tfoot td:nth-child(6) {
    width: 16%; /* 지급금액 */
}

/* 테이블 공통 스타일 */
.statement-form-table thead {
    background: linear-gradient(to bottom, #f8f9fa 0%, #f1f3f5 100%);
}

.statement-form-table thead th {
    font-weight: 700;
    color: #495057;
    font-size: 13px;
}

.statement-form-table tbody td {
    font-size: 13px;
    color: #212529;
}

.statement-form-table tbody input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.statement-form-table tbody input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

/* ============= 분석 탭 추가 스타일 ============= */
.analysis-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.analysis-card.full-width {
    grid-column: 1 / -1;
}

.analysis-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.analysis-metrics {
    display: block;
    width: 100%;
    margin-bottom: 32px;
}

.metric-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.metric-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #6c5ce7;
}

.metric-box:hover::after {
    transform: scaleX(1);
}

.metric-box .metric-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.metric-box .metric-label {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 8px;
}

.metric-box .metric-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.metric-box .metric-sub {
    font-size: 12px;
    color: #adb5bd;
}

/* 차트 그리드 */
.charts-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

/* ============= 대시보드 탭: 플랫폼 요약 카드 ============= */
.platform-summary-grid {
    margin: 24px 0;
}

/* 플랫폼 상세 보기 카드 */
.platform-detail-card {
    margin: 24px 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 28px 32px;
    border: 2px solid #e9ecef;
}

.platform-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f5;
}

.platform-detail-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.platform-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s;
}

.stat-item:hover {
    background: #f1f3f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    font-family: 'Courier New', monospace;
}

.stat-value.purple {
    color: #6c5ce7;
}

.stat-value.green {
    color: #20c997;
}

.stat-value.red {
    color: #ff6b6b;
}

.summary-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 32px;
    margin-bottom: 24px;
    border: 2px solid #e9ecef;
}

.summary-oneline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.summary-divider {
    color: #dee2e6;
    font-size: 18px;
    font-weight: 300;
}

.summary-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.summary-label-inline {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

.summary-value-inline {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    font-family: 'Courier New', monospace;
}

.summary-value-inline.purple {
    color: #6c5ce7;
}

.summary-value-inline.green {
    color: #20c997;
}

/* 플랫폼 카드 */
.platform-cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.platform-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s, box-shadow 0.15s;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.platform-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.platform-name {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.platform-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-stat .label {
    font-size: 13px;
    color: #868e96;
    font-weight: 500;
}

.platform-stat .value {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}

.platform-stat .value.red {
    color: #ff6b6b;
}

.platform-fee {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #e5dbff 0%, #d0bfff 100%);
    color: #5f3dc4;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* 예약 카드 */
.reservation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

/* 서브 탭 */
.sub-tabs {
    display: flex !important;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    position: relative;
    z-index: 5;
}

.sub-tab {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 600;
    color: #868e96 !important;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.5;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.sub-tab:hover {
    background: #f8f9fa;
    color: #495057 !important;
}

.sub-tab.active {
    background: #6c5ce7 !important;
    color: white !important;
}

/* 분석 페이지 서브탭 추가 스타일 */
.analysis-page .sub-tabs {
    margin-top: 24px;
    margin-bottom: 24px;
}

.analysis-page .sub-tab {
    min-width: 120px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

/* ============= 서브탭 콘텐츠 스타일 ============= */

/* 취소 분석 */
.cancel-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cancel-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.cancel-details {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 시간/요일 분석 */
.time-summary,
.day-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.time-distribution,
.day-distribution {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.dist-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: #e9ecef;
    border-radius: 6px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.dist-label {
    min-width: 70px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.dist-bar {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 6px;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 5px;
}

.dist-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.dist-value {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    min-width: 55px;
    text-align: right;
    position: absolute;
    right: 12px;
    z-index: 2;
    text-shadow: 0 0 4px white, 0 0 4px white, 0 0 4px white;
}

.time-bar {
    height: 100%;
    background: linear-gradient(90deg, #4dabf7, #74c0fc);
    border-radius: 6px;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 5px;
}

.empty-dist {
    text-align: center;
    padding: 60px 20px;
    color: #868e96;
    font-size: 14px;
}

/* 리드타임 분석 */
.lead-time-distribution {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* 투어별 인원 테이블 */
.tour-people-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tour-people-table thead {
    background: #f8f9fa;
}

.tour-people-table th,
.tour-people-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.tour-people-table th {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
}

.tour-people-table td {
    font-size: 14px;
    color: #212529;
}

/* 원형 차트 */
.circular-chart {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: #ff6b6b;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

/* 취소율 차트 퍼센트 텍스트 */
.circular-chart .percentage {
    fill: #374151;
    font-size: 0.5em;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

/* 비교 테이블 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table thead {
    background: #f8f9fa;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
}

.comparison-table td {
    font-size: 14px;
    color: #212529;
}

/* 수수료 배지 */
.fee-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #e5dbff 0%, #d0bfff 100%);
    color: #5f3dc4;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* 리드타임 통계 */
.lead-time-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lead-time-stats .stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #6c5ce7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lead-time-stats .stat-item .label {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 8px;
}

.lead-time-stats .stat-item .value {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

/* 시간대별 분포 */
.time-distribution,
.day-distribution {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* 취소 통계 */
.cancel-stats {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cancel-stats h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

/* 상세 테이블 */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.detail-table thead {
    background: #f8f9fa;
}

.detail-table th,
.detail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.detail-table th {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
}

.detail-table td {
    font-size: 14px;
    color: #212529;
}

/* 정산서 하단 */
.statement-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.statement-footer p {
    font-size: 13px;
    color: #868e96;
    line-height: 1.8;
    margin: 4px 0;
}

/* 정산서 액션 영역 */
.statement-actions {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #e9ecef;
    display: flex;
    gap: 12px;
}

.statement-actions button {
    flex: 1;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.statement-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.statement-actions button:active {
    transform: translateY(0);
}

.statement-actions-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.statement-actions .btn-statement-action {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.statement-actions .btn-statement-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.statement-actions .btn-statement-action:active {
    transform: translateY(0);
}

/* 버튼 아이콘 */
.btn-icon {
    font-size: 18px;
    vertical-align: middle;
}

/* 정산서 발송 버튼 */
.statement-actions .btn-send-statement,
.btn-send-statement {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.statement-actions .btn-send-statement:hover,
.btn-send-statement:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
}

/* 엑셀 다운로드 버튼 */
.statement-actions .btn-download-excel,
.btn-download-excel {
    background: linear-gradient(135deg, #20c997 0%, #0ca678 100%);
    color: white;
}

.statement-actions .btn-download-excel:hover,
.btn-download-excel:hover {
    background: linear-gradient(135deg, #1ab386 0%, #0a8f65 100%);
}

/* PDF 출력 버튼 */
.statement-actions .btn-print-pdf,
.btn-print-pdf {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
}

.statement-actions .btn-print-pdf:hover,
.btn-print-pdf:hover {
    background: linear-gradient(135deg, #3b9ae1 0%, #2b88d8 100%);
}

/* 안내 메시지 */
.statement-notice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #6c5ce7;
}

.statement-notice p {
    font-size: 13px;
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.statement-notice p::before {
    content: "※ ";
    color: #6c5ce7;
    font-weight: 700;
}

/* 편집 가능 정산서 섹션 */
.editable-statement-section {
    margin: 32px 0;
}

.editable-statement-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

/* 지급 요약 섹션 */
.payment-summary-section {
    margin-top: 32px;
}

/* 적용 버튼 (월별 리스트) */
.btn-apply-list-filter {
    padding: 10px 24px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: 12px;
}

.btn-apply-list-filter:hover {
    background: #5f4dd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

/* 리셋 버튼 */
.btn-reset-inline {
    padding: 0 16px;
    background: #868e96;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset-inline:hover {
    background: #6b7280;
    transform: translateY(-1px);
}

/* 플랫폼 요약 그리드 */
.platform-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ============= 모바일: PC 레이아웃 유지 + 가로 스크롤 ============= */
@media (max-width: 768px) {
    /* 정산 관리 컨테이너 - 가로 스크롤 활성화 */
    #settlementContent,
    #mySettlement {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 전체 정산 영역 - PC 레이아웃 강제 (선생님 정산서 목록 제외) */
    #settlementContent > *,
    #mySettlement > *,
    #settlementContainer,
    .settlement-pastel {
        min-width: 900px !important;
    }
    
    /* ✅ 선생님 정산서 목록 - 모바일 최적화 */
    #teacherSettlementContainer {
        min-width: auto !important;
        width: 100% !important;
    }
    
    #teacherSettlementContainer .settlement-list-wrapper {
        min-width: auto !important;
        padding: 16px !important;
    }
    
    #teacherSettlementContainer .settlement-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    #teacherSettlementContainer .settlement-card {
        min-width: auto !important;
    }
    
    /* 모든 필터 영역 - PC 레이아웃 유지 (가로 1줄) */
    .filter-card-single-line,
    .filter-card-two-lines,
    .statement-filter-inline {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }
    
    /* 월별 리스트 필터 + 손익계산 필터 - 강제 가로 1줄 */
    .list-month-filter,
    .profit-loss-filter {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .list-month-filter > *,
    .profit-loss-filter > * {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    /* 2줄 필터 → 1줄로 */
    .filter-card-two-lines .filter-line-1,
    .filter-card-two-lines .filter-line-2 {
        display: contents !important;
    }
    
    /* filter-line-1 구분선 제거 */
    .filter-card-two-lines .filter-line-1 {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .filter-card-two-lines .filter-group {
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
    }
    
    /* 분석 탭 필터 그룹 - PC 레이아웃 강제 */
    .filter-card-single-line .filter-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    /* 필터 그룹 - 늘어나지 않게 */
    #settlementContent .filter-group-inline,
    #mySettlement .filter-group-inline,
    .settlement-pastel .filter-group-inline,
    .list-month-filter .filter-group-inline,
    .profit-loss-filter .filter-group-inline {
        display: flex !important;
        flex-direction: row !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;
        width: auto !important;
        gap: 6px !important;
    }
    
    #settlementContent .filter-group-inline select,
    #mySettlement .filter-group-inline select,
    .settlement-pastel .filter-group-inline select,
    .list-month-filter .filter-group-inline select,
    .profit-loss-filter .filter-group-inline select,
    .statement-filter-inline .filter-group-inline select {
        width: auto !important;
        min-width: 70px !important;
        max-width: 120px !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    
    /* 정산서 필터 - 높이 축소 */
    .statement-filter-inline {
        padding: 10px 14px !important;
        gap: 10px !important;
    }
    
    .statement-filter-inline .filter-group-inline {
        gap: 6px !important;
    }
    
    .statement-filter-inline .filter-group-inline label {
        font-size: 13px !important;
    }
    
    .statement-filter-inline .filter-group-inline.teacher-select select {
        min-width: 120px !important;
        max-width: 150px !important;
    }
    
    /* 기존 모바일 반응형 비활성화 - PC 레이아웃 유지 */
    .settlement-pastel .analysis-page .kpi-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 모든 카드 - 내용 전체 표시 */
    .settlement-pastel .analysis-page .kpi-card,
    .settlement-pastel .kpi-card,
    #settlementContent .kpi-card,
    #mySettlement .kpi-card,
    .settlement-pastel .metric-card,
    .settlement-pastel .chart-card,
    .settlement-pastel .platform-card,
    .settlement-pastel .summary-card,
    .settlement-pastel .data-card {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 20px 16px 24px 16px !important;
    }
    
    /* KPI 카드 그리드 - 높이 자동 */
    .settlement-pastel .kpi-cards-grid,
    #settlementContent .kpi-cards-grid,
    #mySettlement .kpi-cards-grid,
    .settlement-pastel .analysis-page .kpi-cards-grid {
        grid-auto-rows: auto !important;
        align-items: stretch !important;
    }
    
    .settlement-pastel .kpi-cards-grid > *,
    #settlementContent .kpi-cards-grid > *,
    #mySettlement .kpi-cards-grid > *,
    .settlement-pastel .analysis-page .kpi-cards-grid > * {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* 모바일 텍스트 크기 축소 */
    .settlement-pastel .analysis-page .kpi-icon,
    .settlement-pastel .kpi-icon,
    #settlementContent .kpi-icon,
    #mySettlement .kpi-icon {
        font-size: 28px !important;
        margin-bottom: 4px !important;
    }
    
    .settlement-pastel .analysis-page .kpi-label,
    .settlement-pastel .kpi-label,
    #settlementContent .kpi-label,
    #mySettlement .kpi-label {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    
    .settlement-pastel .analysis-page .kpi-value,
    .settlement-pastel .kpi-value,
    #settlementContent .kpi-value,
    #mySettlement .kpi-value {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }
    
    .settlement-pastel .analysis-page .kpi-sub,
    .settlement-pastel .kpi-sub,
    #settlementContent .kpi-sub,
    #mySettlement .kpi-sub {
        font-size: 10px !important;
    }
    
    .kpi-value,
    .kpi-label,
    .kpi-sub,
    .kpi-icon,
    .metric-value,
    .metric-label,
    .settlement-pastel .analysis-page .kpi-value,
    .settlement-pastel .analysis-page .kpi-label,
    .settlement-pastel .analysis-page .kpi-sub,
    .settlement-pastel .analysis-page .kpi-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .charts-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .lead-time-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sub-tabs {
        flex-direction: row;
    }
    
    .statement-actions-buttons {
        flex-direction: row;
    }
    
    .btn-statement-action {
        width: auto;
        justify-content: center;
    }
    
    .summary-oneline {
        flex-direction: row;
        align-items: center;
    }
    
    .summary-metrics-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 대시보드 플랫폼 상세 - PC 레이아웃 유지 */
    .platform-detail-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============= 프린트 스타일 ============= */
@media print {
    .settlement-pastel {
        background: white;
        padding: 0;
    }
    
    .header-single-line,
    #settlementContent .tabs,
    #mySettlement .tabs,
    .list-month-filter,
    .filter-card-single-line,
    .filter-card-two-lines,
    .statement-filter-inline,
    .btn-refresh,
    .btn-apply-inline,
    .btn-apply-list-filter,
    .btn-reset-inline,
    .btn-apply-statement,
    .statement-actions,
    .statement-actions-row,
    .back-to-list,
    .sub-tabs {
        display: none !important;
    }
    
    .data-table,
    .statement-detail,
    .statement-doc,
    .teacher-section-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .metric-card,
    .settlement-pastel .analysis-page .kpi-card,
    .chart-card,
    .platform-card {
        box-shadow: none;
        border: 1px solid #e9ecef;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ============= 빈 상태 및 에러 메시지 ============= */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
    color: #868e96;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.no-data-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.no-data-message .icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #adb5bd;
}

.no-data-message h4 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.no-data-message p {
    font-size: 14px;
    color: #868e96;
}

.error-message {
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-left: 4px solid #ff6b6b;
    border-radius: 12px;
    margin: 20px 0;
}

.error-message .error-icon {
    font-size: 24px;
    color: #ff6b6b;
    margin-right: 12px;
    vertical-align: middle;
}

.error-message .error-text {
    font-size: 14px;
    color: #c92a2a;
    font-weight: 600;
    display: inline;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
}

.loading-spinner .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f1f3f5;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-spinner p {
    font-size: 14px;
    color: #868e96;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============= 입력 필드 스타일 ============= */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 10px 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #495057;
    transition: all 0.15s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover {
    border-color: #adb5bd;
}

input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
textarea:disabled,
select:disabled {
    background: #f1f3f5;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* 체크박스 스타일 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

input[type="checkbox"]:checked {
    background: #6c5ce7;
    border-color: #6c5ce7;
}

input[type="checkbox"]:hover {
    border-color: #6c5ce7;
}

/* 버튼 비활성화 상태 */
button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

button:disabled:hover,
.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ============= 툴팁 ============= */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: #212529;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #212529 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ============= 알림 메시지 ============= */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-success {
    background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
    border-left: 4px solid #20c997;
    color: #087f5b;
}

.alert-success .alert-icon {
    color: #20c997;
}

.alert-warning {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border-left: 4px solid #ffa94d;
    color: #e67700;
}

.alert-warning .alert-icon {
    color: #ffa94d;
}

.alert-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-left: 4px solid #ff6b6b;
    color: #c92a2a;
}

.alert-error .alert-icon {
    color: #ff6b6b;
}

.alert-info {
    background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%);
    border-left: 4px solid #4dabf7;
    color: #1971c2;
}

.alert-info .alert-icon {
    color: #4dabf7;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.alert-close:hover {
    opacity: 1;
}

/* ============= 모달 (정산 전용) ============= */
/* ⚠️ 주의: 범용 .modal 스타일은 5-modal.css 사용 */
/* 정산 모달만 별도 스타일 필요시 .settlement-modal 클래스 사용 */

.settlement-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

/* ✅ 정산 모달 전용 스타일 - 범용 .modal과 충돌하지 않음 */
.settlement-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.settlement-modal .modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settlement-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.settlement-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #868e96;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.settlement-modal .modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.settlement-modal .modal-body {
    padding: 24px 28px;
}

.settlement-modal .modal-footer {
    padding: 20px 28px;
    border-top: 2px solid #f1f3f5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.settlement-modal .modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.settlement-modal .modal-footer .btn-primary {
    background: #6c5ce7;
    color: white;
}

.settlement-modal .modal-footer .btn-primary:hover {
    background: #5f4dd1;
    transform: translateY(-1px);
}

.settlement-modal .modal-footer .btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.settlement-modal .modal-footer .btn-secondary:hover {
    background: #e9ecef;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= 상태 배지 ============= */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.confirmed {
    background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
    color: #087f5b;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    color: #e67700;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #c92a2a;
}

.status-badge.completed {
    background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%);
    color: #1971c2;
}

/* ============= 프로그레스 바 ============= */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============= 카운터 배지 ============= */
.counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #6c5ce7;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.counter-badge.success {
    background: #20c997;
}

.counter-badge.warning {
    background: #ffa94d;
}

.counter-badge.error {
    background: #ff6b6b;
}

/* ============= 드롭다운 메뉴 ============= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* ============= 플랫폼 요약 카드 ============= */
.summary-card {
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 32px;
    margin-bottom: 24px;
    border: 2px solid #e9ecef;
}

.summary-oneline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-height: 44px;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.summary-divider {
    color: #dee2e6;
    font-weight: 300;
    font-size: 18px;
}

.summary-item-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label-inline {
    font-size: 14px;
    color: #868e96;
    font-weight: 500;
}

.summary-value-inline {
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}

.summary-value-inline.purple {
    color: #6c5ce7;
}

.summary-value-inline.green {
    color: #20c997;
}

.summary-value-inline.red {
    color: #ff6b6b;
}

/* Empty 상태 */
.empty {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 18px;
    color: #868e96;
}

/* 섹션 헤더 */
.section-header {
    margin: 32px 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

/* ============= 추가 유틸리티 ============= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

/* ============= 애니메이션 ============= */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 로딩 화면 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 20px;
}

.loading-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 14px;
    color: #868e96;
}

/* ============= 스크롤바 스타일 ============= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

/* ============= 플랫폼별 요약 (가로 1열 카드) ============= */
.platform-summary-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.platform-summary-grid > * {
    flex: 1;
    min-width: 280px;
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.platform-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #e5dbff 0%, #d0bfff 100%);
    color: #5f3dc4;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.platform-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-stat-label {
    font-size: 14px;
    color: #868e96;
    font-weight: 500;
}

.platform-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.platform-stat-value.red {
    color: #ff6b6b;
}

/* ============= 완료 ============= */

/* ==========================================
   정산 관리 개편 (2026-09-15) — 월별 리스트
   보라 그라데이션·이모지 제거, 월 이동, KPI 한 줄, 예약처 표, 회차별 묶음, 확인할 것
   ========================================== */
.settlement-v2 .sv2-head { display: flex; align-items: center; gap: 20px; padding: 12px 0 14px; border-bottom: 1px solid #e5e7eb; margin-bottom: 14px; flex-wrap: wrap; }
.settlement-v2 .sv2-title { font-size: 20px; font-weight: 700; color: #111827; white-space: nowrap; }
.settlement-v2 .sv2-month { display: flex; align-items: center; gap: 4px; }
.settlement-v2 .sv2-month-label { min-width: 116px; text-align: center; font-size: 15px; font-weight: 700; color: #111827; }
.settlement-v2 .sv2-ib { width: 34px; height: 34px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; font-size: 18px; line-height: 1; cursor: pointer; }
.settlement-v2 .sv2-ib:hover { background: #f3f4f6; }
.settlement-v2 .sv2-head-actions { margin-left: auto; display: flex; gap: 8px; }
.settlement-v2 .sv2-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.settlement-v2 .sv2-btn:hover { background: #f3f4f6; }
.settlement-v2 .sv2-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.settlement-v2 .sv2-btn.primary:hover { background: #1d4ed8; }
#settlementContent .settlement-v2 .sv2-tabs { gap: 0; padding: 0; margin-bottom: 14px; background: transparent; box-shadow: none; border-bottom: 1px solid #e5e7eb; border-radius: 0; }
.settlement-v2 .sv2-tabs .tab { flex: 0 0 auto; padding: 12px 8px; margin-right: 44px; border-radius: 0; font-size: 15px; font-weight: 500; color: #6b7280; border-bottom: 2px solid transparent; background: transparent !important; box-shadow: none !important; letter-spacing: -0.01em; }
.settlement-v2 .sv2-tabs .tab:last-child { margin-right: 0; }
.settlement-v2 .sv2-tabs .tab:hover { color: #111827; }
.settlement-v2 .sv2-tabs .tab.active { color: #111827; font-weight: 600; border-bottom-color: #2563eb; }
.settlement-v2 .list-month-filter.sv2-filter { display: flex !important; align-items: center; gap: 12px; padding: 0 !important; margin: 6px 0 22px !important; background: transparent !important; box-shadow: none !important; }
.settlement-v2 .sv2-sel { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 14px; color: #6b7280; white-space: nowrap; }
.settlement-v2 .sv2-sel { box-sizing: border-box; overflow: hidden; line-height: 1; }
.settlement-v2 .sv2-sel select { box-sizing: border-box; border: none !important; background: transparent !important; background-image: none !important; font-size: 14px !important; color: #374151; padding: 0 22px 0 4px !important; margin: 0 !important; min-width: 84px !important; width: auto !important; height: 36px !important; min-height: 0 !important; line-height: 36px; cursor: pointer; outline: none; -webkit-appearance: auto; appearance: auto; }
.settlement-v2 .sv2-filter .sv2-btn.primary { height: 38px; padding: 0 22px; margin-left: 8px; font-size: 14px; }
.settlement-v2 .sv2-layout { display: flex; gap: 20px; align-items: flex-start; }
.settlement-v2 .sv2-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.settlement-v2 .sv2-side { flex: 0 0 300px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 8px; }
.settlement-v2 .sv2-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.settlement-v2 .sv2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; font-size: 14px; color: #111827; }
.settlement-v2 .sv2-muted { font-size: 12px; color: #6b7280; font-weight: 400; }
.settlement-v2 .sv2-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.settlement-v2 .sv2-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 1px solid #f3f4f6; }
.settlement-v2 .sv2-kpi:first-child { border-left: none; }
.settlement-v2 .sv2-kpi .l { font-size: 12px; color: #6b7280; }
.settlement-v2 .sv2-kpi .v { font-size: 21px; font-weight: 700; color: #111827; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.settlement-v2 .sv2-kpi .v.accent { color: #1d4ed8; }
.settlement-v2 .sv2-kpi .s { font-size: 12px; color: #9ca3af; }
.settlement-v2 .sv2-table { width: 100%; border-collapse: collapse; }
.settlement-v2 .sv2-table th { text-align: left; font-size: 12px; font-weight: 600; color: #6b7280; padding: 9px 12px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.settlement-v2 .sv2-table td { padding: 9px 12px; font-size: 13px; color: #374151; border-bottom: 1px solid #f3f4f6; vertical-align: middle; white-space: nowrap; }
.settlement-v2 .sv2-table td.n, .settlement-v2 .sv2-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.settlement-v2 .sv2-table tr.tot td { font-weight: 700; color: #111827; border-top: 2px solid #e5e7eb; border-bottom: none; }
.settlement-v2 .sv2-table tr.g td { background: #f3f4f6; font-weight: 600; color: #111827; border-bottom: 1px solid #e5e7eb; }
.settlement-v2 .sv2-table tr.g.bad td { background: #fef2f2; }
.settlement-v2 .sv2-who { color: #2563eb; }
.settlement-v2 .sv2-bad { color: #b91c1c; }
.settlement-v2 .sv2-cancelled td { color: #9ca3af; }
.settlement-v2 .sv2-hold td { background: #fffbeb; }
.settlement-v2 .sv2-scroll { overflow-x: auto; }
.settlement-v2 .sv2-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.settlement-v2 .sv2-pill.ok { background: #dcfce7; color: #15803d; }
.settlement-v2 .sv2-pill.w { background: #fef3c7; color: #b45309; }
.settlement-v2 .sv2-pill.x { background: #fee2e2; color: #b91c1c; }
.settlement-v2 .sv2-pill.g { background: #e5e7eb; color: #374151; }
.settlement-v2 .sv2-todo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f3f4f6; }
.settlement-v2 .sv2-todo-t { font-size: 13px; font-weight: 600; color: #111827; }
.settlement-v2 .sv2-todo-d { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.5; }
.settlement-v2 .sv2-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 9999px; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.settlement-v2 .sv2-cnt.red { background: #fee2e2; color: #b91c1c; }
.settlement-v2 .sv2-cnt.amber { background: #fef3c7; color: #b45309; }
.settlement-v2 .sv2-cnt.gray { background: #f3f4f6; color: #374151; }
.settlement-v2 .sv2-auto { padding: 10px 14px; background: #fafafa; border-top: 1px solid #f3f4f6; font-size: 12px; color: #6b7280; }
.settlement-v2 .sv2-empty { padding: 40px 20px; text-align: center; color: #6b7280; font-size: 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
@media (max-width: 900px) {
    .settlement-v2 .sv2-layout { flex-direction: column; }
    .settlement-v2 .sv2-side { flex-basis: auto; width: 100%; position: static; }
    .settlement-v2 .sv2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settlement-v2 .sv2-kpi { border-left: none; border-top: 1px solid #f3f4f6; }
    .settlement-v2 .sv2-kpi:nth-child(-n+2) { border-top: none; }
    .settlement-v2 .sv2-kpi:nth-child(even) { border-left: 1px solid #f3f4f6; }
    .settlement-v2 .list-month-filter.sv2-filter { flex-wrap: wrap; }
    .settlement-v2 .sv2-head-actions { margin-left: 0; }
}

/* 예약 내역 보기 토글·한 줄 표·선생님 묶음 (2026-09-15) */
.settlement-v2 .sv2-seg2 { display: inline-flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.settlement-v2 .sv2-seg2 button { height: 30px; padding: 0 12px; border: none; border-right: 1px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.settlement-v2 .sv2-seg2 button:last-child { border-right: none; }
.settlement-v2 .sv2-seg2 button.on { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.settlement-v2 .sv2-head-right { display: inline-flex; align-items: center; gap: 8px; }
.settlement-v2 .sv2-dl { display: inline-flex; align-items: center; gap: 5px; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.settlement-v2 .sv2-dl:hover { background: #f3f4f6; }
/* 메모 칸 (2026-09-16) — 예약 접수 표와 같이 두 줄까지 보이고 넘치면 말줄임 */
.settlement-v2 .sv2-table td.sv2-memo { white-space: normal; color: #4b5563; font-size: 12.5px; line-height: 1.4; }
.settlement-v2 .sv2-table td.sv2-memo > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.settlement-v2 .sv2-flat { table-layout: fixed; }
.settlement-v2 .sv2-flat td { overflow: hidden; text-overflow: ellipsis; }
.settlement-v2 .sv2-flat tr.day td { border-top: 2px solid #e5e7eb; }
.settlement-v2 .sv2-flat .sv2-d { font-weight: 600; color: #111827; }
.settlement-v2 .sv2-flat .sv2-t { font-variant-numeric: tabular-nums; padding-left: 6px; padding-right: 6px; }
.settlement-v2 .sv2-tsub { display: flex; align-items: center; gap: 6px; padding: 9px 16px; background: #fafafa; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #f3f4f6; font-size: 13px; color: #6b7280; }
.settlement-v2 .sv2-tsub b { color: #111827; }
.settlement-v2 .sv2-tsub.bad, .settlement-v2 .sv2-tsub.bad b { color: #b91c1c; }

/* 시작 시각별 투어 — 쉽게 보기 (2026-10-21) */
.st-head-line { margin: 12px 0 18px; }
.st-lead { margin: 0; font-size: 18px; color: #212529; line-height: 1.5; }
.st-lead strong { color: #1971c2; }
.st-meta { margin: 4px 0 0; font-size: 13px; color: #6b7280; font-variant-numeric: tabular-nums; }
.st-meta b { color: #c2410c; font-weight: 600; }
.st-tl { margin: 4px 0 22px; padding: 0 8px; }
.st-tl-plot { position: relative; height: 200px; border-bottom: 1px solid #ced4da; background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #f1f3f5 49px, #f1f3f5 50px); }
.st-col { position: absolute; bottom: 0; top: 22px; width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.st-col i { display: block; width: 14px; background: #74c0fc; border-radius: 4px 4px 0 0; flex: none; }
.st-col-peak i { background: #1971c2; }
.st-col b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: #212529; white-space: nowrap; }
.st-col:hover i { background: #1864ab; }
.st-tl-axis { position: relative; height: 22px; }
.st-tick { position: absolute; top: 5px; transform: translateX(-50%); font-size: 11.5px; color: #6b7280; white-space: nowrap; }
.st-list { display: flex; flex-direction: column; }
.st-row > summary, .st-more > summary { list-style: none; cursor: pointer; }
.st-row > summary::-webkit-details-marker, .st-more > summary::-webkit-details-marker { display: none; }
.st-row > summary {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) 128px; grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 2px; align-items: center; padding: 10px 8px; border-radius: 10px;
}
.st-row > summary:hover { background: #f8f9fa; }
.st-time { grid-row: 1 / span 2; font-size: 17px; font-weight: 700; color: #212529; font-variant-numeric: tabular-nums; }
.st-track { height: 14px; background: #f1f3f5; border-radius: 0 4px 4px 0; }
.st-track i { display: block; height: 100%; background: #339af0; border-radius: 0 4px 4px 0; }
.st-val { font-size: 13px; color: #6b7280; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-val b { font-size: 15px; color: #212529; font-weight: 700; margin-right: 4px; }
.st-sub { grid-column: 2 / span 2; font-size: 12.5px; color: #6b7280; font-variant-numeric: tabular-nums; }
.st-sub em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #c2410c; background: #fff4e6; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.st-weak .st-track i { background: #a5d8ff; }
.st-row[open] > summary { background: #f1f8ff; }
.st-detail { margin: 2px 8px 10px 78px; padding: 8px 12px; background: #f8f9fa; border-radius: 8px; }
.st-detail > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; color: #374151; }
.st-detail > div > span:last-child { color: #6b7280; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-detail .st-detail-rest { color: #868e96; }
.st-detail .st-detail-foot { border-top: 1px solid #e9ecef; margin-top: 4px; padding-top: 6px; color: #868e96; font-size: 12px; }
.st-more { margin-top: 6px; border-top: 1px dashed #dee2e6; padding-top: 6px; }
.st-more > summary { padding: 8px; font-size: 13px; color: #6b7280; border-radius: 8px; }
.st-more > summary::before { content: '＋ '; }
.st-more[open] > summary::before { content: '－ '; }
.st-more > summary:hover { background: #f8f9fa; }
.st-more .st-time { font-size: 15px; color: #6b7280; }
.st-note { margin: 12px 8px 0; font-size: 12px; color: #868e96; }
@media (max-width: 640px) {
    .st-lead { font-size: 16px; }
    .st-tick-odd { display: none; }
    .st-col:not(.st-col-peak) b { display: none; }
    .st-col i { width: 8px; }
    .st-tl-plot { height: 160px; }
    .st-row > summary { grid-template-columns: 50px minmax(0, 1fr); }
    .st-val { grid-column: 2; grid-row: 2; }
    .st-sub { grid-column: 2; grid-row: 3; }
    .st-time { grid-row: 1 / span 3; }
    .st-detail { margin-left: 8px; }
}

/* 투어별 현황 — 학년·성별·부모 동반 (2026-10-21, 디자인 캔버스 시안 D) */
.tp-lead { margin: 10px 0 0; font-size: 18px; color: #212529; line-height: 1.5; }
.tp-lead strong { color: #1971c2; }
.tp-meta { margin: 4px 0 16px; font-size: 12.5px; color: #6b7280; }
.tp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tp-table { min-width: 1090px; }
.tp-row { display: grid; grid-template-columns: 140px 60px 70px 58px repeat(7, 44px) 130px 64px 52px minmax(120px, 1fr); column-gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f1f3f5; font-size: 14px; color: #212529; }
.tp-head { font-size: 12px; font-weight: 600; color: #6b7280; border-bottom: 1px solid #dee2e6; padding: 0 0 8px; }
.tp-name { font-size: 14px; font-weight: 700; }
.tp-n { text-align: right; font-variant-numeric: tabular-nums; }
.tp-strong { font-weight: 700; }
.tp-low { color: #c2410c; font-weight: 700; }
.tp-gh { text-align: center; }
.tp-g { text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; padding: 5px 0; border-radius: 4px; }
.tp-g0 { background: #f8f9fa; color: #868e96; }
.tp-g1 { background: #e7f5ff; color: #495057; }
.tp-g2 { background: #a5d8ff; color: #212529; }
.tp-g3 { background: #4dabf7; color: #212529; }
.tp-g4 { background: #1c7ed6; color: #fff; }
.tp-g5 { background: #1864ab; color: #fff; }
.tp-g-none { grid-column: span 7; font-size: 12px; color: #868e96; text-align: center; }
.tp-sex, .tp-sexh, .tp-src, .tp-srch { padding-left: 10px; }
.tp-sex { display: flex; flex-direction: column; gap: 3px; }
.tp-sexbar { display: flex; height: 8px; gap: 2px; border-radius: 4px; overflow: hidden; }
.tp-sexbar i { display: block; background: #1c7ed6; }
.tp-sexbar em { display: block; flex: 1; background: #f08c00; }
.tp-sex small { font-size: 11.5px; color: #6b7280; }
.tp-src { font-size: 12px; color: #495057; line-height: 1.4; }
.tp-row > :first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.tp-more > summary { list-style: none; cursor: pointer; padding: 10px 4px; font-size: 13px; color: #6b7280; }
.tp-more > summary::-webkit-details-marker { display: none; }
.tp-more > summary::before { content: '＋ '; }
.tp-more[open] > summary::before { content: '－ '; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: #6b7280; align-items: center; }
.tp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tp-ramp { display: inline-block; width: 70px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #e7f5ff, #a5d8ff, #4dabf7, #1c7ed6, #1864ab); }
.tp-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tp-key-m { background: #1c7ed6; }
.tp-key-f { background: #f08c00; }
@media (max-width: 640px) { .tp-lead { font-size: 16px; } }
