/* CIMS-CSS-v3.4.4-MARKER - 이 주석이 보이면 v3.4.4 CSS 정상 적용됨 */

/* ============================================================
   맑은물속교회 통합 사역 관리 시스템 (CIMS) v3.2 - Style Sheet
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2c7a7b;
    --primary-dark: #285e61;
    --primary-light: #b2f5ea;
    --primary-soft: #e6fffa;
    --bg: #f7fafc;
    --card-bg: #ffffff;
    --text: #2d3748;
    --text-muted: #718096;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(45, 55, 72, 0.06);
    --shadow-hover: 0 6px 20px rgba(45, 55, 72, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --topbar-h: 60px;
    --sidebar-w: 240px;
    --income: #38a169;
    --expense: #e53e3e;
    --kakao-yellow: #fee500;
    --kakao-text: #3c1e1e;
    --warning: #ed8936;
    --warning-soft: #fffaf0;
    --info: #4299e1;
    --info-soft: #ebf8ff;
}

/* ====== v3.2: 다크 모드 ====== */
[data-theme="dark"] {
    --primary: #4fd1c5;
    --primary-dark: #38b2ac;
    --primary-light: #234e52;
    --primary-soft: #1a3637;
    --bg: #0f1419;
    --card-bg: #1a2332;
    --text: #e2e8f0;
    --text-muted: #a0aec0;
    --border: #2d3748;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
    --income: #48bb78;
    --expense: #fc8181;
    --warning: #f6ad55;
    --warning-soft: #2d2416;
    --info: #63b3ed;
    --info-soft: #1a2942;
}

