/* Unified layout for Arabic + English */

:root {
	--u-header-grad: linear-gradient(135deg, #1a365d 0%, #2c5282 52%, #2b6cb0 100%);
	--u-footer-grad: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* Remove underline from all links */
a,
a:hover,
a:focus {
	text-decoration: none !important;
}

/* Unified typography + icon sizing */
body {
	font-size: 16px;
}

.fa {
	line-height: 1;
}

header .tabok-nav.navbar {
	background: var(--u-header-grad) !important;
	box-shadow: 0 4px 20px rgba(26, 54, 93, .15) !important;
	border: none !important;
}

header .tabok-nav .navbar-collapse {
	align-items: center;
}

header .tabok-nav .navbar-nav .nav-link {
	color: #fff !important;
	border-radius: 8px;
	padding: 12px 14px;
}

header .tabok-nav .navbar-nav .nav-link:hover,
header .tabok-nav .navbar-nav .nav-link.active {
	background: rgba(255, 255, 255, .14) !important;
	color: #fff !important;
}

header .tabok-nav .navbar-brand img.brand {
	height: 48px;
	width: auto;
}

header .tabok-nav .navbar-toggler {
	border-color: rgba(255, 255, 255, .35);
}

header .tabok-nav .navbar-toggler-icon {
	filter: invert(1);
}

header .header-btn {
	background: rgba(255, 255, 255, .16) !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	color: #fff !important;
	border-radius: 10px !important;
	font-size: .9rem;
	line-height: 1.1;
	padding: 8px 14px;
	min-height: 36px;
}

header .header-btn:hover {
	background: rgba(255, 255, 255, .26) !important;
	color: #fff !important;
}

header .header-btn-danger {
	color: #fecaca !important;
}

footer.site-footer {
	background: var(--u-footer-grad) !important;
	margin-top: 56px;
}

footer.site-footer .footer-bottom {
	align-items: center;
}

/* Footer RTL alignment */
html[dir="rtl"] footer.site-footer,
html[lang="ar"] footer.site-footer {
	direction: rtl;
	text-align: right;
}

/* Keep footer column order identical to English */
html[dir="rtl"] footer.site-footer .footer-top .row,
html[lang="ar"] footer.site-footer .footer-top .row {
	direction: ltr;
}

html[dir="rtl"] footer.site-footer .footer-top .row > [class*="col-"],
html[lang="ar"] footer.site-footer .footer-top .row > [class*="col-"] {
	direction: rtl;
}

/* Improve Arabic footer contrast */
html[dir="rtl"] footer.site-footer .footer-brand h4,
html[lang="ar"] footer.site-footer .footer-brand h4,
html[dir="rtl"] footer.site-footer .footer-links h5,
html[lang="ar"] footer.site-footer .footer-links h5 {
	color: #f1f5f9 !important;
}

html[dir="rtl"] footer.site-footer .footer-brand span,
html[lang="ar"] footer.site-footer .footer-brand span,
html[dir="rtl"] footer.site-footer .footer-desc,
html[lang="ar"] footer.site-footer .footer-desc,
html[dir="rtl"] footer.site-footer .footer-copy,
html[lang="ar"] footer.site-footer .footer-copy,
html[dir="rtl"] footer.site-footer .footer-dev,
html[lang="ar"] footer.site-footer .footer-dev {
	color: #cbd5e1 !important;
}

html[dir="rtl"] footer.site-footer .footer-links ul li a,
html[lang="ar"] footer.site-footer .footer-links ul li a {
	color: #cbd5e1 !important;
}

html[dir="rtl"] footer.site-footer .footer-links ul li a:hover,
html[lang="ar"] footer.site-footer .footer-links ul li a:hover {
	color: #7dd3fc !important;
}

html[dir="rtl"] footer.site-footer .footer-top [class*="col-"],
html[lang="ar"] footer.site-footer .footer-top [class*="col-"] {
	text-align: right;
}

html[dir="rtl"] footer.site-footer .footer-brand,
html[lang="ar"] footer.site-footer .footer-brand {
	flex-direction: row;
	justify-content: flex-start;
}

html[dir="rtl"] footer.site-footer .footer-links h5::after,
html[lang="ar"] footer.site-footer .footer-links h5::after {
	right: 0;
	left: auto;
}

html[dir="rtl"] footer.site-footer .footer-bottom,
html[lang="ar"] footer.site-footer .footer-bottom {
	justify-content: space-between;
	text-align: right;
}

html[dir="rtl"] footer.site-footer .footer-links ul,
html[lang="ar"] footer.site-footer .footer-links ul {
	padding-right: 0;
}

html[dir="rtl"] footer.site-footer .footer-social,
html[lang="ar"] footer.site-footer .footer-social {
	justify-content: flex-start;
	direction: ltr;
}

html[dir="rtl"] footer.site-footer .footer-copy,
html[lang="ar"] footer.site-footer .footer-copy {
	order: 1;
	text-align: right;
}

html[dir="rtl"] footer.site-footer .footer-dev,
html[lang="ar"] footer.site-footer .footer-dev {
	order: 2;
	text-align: left;
}

/* Footer consistent sizing */
footer.site-footer .footer-desc,
footer.site-footer .footer-links ul li a,
footer.site-footer .footer-copy,
footer.site-footer .footer-dev {
	font-size: .88rem;
}

footer.site-footer .footer-brand h4 {
	font-size: 1.05rem;
}

footer.site-footer .footer-social a {
	width: 36px;
	height: 36px;
	font-size: 1rem;
}

html[dir="rtl"] footer.site-footer .footer-links ul li a::before,
html[lang="ar"] footer.site-footer .footer-links ul li a::before {
	content: none !important;
}

.auth-page .contact-form {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
	padding: 28px;
	text-align: start;
}

.auth-page .title-sec h2 {
	font-size: clamp(1.7rem, 2.6vw, 2.3rem);
	line-height: 1.4;
}

.auth-page .in-c-tabok {
	height: 48px;
}

.auth-page .sub-tabok {
	min-width: 180px;
	margin-top: 8px;
	background: #1f4b82 !important;
	border-color: #1f4b82 !important;
	color: #fff !important;
}

.auth-page .sub-tabok:hover {
	background: #193e6b !important;
	border-color: #193e6b !important;
}

/* RTL fine-tuning to match English composition */
html[dir="rtl"] header .tabok-nav .navbar-brand {
	margin-left: 1rem;
	margin-right: 0;
}

html[dir="rtl"] header .tabok-nav .navbar-collapse {
	display: flex !important;
	justify-content: space-between;
}

html[dir="rtl"] header .tabok-nav .navbar-nav {
	margin-left: auto !important;
	margin-right: 0 !important;
}

html[dir="rtl"] header .tabok-nav .d-flex.ms-auto {
	margin-right: auto !important;
	margin-left: 0 !important;
}

html[dir="rtl"] .auth-page .contact-form {
	text-align: right;
}

@media (max-width: 678px) {
	.auth-page .contact-form {
		padding: 16px !important;
		border-radius: 14px;
	}
	.auth-page .sub-tabok {
		width: 100%;
		min-width: 0;
	}
	header .tabok-nav .navbar-brand img.brand {
		height: 40px;
	}
	html[dir="rtl"] header .tabok-nav .navbar-collapse {
		justify-content: initial;
	}
	html[dir="rtl"] header .tabok-nav .navbar-nav,
	html[dir="rtl"] header .tabok-nav .d-flex.ms-auto {
		margin: 0 !important;
	}
}

/* Pagination polish (Bootstrap 5) */
.sca-pagination .pagination {
	margin-top: 18px;
}

.sca-pagination .page-link {
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	min-width: 40px;
	text-align: center;
	color: #1f2937;
}

.sca-pagination .page-item.active .page-link {
	background: #1f4b82;
	border-color: #1f4b82;
	color: #fff;
}

.sca-pagination .page-item.disabled .page-link {
	color: rgba(148, 163, 184, 0.9);
	background: rgba(255, 255, 255, 0.04);
}

/* Survey: one-line AR/EN labels, dropdown below (shared frame) */
.survey-page .col-lg-12 > .col-lg-6 > label.custom-label-tabok,
.survey-page .col-lg-12 > .col-lg-6 > label.custom-label-tabok-left {
	display: block;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 12px;
	direction: rtl;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6 {
	width: 50%;
	float: right;
	padding: 0 6px;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:first-child label.custom-label-tabok {
	text-align: right;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:last-child label.custom-label-tabok-left {
	text-align: left;
	direction: ltr;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > select,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .in-c-tabok,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .options-tabok {
	clear: both;
	display: block;
	width: 100% !important;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6 {
		width: 100%;
		float: none;
		padding: 0;
		margin-bottom: 6px;
	}
}

/* FINAL: Arabic line, then English line, then field (all screens) */
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) {
	display: grid !important;
	grid-template-columns: 1fr !important;
	row-gap: 10px;
	padding: 14px !important;
	margin-bottom: 14px !important;
	border: 1px solid rgba(148, 163, 184, 0.35) !important;
	border-radius: 14px !important;
	background: rgba(255, 255, 255, 0.6) !important;
	direction: rtl;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6 {
	width: auto !important;
	float: none !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:first-child {
	order: 1;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:last-child {
	order: 2;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) label.custom-label-tabok {
	font-size: 1rem;
	font-weight: 800;
	color: #0f172a;
	text-align: right !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) label.custom-label-tabok-left {
	font-size: .95rem;
	font-weight: 600;
	color: #334155;
	direction: ltr;
	text-align: left !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > select,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .in-c-tabok,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .options-tabok {
	order: 3;
	margin-top: 0 !important;
	width: 100% !important;
}

/* Employment section in survey.php */
.survey-page .survey-qblock {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.6);
	padding: 12px;
	margin-bottom: 12px;
}

.survey-page .survey-qblock .col-12 {
	padding: 0 !important;
}

.survey-page .survey-qblock label.custom-label-tabok,
.survey-page .survey-qblock label.custom-label-tabok-left {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

.survey-page .survey-qblock label.custom-label-tabok {
	text-align: right !important;
	color: #0f172a;
	font-weight: 800;
	line-height: 1.55;
}

.survey-page .survey-qblock label.custom-label-tabok-left {
	text-align: left !important;
	direction: ltr;
	color: #334155;
	font-weight: 600;
	line-height: 1.55;
}

.survey-page .survey-qblock .in-c-tabok,
.survey-page .survey-qblock .options-tabok,
.survey-page .survey-qblock select,
.survey-page .survey-qblock input {
	width: 100% !important;
	margin-top: 2px;
}

/* Slightly tighter fields inside employment section */
.survey-page .survey-qblock select,
.survey-page .survey-qblock input,
.survey-page .survey-qblock textarea {
	min-height: 44px;
	border-radius: 12px;
}

@media (max-width: 768px) {
	.survey-page .survey-qblock {
		padding: 10px;
		border-radius: 12px;
	}
}

/* Survey question layout (survey + surveyshow) */
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px;
	padding: 12px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.5);
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6 {
	flex: 1 1 calc(50% - 8px);
	max-width: calc(50% - 8px);
	padding: 0;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .in-c-tabok,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .options-tabok,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > select {
	flex: 0 0 100%;
	max-width: 100%;
	margin-top: 4px;
}

/* Arabic right, English left */
html[dir="rtl"] .survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) {
	direction: ltr;
}

html[dir="rtl"] .survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:first-child {
	order: 2;
}

html[dir="rtl"] .survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:last-child {
	order: 1;
}

@media (max-width: 768px) {
	.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) {
		padding: 10px;
		gap: 6px;
	}

	.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:first-child,
	.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:last-child {
		order: initial;
	}
}

/* Final override: Arabic right + English left in one shared frame */
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	column-gap: 10px;
	row-gap: 8px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
	padding: 12px;
	direction: rtl;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6 {
	max-width: 100% !important;
	padding: 0 !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:first-child {
	grid-column: 1;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .col-lg-6:last-child {
	grid-column: 2;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) label.custom-label-tabok,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) label.custom-label-tabok-left {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) label.custom-label-tabok {
	text-align: right !important;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) label.custom-label-tabok-left {
	text-align: left !important;
	direction: ltr;
}

.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > select,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .in-c-tabok,
.survey-page .col-lg-12:has(> .col-lg-6 > label.custom-label-tabok):has(> .col-lg-6 > label.custom-label-tabok-left) > .options-tabok {
	grid-column: 1 / -1;
	margin-top: 2px;
}

/* Survey page polish */
.survey-page {
	text-align: initial;
}

.survey-page .title-sec h3 {
	margin-top: 10px;
	color: rgba(31, 41, 55, 0.75);
}

.survey-page .container {
	max-width: 1040px;
}

.survey-page form,
.survey-page .contact-form {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
	padding: 22px;
	text-align: start;
}

.survey-page .row {
	row-gap: 14px;
}

.survey-page .custom-label-tabok,
.survey-page .custom-label-tabok-left {
	display: block;
	margin: 0 0 6px;
	font-weight: 700;
}

/* Labels: clearer hierarchy + bilingual alignment */
.survey-page label.custom-label-tabok {
	color: #0f172a;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0;
	background: rgba(15, 23, 42, 0.03);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 0;
	border-radius: 10px;
	padding: 8px 10px;
	margin: 0;
}

.survey-page label.custom-label-tabok-left {
	color: #334155;
	font-size: .95rem;
	line-height: 1.5;
	background: rgba(15, 23, 42, 0.03);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 0;
	border-radius: 10px;
	padding: 8px 10px;
	margin: 0;
	direction: ltr;
	text-align: left;
	font-weight: 600;
}

html[dir="rtl"] .survey-page label.custom-label-tabok {
	text-align: right;
}

html[dir="rtl"] .survey-page label.custom-label-tabok-left {
	text-align: left;
}

.survey-page select.in-c-tabok,
.survey-page select.options-tabok,
.survey-page .in-c-tabok {
	width: 100%;
	min-height: 46px;
	border-radius: 12px;
}

.survey-page .sub-tabok {
	margin-top: 14px;
}

/* Better spacing between survey questions */
.survey-page .row {
	margin-bottom: 14px;
}

.survey-page .col-lg-12 {
	padding-top: 6px;
	padding-bottom: 6px;
}

/* Mobile responsiveness for survey page */
@media (max-width: 768px) {
	.survey-page form,
	.survey-page .contact-form {
		padding: 14px !important;
	}

	.survey-page .title-sec h2 {
		font-size: 1.45rem;
		line-height: 1.5;
	}

	.survey-page .title-sec h3 {
		font-size: 1.1rem;
	}

	.survey-page .col-lg-12 > .col-lg-6 {
		max-width: 100%;
		flex: 0 0 100%;
		padding-left: 0;
		padding-right: 0;
		margin-bottom: 6px;
	}

	.survey-page label.custom-label-tabok,
	.survey-page label.custom-label-tabok-left {
		font-size: .92rem;
		padding: 8px 9px;
		border-radius: 8px;
	}

	.survey-page select.in-c-tabok,
	.survey-page select.options-tabok,
	.survey-page .in-c-tabok {
		min-height: 44px;
		font-size: .92rem;
	}
}

/* Department clearance action page (?action=ID) */
.sca-action-page .sca-action-form-head {
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
	padding-bottom: 1rem;
}

.sca-action-page .sca-action-page-title {
	line-height: 1.55;
	font-weight: 700;
	color: #0f172a;
}

.sca-action-page .contact-form {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
	padding: 22px;
	margin-bottom: 1.25rem;
}

.sca-action-table-wrap {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.35);
}

.sca-action-page .table-bg-tabok th {
	background: rgba(15, 23, 42, 0.045);
	font-weight: 700;
	vertical-align: middle;
}

.sca-action-decision .radio-toolbar {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.sca-action-page .contact-form {
		padding: 14px;
		border-radius: 14px;
	}
}

@media print {
	@page {
		margin: 12mm;
		size: auto;
	}

	body {
		background: #fff !important;
		font-size: 11pt;
		color: #111 !important;
	}

	header,
	footer.site-footer,
	.noprint,
	.tabok-nav,
	.navbar,
	.navbar-collapse,
	.navbar-toggler {
		display: none !important;
	}

	.sca-action-page {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.sca-action-page .container {
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.sca-action-page .contact-form {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
		padding: 12px !important;
		page-break-inside: avoid;
	}

	.sca-action-table-wrap {
		border: 1px solid #333 !important;
		overflow: visible !important;
	}

	.sca-action-page .table-bg-tabok,
	.sca-action-page .table-bg-tabok th,
	.sca-action-page .table-bg-tabok td {
		border-color: #333 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.sca-action-page .table-bg-tabok th {
		background: #f2f2f2 !important;
	}

	.sca-action-page .card {
		page-break-inside: avoid;
	}
}

/* Clearance status cards grid (show.php / show_action.php) */
.sca-status-grid {
	margin-top: 1.25rem;
}

.sca-status-cards {
	--bs-gutter-x: 1rem;
	--bs-gutter-y: 1rem;
}

/* Vertical gap between stacked rows (multiple .row blocks) */
.sca-status-grid .sca-status-cards:not(:last-child) {
	margin-bottom: 10px;
}

.sca-status-cards > [class*="col-"] {
	min-width: 0;
}

.sca-status-cards .card {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sca-status-cards .card-body h3 {
	word-break: break-word;
}

.sca-status-cards .card-body h5 {
	word-break: break-word;
}

.sca-status-cards .text-box {
	padding: 0.5rem 0.75rem 0.75rem;
	font-size: 0.88rem;
	text-align: right;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
}

@media print {
	.sca-status-cards .col-12 {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}
