:root {
	--elshahed-navy: #0a3d62;
	--elshahed-green: #12796d;
	--elshahed-background: #f4f6f8;
}

.elshahed-site-brand {
	max-width: 220px;
	max-height: 44px;
	object-fit: contain;
}

.navbar {
	border-bottom-color: #e6ebf0;
	background: #fff;
	box-shadow: 0 2px 12px rgb(15 23 42 / 4%);
}

.navbar-home img,
.navbar-brand img {
	max-height: 34px;
	object-fit: contain;
}

.elshahederp-desk .page-container {
	background: #f6f8fa;
}

.elshahederp-desk .page-head {
	background: transparent;
}

.elshahederp-desk .standard-sidebar,
.elshahederp-desk .desk-sidebar {
	background: #fff;
}

.elshahederp-desk .workspace {
	border-radius: 12px;
}

.elshahederp-desk .widget,
.elshahederp-desk .shortcut-widget-box,
.elshahederp-desk .number-card {
	border-color: #e6ebf0;
	border-radius: 12px;
	box-shadow: 0 3px 14px rgb(15 23 42 / 4%);
}

.elshahederp-desk .btn-primary {
	border-color: var(--elshahed-green);
	background: var(--elshahed-green);
}

.elshahederp-desk .btn-primary:hover {
	border-color: #0f645b;
	background: #0f645b;
}

.for-login.elshahed-login-layout {
	display: grid;
	width: min(100% - 32px, 980px);
	min-height: 560px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
	margin: 6vh auto;
	overflow: hidden;
	border: 1px solid #e6ebf0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgb(10 61 98 / 14%);
}

.elshahed-login-brand-panel {
	position: relative;
	display: flex;
	min-height: 560px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(32px, 6vw, 68px);
	overflow: hidden;
	background: linear-gradient(145deg, #0a3d62, #082f4a);
	color: #fff;
}

.elshahed-login-brand-panel img {
	width: min(100%, 270px);
	max-height: 66px;
	margin-bottom: 36px;
	object-fit: contain;
	object-position: left center;
	filter: brightness(0) invert(1);
}

.elshahed-login-brand-panel h1 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 750;
	letter-spacing: 0.02em;
}

.elshahed-login-brand-panel p {
	max-width: 360px;
	margin: 0;
	color: rgb(255 255 255 / 82%);
	font-size: 16px;
	line-height: 1.9;
}

.elshahed-login-accent {
	position: absolute;
	right: -55px;
	bottom: -85px;
	width: 240px;
	height: 240px;
	border: 32px solid rgb(18 121 109 / 65%);
	border-radius: 50%;
}

.elshahed-login-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 5vw, 52px);
}

.elshahed-login-content .page-card {
	width: 100%;
	max-width: 400px;
	border: 0;
	box-shadow: none;
}

.elshahed-login-content .page-card-head h4 {
	color: var(--elshahed-navy);
	font-size: 23px;
	font-weight: 700;
}

.elshahed-login-content .btn-login {
	min-height: 44px;
	border-color: var(--elshahed-green);
	border-radius: 8px;
	background: var(--elshahed-green);
	font-weight: 700;
}

.elshahed-login-content .btn-login:hover {
	border-color: #0f645b;
	background: #0f645b;
}

.elshahed-login-content .form-control {
	min-height: 44px;
	border-radius: 8px;
}

@media (max-width: 700px) {
	.for-login.elshahed-login-layout {
		width: min(100% - 24px, 480px);
		min-height: auto;
		grid-template-columns: minmax(0, 1fr);
		margin: 3vh auto;
	}

	.elshahed-login-brand-panel {
		min-height: 220px;
		padding: 28px;
	}

	.elshahed-login-brand-panel img {
		width: 190px;
		max-height: 48px;
		margin-bottom: 20px;
	}

	.elshahed-login-brand-panel h1 {
		font-size: 25px;
	}

	.elshahed-login-brand-panel p {
		font-size: 14px;
	}

	.elshahed-login-content {
		padding: 20px;
	}
}

.elshahed-dashboard {
	min-height: calc(100vh - 60px);
	padding: 28px;
	background: var(--elshahed-background);
}

.elshahed-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 auto 26px;
	max-width: 1440px;
}

