/* ===== Teacher Settlement Page ===== */

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

.settlement-header .back-btn {
    position: static;
    top: auto;
    left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.settlement-header .back-btn:hover {
    background: var(--border);
    border-color: transparent;
}
.settlement-header .back-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
}

.settlement-header .header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Revenue Summary Cards ===== */
.summary-section {
    margin-bottom: 24px;
}

.summary-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.summary-card.primary {
    background: linear-gradient(135deg, #5B2D8E, #7B4DC0);
    color: #fff;
    margin-bottom: 12px;
}

.summary-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-card.primary .summary-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    color: #fff;
}

.event-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.summary-card.primary .summary-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.summary-deposit-info {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary-sublabel {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    margin-top: -2px;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.summary-card.small {
    padding: 16px;
    text-align: center;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.summary-icon.settled  { background: #D1FAE5; color: #059669; }
.summary-icon.pending  { background: #FEF3C7; color: #D97706; }
.summary-icon.withdrawal { background: #DBEAFE; color: #2563EB; }

.summary-card.small .summary-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.summary-value.small {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== 에스크로 락 현황 카드 ===== */
.escrow-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.escrow-status-card {
    background: #FAFAFF;
    border: 1.5px solid #EDEDF0;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    transition: border-color 0.2s;
}

.escrow-status-card.locked  { border-color: #FECACA; background: #FFF5F5; }
.escrow-status-card.ready   { border-color: #FBBF24; background: #FFFBEB; }
.escrow-status-card.completed { border-color: #A7F3D0; background: #F0FDF4; }

/* 이번 주 정산 - 풀 와이드 */
.escrow-status-card.ready.wide {
    grid-column: 1 / -1;
    padding: 18px 20px;
    text-align: left;
}

.escrow-ready-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.escrow-ready-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.escrow-ready-left .escrow-status-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.escrow-ready-left .escrow-status-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.escrow-ready-left .escrow-status-sublabel {
    font-size: 11px;
    margin-bottom: 0;
}

.escrow-ready-right {
    text-align: right;
    flex-shrink: 0;
}

.escrow-ready-right .escrow-status-value {
    font-size: 22px;
}

.escrow-ready-right .escrow-status-tap-hint {
    margin-top: 4px;
}

.escrow-status-card.locked.has-amount  { border-color: #F87171; }
.escrow-status-card.ready.has-amount   { border-color: #D97706; }

.escrow-status-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.escrow-status-label {
    font-size: 11px;
    font-weight: 700;
    color: #2D2D3A;
    margin-bottom: 3px;
}

.escrow-status-sublabel {
    font-size: 10px;
    color: #999999;
    line-height: 1.4;
    margin-bottom: 8px;
}

.escrow-status-value {
    font-size: 15px;
    font-weight: 800;
    color: #2D1B4E;
}

.escrow-status-card.locked .escrow-status-value   { color: #DC2626; }
.escrow-status-card.ready  .escrow-status-value   { color: #B45309; }
.escrow-status-card.completed .escrow-status-value { color: #059669; }

/* 클릭 가능 카드 */
.escrow-status-card.clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.escrow-status-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.escrow-status-card.clickable:active {
    transform: translateY(0);
}

.escrow-status-tap-hint {
    font-size: 9px;
    color: #B0B0C0;
    margin-top: 5px;
    letter-spacing: -0.2px;
}

.escrow-policy-note {
    padding: 10px 14px;
    background: #F0F4FF;
    border: 1px solid #C7D7FF;
    border-radius: 10px;
    font-size: 12px;
    color: #4A2474;
    line-height: 1.6;
}

.section-subtitle {
    font-size: 12px;
    color: #999999;
    font-weight: 400;
}

/* ===== Section ===== */
.section {
    margin-bottom: 24px;
}

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

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
}

/* ===== Bank Card ===== */
.bank-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.form-input:disabled {
    color: var(--text-secondary);
    cursor: default;
}

.form-input.editing {
    background: #fff;
    border-color: var(--accent-light);
}

.save-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5B2D8E, #7B4DC0);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
    transition: all 0.2s;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 45, 142, 0.3);
}

.save-btn:active {
    transform: translateY(0);
}

.bank-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    background: #FEF3C7;
    border-radius: 8px;
    font-size: 12px;
    color: #92400E;
    line-height: 1.5;
}

.bank-warning svg {
    flex-shrink: 0;
    color: #D97706;
    margin-top: 1px;
}

/* 빨간 강조 경고 문구 */
.bank-warning-critical {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    border-radius: 8px;
    font-size: 12px;
    color: #BE123C;
    line-height: 1.6;
    font-weight: 600;
}

.bank-warning-critical svg {
    flex-shrink: 0;
    color: #E11D48;
    margin-top: 1px;
}

/* 계좌 저장 확인 모달 */
.bank-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.bank-confirm-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.bank-confirm-modal {
    background: #fff;
    border-radius: 16px;
    width: 88%;
    max-width: 360px;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.2s ease;
}

.bank-confirm-overlay.open .bank-confirm-modal {
    transform: scale(1);
}

.bank-confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 12px;
}

.bank-confirm-icon {
    width: 36px;
    height: 36px;
    background: #FFF1F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bank-confirm-icon svg {
    color: #E11D48;
}

.bank-confirm-title {
    font-size: 16px;
    font-weight: 700;
    color: #2D1B4E;
}

.bank-confirm-body {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666666;
    line-height: 1.65;
    word-break: keep-all;
}

.bank-confirm-body strong {
    color: #BE123C;
    font-weight: 700;
}

.bank-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #EDEDF0;
}

.bank-confirm-actions button {
    padding: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.bank-confirm-cancel {
    background: #F8F8FA;
    color: #666666;
    border-right: 1px solid #EDEDF0 !important;
    border-radius: 0 0 0 16px;
}

.bank-confirm-cancel:active { background: #EDEDF0; }

.bank-confirm-ok {
    background: #fff;
    color: #E11D48;
    border-radius: 0 0 16px 0;
}

.bank-confirm-ok:active { background: #FFF1F2; }

/* ===== Status Badges ===== */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.pending   { background: #F3F4F6; color: #6B7280; }
.status-badge.scheduled { background: #DBEAFE; color: #2563EB; }
.status-badge.completed { background: #D1FAE5; color: #059669; }
.status-badge.cancelled { background: #FEE2E2; color: #DC2626; }

/* ===== Receipt / Proof of Documents Button ===== */
.receipt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #F3EEFF;
    color: #5B2D8E;
    border: 1px solid #D8D3C86FE;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: inherit;
    text-decoration: none;
}

.receipt-btn:hover {
    background: #5B2D8E;
    color: #fff;
    border-color: #5B2D8E;
}

.receipt-btn svg { flex-shrink: 0; }

/* ===== Settlement Policy Notice ===== */
.policy-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    margin-bottom: 40px;
}

.policy-notice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #0EA5E9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.policy-notice-text {
    font-size: 13px;
    color: #0C4A6E;
    line-height: 1.6;
}

.policy-notice-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.policy-notice-text em {
    font-style: normal;
    font-weight: 700;
    color: #0369A1;
}

/* ===== Settlement History Cards (모든 뷰포트 공용) ===== */
.history-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.history-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

/* ── 카드 헤더 (항상 표시되는 핵심 정보) ── */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.card-main {
    flex: 1;
    min-width: 0;
}

.card-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.card-student {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── 오른쪽: 정산금액 + 상태 (핵심 강조) ── */
.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.card-net-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.card-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #F4F0FF;
    border-radius: 6px;
    color: #5B2D8E;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.card-expand-icon.open {
    transform: rotate(180deg);
}

/* ── 상세 섹션 (아코디언) ── */
.card-detail {
    border-top: 1px solid #EEEAE2;
    padding: 4px 16px 16px;
}

.card-detail.hidden {
    display: none;
}

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

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

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-align: right;
}

.detail-value.negative {
    color: #DC2626;
}

.detail-fee-event {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #EEEAE2;
}

/* ===== Empty States ===== */
.empty-state-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 16px;
    background: #fff;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: #374151;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Desktop 보완 ===== */
@media (min-width: 768px) {
    .history-cards {
        gap: 12px;
    }

    .card-header {
        padding: 18px 20px;
        gap: 16px;
    }

    .card-date {
        font-size: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-student {
        font-size: 13px;
    }

    .card-net-amount {
        font-size: 22px;
    }

    .card-detail {
        padding: 4px 20px 18px;
    }

    .detail-row {
        padding: 10px 0;
    }

    .detail-label {
        font-size: 13px;
    }

    .detail-value {
        font-size: 14px;
    }
}

/* ===================================================
   에스크로 팝업 공통
=================================================== */
.escrow-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.escrow-popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.escrow-popup {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.escrow-popup-overlay:not(.open) .escrow-popup {
    display: none;
}

/* Desktop: center modal */
@media (min-width: 520px) {
    .escrow-popup-overlay {
        align-items: center;
        padding: 16px;
    }
    .escrow-popup {
        border-radius: 20px;
        max-height: 80vh;
    }
    .escrow-popup--wide {
        max-width: 520px;
    }
}

/* Header */
.escrow-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #EDEDF0;
    flex-shrink: 0;
}

.escrow-popup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #2D1B4E;
}

.escrow-popup-icon {
    font-size: 20px;
}

.escrow-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F4F1EB;
    border-radius: 50%;
    font-size: 20px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}
.escrow-popup-close:hover { background: #EDEDF0; }

/* Filter bar (입금 완료 팝업) */
.escrow-popup-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid #EEEAE2;
    flex-shrink: 0;
}

.popup-filter-label {
    font-size: 12px;
    color: #999999;
    font-weight: 500;
    white-space: nowrap;
}

.popup-filter-select {
    flex: 1;
    padding: 6px 10px;
    border: 1.5px solid #D8D3C8DE6;
    border-radius: 8px;
    font-size: 13px;
    color: #2D1B4E;
    background: #FAFAFF;
    outline: none;
    cursor: pointer;
}
.popup-filter-select:focus {
    border-color: #7B4DC0;
}

/* Body (scrollable) */
.escrow-popup-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 0;
}

/* ── 공통 팝업 내부 요소 ── */

/* 로딩 스피너 */
.popup-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
}

/* 빈 상태 */
.popup-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 20px;
    color: #999999;
    font-size: 14px;
    text-align: center;
}

/* 잠금 해제 배너 (락 중 팝업 상단) */
.popup-unlock-banner {
    margin: 16px 20px 4px;
    padding: 14px 16px;
    background: #FFF5F5;
    border: 1.5px solid #FECACA;
    border-radius: 12px;
}

.popup-unlock-banner-title {
    font-size: 11px;
    font-weight: 700;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.popup-unlock-banner-date {
    font-size: 13px;
    font-weight: 600;
    color: #2D1B4E;
    line-height: 1.5;
}

/* 입금 예정 배너 (정산 대기 팝업 상단) */
.popup-deposit-banner {
    margin: 16px 20px 4px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1.5px solid #FBBF24;
    border-radius: 12px;
    text-align: center;
}

.popup-deposit-label {
    font-size: 12px;
    color: #92400E;
    font-weight: 500;
    margin-bottom: 4px;
}

.popup-deposit-date {
    font-size: 22px;
    font-weight: 800;
    color: #B45309;
    letter-spacing: -0.5px;
}

/* 안내 메시지 박스 */
.popup-notice {
    margin: 12px 20px;
    padding: 12px 14px;
    background: #F0F4FF;
    border: 1px solid #C7D7FF;
    border-radius: 10px;
    font-size: 12px;
    color: #4A2474;
    line-height: 1.6;
}

/* 레슨 리스트 */
.popup-lesson-list {
    padding: 8px 20px 8px;
}

.popup-lesson-list-title {
    font-size: 12px;
    font-weight: 700;
    color: #999999;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.popup-lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F4F1EB;
    gap: 12px;
}

.popup-lesson-item:last-child {
    border-bottom: none;
}

.popup-lesson-item-left {
    flex: 1;
    min-width: 0;
}

.popup-lesson-student {
    font-size: 14px;
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 2px;
}

.popup-lesson-meta {
    font-size: 11px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-lesson-amount {
    font-size: 15px;
    font-weight: 700;
    color: #2D1B4E;
    flex-shrink: 0;
    text-align: right;
}

.popup-lesson-amount.locked-color { color: #DC2626; }
.popup-lesson-amount.ready-color  { color: #B45309; }

/* 합계 행 */
.popup-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 2px solid #EDEDF0;
    background: #FAFAFF;
    flex-shrink: 0;
}

.popup-total-label {
    font-size: 13px;
    color: #666666;
    font-weight: 600;
}

.popup-total-amount {
    font-size: 18px;
    font-weight: 800;
    color: #5B2D8E;
    letter-spacing: -0.5px;
}

/* 입금 완료 - 날짜 그룹 */
.paid-date-group {
    padding: 0 20px;
}

.paid-date-group + .paid-date-group {
    border-top: 1px solid #EEEAE2;
}

.paid-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 6px;
}

.paid-date-label {
    font-size: 12px;
    font-weight: 700;
    color: #666666;
}

.paid-date-total {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}

/* 영수증 버튼 (팝업 내) */
.popup-receipt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #F0FDF4;
    border: 1px solid #A7F3D0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s;
}
.popup-receipt-btn:hover { background: #DCFCE7; }