[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .topbar { background: var(--card-bg); border-bottom-color: var(--border); }
[data-theme="dark"] .sidebar { background: var(--card-bg); border-right-color: var(--border); }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: var(--card-bg); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .card { background: var(--card-bg); }
[data-theme="dark"] code { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .code-block { background: #0d1117; color: #e6edf3; border-color: var(--border); }
[data-theme="dark"] .alert-success { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .alert-warning { background: var(--warning-soft); color: var(--warning); }
[data-theme="dark"] .info-banner { background: var(--warning-soft); border-left-color: var(--warning); }
[data-theme="dark"] .stat-card { background: var(--card-bg); }
[data-theme="dark"] .stat-icon { background: var(--primary-soft); }
[data-theme="dark"] .summary-card.income { background: linear-gradient(135deg, #1a3a2a 0%, #2d4a3a 100%); color: #9ae6b4; }
[data-theme="dark"] .summary-card.expense { background: linear-gradient(135deg, #3a1a1a 0%, #4a2d2d 100%); color: #fc8181; }
[data-theme="dark"] .summary-card.balance.positive { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-light) 100%); color: var(--primary); }
[data-theme="dark"] .tag-soft { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .btn-edit { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .btn-edit:hover { background: var(--primary); }
[data-theme="dark"] .pagination .page-btn { background: var(--card-bg); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .pagination .page-btn:hover:not(.disabled):not(.active) { background: var(--primary-soft); }
[data-theme="dark"] .more-btn { color: var(--primary); }
[data-theme="dark"] .filter-row .search-input { background: var(--card-bg); }
[data-theme="dark"] .session-item { background: var(--bg); }
[data-theme="dark"] .docx-upload-label { background: var(--bg); border-color: var(--primary); }
[data-theme="dark"] .receipt-paper { background: white; color: #1A2E3D; } /* 영수증은 인쇄용이라 항상 라이트 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ===== Topbar ===== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 20px; z-index: 100;
    box-shadow: var(--shadow);
}

.menu-toggle {
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    margin-right: 14px; color: var(--primary);
    display: none; padding: 4px 8px; border-radius: 6px;
}
.menu-toggle:hover { background: var(--primary-soft); }

.brand {
    font-size: 18px; font-weight: 700;
    color: var(--primary); letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed; top: var(--topbar-h); left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--topbar-h));
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 20px 14px; overflow-y: auto;
    transition: transform 0.3s ease; z-index: 50;
    display: flex; flex-direction: column;
}

.sidebar-overlay {
    display: none; position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: rgba(0, 0, 0, 0.4); z-index: 40;
}

.sidebar-header {
    padding: 4px 12px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.sidebar-header h2 { font-size: 16px; color: var(--primary-dark); font-weight: 700; }
.sidebar-header .subtitle {
    font-size: 11px; color: var(--text-muted);
    margin-top: 4px; letter-spacing: 0.5px;
}

.nav-menu { list-style: none; flex: 1; }

.nav-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; color: var(--text);
    text-decoration: none; border-radius: var(--radius-sm);
    margin-bottom: 4px; font-size: 14.5px;
    font-weight: 500; transition: all 0.2s;
}
.nav-menu li a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.nav-divider {
    border-top: 1px solid var(--border);
    margin: 8px 0;
    list-style: none;
}

.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-muted);
}
.sidebar-footer .muted { margin-top: 2px; font-size: 11px; color: var(--primary); }

/* ===== Content ===== */
.content {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    padding: 28px;
    min-height: calc(100vh - var(--topbar-h));
}

.page-header { margin-bottom: 24px; }
.page-header h2 {
    font-size: 24px; color: var(--text);
    font-weight: 700; letter-spacing: -0.3px;
}
.page-subtitle { color: var(--text-muted); margin-top: 4px; font-size: 14px; }

.page-header-row {
    display: flex; justify-content: space-between;
    align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.page-header-row .btn { margin-top: 0; }

/* ===== Stat cards ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; gap: 16px;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.stat-icon {
    font-size: 32px; width: 56px; height: 56px;
    background: var(--primary-soft);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.stat-value {
    font-size: 28px; font-weight: 700;
    color: var(--primary); letter-spacing: -1px;
    line-height: 1.1;
}
.stat-value.negative { color: var(--expense); }
.stat-value .unit { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }

/* ===== Card ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 100%);
}
.card-header h3 { font-size: 16px; color: var(--text); font-weight: 700; }

.more-btn {
    font-size: 13px; color: var(--primary);
    text-decoration: none; padding: 5px 12px;
    border-radius: 20px; background: var(--primary-light);
    transition: all 0.2s;
}
.more-btn:hover { background: var(--primary); color: white; }

.card-body { padding: 20px; }
.card-body.empty { text-align: center; color: var(--text-muted); padding: 36px 20px; }
.card-body.empty p { margin-bottom: 14px; font-size: 14px; }

.meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.card-body h4 { font-size: 18px; margin-bottom: 8px; color: var(--text); font-weight: 700; }

.bible {
    color: var(--primary-dark);
    font-size: 14px; margin-bottom: 12px;
    font-weight: 500;
}

.summary {
    background: var(--bg); padding: 14px;
    border-radius: var(--radius-sm); margin-top: 12px;
    border-left: 3px solid var(--primary);
}
.summary strong {
    font-size: 11px; color: var(--primary);
    display: block; margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.summary p { font-size: 14px; color: var(--text); line-height: 1.6; }

/* ===== Buttons ===== */
.btn-link, .btn {
    display: inline-block;
    padding: 9px 16px; background: var(--primary);
    color: white !important; text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    margin-top: 12px; border: none; cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}
.btn-link:hover, .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg) !important; color: var(--text) !important; }

.btn-sm {
    padding: 7px 12px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

/* 카카오톡 공유 버튼 */
.btn-kakao {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    background: var(--kakao-yellow);
    color: var(--kakao-text) !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    margin-top: 12px; border: none; cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(254, 229, 0, 0.3);
}
.btn-kakao:hover {
    background: #ffd900;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 229, 0, 0.4);
}

/* ===== Grid ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== Info rows ===== */
.info-row {
    display: flex; padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.info-row:last-of-type { border-bottom: none; }
.info-label { width: 80px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.info-value { flex: 1; font-size: 14px; color: var(--text); }
.info-value a { color: var(--primary); text-decoration: none; }

/* ===== Session grid ===== */
.session-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-top: 14px; margin-bottom: 12px;
}
.session-item {
    background: var(--bg); padding: 12px 8px;
    border-radius: var(--radius-sm);
    text-align: center; font-size: 13px; font-weight: 500;
}
.session-label {
    font-size: 11px; color: var(--text-muted);
    margin-bottom: 4px; font-weight: 500;
}

/* ===== Setlist ===== */
.setlist {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.setlist strong {
    display: block; font-size: 12px;
    color: var(--primary); margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.setlist ol { padding-left: 22px; }
.setlist li { font-size: 14px; padding: 4px 0; }
.setlist li a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}
.setlist li a:hover { color: var(--primary); }

.link-search {
    margin-left: 6px; font-size: 12px;
    text-decoration: none !important;
    border: none !important;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.link-search:hover { opacity: 1; }

/* ===== Quick actions ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.quick-btn {
    display: block; padding: 14px 16px;
    background: var(--bg); color: var(--text) !important;
    text-decoration: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    text-align: center; border: 1px solid var(--border);
    transition: all 0.2s;
}
.quick-btn:hover {
    background: var(--primary); color: white !important;
    border-color: var(--primary);
    transform: translateY(-2px); box-shadow: var(--shadow-hover);
}

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px;
    color: var(--text-muted); margin-bottom: 6px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    background: var(--card-bg); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-group textarea {
    min-height: 140px; resize: vertical; line-height: 1.6;
}

/* ===== Search input / Filter row ===== */
.search-input {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    background: var(--card-bg); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-row {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
}
.filter-row .search-input { flex: 1; min-width: 180px; }
.filter-row .btn { margin-top: 0; }

.filter-item {
    display: flex; flex-direction: column; gap: 4px;
    flex: 1; min-width: 160px;
}
.filter-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ===== Tag ===== */
.tag {
    display: inline-block; padding: 3px 10px;
    background: var(--primary); color: white;
    border-radius: 20px; font-size: 11px;
    font-weight: 500; margin-right: 4px;
}
.tag-soft { background: var(--primary-soft); color: var(--primary-dark); }
.tag-income { background: var(--income); }
.tag-expense { background: var(--expense); }

.muted { color: var(--text-muted); }
.muted-label { color: var(--text-muted); font-weight: 400; font-size: 11px; }

.required { color: #e53e3e; }

.mono {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px; background: var(--bg);
    padding: 2px 6px; border-radius: 4px;
}

/* ===== Member list ===== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.member-top {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 14px;
}
.member-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-info h4 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.member-meta { display: flex; flex-wrap: wrap; gap: 4px; }

.member-detail {
    background: var(--bg); border-radius: var(--radius-sm);
    padding: 12px 14px; margin-bottom: 12px;
}
.detail-row {
    display: flex; justify-content: space-between;
    padding: 5px 0; font-size: 13px;
}
.detail-label { color: var(--text-muted); font-weight: 500; }
.detail-value { color: var(--text); font-weight: 500; }

/* 출석 버튼 */
.attend-btn {
    width: 100%; padding: 12px;
    border: 2px solid var(--border);
    background: var(--card-bg); color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.attend-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.attend-btn.attended {
    background: var(--primary); color: white;
    border-color: var(--primary);
}
.attend-btn.attended:hover:not(:disabled) { background: var(--primary-dark); }
.attend-btn:disabled { opacity: 0.6; cursor: wait; }

/* ===== Sermon list ===== */
.sermon-list { display: flex; flex-direction: column; gap: 16px; }

.sermon-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.sermon-date-badge {
    background: var(--primary); color: white;
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.3px;
}
.sermon-id { font-size: 11px; color: var(--text-muted); }
.sermon-title {
    font-size: 19px; color: var(--text);
    margin-bottom: 8px; font-weight: 700;
    letter-spacing: -0.3px;
}

.sermon-detail {
    margin-top: 14px;
    border-top: 1px dashed var(--border);
    padding-top: 14px;
}
.sermon-detail summary {
    cursor: pointer; font-size: 13px;
    color: var(--primary); font-weight: 500;
    padding: 6px 0; user-select: none;
}
.sermon-detail summary:hover { color: var(--primary-dark); }

.full-text {
    margin-top: 12px; padding: 14px;
    background: var(--bg); border-radius: var(--radius-sm);
    font-size: 14px; line-height: 1.8; color: var(--text);
    white-space: pre-wrap; max-height: 400px; overflow-y: auto;
}

.sermon-actions {
    margin-top: 14px; display: flex;
    gap: 8px; flex-wrap: wrap; align-items: center;
}

/* ===== Praise list ===== */
.praise-list { display: flex; flex-direction: column; gap: 16px; }
.praise-card .card-header h3 { font-size: 17px; }

.leader-badge {
    background: var(--primary); color: white;
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}

/* ===== Form Layout ===== */
.form-card { max-width: 800px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-section-title {
    font-size: 13px; color: var(--primary);
    font-weight: 700; margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-soft);
    letter-spacing: 0.3px;
}

.form-hint {
    display: block; font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px; line-height: 1.5;
}
.form-hint code, .info-banner code, code {
    background: var(--bg); padding: 1px 6px;
    border-radius: 4px; font-size: 11px;
    color: var(--primary);
    font-family: 'Consolas', 'Monaco', monospace;
}

.form-actions {
    display: flex; justify-content: flex-end;
    gap: 10px; margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ===== Setlist row (with 검색 버튼) ===== */
.setlist-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px;
    gap: 8px; margin-bottom: 8px; align-items: center;
}
.setlist-title-input,
.setlist-url-input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px; font-family: inherit;
    background: var(--card-bg); color: var(--text);
}
.setlist-title-input:focus,
.setlist-url-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-icon, .btn-search {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    cursor: pointer; color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s;
}
.btn-icon:hover {
    background: #fff5f5; border-color: #fc8181; color: #e53e3e;
}
.btn-search {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary-light);
}
.btn-search:hover {
    background: var(--primary); color: white;
}

/* ===== Type toggle (재정 등록) ===== */
.type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.type-toggle input[type="radio"] { display: none; }
.type-toggle .type-label {
    cursor: pointer; padding: 14px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px;
    transition: all 0.2s;
    background: var(--card-bg);
    color: var(--text);
    margin-bottom: 0;
}
.type-toggle .type-label:hover { background: var(--bg); }
.type-toggle input[type="radio"]:checked + .type-label.income {
    background: var(--income); color: white;
    border-color: var(--income);
}
.type-toggle input[type="radio"]:checked + .type-label.expense {
    background: var(--expense); color: white;
    border-color: var(--expense);
}

/* ===== Finance summary ===== */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.summary-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.summary-card.income { border-left: 4px solid var(--income); }
.summary-card.expense { border-left: 4px solid var(--expense); }
.summary-card.balance.positive { border-left: 4px solid var(--primary); }
.summary-card.balance.negative { border-left: 4px solid var(--expense); }

.summary-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.summary-value {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.5px;
}
.summary-card.income .summary-value { color: var(--income); }
.summary-card.expense .summary-value { color: var(--expense); }
.summary-card.balance.positive .summary-value { color: var(--primary); }
.summary-card.balance.negative .summary-value { color: var(--expense); }
.summary-value .unit { font-size: 12px; color: var(--text-muted); margin-left: 3px; font-weight: 500; }

/* ===== Finance list ===== */
.finance-list { display: flex; flex-direction: column; gap: 10px; }

.finance-card { transition: transform 0.15s; }
.finance-card:hover { transform: translateX(2px); }
.finance-수입 { border-left: 3px solid var(--income); }
.finance-지출 { border-left: 3px solid var(--expense); }

.finance-row {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px; flex-wrap: wrap;
}
.finance-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.finance-date { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.finance-amount {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.5px;
}
.finance-amount.income { color: var(--income); }
.finance-amount.expense { color: var(--expense); }
.finance-amount .unit { font-size: 12px; color: var(--text-muted); margin-left: 3px; font-weight: 500; }

.finance-detail {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex; gap: 8px; flex-wrap: wrap;
}
.detail-pill {
    background: var(--bg); padding: 4px 10px;
    border-radius: 12px; font-size: 12px;
    color: var(--text);
}

/* ===== Birthday widget ===== */
.birthday-widget {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 1px solid #ffe8d6;
}
.birthday-widget .card-header {
    background: linear-gradient(135deg, #ffe8d6 0%, #ffffff 100%);
    border-bottom-color: #ffe8d6;
}
.birthday-widget .more-btn {
    background: #ed8936; color: white;
}

.birthday-list {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.birthday-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); padding: 10px 14px;
    border-radius: 30px;
    font-size: 14px;
    transition: transform 0.15s;
}
.birthday-item:hover { transform: translateY(-2px); }
.birthday-item.today {
    background: linear-gradient(135deg, #ffd6a5 0%, #ffe8d6 100%);
    border: 2px solid #ed8936;
    font-weight: 600;
}
.cake { font-size: 20px; }
.bday-name { font-weight: 600; color: var(--text); }
.bday-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.today-badge {
    background: #ed8936; color: white;
    padding: 1px 6px; border-radius: 8px;
    font-size: 10px; margin-left: 4px; font-weight: 700;
}

/* ===== Pagination ===== */
.pagination {
    display: flex; justify-content: center;
    gap: 6px; margin-top: 24px; flex-wrap: wrap;
}
.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text); text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    transition: all 0.2s;
    min-width: 38px; text-align: center;
}
.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}
.page-btn.active {
    background: var(--primary); color: white;
    border-color: var(--primary);
    cursor: default;
}
.page-btn.disabled {
    color: var(--text-muted);
    background: var(--bg); cursor: not-allowed; opacity: 0.5;
}
.pagination-info {
    text-align: center; margin-top: 10px;
    font-size: 12px; color: var(--text-muted);
}

/* ===== DOCX Upload Box ===== */
.docx-upload-box { position: relative; }
.docx-upload-box input[type="file"] {
    position: absolute; opacity: 0;
    width: 0; height: 0; pointer-events: none;
}
.docx-upload-label {
    display: flex !important; align-items: center; gap: 16px;
    padding: 18px !important;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
    color: var(--text) !important;
    margin-bottom: 0 !important;
}
.docx-upload-label:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.upload-icon {
    font-size: 36px;
    width: 60px; height: 60px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.docx-upload-label strong {
    display: block; color: var(--primary);
    font-size: 14px; margin-bottom: 4px;
}
.docx-upload-label p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Alert ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid;
}
.alert strong { display: block; margin-bottom: 4px; }
.alert p { font-size: 13px; line-height: 1.6; margin-bottom: 4px; }
.alert-success {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #22543d;
}
.alert-error {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #742a2a;
}
.alert-warning {
    background: #fffaf0;
    border-color: #feebc8;
    color: #7b341e;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.7;
    margin: 10px 0;
    overflow-x: auto;
}

/* ===== Info banner ===== */
.info-banner {
    background: var(--primary-soft);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 18px;
    border: 1px solid var(--primary-light);
    display: flex; align-items: flex-start; gap: 12px;
    max-width: 800px;
}
.info-banner span { font-size: 24px; flex-shrink: 0; }
.info-banner strong {
    display: block; color: var(--primary-dark);
    font-size: 13px; margin-bottom: 4px;
}
.info-banner p { font-size: 13px; color: var(--text); line-height: 1.5; }

/* ============================================================
   ===== KIOSK MODE (전용 풀스크린) =====
   ============================================================ */
.kiosk-body {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 100%);
    overflow-x: hidden;
}

.kiosk-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

.kiosk-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.kiosk-header h1 {
    font-size: 28px; color: var(--primary);
    font-weight: 700; letter-spacing: -0.5px;
}
.kiosk-date {
    font-size: 16px; color: var(--text-muted);
    margin-top: 4px; font-weight: 500;
}
.kiosk-exit {
    width: 48px; height: 48px;
    background: var(--bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; text-decoration: none;
    transition: all 0.2s;
    color: var(--text-muted);
}
.kiosk-exit:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.kiosk-search {
    margin-bottom: 24px;
}
.kiosk-search input {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 18px;
    background: white;
    color: var(--text);
    box-shadow: var(--shadow);
    font-family: inherit;
}
.kiosk-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.kiosk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.kiosk-tile {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    user-select: none;
}
.kiosk-tile:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.kiosk-tile:active:not(:disabled) {
    transform: translateY(0);
}
.kiosk-tile.attended {
    background: var(--primary-soft);
    border-color: var(--primary);
}
.kiosk-tile:disabled { opacity: 0.6; cursor: wait; }

.tile-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
    margin-bottom: 4px;
}
.kiosk-tile.attended .tile-avatar {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.tile-name {
    font-size: 17px; font-weight: 700;
    color: var(--text);
}
.tile-dept {
    font-size: 12px; color: var(--text-muted);
}
.tile-status {
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.kiosk-tile.attended .tile-status {
    color: var(--primary-dark);
}

.kiosk-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 18px;
}
.kiosk-empty a {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* 키오스크 출석 완료 모달 */
.kiosk-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 24px;
}
.kiosk-modal.show { display: flex; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.kiosk-modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.25s ease;
}
@keyframes scaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 12px;
    animation: bounce 0.5s ease;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.kiosk-modal-content h2 {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}
.kiosk-modal-content p {
    color: var(--text); font-size: 15px;
    margin-bottom: 8px;
}
.modal-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ============================================================
   ===== Responsive (Tablet 1024px↓ / Mobile 768px↓ / 480px↓)
   ============================================================ */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .content { padding: 22px; }
    .finance-summary { grid-template-columns: 1fr; }
    .kiosk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }

    .content { margin-left: 0; padding: 16px; }

    .topbar { padding: 0 16px; }
    .brand { font-size: 16px; }

    .stat-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-icon { width: 48px; height: 48px; font-size: 26px; }
    .stat-value { font-size: 24px; }

    .card-header { padding: 14px 16px; }
    .card-body { padding: 16px; }

    .session-grid { gap: 6px; }
    .session-item { padding: 10px 4px; font-size: 12px; }

    .page-header h2 { font-size: 20px; }
    .page-header-row { flex-direction: column; align-items: stretch; }
    .page-header-row .btn { width: 100%; text-align: center; }

    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: 1fr; }

    .setlist-row { grid-template-columns: 1fr 40px 40px; gap: 6px; }
    .setlist-url-input { grid-column: 1 / -1; }

    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; text-align: center; }

    .full-text { max-height: 300px; font-size: 13px; }

    .quick-actions { grid-template-columns: repeat(2, 1fr); }

    /* Kiosk mobile */
    .kiosk-container { padding: 12px; }
    .kiosk-header { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
    .kiosk-header h1 { font-size: 22px; }
    .kiosk-date { font-size: 13px; }
    .kiosk-search input { padding: 14px 18px; font-size: 16px; }
    .kiosk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kiosk-tile { padding: 14px 8px; }
    .tile-avatar { width: 44px; height: 44px; font-size: 18px; }
    .tile-name { font-size: 14px; }

    /* Birthday */
    .birthday-list { flex-direction: column; }
    .birthday-item { width: 100%; }
}

/* ============================================================
   ===== v2.1 신규: 재정 수정 / 영수증 / 인쇄 최적화 =====
   ============================================================ */

/* ============================================================
   ===== v3.0 신규: CRUD UI / 통계카드 링크 / 악보 업로드 폼 =====
   ============================================================ */

/* 통계카드 클릭 가능 (link 버전) */
a.stat-card,
a.stat-link {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    position: relative;
}
a.stat-card::after {
    content: '→';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}
a.stat-card:hover::after {
    opacity: 1;
    right: 14px;
}
a.stat-card:hover .stat-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}
a.stat-card:hover .stat-value {
    color: var(--primary-dark);
}
a.stat-card .stat-icon {
    transition: all 0.2s ease;
}

/* 삭제 버튼 (목록 카드용) */
.btn-edit-danger:hover {
    background: #fff5f5 !important;
    border-color: #fc8181 !important;
    color: #c53030 !important;
}

/* v3.4.8: 카톡 보내기 버튼 (목록 카드용) */
.btn-kakao-send:hover {
    background: #fee500 !important;
    border-color: #fee500 !important;
}
.btn-kakao-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 교인 카드의 버튼 영역 */
.member-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.member-top {
    align-items: flex-start;
}

/* ============================================================
   ===== 콘티 입력 폼 (악보 파일 업로드) =====
   ============================================================ */
.song-edit-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.song-edit-row:hover {
    border-color: var(--primary-light);
}

.song-edit-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1.4fr 40px;
    gap: 10px;
    align-items: end;
}

.song-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.field-tag {
    font-size: 11px;
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.title-with-search {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.title-with-search input {
    flex: 1;
    min-width: 0;
}

.song-field .search-input {
    padding: 9px 11px;
    font-size: 13px;
    width: 100%;
}

.file-input {
    cursor: pointer;
    padding: 7px 11px !important;
    font-size: 12px !important;
    background: white !important;
}
.file-input::file-selector-button {
    margin-right: 8px;
    padding: 4px 10px;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.file-input::file-selector-button:hover {
    background: var(--primary-light);
}

.song-remove-cell {
    display: flex;
    align-items: end;
    padding-bottom: 2px;
}

/* 기존 악보 파일 표시 (수정 모드) */
.existing-sheet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding: 8px;
    background: var(--primary-soft);
    border-radius: 6px;
    font-size: 11px;
}
.existing-sheet .song-pill {
    align-self: flex-start;
}
.keep-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 500;
}
.keep-checkbox input[type="checkbox"] {
    margin: 0;
    width: 14px; height: 14px;
    accent-color: var(--primary);
}

/* ============================================================
   ===== 콘티 표시 (목록) =====
   ============================================================ */
.setlist-display {
    list-style: none !important;
    padding: 0 !important;
}
.setlist-display li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border);
}
.setlist-display li:last-child {
    border-bottom: none;
}

.song-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
    min-width: 100px;
}

.song-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.song-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.song-pill-youtube {
    background: #fff0f0;
    color: #c53030 !important;
    border-color: #feb2b2;
}
.song-pill-youtube:hover { background: #fed7d7; }

.song-pill-sheet {
    background: var(--primary-soft);
    color: var(--primary-dark) !important;
    border-color: var(--primary-light);
}
.song-pill-sheet:hover { background: var(--primary-light); }

.song-pill-search {
    background: var(--bg);
    color: var(--text-muted) !important;
    border-color: var(--border);
}
.song-pill-search:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

/* ============================================================
   ===== Responsive (Phase 3) =====
   ============================================================ */
@media (max-width: 768px) {
    .song-edit-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .song-remove-cell {
        align-items: flex-start;
        margin-top: -6px;
    }
    .song-remove-cell .btn-icon {
        margin-left: auto;
    }

    .setlist-display li {
        flex-direction: column;
        align-items: flex-start;
    }
    .song-actions {
        width: 100%;
    }

    .member-top {
        flex-wrap: wrap;
    }
    .member-actions {
        order: -1;
        width: 100%;
        justify-content: flex-end;
        margin-bottom: 4px;
    }

/* ============================================================
   ===== v3.1 신규: sermon_edit 3단계 UI / Claude AI 버튼 =====
   ============================================================ */

.edit-section-title {
    margin: 28px 0 16px;
    color: #1A2E3D;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid #DAedf7;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.edit-section-title:first-of-type { margin-top: 0; }
.edit-section-title .ai-hint {
    font-size: 12px;
    color: #6B46C1;
    font-weight: 500;
    background: #F5F0FF;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #E5DBFF;
}

/* Claude AI 버튼 (보라색 그라데이션) */
.btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #6B46C1 0%, #805AD5 100%);
    color: white !important;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(107, 70, 193, 0.3);
}
.btn-ai:hover:not(:disabled) {
    background: linear-gradient(135deg, #553C9A 0%, #6B46C1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(107, 70, 193, 0.4);
}
.btn-ai:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

@media (max-width: 768px) {
    .edit-section-title {
        flex-direction: column;
        align-items: flex-start;
    }
    .edit-section-title .ai-hint {
        font-size: 11px;
    }
    .card-header > div {
        flex-wrap: wrap;
    }
    .btn-ai {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .card-header h3 { font-size: 14px; }
    .more-btn { font-size: 12px; padding: 4px 10px; }
    .info-label { width: 70px; }

    .sermon-title { font-size: 17px; }
    .member-avatar { width: 42px; height: 42px; font-size: 17px; }

    .finance-row { flex-direction: column; align-items: stretch; }
    .finance-amount { font-size: 20px; text-align: right; }

    .pagination { gap: 4px; }
    .page-btn { padding: 7px 10px; font-size: 12px; min-width: 32px; }

    .kiosk-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kiosk-modal-content { padding: 28px 20px; }
    .modal-icon { font-size: 48px; }
    .kiosk-modal-content h2 { font-size: 20px; }
}


/* 수정 버튼 (재정 목록) */
.btn-edit {
    width: 36px; height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}
.btn-edit:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* 삭제 버튼 (수정 페이지) */
.btn-danger {
    background: #fff5f5 !important;
    color: #c53030 !important;
    border: 1px solid #feb2b2;
}
.btn-danger:hover {
    background: #fed7d7 !important;
    color: #9b2c2c !important;
}

/* ============================================================
   ===== 기부금 영수증 (Receipt) =====
   ============================================================ */
.receipt-paper {
    background: white;
    max-width: 210mm;
    margin: 0 auto;
    padding: 28mm 22mm;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    color: #1A2E3D;
    font-family: 'Malgun Gothic', '맑은 고딕', 'Noto Serif KR', serif;
    line-height: 1.6;
}

/* 영수증 헤더 */
.receipt-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px double #0B3D6B;
    margin-bottom: 24px;
}
.receipt-tag {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #4FA8D8;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.receipt-title {
    font-size: 28px;
    font-weight: 700;
    color: #0B3D6B;
    letter-spacing: 0.5em;
    margin: 8px 0 6px;
}
.receipt-year {
    font-size: 14px;
    color: #3A5268;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* 섹션 */
.receipt-section { margin-bottom: 22px; }
.receipt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0B3D6B;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #DAE9F7;
}

/* 표 */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.receipt-table th, .receipt-table td {
    border: 1px solid #C8E4F0;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}
.receipt-table th {
    background: #F0F9FF;
    color: #0B3D6B;
    font-weight: 600;
    width: 100px;
    font-size: 12px;
}
.receipt-table .text-right { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-table .text-center { text-align: center; }
.receipt-table .text-large { font-size: 15px; font-weight: 600; }
.receipt-table .muted-cell { color: #6B7A8D; font-size: 12px; }

/* 합계 행 */
.receipt-summary-table thead th { background: #1A6FA8; color: white; }
.receipt-detail-table thead th { background: #F0F9FF; }
.receipt-total-row {
    background: #FFF8E1;
    font-size: 14px;
}
.receipt-total-row td { border-top: 2px solid #0B3D6B; padding: 10px 12px; }

/* 한글 금액 박스 */
.receipt-amount-box {
    background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 100%);
    border: 2px solid #0B3D6B;
    border-radius: 8px;
    padding: 16px 22px;
    text-align: center;
    margin: 20px 0;
}
.receipt-amount-box .amount-label {
    font-size: 11px;
    color: #4FA8D8;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}
.receipt-amount-box .amount-korean {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0B3D6B;
    letter-spacing: 0.05em;
}

/* 확인 문구 */
.receipt-statement {
    text-align: center;
    margin: 28px 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1A2E3D;
    letter-spacing: 0.05em;
}

/* 발급 정보 + 도장 */
.receipt-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #DAE9F7;
}
.receipt-issue-date {
    font-size: 14px;
    color: #1A2E3D;
    margin-bottom: 16px;
    font-weight: 500;
}
.receipt-stamp-area {
    display: inline-block;
    text-align: center;
}
.receipt-org-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0B3D6B;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.receipt-rep-line {
    font-size: 14px;
    color: #1A2E3D;
}
.stamp-circle {
    display: inline-block;
    margin-left: 12px;
    width: 50px; height: 50px;
    border: 2px solid #c53030;
    border-radius: 50%;
    color: #c53030;
    font-size: 12px;
    line-height: 46px;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
}

/* 안내문 */
.receipt-notice {
    margin-top: 22px;
    padding: 12px 16px;
    background: #FFFAF0;
    border-left: 3px solid #ED8936;
    font-size: 11px;
    color: #7B341E;
    line-height: 1.7;
    border-radius: 4px;
}

/* ============================================================
   ===== @media print: 인쇄 최적화 =====
   ============================================================ */
@media print {
    /* 페이지 설정 */
    @page {
        size: A4;
        margin: 12mm;
    }

    /* 인쇄 시 숨김 */
    .topbar,
    .sidebar,
    .sidebar-overlay,
    .menu-toggle,
    .page-header,
    .no-print,
    .float-bar,
    .more-btn,
    .btn-edit,
    .btn,
    .btn-link,
    .btn-kakao,
    .filter-row,
    .pagination,
    .pagination-info,
    .quick-actions,
    nav { display: none !important; }

    /* 본문을 A4 전체로 */
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    .content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* 영수증 인쇄용 - 그림자 제거, 색상 보존 */
    .receipt-paper {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .receipt-section {
        page-break-inside: avoid;
    }

    .receipt-table th,
    .receipt-amount-box,
    .receipt-summary-table thead th,
    .receipt-total-row,
    .stamp-circle {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 링크 밑줄 제거 */
    a { text-decoration: none !important; color: inherit !important; }

    /* 카드 그림자 제거 */
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* 페이지 분할 */
    .receipt-detail-table { page-break-inside: auto; }
    .receipt-detail-table tr { page-break-inside: avoid; page-break-after: auto; }
    .receipt-detail-table thead { display: table-header-group; }
    .receipt-detail-table tfoot { display: table-row-group; }
}

/* 영수증 화면 표시 시 mobile 대응 */
@media (max-width: 768px) {
    .receipt-paper {
        padding: 18mm 12mm;
        font-size: 12px;
    }
    .receipt-title { font-size: 22px; letter-spacing: 0.3em; }
    .receipt-table { font-size: 11px; }
    .receipt-table th { width: 80px; padding: 6px 8px; }
    .receipt-table td { padding: 6px 8px; }
    .receipt-amount-box .amount-korean { font-size: 16px; }
    .stamp-circle { width: 42px; height: 42px; line-height: 38px; font-size: 10px; }
}

/* ============================================================
   ===== v3.2 신규: 통합 검색 / 자동완성 / 다크모드 / PWA / 토요일 배너 =====
   ============================================================ */

/* ===== 통합 검색바 (topbar) ===== */
.topbar-search {
    flex: 1;
    max-width: 420px;
    margin: 0 16px;
    position: relative;
}
.topbar-search-input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}
.topbar-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* 사이드바 검색 (PC + 모바일 공통) */
.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: block;
    position: relative;
}

/* ===== 자동완성 드롭다운 ===== */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}
.autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--primary-soft);
}
.autocomplete-item .ac-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px; text-align: center;
}
.autocomplete-item .ac-content {
    flex: 1;
    min-width: 0;
}
.autocomplete-item .ac-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-item .ac-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    margin-right: 4px;
    letter-spacing: 0.3px;
}
.autocomplete-item .ac-detail {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 다크 모드 토글 버튼 (v3.4.14: 배경 없이 아이콘만) ===== */
.theme-toggle {
    background: transparent;
    border: none;
    width: 38px; height: 38px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;  /* 우측 끝으로 밀어서 CIMS 텍스트와 분리 */
    padding: 0;
    transition: transform 0.2s;
}
.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    background: transparent;
}
/* v3.4.13: 테마 아이콘은 JavaScript로 동적 변경 */

/* ===== 토요일 콘티 알림 배너 ===== */
.saturday-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    border-left: 5px solid;
    animation: bannerSlideIn 0.5s ease;
}
@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.saturday-banner.banner-info {
    background: var(--info-soft);
    border-left-color: var(--info);
    color: var(--text);
}
.saturday-banner.banner-warning {
    background: var(--warning-soft);
    border-left-color: var(--warning);
    color: var(--text);
}
.banner-icon {
    font-size: 36px;
    flex-shrink: 0;
}
.banner-content {
    flex: 1;
    min-width: 200px;
}
.banner-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.banner-content p {
    font-size: 13px;
    color: var(--text-muted);
}
.banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== 카카오 버튼 (토요일 배너용) ===== */
.btn-kakao-banner,
.btn-kakao {
    background: var(--kakao-yellow) !important;
    color: var(--kakao-text) !important;
    border: 1px solid #f0d000 !important;
}
.btn-kakao-banner:hover,
.btn-kakao:hover {
    background: #ffd900 !important;
}

/* ===== 상태 뱃지 (관리자 카드용) ===== */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}
.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
[data-theme="dark"] .status-active { background: #1a3826; color: #9ae6b4; border-color: #2d5a3d; }
[data-theme="dark"] .status-inactive { background: #3a1a1a; color: #fc8181; border-color: #5a2d2d; }

/* ===== PWA 설치 배너: 제거됨 (v3.4) ===== */

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
    .theme-toggle {
        width: 34px; height: 34px;
        font-size: 14px;
    }
    .saturday-banner {
        padding: 14px 16px;
        gap: 12px;
    }
    .banner-icon {
        font-size: 28px;
    }
    .banner-content strong {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .autocomplete-item .ac-detail {
        display: none;
    }
}

/* ===== 인쇄 시 검색바/토글 숨김 ===== */
@media print {
    .sidebar-search,
    .theme-toggle,
    .saturday-banner { display: none !important; }
}

/* ============================================================
   ===== v3.3: claude.ai 워크플로우 - 모달 + 새 버튼 스타일 =====
   ============================================================ */

/* AI 결과 붙여넣기 버튼 (보라색 계열, AI 버튼과 짝) */
.btn-ai-paste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #38b2ac 0%, #4fd1c5 100%);
    color: white !important;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.3);
}
.btn-ai-paste:hover {
    background: linear-gradient(135deg, #2c9590 0%, #38b2ac 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(56, 178, 172, 0.4);
}

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 30, 46, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.modal-overlay.open {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.25s ease;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}
.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}
.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 240px;
    background: var(--bg);
    color: var(--text);
}
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: var(--card-bg);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .modal-content { max-height: 95vh; }
    .modal-body textarea { min-height: 200px; font-size: 12px; }
    .btn-ai-paste { font-size: 12px; padding: 8px 12px; }

}

