/* ==========================================================================
   MODULE: components/report-preview (.wzs-report-preview)
   구독 고객이 매일 아침 받는 업무보고서의 웹 데모 섹션. 히어로 페이지 신뢰 섹션에서 사용.
   구조: 진행 중인 프로젝트 목록 → 대표 건 상세(타임라인+오늘 한 일+다음 단계) → 비용 → 고객 액션 요청
   추후 실제 구독자 발송 기능(inc/daily-report.php, 미구현)에서도 같은 컴포넌트를 재사용할 예정.
   ========================================================================== */

.wzs-report-preview {
	padding: var(--wzs-space-5);
	background: var(--wzs-white);
	border: 1px solid var(--wzs-border);
	border-radius: var(--wzs-radius-lg);
	box-shadow: var(--wzs-shadow-sm);
}

.wzs-report-preview-head h3 {
	margin-top: var(--wzs-space-2);
}

.wzs-report-preview-desc {
	margin-top: var(--wzs-space-1);
	font-size: var(--wzs-fs-sm);
	color: var(--wzs-ink-muted);
}

.wzs-report-doc {
	margin-top: var(--wzs-space-5);
	padding-top: var(--wzs-space-5);
	border-top: 1px dashed var(--wzs-border);
	display: flex;
	flex-direction: column;
	gap: var(--wzs-space-5);
}

/* "8월 21일 (금) 업무보고" — 숫자+한글 혼용이므로 디스플레이 서체를 쓰지 않는다 */
.wzs-report-doc-date {
	font-weight: 700;
	color: var(--wzs-ink);
	font-variant-numeric: tabular-nums;
}

.wzs-report-module {
	display: flex;
	flex-direction: column;
	gap: var(--wzs-space-3);
}

.wzs-report-featured-name {
	color: var(--wzs-ink-muted);
	font-weight: 500;
}

/* --- 진행 중인 프로젝트 목록 --- */
.wzs-report-projects {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wzs-space-3);
}

.wzs-report-project {
	padding: var(--wzs-space-3);
	background: var(--wzs-bg-alt);
	border: 1px solid transparent;
	border-radius: var(--wzs-radius-md);
	display: flex;
	flex-direction: column;
	gap: var(--wzs-space-1);
}

.wzs-report-project--featured {
	background: var(--wzs-white);
	border-color: var(--wzs-amber);
}

.wzs-report-project-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wzs-space-2);
}

.wzs-report-project-name {
	font-size: var(--wzs-fs-sm);
	font-weight: 700;
	color: var(--wzs-ink);
}

.wzs-report-project-pct {
	font-size: var(--wzs-fs-sm);
	font-weight: 700;
	color: var(--wzs-amber-ink);
	flex: none;
}

.wzs-report-project-stage {
	font-size: 12px;
	color: var(--wzs-ink-muted);
}

.wzs-progress-track {
	height: 6px;
	border-radius: 999px;
	background: var(--wzs-border);
	overflow: hidden;
}

.wzs-progress-fill {
	height: 100%;
	background: var(--wzs-amber);
	border-radius: 999px;
}

/* --- 대표 건 상세: 타임라인 + 오늘 한 일/다음 단계 --- */
.wzs-report-detail-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: var(--wzs-space-5);
}

/* 세로 타임라인 */
.wzs-timeline {
	display: flex;
	flex-direction: column;
}

.wzs-timeline-item {
	display: flex;
	gap: var(--wzs-space-3);
}

.wzs-timeline-rail {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wzs-timeline-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wzs-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wzs-white);
}

.wzs-timeline-dot svg {
	width: 12px;
	height: 12px;
}

.wzs-timeline-line {
	width: 2px;
	flex: 1;
	min-height: 28px;
	background: var(--wzs-border);
	margin: 2px 0;
}

.wzs-timeline-content {
	padding-bottom: var(--wzs-space-4);
}

.wzs-timeline-label {
	font-size: var(--wzs-fs-sm);
	font-weight: 700;
	color: var(--wzs-ink-muted);
}

.wzs-timeline-date {
	margin-top: 2px;
	font-size: 12px;
	color: var(--wzs-ink-muted);
}

.wzs-timeline-item--done .wzs-timeline-dot {
	background: var(--wzs-ink);
}

.wzs-timeline-item--done .wzs-timeline-line {
	background: var(--wzs-ink);
}

.wzs-timeline-item--done .wzs-timeline-label {
	color: var(--wzs-ink);
}

.wzs-timeline-item--current .wzs-timeline-dot {
	background: var(--wzs-amber);
	box-shadow: 0 0 0 4px var(--wzs-amber-soft);
}

.wzs-timeline-item--current .wzs-timeline-label {
	color: var(--wzs-ink);
}

.wzs-timeline-item--current .wzs-timeline-date {
	color: var(--wzs-amber-ink);
	font-weight: 600;
}

.wzs-timeline-item:last-child .wzs-timeline-content {
	padding-bottom: 0;
}

.wzs-timeline-item:last-child .wzs-timeline-date {
	color: var(--wzs-amber-ink);
	font-weight: 700;
}

/* 오늘 한 일 / 앞으로 업무 방향 */
.wzs-report-tasks {
	display: flex;
	flex-direction: column;
	gap: var(--wzs-space-4);
}

.wzs-report-task-title {
	font-size: var(--wzs-fs-sm);
	font-weight: 700;
	color: var(--wzs-ink-muted);
	margin-bottom: var(--wzs-space-2);
}

/* --- 비용 테이블: 소계 행 강조 --- */
.wzs-report-costs-total td {
	font-weight: 700;
	border-top: 2px solid var(--wzs-ink);
}

/* --- 고객 액션 요청 --- */
.wzs-report-action {
	padding: var(--wzs-space-4);
	background: var(--wzs-ink);
	border-radius: var(--wzs-radius-md);
	color: var(--wzs-white);
}

.wzs-report-action-headline {
	font-size: var(--wzs-fs-lg);
	font-weight: 700;
	color: var(--wzs-amber);
	margin-bottom: var(--wzs-space-2);
}

.wzs-report-action .wzs-list li {
	color: rgba(255, 255, 255, 0.85);
}

/* 다크 배경이라 기본 불릿(ink-muted)은 묻힌다. 앰버는 헤드라인에만 두고
   불릿은 중립적인 반투명 흰색으로 (variables.css 앰버 사용 규칙 참고) */
.wzs-report-action .wzs-list li::before {
	background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
	.wzs-report-projects {
		grid-template-columns: 1fr;
	}

	.wzs-report-detail-grid {
		grid-template-columns: 1fr;
	}
}
