@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
	--blue: #0f5f8f;
	--cyan: #21b4c6;
	--navy: #0c2238;
	--ink: #173246;
	--soft: #eef4f7;
	--paper: rgba(255, 255, 255, 0.84);
	--line: rgba(18, 70, 103, 0.1);
	--danger: #c94f4f;
	--warning: #d89b1c;
	--success: #1f8a63;
	--app-base-font-size: 11.5px;
	--app-control-font-size: 0.8rem;
	--app-small-control-font-size: 0.72rem;
}

/* Activity log */
.activity-log-page {
	--activity-log-line: rgba(15, 95, 143, 0.1);
	--activity-log-muted: #698091;
}

.activity-log-hero,
.activity-log-section-heading,
.activity-log-hero__main,
.activity-log-metric,
.activity-log-user,
.activity-log-action,
.activity-log-filter-state,
.activity-log-result-count {
	display: flex;
	align-items: center;
}

.page-card.activity-log-hero {
	justify-content: space-between;
	gap: 20px;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(33, 180, 198, 0.08), transparent 38%),
		rgba(255, 255, 255, 0.84);
}

.activity-log-hero__main {
	gap: 14px;
}

.activity-log-hero__icon,
.activity-log-metric__icon,
.activity-log-user__avatar,
.activity-log-empty > span {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
}

.activity-log-hero__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: #0f5f8f;
	color: #fff;
	box-shadow: 0 12px 24px rgba(15, 95, 143, 0.2);
	font-size: 20px;
}

.activity-log-hero__eyebrow {
	margin-bottom: 2px;
	color: #168da1;
	font-size: 9.5px;
	font-weight: 800;
}

.activity-log-hero p,
.activity-log-section-heading p {
	font-size: 11px;
}

.activity-log-hero__limit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 9px 12px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.68);
	color: #466577;
}

.activity-log-hero__limit i {
	color: #168da1;
	font-size: 15px;
}

.activity-log-metric {
	gap: 12px;
	min-height: 82px;
	padding: 14px;
}

.activity-log-metric__icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	font-size: 17px;
}

.activity-log-metric__icon--events {
	background: rgba(15, 95, 143, 0.12);
	color: #0f5f8f;
}

.activity-log-metric__icon--users {
	background: rgba(31, 138, 99, 0.12);
	color: #1f8a63;
}

.activity-log-metric__icon--modules {
	background: rgba(216, 155, 28, 0.14);
	color: #b67c08;
}

.activity-log-metric__icon--latest {
	background: rgba(180, 79, 119, 0.12);
	color: #a14268;
}

.activity-log-metric > div {
	display: grid;
	min-width: 0;
}

.activity-log-metric span:not(.activity-log-metric__icon) {
	color: var(--activity-log-muted);
	font-size: 10.5px;
}

.activity-log-metric strong {
	color: #173d55;
	font-size: 22px;
	line-height: 1.15;
}

.activity-log-metric strong.activity-log-metric__date {
	font-size: 15px;
}

.activity-log-metric small {
	color: var(--activity-log-muted);
	font-size: 9.5px;
}

.activity-log-section-heading {
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.activity-log-section-heading h5 i {
	color: #168da1;
}

.activity-log-filter-state,
.activity-log-result-count {
	gap: 5px;
	flex: 0 0 auto;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(31, 138, 99, 0.1);
	color: #1f8a63;
	font-size: 9.5px;
	font-weight: 800;
}

.activity-log-result-count {
	background: rgba(15, 95, 143, 0.09);
	color: #0f5f8f;
}

.activity-log-filters .form-label {
	margin-bottom: 5px;
	color: #34576c;
	font-weight: 700;
}

.activity-log-filters .form-select,
.activity-log-filters .btn {
	min-height: 38px;
}

.activity-log-table-card {
	padding: 0;
	overflow: hidden;
}

.activity-log-table-heading {
	padding: 16px 16px 0;
}

.activity-log-table-card .table-responsive {
	overflow-x: auto;
}

.activity-log-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--activity-log-line);
}

.activity-log-pagination .page-link {
	min-width: 30px;
	text-align: center;
}

.activity-log-table {
	min-width: 980px;
	margin-bottom: 0;
	table-layout: fixed;
}

.activity-log-table thead th {
	padding-block: 10px;
}

.activity-log-table th:nth-child(1) { width: 34%; }
.activity-log-table th:nth-child(2) { width: 10%; }
.activity-log-table th:nth-child(3) { width: 16%; }
.activity-log-table th:nth-child(4) { width: 18%; }
.activity-log-table th:nth-child(5) { width: 22%; }

.activity-log-table tbody td {
	padding-block: 12px;
	vertical-align: middle;
}

.activity-log-table td.activity-log-time,
.activity-log-table td.activity-log-event,
.activity-log-table td.activity-log-user,
.activity-log-table td.activity-log-scope,
.activity-log-table td.activity-log-context {
	display: table-cell;
}

.activity-log-time {
	min-width: 84px;
}

.activity-log-time strong,
.activity-log-time small,
.activity-log-event > strong,
.activity-log-event > small,
.activity-log-scope strong,
.activity-log-scope span {
	display: block;
}

.activity-log-time small,
.activity-log-event > strong,
.activity-log-event > small,
.activity-log-scope span {
	margin-top: 4px;
}

.activity-log-time strong,
.activity-log-event > strong,
.activity-log-user strong,
.activity-log-scope strong {
	color: #24485e;
}

.activity-log-time small,
.activity-log-event small,
.activity-log-user small,
.activity-log-scope span {
	color: var(--activity-log-muted);
	font-size: 9.5px;
}

.activity-log-event {
	min-width: 255px;
	max-width: 390px;
}

.activity-log-event > strong {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font-weight: 700;
	line-height: 1.55;
}

.activity-log-action {
	width: max-content;
	gap: 5px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 9px;
}

.activity-action--create,
.activity-action--login {
	background: rgba(31, 138, 99, 0.12);
	color: #187553;
}

.activity-action--update,
.activity-action--download,
.activity-action--restore {
	background: rgba(15, 95, 143, 0.11);
	color: #0f5f8f;
}

.activity-action--delete,
.activity-action--failed {
	background: rgba(201, 79, 79, 0.12);
	color: #b43f3f;
}

.activity-action--import {
	background: rgba(216, 155, 28, 0.14);
	color: #a9720a;
}

.activity-action--logout,
.activity-action--default {
	background: rgba(100, 117, 130, 0.12);
	color: #5d707e;
}

.activity-log-user {
	min-width: 145px;
}

.activity-log-user__avatar {
	width: 32px;
	height: 32px;
	margin-left: 9px;
	border-radius: 10px;
	background: rgba(15, 95, 143, 0.09);
	color: #0f5f8f;
	vertical-align: middle;
}

.activity-log-user > div {
	display: inline-grid;
	gap: 1px;
	max-width: calc(100% - 45px);
	vertical-align: middle;
}

.activity-log-scope {
	min-width: 170px;
	max-width: 230px;
}

.activity-log-scope span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.activity-log-context {
	min-width: 260px;
}

.activity-log-context > div {
	display: grid;
	grid-template-columns: minmax(90px, 0.8fr) minmax(130px, 1.2fr);
	gap: 5px 12px;
}

.activity-log-context > div + div {
	margin-top: 5px;
}

.activity-log-context span {
	min-width: 0;
	overflow: hidden;
	color: var(--activity-log-muted);
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.activity-log-context i,
.activity-log-scope i {
	color: #4f91ad;
}

.activity-log-empty {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 34px 20px;
	text-align: center;
}

.activity-log-empty > span {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(15, 95, 143, 0.08);
	color: #0f5f8f;
	font-size: 18px;
}

.activity-log-empty strong {
	color: #24485e;
}

.activity-log-empty p {
	margin: 0;
	color: var(--activity-log-muted);
}

:root[data-theme="dark"] .activity-log-page {
	--activity-log-line: rgba(151, 209, 230, 0.12);
	--activity-log-muted: #9db2bf;
}

:root[data-theme="dark"] .activity-log-hero {
	background: linear-gradient(90deg, rgba(33, 180, 198, 0.09), transparent 38%), rgba(17, 44, 60, 0.88);
}

:root[data-theme="dark"] .activity-log-hero__limit {
	border-color: var(--activity-log-line);
	background: rgba(255, 255, 255, 0.04);
	color: #b8cad4;
}

:root[data-theme="dark"] .activity-log-metric strong,
:root[data-theme="dark"] .activity-log-time strong,
:root[data-theme="dark"] .activity-log-event > strong,
:root[data-theme="dark"] .activity-log-user strong,
:root[data-theme="dark"] .activity-log-scope strong,
:root[data-theme="dark"] .activity-log-empty strong {
	color: #d6e5ec;
}

@media (max-width: 767.98px) {
	.activity-log-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.activity-log-hero__main {
		align-items: flex-start;
	}

	.activity-log-hero__icon {
		width: 42px;
		height: 42px;
	}

	.activity-log-hero__limit {
		align-self: stretch;
		justify-content: center;
	}

	.activity-log-metrics {
		--bs-gutter-x: 10px;
		--bs-gutter-y: 10px;
	}

	.activity-log-metric {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		min-height: 116px;
	}

	.activity-log-metric__icon {
		width: 36px;
		height: 36px;
	}

	.activity-log-metric strong {
		font-size: 19px;
	}

	.activity-log-section-heading {
		align-items: flex-start;
	}

	.activity-log-table-card {
		overflow: visible;
		padding: 14px;
	}

	.activity-log-table-heading {
		padding: 0;
	}

	.activity-log-table {
		min-width: 0;
	}

	.activity-log-pagination {
		align-items: flex-start;
		flex-direction: column;
		padding: 12px 0 0;
	}

	.activity-log-pagination .pagination {
		max-width: 100%;
		overflow-x: auto;
		padding-bottom: 2px;
	}
}

* {
	box-sizing: border-box;
}

html {
	font-size: 87.5%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 28%),
		radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--blue) 11%, transparent), transparent 24%),
		linear-gradient(180deg, #f8fbfd 0%, var(--app-bg, #eef4f7) 48%, color-mix(in srgb, var(--app-bg, #eef4f7) 92%, #dce8ef) 100%);
	color: var(--ink);
	font-family: 'Tajawal', sans-serif;
	font-size: var(--app-base-font-size);
	line-height: 1.42;
}

.btn {
	--bs-btn-font-size: var(--app-control-font-size);
}

.btn-sm {
	--bs-btn-font-size: var(--app-small-control-font-size);
}

.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.modal-body,
.form-label {
	font-size: var(--app-control-font-size);
}

.form-control-sm,
.form-select-sm {
	font-size: var(--app-small-control-font-size);
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.52) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px);
	background-size: 34px 34px;
	opacity: 0.28;
	mask-image: radial-gradient(circle at center, #000 45%, transparent 100%);
	-webkit-mask-image: radial-gradient(circle at center, #000 45%, transparent 100%);
	z-index: -1;
}

a {
	color: inherit;
}

.app-splash {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 28px;
	background:
		radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--cyan) 28%, transparent), transparent 28%),
		radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.12), transparent 22%),
		linear-gradient(145deg, color-mix(in srgb, var(--navy) 72%, #000) 0%, var(--navy) 44%, var(--blue) 100%);
	color: #fff;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.42s ease, visibility 0.42s ease;
}

.app-splash.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.app-splash-card {
	display: grid;
	justify-items: center;
	gap: 16px;
	width: min(100%, 340px);
	padding: 30px 26px 28px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 30px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
	box-shadow: 0 28px 70px rgba(2, 14, 24, 0.34);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	animation: splash-rise 0.56s ease both;
}

.app-splash-mark {
	display: grid;
	width: 112px;
	height: 112px;
	place-items: center;
	overflow: hidden;
	border-radius: 28px;
	box-shadow: 0 22px 42px rgba(1, 13, 23, 0.28);
}

.app-splash-mark img,
.app-splash-logo {
	display: block;
	max-width: 100%;
	height: auto;
}

.app-splash-logo {
	width: 86px;
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.app-splash-title {
	font-size: 22px;
	font-weight: 800;
	text-align: center;
	line-height: 1.35;
}

.app-splash-code {
	padding: 6px 14px 5px;
	border: 1px solid rgba(155, 231, 246, 0.34);
	border-radius: 999px;
	background: rgba(155, 231, 246, 0.12);
	color: #d9f7ff;
	font-weight: 800;
	letter-spacing: 0.08em;
}

@keyframes splash-rise {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.app-shell {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	position: fixed;
	top: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 10;
	width: 252px;
	padding: 12px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 22px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
		linear-gradient(205deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 72%, var(--blue)) 58%, var(--blue) 100%);
	color: #fff;
	box-shadow: 0 28px 60px rgba(7, 28, 45, 0.24);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	scrollbar-width: thin;
	scrollbar-color: rgba(190, 237, 247, 0.5) transparent;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sidebar::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background:
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
	opacity: 0.95;
}

.sidebar::after {
	content: '';
	position: absolute;
	top: 16px;
	right: 6px;
	bottom: 16px;
	width: 10px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	opacity: 0.55;
	pointer-events: none;
}

.sidebar-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9;
	border: 0;
	padding: 0;
	background: rgba(6, 25, 41, 0.48);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}

.brand {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	z-index: 1;
}

.brand b {
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1px;
}

.brand-icon {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	flex: 0 0 auto;
	overflow: hidden;
	padding: 4px;
	border-radius: 13px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 30px rgba(6, 22, 36, 0.22);
	font-size: 19px;
}

.brand-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand small {
	display: block;
	margin-top: 2px;
	color: rgba(207, 238, 248, 0.88);
	font-size: 9.5px;
}

.sidebar::-webkit-scrollbar {
	width: 10px;
}

.sidebar::-webkit-scrollbar-track {
	margin-block: 16px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(199, 243, 252, 0.92), rgba(108, 199, 219, 0.92));
	background-clip: padding-box;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(223, 249, 255, 0.98), rgba(126, 210, 228, 0.98));
	background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-corner {
	background: transparent;
}

.auth-page {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(90deg, rgba(8, 41, 67, 0.86), rgba(12, 54, 82, 0.74)),
		linear-gradient(100deg, rgba(255, 255, 255, 0.06) 0 8%, transparent 8% 15%, rgba(255, 255, 255, 0.07) 15% 22%, transparent 22% 100%),
		url('../b.jpg') center / cover no-repeat,
		linear-gradient(145deg, color-mix(in srgb, var(--navy) 78%, #000) 0%, #164a6e 52%, color-mix(in srgb, var(--blue) 72%, var(--cyan)) 100%);
}

.auth-page::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 8.5%, rgba(255, 255, 255, 0.08) 8.5% 8.65%, transparent 8.65% 100%),
		linear-gradient(180deg, transparent 0 16%, rgba(255, 255, 255, 0.14) 16% 16.3%, transparent 16.3% 100%),
		radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18), transparent 18%);
	background-size: 118px 100%, 100% 160px, auto;
	opacity: 0.3;
	filter: blur(0.4px);
	mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.auth-page::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(8, 30, 48, 0.48), transparent 28%, transparent 72%, rgba(4, 19, 32, 0.54)),
		radial-gradient(circle at 18% 80%, rgba(47, 169, 224, 0.2), transparent 22%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(5, 23, 38, 0.16));
}

.auth-shell {
	position: relative;
	z-index: 1;
	width: min(100%, 1110px);
}

