/**
 * إدارة الأصول — الواجهة الأمامية.
 *
 * التصميم متحفّظ عمداً: يرث خط القالب وألوانه قدر الإمكان (نفس نهج إضافة
 * الموارد البشرية) فلا يصادم هوية الموقع. والجداول تنزلق أفقياً داخل حاويتها
 * لأن أكثر الاستخدام من الجوال، وصفحةٌ تتمدّد عرضياً لا تُقرأ.
 */

.rdn-am {
	direction: rtl;
	text-align: right;
	--rdn-am-ok: #1a7f4b;
	--rdn-am-err: #b32d2e;
	--rdn-am-warn: #b26b00;
	--rdn-am-line: rgba(0, 0, 0, .12);
	--rdn-am-soft: rgba(0, 0, 0, .04);
	margin: 0 0 2rem;
}

.rdn-am * {
	box-sizing: border-box;
}

/* ---------- عناوين ورؤوس ---------- */

.rdn-am-title {
	margin: 0 0 .25rem;
	font-size: 1.5rem;
}

.rdn-am-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .75rem;
	padding-bottom: .75rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--rdn-am-line);
}

.rdn-am-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.rdn-am-muted {
	opacity: .68;
	font-size: .9em;
}

.rdn-am-block {
	display: block;
}

.rdn-am-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

.rdn-am-num {
	text-align: left;
	white-space: nowrap;
}

.rdn-am-hint {
	font-size: .85em;
	opacity: .7;
	margin: .35rem 0 0;
}

.rdn-am-req {
	color: var(--rdn-am-err);
}

/* ---------- تنبيهات ---------- */

.rdn-am-notice {
	padding: .75rem 1rem;
	border-radius: 8px;
	border: 1px solid var(--rdn-am-line);
	background: var(--rdn-am-soft);
	margin: 0 0 1rem;
}

.rdn-am-notice--success {
	border-color: rgba(26, 127, 75, .35);
	background: rgba(26, 127, 75, .08);
}

.rdn-am-notice--error {
	border-color: rgba(179, 45, 46, .35);
	background: rgba(179, 45, 46, .08);
}

.rdn-am-notice--warn {
	border-color: rgba(178, 107, 0, .35);
	background: rgba(178, 107, 0, .08);
}

/* ---------- أزرار ---------- */

.rdn-am-btn {
	display: inline-block;
	padding: .5rem .9rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.rdn-am-btn:hover {
	background: var(--rdn-am-soft);
}

.rdn-am-btn--primary {
	background: #1f2937;
	border-color: #1f2937;
	color: #fff;
}

.rdn-am-btn--primary:hover {
	opacity: .9;
	background: #1f2937;
	color: #fff;
}

.rdn-am-btn--danger {
	border-color: rgba(179, 45, 46, .5);
	color: var(--rdn-am-err);
}

.rdn-am-btn--small {
	padding: .3rem .6rem;
	font-size: .85em;
}

.rdn-am-linkbtn {
	border: 0;
	background: none;
	padding: 0;
	color: var(--rdn-am-err);
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- نماذج ---------- */

.rdn-am-form label,
.rdn-am-filters label {
	display: block;
	font-size: .9rem;
	margin-bottom: .5rem;
}

.rdn-am-form input[type="text"],
.rdn-am-form input[type="search"],
.rdn-am-form input[type="number"],
.rdn-am-form input[type="date"],
.rdn-am-form input[type="url"],
.rdn-am-form select,
.rdn-am-form textarea,
.rdn-am-filters input,
.rdn-am-filters select {
	width: 100%;
	max-width: 100%;
	padding: .45rem .6rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

.rdn-am-fieldset {
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
	padding: 1rem;
	margin: 0 0 1rem;
}

.rdn-am-fieldset legend {
	padding: 0 .4rem;
	font-weight: 700;
}

.rdn-am-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: .75rem;
}

.rdn-am-span2 {
	grid-column: 1 / -1;
}

.rdn-am-check {
	display: flex !important;
	align-items: center;
	gap: .4rem;
}

.rdn-am-check input {
	width: auto;
}

.rdn-am-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .75rem;
}

.rdn-am-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .5rem;
	margin-bottom: 1rem;
}

.rdn-am-filters > * {
	flex: 1 1 160px;
}

.rdn-am-filters button {
	flex: 0 0 auto;
}

.rdn-am-inlineform {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	align-items: center;
}

.rdn-am-inlineform input[type="text"] {
	width: auto;
	flex: 1 1 160px;
}

/* ---------- جداول ---------- */

.rdn-am-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
}

.rdn-am-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}

.rdn-am-table th,
.rdn-am-table td {
	padding: .55rem .7rem;
	border-bottom: 1px solid var(--rdn-am-line);
	text-align: right;
	vertical-align: top;
}

.rdn-am-table thead th {
	background: var(--rdn-am-soft);
	white-space: nowrap;
}

.rdn-am-table tbody tr:last-child td {
	border-bottom: 0;
}

/* ---------- شارات الحالة ---------- */

.rdn-am-badge {
	display: inline-block;
	padding: .15rem .5rem;
	border-radius: 999px;
	font-size: .8em;
	border: 1px solid var(--rdn-am-line);
	white-space: nowrap;
}