/* ============================================================
   ===== v3.4: 대시보드 위젯 (전면 재설계) =====
   ============================================================ */

/* 2단 그리드 */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .dashboard-grid-2col { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== 100주제 위젯 (재설계: 원형 차트 Hero) ===== */
.series-card .card-body {
    padding: 20px;
}

.series-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

/* 원형 진행률 SVG */
.series-ring {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    position: relative;
}
.ring-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.ring-bg {
    stroke: var(--border);
    opacity: 0.3;
}
.ring-fg {
    stroke: url(#ring-gradient);
    transition: stroke-dasharray 1s cubic-bezier(0.4, 0, 0.2, 1);
}
/* SVG에서 url() 그라디언트 대신 직접 색상 사용 (호환성) */
.ring-fg {
    stroke: #1A6FA8;
}
.ring-num {
    font-size: 32px;
    font-weight: 700;
    fill: var(--text);
    font-family: inherit;
}
.ring-suffix {
    font-size: 11px;
    fill: var(--text-muted);
    font-family: inherit;
    font-weight: 500;
}

/* Hero 우측 안내 */
.series-info {
    flex: 1;
    min-width: 0;
}
.series-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.status-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.next-week {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.series-status p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}
.series-status.complete {
    align-items: flex-start;
}
.series-status.complete .status-emoji {
    font-size: 28px;
}
.series-status.complete strong {
    color: #92400e;
    font-size: 18px;
}

/* 최근 등록 카드 (개선된 디자인) */
.series-recent-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.series-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.series-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.series-card-item:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateX(2px);
}
.series-week-badge {
    background: linear-gradient(135deg, #1A6FA8 0%, #0B3D6B 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(11, 61, 107, 0.2);
}
.series-card-content {
    flex: 1;
    min-width: 0;
}
.series-card-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.series-card-verse {
    color: var(--text-muted);
    font-size: 12px;
}
.series-card-arrow {
    color: var(--text-muted);
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.series-card-item:hover .series-card-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* ===== 사역 한눈에 위젯 ===== */
.overview-card .card-body {
    padding: 20px;
}

/* KPI 그리드 */
.overview-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
.kpi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.kpi-item:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.kpi-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.kpi-content {
    flex: 1;
    min-width: 0;
}
.kpi-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}
.kpi-delta {
    font-size: 10px;
    margin-top: 4px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.kpi-delta.positive {
    background: #dcfce7;
    color: #15803d;
}
.kpi-delta.neutral {
    background: var(--border);
    color: var(--text-muted);
}
[data-theme="dark"] .kpi-delta.positive {
    background: #14532d;
    color: #86efac;
}

/* 직분 분포 */
.overview-section-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.role-dist {
    margin-bottom: 22px;
}
.role-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.role-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.role-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.role-name {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.role-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.role-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}
.role-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4FA8D8 0%, #1A6FA8 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 빠른 액션 */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.quick-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.quick-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}
.quick-btn span {
    font-size: 14px;
}

/* 새가족 리스트 (기존 유지) */
.newcomer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.newcomer-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.newcomer-list li:last-child { border-bottom: none; }
.newcomer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.newcomer-info strong {
    color: var(--text);
    font-size: 14px;
}
.newcomer-tag {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.newcomer-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
}
.empty-state p { margin: 4px 0; }

/* 반응형 */
@media (max-width: 768px) {
    .series-hero {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .series-ring { width: 110px; height: 110px; }
    .ring-num { font-size: 28px; }
    .next-week { font-size: 24px; }
    .overview-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kpi-item { padding: 10px; gap: 8px; }
    .kpi-icon { font-size: 22px; }
    .kpi-value { font-size: 18px; }
}

/* CSS 균형 보정 */
}