.auth-card {
	position: relative;
	overflow: hidden;
	display: grid;
	direction: ltr;
	grid-template-columns: minmax(330px, 0.95fr) minmax(0, 1.55fr);
	min-height: min(560px, calc(100vh - 28px));
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 28px;
	background:
		linear-gradient(90deg, rgba(241, 248, 251, 0.76), rgba(241, 248, 251, 0.7) 38%, rgba(20, 78, 113, 0.58) 38%, rgba(13, 62, 95, 0.66)),
		rgba(12, 48, 76, 0.44);
	box-shadow: 0 30px 80px rgba(3, 18, 30, 0.38);
	backdrop-filter: blur(22px) saturate(1.08);
	-webkit-backdrop-filter: blur(22px) saturate(1.08);
	color: #fff;
}

.auth-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 38%, rgba(255, 255, 255, 0.07)),
		radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 22%);
	opacity: 0.82;
	pointer-events: none;
}

.auth-intro-panel,
.auth-login-panel {
	position: relative;
	direction: rtl;
	z-index: 1;
}

.auth-intro-panel {
	grid-column: 2;
	grid-row: 1;
}

.auth-login-panel {
	grid-column: 1;
	grid-row: 1;
}

.auth-intro-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 28px 48px;
	text-align: center;
}

.auth-eyebrow {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 7px 16px;
	border: 1px solid rgba(229, 246, 251, 0.26);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.13);
	color: rgba(244, 250, 252, 0.9);
	font-size: 13px;
	font-weight: 800;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-eyebrow-logo {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.14));
}

.auth-intro-panel h1 {
	margin: 0;
	font-size: clamp(32px, 3.5vw, 46px);
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	text-wrap: balance;
}

.auth-lead {
	max-width: 680px;
	margin: -6px auto 2px;
	color: rgba(233, 246, 250, 0.9);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.75;
}

.auth-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	max-width: 610px;
}

.auth-feature-grid article {
	display: grid;
	align-content: center;
	gap: 10px;
	min-height: 112px;
	padding: 16px;
	border: 1px solid rgba(227, 245, 250, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-feature-grid strong {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}

.auth-feature-grid span {
	color: rgba(232, 246, 250, 0.82);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.auth-access-note {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 610px;
	padding: 15px 18px;
	border: 1px solid rgba(227, 245, 250, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
	text-align: right;
}

.auth-access-note i {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--cyan), var(--blue));
	color: #fff;
	font-size: 27px;
	box-shadow: 0 16px 30px rgba(10, 42, 66, 0.24);
}

.auth-access-note strong,
.auth-access-note span {
	display: block;
}

.auth-access-note strong {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
}

.auth-access-note span {
	color: rgba(232, 246, 250, 0.82);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.auth-login-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 38px;
	color: #203a4e;
}

.auth-brand {
	position: relative;
	display: grid;
	align-items: center;
	justify-items: center;
	gap: 14px;
	margin-bottom: 20px;
	text-align: center;
	z-index: 1;
}

.auth-brand-icon {
	display: grid;
	width: 124px;
	height: 124px;
	padding: 0;
	place-items: center;
}

.auth-brand-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(20, 80, 120, 0.12));
}

.auth-brand h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: #15374f;
}

.auth-brand p {
	max-width: 310px;
	margin: 10px auto 0;
	color: #758896;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
}

.auth-form {
	position: relative;
	z-index: 1;
}

.auth-form .form-label {
	margin-bottom: 8px;
	color: #263d50;
	font-weight: 700;
}

.auth-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid rgba(30, 88, 126, 0.1);
	border-radius: 10px;
	background: #eef5ff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
	border-color: rgba(22, 145, 208, 0.52);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(47, 169, 224, 0.14);
}

.auth-input-wrap i {
	flex: 0 0 52px;
	text-align: center;
	color: #228fce;
	font-size: 18px;
}

.auth-input-wrap .form-control {
	min-height: 54px;
	border: 0;
	padding-inline: 0 16px;
	background: transparent;
	color: #1f3a4d;
	font-weight: 700;
	box-shadow: none;
}

.auth-input-wrap .form-control::placeholder {
	color: #7b8fa0;
}

.auth-input-wrap .form-control:focus {
	box-shadow: none;
	background: transparent;
	color: #1f3a4d;
}

.auth-form .btn-primary {
	margin-top: 6px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #208fd1, #177ec0);
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 18px 32px rgba(22, 126, 192, 0.2);
}

.auth-alert {
	position: relative;
	z-index: 1;
	border: 1px solid rgba(201, 79, 79, 0.16);
	border-radius: 10px;
	background: rgba(201, 79, 79, 0.1);
	color: #9f3838;
}

.auth-footnote {
	margin: 20px auto 0;
	max-width: 320px;
	color: #7a8a96;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}

.auth-form .mb-3 {
	margin-bottom: 12px !important;
}

.sidebar nav {
	position: relative;
	display: grid;
	gap: 6px;
	z-index: 1;
}

.sidebar-group {
	margin: 0;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.sidebar-group[open] {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 16px 34px rgba(5, 20, 31, 0.14);
}

.sidebar-group.is-open {
	border-color: rgba(188, 240, 251, 0.14);
	box-shadow: 0 18px 36px rgba(5, 20, 31, 0.16);
}

.sidebar-group.is-current {
	border-color: rgba(139, 231, 255, 0.28);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
	box-shadow: 0 20px 42px rgba(2, 18, 30, 0.22);
}

.sidebar-group.is-current::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, rgba(139, 231, 255, 0.24), #8be7ff, rgba(139, 231, 255, 0.12));
	box-shadow: 0 0 24px rgba(139, 231, 255, 0.28);
	pointer-events: none;
	z-index: 0;
}

.sidebar-group__summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 10px;
	list-style: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.94);
	font-size: 11px;
	font-weight: 800;
	transition: background 0.22s ease;
	user-select: none;
}

.sidebar-group__summary::-webkit-details-marker {
	display: none;
}

.sidebar-group__summary:hover {
	background: rgba(255, 255, 255, 0.06);
}

.sidebar-group.is-open .sidebar-group__summary {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.sidebar-group.is-current .sidebar-group__summary {
	background:
		radial-gradient(circle at 16% 50%, rgba(139, 231, 255, 0.18), transparent 38%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
	color: #fff;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-group.is-current .sidebar-group__summary::after {
	content: 'نشط';
	margin-inline-start: auto;
	padding: 2px 7px 1px;
	border: 1px solid rgba(139, 231, 255, 0.22);
	border-radius: 999px;
	background: rgba(139, 231, 255, 0.12);
	color: #dffaff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.sidebar-group__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.sidebar-group__label > i,
.sidebar-group__chevron {
	display: inline-grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12px;
	flex: 0 0 24px;
	transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.sidebar-group[open] .sidebar-group__label > i,
.sidebar-group[open] .sidebar-group__chevron {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.14);
}

.sidebar-group.is-current .sidebar-group__label > i,
.sidebar-group.is-current .sidebar-group__chevron {
	background: linear-gradient(135deg, rgba(139, 231, 255, 0.26), rgba(255, 255, 255, 0.12));
	border-color: rgba(139, 231, 255, 0.22);
	box-shadow: 0 10px 18px rgba(4, 23, 35, 0.16);
}

.sidebar-group__chevron {
	font-size: 11px;
}

.sidebar-group[open] .sidebar-group__chevron {
	transform: rotate(180deg);
}

.sidebar-group__links {
	display: grid;
	gap: 4px;
	padding: 0 8px 8px;
}

.sidebar-group.is-open .sidebar-group__links {
	padding-top: 4px;
}

.sidebar-group__links a {
	padding-right: 14px;
	margin-right: 4px;
	border-radius: 11px;
	font-size: 11px;
	font-weight: 700;
}

.sidebar-group__links a.is-active {
	border-color: rgba(139, 231, 255, 0.2);
	background:
		linear-gradient(135deg, rgba(139, 231, 255, 0.2), rgba(255, 255, 255, 0.08)),
		rgba(255, 255, 255, 0.06);
	box-shadow: 0 14px 26px rgba(4, 21, 32, 0.2);
	color: #fff;
	padding-right: 16px;
}

.sidebar-group__links a.is-active i {
	background: linear-gradient(135deg, rgba(139, 231, 255, 0.3), rgba(255, 255, 255, 0.15));
	border-color: rgba(139, 231, 255, 0.22);
	color: #fff;
	box-shadow: 0 10px 18px rgba(3, 20, 31, 0.16);
}

.sidebar-group__links a::after {
	content: '';
	position: absolute;
	right: 6px;
	top: 50%;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(139, 231, 255, 0.55);
	transform: translateY(-50%);
	transition: background 0.22s ease, transform 0.22s ease;
}

.sidebar-group__links a:hover::after,
.sidebar-group__links a.is-active::after {
	background: #8be7ff;
	transform: translateY(-50%) scale(1.15);
}

nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 8px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: rgba(233, 248, 255, 0.9);
	text-decoration: none;
	transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
	will-change: transform;
}

nav a i {
	display: inline-grid;
	width: 28px;
	height: 28px;
	place-items: center;
	flex: 0 0 28px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 14px;
	transition: inherit;
}

nav a:hover {
	transform: translateX(-4px);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.08);
}

nav a:hover i,
nav a.is-active i {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.16);
}

nav a.is-active {
	border-color: rgba(255, 255, 255, 0.12);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
	box-shadow: 0 14px 30px rgba(6, 21, 33, 0.2);
	color: #fff;
	transform: none;
}

nav a.is-active::before {
	content: '';
	position: absolute;
	right: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8be7ff;
	box-shadow: 0 0 0 6px rgba(139, 231, 255, 0.08);
}

.main-content {
	position: relative;
	width: calc(100% - 264px);
	margin-right: 264px;
	min-width: 0;
	padding: 18px 18px 18px 0;
}

.topbar {
	position: sticky;
	top: 18px;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 56px;
	padding: 10px 14px;
	margin-left: 18px;
	border: 1px solid rgba(255, 255, 255, 0.74);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 20px 48px rgba(12, 42, 63, 0.12);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	color: var(--ink);
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.user-chip {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 6px 9px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 251, 0.84));
	box-shadow: 0 12px 24px rgba(10, 48, 75, 0.06);
	line-height: 1.2;
	white-space: nowrap;
}

.user-chip strong {
	color: #10324a;
	font-size: 10.5px;
	font-weight: 800;
}

.user-chip span {
	margin-top: 0;
	color: #5f7f90;
	font-size: 9px;
}

.topbar-main {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.topbar-logo {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	flex: 0 0 auto;
	padding: 2px;
	border-radius: 11px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 249, 0.92));
	box-shadow: 0 10px 24px rgba(10, 48, 75, 0.08);
}

.topbar-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.topbar-copy {
	min-width: 0;
	overflow: hidden;
}

.topbar h5 {
	margin: 0;
	overflow: hidden;
	font-size: 13px;
	font-weight: 800;
	color: #10324a;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.topbar span {
	display: block;
	margin-top: 4px;
	overflow: hidden;
	color: #5f7f90;
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.topbar .btn-outline-light {
	border-color: rgba(15, 95, 143, 0.14);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 249, 0.92));
	color: #0f5f8f;
	box-shadow: 0 10px 24px rgba(10, 48, 75, 0.08);
}

.topbar .btn-outline-light:hover {
	border-color: rgba(15, 95, 143, 0.22);
	background: linear-gradient(180deg, #ffffff, #eef7fb);
	color: #0a4a72;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.theme-toggle .theme-toggle-text {
	display: inline;
	margin-top: 0;
	color: inherit;
	font-size: 9.5px;
}

.operational-notification-button {
	position: relative;
	display: inline-grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	flex: 0 0 auto;
	border: 1px solid rgba(15, 95, 143, 0.14);
	border-radius: 11px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 249, 0.92));
	box-shadow: 0 10px 24px rgba(10, 48, 75, 0.08);
	color: #0f5f8f;
}

.operational-notification-button:hover,
.operational-notification-button[aria-expanded="true"] {
	border-color: rgba(15, 95, 143, 0.28);
	background: #fff;
	color: #0a4a72;
}

.operational-notification-button i {
	font-size: 16px;
}

.operational-notification-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid !important;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 9px;
	background: #d83b4d;
	color: #fff !important;
	font-size: 9px !important;
	font-weight: 800;
	line-height: 1;
}

.operational-notification-badge[hidden] {
	display: none !important;
}

.operational-notification-hint {
	position: fixed;
	z-index: 1082;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 9px;
	align-items: center;
	width: min(320px, calc(100vw - 20px));
	padding: 10px 11px;
	border: 1px solid rgba(20, 125, 151, 0.24);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 42px rgba(8, 47, 68, 0.2);
	color: #123d54;
	opacity: 0;
	transform: translateY(-7px) scale(0.98);
	transition: opacity 180ms ease, transform 180ms ease;
	text-align: right;
}

.operational-notification-hint.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.operational-notification-hint[hidden] {
	display: none;
}

.operational-notification-hint > i {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 8px;
	background: #e5f4f7;
	color: #0d8299;
	font-size: 15px;
}

.operational-notification-hint > span {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.operational-notification-hint strong,
.operational-notification-hint small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.operational-notification-hint strong {
	font-size: 11.5px;
	font-weight: 800;
}

.operational-notification-hint small {
	color: #637f8d;
	font-size: 9.5px;
}

.operational-notification-panel {
	position: fixed;
	top: 84px;
	left: 32px;
	z-index: 1080;
	width: min(390px, calc(100vw - 32px));
	overflow: hidden;
	border: 1px solid rgba(17, 89, 127, 0.15);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 24px 60px rgba(11, 43, 64, 0.22);
	backdrop-filter: blur(20px);
}

.operational-notification-panel__header,
.operational-notification-panel__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 14px;
}

.operational-notification-panel__header {
	border-bottom: 1px solid rgba(17, 89, 127, 0.1);
	background: linear-gradient(135deg, rgba(15, 95, 143, 0.08), rgba(31, 168, 186, 0.05));
}

.operational-notification-panel__header div {
	display: grid;
	gap: 2px;
}

.operational-notification-panel__header span,
.operational-notification-panel__footer small {
	color: #688493;
	font-size: 10px;
}

.operational-notification-panel__header strong {
	color: #12364c;
	font-size: 13px;
}

.operational-notification-panel__header button {
	display: grid;
	width: 32px;
	height: 32px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(15, 95, 143, 0.14);
	border-radius: 8px;
	background: #fff;
	color: #0f5f8f;
}

.operational-notification-list {
	max-height: min(430px, calc(100vh - 220px));
	overflow-y: auto;
}

.operational-notification-item {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(17, 89, 127, 0.08);
	color: inherit;
	text-decoration: none;
}

.operational-notification-item:hover {
	background: #f3f9fb;
}

.operational-notification-item.is-unread {
	background: rgba(29, 158, 177, 0.08);
}

.operational-notification-item.is-unread::after {
	content: '';
	position: absolute;
	top: 17px;
	right: 7px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #168fa4;
}

.operational-notification-item__icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 8px;
	background: #e8f4f8;
	color: #0f6e93;
}

.operational-notification-item__copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.operational-notification-item__copy strong {
	color: #15394e;
	font-size: 11.5px;
	line-height: 1.5;
}

