/* ==========================================================================
   Apollo Staff Portal — staff-portal.css
   ========================================================================== */

:root {
	/*--sp-primary: #173A2B;
	--sp-green: #53C999;
	--sp-green-lite: #E9F8F3;
	--sp-green-mid: #BBEAD6;
	--sp-grey-bg: #EDEFF7;
	--sp-text: #1A1A2E;
	--sp-muted: #6B7280;
	--sp-white: #FFFFFF;
	--sp-border: #E5E7EB;
	--sp-radius: 10px;
	--sp-shadow: 0 4px 24px rgba(0, 0, 0, .08);*/

	--apollo-primary: #173A2B;
	--apollo-secondary: #53C999;
	--apollo-grey-bg: #EDEFF7;
	--apollo-grey-03: #BCBFCC;
	--apollo-grey-06: #40424D;
	--apollo-green-lite: #E9F8F3;
	--apollo-green-lite-mint: #BBEAD6;
	--apollo-green-soft-mint: #98DFC1;
}

.portal-container {
	max-width: 1200px;
	margin: auto;
	padding: 0 10px;
	width: 100%;
}

.btn-primary,
.btn-secondary {
	padding: 15px 35px !important;
	border-radius: 50px !important;
	font-size: 16px !important;
	line-height: 1;
	font-weight: 600 !important;
	transition: opacity .15s, box-shadow .15s !important;
	white-space: nowrap !IMPORTANT;
	border: none !important;
	text-decoration: none !important;
}

.btn-small {
	padding: 10px 18px !important;
	border-radius: 50px !important;
	font-size: 14px !important;
	line-height: 1;
	font-weight: 400 !important;
	transition: opacity .15s, box-shadow .15s !important;
	white-space: nowrap !IMPORTANT;
	border: none !important;
	text-decoration: none !important;
}

.btn-mint {
	background: var(--apollo-green-lite-mint);
	color: var(--apollo-primary);
}

.btn-primary {
	background: var(--apollo-primary) !important;
	color: white !important;
}

.btn-secondary {
	background: var(--apollo-secondary);
	color: var(--apollo-primary) !important;
}

/* ── Reset for portal wrapper ────────────────────────────────────────────── */
.sp-login-wrap,
.sp-portal-wrap,
.sp-view-wrap {
	font-family: "Manrope", sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;

}

/* ── Header ──────────────────────────────────────────────────────────────── */
.sp-header {
	background: rgb(83 201 153 / 13%);
	padding: 15px 0px;
	display: flex;
	align-items: center;
}

.sp-login-wrap header.sp-header img.sp-logo-img {
	max-width: 150px;
}

.sp-header-inner {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sp-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.sp-logo-text {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
}

.sp-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sp-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--apollo-secondary);
	font-size: 16px;
	font-weight: 600;
	padding: 5px 12px;
}

.sp-contact-btn,
.sp-logout-btn {
	transition: opacity .15s;
}

.sp-contact-btn:hover,
.sp-logout-btn:hover {
	opacity: .85;
}

.btn-icon {
	display: flex;
	align-items: center;
}

/* ── Login page ──────────────────────────────────────────────────────────── */
.sp-login-main {}

.sp-login-main {
	padding: 50px 0;
}

.sp-login-wrap header.sp-header {
	background: white;
}

.sp-login-card {
	background: #E9F8F3;
	border-radius: 16px;
	box-shadow: var(--sp-shadow);
	padding: 60px 40px;
	width: 100%;
	max-width: 720px;
	margin: auto;
	text-align: center;
}

.sp-login-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--apollo-primary);
	margin: 0 0 20px;
	text-align: center;
}

.sp-login-card .sp-notice {
	align-items: center;
	gap: 8px;
	background: var(--apollo-green-lite-mint);
	color: var(--apollo-primary);
	font-size: 14px;
	font-weight: 500;
	padding: 7px 20px;
	border-radius: 50px;
	margin-bottom: 24px;
	text-align: center;
	justify-content: center;
	width: auto;
	display: inline-flex;
}