.rdn-am-badge--ok {
	color: var(--rdn-am-ok);
	border-color: rgba(26, 127, 75, .4);
	background: rgba(26, 127, 75, .08);
}

.rdn-am-badge--warn {
	color: var(--rdn-am-warn);
	border-color: rgba(178, 107, 0, .4);
	background: rgba(178, 107, 0, .08);
}

.rdn-am-badge--bad {
	color: var(--rdn-am-err);
	border-color: rgba(179, 45, 46, .4);
	background: rgba(179, 45, 46, .08);
}

/* ---------- البطاقات ---------- */

.rdn-am-card {
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	padding: 1rem;
	margin: 0 0 1rem;
	background: #fff;
}

.rdn-am-card h3 {
	margin: 0 0 .75rem;
	font-size: 1.05rem;
}

.rdn-am-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.rdn-am-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .35rem .75rem;
	margin: 0;
	font-size: .93rem;
}

.rdn-am-dl dt {
	opacity: .65;
}

.rdn-am-dl dd {
	margin: 0;
}

/* ---------- بطاقة الأصل ---------- */

.rdn-am-assethead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--rdn-am-line);
}

.rdn-am-qrbox {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
}

.rdn-am-actionsgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.rdn-am-action {
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
	padding: .75rem;
}

.rdn-am-action h4 {
	margin: 0 0 .5rem;
	font-size: .95rem;
}

.rdn-am-action--danger {
	border-color: rgba(179, 45, 46, .35);
	background: rgba(179, 45, 46, .04);
}

.rdn-am-action input,
.rdn-am-action select,
.rdn-am-action textarea {
	width: 100%;
	margin-bottom: .4rem;
	padding: .4rem .5rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 6px;
	font: inherit;
}

/* ---------- السجل الزمني ---------- */

.rdn-am-timeline {
	list-style: none;
	margin: 0;
	padding: 0 1rem 0 0;
	border-right: 2px solid var(--rdn-am-line);
}

.rdn-am-timeline li {
	position: relative;
	padding: 0 .9rem .9rem 0;
	font-size: .92rem;
}

.rdn-am-timeline li::before {
	content: "";
	position: absolute;
	right: -1.42rem;
	top: .45rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #6b7280;
}

.rdn-am-timeline__date {
	display: block;
	font-size: .8em;
	opacity: .6;
}

/* ---------- المرفقات ---------- */

.rdn-am-files {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rdn-am-files li {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .35rem 0;
	border-bottom: 1px dashed var(--rdn-am-line);
}

/* ---------- اختيار الأصول في المحضر ---------- */

.rdn-am-picklist {
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid var(--rdn-am-line);
	border-radius: 8px;
	padding: .3rem;
	margin-bottom: .75rem;
}

.rdn-am-pick {
	display: grid !important;
	grid-template-columns: auto 7rem 1fr 1fr 10rem;
	align-items: center;
	gap: .5rem;
	padding: .35rem .5rem;
	border-bottom: 1px solid var(--rdn-am-soft);
	margin: 0 !important;
}

.rdn-am-pick input[type="checkbox"] {
	width: auto;
}

.rdn-am-pick__note {
	font-size: .85em;
}

@media (max-width: 700px) {
	.rdn-am-pick {
		grid-template-columns: auto 1fr;
	}
	.rdn-am-pick__note {
		grid-column: 1 / -1;
	}
}

/* ---------- الطلبات ---------- */

.rdn-am-request {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	padding: .75rem 0;
	border-bottom: 1px solid var(--rdn-am-line);
}

/* ---------- التوقيع ---------- */

.rdn-am-pad {
	width: 100%;
	max-width: 600px;
	height: 200px;
	border: 1px dashed var(--rdn-am-line);
	border-radius: 10px;
	background: #fff;
	touch-action: none;
	cursor: crosshair;
}

.rdn-am-signs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}

.rdn-am-sign {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	text-align: center;
	border-top: 1px solid var(--rdn-am-line);
	padding-top: .5rem;
}

.rdn-am-sign__role {
	font-size: .85em;
	opacity: .65;
}

.rdn-am-sign__img {
	max-height: 90px;
	object-fit: contain;
}

.rdn-am-sign__blank {
	display: block;
	height: 90px;
}

/* إقرارٌ بلا رسم: يُطبع نصاً واضحاً بدل مربّع فارغ يُظنّ نسياناً. */
.rdn-am-sign__ack {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 90px;
	font-size: .9em;
	border: 1px dashed var(--rdn-am-line);
	border-radius: 8px;
	padding: .4rem;
}

/* ---------- المحضر ---------- */

.rdn-am-sheet {
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	padding: 1.5rem;
	background: #fff;
}

.rdn-am-sheet__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
	border-bottom: 2px solid var(--rdn-am-line);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.rdn-am-sheet__head h2 {
	margin: 0;
	font-size: 1.2rem;
}

.rdn-am-sheet__head h3 {
	margin: .2rem 0 0;
	font-size: 1rem;
	opacity: .8;
}

.rdn-am-sheet__meta {
	font-size: .85rem;
	line-height: 1.9;
}

.rdn-am-logo {
	max-height: 64px;
	width: auto;
}