.operational-notification-item__copy span {
	display: -webkit-box;
	overflow: hidden;
	color: #607d8c;
	font-size: 10px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.operational-notification-item time {
	color: #8196a1;
	font-size: 9px;
	white-space: nowrap;
}

.operational-notification-empty {
	display: grid;
	min-height: 180px;
	place-items: center;
	align-content: center;
	gap: 8px;
	color: #6e8895;
	font-size: 11px;
}

.operational-notification-empty i {
	font-size: 24px;
	color: #2296aa;
}

.operational-notification-panel__footer {
	border-top: 1px solid rgba(17, 89, 127, 0.1);
}

.operational-notification-panel__footer button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: #0f668f;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

.operational-notification-panel__footer button:disabled {
	background: #dce8ec;
	color: #53717f;
}

:root[data-theme="dark"] .operational-notification-panel {
	border-color: rgba(126, 195, 218, 0.18);
	background: rgba(15, 35, 48, 0.98);
}

:root[data-theme="dark"] .operational-notification-hint {
	border-color: rgba(87, 190, 208, 0.25);
	background: rgba(16, 39, 52, 0.98);
	color: #e8f5f8;
}

:root[data-theme="dark"] .operational-notification-hint small {
	color: #a5bdc7;
}

:root[data-theme="dark"] .operational-notification-panel__header strong,
:root[data-theme="dark"] .operational-notification-item__copy strong {
	color: #e8f5f8;
}

:root[data-theme="dark"] .operational-notification-item:hover,
:root[data-theme="dark"] .operational-notification-item.is-unread {
	background: rgba(65, 172, 194, 0.12);
}

:root[data-theme="dark"] .operational-notification-item__copy span,
:root[data-theme="dark"] .operational-notification-panel__header span,
:root[data-theme="dark"] .operational-notification-panel__footer small {
	color: #a5bdc7;
}

@media (max-width: 767.98px) {
	.operational-notification-panel {
		top: calc(max(8px, env(safe-area-inset-top, 0px)) + 66px);
		left: 10px;
		right: 10px;
		width: auto;
	}

	.operational-notification-button {
		width: 32px;
		height: 32px;
		border-radius: 10px;
	}
}

.mobile-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 10px;
	border-color: rgba(15, 95, 143, 0.14);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 249, 0.88));
	color: #0f5f8f;
	box-shadow: none;
}

.mobile-nav-toggle i {
	font-size: 17px;
}

.mobile-bottom-nav {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.app-splash,
	.app-splash-card {
		animation: none;
		transition: none;
	}
}

.content-wrap {
	padding: 22px 18px 0 18px;
}

.content-wrap > .row,
.content-wrap > .hero,
.content-wrap > .page-card,
.content-wrap > .metric-strip {
	position: relative;
	z-index: 1;
}

.hero,
.page-card,
.kpi-card,
.mini-card,
.modal-content {
	border: 1px solid rgba(255, 255, 255, 0.76);
	background: var(--paper);
	box-shadow: 0 18px 42px rgba(11, 43, 65, 0.08);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.hero {
	padding: 18px;
	border-radius: 24px;
	background:
		radial-gradient(circle at top left, rgba(33, 180, 198, 0.14), transparent 34%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 250, 0.9));
}

.hero .badge {
	border-radius: 18px !important;
	background: linear-gradient(135deg, #0f5f8f, #19a8be) !important;
	box-shadow: 0 14px 28px rgba(15, 95, 143, 0.22);
}

.dashboard-hero {
	position: relative;
	overflow: hidden;
}

.dashboard-hero h2 {
	font-size: 20px;
	line-height: 1.25;
}

.dashboard-hero::after {
	content: '';
	position: absolute;
	inset: auto -80px -120px auto;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(33, 180, 198, 0.16), transparent 68%);
	pointer-events: none;
}

.dashboard-readiness {
	display: inline-grid;
	min-width: 138px;
	grid-template-columns: auto auto;
	grid-template-areas: "label value" "state value";
	align-items: center;
	gap: 2px 9px;
	padding: 8px 10px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(15, 95, 143, 0.1), rgba(33, 180, 198, 0.14));
	border: 1px solid rgba(15, 95, 143, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 28px rgba(15, 95, 143, 0.12);
}

.dashboard-readiness small {
	grid-area: label;
	color: #648190;
	font-weight: 700;
	line-height: 1.1;
}

.dashboard-readiness strong {
	grid-area: value;
	color: #0f5f8f;
	font-size: 21px;
	line-height: 1;
}

.dashboard-readiness em {
	grid-area: state;
	font-style: normal;
	font-weight: 800;
	line-height: 1.1;
}

.dashboard-readiness.is-success em { color: var(--success); }
.dashboard-readiness.is-warning em { color: var(--warning); }
.dashboard-readiness.is-danger em { color: var(--danger); }

.dashboard-filter-form {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.58);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-period-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	border-radius: 18px;
	background: rgba(15, 95, 143, 0.08);
}

.dashboard-period-toggle .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 12px;
	border: 0;
	border-radius: 14px;
	color: #567486;
	font-size: 12px;
	font-weight: 800;
}

.dashboard-period-toggle .btn-check:checked + .btn {
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	color: #fff;
	box-shadow: 0 10px 20px rgba(15, 95, 143, 0.18);
}

.dashboard-filter-field {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	color: #5d7b8a;
}

.dashboard-filter-field .form-control,
.dashboard-filter-field .form-select {
	width: 148px;
	min-height: 34px;
	border-radius: 14px;
}

.dashboard-filter-field .form-select {
	width: min(320px, 72vw);
}

.dashboard-filter-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	margin: 0;
	padding: 6px 10px;
	border-radius: 14px;
	background: rgba(33, 180, 198, 0.08);
	color: #42677a;
	font-size: 12px;
	font-weight: 800;
}

.dashboard-filter-form .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px;
	border-radius: 14px;
	font-weight: 800;
}

.dashboard-filter-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	margin-inline-start: auto;
	padding: 6px 12px;
	border-radius: 14px;
	background: rgba(15, 95, 143, 0.07);
	color: #42677a;
	font-size: 12px;
	font-weight: 800;
}

.asset-filter-card {
	padding: 14px;
}

.asset-filter-form {
	gap: 12px;
}

.asset-search-field {
	flex: 1 1 360px;
}

.asset-search-field .input-group {
	min-width: min(460px, 76vw);
}

.asset-search-field .input-group-text,
.asset-search-field .form-control {
	min-height: 34px;
	border-color: #d7e5ec;
}

.asset-search-field .input-group-text {
	border-start-start-radius: 14px;
	border-end-start-radius: 14px;
}

.asset-search-field .form-control {
	border-start-end-radius: 14px;
	border-end-end-radius: 14px;
}

.report-filter-card {
	padding: 16px;
}

.report-filter-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px;
}

.report-filter-kicker {
	margin-bottom: 2px;
	color: #6a8796;
	font-size: 12px;
	font-weight: 800;
}

.report-heading-actions {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.report-range-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 7px 12px;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 14px;
	background: rgba(15, 95, 143, 0.07);
	color: #42677a;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.report-reset-link,
.report-print-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 34px;
	min-height: 34px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.62);
	color: #567486;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.report-reset-link span,
.report-print-link span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.report-print-link {
	color: #0f5f8f;
}

.report-filter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.report-filter-field {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin: 0;
	padding: 0;
}

.report-filter-facility {
	flex: 1 1 170px;
}

.report-filter-date {
	flex: 0 0 132px;
}

.report-filter-field span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.report-filter-field .form-select,
.report-filter-field .form-control {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 38px;
	padding-top: 6px;
	padding-bottom: 6px;
	border-radius: 14px;
}

.report-filter-date .form-control {
	width: 132px;
}

.report-period-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 16px;
	background: rgba(15, 95, 143, 0.08);
}

.report-period-toggle .btn,
.report-filter-form > .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding-inline: 10px;
	border-radius: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.report-period-toggle .btn {
	border: 0;
	color: #567486;
	font-size: 12px;
}

.report-period-toggle .btn i {
	display: none;
}

.report-period-toggle .btn-check:checked + .btn {
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	color: #fff;
	box-shadow: 0 10px 20px rgba(15, 95, 143, 0.18);
}

.report-cumulative-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	margin: 0;
	padding: 7px 9px;
	border-radius: 14px;
	background: rgba(33, 180, 198, 0.08);
	color: #42677a;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.followup-print-sheet {
	position: relative;
	overflow: hidden;
	padding: 20px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 251, 0.94)),
		linear-gradient(90deg, rgba(15, 95, 143, 0.06) 1px, transparent 1px),
		linear-gradient(180deg, rgba(15, 95, 143, 0.04) 1px, transparent 1px);
	background-size: auto, 22px 22px, 22px 22px;
}

.followup-print-header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: center;
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid rgba(15, 95, 143, 0.14);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(12, 34, 56, 0.96), rgba(15, 95, 143, 0.88));
	color: #fff;
}

.followup-print-kicker {
	margin-bottom: 4px;
	color: rgba(221, 247, 251, 0.84);
	font-size: 12px;
	font-weight: 800;
}

.followup-print-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.followup-print-brand img {
	width: 74px;
	max-height: 48px;
	object-fit: contain;
	padding: 5px 7px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
}

.followup-print-brand strong,
.followup-print-brand span {
	display: block;
}

.followup-print-brand strong {
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}

.followup-print-brand span {
	margin-top: 2px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 11px;
	font-weight: 800;
}

.followup-print-header h2 {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
}

.followup-print-header p {
	margin: 7px 0 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 12px;
	font-weight: 700;
}

.followup-print-score {
	display: inline-grid;
	place-items: center;
	text-align: center;
	font-weight: 800;
}

.followup-print-score {
	width: 112px;
	height: 96px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.followup-print-score.status-warning {
	background: rgba(216, 155, 28, 0.22);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 222, 155, 0.22);
}

.followup-print-score.status-critical {
	background: rgba(201, 79, 79, 0.26);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 205, 205, 0.24);
}

.followup-print-score strong {
	font-size: 28px;
	line-height: 1;
}

.followup-print-score span {
	margin-top: -8px;
	font-size: 11px;
}

.followup-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.followup-summary-grid--split {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.followup-summary-grid > div,
.followup-summary-metrics > div,
.followup-metric-row div {
	min-width: 0;
	padding: 11px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.followup-summary-card {
	padding: 0 !important;
	overflow: hidden;
	background: #fff !important;
}

.followup-summary-card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: linear-gradient(135deg, rgba(15, 95, 143, 0.1), rgba(33, 180, 198, 0.07));
}

.followup-summary-card-title i {
	display: inline-grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: 10px;
	background: #0f5f8f;
	color: #fff;
}

.followup-summary-card-title span {
	color: #0c2238;
	font-size: 13px;
	font-weight: 800;
}

.followup-summary-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.followup-summary-metrics > div {
	border-width: 1px 0 0 1px;
	border-radius: 0;
	box-shadow: none;
}

.followup-summary-metrics > div:last-child {
	border-left-width: 0;
}

.followup-screen-print-button {
	border-color: #0f5f8f !important;
	background: #0f5f8f !important;
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(15, 95, 143, 0.18);
}

.followup-screen-print-button i,
.followup-screen-print-button span {
	color: inherit !important;
}

.followup-executive-print {
	display: none;
}

.followup-executive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.followup-executive-card {
	overflow: hidden;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 14px;
	background: #fff;
}

.followup-executive-title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, rgba(15, 95, 143, 0.12), rgba(33, 180, 198, 0.07));
}

.followup-executive-title i {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: #0f5f8f;
	color: #fff;
}

.followup-executive-title h3 {
	margin: 0;
	color: #0c2238;
	font-size: 16px;
	font-weight: 800;
}

.followup-executive-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.followup-executive-stats div {
	min-width: 0;
	padding: 12px;
	border-top: 1px solid rgba(15, 95, 143, 0.1);
	border-left: 1px solid rgba(15, 95, 143, 0.1);
}

.followup-executive-stats div:nth-child(3n) {
	border-left: 0;
}

.followup-executive-stats span,
.followup-executive-stats strong {
	display: block;
}

.followup-executive-stats span {
	color: #668393;
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}

.followup-executive-stats strong {
	margin-top: 6px;
	color: #0c2238;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.followup-executive-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.86);
	color: #42677a;
	font-size: 11px;
	font-weight: 800;
}

.followup-executive-tables {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.followup-executive-table-block {
	overflow: hidden;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 14px;
	background: #fff;
}

.followup-executive-table-block h3 {
	margin: 0;
	padding: 10px 12px;
	background: #f4f8fa;
	color: #0c2238;
	font-size: 13px;
	font-weight: 800;
}

.followup-executive-table {
	width: 100%;
	border-collapse: collapse;
}

.followup-executive-table th,
.followup-executive-table td {
	padding: 8px 9px;
	border-top: 1px solid rgba(15, 95, 143, 0.1);
	color: #0c2238;
	font-size: 10.5px;
	font-weight: 800;
	vertical-align: middle;
}

.followup-executive-table th {
	background: rgba(15, 95, 143, 0.08);
	color: #42677a;
	font-size: 10px;
}

.followup-executive-table td:first-child {
	font-weight: 800;
}

.followup-executive-table-block--full {
	margin-top: 0;
}

.followup-executive-table--full {
	table-layout: fixed;
}

.followup-executive-table--full th:nth-child(1),
.followup-executive-table--full td:nth-child(1) {
	width: 38px;
	text-align: center;
}

.followup-executive-table--full th:nth-child(2),
.followup-executive-table--full td:nth-child(2) {
	width: 24%;
}

.followup-executive-table--full th:nth-child(4),
.followup-executive-table--full td:nth-child(4),
.followup-executive-table--full th:nth-child(6),
.followup-executive-table--full td:nth-child(6),
.followup-executive-table--full th:nth-child(8),
.followup-executive-table--full td:nth-child(8),
.followup-executive-table--full th:nth-child(9),
.followup-executive-table--full td:nth-child(9) {
	width: 64px;
	text-align: center;
}

.followup-executive-table--full th:nth-child(7),
.followup-executive-table--full td:nth-child(7) {
	width: 96px;
	text-align: center;
}

.followup-summary-grid span,
.followup-summary-grid strong,
.followup-metric-row span,
.followup-metric-row strong {
	display: block;
}

.followup-summary-grid span,
.followup-metric-row span {
	color: #668393;
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}

.followup-summary-grid strong,
.followup-metric-row strong {
	margin-top: 4px;
	color: #0c2238;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
}

.followup-split-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.followup-section {
	padding: 14px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.82);
}

.followup-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(15, 95, 143, 0.1);
}

.followup-section-head div {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.followup-section-head i {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 12px;
	background: rgba(15, 95, 143, 0.1);
	color: #0f5f8f;
}

.followup-section-head h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
}

.followup-section-head > span {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(15, 95, 143, 0.08);
	color: #0f5f8f;
	font-weight: 800;
}

.followup-metric-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.followup-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.followup-entry-card {
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 26px rgba(11, 43, 65, 0.06);
	overflow: hidden;
}

.followup-card-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	background: linear-gradient(180deg, rgba(248, 251, 253, 0.95), rgba(240, 247, 250, 0.78));
	border-bottom: 1px solid rgba(15, 95, 143, 0.08);
}

.followup-facility strong,
.followup-facility span,
.followup-status small,
.followup-card-column h4,
.followup-muted {
	display: block;
	min-width: 0;
}

.followup-facility strong {
	color: #0c2238;
	font-weight: 800;
}

.followup-facility span,
.followup-status small,
.followup-muted {
	margin-top: 4px;
	color: #6a8796;
	font-size: 10.5px;
	font-weight: 700;
}

.followup-status {
	display: grid;
	justify-items: end;
	gap: 2px;
	text-align: left;
}

.followup-card-body {
	display: grid;
	grid-template-columns: minmax(150px, 0.56fr) minmax(220px, 1fr) minmax(220px, 1fr);
	gap: 10px;
	padding: 12px;
}

.followup-card-column {
	min-width: 0;
}