.elshahed-toolbar {
	display: flex;
	width: min(100%, 520px);
	align-items: center;
	gap: 12px;
}

.elshahed-eyebrow {
	margin: 0 0 6px;
	color: var(--elshahed-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.elshahed-hero h1 {
	margin: 0;
	color: var(--elshahed-navy);
	font-size: clamp(22px, 2.8vw, 30px);
	font-weight: 750;
	white-space: nowrap;
}

.elshahed-subtitle {
	margin: 6px 0 0;
	color: #64748b;
}

.elshahed-search {
	display: flex;
	width: min(100%, 360px);
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #64748b;
}

.elshahed-search input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: #0f172a;
}

.elshahed-company-picker {
	display: flex;
	min-width: 175px;
	flex-direction: column;
	gap: 5px;
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
}

.elshahed-company-picker select {
	width: 100%;
	min-height: 42px;
	padding: 8px 30px 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-size: 13px;
}

.elshahed-metrics {
	display: grid;
	max-width: 1440px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0 auto 30px;
}

.elshahed-metric-card {
	display: flex;
	min-height: 98px;
	flex-direction: column;
	justify-content: center;
	gap: 9px;
	padding: 18px 20px;
	border: 1px solid #e6ebf0;
	border-radius: 12px;
	background: #fff;
}

.elshahed-metric-label {
	color: #64748b;
	font-size: 12px;
}

.elshahed-metric-card .elshahed-metric {
	margin: 0;
	padding: 0;
	font-size: 22px;
}

.elshahed-workspaces {
	max-width: 1440px;
	margin: 0 auto;
}

.elshahed-admin {
	max-width: 1440px;
	margin: 30px auto 0;
}

.elshahed-admin-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.elshahed-admin-card {
	display: flex;
	min-height: 150px;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 18px;
	border: 1px solid #e6ebf0;
	border-radius: 12px;
	background: #fff;
}

.elshahed-admin-card h3 {
	margin: 0;
	color: var(--elshahed-navy);
	font-size: 15px;
	font-weight: 700;
}

.elshahed-admin-card p {
	flex: 1;
	margin: 0;
	color: #64748b;
	font-size: 12px;
}

.elshahed-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elshahed-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 14px;
}

.elshahed-section-heading h2 {
	margin: 0;
	color: var(--elshahed-navy);
	font-size: 20px;
	font-weight: 700;
}

.elshahed-section-heading p {
	margin: 5px 0 0;
	color: #64748b;
	font-size: 13px;
}

.elshahed-module-layout {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
	align-items: start;
	gap: 14px;
}

.elshahed-module-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	background: #fff;
}

.elshahed-module-button {
	display: flex;
	width: 100%;
	min-width: 0;
	align-items: center;
	gap: 10px;
	padding: 10px 11px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: #334155;
	text-align: start;
}

.elshahed-module-button:hover,
.elshahed-module-button.is-active {
	border-color: #c5d9d6;
	background: #f1f8f7;
	color: var(--elshahed-navy);
}

.elshahed-module-button > .fa {
	display: grid;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	place-items: center;
	border-radius: 8px;
	background: #e9f3f2;
	color: var(--elshahed-green);
}