.rdn-am-sheet__intro {
	line-height: 1.9;
}

.rdn-am-table--doc thead th {
	background: var(--rdn-am-soft);
}

.rdn-am-doc__actions {
	display: flex;
	gap: .5rem;
	margin-bottom: 1rem;
}

/* ---------- التقارير ---------- */

.rdn-am-totals {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1rem;
}

.rdn-am-total {
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
	padding: .6rem .9rem;
	min-width: 160px;
}

.rdn-am-total span {
	display: block;
	font-size: .8em;
	opacity: .65;
}

/* ---------- الملصقات ---------- */

.rdn-am-labelsheet {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: .5rem;
}

.rdn-am-label {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr;
	align-items: center;
	gap: .3rem .5rem;
	border: 1px solid #000;
	border-radius: 6px;
	padding: .5rem;
	min-height: 118px;
	background: #fff;
	break-inside: avoid;
}

/* مربّع اختيار الطباعة — يظهر على الشاشة ويختفي في الورقة. */
.rdn-am-label__pick {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: .35rem;
	font-size: .8rem;
	margin: 0 0 .2rem;
	padding-bottom: .2rem;
	border-bottom: 1px dashed var(--rdn-am-line);
}

.rdn-am-label__pick input {
	width: auto;
}

.rdn-am-label:not(.is-picked) {
	opacity: .45;
	background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, .03) 6px, rgba(0, 0, 0, .03) 12px);
}

.rdn-am-label__logo {
	max-height: 26px;
	width: auto;
}

.rdn-am-label__org {
	font-size: .8rem;
	font-weight: 700;
}

.rdn-am-label__qr {
	grid-row: 1 / 3;
	grid-column: 2;
	display: flex;
	align-items: center;
}

.rdn-am-label__name {
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.3;
}

.rdn-am-label__no {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.rdn-am-label__branch {
	font-size: .75rem;
	opacity: .7;
}

/* ---------- اللوحة المصوّرة للأرقام ---------- */

.rdn-am-stats {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	margin-bottom: 1.25rem;
}

.rdn-am-stat {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .85rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	background: #fff;
}

.rdn-am-stat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--rdn-am-soft);
	color: #334155;
}

.rdn-am-stat__icon--sm {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
}

.rdn-am-stat__icon--sm .rdn-am-icon {
	width: 16px;
	height: 16px;
}

.rdn-am-stat__body {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.rdn-am-stat__value {
	font-size: 1.45rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rdn-am-stat__label {
	font-size: .9rem;
}

.rdn-am-stat__hint {
	font-size: .75rem;
	opacity: .6;
}

/* اللون يقول ما لا يقوله الرقم: مطمئن، أو يحتاج فعلاً، أو خسارة. */
.rdn-am-stat--ok .rdn-am-stat__icon {
	background: rgba(26, 127, 75, .1);
	color: var(--rdn-am-ok);
}

.rdn-am-stat--warn .rdn-am-stat__icon {
	background: rgba(178, 107, 0, .12);
	color: var(--rdn-am-warn);
}

.rdn-am-stat--bad .rdn-am-stat__icon {
	background: rgba(179, 45, 46, .1);
	color: var(--rdn-am-err);
}

.rdn-am-subtitle {
	margin: 1.5rem 0 .6rem;
	font-size: 1rem;
}

.rdn-am-branchstats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: .75rem;
}

.rdn-am-branchstat {
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	padding: .8rem;
	background: #fff;
}

.rdn-am-branchstat__head {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .5rem;
}

.rdn-am-branchstat__count {
	margin-inline-start: auto;
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rdn-am-branchstat__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem;
	margin-top: .5rem;
	font-size: .85rem;
}

.rdn-am-branchstat__value {
	margin-inline-start: auto;
	font-weight: 700;
}

.rdn-am-bar {
	height: 8px;
	border-radius: 999px;
	background: var(--rdn-am-soft);
	overflow: hidden;
}

.rdn-am-bar > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #1f2937;
}

.rdn-am-condbars {
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.rdn-am-condbar {
	display: grid;
	grid-template-columns: 9rem 1fr 6.5rem;
	align-items: center;
	gap: .6rem;
	font-size: .9rem;
}

.rdn-am-condbar__num {
	text-align: left;
	font-variant-numeric: tabular-nums;
	opacity: .75;
}

@media (max-width: 600px) {
	.rdn-am-condbar {
		grid-template-columns: 7rem 1fr;
	}
	.rdn-am-condbar__num {
		grid-column: 2;
		text-align: right;
	}
}

/* ---------- اللوحة الموحّدة (الهَب) ---------- */

.rdn-am-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: .75rem;
}

.rdn-am-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.rdn-am-tile:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 0, 0, .28);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.rdn-am-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--rdn-am-soft);
}

.rdn-am-icon {
	width: 24px;
	height: 24px;
}

.rdn-am-tile__body {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	line-height: 1.45;
	min-width: 0;
}

.rdn-am-tile__body strong {
	font-size: 1rem;
}

/* العدّاد: ما ينتظر المستخدم فعلاً — لا رقم للزينة. */
.rdn-am-tile__count {
	position: absolute;
	inset-inline-start: .75rem;
	top: .75rem;
	min-width: 22px;
	height: 22px;
	padding: 0 .35rem;
	border-radius: 999px;
	background: #1f2937;
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rdn-am-hubbar {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--rdn-am-line);
}