.followup-card-column h4 {
	margin: 0 0 7px;
	color: #42677a;
	font-size: 11px;
	font-weight: 800;
}

.followup-numbers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.followup-numbers span {
	display: block;
	padding: 7px 8px;
	border: 1px solid rgba(15, 95, 143, 0.08);
	border-radius: 9px;
	background: rgba(15, 95, 143, 0.055);
	color: #42677a;
	font-size: 10.5px;
	font-weight: 800;
}

.followup-issue-list {
	display: grid;
	gap: 6px;
}

.followup-issue-list div {
	padding: 8px;
	border: 1px solid rgba(15, 95, 143, 0.08);
	border-radius: 9px;
	background: rgba(248, 251, 253, 0.76);
	line-height: 1.35;
}

.followup-issue-list .badge-soft {
	margin-inline-end: 5px;
	padding: 4px 7px;
	font-size: 10px;
}

.followup-issue-list strong {
	display: inline;
}

.followup-missing-list {
	margin: 0;
	padding: 0 16px 0 0;
	color: #794c09;
	font-weight: 700;
}

.followup-missing-list li {
	margin-bottom: 3px;
}

.dashboard-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.dashboard-kpi-card {
	min-height: 142px;
	border: 1px solid rgba(255, 255, 255, 0.78);
	background:
		radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--kpi-accent, #0f5f8f) 13%, transparent), transparent 38%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 250, 0.86));
}

.dashboard-kpi-card::before {
	height: 5px;
	background: linear-gradient(90deg, var(--kpi-accent, #0f5f8f), color-mix(in srgb, var(--kpi-accent, #0f5f8f) 62%, #21b4c6));
}

.dashboard-kpi-card .card-body {
	display: grid;
	min-height: 142px;
	align-content: space-between;
	gap: 10px;
	padding: 18px;
}

.dashboard-kpi-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dashboard-kpi-card .text-muted {
	font-size: 13px;
	font-weight: 800;
	color: #5d7b8a !important;
}

.dashboard-kpi-card h3 {
	margin-top: 7px;
	font-size: 19px;
	line-height: 1;
	color: #103247;
}

.dashboard-kpi-card .icon {
	flex: 0 0 auto;
	background: color-mix(in srgb, var(--kpi-accent, #0f5f8f) 12%, #ffffff);
	color: var(--kpi-accent, #0f5f8f);
}

.dashboard-kpi-card p {
	min-height: 36px;
	margin: 0;
	color: #667f8d;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.45;
}

.dashboard-kpi-card.is-blue { --kpi-accent: var(--blue); }
.dashboard-kpi-card.is-cyan { --kpi-accent: var(--cyan); }
.dashboard-kpi-card.is-success { --kpi-accent: var(--success); }
.dashboard-kpi-card.is-warning { --kpi-accent: var(--warning); }
.dashboard-kpi-card.is-danger { --kpi-accent: var(--danger); }

.dashboard-alert-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.dashboard-critical-alert {
	--critical-alert-accent: var(--success);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--critical-alert-accent) 22%, transparent);
	text-align: right;
	background:
		radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--critical-alert-accent) 13%, transparent), transparent 36%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--critical-alert-accent) 7%, #ffffff));
	cursor: pointer;
}

.dashboard-critical-alert.is-danger {
	--critical-alert-accent: var(--danger);
}

.dashboard-critical-alert.is-success {
	--critical-alert-accent: var(--success);
}

.dashboard-critical-alert:hover,
.dashboard-critical-alert:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 22px 42px color-mix(in srgb, var(--critical-alert-accent) 18%, rgba(11, 43, 65, 0.08));
}

.dashboard-critical-alert-icon,
.dashboard-critical-alert-action {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--critical-alert-accent) 13%, #ffffff);
	color: var(--critical-alert-accent);
	font-size: 23px;
}

.dashboard-critical-alert-copy {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas: "label value" "detail value";
	align-items: center;
	justify-content: start;
	gap: 3px 12px;
	min-width: 0;
}

.dashboard-critical-alert-copy span {
	grid-area: label;
	color: #5d7b8a;
	font-size: 13px;
	font-weight: 800;
}

.dashboard-critical-alert-copy strong {
	grid-area: value;
	color: var(--critical-alert-accent);
	font-size: 38px;
	line-height: 1;
}

.dashboard-critical-alert-copy em {
	grid-area: detail;
	color: #667f8d;
	font-size: 12.5px;
	font-style: normal;
	font-weight: 700;
}

@media (max-width: 768px) {
	.dashboard-alert-grid {
		grid-template-columns: 1fr;
	}
}

.dashboard-chart-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.dashboard-chart-card {
	min-height: 308px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dashboard-chart-card canvas {
	width: 100% !important;
	height: 230px !important;
}

.dashboard-panel-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dashboard-panel-title h5 {
	margin: 0;
	font-weight: 800;
}

.dashboard-panel-title span {
	color: #6b8796;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.dashboard-focus-card {
	min-height: 308px;
}

.dashboard-focus-list {
	display: grid;
	gap: 12px;
}

.dashboard-focus-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid color-mix(in srgb, var(--focus-accent, #0f5f8f) 18%, transparent);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), color-mix(in srgb, var(--focus-accent, #0f5f8f) 8%, #ffffff));
}

.dashboard-focus-item i {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--focus-accent, #0f5f8f) 12%, #ffffff);
	color: var(--focus-accent, #0f5f8f);
	font-size: 21px;
}

.dashboard-focus-item strong {
	display: block;
	color: #12354a;
	font-size: 24px;
	line-height: 1;
}

.dashboard-focus-item span {
	display: block;
	margin-top: 4px;
	color: #667f8d;
	font-size: 12.5px;
	font-weight: 700;
}

.dashboard-focus-item.is-success { --focus-accent: var(--success); }
.dashboard-focus-item.is-warning { --focus-accent: var(--warning); }
.dashboard-focus-item.is-danger { --focus-accent: var(--danger); }

.dashboard-empty-state {
	min-height: 230px;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 10px;
	padding: 24px;
	border: 1px dashed rgba(45, 211, 154, 0.38);
	border-radius: 22px;
	background:
		radial-gradient(circle at center, rgba(45, 211, 154, 0.12), transparent 58%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(239, 247, 250, 0.7));
	text-align: center;
}

.dashboard-empty-state i {
	font-size: 44px;
	color: var(--success);
}

.dashboard-empty-state strong {
	color: #12354a;
	font-size: 20px;
	font-weight: 800;
}

.dashboard-empty-state span {
	max-width: 460px;
	color: #667f8d;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
}

@media (max-width: 1200px) {
	.dashboard-chart-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.dashboard-chart-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-filter-form {
		align-items: stretch;
	}

	.dashboard-filter-field,
	.dashboard-filter-check,
	.dashboard-filter-form .btn,
	.dashboard-filter-summary {
		width: 100%;
	}

	.dashboard-filter-field {
		justify-content: space-between;
	}

	.dashboard-filter-field .form-control {
		width: min(100%, 180px);
	}

	.dashboard-period-toggle {
		width: 100%;
	}

	.dashboard-period-toggle .btn {
		flex: 1;
		justify-content: center;
	}

	.dashboard-chart-card canvas {
		height: 220px !important;
	}
}

.kpi-card {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
}

.kpi-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, rgba(15, 95, 143, 0.96), rgba(33, 180, 198, 0.9));
}

.kpi-card .card-body {
	padding: 18px 18px 16px;
}

.kpi-card .text-muted {
	font-size: 13px;
	color: #648190 !important;
}

.kpi-card h3 {
	margin-top: 6px;
	font-size: 19px;
	color: #12354a;
}

.kpi-card .icon {
	width: 52px;
	height: 52px;
	border: 1px solid rgba(15, 95, 143, 0.08);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(16, 111, 149, 0.12), rgba(33, 180, 198, 0.08));
	color: #0f5f8f;
	font-size: 24px;
}

.settings-action-icon {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 1px solid rgba(15, 95, 143, 0.08);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(16, 111, 149, 0.12), rgba(33, 180, 198, 0.08));
	color: #0f5f8f;
	font-size: 24px;
}

.settings-image-preview {
	display: grid;
	min-height: 92px;
	place-items: center;
	padding: 12px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.56);
}

.settings-image-preview img {
	display: block;
	max-width: 100%;
	max-height: 76px;
	object-fit: contain;
}

.settings-image-preview--icon {
	min-height: 92px;
}

.settings-image-preview--icon img {
	width: 64px;
	height: 64px;
}

.page-card {
	border-radius: 20px;
	padding: 16px;
}

.page-card h4,
.page-card h5 {
	color: #14354a;
}

.page-card h4 {
	font-size: 17px;
	line-height: 1.28;
}

.page-card h5 {
	font-size: 15px;
	line-height: 1.3;
}

.table {
	--bs-table-bg: transparent;
	--bs-table-striped-bg: transparent;
	--bs-table-hover-bg: rgba(15, 95, 143, 0.04);
	vertical-align: middle;
}

.table thead th {
	padding: 8px 10px;
	border-bottom: 0;
	background: rgba(15, 95, 143, 0.07);
	color: #0f537d;
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}

.table tbody td {
	padding: 8px 10px;
	border-color: rgba(18, 70, 103, 0.08);
	color: #274457;
	font-size: 11px;
}

.table tbody tr:last-child td {
	border-bottom: 0;
}

.extracts-list-card {
	max-width: 100%;
}

.extracts-list-table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	font-size: 10.5px;
}

.extracts-list-table thead th,
.extracts-list-table tbody td {
	padding: 7px 5px;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
}

.extracts-list-table thead th {
	line-height: 1.35;
}

.extracts-list-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.extracts-list-table .badge-soft,
.extracts-list-actions .btn {
	max-width: 100%;
	min-width: 0;
	white-space: normal;
	line-height: 1.25;
}

.extracts-list-actions form,
.extracts-list-actions .btn {
	width: 100%;
}

.extracts-list-actions .btn {
	padding-right: 3px;
	padding-left: 3px;
}

.badge-soft {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 8px 12px;
	font-weight: 700;
}

.status-normal {
	background: rgba(31, 138, 99, 0.14);
	color: var(--success);
}

.status-warning {
	background: rgba(216, 155, 28, 0.14);
	color: var(--warning);
}

.status-critical {
	background: rgba(201, 79, 79, 0.14);
	color: var(--danger);
}

.status-choice-select {
	font-weight: 700;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.status-choice-working {
	background: rgba(31, 138, 99, 0.08);
	border-color: rgba(31, 138, 99, 0.35);
	color: var(--success);
}

.status-choice-critical {
	background: rgba(201, 79, 79, 0.08);
	border-color: rgba(201, 79, 79, 0.35);
	color: var(--danger);
}

.mobile-data-card-list,
.mobile-data-sheet {
	display: none;
}

.mobile-data-card-list {
	gap: 12px;
}

.mobile-data-card {
	position: relative;
	overflow: hidden;
	padding: 12px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 18px;
	background:
		radial-gradient(circle at top right, rgba(33, 180, 198, 0.1), transparent 38%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 252, 0.88));
	box-shadow: 0 12px 28px rgba(11, 43, 65, 0.1);
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	touch-action: manipulation;
}

.mobile-data-card::after {
	content: '';
	position: absolute;
	inset: auto 18px 0 18px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(33, 180, 198, 0.34), transparent);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.mobile-data-card:hover,
.mobile-data-card:focus-visible {
	border-color: rgba(33, 180, 198, 0.26);
	box-shadow: 0 16px 34px rgba(11, 43, 65, 0.14);
	transform: translateY(-1px);
	outline: 0;
}

.mobile-data-card:active {
	transform: scale(0.992);
}

.mobile-data-card:hover::after,
.mobile-data-card:focus-visible::after {
	opacity: 1;
}

.mobile-data-card-header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: flex-start;
	gap: 10px;
}

.mobile-data-card-icon,
.mobile-data-sheet-icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	flex: 0 0 auto;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 15px;
	background: linear-gradient(145deg, rgba(15, 95, 143, 0.12), rgba(33, 180, 198, 0.1));
	color: #0f5f8f;
	font-size: 17px;
}

.mobile-data-card-title-wrap {
	min-width: 0;
}

.mobile-data-card-title-wrap h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #12354a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.mobile-data-card-title-wrap p {
	display: -webkit-box;
	margin: 4px 0 0;
	overflow: hidden;
	color: #698391;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.mobile-data-icon-button {
	display: inline-grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid rgba(15, 95, 143, 0.11);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	color: #31576e;
	box-shadow: 0 8px 18px rgba(10, 48, 75, 0.08);
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.mobile-data-icon-button:hover,
.mobile-data-icon-button:focus-visible {
	border-color: rgba(33, 180, 198, 0.26);
	background: #fff;
	transform: translateY(-1px);
	outline: 0;
}

.mobile-data-card-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 9px;
}

.mobile-data-card-badge-row .badge-soft,
.mobile-data-card-badge-row .badge {
	max-width: 100%;
	overflow: hidden;
	padding: 5px 9px;
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mobile-data-card-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 9px;
}

.mobile-data-card-meta-item {
	min-width: 0;
	padding: 7px 9px;
	border: 1px solid rgba(15, 95, 143, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.54);
}

.mobile-data-card-meta-item span,
.mobile-data-sheet-field span {
	display: block;
	color: #6b8796;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.35;
}

.mobile-data-card-meta-item strong,
.mobile-data-sheet-field strong {
	display: block;
	margin-top: 3px;
	color: #173246;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.mobile-data-card-meta-item strong {
	display: -webkit-box;
	overflow: hidden;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.mobile-data-actions-menu {
	min-width: 184px;
	padding: 8px;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 42px rgba(10, 37, 55, 0.18);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.mobile-data-actions-menu .dropdown-item,
.mobile-data-action-item > .btn,
.mobile-data-action-item form .btn,
.mobile-data-action-item a.btn,
.mobile-data-sheet-actions .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 34px;
	border-radius: 12px;
	font-weight: 800;
	white-space: normal;
}

.mobile-data-actions-menu .dropdown-item {
	color: #173246;
}

.mobile-data-actions-menu .dropdown-item:hover,
.mobile-data-actions-menu .dropdown-item:focus {
	background: rgba(15, 95, 143, 0.08);
	color: #0f5f8f;
}

.mobile-data-action-item {
	padding: 4px 0 0;
}

.mobile-data-action-form {
	margin: 0;
}

.mobile-data-empty {
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 118px;
	padding: 18px;
	border: 1px dashed rgba(15, 95, 143, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.56);
	color: #6b8796;
	font-weight: 800;
}

.mobile-data-empty i {
	font-size: 26px;
	color: #0f5f8f;
}

.mobile-data-sheet {
	position: fixed;
	inset: 0;
	z-index: 1085;
	align-items: end;
	justify-content: center;
	pointer-events: none;
}

.mobile-data-sheet-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(6, 25, 41, 0.44);
	opacity: 0;
	transition: opacity 0.24s ease;
}

.mobile-data-sheet-panel {
	position: relative;
	width: min(100%, 640px);
	max-height: min(82vh, 760px);
	overflow-y: auto;
	padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 24px 24px 0 0;
	background:
		radial-gradient(circle at top right, rgba(33, 180, 198, 0.12), transparent 36%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 251, 0.96));
	box-shadow: 0 -24px 60px rgba(8, 31, 48, 0.24);
	transform: translateY(100%);
	transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.2, 1);
	pointer-events: auto;
	overscroll-behavior: contain;
}

.mobile-data-sheet.is-open {
	pointer-events: auto;
}

