/* schedule.do 전용 — 기존 siiru 일정(schdul) 스타일 보완 */
.schedule-page {
	margin-top: 8px;
	font-size: 16px;
	line-height: 1.5;
}

/* 툴바 */
.schedule-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e8eaed;
}
.schedule-toolbar-primary {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px 12px;
	flex: 1 1 auto;
	min-width: 0;
}
.schedule-view-tabs {
	display: inline-flex;
	flex-shrink: 0;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f6f8;
}
.schedule-view-btn {
	border: 0;
	background: transparent;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #5f6577;
	cursor: pointer;
	white-space: nowrap;
}
.schedule-view-btn.is-active {
	background: #fff;
	color: #1a1d26;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.schedule-ctgry-label {
	font-size: 14px;
	color: #5f6577;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}
.schedule-ctgry-select {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 200px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
}
.schedule-month-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
	flex-shrink: 0;
}
.schedule-page .schdul-year {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1d26;
}

/* 달력 */
.schedule-calendar-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0 12px;
	text-align: center;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #5f6878;
}
.schedule-calendar-hint i {
	flex-shrink: 0;
	font-size: 16px;
	color: #5f6878;
}
.schedule-page #calendarTable {
	font-size: 15px;
}
.schedule-page #calendarTable thead th {
	font-size: 15px;
	font-weight: 600;
	padding: 10px 4px;
}
.schedule-page #calendarTable tbody td {
	font-size: 15px;
	line-height: 1.45;
}
.schedule-page #calendarTable tbody td a {
	font-size: 14px;
}
.schedule-page #calendarTable tbody td span {
	font-size: 15px;
}

/* 목록 */
.schedule-panel[hidden] {
	display: none !important;
}
.schedule-panel.is-active {
	display: block;
}
.schedule-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.schedule-list-item {
	border: 1px solid #e8eaed;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #fff;
}
.schedule-list-item button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
.schedule-list-item button:hover {
	background: #f8f9fb;
}
.schedule-list-date {
	display: block;
	font-size: 15px;
	color: #6b7280;
	margin-bottom: 6px;
}
.schedule-list-title {
	display: block;
	font-size: 17px;
	font-weight: 600;
	color: #1a1d26;
}
.schedule-list-meta {
	display: block;
	font-size: 15px;
	color: #5f6577;
	margin-top: 6px;
}
.schedule-list-empty {
	font-size: 16px;
	color: #6b7280;
	padding: 28px 0;
	text-align: center;
}

/* 하단 상세 · 달력 하단 예정 일정 */
.schedule-detail {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 2px solid #e8eaed;
	font-size: 16px;
}
.schedule-detail:empty {
	display: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.schedule-detail .detailDate {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 18px;
	color: #1a1d26;
}
.schedule-page .schedule-detail .detail-block,
.schedule-page .schedule-upcoming .detail-block {
	font-size: 16px;
	line-height: 1.55;
}
.schedule-page .schedule-detail .detail-block > span,
.schedule-page .schedule-upcoming .detail-block > span {
	font-size: 17px;
	font-weight: 600;
}
.schedule-page .schedule-detail .detail-block dl,
.schedule-page .schedule-upcoming .detail-block dl {
	font-size: 16px;
	margin-top: 10px;
}
.schedule-page .schedule-detail .detail-block dt,
.schedule-page .schedule-upcoming .detail-block dt {
	font-size: 15px;
	font-weight: 600;
}
.schedule-page .schedule-detail .detail-block dd,
.schedule-page .schedule-upcoming .detail-block dd {
	font-size: 16px;
}
.schedule-page .schedule-detail .detail-block .result-well,
.schedule-page .schedule-upcoming .detail-block .result-well {
	font-size: 15px;
	line-height: 1.6;
}
.schedule-page .schedule-detail .detail-block ul,
.schedule-page .schedule-upcoming .detail-block ul {
	font-size: 15px;
}
.schedule-upcoming {
	margin-top: 18px;
}
.schedule-loading-row td,
.schedule-loading-msg {
	text-align: center;
	color: #6b7280;
	font-size: 15px;
	padding: 28px 12px !important;
}
.schedule-page.is-busy .schedule-month-nav a {
	pointer-events: none;
	opacity: 0.45;
}

/* 데스크탑: 월 네비 우측 */
@media (min-width: 768px) {
	.schedule-toolbar-primary {
		flex: 0 1 auto;
	}
	.schedule-month-nav {
		margin-left: auto;
	}
}

/* 모바일: 달력·목록·카테고리 한 줄, 월 표시는 다음 줄 가운데 */
@media (max-width: 767px) {
	.schedule-toolbar {
		gap: 10px;
	}
	.schedule-toolbar-primary {
		width: 100%;
		flex: 1 1 100%;
		flex-wrap: nowrap;
		gap: 6px 8px;
	}
	.schedule-ctgry-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
	.schedule-view-btn {
		padding: 9px 14px;
		font-size: 14px;
	}
	.schedule-ctgry-select {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		height: 40px;
		font-size: 14px;
	}
	.schedule-month-nav {
		width: 100%;
		flex: 1 1 100%;
		margin-left: 0;
		justify-content: center;
	}
	.schedule-page .schdul-year {
		font-size: 1.4rem;
		text-align: center;
		flex: 1;
	}
	.schedule-calendar-hint {
		margin-bottom: 12px;
		font-size: 14px;
		gap: 6px;
	}
	.schedule-calendar-hint i {
		font-size: 15px;
	}
	.schedule-page #calendarTable thead th,
	.schedule-page #calendarTable tbody td {
		font-size: 14px;
	}
}

/* 로딩 — 달력 골격 위 연한 오버레이 */
.schedule-body {
	position: relative;
	min-height: 280px;
}
.schedule-body.is-loading .schedule-body-content {
	pointer-events: none;
	user-select: none;
}
.schedule-loading-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(1px);
}
.schedule-loading-overlay[hidden] {
	display: none !important;
}
.schedule-loading-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.schedule-spinner {
	display: block;
	width: 22px;
	height: 22px;
	border: 2px solid #c5cad3;
	border-top-color: #5f6878;
	border-radius: 50%;
	animation: schedule-spinner-spin 0.85s linear infinite;
}
.schedule-loading-text {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #5f6878;
}
.schedule-calendar-skeleton td {
	min-height: 52px;
	vertical-align: top;
}
.schedule-list-skeleton {
	list-style: none;
	margin: 0;
	padding: 0;
}
.schedule-list-skeleton-item {
	border: 1px solid #e8eaed;
	border-radius: 8px;
	margin-bottom: 12px;
	padding: 16px 18px;
	background: #fff;
}
.schedule-list-skeleton-item span {
	display: block;
	height: 12px;
	border-radius: 4px;
	background: #eef0f3;
}
.schedule-list-skeleton-item span + span {
	width: 55%;
	margin-top: 10px;
	height: 10px;
}
@keyframes schedule-spinner-spin {
	to {
		transform: rotate(360deg);
	}
}