.rdn-am-hubbar__title {
	font-weight: 700;
	opacity: .75;
}

/* ---------- إجراءات داخل صف الجدول ---------- */

.rdn-am-rowactions {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 160px;
}

.rdn-am-mini summary {
	cursor: pointer;
	font-size: .85em;
	opacity: .8;
}

.rdn-am-mini textarea,
.rdn-am-mini select,
.rdn-am-mini input {
	width: 100%;
	margin: .3rem 0;
	padding: .35rem .5rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 6px;
	font: inherit;
	font-size: .9em;
}

/* ---------- ترقيم الصفحات ---------- */

.rdn-am-pager {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin-top: 1rem;
}

.rdn-am-page {
	padding: .3rem .6rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.rdn-am-page.is-current {
	background: #1f2937;
	color: #fff;
	border-color: #1f2937;
}

/* ---------- تفاصيل قابلة للطي ---------- */

.rdn-am-details {
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
}

.rdn-am-details summary {
	cursor: pointer;
	font-weight: 700;
}

/* ---------- الطباعة ---------- */

@media print {
	.rdn-am-noprint,
	.rdn-am-filters,
	.rdn-am-head__actions,
	.rdn-am-pager,
	.rdn-am-details {
		display: none !important;
	}

	.rdn-am,
	.rdn-am-sheet,
	.rdn-am-card {
		border: 0;
		box-shadow: none;
		margin: 0;
		padding: 0;
	}

	.rdn-am-table {
		font-size: 11pt;
	}

	/* اللوحة المصوّرة تُطبع بألوانها — التقرير المصوّر بلا لون يفقد نصف معناه. */
	.rdn-am-stat,
	.rdn-am-branchstat,
	.rdn-am-bar > span,
	.rdn-am-stat__icon,
	.rdn-am-badge {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.rdn-am-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.rdn-am-branchstats {
		grid-template-columns: repeat(2, 1fr);
	}

	.rdn-am-tablewrap {
		overflow: visible;
		border: 0;
	}

	.rdn-am-labelsheet {
		grid-template-columns: repeat(3, 1fr);
		gap: 3mm;
	}

	.rdn-am-label {
		min-height: 30mm;
		opacity: 1;
		background: none;
	}

	/* ما لم يُحدَّد لا يُطبع — الورقة تطابق ما اختاره المستخدم على الشاشة. */
	.rdn-am-label:not(.is-picked) {
		display: none !important;
	}

	a[href]::after {
		content: "";
	}
}

/* ============================================================
 *  1.8.0 — الخطط والفحوصات وبلاغ الملصق
 * ============================================================ */

.rdn-am-notice--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
}

.rdn-am-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid #e5e7eb;
	margin: 12px 0 16px;
	flex-wrap: wrap;
}

.rdn-am-tab {
	padding: 8px 14px;
	border-radius: 8px 8px 0 0;
	text-decoration: none;
	color: #4b5563;
	border: 1px solid transparent;
	margin-bottom: -1px;
}

.rdn-am-tab.is-current {
	color: #0f766e;
	border-color: #e5e7eb;
	border-bottom-color: #fff;
	background: #fff;
	font-weight: 600;
}

.rdn-am-choice {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 12px;
	display: grid;
	gap: 6px;
}

.rdn-am-choice legend {
	font-weight: 600;
	padding: 0 6px;
}

.rdn-am-choice label,
.rdn-am-check {
	display: flex;
	gap: 8px;
	align-items: center;
	font-weight: normal;
}

.rdn-am-rowactions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.rdn-am-rowactions form {
	margin: 0;
}

.rdn-am-danger-zone {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px dashed #fca5a5;
}

/* بنود نموذج الفحص */
.rdn-am-items {
	display: grid;
	gap: 6px;
	margin: 12px 0 8px;
}

.rdn-am-itemrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 160px 90px;
	gap: 8px;
	align-items: center;
}

.rdn-am-itemrow--head {
	font-size: 13px;
	color: #6b7280;
}