.mobile-data-sheet.is-open .mobile-data-sheet-backdrop {
	opacity: 1;
}

.mobile-data-sheet.is-open .mobile-data-sheet-panel {
	transform: translateY(0);
}

.mobile-data-sheet-grabber {
	width: 48px;
	height: 5px;
	margin: 0 auto 12px;
	border-radius: 999px;
	background: rgba(15, 95, 143, 0.22);
}

.mobile-data-sheet-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.mobile-data-sheet-title-wrap {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.mobile-data-sheet-kicker {
	margin: 0 0 3px;
	color: #6b8796;
	font-size: 11px;
	font-weight: 800;
}

.mobile-data-sheet h3 {
	margin: 0;
	color: #12354a;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.mobile-data-sheet-status {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.mobile-data-sheet-fields {
	display: grid;
	gap: 9px;
	margin-top: 14px;
}

.mobile-data-sheet-field {
	padding: 11px 12px;
	border: 1px solid rgba(15, 95, 143, 0.08);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.62);
}

.mobile-data-sheet-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 16px;
}

body.mobile-sheet-open {
	overflow: hidden;
}

.extract-items-grid {
	--extract-tile-bg: rgba(15, 95, 143, 0.08);
	--extract-tile-border: rgba(15, 95, 143, 0.18);
	--extract-tile-ink: #0f5f8f;
}

.extract-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	border: 1px solid var(--extract-section-border, rgba(15, 95, 143, 0.18));
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
		var(--extract-section-bg, rgba(15, 95, 143, 0.08));
	color: var(--extract-section-ink, #0f5f8f);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 22px rgba(20, 53, 74, 0.05);
}

.extract-section-heading h6 {
	color: inherit;
	font-weight: 900;
}

.extract-section-heading p {
	color: rgba(51, 65, 85, 0.72);
	font-size: 12px;
	font-weight: 700;
}

.extract-section-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--extract-section-ink, #0f5f8f);
	color: #fff;
	font-weight: 900;
}