.sp-error-msg {
	background: #FEF2F2;
	color: #B91C1C;
	font-size: 13px;
	border-radius: 8px;
	padding: 10px 16px;
	margin-bottom: 16px;
}

.sp-form-group {
	margin-bottom: 20px;
	text-align: left;
}

.btn-full {
	width: 100% !important;
}

form.sp-login-form .sp-label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--apollo-primary);
	margin-bottom: 10px;
}

form.sp-login-form .sp-input {
	width: 100%;
	padding: 18px;
	border: 1px solid var(--apollo-green-soft-mint);
	border-radius: 8px;
	line-height: 1;
	background: white;
	font-size: 16px;
	color: var(--apollo-primary);
	box-sizing: border-box;
	outline: none;
	transition: border-color .15s;
	-webkit-appearance: none;
	appearance: none;
}

form.sp-login-form .sp-input:focus {
	border: 1px solid var(--apollo-green-soft-mint);
	box-shadow: 0 0 0 3px rgba(83, 201, 153, .15);
}

.sp-password-wrap {
	position: relative;
}

.sp-password-wrap .sp-input {
	padding-right: 44px;
}

.sp-password-wrap .sp-toggle-pw {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--sp-muted);
	display: flex;
	padding: 0;
}

.sp-login-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	color: var(--apollo-primary);
	font-size: 16px;
}

.sp-login-links a {
	color: var(--apollo-primary);
	font-size: 16px;
	text-decoration: none;
}

.sp-login-links a:hover {
	color: var(--apollo-secondary);
	text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
/*.sp-footer {
	background: var(--sp-grey-bg);
	padding: 16px 40px;
}

.sp-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
}

.sp-footer-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sp-footer-left strong {
	color: #fff;
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.sp-footer-left p {
	margin: 0;
	font-size: 13px;
	max-width: 480px;
}

.sp-footer-logo {
	height: 40px;
	width: auto;
}

.sp-footer-links {
	display: flex;
	gap: 20px;
}

.sp-footer-links a {
	color: rgba(255, 255, 255, .7);
	text-decoration: none;
	font-size: 13px;
}

.sp-footer-links a:hover {
	color: #fff;
}

.sp-footer-copy {
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, .5);
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}*/

.footer-top {
	background: var(--apollo-primary);
}

.sp-footer-info {
	display: flex;
	padding: 50px 0;
	color: white;
	align-items: center;
	gap: 30px;
	font-size: 20px;
}

.footer-bottom {
	background: var(--apollo-secondary);
}

.sp-footer-copyright {
	display: flex;
	justify-content: space-between;
	padding: 18px 0;
	font-size: 16px;
	color: var(--apollo-primary);
}

.sp-footer-copyright .sp-footer-links a {
	text-decoration: none;
	color: var(--apollo-primary) !important;
}

.sp-footer-copyright .sp-footer-links a:hover {
	text-decoration: none;
	color: var(--apollo-primary) !important;
}

/* ── Portal hero ──────────────────────────────────────────────────────────── */
.sp-hero {
	/* background: var(--sp-green-lite); */
	background-image: url(../images/Hero-Section.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 60px 0px;
}

.sp-hero-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 40px;
}

.sp-hero-title {
	font-size: 64px;
	font-weight: 700;
	color: var(--apollo-primary);
	margin: 0 0 16px;
	line-height: 1.2;
}

.sp-hero-desc {
	color: var(--apollo-primary);
	font-size: 16px;
	max-width: 780px;
	margin: 0 0 28px;
	line-height: 1.6;
}

.sp-hero-graphic svg {
	width: 200px;
	height: 180px;
}

/* ── Category tabs ────────────────────────────────────────────────────────── */
.sp-cat-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ── Documents section ────────────────────────────────────────────────────── */
.sp-docs-section {
	flex: 1;
	padding: 40px;
	background: var(--sp-white);
}

.sp-docs-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.sp-docs-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}



.sp-search-form {
	display: flex;
}