/* تعبئة الفحص */
.rdn-am-question {
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.rdn-am-question__label {
	margin: 0 0 6px;
	font-weight: 600;
}

.rdn-am-segmented {
	display: inline-flex;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	overflow: hidden;
}

.rdn-am-segmented label {
	margin: 0;
	cursor: pointer;
}

.rdn-am-segmented input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rdn-am-segmented span {
	display: block;
	padding: 8px 16px;
	min-width: 64px;
	text-align: center;
	border-inline-start: 1px solid #e5e7eb;
}

.rdn-am-segmented label:first-child span {
	border-inline-start: 0;
}

.rdn-am-segmented input:checked + span {
	background: #0f766e;
	color: #fff;
}

.rdn-am-segmented label.is-bad input:checked + span {
	background: #b91c1c;
}

.rdn-am-segmented input:focus-visible + span {
	outline: 2px solid #0f766e;
	outline-offset: -2px;
}

/* عدّادات الفحوصات */
.rdn-am-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.rdn-am-stat {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	background: #fff;
}

.rdn-am-stat strong {
	display: block;
	font-size: 24px;
}

.rdn-am-stat span {
	color: #6b7280;
	font-size: 13px;
}

.rdn-am-stat.is-warn strong {
	color: #b45309;
}

.rdn-am-stat.is-bad strong {
	color: #b91c1c;
}

/* بلاغ الملصق العام */
.rdn-am-public {
	max-width: 560px;
	margin: 0 auto;
}

.rdn-am-publichead {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.rdn-am-publichead__logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.rdn-am-publichead p,
.rdn-am-publichead h2 {
	margin: 0;
}

.rdn-am-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rdn-am-center {
	text-align: center;
}

@media (max-width: 600px) {
	.rdn-am-itemrow {
		grid-template-columns: 1fr 1fr;
	}

	.rdn-am-itemrow input[type="text"] {
		grid-column: 1 / -1;
	}

	.rdn-am-itemrow--head {
		display: none;
	}

	.rdn-am-segmented {
		display: flex;
	}

	.rdn-am-segmented label {
		flex: 1;
	}
}

/* ============================================================
 *  1.9.0 — العقارات والأوقاف
 * ============================================================ */

.rdn-am-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rdn-am-tree__node {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px 12px;
	padding: 8px 10px;
	padding-inline-start: calc(10px + var(--depth, 0) * 22px);
	border-bottom: 1px solid #f3f4f6;
}

.rdn-am-tree__node a {
	display: flex;
	gap: 8px;
	align-items: baseline;
	text-decoration: none;
	color: inherit;
}

.rdn-am-tree__node--building {
	background: #f9fafb;
}

.rdn-am-tree__kind {
	font-size: 12px;
	color: #0f766e;
	border: 1px solid #99f6e4;
	border-radius: 999px;
	padding: 0 8px;
}

.rdn-am-tree__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 13px;
}

.rdn-am-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 10px;
	font-size: 14px;
}

.rdn-am-list {
	margin: 0;
	padding-inline-start: 18px;
}

.rdn-am-list li {
	padding: 3px 0;
}

@media (max-width: 600px) {
	.rdn-am-tree__node {
		padding-inline-start: calc(8px + var(--depth, 0) * 12px);
	}
}

/* ============================================================
 *  1.11.0 — مؤشرات الأداء
 * ============================================================ */

.rdn-am-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
}

.rdn-am-chip {
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	text-decoration: none;
	color: inherit;
}

