/* shared/event-calendar.css - 일정 캘린더 (shared/event-calendar.js) - 신학원 calendar.html · 선교회 홈 성경강연회 강연회 일정 */
.evc { --evc-seminar: var(--brand-600, #1570cc); --evc-retreat: #0f9d76; --evc-training: #e0782a; --evc-other: #7b5cd6;
    display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; font-size: 15px; }
.evc .k-seminar { --k: var(--evc-seminar); }
.evc .k-retreat { --k: var(--evc-retreat); }
.evc .k-training { --k: var(--evc-training); }
.evc .k-other { --k: var(--evc-other); }

.evc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.evc-nav { display: flex; align-items: center; gap: 8px; }
.evc-nav h3 { margin: 0 6px; min-width: 150px; text-align: center; font-size: 22px; font-weight: 900; color: var(--lw-navy, #0b3d73); }
.evc-nav button { width: 40px; height: 40px; border: 1px solid #d6dfeb; border-radius: 12px; background: #fff; font-size: 22px; line-height: 1; color: var(--lw-navy, #0b3d73); cursor: pointer; }
.evc-nav .evc-today { width: auto; padding: 0 14px; font-size: 14px; font-weight: 800; }
.evc-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.evc-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.evc-filter button { padding: 7px 13px; border: 1px solid #d6dfeb; border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 800; color: #344054; cursor: pointer; }
.evc-filter button[class*="k-"]::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--k); }
.evc-filter button.is-on { border-color: transparent; background: var(--lw-navy, #0b3d73); color: #fff; }
.evc-add { padding: 10px 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand-600, #1570cc), var(--lw-sky, #4aa3ee)); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; }

.evc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e1e8f2; border-radius: 16px; overflow: hidden; background: #e1e8f2; gap: 1px; }
.evc-dow { padding: 10px 4px; background: #f4f7fc; text-align: center; font-size: 13px; font-weight: 900; color: #475467; }
.evc-dow.is-sun, .evc-day.is-sun .evc-num { color: #d92d20; }
.evc-day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 104px; padding: 6px; border: 0; background: #fff; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.evc-day:hover { background: var(--lw-tint-50, #f7faff); }
.evc-day.is-out { background: #fafbfd; }
.evc-day.is-out .evc-num { color: #b8c2d0; }
.evc-num { align-self: flex-start; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 800; color: #101828; }
.evc-day.is-today .evc-num { background: var(--brand-600, #1570cc); color: #fff; }
.evc-day.is-picked { box-shadow: inset 0 0 0 2px var(--brand-600, #1570cc); }
.evc-bars { display: grid; gap: 3px; min-width: 0; }
.evc-bars i { display: block; padding: 2px 6px; border-radius: 6px; background: var(--k); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evc-bars i { cursor: pointer; }
.evc-bars i:hover { filter: brightness(0.92); }
.evc-bars em { font-size: 12.5px; font-style: normal; font-weight: 800; color: #667085; }
.evc-dots { display: none; gap: 3px; justify-content: center; }
.evc-dots b { width: 7px; height: 7px; border-radius: 50%; background: var(--k); }

.evc-below { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.evc-panel { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e1e8f2; min-width: 0; }
.evc-panel h4 { margin: 0 0 10px; font-size: 16px; font-weight: 900; color: var(--lw-navy, #0b3d73); }
.evc-empty { margin: 0; font-size: 14px; color: #667085; }
.evc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.evc-list li { border-radius: 12px; }
.evc-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; cursor: pointer; }
.evc-item:hover { background: #f4f7fc; }
.evc-date { flex-shrink: 0; width: 52px; padding: 6px 0; border-radius: 12px; background: var(--k); color: #fff; display: grid; text-align: center; line-height: 1.1; }
.evc-date b { font-size: 20px; }
.evc-date small { font-size: 12.5px; text-transform: uppercase; opacity: 0.9; }
.evc-item-text { display: grid; gap: 3px; min-width: 0; }
.evc-item-text > b { font-size: 15.5px; color: #101828; overflow-wrap: anywhere; }
.evc-item-text small { font-size: 12.5px; color: #667085; }
.evc-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--k); color: #fff; font-size: 12px; font-weight: 800; }
.evc-tag.is-plan { background: #475569; }
.evc-plan-note { margin: 0; color: #64748b; font-size: 13px; }
.evc-actions { display: flex; gap: 6px; }
.evc-actions button { padding: 6px 12px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.evc-actions .is-danger { color: #b42318; border-color: #fecdca; }

.evc-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, 0.45); }
.evc-modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4); }
.evc-modal-box h3 { margin: 0; font-size: 20px; color: var(--lw-navy, #0b3d73); }
.evc-modal-box label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 800; color: #344054; }
.evc-modal-box input, .evc-modal-box select, .evc-modal-box textarea { padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 400; }
.evc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.evc-modal-foot button { padding: 10px 18px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.evc-modal-foot .is-primary { border-color: transparent; background: var(--brand-600, #1570cc); color: #fff; }

/* 달력 색 · 반복 (149번 SQL) - 교회 일정 창과 같은 모양. 색을 고르면 종류의 색(--k) 대신 그 색 */
.evc .evc-c-blue, .evc-modal .evc-c-blue { --k: #2563eb; }
.evc .evc-c-green, .evc-modal .evc-c-green { --k: #16a34a; }
.evc .evc-c-yellow, .evc-modal .evc-c-yellow { --k: #ca8a04; }
.evc .evc-c-orange, .evc-modal .evc-c-orange { --k: #ea580c; }
.evc .evc-c-red, .evc-modal .evc-c-red { --k: #dc2626; }
.evc .evc-c-pink, .evc-modal .evc-c-pink { --k: #db2777; }
.evc .evc-c-purple, .evc-modal .evc-c-purple { --k: #7c3aed; }
.evc .evc-c-gray, .evc-modal .evc-c-gray { --k: #6b7280; }
.evc-bars i small { font-size: 11px; font-weight: 800; opacity: 0.9; }
.evc-rep-line { color: #5b21b6; font-weight: 700; }
.evc-rep-line.is-one { color: #92400e; }
.evc-modal-box input[type="date"], .evc-modal-box input[type="time"], .evc-modal-box input.dp-date, .evc-modal-box input.tp-time, .evc-modal-box select { width: 100%; box-sizing: border-box; min-height: 44px; }
.evc-rep-days, .evc-colors { display: grid; gap: 5px; font-size: 13.5px; font-weight: 800; color: #344054; }
.evc-rep-days[hidden], .evc-modal-box .evc-rep-until[hidden] { display: none; }
.evc-wd, .evc-color-list { display: flex; flex-wrap: wrap; gap: 6px; }
.evc-modal-box .evc-wd label { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 40px; padding: 4px 10px; border: 2px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; font-size: 14px; cursor: pointer; }
.evc-modal-box .evc-wd label.is-on { border-color: var(--brand-600, #1570cc); background: var(--lw-tint-100, #eaf3fd); color: var(--lw-navy, #0b3d73); }
.evc-modal-box .evc-color { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 4px 10px; border: 2px solid #e2e8f0; border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.evc-modal-box .evc-color.is-on { border-color: var(--brand-600, #1570cc); background: var(--lw-tint-50, #f3f8ff); }
.evc-modal-box .evc-wd input, .evc-modal-box .evc-color input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.evc-color small { font-size: 13px; color: #334155; }
.evc-dot { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 50%; background: var(--k, #94a3b8); }
.evc-dot.is-none { background: var(--lw-tint-100, #eaf3fd); box-shadow: inset 0 0 0 1.5px #9db8d6; }
.evc-scope > button { min-height: 46px; padding: 8px 14px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: #1d2939; cursor: pointer; }

/* 일정 내용 창 (showEvent) - 달력 칸 · 목록의 일정을 누르면 */
.evc-view { --evc-seminar: var(--brand-600, #1570cc); --evc-retreat: #0f9d76; --evc-training: #e0782a; --evc-other: #7b5cd6; width: min(520px, 100%); font-size: 15.5px; line-height: 1.6; color: #344054; }
.evc-view .k-seminar { --k: var(--evc-seminar); }
.evc-view .k-retreat { --k: var(--evc-retreat); }
.evc-view .k-training { --k: var(--evc-training); }
.evc-view .k-other { --k: var(--evc-other); }
.evc-view p { margin: 0; overflow-wrap: anywhere; }
.evc-view h3 { overflow-wrap: anywhere; }
.evc-view-sub { margin-top: -8px !important; color: #667085; }
.evc-view-note { padding: 12px 14px; border-radius: 12px; background: #f6f8fb; white-space: normal; }
.evc-view .evc-modal-foot { flex-wrap: wrap; margin-top: 4px; }
.evc-modal-foot .is-danger { margin-right: auto; color: #b42318; border-color: #fecdca; }