.sp-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.sp-search-input {
	padding: 10px 20px 10px 20px !important;
	border: 1px solid var(--apollo-grey-bg) !important;
	color: var(--apollo-grey-03);
	border-radius: 10px !important;
	font-size: 16px;
	outline: none;
	width: 240px;
	transition: border-color .15s;
}

.sp-search-input::placeholder {
	color: var(--apollo-grey-03);
}

.sp-search-input:focus {
	border-color: var(--apollo-green-lite-mint);
}

/* ── Table ────────────────────────────────────────────────────────────────── */
.sp-table-wrap {
	border-radius: 20px;
	overflow: scroll;
	border: 1px solid var(--apollo-grey-bg);
}

.sp-table-wrap table.sp-table {
	margin-bottom: 0;
}

table.sp-table th,
table.sp-table tbody tr td {
	border: 0 !IMPORTANT;
	font-size: 16px;
	font-weight: 500;
	color: var(--apollo-primary);
	border-bottom: 1px solid var(--apollo-grey-bg) !important;
	text-align: left;
	padding: 25px;
}

table.sp-table tbody tr:last-child td {
	border-bottom: 0px solid var(--apollo-grey-bg) !important;
}

table.sp-table td {
	background: white !important;
}

table.sp-table th {
	font-weight: bold;
	font-size: 18px;
	background: var(--apollo-grey-bg);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.sp-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--sp-muted);
}

.sp-empty svg {
	margin-bottom: 12px;
	color: var(--sp-green-mid);
}

.sp-empty p {
	font-size: 15px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.sp-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.sp-pagination-info {
	font-size: 13px;
	color: var(--sp-muted);
}

.sp-pagination-btns {
	display: flex;
	gap: 6px;
}

.sp-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--sp-grey-bg);
	color: var(--sp-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}

.sp-page-btn:hover {
	background: var(--sp-green-mid);
}

.sp-page-btn.sp-page-num.active {
	background: var(--sp-primary);
	color: #fff;
}

/* ── Document viewer ──────────────────────────────────────────────────────── */
.sp-view-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 50px 0;
}



.sp-view-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--sp-primary);
	margin: 0 0 12px;
}

.sp-view-info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 16px;
	color: var(--apollo-primary);
}


.sp-pdf-viewer,
.sp-file-viewer {
	flex: 1;
	min-height: 80vh;
}

.sp-pdf-viewer iframe,
.sp-file-viewer iframe {
	width: 100%;
	height: 100%;
	min-height: 80vh;
	border: none;
	display: block;
}

.sp-html-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 48px 40px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sp-text);
}

.sp-html-content h1,
.sp-html-content h2,
.sp-html-content h3 {
	color: var(--sp-primary);
}

.sp-footer-copyright .sp-footer-links a {
	text-decoration: none;
	color: #173A2B;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {


	.sp-hero {
		padding: 40px 0px;
	}

	.sp-footer-info img {
		max-width: 170px;
	}

	table.sp-table th {
		font-size: 15px;
	}

	table.sp-table th,
	table.sp-table tbody tr td {
		font-size: 14px;
		padding: 12px;
	}

	.sp-hero-inner {
		grid-template-columns: 1fr;
	}

	.sp-hero-graphic {
		display: none;
	}

	.sp-hero-title {
		font-size: 28px;
	}

	.sp-docs-section {
		padding: 24px 0px;
	}

	.sp-view-meta {
		padding: 24px 0px;
	}

	.sp-html-content {
		padding: 32px 0px;
	}

	.sp-login-card {
		padding: 32px 24px;
	}

	.sp-footer-info,
	.sp-footer-copyright,
	.sp-header-inner {
		flex-direction: column;
	}

	.sp-header-right {
		display: block;
		text-align: center;
	}

	.sp-header-right a {
		display: inline-block;
	}

	.btn-primary,
	.btn-secondary {
		padding: 10px 30px !important;
		font-size: 14px !important;
	}

	.sp-badge {
		justify-content: center;
	}

	.sp-footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}