.elshahed-module-label {
	overflow: hidden;
	flex: 1;
	font-size: 13px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elshahed-category-count {
	display: grid;
	min-width: 28px;
	height: 28px;
	place-items: center;
	padding: 0 7px;
	border-radius: 20px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
}

.elshahed-submodule-panel {
	min-height: 230px;
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	background: #fff;
}

.elshahed-submodule-heading {
	margin-bottom: 16px;
	padding-bottom: 13px;
	border-bottom: 1px solid #edf1f5;
}

.elshahed-submodule-heading h3 {
	margin: 0;
	color: var(--elshahed-navy);
	font-size: 17px;
	font-weight: 700;
}

.elshahed-submodule-heading p {
	margin: 5px 0 0;
	color: #64748b;
	font-size: 12px;
}

.elshahed-submodule-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.elshahed-workspace-link {
	display: grid;
	min-width: 0;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	column-gap: 9px;
	padding: 10px;
	border: 1px solid #e8edf2;
	border-radius: 9px;
	background: #f9fbfc;
	color: #334155;
	text-decoration: none;
}

.elshahed-workspace-link:hover {
	border-color: #b7d6d1;
	background: #f1f8f7;
	color: var(--elshahed-navy);
	text-decoration: none;
}

.elshahed-workspace-link > .fa {
	grid-row: span 2;
	color: var(--elshahed-green);
	text-align: center;
}

.elshahed-workspace-title {
	overflow: hidden;
	color: var(--elshahed-navy);
	font-size: 13px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elshahed-workspace-parent {
	overflow: hidden;
	color: #64748b;
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elshahed-loading,
.elshahed-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 24px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #64748b;
	text-align: center;
}

@media (max-width: 900px) {
	.elshahed-hero {
		align-items: stretch;
		flex-direction: column;
	}

	.elshahed-toolbar {
		width: 100%;
	}

	.elshahed-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.elshahed-module-layout {
		grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2fr);
	}
}

@media (max-width: 600px) {
	.elshahed-dashboard {
		padding: 18px 14px;
	}

	.elshahed-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.elshahed-company-picker {
		min-width: 0;
	}

	.elshahed-metrics {
		gap: 9px;
	}

	.elshahed-metric-card {
		min-height: 86px;
		padding: 14px;
	}

	.elshahed-metric-card .elshahed-metric {
		font-size: 19px;
	}

	.elshahed-module-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.elshahed-module-nav {
		flex-direction: row;
		overflow-x: auto;
	}

	.elshahed-module-button {
		width: auto;
		flex: 0 0 auto;
	}

	.elshahed-module-label {
		max-width: 120px;
	}

	.elshahed-submodule-panel {
		padding: 14px;
	}

	.elshahed-submodule-list {
		grid-template-columns: minmax(0, 1fr);
	}

}

.page-head .page-title,
.page-head .title-text,
.page-head .ellipsis {
	color: var(--elshahed-navy);
}

.layout-main-section {
	border-color: #e6ebf0;
	border-radius: 12px;
}

.form-control:focus,
.awesomplete input:focus {
	border-color: var(--elshahed-green);
	box-shadow: 0 0 0 2px rgb(18 121 109 / 12%);
}

.btn-primary,
.btn-primary:focus {
	border-color: var(--elshahed-green);
	background: var(--elshahed-green);
}

.btn-primary:hover {
	border-color: #0f645b;
	background: #0f645b;
}

.standard-sidebar-item.selected {
	background: #e9f3f2;
	color: var(--elshahed-navy);
}

.list-row-head {
	border-radius: 8px;
	background: #eef3f6;
	color: #334155;
	font-weight: 700;
}

.list-view-container {
	overflow-x: auto;
}

.list-row-container {
	border-bottom-color: #edf1f5;
	transition: background-color 120ms ease;
}

.list-row-container:hover {
	background: #f5f9fa;
}

.list-row-col {
	padding-block: 10px;
}

.form-page .form-section {
	margin-bottom: 14px;
	border-color: #e6ebf0;
	border-radius: 10px;
}

.form-page .section-head {
	color: var(--elshahed-navy);
	font-weight: 700;
}

.form-grid-container {
	overflow-x: auto;
	border-radius: 8px;
}

.form-grid .grid-heading-row {
	background: #eef3f6;
}

.form-grid .grid-row {
	border-bottom-color: #edf1f5;
}

.report-wrapper .datatable,
.query-report .datatable {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid #e6ebf0;
	border-radius: 10px;
}

.report-wrapper .dt-header .dt-cell,
.query-report .dt-header .dt-cell {
	background: #eef3f6;
	color: #334155;
	font-weight: 700;
}

.report-wrapper .dt-row:nth-child(even),
.query-report .dt-row:nth-child(even) {
	background: #f8fafb;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 2px solid var(--elshahed-green);
	outline-offset: 2px;
}

[dir="rtl"] .elshahed-dashboard {
	direction: rtl;
	text-align: right;
}

[dir="rtl"] .elshahed-search input {
	text-align: right;
}

[dir="rtl"] .elshahed-workspace-link {
	direction: rtl;
}

@media (max-width: 600px) {
	.form-page .form-section {
		margin-bottom: 10px;
	}

	.report-wrapper .datatable,
	.query-report .datatable {
		-webkit-overflow-scrolling: touch;
	}
}