.rdn-am-chip.is-current {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

.rdn-am-kpigrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.rdn-am-kpi {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	background: #fff;
}

.rdn-am-kpi__label {
	color: #4b5563;
	font-size: 13px;
}

.rdn-am-kpi__value {
	font-size: 24px;
	line-height: 1.2;
}

.rdn-am-kpi__trend {
	font-size: 12px;
}

.rdn-am-kpi__trend.is-up {
	color: #15803d;
}

.rdn-am-kpi__trend.is-down {
	color: #b91c1c;
}

.rdn-am-kpi__trend.is-flat {
	color: #6b7280;
}

.rdn-am-kpi__hint {
	color: #9ca3af;
	font-size: 12px;
}

.rdn-am-agebar {
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	font-size: 12px;
	min-height: 28px;
}

.rdn-am-agebar__seg {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #fff;
	min-width: 0;
}

.rdn-am-agebar__seg--age_3 { background: #0f766e; }
.rdn-am-agebar__seg--age_7 { background: #65a30d; }
.rdn-am-agebar__seg--age_30 { background: #d97706; }
.rdn-am-agebar__seg--age_more { background: #b91c1c; }

/* ============================================================
 *  1.12.0 — الحقول المخصصة والاستيراد
 * ============================================================ */

.rdn-am-label__field {
	font-size: .72rem;
	line-height: 1.3;
}

.rdn-am-label__field span {
	display: inline-block;
	border: 1px solid #000;
	border-radius: 4px;
	padding: 0 4px;
	font-size: .65rem;
}

.rdn-am-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.rdn-am-steps li {
	counter-increment: step;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	color: #6b7280;
}

.rdn-am-steps li::before {
	content: counter(step) ". ";
}

.rdn-am-steps li.is-current {
	border-color: #0f766e;
	color: #0f766e;
	font-weight: 600;
}

.rdn-am-row-error td {
	background: #fef2f2;
}

.rdn-am-row-update td:first-child {
	border-inline-start: 3px solid #d97706;
}

.rdn-am-row-create td:first-child {
	border-inline-start: 3px solid #0f766e;
}

/* ============================================================
 *  1.13.0 — الجرد الدوري
 * ============================================================ */

.rdn-am-progress {
	height: 8px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
	margin: 6px 0;
}

.rdn-am-progress span {
	display: block;
	height: 100%;
	background: #0f766e;
}

.rdn-am-progress--big {
	height: 14px;
}

.rdn-am-scanrow {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.rdn-am-scanrow input[type="text"] {
	flex: 1 1 220px;
	font-size: 18px;
	padding: 10px 12px;
}

.rdn-am-camera {
	width: 100%;
	max-width: 420px;
	border-radius: 12px;
	background: #000;
	margin-top: 8px;
}

.rdn-am-countbox {
	border-color: #0f766e;
}

.rdn-am-signtable td {
	height: 34px;
}

@media print {
	.rdn-am-countdoc h3 {
		margin-top: 14px;
	}
}

.rdn-am-dochead {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #111;
}

.rdn-am-dochead p,
.rdn-am-dochead h2 {
	margin: 2px 0;
}

.rdn-am-doclogo {
	max-height: 56px;
	width: auto;
}

/* ============================================================
 *  1.14.0 — اللوحة بقائمة جانبية يمين
 * ============================================================ */

.rdn-am-shell {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.rdn-am-side {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: .6rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 14px;
	background: #fff;
}

.rdn-am-side__group {
	margin: .8rem .6rem .3rem;
	font-size: .75rem;
	font-weight: 700;
	color: #6b7280;
	letter-spacing: .02em;
}

.rdn-am-side__item {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .55rem .65rem;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	font-size: .95rem;
	line-height: 1.3;
}

.rdn-am-side__item .rdn-am-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	opacity: .8;
}

.rdn-am-side__item:hover {
	background: var(--rdn-am-soft);
}

.rdn-am-side__item.is-current {
	background: #0f766e;
	color: #fff;
	font-weight: 600;
}

.rdn-am-side__item.is-current .rdn-am-icon {
	opacity: 1;
}

.rdn-am-side__count {
	margin-inline-start: auto;
	min-width: 22px;
	height: 22px;
	padding: 0 .35rem;
	border-radius: 999px;
	background: #1f2937;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rdn-am-side__item.is-current .rdn-am-side__count {
	background: #fff;
	color: #0f766e;
}

.rdn-am-main {
	min-width: 0;
}

.rdn-am-waiting {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .75rem;
}

.rdn-am-waiting__item {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.rdn-am-waiting__empty {
	grid-column: 1 / -1;
}

.rdn-am-waiting__item strong {
	font-size: 1.6rem;
	line-height: 1;
}

.rdn-am-waiting__item.is-action {
	border-color: #f59e0b;
	background: #fffbeb;
}

/* الجوال واللوحي الصغير: القائمة شريط أفقي يُسحب، بلا عناوين مجموعات. */
@media (max-width: 900px) {
	.rdn-am-shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.rdn-am-side {
		position: sticky;
		top: 0;
		z-index: 5;
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding: .4rem;
		border-radius: 12px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.rdn-am-side::-webkit-scrollbar {
		display: none;
	}

	.rdn-am-side__group {
		display: none;
	}

	.rdn-am-side__item {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: .45rem .7rem;
		font-size: .9rem;
	}
}

@media print {
	.rdn-am-shell {
		display: block;
	}
}

/* ============================================================
 *  1.15.0 — طلبات الصيانة وملف الطلب
 * ============================================================ */

.rdn-am-statuscards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: .5rem;
	margin-bottom: .9rem;
}

.rdn-am-statuscard {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	padding: .65rem .8rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.rdn-am-statuscard strong {
	font-size: 1.4rem;
	line-height: 1.1;
}

.rdn-am-statuscard span {
	font-size: .85rem;
	color: #4b5563;
}

.rdn-am-statuscard.is-warn strong { color: #b45309; }
.rdn-am-statuscard.is-bad strong { color: #b91c1c; }
.rdn-am-statuscard.is-ok strong { color: #15803d; }

.rdn-am-statuscard.is-current {
	border-color: #0f766e;
	box-shadow: inset 0 0 0 1px #0f766e;
}

.rdn-am-reqfilters__search {
	flex: 2 1 260px;
}

.rdn-am-reqtable td {
	vertical-align: top;
}

.rdn-am-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-inline-start: 2px solid #e5e7eb;
}

.rdn-am-timeline__item {
	position: relative;
	padding: .2rem 1rem .8rem;
	margin-inline-start: .2rem;
}

.rdn-am-timeline__item::before {
	content: "";
	position: absolute;
	inset-inline-start: -0.62rem;
	top: .45rem;
	width: .8rem;
	height: .8rem;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #9ca3af;
}

.rdn-am-timeline__item--created::before { border-color: #0f766e; }
.rdn-am-timeline__item--status::before { border-color: #2563eb; }
.rdn-am-timeline__item--assigned::before { border-color: #7c3aed; }
.rdn-am-timeline__item--vendor_done::before { border-color: #15803d; background: #dcfce7; }
.rdn-am-timeline__item--note::before { border-color: #d97706; }

.rdn-am-timeline__head {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: baseline;
}

.rdn-am-timeline__item p {
	margin: .25rem 0 0;
}

.rdn-am-thumb {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--rdn-am-line);
}

/* ============================================================
 *  1.15.1 — ملء الشاشة: القائمة ملتصقة بيمين المتصفح
 * ============================================================ */

body.rdn-am-app {
	margin: 0;
	background: #f6f7f9;
}

.rdn-am-shell--app {
	display: block;
	margin: 0;
	min-height: 100vh;
}

.rdn-am-shell--app .rdn-am-side {
	position: fixed;
	top: 0;
	bottom: 0;
	inset-inline-start: 0; /* يمين الشاشة في الاتجاه العربي */
	width: 260px;
	z-index: 50;
	border: 0;
	border-inline-end: 1px solid var(--rdn-am-line);
	border-radius: 0;
	padding: .75rem .6rem 1.5rem;
	overflow-y: auto;
	scrollbar-width: none; /* يُمرَّر بالعجلة إن طالت القائمة، بلا شريط ظاهر */
}

.rdn-am-shell--app .rdn-am-side::-webkit-scrollbar {
	display: none;
}

body.admin-bar .rdn-am-shell--app .rdn-am-side {
	top: 32px;
}

.rdn-am-shell--app .rdn-am-main {
	margin-inline-start: 260px;
	padding: 1.5rem 1.75rem 3rem;
}

.rdn-am-side__brand {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .4rem .6rem 1rem;
	margin-bottom: .4rem;
	border-bottom: 1px solid var(--rdn-am-line);
	color: inherit;
	text-decoration: none;
	font-weight: 700;
}

.rdn-am-side__brand img {
	max-height: 36px;
	width: auto;
}

@media (max-width: 900px) {
	.rdn-am-shell--app .rdn-am-side {
		position: sticky;
		top: 0;
		bottom: auto;
		width: auto;
		border-inline-end: 0;
		border-bottom: 1px solid var(--rdn-am-line);
		padding: .4rem;
		overflow-y: hidden;
	}

	body.admin-bar .rdn-am-shell--app .rdn-am-side {
		top: 0;
	}

	.rdn-am-shell--app .rdn-am-main {
		margin-inline-start: 0;
		padding: 1rem;
	}

	.rdn-am-side__brand {
		display: none;
	}
}

@media print {
	.rdn-am-shell--app .rdn-am-main {
		margin: 0;
		padding: 0;
	}
}

/* ملء الشاشة: بنود أكثف لتتسع القائمة كلها لارتفاع الشاشة المعتاد بلا تمرير. */
.rdn-am-shell--app .rdn-am-side__item {
	padding: .36rem .65rem;
	font-size: .92rem;
}

.rdn-am-shell--app .rdn-am-side__group {
	margin: .55rem .6rem .15rem;
}

.rdn-am-shell--app .rdn-am-side__brand {
	padding: .2rem .6rem .7rem;
	margin-bottom: .3rem;
}

/* ---------- العقار: صورة وخريطة (1.16) ---------- */

.rdn-am-propimg {
	width: 180px;
	max-width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--rdn-am-line);
}

.rdn-am-propimg--small {
	width: 120px;
}

.rdn-am-map {
	display: block;
	width: 100%;
	height: 220px;
	margin-top: .75rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
}

/* ---------- لوحة الأيقونات [rdn_asset_launcher] (1.17.1) ---------- */

.rdn-am-launcher {
	max-width: 1100px;
	margin: 0 auto;
}

.rdn-am-launcher__group {
	margin: 1.4rem 0 .6rem;
	font-size: 1rem;
	color: var(--rdn-am-muted, #64748b);
}

.rdn-am-login {
	max-width: 420px;
	margin: 2rem auto;
	text-align: center;
}

.rdn-am-login__logo {
	max-height: 64px;
	margin-bottom: .5rem;
}

.rdn-am-login form {
	text-align: start;
}

.rdn-am-login form p {
	margin: 0 0 .8rem;
}

.rdn-am-login input[type="text"],
.rdn-am-login input[type="password"] {
	width: 100%;
	box-sizing: border-box;
}

.rdn-am-login .login-submit input {
	width: 100%;
}

/* ---------- الشركة الحالية وتغييرها (1.17.3) ---------- */

.rdn-am-company {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .4rem;
	margin: 0 0 .6rem;
	padding: .5rem .7rem;
	border: 1px solid var(--rdn-am-line);
	border-radius: 10px;
	font-size: .9rem;
}

.rdn-am-company__name {
	font-weight: 700;
}

.rdn-am-company__switch {
	font-size: .85rem;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------- صلاحيات فريق الصيانة (1.18) ---------- */

.rdn-am-perms {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: .8rem 1.2rem;
}

.rdn-am-perms legend {
	grid-column: 1 / -1;
}

.rdn-am-perms__group {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.rdn-am-perms__group > strong {
	margin-bottom: .2rem;
	font-size: .92rem;
}

/* ---------- بطاقات الأرقام في التقارير (1.21.4) ----------
 * على نمط بطاقات لوحة كنزا: أيقونة في مربع ناعم بلون معناها، ثم رقم كبير
 * وعنوان. القواعد مسبوقة بـ.rdn-am-stats .rdn-am-stat--* لتغلب قاعدة
 * «عدّادات الفحوصات» العامة (.rdn-am-stat span) التي كانت تصغّر الرقم وتُبهته.
 */
.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .55rem;
	padding: 18px;
	border: 1px solid #e6ebef;
	border-radius: 16px;
	background: #fff;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"]:hover {
	border-color: #d5e6e1;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] .rdn-am-stat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: #eef2f6;
	color: #475569;
}

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] .rdn-am-stat__icon .rdn-am-icon {
	width: 22px;
	height: 22px;
}

.rdn-am-stats .rdn-am-stat--ok .rdn-am-stat__icon { background: #e8f6f2; color: #0f766e; }
.rdn-am-stats .rdn-am-stat--warn .rdn-am-stat__icon { background: #fff4e5; color: #b45309; }
.rdn-am-stats .rdn-am-stat--bad .rdn-am-stat__icon { background: #fdecec; color: #b91c1c; }

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] .rdn-am-stat__body {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] .rdn-am-stat__value {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] .rdn-am-stat__label {
	font-size: .95rem;
	font-weight: 700;
	color: #1e293b;
}

.rdn-am-stats .rdn-am-stat[class*="rdn-am-stat--"] .rdn-am-stat__hint {
	font-size: .82rem;
	color: #64748b;
	opacity: 1;
}

/* بطاقات الفروع تحتها بالشكل نفسه */
.rdn-am-stat__icon--sm {
	background: #e8f6f2;
	color: #0f766e;
}

/* ---------- بطاقات التقارير — تبويب «دليل التقارير» (1.21.4) — هادئة: أيقونة في مربع ناعم، عنوان، سطر، ورابط ---------- */

.rdn-am-rgroup {
	margin: 1.6rem 0 .7rem;
	font-size: 1rem;
	color: #475569;
}

.rdn-am-rcards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.rdn-am-rcard {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	padding: 22px 20px 18px;
	border: 1px solid #e6ebef;
	border-radius: 16px;
	background: #fff;
	color: #0f172a !important;
	text-decoration: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rdn-am-rcard:hover {
	border-color: #b7dfd5;
	box-shadow: 0 8px 22px rgba(15, 118, 110, .08);
	transform: translateY(-2px);
}

.rdn-am-rcard__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: .35rem;
	border-radius: 14px;
	background: #e8f6f2;
	color: #0f766e;
}

.rdn-am-rcard__icon .rdn-am-icon {
	width: 24px;
	height: 24px;
}

.rdn-am-rcard__title {
	font-size: 1.05rem;
	font-weight: 800;
}

.rdn-am-rcard__desc {
	flex: 1;
	color: #64748b;
	font-size: .92rem;
	line-height: 1.7;
}

.rdn-am-rcard__go {
	margin-top: .3rem;
	color: #0f766e;
	font-weight: 700;
	font-size: .9rem;
}

/* ---------- خطوات البداية في اللوحة (1.21.5) ---------- */

.rdn-am-steps {
	margin-bottom: 18px;
	padding: 18px 20px;
	border: 1px solid #d5e6e1;
	border-radius: 16px;
	background: #f4faf8;
}

.rdn-am-steps h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
}

.rdn-am-steps ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.rdn-am-steps li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 8px 0;
	counter-increment: step;
}

.rdn-am-steps__mark {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: #fff;
	color: #64748b;
	font-weight: 800;
	font-size: .85rem;
	line-height: 24px;
	text-align: center;
}

.rdn-am-steps__mark::before {
	content: counter(step);
}

.rdn-am-steps .is-now .rdn-am-steps__mark {
	border-color: #0f766e;
	background: #0f766e;
	color: #fff;
}

.rdn-am-steps .is-done .rdn-am-steps__mark {
	border-color: #a7d7cb;
	background: #e8f6f2;
	color: #0f766e;
}

.rdn-am-steps .is-done .rdn-am-steps__mark::before {
	content: "✓";
}

.rdn-am-steps a {
	display: flex;
	flex-direction: column;
	color: #0f172a !important;
	text-decoration: none !important;
}

.rdn-am-steps a span {
	color: #64748b;
	font-size: .9rem;
}

.rdn-am-steps .is-done a {
	opacity: .65;
}

/* ---------- تقرير المهندس وتقييم المبلّغ (1.22) ---------- */

.rdn-am-fixreport {
	margin: .8rem 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f4faf8;
	border: 1px solid #d5e6e1;
}

.rdn-am-fixreport h4 {
	margin: 0 0 6px;
}

.rdn-am-stars {
	color: #f59e0b;
	letter-spacing: 2px;
	font-size: 1.1rem;
}

.rdn-am-stars__off {
	color: #e2e8f0;
}

/* اختيار النجوم: الصف مقلوب (5→1) لتلوين ما قبل المؤشَّر بـ~، ويبدأ من يمين الصفحة */
.rdn-am-starpick {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}

.rdn-am-starpick legend {
	margin-bottom: 4px;
	padding: 0;
	font-weight: 700;
}

.rdn-am-starpick__row {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 2px;
}

.rdn-am-starpick input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.rdn-am-starpick label {
	font-size: 2rem;
	line-height: 1;
	color: #e2e8f0;
	cursor: pointer;
	transition: color .1s ease;
}

.rdn-am-starpick input:checked ~ label,
.rdn-am-starpick label:hover,
.rdn-am-starpick label:hover ~ label {
	color: #f59e0b;
}

.rdn-am-starpick input:focus-visible + label {
	outline: 2px solid #0f766e;
	outline-offset: 2px;
}

/* قاعدة النماذج العامة تجعل كل label سطراً — النجوم استثناء. */
.rdn-am .rdn-am-starpick__row label {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 0 1px;
	font-size: 2rem;
	line-height: 1;
}

/* ---------- العدّاد (1.23) ---------- */
.rdn-am-meter {
	margin: 0 0 .5rem;
	font-size: 1rem;
}

.rdn-am-meter strong {
	font-size: 1.6rem;
	font-variant-numeric: tabular-nums;
}
