/**
 * Standard result slip layout (Admission & PTS)
 * Print-friendly, clear sections, professional look.
 */
.result-slip {
	max-width: 720px;
	margin: 0 auto;
	padding: 28px 24px;
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #1a202c;
	background: #fff;
}
@media screen {
	.result-slip {
		box-shadow: 0 2px 12px rgba(0,0,0,0.08);
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		margin-top: 20px;
		margin-bottom: 20px;
	}
}
@media print {
	@page { size: A4; margin: 8mm; }
	body { margin: 0; padding: 0; background: #fff; }
	.result-slip {
		padding: 4px 10px 6px;
		font-size: 12px;
		line-height: 1.3;
		page-break-inside: avoid;
		page-break-after: avoid;
	}
	.result-slip__header {
		padding-bottom: 4px;
		margin-bottom: 6px;
		border-bottom-width: 2px;
	}
	.result-slip__logo { max-height: 44px; margin-bottom: 2px; }
	.result-slip__institution { font-size: 0.72rem; margin: 0 0 1px; }
	.result-slip__title { font-size: 0.85rem; margin: 0 0 1px; }
	.result-slip__session { font-size: 0.7rem; margin: 0; }
	.result-slip__section { margin-bottom: 5px; }
	.result-slip__section-title {
		font-size: 0.65rem;
		margin: 0 0 2px;
		padding-bottom: 2px;
	}
	.result-slip__table { font-size: 0.75rem; }
	.result-slip__table th,
	.result-slip__table td { padding: 2px 6px; }
	.result-slip__note {
		padding: 4px 8px;
		font-size: 0.72rem;
		line-height: 1.3;
		margin: 0;
	}
	.result-slip__qr-box {
		padding: 6px 8px;
		margin: 6px 0 4px;
	}
	.result-slip__qr-box img {
		width: 72px;
		height: 72px;
		margin-bottom: 2px;
	}
	.result-slip__qr-label { font-size: 0.68rem; margin: 0; }
	.result-slip__qr-hint { font-size: 0.6rem; margin: 0; display: none; }
	.result-slip__footer {
		margin-top: 4px;
		padding-top: 4px;
		font-size: 0.72rem;
		border-top-width: 1px;
	}
	.result-slip__footer p { margin: 0 0 2px; }
	.result-slip__actions { margin-top: 2px; font-size: 0.72rem; }
}

.result-slip__header {
	text-align: center;
	border-bottom: 3px solid #1e3a5f;
	padding-bottom: 20px;
	margin-bottom: 24px;
}
.result-slip__logo {
	max-height: 70px;
	max-width: 280px;
	display: block;
	margin: 0 auto 12px;
}
.result-slip__institution {
	font-size: 0.95rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 4px;
	letter-spacing: 0.02em;
}
.result-slip__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.result-slip__session {
	font-size: 0.9rem;
	color: #4a5568;
	margin: 0;
}

.result-slip__section {
	margin-bottom: 22px;
}
.result-slip__section-title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #2d3748;
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #cbd5e0;
}
.result-slip__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.result-slip__table th,
.result-slip__table td {
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	border: 1px solid #e2e8f0;
}
.result-slip__table th {
	width: 36%;
	background: #f7fafc;
	font-weight: 600;
	color: #4a5568;
}
.result-slip__table td {
	background: #fff;
	font-weight: 500;
}

.result-slip__note {
	padding: 14px 16px;
	background: #f0f9ff;
	border-left: 4px solid #1e3a5f;
	border-radius: 0 6px 6px 0;
	margin: 0;
	font-size: 0.95rem;
	color: #2d3748;
	line-height: 1.5;
}
.result-slip__note--warning {
	background: #fffbeb;
	border-left-color: #b45309;
}

.result-slip__qr-box {
	text-align: center;
	padding: 24px 20px;
	border: 2px solid #e2e8f0;
	background: #fafbfc;
	margin: 24px 0;
	border-radius: 8px;
}
.result-slip__qr-box img {
	display: block;
	margin: 0 auto 10px;
	width: 140px;
	height: 140px;
}
.result-slip__qr-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 2px;
}
.result-slip__qr-hint {
	font-size: 0.8rem;
	color: #718096;
	margin: 0;
}

.result-slip__footer {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
	text-align: center;
	font-size: 0.95rem;
	color: #4a5568;
	font-weight: 500;
}
.result-slip__actions {
	text-align: right;
	margin-top: 16px;
	font-size: 0.9rem;
}
.result-slip__actions a {
	color: #1e3a5f;
	text-decoration: none;
	font-weight: 600;
	margin-left: 16px;
}
.result-slip__actions a:hover {
	text-decoration: underline;
}
@media print {
	.no-print { display: none !important; }
}

/* Application slip personal details grid */
.slip-personal-grid {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.slip-photo {
	flex-shrink: 0;
	width: 130px;
}
.slip-photo img {
	width: 130px;
	height: 150px;
	object-fit: cover;
	border: 2px solid #e2e8f0;
	border-radius: 6px;
	display: block;
}
.slip-personal-info {
	flex: 1;
	min-width: 0;
}

/* Subjects table with S/N column */
.result-slip__table--subjects th:first-child,
.result-slip__table--subjects td:first-child {
	width: 50px;
	text-align: center;
}
.result-slip__table--subjects th:last-child,
.result-slip__table--subjects td:last-child {
	width: 80px;
	text-align: center;
}

.slip-sitting-label {
	font-weight: 600;
	font-size: 0.88rem;
	color: #1e3a5f;
	margin: 0 0 8px;
	padding: 6px 10px;
	background: #f0f5ff;
	border-radius: 4px;
}

@media print {
	.slip-photo img {
		width: 90px;
		height: 105px;
		border-width: 1px;
	}
	.slip-personal-grid { gap: 10px; }
	.slip-sitting-label {
		font-size: 0.7rem;
		padding: 3px 6px;
		margin-bottom: 4px;
	}
	.result-slip__table--subjects th:first-child,
	.result-slip__table--subjects td:first-child { width: 30px; }
	.result-slip__table--subjects th:last-child,
	.result-slip__table--subjects td:last-child { width: 60px; }
}
