.srp-search-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.srp-tabs {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 20px;
}

.srp-tab-btn {
	flex: 1;
	padding: 12px 10px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #555;
	border-bottom: 3px solid transparent;
	transition: all .2s ease;
}

.srp-tab-btn:hover {
	background: #ececec;
}

.srp-tab-btn.active {
	background: #fff;
	color: #146c43;
	border-bottom-color: #146c43;
}

.srp-tab-panel {
	display: none;
}

.srp-tab-panel.active {
	display: block;
}

.srp-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 20px;
}

.srp-form label {
	font-weight: 600;
	font-size: 14px;
}

.srp-form input[type="text"] {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

.srp-btn {
	margin-top: 8px;
	padding: 12px 18px;
	background: #146c43;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}

.srp-btn:hover {
	background: #0f5132;
}

.srp-loading {
	text-align: center;
	padding: 16px;
	font-style: italic;
	color: #777;
}

.srp-message {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 6px;
	background: #fdecea;
	color: #a3231a;
	border: 1px solid #f5c2c0;
}

.srp-result-card {
	margin-top: 24px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.srp-result-header {
	text-align: center;
	margin-bottom: 18px;
	border-bottom: 2px solid #146c43;
	padding-bottom: 14px;
}

.srp-result-logo {
	max-height: 70px;
	margin-bottom: 8px;
}

.srp-school-name {
	margin: 4px 0;
	font-size: 22px;
}

.srp-result-title {
	margin: 0;
	font-size: 15px;
	color: #666;
	font-weight: 500;
}

.srp-exam-name {
	margin: 8px 0 0;
	font-size: 17px;
	font-weight: 700;
	color: #146c43;
	background: #eaf6ef;
	display: inline-block;
	padding: 4px 16px;
	border-radius: 20px;
}

.srp-info-table,
.srp-marks-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.srp-info-table td {
	padding: 6px 8px;
	font-size: 14px;
}

.srp-marks-table th,
.srp-marks-table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: center;
	font-size: 14px;
}

.srp-marks-table th {
	background: #146c43;
	color: #fff;
}

.srp-marks-table tfoot th {
	background: #f0f0f0;
	color: #222;
}

.srp-summary {
	display: flex;
	gap: 24px;
	font-size: 16px;
	margin-bottom: 10px;
}

.srp-remarks {
	font-size: 14px;
	color: #555;
}

.srp-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.srp-badge-pass {
	background: #d1e7dd;
	color: #0f5132;
}

.srp-badge-fail {
	background: #f8d7da;
	color: #842029;
}

.srp-print-btn-wrap {
	text-align: center;
	margin-top: 18px;
}

.srp-all-results-link { text-align: center; margin: 18px 0 0; }
.srp-btn-secondary { display: inline-block; text-decoration: none; background: #fff; color: #146c43; border: 1px solid #146c43; }
.srp-btn-secondary:hover { background: #eaf6ef; color: #0f5132; }
.srp-results-list-wrap { max-width: 1100px; margin: 0 auto; }
.srp-results-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; margin-bottom: 18px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 8px; }
.srp-results-filters input, .srp-results-filters select { min-height: 42px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 5px; flex: 1 1 160px; }
.srp-results-filters .srp-btn { margin: 0; flex: 0 0 auto; }
.srp-results-table-scroll { overflow-x: auto; }
.srp-results-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.srp-results-table th, .srp-results-table td { padding: 10px; border: 1px solid #ddd; text-align: left; font-size: 14px; }
.srp-results-table th { background: #146c43; color: #fff; }
.srp-results-table tr:nth-child(even) { background: #f8fbf9; }
.srp-pagination { margin-top: 18px; text-align: center; }
.srp-pagination .page-numbers { display: inline-block; padding: 6px 10px; margin: 2px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; }
.srp-pagination .current { background: #146c43; color: #fff; border-color: #146c43; }
.srp-no-results, .srp-new-result-notice { padding: 16px; border-radius: 8px; background: #eaf6ef; color: #0f5132; border: 1px solid #cce8d6; }

@media print {
	.srp-tabs, .srp-form, .srp-loading, .srp-print-btn-wrap {
		display: none !important;
	}
	.srp-result-card {
		box-shadow: none;
		border: none;
	}
}

@media (max-width: 480px) {
	.srp-tab-btn {
		font-size: 13px;
		padding: 10px 6px;
	}
	.srp-summary {
		flex-direction: column;
		gap: 4px;
	}
}
