/**
 * Student report layout (modal preview).
 * PDF styles: template/student-report-pdf.css
 * Root: .student-report
 */

/* Chinese font support for modal preview (mirrors template/pdf.css) */
@font-face {
	font-family: 'Noto Sans SC';
	src: url('../fonts/noto-sans-sc/NotoSansSC-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Noto Sans SC';
	src: url('../fonts/noto-sans-sc/NotoSansSC-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

.student-report-lang-zh,
.student-report-lang-zh .student-report {
	font-family: 'Noto Sans SC', sans-serif;
}

.student-report-muted {
	color: #6c757d;
}

/* Meta header bar */
.student-report-meta-bar {
	width: 100%;
	margin: 2rem 0;
	border-collapse: collapse;
	border-spacing: 0;
}
.student-report-meta-bar td {
	padding: 0.25rem 1.5rem 0.25rem 0;
	vertical-align: top;
}
.student-report-meta-label {
	font-weight: 700;
	color: #6c757d;
	white-space: nowrap;
}
.student-report-meta-label .fa {
	color: #6c757d;
	font-size: 0.9rem;
	margin-right: 0.25rem;
}
.student-report-meta-value {
	font-weight: 600;
	color: #212529;
}

/* Section panels */
.student-report-panel {
	margin-bottom: 1rem;
	border: 1px solid #d8dee6;
	border-radius: 0.25rem;
	overflow: hidden;
}
.student-report-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem 0.85rem;
	background: #3c495e;
	color: #fff;
}
.student-report-panel-title {
	font-weight: 600;
	text-transform: uppercase;
}
.student-report-panel-subtitle {
	font-style: italic;
	font-weight: 400;
	opacity: 0.9;
}
.student-report-panel-body {
	padding: 0.85rem 1rem;
	background: #fff;
}

/* Summary metrics row */
.student-report-metrics-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.student-report-metric-card {
	flex: 1 1 160px;
	min-width: 140px;
	padding: 0.65rem 0.75rem;
	border: 1px solid #e2e6ea;
	border-radius: 0.25rem;
	background: #fafbfc;
}
.student-report-metric-attendance {
	margin: 0 0 0 0;
}
.student-report-metric-label {
	font-size: 0.68rem;
	font-weight: 700;
	color: #6c757d;
	margin-bottom: 0.35rem;
}
.student-report-attendance-percent {
	font-size: 1.35rem;
	font-weight: 700;
	color: #212529;
}
.student-report-attendance-percent.is-attendance-healthy {
	color: #28a745;
}
.student-report-attendance-percent.is-attendance-fair {
	color: #d39e00;
}
.student-report-attendance-percent.is-attendance-needs-attention {
	color: #dc3545;
}
.student-report-trend-value {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.35rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: #212529;
}
.student-report-trend-text {
	line-height: 1.25;
}
.student-report-trend-icon {
	display: inline-block;
	width: 1.8rem;
	height: 1.8rem;
	flex-shrink: 0;
	vertical-align: middle;
}
.student-report-trend-icon.is-improving {
	color: #28a745;
}
.student-report-trend-icon.is-needs-attention {
	color: #dc3545;
}

/* LIFE dimension rows — label | description */
.student-report-dimensions-table {
	width: 100%;
	border-collapse: collapse;
}
.student-report-dimension-row {
	border-top: 1px solid #e9ecef;
}
.student-report-dimension-row:first-child {
	border-top: 0;
}
.student-report-dimension-row td {
	padding: 0.65rem 0.35rem;
	vertical-align: middle;
}
.student-report-dimension-label {
	width: 30%;
	font-size: 0.9rem;
	font-weight: 700;
	color: #212529;
	text-align: left;
}
.student-report-dimension-title {
	font-weight: 700;
}
.student-report-dimension-description-col {
	width: 70%;
}
.student-report-dimension-description {
	margin: 0;
	font-size: 0.85rem;
	color: #495057;
}

/* Extra small devices (phones, less than 768px); exclude PDF (Dompdf matches this breakpoint) */
@media (max-width: 767px) {
	body:not(.student-report-pdf) .student-report-dimensions-table,
	body:not(.student-report-pdf) .student-report-dimensions-table tbody,
	body:not(.student-report-pdf) .student-report-dimension-row,
	body:not(.student-report-pdf) .student-report-dimension-row td {
		display: block;
		width: 100%;
	}
	body:not(.student-report-pdf) .student-report-dimension-row td {
		padding: 0.35rem 0;
	}
	body:not(.student-report-pdf) .student-report-dimension-description {
		padding-left: 0;
		border-left: 0;
	}
}

/* Topics covered */
.student-report-curriculum-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid #e9ecef;
}
.student-report-curriculum-item:last-child {
	border-bottom: 0;
}
.student-report-curriculum-topic {
	font-size: 0.9rem;
	font-weight: 600;
	color: #212529;
}
.student-report-curriculum-status {
	flex: 0 1 55%;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.35;
	text-align: right;
	color: #495057;
}
.student-report-curriculum-status.is-completed {
	color: #28a745;
}

/* Progress summary (modal read-only preview) */
.student-report-progress-summary {
	font-size: 0.9rem;
	color: #212529;
	line-height: 1.5;
}

/* Progress summary editor (modal) */
.student-report-summary-section .wp-editor-wrap {
	margin-top: 0.25rem;
}