.extract-section-heading--labor { --extract-section-bg: rgba(31, 138, 99, 0.14); --extract-section-border: rgba(31, 138, 99, 0.25); --extract-section-ink: #1f7c5b; }
.extract-section-heading--items { --extract-section-bg: rgba(15, 95, 143, 0.12); --extract-section-border: rgba(15, 95, 143, 0.23); --extract-section-ink: #0f5f8f; }
.extract-section-heading--deductions { --extract-section-bg: rgba(216, 155, 28, 0.15); --extract-section-border: rgba(216, 155, 28, 0.26); --extract-section-ink: #9a6a10; }
.extract-section-heading--penalties { --extract-section-bg: rgba(201, 79, 79, 0.12); --extract-section-border: rgba(201, 79, 79, 0.23); --extract-section-ink: #a64040; }
.extract-section-heading--summary { --extract-section-bg: rgba(74, 111, 138, 0.13); --extract-section-border: rgba(74, 111, 138, 0.24); --extract-section-ink: #3d637f; }

.extract-item-tile {
	height: 100%;
	padding: 14px;
	border: 1px solid var(--extract-tile-border);
	border-radius: 12px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
		var(--extract-tile-bg);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 10px 22px rgba(20, 53, 74, 0.05);
}

.extract-labor-fields {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
	gap: 10px;
}

.extract-mini-label {
	display: block;
	margin-bottom: 5px;
	color: rgba(51, 65, 85, 0.68);
	font-size: 11px;
	font-weight: 800;
}

.extract-item-tile .form-label,
.extract-summary-metric .form-label {
	margin-bottom: 8px;
	color: var(--extract-tile-ink);
	font-weight: 800;
}

.extract-item-tile .input-group,
.extract-summary-metric .input-group {
	min-width: 0;
}

.extract-item-tile .form-control,
.extract-summary-metric .form-control {
	min-width: 0;
	border-color: var(--extract-tile-border);
	background: rgba(255, 255, 255, 0.9);
	font-weight: 700;
}

.extract-item-tile .input-group-text,
.extract-summary-metric .input-group-text {
	min-width: 48px;
	justify-content: center;
	border-color: var(--extract-tile-border);
	background: rgba(255, 255, 255, 0.72);
	color: var(--extract-tile-ink);
	font-weight: 800;
}

.extract-item-tile--0 { --extract-tile-bg: rgba(31, 138, 99, 0.14); --extract-tile-border: rgba(31, 138, 99, 0.24); --extract-tile-ink: #1f7c5b; }
.extract-item-tile--1 { --extract-tile-bg: rgba(15, 95, 143, 0.13); --extract-tile-border: rgba(15, 95, 143, 0.23); --extract-tile-ink: #0f5f8f; }
.extract-item-tile--2 { --extract-tile-bg: rgba(216, 155, 28, 0.16); --extract-tile-border: rgba(216, 155, 28, 0.26); --extract-tile-ink: #9a6a10; }
.extract-item-tile--3 { --extract-tile-bg: rgba(201, 79, 79, 0.12); --extract-tile-border: rgba(201, 79, 79, 0.22); --extract-tile-ink: #a64040; }
.extract-item-tile--4 { --extract-tile-bg: rgba(108, 92, 175, 0.13); --extract-tile-border: rgba(108, 92, 175, 0.23); --extract-tile-ink: #5b4f9c; }
.extract-item-tile--5 { --extract-tile-bg: rgba(33, 180, 198, 0.13); --extract-tile-border: rgba(33, 180, 198, 0.23); --extract-tile-ink: #128497; }
.extract-item-tile--6 { --extract-tile-bg: rgba(74, 111, 138, 0.13); --extract-tile-border: rgba(74, 111, 138, 0.23); --extract-tile-ink: #3d637f; }

.extract-summary-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
	padding: 14px;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 250, 0.82)),
		linear-gradient(90deg, rgba(31, 138, 99, 0.1), rgba(33, 180, 198, 0.1), rgba(216, 155, 28, 0.08));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.extract-summary-row--compact {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
}

.extract-summary-row--penalties {
	border-color: rgba(201, 79, 79, 0.16);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 244, 0.82)),
		linear-gradient(90deg, rgba(201, 79, 79, 0.1), rgba(216, 155, 28, 0.08));
}

.extract-summary-row--final {
	border-color: rgba(74, 111, 138, 0.16);
}

.extract-summary-metric {
	--extract-tile-bg: rgba(15, 95, 143, 0.08);
	--extract-tile-border: rgba(15, 95, 143, 0.18);
	--extract-tile-ink: #0f5f8f;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--extract-tile-border);
	border-radius: 12px;
	background: var(--extract-tile-bg);
}

.extract-summary-metric--primary {
	box-shadow: inset 0 0 0 1px rgba(31, 138, 99, 0.12);
}

.extract-attachment-field {
	padding: 13px 14px;
	border: 1px solid rgba(74, 111, 138, 0.18);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.76);
}

.extract-summary-metric--average { --extract-tile-bg: rgba(74, 111, 138, 0.12); --extract-tile-border: rgba(74, 111, 138, 0.22); --extract-tile-ink: #3d637f; }
.extract-summary-metric--gross { --extract-tile-bg: rgba(31, 138, 99, 0.14); --extract-tile-border: rgba(31, 138, 99, 0.24); --extract-tile-ink: #1f7c5b; }
.extract-summary-metric--deduction { --extract-tile-bg: rgba(216, 155, 28, 0.15); --extract-tile-border: rgba(216, 155, 28, 0.25); --extract-tile-ink: #9a6a10; }
.extract-summary-metric--net { --extract-tile-bg: rgba(15, 95, 143, 0.13); --extract-tile-border: rgba(15, 95, 143, 0.23); --extract-tile-ink: #0f5f8f; }

.extract-print-page {
	min-height: 100vh;
	padding: 24px;
	background: #eef4f7;
	color: #111827;
}

.extract-print-sheet {
	width: min(100%, 980px);
	margin: 0 auto;
	padding: 26px;
	border: 1px solid #cbd5dc;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 24px 55px rgba(15, 45, 65, 0.14);
}

.extract-print-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 18px;
}

.extract-print-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 2px solid #1f2937;
}

.extract-print-header img {
	width: 126px;
	height: auto;
}

.extract-print-kicker {
	margin-bottom: 5px;
	color: #0f5f8f;
	font-size: 13px;
	font-weight: 900;
}

.extract-print-header h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 900;
}

.extract-print-meta,
.extract-print-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0;
}

.extract-print-meta div,
.extract-print-summary div {
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #cbd5dc;
	background: #f8fafc;
}

.extract-print-meta span,
.extract-print-summary span {
	display: block;
	margin-bottom: 4px;
	color: #475569;
	font-size: 12px;
	font-weight: 800;
}

.extract-print-meta strong,
.extract-print-summary strong {
	display: block;
	font-size: 15px;
	font-weight: 900;
}

.extract-print-section {
	margin-top: 16px;
}

.extract-print-section h2 {
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #1f2937;
	border-bottom: 0;
	background: #e8eef5;
	font-size: 16px;
	font-weight: 900;
	text-align: center;
}

.extract-print-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.extract-print-table th,
.extract-print-table td {
	padding: 8px 10px;
	border: 1px solid #1f2937;
	font-size: 14px;
	font-weight: 800;
}

.extract-print-table th {
	background: #f1f5f9;
	text-align: center;
}

.extract-print-money {
	width: 210px;
	background: #dcecff;
	text-align: center;
	direction: ltr;
}

.extract-print-total td {
	background: #eef2f7;
	font-weight: 900;
}

.extract-print-total .extract-print-money {
	background: #cfe3ff;
}

.extract-print-final {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
	padding: 13px 16px;
	border: 2px solid #1f2937;
	background: #e8eef5;
	font-size: 17px;
	font-weight: 900;
}

.extract-print-final strong {
	direction: ltr;
}

.btn {
	border-radius: 14px;
	font-weight: 700;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	box-shadow: 0 14px 30px rgba(15, 95, 143, 0.22);
}

.btn-primary:hover {
	background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 88%, #000), color-mix(in srgb, var(--cyan) 88%, #000));
	border-color: transparent;
}

.btn-outline-primary {
	border-color: rgba(15, 95, 143, 0.18);
	color: #0f5f8f;
	background: rgba(255, 255, 255, 0.72);
}

.btn-outline-primary:hover {
	border-color: rgba(15, 95, 143, 0.24);
	background: rgba(15, 95, 143, 0.08);
	color: #0d527a;
}

.form-control,
.form-select {
	min-height: 48px;
	border: 1px solid rgba(18, 70, 103, 0.12);
	background: rgba(250, 253, 255, 0.94);
	box-shadow: none;
}

.form-control::placeholder {
	color: #91a6b3;
}

.form-control:focus,
.form-select:focus {
	border-color: rgba(15, 95, 143, 0.32);
	box-shadow: 0 0 0 4px rgba(15, 95, 143, 0.08);
}

.asset-combobox {
	position: relative;
}

.asset-combobox-toggle {
	width: 100%;
	text-align: right;
	white-space: normal;
}

.asset-combobox-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 1080;
	padding: 10px;
	border: 1px solid rgba(18, 70, 103, 0.14);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 20px 46px rgba(12, 34, 56, 0.16);
}

.asset-combobox-menu .form-control {
	min-height: 42px;
}

.asset-combobox-options {
	max-height: 230px;
	overflow-y: auto;
	margin-top: 8px;
	padding-left: 2px;
}

.asset-combobox-option,
.asset-combobox-empty {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 9px 10px;
	background: transparent;
	color: #173246;
	text-align: right;
}

.asset-combobox-option:hover,
.asset-combobox-option:focus,
.asset-combobox-option.is-selected {
	background: rgba(15, 95, 143, 0.08);
	color: #0f5f8f;
}

.asset-combobox-toggle.is-invalid {
	border-color: var(--danger);
	box-shadow: 0 0 0 4px rgba(201, 79, 79, 0.08);
}

.asset-combobox-empty {
	color: #718898;
}

.metric-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.cleanliness-qr-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.cleanliness-qr-img,
.cleanliness-qr-placeholder {
	width: min(100%, 260px);
	aspect-ratio: 1;
	margin-inline: auto;
	border: 1px solid rgba(18, 70, 103, 0.1);
	border-radius: 18px;
	background: #fff;
	object-fit: contain;
	padding: 12px;
}

.cleanliness-qr-placeholder {
	display: grid;
	place-items: center;
	color: rgba(15, 95, 143, 0.45);
	font-size: 72px;
}

.cleanliness-rating-breakdown {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.cleanliness-rating-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(18, 70, 103, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.72);
}

.cleanliness-rating-face {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 14px;
	background: rgba(33, 180, 198, 0.1);
	font-size: 25px;
}

.cleanliness-rating-item strong,
.cleanliness-rating-item span {
	display: block;
}

.cleanliness-rating-item span {
	color: #718898;
	font-size: 12px;
}

.mini-card {
	border-radius: 22px;
	padding: 16px;
}

.timeline {
	border-right: 2px solid rgba(15, 95, 143, 0.12);
	padding-right: 18px;
}

.timeline-item {
	position: relative;
	margin-bottom: 12px;
	border: 1px solid rgba(18, 70, 103, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	padding: 14px;
}

.timeline-item::before {
	content: '';
	position: absolute;
	top: 18px;
	right: -25px;
	width: 11px;
	height: 11px;
	border: 3px solid rgba(15, 95, 143, 0.14);
	border-radius: 50%;
	background: #0f5f8f;
}

.modal-content {
	border-radius: 28px;
	overflow: hidden;
}

.logout-confirm-modal .modal-content {
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 24px;
	background:
		radial-gradient(circle at 12% 0%, rgba(33, 180, 198, 0.18), transparent 38%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 250, 0.94));
	box-shadow: 0 26px 70px rgba(6, 24, 39, 0.22);
}

.logout-confirm-modal .modal-body {
	display: grid;
	gap: 12px;
	justify-items: center;
	padding: 26px 22px 22px;
	text-align: center;
}

.logout-confirm-icon {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 20px;
	background: linear-gradient(135deg, #0f5f8f, #19a8be);
	box-shadow: 0 16px 32px rgba(15, 95, 143, 0.22);
	color: #fff;
	font-size: 26px;
}

.logout-confirm-modal h5 {
	margin: 4px 0 0;
	color: #12354a;
	font-size: 18px;
	font-weight: 800;
}

.logout-confirm-modal p {
	margin: 0;
	color: #607d8d;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.7;
}

.logout-confirm-actions {
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
}

.logout-confirm-actions .btn {
	min-height: 42px;
	border-radius: 14px;
	font-size: 12.5px;
	font-weight: 800;
}

.modal-header,
.modal-footer {
	border-color: rgba(18, 70, 103, 0.08);
	padding: 18px 22px;
}

.modal-body {
	padding: 22px;
}

.modal-title {
	color: #14354a;
	font-weight: 800;
}

.critical-check-sheet-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 16px;
	border: 1px dashed rgba(15, 95, 143, 0.24);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(245, 251, 253, 0.95), rgba(236, 246, 250, 0.88));
	color: #49697d;
	font-weight: 600;
}

.critical-check-sheet-placeholder i {
	font-size: 20px;
	color: #0f5f8f;
}

.critical-check-sheet {
	padding: 16px;
	border: 1px solid rgba(15, 95, 143, 0.12);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 251, 0.92));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.critical-check-modal {
	width: min(96vw, 1480px);
	max-width: 96vw;
}

.critical-check-modal .modal-body {
	padding: 20px;
}

.critical-check-sheet-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.critical-check-sheet-summary div {
	padding: 12px 14px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.72);
}

.critical-check-sheet-summary small {
	display: block;
	margin-bottom: 4px;
	color: #688291;
	font-size: 12px;
	font-weight: 700;
}

.critical-check-sheet-summary strong {
	color: #12354a;
	font-size: 14px;
	font-weight: 800;
}

.critical-check-sheet-toolbar {
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid rgba(15, 95, 143, 0.1);
	border-radius: 18px;
	background: rgba(15, 95, 143, 0.04);
	color: #466577;
	font-size: 13px;
	font-weight: 600;
}

.critical-check-form-table {
	width: 100%;
	table-layout: fixed;
	margin-bottom: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.critical-check-form-table thead th {
	background: rgba(15, 95, 143, 0.1);
	white-space: normal;
	vertical-align: middle;
	padding: 12px 10px;
	font-size: 12px;
}

.critical-check-form-table tbody th {
	background: rgba(15, 95, 143, 0.04);
	color: #0f537d;
	font-size: 13px;
	font-weight: 800;
	white-space: normal;
	padding: 12px 10px;
}

.critical-check-form-table tbody td {
	padding: 10px 8px;
}

.critical-check-form-table thead th:nth-child(1),
.critical-check-form-table tbody td:nth-child(1) {
	width: 84px;
}

.critical-check-form-table thead th:nth-child(2),
.critical-check-form-table tbody th:nth-child(2) {
	width: 16%;
}

.critical-check-form-table thead th:nth-child(3),
.critical-check-form-table tbody td:nth-child(3) {
	width: 19%;
}

.critical-check-form-table thead th:nth-child(4),
.critical-check-form-table thead th:nth-child(5),
.critical-check-form-table thead th:nth-child(6),
.critical-check-form-table thead th:nth-child(7),
.critical-check-form-table tbody td:nth-child(4),
.critical-check-form-table tbody td:nth-child(5),
.critical-check-form-table tbody td:nth-child(6),
.critical-check-form-table tbody td:nth-child(7) {
	width: 74px;
}

.critical-check-form-table thead th:nth-child(8),
.critical-check-form-table tbody td:nth-child(8) {
	width: 17%;
}

.critical-check-form-table tbody tr.is-disabled {
	opacity: 0.62;
}

.critical-check-row-toggle-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 60px;
}

.critical-check-row-toggle-wrap .form-check-input {
	float: none;
	margin: 0;
	width: 1.1rem;
	height: 1.1rem;
}

.critical-check-row-toggle-wrap .form-check-label {
	font-weight: 700;
	color: #113a53;
	font-size: 12px;
}

.critical-check-system-cell {
	display: grid;
	gap: 4px;
	text-align: right;
}

.critical-check-system-cell strong {
	font-size: 13px;
	font-weight: 800;
	color: #0f537d;
}

.critical-check-system-cell span {
	font-size: 12px;
	font-weight: 700;
	color: #214a63;
}

.critical-check-system-cell small {
	font-size: 11px;
	font-weight: 600;
	color: #7390a1;
}

.critical-check-form-table .form-control,
.critical-check-form-table .form-select {
	min-width: 0;
	min-height: 42px;
	padding: 8px 10px;
	font-size: 13px;
}

.critical-check-form-table input[type="number"] {
	text-align: center;
}

.critical-check-note-input {
	min-width: 0;
}

@media (max-width: 1199.98px) {
	.critical-check-modal {
		width: calc(100vw - 24px);
		max-width: calc(100vw - 24px);
	}

	.critical-check-sheet-summary {
		grid-template-columns: 1fr;
	}

	.critical-check-form-table {
		table-layout: auto;
	}
}

@media (max-width: 991.98px) {
	.critical-check-sheet {
		padding: 12px;
	}

	.critical-check-sheet-toolbar {
		font-size: 12px;
	}
}

@media (max-width: 767.98px) {
	.critical-check-modal {
		width: 100%;
		max-width: 100%;
		min-height: 100%;
		margin: 0 !important;
		transform: none !important;
	}

	.modal-dialog.critical-check-modal,
	.modal-dialog-centered.critical-check-modal {
		display: block;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		min-height: 100%;
		margin: 0 !important;
		transform: none !important;
	}

	.critical-check-modal .modal-content {
		min-height: 100dvh;
		max-height: 100dvh;
		width: 100%;
		overflow: hidden;
		border-radius: 0;
	}

	.critical-check-modal .modal-body {
		min-width: 0;
		overflow-x: hidden;
		overflow-y: auto;
		padding: 10px;
	}

	.critical-check-modal .modal-body > .row {
		--bs-gutter-x: 0;
		--bs-gutter-y: 0.75rem;
		width: 100%;
		margin-right: 0;
		margin-left: 0;
	}

	.critical-check-modal .modal-body > .row > [class*="col-"] {
		padding-right: 0;
		padding-left: 0;
	}

	.critical-check-modal .modal-body > .row,
	.critical-check-modal .modal-body .col-12,
	.critical-check-sheet,
	.critical-check-sheet .table-responsive {
		max-width: 100%;
		min-width: 0;
	}

	.critical-check-modal .modal-footer {
		position: sticky;
		bottom: 0;
		z-index: 4;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--paper) 92%, #ffffff);
		box-shadow: 0 -12px 28px rgba(8, 31, 48, 0.12);
	}

	.critical-check-modal .modal-footer .btn {
		min-height: 46px;
		border-radius: 15px;
		font-weight: 800;
	}

	.critical-check-sheet {
		padding: 10px;
		border-radius: 18px;
	}

	.critical-check-sheet-summary {
		gap: 9px;
	}

	.critical-check-sheet-summary div {
		padding: 10px;
		border-radius: 15px;
	}

	.critical-check-sheet-summary .form-control {
		min-height: 46px;
		border-radius: 14px;
		font-size: 15px;
	}

	.critical-check-sheet-toolbar {
		margin: 10px 0 12px;
		padding: 10px 12px;
		border-radius: 16px;
		font-size: 12px;
		line-height: 1.65;
	}

	.critical-check-sheet .table-responsive {
		overflow: visible;
	}

	.critical-check-form-table,
	.critical-check-form-table thead,
	.critical-check-form-table tbody,
	.critical-check-form-table tr,
	.critical-check-form-table th,
	.critical-check-form-table td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	.critical-check-form-table thead {
		display: none;
	}

	.critical-check-form-table tbody {
		display: grid;
		width: 100%;
		gap: 12px;
	}

	.critical-check-form-table tbody tr {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		padding: 13px;
		border: 1px solid rgba(15, 95, 143, 0.12);
		border-radius: 18px;
		background:
			radial-gradient(circle at top right, rgba(33, 180, 198, 0.09), transparent 42%),
			linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 252, 0.9));
		box-shadow: 0 12px 26px rgba(11, 43, 65, 0.09);
	}

	.critical-check-form-table tbody tr.is-disabled {
		opacity: 0.7;
	}

	.critical-check-form-table tbody td,
	.critical-check-form-table tbody th {
		padding: 0;
		border: 0;
		background: transparent;
	}

	.critical-check-form-table tbody td::before,
	.critical-check-form-table tbody th::before {
		display: block;
		margin-bottom: 6px;
		color: #6b8796;
		font-size: 11px;
		font-weight: 800;
	}

	.critical-check-form-table [data-check-row] > td:nth-child(1)::before,
	.critical-check-form-table [data-fuel-row] > td:nth-child(1)::before { content: 'التضمين'; }
	.critical-check-form-table [data-check-row] > th:nth-child(2)::before { content: 'النظام'; }
	.critical-check-form-table [data-check-row] > td:nth-child(3)::before { content: 'الأصل'; }
	.critical-check-form-table [data-check-row] > td:nth-child(4)::before { content: 'الحالة'; }
	.critical-check-form-table [data-check-row] > td:nth-child(5)::before { content: 'ملاحظات'; }
	.critical-check-form-table [data-fuel-row] > td:nth-child(2)::before { content: 'المولد'; }
	.critical-check-form-table [data-fuel-row] > td:nth-child(3)::before { content: 'اسم الخزان'; }
	.critical-check-form-table [data-fuel-row] > td:nth-child(4)::before { content: 'السعة باللتر'; }
	.critical-check-form-table [data-fuel-row] > td:nth-child(5)::before { content: 'نسبة الوقود'; }
	.critical-check-form-table [data-fuel-row] > td:nth-child(6)::before { content: 'المتبقي باللتر'; }
	.critical-check-form-table [data-fuel-row] > td:nth-child(7)::before { content: 'ملاحظات'; }

	.critical-check-row-toggle-wrap {
		width: 100%;
		min-width: 0;
		min-height: 50px;
		flex-direction: row;
		justify-content: space-between;
		padding: 10px 12px;
		border: 1px solid rgba(31, 138, 99, 0.18);
		border-radius: 15px;
		background: rgba(31, 138, 99, 0.08);
	}

	.critical-check-row-toggle-wrap .form-check-input {
		width: 1.35rem;
		height: 1.35rem;
		margin: 0;
	}

	.critical-check-row-toggle-wrap .form-check-label {
		font-size: 14px;
	}

	.critical-check-system-cell {
		gap: 5px;
		padding: 11px 12px;
		border: 1px solid rgba(15, 95, 143, 0.09);
		border-radius: 15px;
		background: rgba(255, 255, 255, 0.56);
	}

	.critical-check-system-cell strong {
		font-size: 14px;
		line-height: 1.35;
	}

	.critical-check-system-cell span {
		font-size: 13px;
		line-height: 1.45;
	}

	.critical-check-system-cell small {
		font-size: 11px;
		line-height: 1.45;
	}

	.critical-check-form-table .form-control,
	.critical-check-form-table .form-select {
		width: 100%;
		min-height: 50px;
		padding: 11px 12px;
		border-radius: 15px;
		font-size: 15px;
		font-weight: 700;
	}

	.critical-check-form-table input[type="number"] {
		text-align: start;
	}

	.critical-check-form-table [data-fuel-row] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.critical-check-form-table [data-fuel-row] > td:nth-child(1),
	.critical-check-form-table [data-fuel-row] > td:nth-child(2),
	.critical-check-form-table [data-fuel-row] > td:nth-child(3),
	.critical-check-form-table [data-fuel-row] > td:nth-child(7) {
		grid-column: 1 / -1;
	}

	.critical-check-form-table [data-check-row] > td:nth-child(5) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767.98px) {
	html.mobile-data-cards-booting .page-card table:not([data-mobile-cards-skip]):not([data-mobile-card-ready="1"]):not(.critical-check-form-table):not(.extract-print-table) {
		visibility: hidden;
	}

	body.mobile-data-cards-ready {
		overflow-x: hidden;
	}

	.mobile-data-card {
		overflow: visible;
	}

	.mobile-data-card:has(.mobile-data-actions-menu.show) {
		z-index: 3;
	}

	.mobile-data-actions {
		position: relative;
	}

	.mobile-data-actions-menu.show {
		left: 0 !important;
		right: auto !important;
		transform: translate3d(0, 40px, 0) !important;
	}

	.has-mobile-data-cards {
		overflow: visible !important;
	}

	table.mobile-data-card-source {
		display: none !important;
	}

	.mobile-data-card-list {
		display: grid;
	}

	.mobile-data-sheet:not([hidden]) {
		display: flex;
	}

	.table-responsive.has-mobile-data-cards {
		margin-inline: 0;
		padding-inline: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mobile-data-card,
	.mobile-data-icon-button,
	.mobile-data-sheet-backdrop,
	.mobile-data-sheet-panel {
		transition: none;
	}
}

.btn-close {
	box-shadow: none !important;
	opacity: 0.65;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--blue: #58bde6;
	--cyan: #47d4e4;
	--navy: #061421;
	--ink: #e6f2f7;
	--soft: #081a28;
	--paper: rgba(9, 23, 36, 0.86);
	--line: rgba(172, 220, 239, 0.16);
	--danger: #ff8c8c;
	--warning: #f2bf55;
	--success: #58d99f;
}

:root[data-theme="dark"] body {
	background:
		radial-gradient(circle at 12% 12%, rgba(71, 212, 228, 0.12), transparent 30%),
		radial-gradient(circle at 82% 6%, rgba(88, 189, 230, 0.1), transparent 25%),
		linear-gradient(180deg, #05111d 0%, #081a28 48%, #061521 100%);
	color: var(--ink);
}

:root[data-theme="dark"] body::before {
	background-image:
		linear-gradient(rgba(170, 224, 241, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(170, 224, 241, 0.08) 1px, transparent 1px);
	opacity: 0.34;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .page-card,
:root[data-theme="dark"] .kpi-card,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .modal-content {
	border-color: rgba(178, 226, 244, 0.14);
	background:
		radial-gradient(circle at top left, rgba(71, 212, 228, 0.09), transparent 34%),
		linear-gradient(145deg, rgba(10, 28, 43, 0.94), rgba(7, 20, 33, 0.86));
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
	color: var(--ink);
}

:root[data-theme="dark"] .topbar-logo,
:root[data-theme="dark"] .user-chip,
:root[data-theme="dark"] .dashboard-readiness,
:root[data-theme="dark"] .dashboard-filter-form,
:root[data-theme="dark"] .dashboard-period-toggle,
:root[data-theme="dark"] .dashboard-filter-check,
:root[data-theme="dark"] .dashboard-filter-summary,
:root[data-theme="dark"] .dashboard-focus-item,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .extract-section-heading,
:root[data-theme="dark"] .extract-item-tile,
:root[data-theme="dark"] .extract-summary-row,
:root[data-theme="dark"] .extract-summary-metric,
:root[data-theme="dark"] .extract-attachment-field,
:root[data-theme="dark"] .settings-image-preview,
:root[data-theme="dark"] .asset-combobox-menu,
:root[data-theme="dark"] .mobile-data-card,
:root[data-theme="dark"] .mobile-data-card-meta-item,
:root[data-theme="dark"] .mobile-data-actions-menu,
:root[data-theme="dark"] .mobile-data-empty,
:root[data-theme="dark"] .mobile-data-sheet-field,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .critical-check-sheet,
:root[data-theme="dark"] .critical-check-sheet-summary div,
:root[data-theme="dark"] .critical-check-sheet-toolbar,
:root[data-theme="dark"] .critical-check-sheet-placeholder {
	border-color: rgba(172, 220, 239, 0.14);
	background: rgba(13, 32, 48, 0.88);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .dashboard-kpi-card {
	border-color: rgba(172, 220, 239, 0.14);
	background:
		radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--kpi-accent, #58bde6) 18%, transparent), transparent 38%),
		linear-gradient(145deg, rgba(12, 31, 47, 0.94), rgba(8, 23, 36, 0.86));
}

:root[data-theme="dark"] .mobile-data-sheet-panel {
	border-color: rgba(172, 220, 239, 0.16);
	background:
		radial-gradient(circle at top right, rgba(71, 212, 228, 0.12), transparent 34%),
		linear-gradient(180deg, rgba(11, 29, 44, 0.98), rgba(7, 20, 33, 0.96));
	box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .mobile-data-icon-button,
:root[data-theme="dark"] .mobile-data-card-icon,
:root[data-theme="dark"] .mobile-data-sheet-icon {
	border-color: rgba(172, 220, 239, 0.16);
	background: rgba(13, 32, 48, 0.86);
	color: #9de9f4;
}

:root[data-theme="dark"] .mobile-data-sheet-backdrop {
	background: rgba(0, 7, 12, 0.62);
}

:root[data-theme="dark"] .critical-check-form-table tbody tr {
	border-color: rgba(172, 220, 239, 0.14);
	background:
		radial-gradient(circle at top right, rgba(71, 212, 228, 0.1), transparent 42%),
		linear-gradient(145deg, rgba(13, 32, 48, 0.94), rgba(8, 23, 36, 0.9));
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .critical-check-system-cell,
:root[data-theme="dark"] .critical-check-row-toggle-wrap {
	border-color: rgba(172, 220, 239, 0.14);
	background: rgba(8, 23, 36, 0.74);
}

:root[data-theme="dark"] .critical-check-form-table tbody td::before,
:root[data-theme="dark"] .critical-check-form-table tbody th::before {
	color: rgba(211, 232, 240, 0.72);
}

:root[data-theme="dark"] .critical-check-modal .modal-footer {
	background: rgba(8, 23, 36, 0.94);
	box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .mobile-data-actions-menu .dropdown-item {
	color: #edf8fb;
}

:root[data-theme="dark"] .mobile-data-actions-menu .dropdown-item:hover,
:root[data-theme="dark"] .mobile-data-actions-menu .dropdown-item:focus {
	background: rgba(71, 212, 228, 0.12);
	color: #9de9f4;
}

:root[data-theme="dark"] .topbar h5,
:root[data-theme="dark"] .user-chip strong,
:root[data-theme="dark"] .page-card h4,
:root[data-theme="dark"] .page-card h5,
:root[data-theme="dark"] .kpi-card h3,
:root[data-theme="dark"] .dashboard-kpi-card h3,
:root[data-theme="dark"] .dashboard-panel-title h5,
:root[data-theme="dark"] .dashboard-focus-item strong,
:root[data-theme="dark"] .dashboard-empty-state strong,
:root[data-theme="dark"] .modal-title,
:root[data-theme="dark"] .mobile-data-card-title-wrap h3,
:root[data-theme="dark"] .mobile-data-card-meta-item strong,
:root[data-theme="dark"] .mobile-data-sheet h3,
:root[data-theme="dark"] .mobile-data-sheet-field strong,
:root[data-theme="dark"] .critical-check-sheet-summary strong,
:root[data-theme="dark"] .critical-check-system-cell span,
:root[data-theme="dark"] .critical-check-row-toggle-wrap .form-check-label {
	color: #edf8fb;
}

:root[data-theme="dark"] .topbar span,
:root[data-theme="dark"] .user-chip span,
:root[data-theme="dark"] .dashboard-readiness small,
:root[data-theme="dark"] .dashboard-period-toggle .btn,
:root[data-theme="dark"] .dashboard-filter-field,
:root[data-theme="dark"] .dashboard-filter-check,
:root[data-theme="dark"] .dashboard-filter-summary,
:root[data-theme="dark"] .dashboard-kpi-card .text-muted,
:root[data-theme="dark"] .dashboard-kpi-card p,
:root[data-theme="dark"] .dashboard-panel-title span,
:root[data-theme="dark"] .dashboard-focus-item span,
:root[data-theme="dark"] .dashboard-empty-state span,
:root[data-theme="dark"] .kpi-card .text-muted,
:root[data-theme="dark"] .form-text,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .extract-mini-label,
:root[data-theme="dark"] .extract-section-heading p,
:root[data-theme="dark"] .mobile-data-card-title-wrap p,
:root[data-theme="dark"] .mobile-data-card-meta-item span,
:root[data-theme="dark"] .mobile-data-sheet-kicker,
:root[data-theme="dark"] .mobile-data-sheet-field span,
:root[data-theme="dark"] .critical-check-sheet-summary small,
:root[data-theme="dark"] .critical-check-system-cell small,
:root[data-theme="dark"] .critical-check-sheet-placeholder {
	color: rgba(211, 232, 240, 0.72) !important;
	
}

:root[data-theme="dark"] .topbar .btn-outline-light,
:root[data-theme="dark"] .btn-outline-primary {
	border-color: rgba(148, 215, 238, 0.18);
	background: rgba(12, 31, 47, 0.88);
	color: #9de9f4;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .topbar .btn-outline-light:hover,
:root[data-theme="dark"] .btn-outline-primary:hover {
	border-color: rgba(148, 215, 238, 0.32);
	background: rgba(20, 52, 76, 0.96);
	color: #e6fbff;
}

:root[data-theme="dark"] .table {
	--bs-table-hover-bg: rgba(71, 212, 228, 0.08);
	color: var(--ink);
}

:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] .critical-check-form-table thead th,
:root[data-theme="dark"] .critical-check-form-table tbody th {
	background: rgba(71, 212, 228, 0.1);
	color: #9de9f4;
}

:root[data-theme="dark"] .table tbody td {
	border-color: rgba(172, 220, 239, 0.12);
	color: rgba(237, 248, 251, 0.86);
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .asset-combobox-toggle,
:root[data-theme="dark"] .extract-item-tile .form-control,
:root[data-theme="dark"] .extract-summary-metric .form-control,
:root[data-theme="dark"] .extract-item-tile .input-group-text,
:root[data-theme="dark"] .extract-summary-metric .input-group-text {
	border-color: rgba(172, 220, 239, 0.16);
	background-color: rgba(8, 22, 34, 0.94);
	color: #edf8fb;
}

:root[data-theme="dark"] .form-control::placeholder {
	color: rgba(211, 232, 240, 0.46);
}

:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus {
	border-color: rgba(71, 212, 228, 0.42);
	box-shadow: 0 0 0 4px rgba(71, 212, 228, 0.1);
}

:root[data-theme="dark"] .asset-combobox-option,
:root[data-theme="dark"] .asset-combobox-empty {
	color: rgba(237, 248, 251, 0.88);
}

:root[data-theme="dark"] .asset-combobox-option:hover,
:root[data-theme="dark"] .asset-combobox-option:focus,
:root[data-theme="dark"] .asset-combobox-option.is-selected {
	background: rgba(71, 212, 228, 0.12);
	color: #9de9f4;
}

:root[data-theme="dark"] .modal-header,
:root[data-theme="dark"] .modal-footer {
	border-color: rgba(172, 220, 239, 0.12);
}

:root[data-theme="dark"] .btn-close {
	filter: invert(1) grayscale(100%) brightness(180%);
}

@keyframes sidebarSlideIn {
	from {
		transform: translateX(24px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@media (max-width: 1080px) {
	.sidebar {
		width: 74px;
		padding-inline: 8px;
	}

	.brand {
		justify-content: center;
		padding: 8px;
	}

	.brand div:last-child,
	.sidebar nav a {
		font-size: 0;
	}

	.sidebar nav a {
		justify-content: center;
		padding: 6px;
	}

	nav a i {
		margin: 0;
	}

	nav a.is-active::before {
		right: auto;
		left: 50%;
		bottom: 8px;
		top: auto;
		transform: translateX(-50%);
	}

	.main-content {
		width: calc(100% - 86px);
		margin-right: 86px;
	}
}

@media (max-width: 768px) {
	body {
		background:
			radial-gradient(circle at 12% 4%, rgba(33, 180, 198, 0.16), transparent 28%),
			linear-gradient(180deg, #f7fbfd 0%, #eef5f8 100%);
	}

	body.sidebar-open {
		overflow: hidden;
	}

	body.sidebar-open .sidebar {
		transform: none !important;
		opacity: 1 !important;
		pointer-events: auto;
		transition: none !important;
		animation: none;
	}

	body.sidebar-open .sidebar-backdrop {
		opacity: 1;
		pointer-events: auto;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}

	.sidebar {
		top: 0;
		right: auto;
		left: 0;
		bottom: 0;
		width: min(82vw, 320px);
		display: block;
		pointer-events: none;
		transform: translateX(-108%) !important;
		opacity: 0 !important;
		padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px));
		border-radius: 0 22px 22px 0;
		box-shadow: 18px 0 50px rgba(4, 20, 34, 0.28);
		transition: none;
	}

	.sidebar::after {
		display: none;
	}

	.brand {
		margin-bottom: 14px;
		padding: 8px;
		border-radius: 18px;
	}

	.brand-icon {
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}

	.brand div:last-child,
	.sidebar nav a {
		font-size: 11px;
	}

	.brand b {
		font-size: 12px;
	}

	.brand small {
		font-size: 9px;
	}

	.sidebar nav {
		gap: 6px;
		padding-bottom: 10px;
	}

	.sidebar-group {
		border-radius: 14px;
	}

	.sidebar-group__summary {
		padding: 8px 9px;
		font-size: 10px;
	}

	.sidebar-group.is-current .sidebar-group__summary::after {
		padding: 2px 6px 1px;
		font-size: 8px;
	}

	.sidebar-group__label > i,
	.sidebar-group__chevron {
		width: 22px;
		height: 22px;
		border-radius: 8px;
		font-size: 11px;
		flex-basis: 22px;
	}

	.sidebar-group__links {
		padding: 0 7px 7px;
	}

	.sidebar nav a {
		justify-content: flex-start;
		min-height: 36px;
		padding: 5px 7px;
		border-radius: 11px;
		font-weight: 700;
	}

	.sidebar-group__links a {
		padding-right: 13px;
		margin-right: 2px;
	}

	.sidebar-group__links a::after {
		right: 5px;
	}

	.sidebar nav a.mobile-primary-link {
		display: none;
	}

	nav a i {
		width: 26px;
		height: 26px;
		flex-basis: 26px;
		border-radius: 9px;
		font-size: 13px;
	}

	nav a.is-active::before {
		right: 8px;
		left: auto;
		bottom: auto;
		top: 50%;
		transform: translateY(-50%);
	}

	.main-content {
		width: 100%;
		margin-right: 0;
		padding: max(10px, env(safe-area-inset-top, 0px)) 0 calc(96px + env(safe-area-inset-bottom, 0px));
	}

	.mobile-bottom-nav {
		position: fixed;
		right: max(10px, env(safe-area-inset-right, 0px));
		left: max(10px, env(safe-area-inset-left, 0px));
		bottom: max(10px, env(safe-area-inset-bottom, 0px));
		z-index: 8;
		display: flex;
		align-items: stretch;
		gap: 5px;
		padding: 7px;
		border: 1px solid rgba(255, 255, 255, 0.74);
		border-radius: 22px;
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 18px 42px rgba(10, 42, 64, 0.18);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}

	.mobile-bottom-nav__item {
		display: grid;
		min-width: 0;
		min-height: 54px;
		flex: 1 1 0;
		place-items: center;
		align-content: center;
		gap: 3px;
		padding: 6px 3px;
		border: 1px solid transparent;
		border-radius: 17px;
		background: transparent;
		color: #5d7481;
		font: inherit;
		font-size: 9px;
		font-weight: 800;
		line-height: 1.12;
		text-align: center;
		text-decoration: none;
		white-space: normal;
		transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	}

	.mobile-bottom-nav__item i {
		display: grid;
		width: 27px;
		height: 27px;
		place-items: center;
		border-radius: 11px;
		background: rgba(15, 95, 143, 0.08);
		color: #0f5f8f;
		font-size: 15px;
	}

	.mobile-bottom-nav__item span {
		display: block;
		max-width: 100%;
		max-height: 2.25em;
		overflow-wrap: anywhere;
		overflow: hidden;
	}

	.mobile-bottom-nav__item:hover,
	.mobile-bottom-nav__item:focus-visible,
	.mobile-bottom-nav__item.is-active {
		border-color: rgba(15, 95, 143, 0.12);
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 245, 250, 0.92));
		color: #12354a;
		box-shadow: 0 10px 24px rgba(10, 48, 75, 0.09);
	}

	.mobile-bottom-nav__item:hover,
	.mobile-bottom-nav__item:focus-visible {
		transform: translateY(-1px);
	}

	.mobile-bottom-nav__item.is-active i {
		background: linear-gradient(135deg, #0f5f8f, #19a8be);
		color: #fff;
		box-shadow: 0 10px 18px rgba(15, 95, 143, 0.2);
	}

	.mobile-bottom-nav__item--more {
		cursor: pointer;
	}

	.topbar {
		top: max(8px, env(safe-area-inset-top, 0px));
		isolation: isolate;
		overflow: hidden;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 8px;
		min-height: 58px;
		padding: 8px 10px;
		margin: 0 10px;
		border-color: rgba(255, 255, 255, 0.82);
		border-radius: 20px;
		background:
			radial-gradient(circle at 8% 12%, rgba(33, 180, 198, 0.14), transparent 34%),
			linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 251, 0.9));
		box-shadow: 0 18px 42px rgba(10, 42, 64, 0.16);
	}

	.topbar::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(90deg, rgba(15, 95, 143, 0.08), transparent 52%, rgba(33, 180, 198, 0.1));
		pointer-events: none;
	}

	.topbar-main {
		width: auto;
		min-width: 0;
		gap: 9px;
	}

	.topbar-logo {
		display: grid;
		width: 40px;
		height: 40px;
		border-radius: 15px;
		background: rgba(255, 255, 255, 0.86);
		box-shadow: 0 12px 24px rgba(10, 48, 75, 0.1);
	}

	.topbar-copy {
		overflow: hidden;
	}

	.topbar-actions {
		width: auto;
		justify-content: flex-end;
		gap: 5px;
		min-width: 0;
	}

	.topbar h5 {
		overflow: hidden;
		font-size: 12.5px;
		line-height: 1.2;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.topbar span {
		overflow: hidden;
		font-size: 9.5px;
		line-height: 1.25;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.user-chip {
		max-width: 82px;
		min-width: 0;
		padding: 6px 7px;
		border-radius: 12px;
	}

	.user-chip strong,
	.user-chip span {
		overflow: hidden;
		max-width: 62px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.theme-toggle {
		width: 32px;
		height: 32px;
		min-width: 32px;
		padding: 0;
		justify-content: center;
	}

	.topbar-actions > a.btn-outline-light {
		width: 32px;
		height: 32px;
		min-width: 32px;
		padding: 0;
		font-size: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 12px;
	}

	.topbar-actions > a.btn-outline-light i {
		margin: 0;
		font-size: 17px;
	}

	.theme-toggle .theme-toggle-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.mobile-nav-toggle {
		display: none !important;
		flex: 0 0 auto;
		width: 32px;
		height: 32px;
		border-radius: 10px;
	}

	.content-wrap {
		padding: 14px 10px 0;
	}

	.hero,
	.page-card,
	.kpi-card,
	.mini-card,
	.modal-content {
		border-radius: 22px;
	}

	.hero,
	.page-card {
		padding: 18px;
	}

	.page-card {
		overflow-x: auto;
	}

	.page-card .table {
		min-width: 620px;
	}

	.page-card .table th,
	.page-card .table td {
		white-space: nowrap;
	}

	.extracts-list-card {
		overflow-x: visible;
	}

	.page-card .extracts-list-table {
		display: block;
		width: 100%;
		min-width: 0;
		table-layout: auto;
	}

	.extracts-list-table thead {
		display: none;
	}

	.extracts-list-table tbody {
		display: grid;
		gap: 10px;
	}

	.extracts-list-table tbody tr {
		display: block;
		padding: 12px;
		border: 1px solid rgba(18, 70, 103, 0.1);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.82);
		box-shadow: 0 12px 28px rgba(8, 32, 51, 0.08);
	}

	.extracts-list-table tbody td {
		display: grid;
		grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
		gap: 8px;
		align-items: start;
		padding: 7px 0;
		border-bottom: 1px solid rgba(18, 70, 103, 0.07);
		white-space: normal;
		overflow-wrap: anywhere;
		line-height: 1.45;
	}

	.extracts-list-table tbody td:last-child {
		border-bottom: 0;
	}

	.extracts-list-table tbody td::before {
		color: #0f5f8f;
		font-size: 10.5px;
		font-weight: 800;
		line-height: 1.4;
	}

	.extracts-list-table tbody td:nth-child(1)::before { content: 'المنشأة'; }
	.extracts-list-table tbody td:nth-child(2)::before { content: 'المقاول'; }
	.extracts-list-table tbody td:nth-child(3)::before { content: 'الشهر'; }
	.extracts-list-table tbody td:nth-child(4)::before { content: 'وضع الصرف'; }
	.extracts-list-table tbody td:nth-child(5)::before { content: 'متوسط التقييم'; }
	.extracts-list-table tbody td:nth-child(6)::before { content: 'إجمالي المستخلص'; }
	.extracts-list-table tbody td:nth-child(7)::before { content: 'حسميات الغياب والشواغر'; }
	.extracts-list-table tbody td:nth-child(8)::before { content: 'الصافي قبل الغرامات'; }
	.extracts-list-table tbody td:nth-child(9)::before { content: 'ضريبة 15%'; }
	.extracts-list-table tbody td:nth-child(10)::before { content: 'إجمالي الغرامات'; }
	.extracts-list-table tbody td:nth-child(11)::before { content: 'صافي قيمة المستخلص'; }
	.extracts-list-table tbody td:nth-child(12)::before { content: 'متبقي العقد'; }
	.extracts-list-table tbody td:nth-child(13)::before { content: 'الحالة'; }
	.extracts-list-table tbody td:nth-child(14)::before { content: 'رقم المعاملة'; }
	.extracts-list-table tbody td:nth-child(15)::before { content: 'آخر موعد'; }
	.extracts-list-table tbody td:nth-child(16)::before { content: 'المؤشر'; }
	.extracts-list-table tbody td:nth-child(17)::before { content: 'إجراء'; }

	.extracts-list-table tbody td.extracts-list-actions {
		display: grid;
		grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
		gap: 6px 8px;
	}

	.extracts-list-table tbody td.extracts-list-actions::before {
		grid-row: 1 / span 4;
	}

	.extracts-list-table tbody td.extracts-list-actions > * {
		grid-column: 2;
	}

	.extract-summary-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.modal-dialog {
		margin: 0.75rem;
	}

	.auth-page {
		align-items: center;
		padding: 18px;
	}

	.auth-card {
		width: min(100%, 420px);
		margin-inline: auto;
		grid-template-columns: 1fr;
		min-height: auto;
		border-radius: 24px;
		background: rgba(246, 251, 253, 0.96);
		box-shadow: 0 24px 56px rgba(3, 18, 30, 0.34);
		backdrop-filter: blur(18px) saturate(1.04);
		-webkit-backdrop-filter: blur(18px) saturate(1.04);
		color: #203a4e;
	}

	.auth-card::before {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.12));
		opacity: 0.75;
	}

	.auth-intro-panel,
	.auth-login-panel {
		grid-column: auto;
		grid-row: auto;
	}

	.auth-intro-panel {
		display: none;
	}

	.auth-login-panel {
		padding: 30px 24px 34px;
	}

	.auth-feature-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.auth-feature-grid article {
		min-height: auto;
		padding: 16px;
	}

	.auth-access-note {
		align-items: flex-start;
	}

	.auth-brand-icon {
		width: 132px;
		height: 132px;
	}

	.auth-brand h2 {
		font-size: 23px;
	}
}

@media (max-width: 520px) {
	.extract-labor-fields,
	.extract-summary-row--compact {
		grid-template-columns: 1fr;
	}

	.extract-summary-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.topbar .btn-outline-light {
		width: 34px;
		min-width: 34px;
	}

	.topbar-actions {
		align-items: center;
		gap: 6px;
	}

	.user-chip {
		align-items: center;
		max-width: 76px;
		padding-inline: 6px;
	}

	.user-chip strong,
	.user-chip span {
		max-width: 58px;
	}

	.page-card .table {
		min-width: 560px;
	}

	.page-card .extracts-list-table {
		min-width: 0;
	}

	.extracts-list-table tbody td,
	.extracts-list-table tbody td.extracts-list-actions {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.extracts-list-table tbody td::before {
		line-height: 1.35;
	}

	.extracts-list-table tbody td.extracts-list-actions::before,
	.extracts-list-table tbody td.extracts-list-actions > * {
		grid-column: 1;
		grid-row: auto;
	}

	.kpi-card h3 {
		font-size: 19px;
	}

	.auth-card {
		border-radius: 20px;
	}

	.auth-intro-panel {
		gap: 18px;
		padding: 28px 18px 24px;
	}

	.auth-intro-panel h1 {
		font-size: 30px;
	}

	.auth-lead {
		font-size: 14px;
	}

	.auth-access-note {
		gap: 12px;
		padding: 16px;
	}

	.auth-access-note i {
		width: 42px;
		height: 42px;
		font-size: 22px;
	}

	.auth-login-panel {
		padding: 28px 18px 30px;
	}

	.auth-brand {
		gap: 12px;
	}

	.auth-brand-icon {
		width: 112px;
		height: 112px;
	}

	.topbar-logo {
		width: 36px;
		height: 36px;
		border-radius: 12px;
	}

	.auth-brand h2 {
		font-size: 21px;
	}
}

@page extract-print {
	size: A4 portrait;
	margin: 8mm 9mm 8mm 12mm;
}

@page followup-print {
	size: A4 portrait;
	margin: 8mm;
}

@media print {
	html,
	body {
		width: 189mm;
		min-height: 0;
	}

	body {
		font-size: 12px;
		line-height: 1.22;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.sidebar,
	.topbar,
	.mobile-bottom-nav,
	.d-print-none,
	.extract-print-actions,
	.sidebar-backdrop {
		display: none !important;
	}

	.main-content {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.content-wrap {
		padding: 0;
	}

	.page-card,
	.kpi-card,
	.hero {
		border: 1px solid #d7dde1;
		box-shadow: none;
		background: #fff;
	}

	body::before {
		display: none;
	}

	.extract-print-page {
		page: extract-print;
		padding: 0;
		background: #fff;
	}

	.extract-print-sheet {
		width: 100%;
		max-width: none;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.extract-print-header {
		gap: 14px;
		padding-bottom: 10px;
		border-bottom-width: 1px;
	}

	.extract-print-header img {
		width: 108px;
	}

	.extract-print-kicker {
		margin-bottom: 3px;
		font-size: 11px;
	}

	.extract-print-header h1 {
		font-size: 20px;
	}

	.extract-print-meta,
	.extract-print-summary {
		gap: 7px;
		margin: 10px 0;
	}

	.extract-print-meta div,
	.extract-print-summary div {
		padding: 7px 9px;
	}

	.extract-print-meta span,
	.extract-print-summary span {
		margin-bottom: 2px;
		font-size: 10px;
	}

	.extract-print-meta strong,
	.extract-print-summary strong {
		font-size: 12px;
	}

	.extract-print-section {
		margin-top: 8px;
	}

	.extract-print-section h2 {
		padding: 5px 10px;
		font-size: 13px;
	}

	.extract-print-table th,
	.extract-print-table td {
		padding: 5px 8px;
		font-size: 12px;
		line-height: 1.2;
	}

	.extract-print-money {
		width: 160px;
	}

	.extract-print-final {
		margin-top: 10px;
		padding: 9px 12px;
		border-width: 1px;
		font-size: 15px;
	}

	.extract-print-meta,
	.extract-print-summary,
	.extract-print-section,
	.extract-print-final {
		break-inside: avoid;
	}

	.followup-print-sheet {
		page: followup-print;
		display: flex;
		height: 274mm;
		min-height: 0;
		max-height: 274mm;
		box-sizing: border-box;
		flex-direction: column;
		overflow: hidden;
		break-after: avoid;
		page-break-after: avoid;
		padding: 0;
		border: 0;
		background: #fff !important;
	}

	.followup-print-header {
		grid-template-columns: 1fr auto;
		gap: 12px;
		margin-bottom: 7px;
		padding: 10px 12px;
		border: 1px solid #0f5f8f;
		border-radius: 9px;
		background: #0f5f8f !important;
		color: #fff !important;
	}

	.followup-print-brand {
		gap: 8px;
		margin-bottom: 5px;
	}

	.followup-print-brand img {
		width: 74px;
		max-height: 44px;
		padding: 4px 7px;
		border-radius: 7px;
		background: #fff !important;
	}

	.followup-print-brand strong {
		font-size: 13px;
		color: #fff !important;
	}

	.followup-print-brand span {
		font-size: 9.5px;
		color: rgba(255, 255, 255, 0.82) !important;
	}

	.followup-print-kicker {
		font-size: 10px;
	}

	.followup-print-header h2 {
		font-size: 19px;
		color: #fff !important;
	}

	.followup-print-header p {
		font-size: 10.5px;
		color: rgba(255, 255, 255, 0.82) !important;
	}

	.followup-print-score {
		width: 92px;
		height: 76px;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.14) !important;
		color: #fff !important;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
	}

	.followup-print-score strong {
		font-size: 25px;
	}

	.followup-print-score span {
		margin-top: -8px;
		font-size: 9.5px;
	}

	.followup-summary-grid,
	.followup-split-grid {
		display: none !important;
	}

	.followup-executive-print {
		display: block !important;
		display: flex !important;
		flex: 1;
		flex-direction: column;
		justify-content: flex-start;
		gap: 6px;
		margin-top: 6px;
		min-height: 0;
	}

	.followup-executive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}

	.followup-executive-card {
		border-color: #d7dde1;
		border-radius: 7px;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.followup-executive-title {
		padding: 7px 9px;
		background: #f4f8fa !important;
	}

	.followup-executive-title i {
		width: 30px;
		height: 30px;
		border-radius: 6px;
		font-size: 14px;
	}

	.followup-executive-title h3 {
		font-size: 12.5px;
	}

	.followup-executive-stats div {
		padding: 8px 7px;
		border-color: #d7dde1;
	}

	.followup-executive-stats span {
		font-size: 8.5px;
	}

	.followup-executive-stats strong {
		margin-top: 4px;
		font-size: 20px;
	}

	.followup-executive-footer {
		margin-top: 6px;
		padding: 6px 8px;
		border-color: #d7dde1;
		border-radius: 7px;
		background: #f8fafb !important;
		font-size: 9px;
	}

	.followup-executive-tables {
		align-items: stretch;
		gap: 7px;
		margin-top: 7px;
	}

	.followup-executive-table-block {
		display: flex;
		flex-direction: column;
		border: 1px solid #b9c8d2;
		border-radius: 8px;
		box-shadow: 0 0 0 1px rgba(15, 95, 143, 0.04);
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.followup-executive-table-block h3 {
		padding: 7px 9px;
		border-bottom: 1px solid #b9c8d2;
		background: #eaf3f7 !important;
		color: #0c2238 !important;
		font-size: 11px;
		letter-spacing: 0;
	}

	.followup-executive-table-block--full {
		flex: 0 1 auto;
	}

	.followup-executive-table {
		display: table !important;
		flex: 1;
		table-layout: fixed;
		border-collapse: collapse;
	}

	.followup-executive-table.mobile-data-card-source {
		display: table !important;
	}

	.followup-executive-print .mobile-data-card-list {
		display: none !important;
	}

	.followup-executive-table--full {
		flex: 0 1 auto;
	}

	.followup-executive-table th,
	.followup-executive-table td {
		padding: 4px 5px;
		border-color: #c7d3da;
		font-size: 8px;
		line-height: 1.16;
	}

	.followup-executive-table th {
		background: #f2f6f8 !important;
		color: #274b5f !important;
		font-size: 7.8px;
	}

	.followup-executive-table thead {
		display: table-header-group;
	}

	.followup-executive-table tr {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.followup-executive-table tbody tr:nth-child(even) td {
		background: #f8fafb !important;
	}

	.followup-executive-table--full th,
	.followup-executive-table--full td {
		padding: 5px 4px;
		font-size: 8.4px;
		line-height: 1.22;
	}

	.followup-executive-table--full th:nth-child(1),
	.followup-executive-table--full td:nth-child(1) {
		width: 7mm;
	}

	.followup-executive-table--full th:nth-child(2),
	.followup-executive-table--full td:nth-child(2) {
		width: 38mm;
	}

	.followup-executive-table--full th:nth-child(4),
	.followup-executive-table--full td:nth-child(4),
	.followup-executive-table--full th:nth-child(6),
	.followup-executive-table--full td:nth-child(6),
	.followup-executive-table--full th:nth-child(8),
	.followup-executive-table--full td:nth-child(8),
	.followup-executive-table--full th:nth-child(9),
	.followup-executive-table--full td:nth-child(9) {
		width: 13mm;
	}

	.followup-executive-table--full th:nth-child(7),
	.followup-executive-table--full td:nth-child(7) {
		width: 24mm;
	}

	.followup-executive-table .badge-soft {
		padding: 2px 4px;
		font-size: 7px;
		white-space: nowrap;
	}

	.followup-summary-grid > div,
	.followup-summary-metrics > div,
	.followup-metric-row div {
		padding: 6px;
		border-color: #d7dde1;
		border-radius: 6px;
		background: #fff;
	}

	.followup-summary-card {
		border-radius: 6px;
	}

	.followup-summary-card-title {
		padding: 5px 7px;
		background: #f4f8fa !important;
	}

	.followup-summary-card-title i {
		width: 20px;
		height: 20px;
		border-radius: 5px;
		font-size: 10px;
	}

	.followup-summary-card-title span {
		font-size: 9.5px;
	}

	.followup-summary-metrics > div {
		border-radius: 0;
	}

	.followup-summary-grid span,
	.followup-metric-row span {
		font-size: 8.5px;
	}

	.followup-summary-grid strong,
	.followup-metric-row strong {
		font-size: 16px;
	}

	.followup-split-grid {
		gap: 7px;
	}

	.followup-section {
		padding: 7px;
		border-color: #d7dde1;
		border-radius: 6px;
		background: #fff;
		break-inside: auto;
	}

	.followup-section-head {
		margin-bottom: 6px;
	}

	.followup-section-head i {
		width: 24px;
		height: 24px;
		border-radius: 6px;
	}

	.followup-section-head h3 {
		font-size: 12px;
	}

	.followup-section-head > span {
		padding: 4px 7px;
		font-size: 9px;
	}

	.followup-metric-row {
		gap: 5px;
		margin-bottom: 6px;
	}

	.followup-card-grid {
		gap: 5px;
	}

	.followup-entry-card {
		border-color: #d7dde1;
		border-radius: 6px;
		box-shadow: none;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.followup-card-head {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px;
		padding: 5px 7px;
		background: #f4f8fa !important;
	}

	.followup-card-body {
		grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
		gap: 6px;
		padding: 6px 7px;
	}

	.followup-facility strong {
		font-size: 9px;
	}

	.followup-facility span,
	.followup-status small,
	.followup-card-column h4,
	.followup-muted {
		font-size: 7.5px;
	}

	.followup-card-column h4 {
		margin-bottom: 4px;
	}

	.followup-entry-card .badge-soft,
	.followup-issue-list .badge-soft {
		padding: 3px 5px;
		font-size: 8px;
	}

	.followup-numbers {
		gap: 3px;
	}

	.followup-numbers span,
	.followup-issue-list div {
		padding: 3px 4px;
		border-radius: 6px;
		font-size: 7.5px;
		line-height: 1.18;
	}

	.followup-issue-list {
		gap: 3px;
	}

	.followup-issue-list small {
		font-size: 7.5px;
	}

	.followup-missing-list {
		padding-right: 10px;
		font-size: 7.5px;
		line-height: 1.18;
	}
}
