:root {
	--kafu-sky: #2BAAE2;
	--kafu-blue: #1691D0;
	--kafu-navy: #15508A;
	--kafu-gray: #A09EA4;
	--kafu-indigo: #283A83;
	--kafu-teal: #057590;
	--kafu-aqua: #3AC0C3;
	--kafu-green: #48AD48;
	--kafu-lime: #9ECC3B;

	--kafu-gold: #C9A437;
	--kafu-gold-dark: #9C7B1E;

	--kafu-bg: #F4F8FB;
	--kafu-card: #FFFFFF;
	--kafu-text: #0A1A2C;
	--kafu-muted: #6B85A0;
	--kafu-border: #E2ECF4;

	--kafu-shadow-sm: 0 4px 18px rgba(10, 38, 71, .05);
	--kafu-shadow-md: 0 12px 34px rgba(10, 38, 71, .09);
}
@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-300-arabic.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-300-latin.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-400-arabic.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-500-arabic.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-500-latin.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-600-arabic.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-600-latin.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-700-arabic.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-800-arabic.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-800-latin.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-900-arabic.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('assets/fonts/noto-kufi-arabic/NotoKufiArabic-900-latin.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F;
}

body.kafu-app-body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
	background: var(--kafu-bg);
	color: var(--kafu-text);
	font-size: 13px;
}

.kafu-app-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.kafu-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(226, 236, 244, .9);
}

.kafu-header-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 13px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.kafu-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.kafu-brand-mark {
	width: 44px;
	height: 44px;
	border-radius: 15px;
	background: var(--kafu-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	box-shadow: 0 10px 24px rgba(22, 145, 208, .22);
}

.kafu-brand-text {
	padding-right: 12px;
	border-right: 2px solid var(--kafu-blue);
	line-height: 1.45;
}

.kafu-brand-text strong {
	display: block;
	color: var(--kafu-navy);
	font-size: 13px;
	font-weight: 900;
}

.kafu-brand-text span {
	display: block;
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 600;
}

.kafu-main-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1;
}

.kafu-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 13px;
	border-radius: 999px;
	color: #31546f;
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	transition: .18s ease;
}

.kafu-nav-link:hover {
	background: #EDF6FC;
	color: var(--kafu-navy);
}

.kafu-nav-link.active {
	background: linear-gradient(135deg, var(--kafu-navy), var(--kafu-blue));
	color: #fff;
	box-shadow: 0 9px 20px rgba(21, 80, 138, .17);
}

.kafu-header-actions {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
}

.kafu-notif-wrap,
.kafu-admin-wrap {
	position: relative;
}

.kafu-notif-btn {
	position: relative;
	width: 38px;
	height: 38px;
	border: 1px solid var(--kafu-border);
	border-radius: 13px;
	background: #fff;
	cursor: pointer;
	box-shadow: var(--kafu-shadow-sm);
}

.notif-icon {
	font-size: 16px;
}

.kafu-notif-badge {
	position: absolute;
	top: -7px;
	left: -7px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #D92D20;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 900;
	border: 2px solid #fff;
}

.kafu-notif-dropdown,
.kafu-admin-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	background: #fff;
	border: 1px solid var(--kafu-border);
	border-radius: 18px;
	box-shadow: var(--kafu-shadow-md);
	z-index: 2000;
}

.kafu-notif-dropdown.show,
.kafu-admin-dropdown.show {
	display: block;
}

.kafu-notif-dropdown {
	width: 370px;
	max-height: 520px;
	overflow-y: auto;
	padding: 12px;
}

.notif-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px 12px;
	border-bottom: 1px solid var(--kafu-border);
	margin-bottom: 10px;
}

.notif-head strong {
	display: block;
	color: var(--kafu-navy);
	font-size: 13px;
	font-weight: 900;
}

.notif-head span {
	display: block;
	color: var(--kafu-muted);
	font-size: 10.5px;
	margin-top: 2px;
}

.notif-head b {
	min-width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #EAF6FD;
	color: var(--kafu-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.notif-section-title {
	margin: 12px 4px 7px;
	color: var(--kafu-teal);
	font-size: 11px;
	font-weight: 900;
}

.kafu-notif-item {
	display: block;
	padding: 10px;
	border-radius: 13px;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
	margin-bottom: 7px;
	background: #F8FBFE;
	transition: .18s ease;
}

.kafu-notif-item:hover {
	border-color: var(--kafu-border);
	background: #fff;
	transform: translateY(-1px);
}

.kafu-notif-item.danger {
	background: #FFF5F5;
}

.kafu-notif-item.warning {
	background: #FFF9EA;
}

.notif-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}

.notif-top strong {
	color: var(--kafu-navy);
	font-size: 11.5px;
	font-weight: 900;
}

.notif-top span {
	color: var(--kafu-muted);
	font-size: 10.5px;
}

.notif-subject {
	color: #37546d;
	font-size: 11px;
	line-height: 1.6;
}

.notif-empty {
	padding: 12px;
	border-radius: 13px;
	background: #F7FAFC;
	color: var(--kafu-muted);
	font-size: 11.5px;
	text-align: center;
}

.notif-view-all {
	display: block;
	padding: 10px;
	border-radius: 12px;
	background: #EAF6FD;
	color: var(--kafu-navy);
	text-align: center;
	text-decoration: none;
	font-size: 11.5px;
	font-weight: 900;
}

.kafu-admin-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid var(--kafu-border);
	border-radius: 12px;
	background: #fff;
	color: var(--kafu-navy);
	cursor: pointer;
	font-size: 12px;
	font-weight: 900;
	box-shadow: var(--kafu-shadow-sm);
}

.kafu-admin-dropdown {
	width: 245px;
	padding: 9px;
}

.admin-menu-title {
	padding: 9px 10px;
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 900;
	border-bottom: 1px solid var(--kafu-border);
	margin-bottom: 5px;
}

.kafu-admin-dropdown a {
	display: block;
	padding: 9px 11px;
	border-radius: 10px;
	color: #31546f;
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
}

.kafu-admin-dropdown a:hover {
	background: #EDF6FC;
	color: var(--kafu-navy);
}

.kafu-small-link,
.kafu-logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 12px;
	border-radius: 11px;
	text-decoration: none;
	font-size: 11.5px;
	font-weight: 900;
	white-space: nowrap;
}

.kafu-small-link {
	background: #fff;
	color: var(--kafu-navy);
	border: 1px solid var(--kafu-border);
}

.kafu-logout {
	background: #FFF1F1;
	color: #B42318;
	border: 1px solid #FFD7D7;
}

.kafu-main {
	flex: 1;
}

.kafu-content-wrap {
	max-width: 1360px;
	margin: 0 auto;
	padding: 28px 22px 50px;
}

.kafu-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
	padding: 22px;
	border: 1px solid rgba(226, 236, 244, .9);
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: var(--kafu-shadow-sm);
}

.kafu-page-kicker {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #EAF6FD;
	color: var(--kafu-blue);
	font-size: 10.5px;
	font-weight: 900;
}

.kafu-page-head h1 {
	margin: 0;
	color: var(--kafu-navy);
	font-size: 24px;
	line-height: 1.35;
	font-weight: 900;
}

.kafu-page-head p {
	margin: 7px 0 0;
	color: var(--kafu-muted);
	font-size: 12.5px;
}

.kafu-gold-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 16px;
	border-radius: 13px;
	background: var(--kafu-gold);
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 900;
	box-shadow: 0 10px 22px rgba(201, 164, 55, .23);
	white-space: nowrap;
}

.kafu-flash {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid transparent;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.kafu-flash .flash-icon {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	flex-shrink: 0;
}

.kafu-flash strong {
	display: block;
	font-size: 12.5px;
	font-weight: 900;
	margin-bottom: 2px;
}

.kafu-flash p {
	margin: 0;
	font-size: 12px;
	color: inherit;
}

.kafu-flash.success {
	background: #ECFDF3;
	color: #027A48;
	border-color: #D1FADF;
}

.kafu-flash.success .flash-icon {
	background: #D1FADF;
}

.kafu-flash.error {
	background: #FEF3F2;
	color: #B42318;
	border-color: #FECDCA;
}

.kafu-flash.error .flash-icon {
	background: #FECDCA;
}

.kafu-flash.warning {
	background: #FFFAEB;
	color: #B54708;
	border-color: #FEDF89;
}

.kafu-flash.warning .flash-icon {
	background: #FEDF89;
}

.kafu-flash.info {
	background: #EAF6FD;
	color: var(--kafu-navy);
	border-color: #D8EEF9;
}

.kafu-flash.info .flash-icon {
	background: #D8EEF9;
}

.kafu-footer {
	max-width: 1360px;
	width: 100%;
	margin: 0 auto;
	padding: 16px 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--kafu-muted);
	font-size: 11px;
}

.kafu-footer span {
	margin: 0 7px;
	color: #B7C7D6;
}

@media (max-width: 1150px) {
	.kafu-header-inner {
		flex-wrap: wrap;
	}

	.kafu-main-nav {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 2px;
	}
}

@media (max-width: 760px) {
	.kafu-header-inner {
		padding: 11px 14px;
	}

	.kafu-brand-text span {
		display: none;
	}

	.kafu-header-actions {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 3px;
	}

	.kafu-content-wrap {
		padding: 20px 14px 44px;
	}

	.kafu-page-head {
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
	}

	.kafu-page-head h1 {
		font-size: 20px;
	}

	.kafu-notif-dropdown {
		position: fixed;
		top: 74px;
		left: 14px;
		right: 14px;
		width: auto;
	}

	.kafu-footer {
		flex-direction: column;
		align-items: flex-start;
		padding: 14px;
	}
}
select {
    font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
}
input,
textarea,
select,
button,
option,
optgroup {
    font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}
input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="file"],
textarea,
select {
    font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
}
input::placeholder,
textarea::placeholder {
    font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    color: #9AAEC0;
}
.page-overview-card {
	margin-bottom: 18px;
	padding: 18px;
	border: 1px solid var(--kafu-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.page-overview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--kafu-border);
}

.page-overview-head .page-title {
	margin: 0;
	color: var(--kafu-navy);
	font-size: 22px;
	line-height: 1.3;
	font-weight: 900;
}

.page-overview-head .page-sub {
	margin-top: 5px;
	color: var(--kafu-muted);
	font-size: 12px;
	font-weight: 600;
}

.page-head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.page-head-actions .btn {
	min-height: 36px;
	padding: 8px 14px;
	border-radius: 11px;
	font-size: 12px;
	font-weight: 900;
}

.page-head-actions .btn.blue {
	background: var(--kafu-blue) !important;
	color: #fff;
	border: 1px solid var(--kafu-blue);
}

.page-head-actions .btn.orange {
	background: var(--kafu-gold) !important;
	color: #fff;
	border: 1px solid var(--kafu-gold);
}

.page-head-actions .btn.icon-only {
	width: 38px;
	padding: 0;
}
.overview-kpi-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.overview-kpi {
	position: relative;
	min-height: 40px;
	padding: 7px 10px;
	border: 1px solid var(--kafu-border);
	border-radius: 15px;
	background: #F8FBFE;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.overview-kpi::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	right: 0;
	width: 4px;
	border-radius: 999px 0 0 999px;
	background: var(--kafu-blue);
}

.kpi-inline {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-right: 6px;
}

.overview-kpi .kpi-label {
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 900;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.overview-kpi .kpi-value {
	margin: 0;
	color: var(--kafu-navy);
	font-size: 17px;
	line-height: 1;
	font-weight: 900;
	flex-shrink: 0;
}

.overview-kpi.total::before {
	background: var(--kafu-navy);
}

.overview-kpi.new::before {
	background: var(--kafu-blue);
}

.overview-kpi.progress::before {
	background: var(--kafu-gold);
}

.overview-kpi.done::before {
	background: var(--kafu-green);
}

.overview-kpi.rejected::before {
	background: #B42318;
}

.overview-kpi.late::before {
	background: #D92D20;
}

.overview-kpi.late {
	background: #FFF8F8;
	border-color: #FFE1E1;
}

.overview-kpi.rejected {
	background: #FFF8F8;
	border-color: #FFE1E1;
}

.overview-kpi.done {
	background: #F4FBF4;
	border-color: #DCEEDC;
}

.overview-kpi.progress {
	background: #FFFBF0;
	border-color: #F4E7BE;
}

@media (max-width: 1100px) {
	.overview-kpi-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.page-overview-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.overview-kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.page-overview-head .page-title {
		font-size: 19px;
	}
}
.form-page-head {
	margin-bottom: 14px;
	padding: 16px 18px;
}

.page-overview-head.no-border {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.form-card {
	padding: 18px;
	border: 1px solid var(--kafu-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.trx-form .form-grid {
	display: grid;
	gap: 14px;
}

.form-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-full {
	grid-column: 1 / -1;
}

.field label {
	margin-bottom: 6px;
	color: var(--kafu-navy);
	font-size: 11.5px;
	font-weight: 900;
}

.subject-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.subject-row input {
	flex: 1;
}

.subject-search-btn {
	width: auto;
	flex-shrink: 0;
}

.form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--kafu-border);
}

.upload-drop-zone {
	position: relative;
}

.upload-drop-zone input[type="file"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.upload-drop-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 130px;
	padding: 18px;
	border: 1.5px dashed var(--kafu-border);
	border-radius: 18px;
	background: #F8FBFE;
	cursor: pointer;
	text-align: center;
	transition: .18s ease;
}

.upload-drop-label:hover,
.upload-drop-label.is-dragover {
	background: #EDF6FC;
	border-color: var(--kafu-blue);
}

.upload-icon {
	width: 34px;
	height: 34px;
	margin-bottom: 8px;
	border-radius: 999px;
	background: #EAF6FD;
	color: var(--kafu-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 900;
}

.upload-title {
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}

.upload-sub {
	margin-top: 4px;
	color: var(--kafu-muted);
	font-size: 11px;
}

.selected-files {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}

.selected-file-chip {
	padding: 5px 9px;
	border-radius: 999px;
	background: #EAF6FD;
	color: var(--kafu-navy);
	font-size: 10.5px;
	font-weight: 800;
}

.similar-box {
	margin-top: 10px;
	padding: 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #F8FBFE;
}

.similar-box-title {
	margin-bottom: 8px;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}

.similar-list {
	display: grid;
	gap: 7px;
}

.similar-item {
	display: block;
	padding: 9px 10px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--kafu-border);
	text-decoration: none;
	color: inherit;
}

.similar-item-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.similar-item-top strong {
	color: var(--kafu-navy);
	font-size: 11.5px;
}

.similar-item-top span {
	color: var(--kafu-muted);
	font-size: 10.5px;
}

.similar-item-subject {
	color: #37546d;
	font-size: 11.5px;
}

@media (max-width: 1100px) {
	.form-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.form-grid-4 {
		grid-template-columns: 1fr;
	}

	.subject-row {
		flex-direction: column;
		align-items: stretch;
	}

	.form-actions {
		justify-content: stretch;
	}

	.form-actions .btn {
		flex: 1;
	}
}
.detail-page-head {
	margin-bottom: 14px;
	padding: 16px 18px;
}

.page-overview-head.no-border {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.detail-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.detail-actions .btn {
	min-height: 34px;
	padding: 7px 12px;
	border-radius: 11px;
	font-size: 11.5px;
	font-weight: 900;
}

.detail-actions .btn.blue {
	background: var(--kafu-blue) !important;
	color: #fff;
	border: 1px solid var(--kafu-blue);
}

.detail-actions .btn.green {
	background: var(--kafu-green) !important;
	color: #fff;
	border: 1px solid var(--kafu-green);
}

.detail-actions .btn.orange {
	background: var(--kafu-gold) !important;
	color: #fff;
	border: 1px solid var(--kafu-gold);
}

.detail-actions .btn-light {
	background: #fff !important;
	color: var(--kafu-navy);
	border: 1px solid var(--kafu-border);
}
.action-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.action-card {
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	padding: 15px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.danger-card {
	background: #FFF8F8;
	border-color: #FFE1E1;
}

.action-card-title {
	margin-bottom: 12px;
	color: var(--kafu-navy);
	font-size: 14px;
	font-weight: 900;
}

.action-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.action-form .field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.action-form .field label {
	color: var(--kafu-muted);
	font-size: 11.5px;
	font-weight: 900;
}

.action-form .field input,
.action-form .field textarea {
	width: 100%;
	border: 1px solid var(--kafu-border);
	border-radius: 10px;
	padding: 9px 11px;
	font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	font-size: 12px;
	background: #fff;
}

.field-full,
.form-actions-inline {
	grid-column: 1 / -1;
}

.form-actions-inline {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.monitoring-event-files {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.monitoring-file-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 260px;
	padding: 5px 9px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #F8FBFE;
	color: var(--kafu-navy);
	text-decoration: none;
	font-size: 11px;
	font-weight: 800;
}

.monitoring-file-chip:hover {
	background: #EDF6FC;
	border-color: var(--kafu-blue);
}

.monitoring-file-chip .file-name,
.file-card-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.monitoring-file-chip .file-size {
	color: var(--kafu-muted);
	font-size: 10px;
	flex: 0 0 auto;
}

.monitoring-files-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 8px;
	padding: 12px;
}

.file-card-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #EAF6FD;
	display: flex;
	align-items: center;
	justify-content: center;
}

.file-card-name {
	font-size: 12px;
	font-weight: 900;
	color: var(--kafu-navy);
}

.file-card-meta {
	margin-top: 3px;
	font-size: 10px;
	color: var(--kafu-muted);
	font-weight: 700;
}

@media(max-width: 980px) {
	.action-cards-grid {
		grid-template-columns: 1fr;
	}
}

@media(max-width: 680px) {
	.action-form {
		grid-template-columns: 1fr;
	}
}
.action-tabs {
	padding: 14px;
}

.action-tabs-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
	padding: 7px;
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #F8FBFE;
}

.action-tab-btn {
	min-height: 34px;
	padding: 7px 13px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: transparent;
	color: var(--kafu-muted);
	font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	font-size: 11.5px;
	font-weight: 900;
	cursor: pointer;
	transition: .18s ease;
}

.action-tab-btn:hover {
	background: #fff;
	color: var(--kafu-navy);
	border-color: var(--kafu-border);
}

.action-tab-btn.active {
	background: var(--kafu-navy);
	color: #fff;
	border-color: var(--kafu-navy);
	box-shadow: 0 8px 18px rgba(21, 80, 138, .13);
}

.action-tab-btn.danger {
	color: #B42318;
}

.action-tab-btn.danger.active {
	background: #B42318;
	color: #fff;
	border-color: #B42318;
}

.action-tabs-body {
	padding: 15px;
	border: 1px solid var(--kafu-border);
	border-radius: 18px;
	background: #fff;
}

.action-tab-panel {
	display: none;
}

.action-tab-panel.active {
	display: block;
}

.action-tab-panel.close-panel {
	background: #FFF8F8;
	border: 1px solid #FFE1E1;
	border-radius: 15px;
	padding: 14px;
}

.action-tab-panel .action-card-title {
	margin-bottom: 12px;
	color: var(--kafu-navy);
	font-size: 14px;
	font-weight: 900;
}
.action-form-inline {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) 150px;
	align-items: end;
	gap: 10px;
}

.action-form-inline .attachments-row {
	grid-column: 1 / 5;
}

.action-form-inline .save-row {
	grid-column: 5 / 6;
	align-self: end;
}

.action-form-inline .save-row .btn {
	width: 100%;
	min-height: 38px;
}

.action-form-inline textarea {
	min-height: 38px;
	height: 38px;
	resize: vertical;
}

.action-form-inline .upload-drop-label {
	min-height: 38px;
	padding: 7px 10px;
	border-radius: 11px;
	flex-direction: row;
	gap: 8px;
	justify-content: flex-start;
	text-align: right;
}

.action-form-inline .upload-icon {
	width: 24px;
	height: 24px;
	margin: 0;
	font-size: 12px;
	flex-shrink: 0;
}

.action-form-inline .upload-title {
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.action-form-inline .upload-sub {
	display: none;
}

.action-form-inline .selected-files {
	grid-column: 1 / -1;
	margin-top: 2px;
}

@media (max-width: 1100px) {
	.action-form-inline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.action-form-inline .attachments-row,
	.action-form-inline .save-row {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.action-form-inline {
		grid-template-columns: 1fr;
	}
}
.permissions-filter-card {
    margin-bottom: 16px;
}
.admin-form-card,
.admin-guide-card {
	margin-bottom: 16px;
}

.admin-form-body,
.admin-guide-body {
	padding: 16px 18px;
}

.admin-inline-form {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 100px auto;
	gap: 12px;
	align-items: end;
}

.admin-inline-actions {
	display: flex;
	align-items: end;
	justify-content: flex-start;
	gap: 8px;
	white-space: nowrap;
}

.admin-inline-actions .btn {
	width: auto;
	min-height: 38px;
	padding: 8px 14px;
	white-space: nowrap;
}

@media (max-width: 1100px) {
	.admin-inline-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.admin-inline-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.admin-inline-form {
		grid-template-columns: 1fr;
	}
}
.work-location-inline-form {
	grid-template-columns: 1.3fr 1fr 130px 1fr 1fr 90px auto;
}
.disabled-switch-card {
	margin-bottom: 16px;
	padding: 10px;
}

.disabled-switch {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px;
	border-radius: 15px;
	background: #F8FBFE;
	border: 1px solid var(--kafu-border);
}

.disabled-switch-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 13px;
	border-radius: 11px;
	color: var(--kafu-muted);
	text-decoration: none;
	font-size: 11.5px;
	font-weight: 900;
	transition: .18s ease;
}

.disabled-switch-link:hover {
	background: #fff;
	color: var(--kafu-navy);
}

.disabled-switch-link.active {
	background: var(--kafu-navy);
	color: #fff;
}
.settings-grid {
	display: grid !important;
	grid-template-columns: 220px minmax(0, 1fr) 230px !important;
	align-items: start;
	gap: 12px;
}

.settings-grid > .field {
	grid-column: auto !important;
}

.settings-grid > .field-full {
	grid-column: 1 / -1 !important;
}

.upload-status-field {
	grid-column: auto !important;
}

.setting-check {
	width: fit-content;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid var(--kafu-border);
	border-radius: 11px;
	background: #F8FBFE;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	white-space: nowrap;
}

.setting-check input[type="checkbox"] {
	width: 15px !important;
	height: 15px !important;
	min-height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	accent-color: var(--kafu-navy);
}

.setting-check span {
	line-height: 1;
}

@media (max-width: 900px) {
	.settings-grid {
		grid-template-columns: 1fr !important;
	}
}
.current-settings-card .current-settings-body {
	padding: 14px 16px !important;
}

.current-settings-card .access-employee-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.sms-settings-form-card {
	margin-bottom: 16px;
}

.sms-settings-layout {
	display: grid;
	gap: 16px;
}

.sms-settings-row {
	display: grid;
	gap: 12px;
	align-items: start;
}

.sms-settings-row-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sms-settings-row-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sms-settings-row-token {
	grid-template-columns: 260px minmax(0, 1fr);
}

.sms-section-title {
	margin-top: 2px;
	padding-top: 14px;
	border-top: 1px solid var(--kafu-border);
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}

.sms-settings-layout textarea {
	width: 100%;
	min-height: 110px;
	resize: vertical;
}

.sms-save-actions {
	justify-content: flex-end;
	margin-top: 0;
	padding-top: 14px;
	border-top: 1px solid var(--kafu-border);
}

.sms-save-actions .btn {
	min-width: 150px;
}

.setting-check {
	width: fit-content;
	max-width: 100%;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid var(--kafu-border);
	border-radius: 11px;
	background: #F8FBFE;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	white-space: nowrap;
}

.setting-check input[type="checkbox"] {
	width: 15px !important;
	height: 15px !important;
	min-height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	accent-color: var(--kafu-navy);
}

.setting-check span {
	line-height: 1.3;
}

.sms-info-section {
	margin-top: 16px;
}

.sms-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	padding: 14px 16px !important;
}

.sms-info-card {
	border: 1px solid var(--kafu-border);
	border-radius: 14px;
	padding: 12px;
	background: #fff;
}

.sms-info-card span {
	display: block;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 900;
}

.sms-info-card strong {
	display: block;
	margin-top: 5px;
	color: var(--kafu-navy);
	font-size: 15px;
	font-weight: 900;
}

.sms-info-card strong.ok {
	color: #16a34a;
}

.sms-info-card strong.off {
	color: #dc2626;
}

@media (max-width: 1200px) {
	.sms-settings-row-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sms-settings-row-token {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 800px) {
	.sms-settings-row-2,
	.sms-settings-row-4 {
		grid-template-columns: 1fr;
	}
}
.sms-settings-layout .field select,
.sms-settings-layout .field input[type="number"],
.sms-settings-layout .field input[type="text"],
.sms-settings-layout .field input[type="password"],
.sms-settings-layout .setting-check {
	width: 100%;
	min-height: 38px;
	box-sizing: border-box;
}

.sms-settings-layout .setting-check {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 8px 11px;
}

.sms-settings-layout .setting-check input[type="checkbox"] {
	width: 15px !important;
	height: 15px !important;
	min-height: auto !important;
	flex: 0 0 15px;
	margin: 0 !important;
}

.sms-settings-layout .setting-check span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sms-logs-filter-card {
    margin-bottom: 16px;
}
.sms-message-cell {
    max-width: 360px;
    white-space: normal;
    line-height: 1.7;
    color: var(--kafu-text);
}
.log-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 900;
	white-space: nowrap;
}

.log-badge.action {
	background: #EAF6FD;
	color: var(--kafu-navy);
}

.log-badge.entity {
	background: #F8FBFE;
	color: var(--kafu-muted);
	border: 1px solid var(--kafu-border);
}

.log-desc,
.log-url {
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--kafu-text);
}

.log-url {
	direction: ltr;
	text-align: left;
	font-size: 11px;
	color: var(--kafu-muted);
}

.ip-text {
	direction: ltr;
	display: inline-block;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 800;
}

.log-date {
	white-space: nowrap;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 800;
}
.user-home-head {
	margin-bottom: 14px;
}

.user-profile-card {
	margin-bottom: 16px;
	padding: 16px 18px;
	border: 1px solid var(--kafu-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.user-profile-main {
	display: flex;
	align-items: center;
	gap: 13px;
}

.user-profile-avatar {
	width: 52px;
	height: 52px;
	border-radius: 17px;
	background: var(--kafu-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	font-weight: 900;
}

.user-profile-name {
	color: var(--kafu-navy);
	font-size: 18px;
	font-weight: 900;
}

.user-profile-meta {
	margin-top: 6px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--kafu-muted);
	font-size: 11.5px;
	font-weight: 800;
}

.user-profile-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.user-stats-card {
	margin-bottom: 16px;
	padding: 14px;
}
.home-welcome-card {
	margin-bottom: 14px;
	padding: 18px 20px;
	border: 1px solid var(--kafu-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.home-welcome-main {
	display: flex;
	align-items: center;
	gap: 14px;
}

.home-avatar {
	width: 54px;
	height: 54px;
	border-radius: 17px;
	background: var(--kafu-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	font-weight: 900;
	flex: 0 0 auto;
}

.home-welcome-main h3 {
	margin: 0;
	color: var(--kafu-navy);
	font-size: 21px;
	font-weight: 900;
}

.home-meta {
	margin-top: 7px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--kafu-muted);
	font-size: 11.5px;
	font-weight: 800;
}

.home-welcome-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.home-summary-strip.user-main-stats {
	margin-bottom: 16px;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.home-summary-item {
	padding: 11px 13px;
	border: 1px solid var(--kafu-border);
	border-radius: 15px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.home-summary-item span {
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 900;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-summary-item strong {
	color: var(--kafu-navy);
	font-size: 20px;
	line-height: 1;
	font-weight: 900;
	flex-shrink: 0;
}

.home-summary-item.danger {
	background: #FFF8F8;
	border-color: #FFE1E1;
}

.home-summary-item.danger strong {
	color: #B42318;
}

.home-activity-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.home-list {
	padding: 10px;
	display: grid;
	gap: 8px;
}

.home-list-item {
	padding: 10px 11px;
	border: 1px solid var(--kafu-border);
	border-radius: 14px;
	background: #F8FBFE;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.home-list-item:hover {
	background: #fff;
	border-color: var(--kafu-blue);
}

.home-list-item strong {
	display: block;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}

.home-list-item span {
	display: block;
	margin-top: 3px;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 700;
}

.home-date {
	white-space: nowrap;
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 800;
}

@media (max-width: 1200px) {
	.home-summary-strip.user-main-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.home-welcome-card {
		align-items: stretch;
		flex-direction: column;
	}

	.home-welcome-actions {
		justify-content: flex-start;
	}

	.home-activity-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.home-summary-strip.user-main-stats {
		grid-template-columns: 1fr;
	}
}
.late-worklocation-card {
	margin-bottom: 16px;
}
.simple-kafu-login-page {
	min-height: 100vh;
	margin: 0;
	background: var(--kafu-bg);
	font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	color: var(--kafu-text);
}

.simple-kafu-login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.simple-kafu-login-card {
	width: 100%;
	max-width: 460px;
	padding: 28px;
	border: 1px solid var(--kafu-border);
	border-radius: 28px;
	background: #fff;
	box-shadow: var(--kafu-shadow-md);
}

.simple-login-head {
	margin-bottom: 18px;
	text-align: center;
}

.simple-login-mark {
	width: 54px;
	height: 54px;
	margin: 0 auto 12px;
	border-radius: 18px;
	background: var(--kafu-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: .5px;
}

.login-kicker-center {
	margin-left: auto;
	margin-right: auto;
}

.simple-login-head h2 {
	margin: 0;
	color: var(--kafu-navy);
	font-size: 22px;
	font-weight: 900;
}

.simple-login-head p {
	margin: 10px 0 0;
	color: var(--kafu-muted);
	font-size: 12px;
	font-weight: 700;
}

.login-feature-pills {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 13px;
}

.login-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 28px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #F8FBFE;
	color: var(--kafu-navy);
	font-size: 10.5px;
	font-weight: 900;
}

.login-pill strong {
	font-weight: 900;
}

.login-pill.blue {
	background: #EAF6FD;
	color: var(--kafu-blue);
	border-color: #D4ECF8;
}

.login-pill.green {
	background: #F4FBF4;
	color: var(--kafu-green);
	border-color: #DCEEDC;
}

.login-pill.gold {
	background: #FFFBF0;
	color: var(--kafu-gold-dark);
	border-color: #F4E7BE;
}

.login-pill.navy {
	background: #F3F7FB;
	color: var(--kafu-navy);
	border-color: var(--kafu-border);
}

.simple-login-form {
	display: grid;
	gap: 13px;
}

.simple-login-form .field label {
	display: block;
	margin-bottom: 6px;
	color: var(--kafu-navy);
	font-size: 11.5px;
	font-weight: 900;
}

.simple-login-form input {
	width: 100%;
	min-height: 42px;
	border: 1px solid var(--kafu-border);
	border-radius: 12px;
	padding: 9px 12px;
	background: #fff;
	color: var(--kafu-text);
	font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	box-sizing: border-box;
}

.simple-login-form input:focus {
	outline: none;
	border-color: var(--kafu-blue);
	box-shadow: 0 0 0 3px rgba(43, 170, 226, .12);
}

.simple-login-submit {
	width: 100%;
	min-height: 42px;
	margin-top: 4px;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 900;
}

.simple-login-foot {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--kafu-border);
	text-align: center;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 700;
}

.login-error-box {
	margin-bottom: 12px;
}

@media (max-width: 600px) {
	.simple-kafu-login-wrap {
		padding: 14px;
	}

	.simple-kafu-login-card {
		padding: 22px;
		border-radius: 22px;
	}

	.simple-login-head h2 {
		font-size: 20px;
	}.circulars-filter-card {
    margin-bottom: 16px;
}

.circular-form-card {
    margin-bottom: 16px;
}

.circular-desc-cell {
    max-width: 420px;
    white-space: normal;
    line-height: 1.7;
    color: var(--kafu-text);
}
}.circulars-filter-card {
    margin-bottom: 16px;
}

.circular-form-card {
    margin-bottom: 16px;
}

.circular-desc-cell {
    max-width: 420px;
    white-space: normal;
    line-height: 1.7;
    color: var(--kafu-text);
}
.circulars-filter-card {
    margin-bottom: 16px;
}

.circular-form-card {
    margin-bottom: 16px;
}

.circular-desc-cell {
    max-width: 420px;
    white-space: normal;
    line-height: 1.7;
    color: var(--kafu-text);
}
.circular-files-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--kafu-border);
	border-radius: 14px;
	background: #F8FBFE;
}

.circular-file-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 320px;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #fff;
	color: var(--kafu-navy);
	text-decoration: none;
	font-size: 11px;
	font-weight: 900;
}

.circular-file-chip:hover {
	background: #EAF6FD;
	border-color: var(--kafu-blue);
}

.circular-file-chip .file-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.circular-file-chip .file-meta {
	color: var(--kafu-muted);
	font-size: 10px;
	font-weight: 800;
}
.table-icon-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.file-count-cell {
	white-space: nowrap;
}

.file-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.permission-toggle-links {
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.users-table .user-name-cell {
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
}

.user-permission-cell {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: nowrap;
	white-space: nowrap;
}

.section-permissions-wrap {
	display: grid;
	gap: 6px;
	min-width: 245px;
}

.section-permission-row {
	display: grid;
	grid-template-columns: 72px 72px 44px;
	align-items: center;
	gap: 6px;
}

.section-label {
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 900;
	white-space: nowrap;
}

.mini-action-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #fff;
	color: var(--kafu-blue);
	text-decoration: none;
	font-size: 10px;
	font-weight: 900;
	white-space: nowrap;
}

.mini-action-link:hover {
	background: #EAF6FD;
	border-color: #D4ECF8;
}

.icon-btn.lock {
	background: #F8FBFE;
	color: var(--kafu-muted);
	opacity: .75;
	cursor: default;
	pointer-events: none;
}

.trx-table th.actions-col,
.trx-table td.actions-col {
	width: 78px;
	min-width: 78px;
	text-align: center;
	white-space: nowrap;
}
.compact-permissions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	max-width: 340px;
}

.permission-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 26px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #fff;
	color: var(--kafu-muted);
	text-decoration: none;
	font-size: 10.5px;
	font-weight: 900;
	white-space: nowrap;
	transition: .15s ease;
}

.permission-chip strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 900;
	background: #F1F5F9;
	color: #64748B;
}

.permission-chip:hover {
	transform: translateY(-1px);
	background: #F8FBFE;
}

.permission-chip.on.blue {
	background: #EAF6FD;
	color: var(--kafu-blue);
	border-color: #D4ECF8;
}

.permission-chip.on.teal {
	background: #ECFDF5;
	color: #0F766E;
	border-color: #CCFBF1;
}

.permission-chip.on.gold {
	background: #FFFBF0;
	color: #8A5A00;
	border-color: #F4E7BE;
}

.permission-chip.on.purple {
	background: #F5F3FF;
	color: #6D28D9;
	border-color: #DDD6FE;
}

.permission-chip.on strong {
	background: #fff;
	color: inherit;
}

.permission-chip.off {
	background: #F8FAFC;
	color: #94A3B8;
	border-color: #E2E8F0;
}

.permission-chip.off strong {
	background: #E2E8F0;
	color: #64748B;
}
.badge.admin {
	background: #F5F3FF;
	color: #6D28D9;
	border: 1px solid #DDD6FE;
}
.users-table th:nth-child(6),
.users-table td.permissions-col {
	width: 520px;
	min-width: 520px;
}

.permissions-col .compact-permissions {
	max-width: 520px;
}

.permissions-col .permission-chip {
	min-width: 92px;
	justify-content: space-between;
}

.permissions-col .permission-chip span {
	white-space: nowrap;
}
.title-link {
	color: var(--kafu-navy);
	text-decoration: none;
	font-weight: 400;
	line-height: 1.7;
}

.title-link:hover {
	color: var(--kafu-blue);
	text-decoration: none;
}
.home-profile-card {
	display: grid;
	grid-template-columns: 520px 1fr;
	gap: 18px;
	align-items: stretch;
}

.home-profile-top {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding-left: 18px;
	border-left: 1px solid var(--kafu-border);
}

.home-profile-avatar {
	flex: 0 0 auto;
}

.home-profile-info {
	min-width: 0;
}

.home-profile-kicker {
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 900;
	margin-bottom: 3px;
}

.home-profile-name {
	margin: 0 0 8px;
	color: var(--kafu-navy);
	font-size: 22px;
	font-weight: 900;
}

.home-profile-meta {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.home-profile-permissions {
	padding-top: 0;
	border-top: 0;
	min-width: 0;
}

.home-profile-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.section-title-sm {
	color: var(--kafu-navy);
	font-size: 13px;
	font-weight: 900;
}

.home-profile-permission-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #F8FBFE;
	border: 1px solid var(--kafu-border);
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 900;
	white-space: nowrap;
}

.home-profile-permissions .home-permissions-list {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.home-profile-permissions .permission-chip {
	min-height: 27px;
	padding: 4px 9px;
	font-size: 10.5px;
}

@media (max-width: 900px) {
	.home-profile-card {
		grid-template-columns: 1fr;
	}

	.home-profile-top {
		padding-left: 0;
		border-left: 0;
		padding-bottom: 14px;
		border-bottom: 1px solid var(--kafu-border);
	}
}
.icon-btn.password {
	background: #F0F9FF;
	border-color: #BAE6FD;
	color: #0369A1;
}

.icon-btn.password:hover {
	background: #E0F2FE;
}
.permission-chip.on.orange {
	background: #FFF7ED;
	color: #C2410C;
	border-color: #FED7AA;
}

.assignments-table .assignment-subject-cell {
	min-width: 220px;
	max-width: 360px;
}

.tiny-muted {
	margin-top: 4px;
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 800;
}

.type-badge.red {
	background: #FEF2F2;
	color: #B91C1C;
	border-color: #FECACA;
}

.type-badge.orange {
	background: #FFF7ED;
	color: #C2410C;
	border-color: #FED7AA;
}
.radio-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	min-height: 42px;
}

.radio-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.current-file-box {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 14px;
	background: #F8FBFE;
}

.current-file-box .file-name {
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}
.assignment-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.assignment-actions-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 14px;
}

.detail-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.detail-list > div {
	padding: 10px 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 14px;
	background: #F8FBFE;
}

.detail-list > div.full {
	grid-column: 1 / -1;
}

.detail-list span {
	display: block;
	margin-bottom: 5px;
	color: var(--kafu-muted);
	font-size: 10.5px;
	font-weight: 900;
}

.detail-list strong {
	display: block;
	color: var(--kafu-navy);
	font-size: 12px;
	line-height: 1.8;
}

.assignment-flow {
	display: grid;
	gap: 12px;
}

.flow-step {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 10px;
	align-items: start;
	padding: 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #fff;
}

.flow-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	border: 1px solid var(--kafu-border);
	background: #F8FBFE;
	color: var(--kafu-muted);
}

.flow-step.done .flow-dot {
	background: #ECFDF5;
	color: #15803D;
	border-color: #BBF7D0;
}

.flow-step.pending .flow-dot {
	background: #FFF7ED;
	color: #C2410C;
	border-color: #FED7AA;
}

.flow-title {
	color: var(--kafu-navy);
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 5px;
}

.flow-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 800;
}

.flow-note {
	margin-top: 8px;
	color: var(--kafu-navy);
	font-size: 12px;
	line-height: 1.8;
}

@media (max-width: 900px) {
	.assignment-detail-grid,
	.assignment-actions-grid {
		grid-template-columns: 1fr;
	}

	.detail-list {
		grid-template-columns: 1fr;
	}
}
.assignment-duration-card {
	margin-top: 14px;
}

.duration-kpi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(160px, 1fr));
	gap: 10px;
}

.duration-kpi {
	padding: 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #F8FBFE;
}

.duration-kpi span {
	display: block;
	margin-bottom: 7px;
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 900;
}

.duration-kpi strong {
	display: block;
	color: var(--kafu-navy);
	font-size: 20px;
	font-weight: 900;
}

@media (max-width: 800px) {
	.duration-kpi-grid {
		grid-template-columns: 1fr;
	}
}
.assignment-days-mini {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 12px;
}

.assignment-timeline .timeline-note {
	line-height: 1.8;
}

.assignment-execution-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
	gap: 14px;
	align-items: start;
	margin-top: 14px;
}

.assignment-actions-side {
	display: grid;
	gap: 14px;
}

.assignment-actions-side .form-card,
.assignment-actions-side .section-card {
	margin: 0;
}

@media (max-width: 1100px) {
	.assignment-execution-grid {
		grid-template-columns: 1fr;
	}
}
.assignment-absence-cell {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.assignment-absence-cell .type-badge {
	white-space: nowrap;
}
.timeline-actions {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.assignment-edit-panel {
	display: none;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #F8FBFE;
}

.assignment-edit-panel.show {
	display: block;
}

.assignment-edit-panel .trx-form {
	margin: 0;
}

.assignment-edit-panel .form-actions {
	margin-top: 10px;
}
.timeline-edit-icon {
	width: 24px;
	height: 24px;
	border: 1px solid var(--kafu-border);
	border-radius: 9px;
	background: #fff;
	color: var(--kafu-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	transition: .15s ease;
}

.timeline-edit-icon:hover {
	background: #F8FBFE;
	border-color: var(--kafu-blue);
	color: var(--kafu-blue);
}

.assignment-edit-panel {
	display: none;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #F8FBFE;
}

.assignment-edit-panel.show {
	display: block;
}

.assignment-edit-panel .trx-form {
	margin: 0;
}

.assignment-edit-panel .form-actions {
	margin-top: 10px;
}
.assignment-form-card {
	padding: 16px;
}

.assignment-main-form .assignment-grid {
	display: grid !important;
	gap: 12px !important;
	margin-top: 12px;
}

.assignment-main-form .assignment-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.assignment-main-form .assignment-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.assignment-main-form .assignment-grid-1 {
	grid-template-columns: 1fr !important;
}

.assignment-subject-row {
	margin-top: 12px;
}

.form-section-divider {
	height: 1px;
	background: var(--kafu-border);
	margin: 18px 0;
}

.assignment-exec-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	gap: 12px;
	margin-top: 12px;
	align-items: stretch;
}

.assignment-option-panel,
.assignment-contact-panel {
	border: 1px solid var(--kafu-border);
	border-radius: 16px;
	background: #F8FBFE;
	padding: 12px;
}

.assignment-option-title {
	color: var(--kafu-navy);
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 4px;
}

.assignment-option-note {
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.6;
	margin-bottom: 10px;
}

.choice-card-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.choice-card-row.compact {
	grid-template-columns: 1fr;
}

.choice-card {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--kafu-border);
	border-radius: 13px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}

.choice-card input {
	margin: 0;
}

.choice-card:has(input:checked) {
	background: #EFF6FF;
	border-color: var(--kafu-blue);
	color: var(--kafu-blue);
}

.assignment-contact-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.assignment-contact-panel .field textarea {
	min-height: 76px;
}

.assignment-upload-box {
	display: grid;
	grid-template-columns: 1fr minmax(260px, .45fr);
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px dashed var(--kafu-border);
	border-radius: 18px;
	background: #F8FBFE;
	margin-top: 12px;
}

.upload-box-main {
	display: flex;
	align-items: center;
	gap: 12px;
}

.upload-icon {
	width: 42px;
	height: 42px;
	border-radius: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #EFF6FF;
	border: 1px solid #BFDBFE;
	font-size: 20px;
}

.upload-content label {
	display: block;
	color: var(--kafu-navy);
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 5px;
}

.upload-hint {
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.7;
}

.upload-hint strong {
	color: var(--kafu-navy);
}

.upload-input-wrap input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--kafu-border);
	border-radius: 13px;
	background: #fff;
}

.assignment-current-file {
	margin-top: 12px;
}

.sticky-form-actions {
	position: sticky;
	bottom: 0;
	z-index: 5;
	padding: 12px 0;
	background: linear-gradient(to top, #fff 75%, rgba(255,255,255,.75));
}

@media (max-width: 1200px) {
	.assignment-main-form .assignment-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.assignment-exec-form-grid {
		grid-template-columns: 1fr 1fr;
	}

	.assignment-contact-panel {
		grid-column: 1 / -1;
	}
}

@media (max-width: 800px) {
	.assignment-main-form .assignment-grid-4,
	.assignment-main-form .assignment-grid-3 {
		grid-template-columns: 1fr !important;
	}

	.assignment-exec-form-grid {
		grid-template-columns: 1fr;
	}

	.assignment-upload-box {
		grid-template-columns: 1fr;
	}
}
.assignment-settings-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.settings-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 13px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #fff;
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
}

.settings-tab:hover {
	background: #F8FBFE;
	color: var(--kafu-blue);
	border-color: #BFDBFE;
}

.settings-tab.active {
	background: var(--kafu-blue);
	color: #fff;
	border-color: var(--kafu-blue);
}

.settings-page-grid {
	display: grid;
	grid-template-columns: minmax(280px, .45fr) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

@media (max-width: 900px) {
	.settings-page-grid {
		grid-template-columns: 1fr;
	}
}
.sms-settings-row-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 1100px) {
	.sms-settings-row-3 {
		grid-template-columns: 1fr;
	}
}
/* =========================================================
   Assignments Dashboard
   ========================================================= */

.assignment-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 14px;
}

.assignment-kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.assignment-kpi-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: #64748b;
}

.assignment-kpi-card.blue::before {
    background: #2563eb;
}

.assignment-kpi-card.orange::before {
    background: #f97316;
}

.assignment-kpi-card.green::before {
    background: #16a34a;
}

.assignment-kpi-card.red::before {
    background: #dc2626;
}

.assignment-kpi-card.navy::before {
    background: #0f172a;
}

.assignment-kpi-card.gray::before {
    background: #64748b;
}

.assignment-kpi-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.assignment-kpi-value {
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.assignment-kpi-sub {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

.assignment-insight-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 14px;
    margin-bottom: 14px;
}

.assignment-age-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.assignment-age-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.assignment-age-row strong {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.assignment-age-row.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.assignment-age-row.blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.assignment-age-row.orange {
    background: #fff7ed;
    border-color: #fed7aa;
}

.assignment-age-row.red {
    background: #fef2f2;
    border-color: #fecaca;
}

.assignment-subject {
    font-weight: 800;
    color: #0f172a;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignment-muted {
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.type-badge.gray {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.type-badge.green {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.type-badge.orange {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.type-badge.red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.type-badge.blue {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.type-badge.navy {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.badge.new {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.in_progress {
    background: #ffedd5;
    color: #9a3412;
}

.badge.done {
    background: #dcfce7;
    color: #166534;
}

.badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 1200px) {
    .assignment-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .assignment-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .assignment-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assignment-kpi-value {
        font-size: 24px;
    }

    .assignment-subject {
        max-width: 220px;
    }
}

@media print {
    .assignment-kpi-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
    }

    .assignment-insight-grid,
    .dashboard-grid,
    .dashboard-grid-bottom {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .assignment-kpi-card,
    .card,
    .section-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .page-head-actions,
    .detail-actions,
    .link-btn {
        display: none !important;
    }
}
.assignment-full-card {
    width: 100%;
    margin-bottom: 14px;
}
.permission-chip.on.red {
	background: #fff1f2;
	color: #be123c;
	border-color: #fecdd3;
}
.secret-choice-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.secret-choice-inline .permission-chip {
	cursor: pointer;
	min-width: 110px;
	justify-content: space-between;
}

.secret-choice-inline .permission-chip input[type="radio"] {
	display: none;
}

.permission-chip.on.red {
	background: #fff1f2;
	color: #be123c;
	border-color: #fecdd3;
}

.secret-choice-inline .permission-chip.off {
	background: #f8fafc;
	color: #64748b;
	border-color: #e2e8f0;
}
.gov-metrics-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 18px;
	margin: 14px 0;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(10, 26, 44, .045);
}

.gov-metrics-head {
	padding: 16px 18px;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--navy) 9%, var(--white)),
		var(--white)
	);
	border-bottom: 1px solid var(--border-soft);
	position: relative;
}

.gov-metrics-head::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--navy);
}

.gov-kicker {
	font-size: 11px;
	font-weight: 900;
	color: var(--kafu-gold-dk);
	margin-bottom: 4px;
	letter-spacing: .2px;
}

.gov-metrics-head h3 {
	margin: 0;
	color: var(--text-dk);
	font-size: 18px;
	font-weight: 950;
}

.gov-metrics-head p {
	margin: 5px 0 0;
	color: var(--text-lt);
	font-size: 12px;
	font-weight: 700;
}

.gov-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.gov-metric-item {
	min-height: 96px;
	padding: 15px 16px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	background: var(--white);
	border-left: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
	position: relative;
}

.gov-metric-item::after {
	content: "";
	position: absolute;
	right: 0;
	top: 18px;
	bottom: 18px;
	width: 3px;
	background: var(--sky);
	border-radius: 999px 0 0 999px;
	opacity: .85;
}

.gov-metric-body span {
	display: block;
	color: var(--text-dk);
	font-size: 13px;
	font-weight: 950;
	margin-bottom: 4px;
}

.gov-metric-body small {
	display: block;
	color: var(--text-lt);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
}

.gov-metric-item strong {
	min-width: 46px;
	height: 42px;
	border-radius: 14px;
	background: var(--bg);
	border: 1px solid var(--border-soft);
	color: var(--navy);
	font-size: 24px;
	font-weight: 950;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gov-metric-alert::after {
	background: var(--danger-fg);
}

.gov-metric-alert strong {
	background: var(--danger-bg);
	color: var(--danger-fg);
	border-color: #F3B8B8;
}

@media (max-width: 1200px) {
	.gov-metrics-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.gov-metrics-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.gov-metrics-grid {
		grid-template-columns: 1fr;
	}
}
.user-note-card {
	padding: 16px;
	margin-top: 14px;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	box-shadow: 0 8px 22px rgba(10, 26, 44, .045);
}

.user-note-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-soft);
}

.user-note-card textarea {
	width: 100%;
	min-height: 130px;
	resize: vertical;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg);
	color: var(--text-dk);
	padding: 12px;
	font-size: 13px;
	line-height: 1.8;
	outline: none;
}

.user-note-card textarea:focus {
	border-color: var(--sky);
	background: var(--white);
	box-shadow: 0 0 0 3px rgba(43, 170, 226, .12);
}

.user-note-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}
.duplicate-decision-mini-list {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.duplicate-decision-mini-item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	background: var(--white);
}

.duplicate-decision-mini-item strong {
	font-size: 12px;
	font-weight: 900;
	color: var(--text-dk);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.duplicate-decision-mini-item span {
	font-size: 12px;
	font-weight: 800;
	color: var(--text-lt);
	white-space: nowrap;
}

.duplicate-decision-mini-item .btn {
	padding: 6px 10px;
	font-size: 12px;
	white-space: nowrap;
}

@media (max-width: 800px) {
	.duplicate-decision-mini-item {
		grid-template-columns: 1fr;
	}
}

.permissions-console {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.permissions-sidebar {
	padding: 14px;
	position: sticky;
	top: 14px;
}

.permission-user-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-soft);
}

.permission-user-avatar {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--navy);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 900;
}

.permission-user-name {
	font-size: 15px;
	font-weight: 900;
	color: var(--text-dk);
}

.permission-user-meta {
	font-size: 11px;
	font-weight: 800;
	color: var(--text-lt);
	margin-top: 2px;
}

.permission-user-status {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 12px 0;
}

.permission-search-box input {
	width: 100%;
	height: 34px;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 800;
	color: var(--text-dk);
	background: var(--white);
}

.permission-group-tabs {
	display: grid;
	gap: 6px;
	margin-top: 12px;
}

.permission-group-tab {
	height: 38px;
	border: 1px solid var(--border-soft);
	background: var(--white);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 10px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 900;
	color: var(--text-md);
	text-align: right;
}

.permission-group-tab strong {
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--text-lt);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
}

.permission-group-tab.active {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}

.permission-group-tab.active strong {
	background: var(--white);
	color: var(--navy);
}

.permissions-panel {
	padding: 14px;
	min-width: 0;
}

.permissions-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-soft);
	margin-bottom: 12px;
}

.permissions-panel-actions {
	display: flex;
	gap: 7px;
}

.permission-group-content {
	display: none;
}

.permission-group-content.active {
	display: block;
}

.permission-group-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.permission-group-title-row h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 900;
	color: var(--text-dk);
}

.permission-group-title-row p {
	margin: 3px 0 0;
	font-size: 11px;
	font-weight: 800;
	color: var(--text-lt);
}

.mini-action-btn {
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--blue);
	border-radius: 999px;
	height: 30px;
	padding: 0 10px;
	font-size: 11px;
	font-weight: 900;
	cursor: pointer;
}

.permission-list-table {
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	overflow: hidden;
	background: var(--white);
}

.permission-line {
	display: grid;
	grid-template-columns: 28px 180px minmax(0, 1fr) 72px;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 7px 10px;
	border-bottom: 1px solid var(--border-soft);
	cursor: pointer;
	transition: 0.15s ease;
}

.permission-line:last-child {
	border-bottom: 0;
}

.permission-line:hover {
	background: #F8FBFE;
}

.permission-line input {
	display: none;
}

.permission-line-check {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 2px solid var(--border);
	background: var(--white);
	position: relative;
}

.permission-line.active .permission-line-check {
	background: var(--blue);
	border-color: var(--blue);
}

.permission-line.active .permission-line-check::after {
	content: "✓";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 12px;
	font-weight: 900;
}

.permission-line-name {
	font-size: 13px;
	font-weight: 900;
	color: var(--text-dk);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.permission-line-desc {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-lt);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.permission-line-status {
	justify-self: end;
	font-size: 10px;
	font-weight: 900;
	border-radius: 999px;
	padding: 4px 7px;
	background: var(--bg-soft);
	color: var(--text-lt);
	white-space: nowrap;
}

.permission-line.active .permission-line-status {
	background: var(--success-bg);
	color: var(--success-fg);
}

.permissions-bottom-bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	background: rgba(244, 248, 251, 0.96);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.permissions-bottom-note {
	font-size: 12px;
	font-weight: 800;
	color: var(--text-md);
}

.permissions-bottom-actions {
	display: flex;
	gap: 8px;
}

@media (max-width: 950px) {
	.permissions-console {
		grid-template-columns: 1fr;
	}

	.permissions-sidebar {
		position: relative;
		top: 0;
	}

	.permission-group-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.permission-line {
		grid-template-columns: 28px minmax(0, 1fr) 72px;
	}

	.permission-line-desc {
		display: none;
	}
}

@media (max-width: 650px) {
	.permissions-panel-head,
	.permission-group-title-row,
	.permissions-bottom-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.permission-group-tabs {
		grid-template-columns: 1fr;
	}

	.permission-line {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.permission-line-status {
		grid-column: 2;
		justify-self: start;
	}
}
.feedback-review-list {
	display: grid;
	gap: 12px;
	padding: 14px;
}

.feedback-review-item {
	border: 1px solid var(--border-soft);
	border-radius: 16px;
	background: var(--bg-card);
	padding: 14px;
}

.feedback-review-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 10px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--border-soft);
}

.feedback-review-head > div {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.feedback-review-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.feedback-review-box {
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	padding: 12px;
	background: var(--bg-soft);
}

.feedback-review-box.user-box {
	background: #F8FBFE;
}

.feedback-review-box.bot-box {
	background: #FFFFFF;
}

.feedback-review-label {
	font-size: 12px;
	font-weight: 900;
	color: var(--navy);
	margin-bottom: 6px;
}

.feedback-review-text {
	font-size: 13px;
	font-weight: 800;
	color: var(--text-dk);
	line-height: 1.8;
	white-space: pre-line;
}

.feedback-review-date {
	margin-top: 8px;
	font-size: 11px;
	font-weight: 800;
	color: var(--text-lt);
}

.feedback-review-actions {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 800px) {
	.feedback-review-head {
		flex-direction: column;
		align-items: stretch;
	}

	.feedback-review-grid {
		grid-template-columns: 1fr;
	}
}
.page-head-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .page-head-actions .btn {
        gap: 6px;
        padding-inline: 10px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }
}
.feedback-review-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1px;
}

.feedback-review-inline-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.review-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    border: 1px solid var(--border-soft, #E8F0F6);
    background: #fff;
    color: var(--navy, #15508A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    text-decoration: none;
}

.review-icon-btn:hover {
    background: rgba(22, 145, 208, .08);
    border-color: rgba(22, 145, 208, .22);
    transform: translateY(-1px);
}

.review-icon-btn.add {
    color: var(--green, #48AD48);
}

.review-icon-btn.add:hover {
    background: rgba(72, 173, 72, .10);
    border-color: rgba(72, 173, 72, .25);
}

.review-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.qr-assistant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.qr-assistant-info {
    min-width: 0;
}

.qr-assistant-info p {
    margin: 6px 0 0;
    color: var(--text-muted, #6b7280);
    font-size: 13px;
    line-height: 1.8;
}

.qr-assistant-image {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border-soft, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.qr-assistant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .qr-assistant-card {
        align-items: flex-start;
    }

    .qr-assistant-image {
        width: 92px;
        height: 92px;
        border-radius: 16px;
    }

    .qr-assistant-info p {
        font-size: 12px;
    }
}













body {
    font-family: 'Tajawal', Tahoma;
    background: #f4f6f9;
    padding: 20px;
    color: #333;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h2 {
    margin: 0;
}

/* Buttons */
.btn {
    background: #3498db;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
}

.btn.green { background: #2ecc71; color: #fff;}
.btn.red { background: #e74c3c; }
.btn.blue { background: #3b82f6; color: #fff;}
.btn.orange { 
	background: #f59e0b; 
	color: #fff;
}
/* KPI */
.kpi-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kpi {
    flex: 1;
    background: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.kpi span {
    font-size: 12px;
    color: #777;
}

.kpi strong {
    font-size: 20px;
}

.kpi.total { border-top: 4px solid #34495e; }
.kpi.new { border-top: 4px solid #3498db; }
.kpi.progress { border-top: 4px solid #f39c12; }
.kpi.done { border-top: 4px solid #2ecc71; }

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filters input, .filters select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Table */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #fafafa;
    text-align: right;
    padding: 10px;
}

td {
    padding: 10px;
    border-top: 1px solid #eee;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge.new { background: #d6eaf8; color: #2980b9; }
.badge.in_progress { background: #fdebd0; color: #e67e22; }
.badge.done { background: #d5f5e3; color: #27ae60; }
.badge.rejected { background: #f5b7b1; color: #c0392b; }

/* Actions */
.link {
    text-decoration: none;
    margin-left: 8px;
    color: #3498db;
}

.link.red {
    color: #e74c3c;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}
/* Timeline */
/* Timeline PRO */
.timeline {
    position: relative;
    padding-right: 25px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

/* إذا المعاملة منتهية */
.timeline.done::before {
    background: #2ecc71;
}

/* إذا مرفوضة */
.timeline.rejected::before {
    background: #e74c3c;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    right: 3px;
    top: 6px;
    border: 2px solid #fff;
}

/* الألوان */
.timeline-dot.new { background: #3498db; }
.timeline-dot.in_progress { background: #f39c12; }
.timeline-dot.done { background: #2ecc71; }
.timeline-dot.rejected { background: #e74c3c; }

/* الكرت */
.timeline-content {
    margin-right: 30px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    border-right: 4px solid #eee;
}

/* الكرت النشط */
.timeline-item.active .timeline-content {
    border-right: 4px solid #3498db;
    background: #f8fbff;
}

/* الهيدر */
.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-head .title {
    font-weight: bold;
}

.timeline-head .time {
    font-size: 12px;
    color: #888;
}

/* الحالة الحالية */
.current {
    background: #3498db;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 5px;
}

/* الملاحظات */
.timeline-note {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}
/* Status Card */
.status-card {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-main .label,
.status-progress .label {
    font-size: 12px;
    color: #777;
}

.status-main .value {
    font-size: 18px;
    margin-top: 5px;
}

/* Progress */
.progress-bar {
    background: #eee;
    height: 8px;
    border-radius: 10px;
    margin-top: 5px;
    width: 150px;
}

.progress-bar .fill {
    background: #3498db;
    height: 100%;
    border-radius: 10px;
}

/* Alert */
.alert.late {
    margin-top: 10px;
    background: #fdecea;
    color: #c0392b;
    padding: 8px;
    border-radius: 8px;
}

/* ألوان حسب الحالة */
.status-card.done { border-right: 4px solid #2ecc71; }
.status-card.in_progress { border-right: 4px solid #f39c12; }
.status-card.new { border-right: 4px solid #3498db; }
.status-card.rejected { border-right: 4px solid #e74c3c; }
.page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
	padding: 20px 22px;
	border: 1px solid var(--kafu-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.page-kicker {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #EAF6FD;
	color: var(--kafu-blue);
	font-size: 10.5px;
	font-weight: 900;
}

.page-title {
	margin: 0;
	color: var(--kafu-navy);
	font-size: 24px;
	line-height: 1.35;
	font-weight: 900;
}

.page-sub {
	margin-top: 7px;
	color: var(--kafu-muted);
	font-size: 12.5px;
}

.page-head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.kpi-grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:12px;
    margin-bottom:14px;
}
.kpi-card{
    background:#fff;
    border-radius:14px;
    padding:14px;
    box-shadow:0 3px 10px rgba(0,0,0,.04);
    border-top:4px solid #dfe6ee;
}
.kpi-card.total{ border-top-color:#34495e; }
.kpi-card.new{ border-top-color:#3498db; }
.kpi-card.progress{ border-top-color:#f39c12; }
.kpi-card.done{ border-top-color:#2ecc71; }
.kpi-card.rejected{ border-top-color:#e74c3c; }

.kpi-label{
    font-size:12px;
    color:#6b7280;
    margin-bottom:6px;
}
.kpi-value{
    font-size:26px;
    font-weight:700;
    line-height:1;
}

.type-strip{
    display:flex;
    gap:10px;
    margin-bottom:14px;
    flex-wrap:wrap;
}
.type-pill{
    background:#fff;
    border-radius:999px;
    padding:8px 14px;
    font-size:13px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.type-pill strong{
    margin-right:6px;
}
.type-pill.upgrade{
    border:1px solid #cfe8ff;
    color:#216eb4;
    background:#f4f9ff;
}
.type-pill.improve{
    border:1px solid #ffe2b8;
    color:#ad6a00;
    background:#fff8ee;
}
.type-pill.secret{
    border:1px solid #e8d5ff;
    color:#6d28d9;
    background:#faf5ff;
}

.filter-card{
    margin-bottom:14px;
    padding:14px;
}
.filters-advanced{
    display:grid;
    grid-template-columns:2fr 1fr 1fr auto;
    gap:12px;
    align-items:end;
}
.field-search {
    grid-column: span 1 !important;
    max-width: 240px;
}

.filters-advanced {
    grid-template-columns: repeat(auto-fit, minmax(180px, auto));
}
.field label{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:6px;
}
.field input,
.field select,
.field textarea{
    width:100%;
    border:1px solid #d7dee7;
    border-radius:10px;
    padding:10px 12px;
    background:#fff;
    box-sizing:border-box;
}
.field-full{
    grid-column:1 / -1;
}

.filter-actions{
    display:flex;
    gap:8px;
}

.btn{
    background:#2f80ed;
    color:#fff;
    text-decoration:none;
    border:none;
    border-radius:10px;
    padding:10px 14px;
    cursor:pointer;
    display:inline-block;
}
.btn.green{
    background:#27ae60;
}
.btn.red{
    background:#e74c3c;
}
.btn-light{
    background:#eef2f7;
    color:#334155;
}

.table-card{
    padding:0;
    overflow:hidden;
}
.table-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    border-bottom:1px solid #edf1f5;
    background:#fbfcfd;
}
.table-title{
    font-weight:700;
}
.table-count{
    font-size:12px;
    color:#6b7280;
}
.table-wrap{
    overflow:auto;
}
.trx-table{
    width:100%;
    border-collapse:collapse;
}
.trx-table th{
    background:#fafbfd;
    color:#475569;
    font-size:13px;
    text-align:right;
    padding:12px 14px;
    border-bottom:1px solid #edf1f5;
    white-space:nowrap;
}
.trx-table td{
    padding:12px 14px;
    border-bottom:1px solid #f0f3f7;
    vertical-align:middle;
}
.trx-table tbody tr:hover{
    background:#fcfdff;
}
.trx-no a{
    color:#1565c0;
    text-decoration:none;
    font-weight:700;
}

.type-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:600;
}
.type-pill.green {
    border: 1px solid #bbf7d0;
    color: #166534;
    background: #eefaf1;
}

.type-pill.blue {
    border: 1px solid #dbeafe;
    color: #1f4b99;
    background: #eef4ff;
}

.type-pill.red {
    border: 1px solid #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.type-pill.yellow {
    border: 1px solid #fef08a;
    color: #854d0e;
    background: #fefce8;
}

.type-pill.orange {
    border: 1px solid #fed7aa;
    color: #9a3412;
    background: #fff7ed;
}

.type-pill.purple {
    border: 1px solid #ddd6fe;
    color: #5b21b6;
    background: #f5f3ff;
}

.type-pill.pink {
    border: 1px solid #fbcfe8;
    color: #be185d;
    background: #fdf2f8;
}

.type-pill.cyan {
    border: 1px solid #a5f3fc;
    color: #155e75;
    background: #ecfeff;
}

.type-pill.teal {
    border: 1px solid #99f6e4;
    color: #134e4a;
    background: #f0fdfa;
}

.type-pill.gray {
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #f3f4f6;
}

.type-pill.navy {
    border: 1px solid #c7d2fe;
    color: #1e3a8a;
    background: #eef2ff;
}

.type-pill.brown {
    border: 1px solid #f5e1d6;
    color: #78350f;
    background: #fdf8f6;
}

.type-pill.olive {
    border: 1px solid #d9f99d;
    color: #4d7c0f;
    background: #f7fee7;
}

.type-pill.gold {
    border: 1px solid #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.type-pill.dark {
    border: 1px solid #1f2937;
    color: #f9fafb;
    background: #1f2937;
}

.badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:600;
}
.badge.new{
    background:#eaf4ff;
    color:#1d70b8;
}
.badge.in_progress{
    background:#fff4e5;
    color:#b4690e;
}
.badge.done{
    background:#e9f9ef;
    color:#1f9254;
}
.badge.rejected{
    background:#fdecec;
    color:#c0392b;
}

.actions-cell{
    white-space:nowrap;
}
.link-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	padding: 4px 9px;
	margin-top: 5px;
	border-radius: 999px;
	background: #F8FBFE;
	border: 1px solid var(--kafu-border);
	color: var(--kafu-navy);
	text-decoration: none;
	font-size: 10.5px;
	font-weight: 900;
}

.link-btn:hover {
	background: #EDF6FC;
	border-color: var(--kafu-blue);
}

.link-btn.delete {
	background: #FFF1F1;
	color: #B42318;
	border-color: #FFD7D7;
}

.link-btn.edit {
	background: #ECFDF3;
	color: #027A48;
	border-color: #D1FADF;
}
.empty-row{
    text-align:center;
    color:#6b7280;
    padding:20px !important;
}

.form-card{
    padding:16px;
}
.trx-form .form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
}
.form-actions{
    margin-top:14px;
    display:flex;
    gap:8px;
}

@media (max-width: 1100px){
    .kpi-grid{
        grid-template-columns:repeat(2, 1fr);
    }
    .filters-advanced{
        grid-template-columns:1fr 1fr;
    }
}
@media (max-width: 700px){
    .kpi-grid,
    .trx-form .form-grid,
    .filters-advanced{
        grid-template-columns:1fr;
    }
    .table-head,
    .page-head{
        display:block;
    }
}
.page-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.detail-top-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:14px;
    margin-bottom:14px;
}

.hero-card{
    padding:18px;
}

.hero-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:12px;
}

.hero-kicker{
    font-size:12px;
    color:#7b8794;
    margin-bottom:4px;
}

.hero-number{
    font-size:28px;
    font-weight:800;
    color:#1f2937;
    line-height:1.1;
}

.hero-badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.hero-subject{
    font-size:20px;
    font-weight:700;
    color:#111827;
    margin-bottom:14px;
    line-height:1.7;
}

.hero-meta{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
    margin-bottom:14px;
}

.meta-item{
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:12px;
    padding:12px;
}

.meta-label{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:6px;
}

.hero-notes{
    margin-top:8px;
}

.section-mini-title{
    font-size:13px;
    font-weight:700;
    margin-bottom:8px;
    color:#334155;
}

.notes-box{
    background:#fcfcfd;
    border:1px solid #edf1f5;
    border-radius:12px;
    padding:12px;
    color:#475569;
    line-height:1.9;
}

.summary-card{
    padding:16px;
    border-right:4px solid #dbe3ec;
}

.summary-card.new{
    border-right-color:#3498db;
}
.summary-card.in_progress{
    border-right-color:#f39c12;
}
.summary-card.done{
    border-right-color:#2ecc71;
}
.summary-card.rejected{
    border-right-color:#e74c3c;
}

.summary-title{
    font-size:16px;
    font-weight:800;
    margin-bottom:14px;
}

.summary-status-block,
.summary-progress-block{
    margin-bottom:14px;
}

.summary-label{
    font-size:12px;
    color:#6b7280;
    margin-bottom:6px;
}

.summary-value{
    font-size:15px;
    font-weight:700;
}

.progress-wrap{
    display:flex;
    align-items:center;
    gap:10px;
}

.progress-bar{
    background:#edf2f7;
    border-radius:999px;
    overflow:hidden;
}

.progress-bar.lg{
    height:10px;
    flex:1;
}

.progress-bar .fill{
    height:100%;
    background:#2f80ed;
    border-radius:999px;
}

.progress-text{
    min-width:42px;
    font-size:12px;
    font-weight:700;
    color:#475569;
}

.summary-mini-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:10px;
    margin-top:10px;
}

.mini-stat{
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:12px;
    padding:12px;
}

.mini-stat span{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:6px;
}

.mini-stat strong{
    font-size:18px;
    color:#111827;
}

.alert-box{
    margin-top:14px;
    border-radius:12px;
    padding:12px;
}

.alert-box.danger{
    background:#fff5f5;
    border:1px solid #ffd7d7;
    color:#b42318;
}

.alert-title{
    font-weight:800;
    margin-bottom:4px;
}

.alert-text{
    font-size:13px;
    line-height:1.7;
}

.section-card{
    padding:16px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.section-kicker{
    font-size:12px;
    color:#7b8794;
    margin-bottom:4px;
}

.section-title{
    margin:0;
    font-size:18px;
    font-weight:800;
}

.timeline{
    position:relative;
    padding-right:26px;
    margin-top:12px;
}

.timeline::before{
    content:'';
    position:absolute;
    right:10px;
    top:0;
    bottom:0;
    width:2px;
    background:#dbe3ec;
}

.timeline.done::before{
    background:#2ecc71;
}
.timeline.rejected::before{
    background:#e74c3c;
}
.timeline.in_progress::before{
    background:#f39c12;
}
.timeline.new::before{
    background:#3498db;
}

.timeline-item{
    position:relative;
    margin-bottom:18px;
}

.timeline-dot{
    position:absolute;
    right:3px;
    top:10px;
    width:14px;
    height:14px;
    border-radius:50%;
    border:2px solid #fff;
    box-shadow:0 0 0 3px #fff;
    z-index:2;
}

.timeline-dot.new{ background:#3498db; }
.timeline-dot.in_progress{ background:#f39c12; }
.timeline-dot.done{ background:#2ecc71; }
.timeline-dot.rejected{ background:#e74c3c; }

.timeline-content{
    margin-right:30px;
    background:#fff;
    border:1px solid #edf1f5;
    border-radius:14px;
    padding:14px;
    box-shadow:0 3px 10px rgba(15,23,42,.04);
}

.timeline-item.active .timeline-content{
    background:#f8fbff;
    border-color:#d9e9ff;
}

.timeline-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    margin-bottom:8px;
}

.timeline-title-wrap{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.timeline-title{
    font-weight:800;
    color:#111827;
}

.timeline-time{
    font-size:12px;
    color:#6b7280;
    white-space:nowrap;
}

.current-chip{
    background:#2f80ed;
    color:#fff;
    font-size:11px;
    font-weight:700;
    border-radius:999px;
    padding:4px 8px;
}

.timeline-meta-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
    flex-wrap:wrap;
}

.timeline-date{
    font-size:12px;
    color:#94a3b8;
}

.timeline-note{
    color:#475569;
    line-height:1.9;
    background:#fcfcfd;
    border:1px solid #f1f5f9;
    border-radius:10px;
    padding:10px 12px;
}

.empty-state{
    background:#fafbfc;
    border:1px dashed #d7dee7;
    border-radius:12px;
    padding:18px;
    text-align:center;
    color:#6b7280;
}

@media (max-width: 1100px){
    .detail-top-grid{
        grid-template-columns:1fr;
    }

    .hero-meta{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 700px){
    .hero-head,
    .timeline-head,
    .timeline-meta-row{
        display:block;
    }

    .hero-meta{
        grid-template-columns:1fr;
    }

    .summary-mini-grid{
        grid-template-columns:1fr;
    }

    .page-actions{
        margin-top:10px;
    }
}
.hero-card.compact .hero-number{
    font-size:24px;
}

.action-form-card{
    padding:16px;
}

.form-title{
    margin-bottom:14px;
}

.trx-form .form-grid.single{
    grid-template-columns:1fr;
}

.form-actions.between{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-top:14px;
}

@media (max-width: 700px){
    .form-actions.between{
        flex-direction:column;
        align-items:stretch;
    }

    .form-actions.between .btn{
        width:100%;
        text-align:center;
    }
}
body.app-body{
    margin:0;
    background:#f3f6fa;
    color:#1f2937;
    font-family:'Tajawal', Tahoma, Arial, sans-serif;
}

*{
    box-sizing:border-box;
}

.app-shell{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.app-header{
    background:linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-bottom:1px solid #e6edf5;
    position:sticky;
    top:0;
    z-index:50;
    backdrop-filter:blur(6px);
}

.app-header-inner{
    max-width:1280px;
    margin:0 auto;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.brand-block{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.brand-mark{
    width:42px;
    height:42px;
    border-radius:12px;
    background:linear-gradient(135deg, #1f6feb 0%, #2f80ed 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:800;
    box-shadow:0 6px 18px rgba(47,128,237,.22);
    flex:0 0 auto;
}

.brand-kicker{
    font-size:11px;
    color:#7b8794;
    margin-bottom:2px;
}

.brand-title{
    font-size:18px;
    font-weight:800;
    color:#0f172a;
    line-height:1.2;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.top-link{
    text-decoration:none;
    color:#334155;
    background:#eef2f7;
    padding:10px 12px;
    border-radius:10px;
    font-size:13px;
    font-weight:600;
}

.top-link:hover{
    background:#e6edf5;
}

.app-main{
    flex:1;
    width:100%;
}

.content-wrap{
    max-width:1280px;
    margin:0 auto;
    padding:22px 20px 26px;
}

.app-footer{
    border-top:1px solid #e6edf5;
    background:#fbfcfe;
}

.footer-text{
    max-width:1280px;
    margin:0 auto;
    padding:12px 20px;
    color:#6b7280;
    font-size:12px;
}

.footer-sep{
    margin:0 6px;
    color:#c0cad5;
}

.card{
    background:#fff;
    border:1px solid #ecf1f6;
    border-radius:16px;
    box-shadow:0 6px 20px rgba(15,23,42,.04);
}

.btn{
    background:#2f80ed;
    color:#fff;
    text-decoration:none;
    border:none;
    border-radius:10px;
    padding:10px 14px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:700;
    line-height:1;
}

.btn:hover{
    opacity:.95;
}

.btn.green{
    background:#27ae60;
}

.btn.red{
    background:#e74c3c;
}

.btn-light{
    background:#eef2f7;
    color:#334155;
}

@media (max-width: 900px){
    .app-header-inner{
        align-items:flex-start;
        flex-direction:column;
    }

    .header-actions{
        width:100%;
    }
}

@media (max-width: 640px){
    .content-wrap{
        padding:18px 14px 22px;
    }

    .header-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .header-actions .btn,
    .header-actions .top-link{
        width:100%;
        text-align:center;
    }

    .brand-title{
        font-size:16px;
    }
}
.login-page{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(circle at top right, #eaf4ff 0, transparent 30%),
        linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
    font-family:'Tajawal', Tahoma, Arial, sans-serif;
}

.login-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:1.1fr .9fr;
}

.login-side{
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    color:#0f172a;
}

.login-brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.login-brand-mark{
    width:48px;
    height:48px;
    border-radius:14px;
    background:linear-gradient(135deg, #1f6feb 0%, #2f80ed 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:800;
    box-shadow:0 8px 22px rgba(47,128,237,.24);
}

.login-brand-kicker{
    font-size:12px;
    color:#64748b;
    margin-bottom:3px;
}

.login-brand-title{
    font-size:20px;
    font-weight:800;
}

.login-side-content{
    max-width:520px;
}

.login-side-content h1{
    margin:0 0 14px;
    font-size:38px;
    line-height:1.3;
    font-weight:800;
}

.login-side-content p{
    margin:0;
    font-size:16px;
    color:#475569;
    line-height:1.9;
}

.login-features{
    margin-top:24px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.login-feature{
    background:rgba(255,255,255,.8);
    border:1px solid #dce7f3;
    border-radius:999px;
    padding:8px 14px;
    font-size:13px;
    color:#334155;
    box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.login-card-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.login-card{
    width:100%;
    max-width:430px;
    background:#fff;
    border:1px solid #e9eef5;
    border-radius:22px;
    box-shadow:0 18px 40px rgba(15,23,42,.08);
    padding:24px;
}

.login-card-head{
    margin-bottom:14px;
}

.login-form .field{
    margin-bottom:14px;
}

.login-form .field label{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:6px;
}

.login-form .field input{
    width:100%;
    border:1px solid #d7dee7;
    border-radius:12px;
    padding:12px 14px;
    background:#fff;
    font-size:14px;
    outline:none;
}

.login-form .field input:focus{
    border-color:#93c5fd;
    box-shadow:0 0 0 4px rgba(59,130,246,.10);
}

.login-btn{
    width:100%;
    margin-top:6px;
    padding:13px 14px;
    font-size:14px;
    border-radius:12px;
}

@media (max-width: 980px){
    .login-shell{
        grid-template-columns:1fr;
    }

    .login-side{
        padding:24px 20px 0;
    }

    .login-side-content{
        margin-top:18px;
        max-width:none;
    }

    .login-side-content h1{
        font-size:28px;
    }

    .login-card-wrap{
        padding:20px;
        align-items:flex-start;
    }
}

@media (max-width: 640px){
    .login-side{
        padding:18px 14px 0;
    }

    .login-card-wrap{
        padding:14px;
    }

    .login-card{
        padding:18px;
        border-radius:18px;
    }

    .login-side-content h1{
        font-size:24px;
    }

    .login-side-content p{
        font-size:14px;
    }
}
.flash-alert{
    margin-bottom:14px;
    border-radius:14px;
    padding:14px 16px;
    border:1px solid transparent;
    box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.flash-title{
    font-size:13px;
    font-weight:800;
    margin-bottom:4px;
}

.flash-text{
    font-size:14px;
    line-height:1.8;
}

.flash-alert.success{
    background:#ecfdf3;
    border-color:#c9f1d8;
    color:#166534;
}

.flash-alert.error{
    background:#fff4f4;
    border-color:#ffd6d6;
    color:#b42318;
}

.flash-alert.warning{
    background:#fff9ec;
    border-color:#ffe2a8;
    color:#92400e;
}

.flash-alert.info{
    background:#eff6ff;
    border-color:#cfe2ff;
    color:#1d4ed8;
}
.row-late{
    background:#fffafb;
}

.row-done{
	background: rgba(34, 197, 94, 0.06);
}
.row-late:hover{
    background:#fff3f5 !important;
}
.row-done:hover{
	background: #ecfdf3 !important;
}
.due-wrap{
	display:flex;
	flex-direction:column;
	align-items:center;   /* توسيط أفقي */
	justify-content:center; /* توسيط عمودي */
	text-align:center;    /* توسيط النص */
	gap:4px;
}

.late-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:4px 8px;
    font-size:11px;
    font-weight:700;
    background:#fff1f1;
    color:#c0392b;
    border:1px solid #ffd6d6;
}
.kpi-card.late{
    border-top-color:#e74c3c;
}
/* =========================
   Compact UI
   ========================= */

body.app-body,
body.login-page{
    font-size:13px;
}

/* الهيدر العام */
.app-header-inner{
    padding:10px 16px;
}

.brand-mark{
    width:36px;
    height:36px;
    border-radius:10px;
    font-size:17px;
}

.brand-kicker,
.page-kicker,
.section-kicker,
.hero-kicker,
.brand-kicker,
.login-brand-kicker,
.kpi-label,
.meta-label,
.summary-label,
.table-count,
.footer-text,
.flash-title,
.flash-text,
.timeline-time,
.timeline-date,
.current-chip,
.late-badge,
.type-badge,
.badge,
.link-btn,
.top-link{
    font-size:11px;
}

.brand-title{
    font-size:16px;
}

.content-wrap{
    padding:16px 16px 20px;
}

/* العناوين */
.page-title{
    font-size:20px;
}

.page-sub{
    font-size:12px;
}

.section-title,
.summary-title,
.table-title,
.form-title{
    font-size:15px;
}

.hero-number{
    font-size:22px;
}

.hero-subject{
    font-size:17px;
}

.login-side-content h1{
    font-size:30px;
}

.login-side-content p{
    font-size:14px;
}

.login-brand-title{
    font-size:17px;
}

/* البطاقات */
.card{
    border-radius:12px;
}

.hero-card,
.summary-card,
.section-card,
.filter-card,
.form-card,
.action-form-card,
.login-card{
    padding:12px !important;
}

/* KPI */
.kpi-grid{
    gap:10px;
}

.kpi-card{
    padding:10px;
    border-radius:12px;
}

.kpi-value{
    font-size:22px;
}

.type-strip{
    gap:8px;
    margin-bottom:12px;
}

.type-pill{
    padding:6px 10px;
    font-size:12px;
}

/* الفورم */
.field label,
.login-form .field label{
    font-size:11px;
    margin-bottom:5px;
}

.field input,
.field select,
.field textarea,
.login-form .field input{
    padding:8px 10px;
    border-radius:8px;
    font-size:13px;
}

.form-actions,
.filter-actions,
.page-actions{
    gap:6px;
    margin-top:10px;
}

/* الأزرار */
.btn,
.top-link,
.link-btn{
    padding:8px 10px;
    border-radius:8px;
    font-size:12px;
}

.login-btn{
    padding:10px 12px;
    font-size:13px;
}

/* الجداول */
.table-head{
    padding:10px 12px;
}

.trx-table th{
    font-size:12px;
    padding:10px 12px;
}

.trx-table td{
    padding:10px 12px;
    font-size:12px;
}

.trx-no a{
    font-size:12px;
}

.empty-row{
    font-size:12px;
}

/* الشارات */
.badge,
.type-badge,
.late-badge{
    padding:4px 8px;
    font-size:11px;
}

/* تفاصيل المعاملة */
.hero-head{
    margin-bottom:10px;
}

.hero-meta{
    gap:8px;
    margin-bottom:10px;
}

.meta-item,
.mini-stat,
.notes-box{
    padding:10px;
    border-radius:10px;
}

.mini-stat strong{
    font-size:16px;
}

/* progress */
.progress-bar.lg{
    height:8px;
}

.progress-text{
    font-size:11px;
}

/* التايم لاين */
.timeline{
    padding-right:22px;
}

.timeline::before{
    right:8px;
}

.timeline-dot{
    width:12px;
    height:12px;
    right:2px;
    top:8px;
}

.timeline-content{
    margin-right:24px;
    padding:10px 12px;
    border-radius:10px;
}

.timeline-title{
    font-size:13px;
}

.timeline-note{
    font-size:12px;
    padding:8px 10px;
    border-radius:8px;
}

/* التنبيهات */
.flash-alert,
.alert-box{
    padding:10px 12px;
    border-radius:10px;
}

/* صفحة الدخول */
.login-card{
    max-width:380px;
    border-radius:16px;
}

.login-brand-mark{
    width:40px;
    height:40px;
    border-radius:12px;
    font-size:18px;
}

.login-feature{
    padding:6px 10px;
    font-size:12px;
}

@media (max-width: 700px){
    body.app-body,
    body.login-page{
        font-size:12px;
    }

    .page-title{
        font-size:18px;
    }

    .hero-number{
        font-size:18px;
    }

    .hero-subject{
        font-size:15px;
    }

    .btn,
    .top-link,
    .link-btn{
        font-size:11px;
        padding:7px 9px;
    }

    .trx-table th,
    .trx-table td{
        padding:8px 10px;
    }
}
.alert-box.info{
    background:#eff6ff;
    border:1px solid #cfe2ff;
    color:#1d4ed8;
}

.parent-transaction-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:14px;
    border:1px solid #edf1f5;
    border-radius:14px;
    background:#fbfcfe;
    flex-wrap:wrap;
}

.parent-transaction-no a{
    font-size:15px;
    font-weight:800;
    color:#1565c0;
    text-decoration:none;
}

.parent-transaction-subject{
    margin-top:4px;
    color:#475569;
    line-height:1.8;
}

.parent-transaction-meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.main-row{
    font-weight:700;
}

.child-row{
    background:#fafcff;
}

.child-prefix{
    color:#94a3b8;
    margin-left:6px;
    font-size:12px;
}
.timeline-user{
    margin-top:6px;
    font-size:11px;
    color:#64748b;
}
.simple-login-page{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(circle at top right, #eaf4ff 0, transparent 28%),
        linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
    font-family:'Tajawal', Tahoma, Arial, sans-serif;
}

.simple-login-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.simple-login-card{
    width:100%;
    max-width:380px;
    background:#fff;
    border:1px solid #e7edf4;
    border-radius:18px;
    box-shadow:0 18px 40px rgba(15,23,42,.08);
    padding:20px;
}

.text-center{
    text-align:center;
}

.login-brand-mark.centered{
    margin:0 auto;
    width:42px;
    height:42px;
    border-radius:12px;
    background:linear-gradient(135deg, #1f6feb 0%, #2f80ed 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(47,128,237,.20);
}

.simple-login-card .login-card-head{
    margin-bottom:16px;
    padding-bottom:12px;
    border-bottom:1px solid #eef2f6;
}

.simple-login-card .page-title{
    margin:6px 0 4px;
    font-size:20px;
}

.simple-login-card .page-sub{
    font-size:12px;
    color:#64748b;
}

.simple-login-card .login-form .field{
    margin-bottom:12px;
}

.simple-login-card .login-form .field label{
    display:block;
    font-size:11px;
    color:#6b7280;
    margin-bottom:6px;
    text-align:right;
}

.simple-login-card .login-form .field input{
    width:100%;
    border:1px solid #d7dee7;
    border-radius:10px;
    padding:10px 12px;
    background:#fff;
    font-size:13px;
    outline:none;
    box-sizing:border-box;
}

.simple-login-card .login-form .field input:focus{
    border-color:#93c5fd;
    box-shadow:0 0 0 4px rgba(59,130,246,.10);
}

.simple-login-card .login-btn{
    width:100%;
    margin-top:6px;
    padding:11px 12px;
    font-size:13px;
    border-radius:10px;
}

@media (max-width: 640px){
    .simple-login-wrap{
        padding:14px;
    }

    .simple-login-card{
        max-width:100%;
        padding:16px;
        border-radius:16px;
    }

    .simple-login-card .page-title{
        font-size:18px;
    }
}
.priority-note{
    font-size:11px;
    color:#64748b;
    background:#f8fafc;
    border:1px solid #e7edf4;
    border-radius:10px;
    padding:8px 10px;
}
.priority-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:4px 8px;
    font-size:11px;
    font-weight:700;
}

.priority-badge.urgent-very{
    background:#fff1f1;
    color:#b42318;
    border:1px solid #ffd6d6;
}

.priority-badge.urgent{
    background:#fff7e8;
    color:#b4690e;
    border:1px solid #ffe2b8;
}

.priority-badge.medium{
    background:#eef6ff;
    color:#1d4ed8;
    border:1px solid #d6e5ff;
}
.pagination-wrap{
    padding:12px 14px 16px;
    border-top:1px solid #edf1f5;
    background:#fff;
}

.pagination{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    align-items:center;
}

.page-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:34px;
    padding:0 10px;
    border-radius:8px;
    text-decoration:none;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#334155;
    font-size:12px;
    font-weight:700;
}

.page-link.active{
    background:#2f80ed;
    border-color:#2f80ed;
    color:#fff;
}
.dashboard-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.kpi-card.urgent-very{
    border-top-color:#b42318;
}

@media (max-width: 1000px){
    .dashboard-grid{
        grid-template-columns:1fr;
    }
}
.type-form-grid{
    display:grid;
    grid-template-columns:2fr 1fr 120px auto;
    gap:10px;
    align-items:end;
}

.type-field label{
    display:block;
    margin-bottom:6px;
    font-weight:700;
    font-size:13px;
}

.type-field input{
    width:100%;
    height:40px;
    border:1px solid #dbe3ee;
    border-radius:10px;
    padding:0 12px;
    font-family:inherit;
    font-size:14px;
    background:#fff;
}

.type-actions{
    display:flex;
    gap:8px;
    align-items:end;
    flex-wrap:wrap;
}

@media (max-width: 900px){
    .type-form-grid{
        grid-template-columns:1fr;
    }
}
/* أخضر */
.type-badge.green {
    background: #eefaf1;
    color: #166534;
}

/* أزرق */
.type-badge.blue {
    background: #eef4ff;
    color: #1f4b99;
}

/* أحمر */
.type-badge.red {
    background: #fef2f2;
    color: #991b1b;
}

/* أصفر */
.type-badge.yellow {
    background: #fefce8;
    color: #854d0e;
}

/* برتقالي */
.type-badge.orange {
    background: #fff7ed;
    color: #9a3412;
}

/* بنفسجي */
.type-badge.purple {
    background: #f5f3ff;
    color: #5b21b6;
}

/* وردي */
.type-badge.pink {
    background: #fdf2f8;
    color: #be185d;
}

/* سماوي */
.type-badge.cyan {
    background: #ecfeff;
    color: #155e75;
}

/* تركوازي */
.type-badge.teal {
    background: #f0fdfa;
    color: #134e4a;
}

/* رمادي */
.type-badge.gray {
    background: #f3f4f6;
    color: #374151;
}

/* كحلي */
.type-badge.navy {
    background: #eef2ff;
    color: #1e3a8a;
}

/* بني */
.type-badge.brown {
    background: #fdf8f6;
    color: #78350f;
}

/* زيتوني */
.type-badge.olive {
    background: #f7fee7;
    color: #4d7c0f;
}

/* ذهبي */
.type-badge.gold {
    background: #fffbeb;
    color: #92400e;
}

/* داكن */
.type-badge.dark {
    background: #1f2937;
    color: #f9fafb;
}
.color-guide.modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

/* كل عنصر */
.color-guide.modern .color-item {
    display: flex;
    justify-content: center;
}

/* شكل البادج */
.color-guide.modern .type-badge {
    width: 100%;
    text-align: center;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Hover بسيط */
.color-guide.modern .type-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.type-form-grid{
    display:grid;
    grid-template-columns: 1.2fr 1fr 120px 1fr 120px auto;
    gap:10px;
    align-items:end;
}
.type-field label{
    display:block;
    margin-bottom:6px;
    font-weight:700;
    font-size:13px;
}
.type-field input{
    width:100%;
    height:40px;
    border:1px solid #dbe3ee;
    border-radius:10px;
    padding:0 12px;
    font-family:inherit;
    font-size:14px;
    background:#fff;
}
.type-actions{
    display:flex;
    gap:8px;
    align-items:end;
    flex-wrap:wrap;
}
@media (max-width: 1100px){
    .type-form-grid{
        grid-template-columns:1fr;
    }
}
.field-hint{
    margin-top:8px;
    padding:8px 10px;
    border-radius:10px;
    font-size:.88rem;
    line-height:1.7;
}

.field-hint.danger{
    background:#fff7f7;
    color:#b42318;
    border:1px solid #f1d0d0;
}

.field-hint a{
    color:inherit;
    font-weight:700;
    text-decoration:none;
}

.field-hint a:hover{
    text-decoration:underline;
}

.hint-sub{
    margin-top:2px;
    color:#7a5a5a;
    font-size:.82rem;
}



.form-section{
    margin-bottom:16px;
}

.form-section:last-of-type{
    margin-bottom:0;
}

.form-grid.form-grid-4{
    grid-template-columns:repeat(4, 1fr);
}

.form-grid.form-grid-3{
    grid-template-columns:repeat(3, 1fr);
}
.dashboard-filter-card {
	margin-bottom: 16px;
}

.dashboard-hero {
	margin-bottom: 16px;
	padding: 18px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 18px;
	border: 1px solid var(--kafu-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.dashboard-hero-kicker {
	color: var(--kafu-muted);
	font-size: 11px;
	font-weight: 900;
}

.dashboard-hero-number {
	margin-top: 6px;
	color: var(--kafu-navy);
	font-size: 42px;
	line-height: 1;
	font-weight: 900;
}

.dashboard-hero-sub {
	margin-top: 8px;
	color: var(--kafu-muted);
	font-size: 12px;
	font-weight: 700;
}

.dashboard-hero-side {
	display: grid;
	align-content: center;
	gap: 10px;
	padding: 14px;
	border-radius: 18px;
	background: #F8FBFE;
	border: 1px solid var(--kafu-border);
}

.hero-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hero-stat-row span {
	color: var(--kafu-muted);
	font-size: 12px;
	font-weight: 900;
}

.hero-stat-row strong {
	color: var(--kafu-navy);
	font-size: 18px;
	font-weight: 900;
}

.hero-progress {
	height: 8px;
	border-radius: 999px;
	background: #EAF0F6;
	overflow: hidden;
}

.hero-progress-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--kafu-blue);
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.dashboard-grid-bottom {
	align-items: stretch;
}

.dashboard-section-card,
.dashboard-note-card,
.dashboard-latest-card {
	overflow: hidden;
}

.dashboard-note-card {
	padding: 18px;
	border: 1px solid var(--kafu-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--kafu-shadow-sm);
}

.dashboard-note-head {
	margin-bottom: 14px;
}

.dashboard-note-list {
	display: grid;
	gap: 12px;
}

.dashboard-note-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border-radius: 14px;
	background: #F8FBFE;
	border: 1px solid var(--kafu-border);
}

.note-dot {
	width: 9px;
	height: 9px;
	margin-top: 7px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.note-dot.blue {
	background: var(--kafu-blue);
}

.note-dot.red {
	background: #D92D20;
}

.note-dot.orange {
	background: var(--kafu-gold);
}

.note-dot.green {
	background: var(--kafu-green);
}

.note-title {
	color: var(--kafu-navy);
	font-size: 12px;
	font-weight: 900;
}

.note-text {
	margin-top: 3px;
	color: var(--kafu-muted);
	font-size: 11.5px;
	line-height: 1.8;
}

.note-text strong {
	color: var(--kafu-navy);
}

.late-days {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #FFF1F1;
	color: #B42318;
	font-size: 10.5px;
	font-weight: 900;
}

@media (max-width: 1100px) {
	.dashboard-hero,
	.dashboard-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.dashboard-hero-number {
		font-size: 34px;
	}
}
.field-note-muted{
    margin-top:6px;
    font-size:11px;
    color:#6b7280;
    line-height:1.6;
}

.field input[readonly]{
    background:#f8fafc;
    color:#475569;
}

@media (max-width: 1100px){
    .form-grid.form-grid-4{
        grid-template-columns:repeat(2, 1fr);
    }

    .form-grid.form-grid-3{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 700px){
    .form-grid.form-grid-4,
    .form-grid.form-grid-3{
        grid-template-columns:1fr;
    }
}
.form-grid.form-grid-4{
    grid-template-columns:repeat(4, 1fr);
}

.field input[readonly]{
    background:#f8fafc;
    color:#475569;
}

@media (max-width: 1100px){
    .form-grid.form-grid-4{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 700px){
    .form-grid.form-grid-4{
        grid-template-columns:1fr;
    }
}
.subject-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    align-items:start;
}

.subject-search-btn{
    white-space:nowrap;
}

.similar-box{
    margin-top:10px;
    border:1px solid #e7edf4;
    background:#fbfcfe;
    border-radius:12px;
    padding:10px;
}

.similar-box-title{
    font-size:12px;
    font-weight:800;
    color:#334155;
    margin-bottom:8px;
}

.similar-list{
    display:grid;
    gap:8px;
}

.similar-item{
    display:block;
    text-decoration:none;
    color:inherit;
    background:#fff;
    border:1px solid #edf1f5;
    border-radius:10px;
    padding:10px;
    transition:.15s ease;
}

.similar-item:hover{
    background:#f8fbff;
    border-color:#d9e9ff;
}

.similar-item-top{
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:11px;
    color:#64748b;
    margin-bottom:4px;
}

.similar-item-top strong{
    color:#1565c0;
    font-size:12px;
}

.similar-item-subject{
    font-size:12px;
    color:#334155;
    line-height:1.8;
}

@media (max-width: 700px){
    .subject-row{
        grid-template-columns:1fr;
    }

    .subject-search-btn{
        width:100%;
    }
}
.notif-wrap{
    position:relative;
}

.notif-btn{
    position:relative;
    background:none;
    border:none;
    font-size:18px;
    cursor:pointer;
}

.notif-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    background:#ef4444;
    color:#fff;
    font-size:10px;
    padding:2px 6px;
    border-radius:999px;
    font-weight:700;
}

.notif-dropdown{
    position:absolute;
    top:38px;
    right:0;
    width:280px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    display:none;
    z-index:100;
    padding:10px;
}

.notif-dropdown.show{
    display:block;
}

.notif-title{
    font-size:13px;
    font-weight:800;
    margin-bottom:8px;
    color:#111827;
}

.notif-item{
    display:block;
    padding:8px;
    border-radius:8px;
    text-decoration:none;
    color:inherit;
    transition:.15s;
}

.notif-item:hover{
    background:#f8fafc;
}

.notif-top{
    display:flex;
    justify-content:space-between;
    font-size:11px;
    color:#64748b;
}

.notif-subject{
    font-size:12px;
    color:#334155;
    margin-top:3px;
}

.notif-empty{
    font-size:12px;
    color:#64748b;
    text-align:center;
    padding:10px;
}
.notif-dropdown{
    max-height:320px;
    overflow-y:auto;
}
.notif-view-all{
    display:block;
    text-align:center;
    padding:8px;
    font-size:12px;
    color:#1565c0;
    text-decoration:none;
    border-top:1px solid #eee;
    margin-top:6px;
}

.notif-view-all:hover{
    background:#f8fafc;
}
.text-center{
    text-align:center;
}
.trx-table th.text-center,
.trx-table td.text-center{
    text-align:center;
}
.actions-inline{
    display:flex;
    justify-content:center;
    gap:10px;
}

.icon-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:15px;
    transition:all .15s ease;
    opacity:.7;
}

/* عند المرور */
.icon-btn:hover{
    opacity:1;
    transform:scale(1.15);
}

/* ألوان خفيفة */
.icon-btn.view{
    color:#2563eb; /* أزرق */
}

.icon-btn.edit{
    color:#16a34a; /* أخضر */
}

.icon-btn.delete{
    color:#dc2626; /* أحمر */
}
.icon-btn{
    position:relative;
}

.icon-btn:hover::after{
    content:attr(title);
    position:absolute;
    bottom:-22px;
    font-size:10px;
    background:#111;
    color:#fff;
    padding:2px 6px;
    border-radius:6px;
    white-space:nowrap;
}
.child-chip{
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:10px;
    padding:2px 6px;
    border-radius:6px;
    background:#fef2f2;
    color:#dc2626;
    font-weight:700;
}

.child-icon{
    font-size:11px;
    line-height:1;
}

.trx-parent{
    font-size:11px;
    color:#64748b;
    margin-top:3px;
}


.trx-table th.text-center,
.trx-table td.text-center{
    text-align:center;
}
.trx-number-row{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    margin-bottom:3px;
}

.child-chip{
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:10px;
    padding:2px 6px;
    border-radius:6px;
    background:#fef2f2;
    color:#dc2626;
    font-weight:700;
}

.trx-parent{
    font-size:11px;
    color:#64748b;
    margin-top:2px;
}
.page-link.dots{
    pointer-events:none;
    background:transparent;
    border:none;
    min-width:auto;
}
.ultra-footer{
    text-align:center;
    font-size:12px;
    color:#9ca3af;
    margin-top:30px;
    padding:10px;
}

.ultra-footer .footer-sep{
    margin:0 6px;
    color:#d1d5db;
}


.detail-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:12px 20px;
}

.event-actions-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:16px;
	padding:16px;
}

.mini-form{
	display:flex;
	flex-direction:column;
	gap:10px;
	padding:14px;
	border:1px solid #e5e7eb;
	border-radius:14px;
	background:#fafafa;
}

.mini-form h4{
	margin:0;
	font-size:14px;
	color:#111827;
}

@media (max-width: 900px){
	.detail-grid,
	.event-actions-grid{
		grid-template-columns:1fr;
	}
}
.notif-section-title{
	font-size:12px;
	font-weight:800;
	color:#64748b;
	margin:12px 10px 6px;
}

.notif-item.danger{
	background:#fff5f5;
	border-color:#fecaca;
}

.notif-item.warning{
	background:#fff7ed;
	border-color:#fed7aa;
}
.admin-menu-wrap{
	position:relative;
	display:inline-flex;
}

.admin-menu-btn{
	border:0;
	background:#fff;
	color:#111827;
	border-radius:12px;
	padding:10px 14px;
	font-weight:700;
	cursor:pointer;
	box-shadow:0 8px 20px rgba(15,23,42,.08);
}

.admin-menu-dropdown{
	position:absolute;
	top:46px;
	right:0;
	min-width:210px;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:16px;
	box-shadow:0 18px 40px rgba(15,23,42,.14);
	padding:8px;
	z-index:999;
	display:none;
}

.admin-menu-dropdown.show{
	display:block;
}

.admin-menu-dropdown a{
	display:block;
	padding:10px 12px;
	border-radius:10px;
	text-decoration:none;
	color:#111827;
	font-size:13px;
	font-weight:700;
}

.admin-menu-dropdown a:hover{
	background:#f8fafc;
}
.transactions-menu > a{
	color:#16a34a;
}

.monitoring-menu > a{
	color:#2563eb;
}
.done-badge{
	background:#dcfce7;
	color:#166534;
	padding:2px 8px;
	border-radius:999px;
	font-size:11px;
	font-weight:700;
}
.notif-item{
	padding:10px 12px;
	display:block;
	border-radius:10px;
	transition:0.2s;
	position:relative;
}

/* الفاصل */
.notif-item:not(:last-child)::after{
	content:"";
	position:absolute;
	bottom:-4px;
	left:10px;
	right:10px;
	height:1px;
	background:linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* hover */
.notif-item:hover{
	background:#f9fafb;
}

.access-map {
    padding: 12px;
}

.access-group {
    position: relative;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
        border-right: 3px solid #e2e8f0;

}

.access-permission-head {
    padding: 9px 11px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.access-permission-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.access-index {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.access-total {
    margin-right: auto;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 10.5px;
    font-weight: 900;
}

.access-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 10px;
}

.access-location-box {
    border: 1px solid #edf2f7;
    border-radius: 13px;
    background: #fcfcfd;
    padding: 8px;
}

.access-location-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.access-location-head .type-badge {
    min-width: 0;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-location-count {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.access-employee-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.access-employee {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

.access-employee::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #22c55e;
    flex: 0 0 auto;
}

.access-employee:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.access-employee.inactive {
    opacity: .55;
    text-decoration: line-through;
}

.access-employee.inactive::before {
    background: #ef4444;
}

.access-map .type-badge {
    font-size: 12.5px;
    padding: 4px 8px;
}

@media (min-width: 1500px) {
    .access-location-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .access-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .access-location-grid {
        grid-template-columns: 1fr;
    }
}
.access-permission-head {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.perm-head-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.perm-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.perm-name {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: .2px;
}

.perm-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.perm-count {
    font-size: 14px;
    font-weight: 900;
    color: #2563eb;
}

.perm-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 800;
}
.quick-add-employee {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    margin-bottom: 7px;
    border-radius: 999px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #2563eb;
    font-size: 10.5px;
    font-weight: 900;
    text-decoration: none;
}

.quick-add-employee:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
.access-location-box.is-empty {
    opacity: .72;
    background: #f8fafc;
    border-style: dashed;
}

.permission-check-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--kafu-border);
	border-radius: 14px;
	background: #F8FBFE;
}

.permission-check {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.permission-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.permission-check-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--kafu-border);
	background: #fff;
	color: var(--kafu-muted);
	font-size: 11.5px;
	font-weight: 900;
	transition: .18s ease;
}

.permission-check input:checked + .permission-check-chip {
	background: var(--kafu-navy);
	border-color: var(--kafu-navy);
	color: #fff;
}

.permission-check:hover .permission-check-chip {
	border-color: var(--kafu-blue);
	color: var(--kafu-navy);
}

.alert-box.warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.upload-drop-zone input[type="file"] {
    display: none;
}

.upload-drop-label {
    display: block;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: .15s ease;
}

.upload-drop-label:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.upload-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.upload-title {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
}

.upload-sub {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.selected-files {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-file-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    color: #334155;
}
.upload-drop-label.is-dragover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
.attachment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    text-decoration: none;
    transition: .15s;
}

.attachment-indicator:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.attachment-indicator .icon {
    font-size: 12px;
}

.attachment-indicator .count {
    font-size: 10px;
}
.log-attachments {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.log-attachment-item {
    font-size: 11px;
    font-weight: 800;
    color: #1d4ed8;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f8fafc;
}

.log-attachment-item:hover {
    background: #eff6ff;
}
.monitoring-event-files {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.monitoring-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 260px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.monitoring-file-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.monitoring-file-chip .file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.monitoring-file-chip .file-size {
    color: #64748b;
    font-size: 10px;
    flex: 0 0 auto;
}

.monitoring-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    padding: 12px;
}

.monitoring-file-card {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 9px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.monitoring-file-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.file-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-card-name {
    font-size: 12px;
    font-weight: 900;
    color: #1d4ed8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-card-meta {
    margin-top: 3px;
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
}



:root{
  --sky:#2BAAE2;
  --blue:#1691D0;
  --navy:#15508A;
  --indigo:#283A83;
  --teal:#057590;
  --aqua:#3AC0C3;
  --green:#48AD48;

  --white:#fff;
  --bg:#F4F8FB;
  --bg-soft:#EBF3F9;
  --text-dk:#0A1A2C;
  --text-md:#34546F;
  --text-lt:#6B85A0;
  --border:#D6E4EF;
  --border-soft:#E8F0F6;

  --success-bg:#E8F7E8;
  --success-fg:#2D8A2D;
  --warn-bg:#FFF3D6;
  --warn-fg:#8A6614;
  --danger-bg:#FDE8E8;
  --danger-fg:#B83232;
}

body.kafu-style{
  font-family:'Noto Kufi Arabic','Tajawal','Segoe UI',sans-serif;
  background:var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(43,170,226,.08) 0%, transparent 50%),
    radial-gradient(circle at 88% 92%, rgba(40,58,131,.06) 0%, transparent 60%);
  color:var(--text-dk);
  padding:0;
  font-size:13px;
  line-height:1.7;
}

.kafu-style .app-header{
  background:#fff;
  border-bottom:1px solid var(--border-soft);
  position:sticky;
  top:0;
  z-index:100;
}

.kafu-style .app-header-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.kafu-style .brand-block{
  display:flex;
  align-items:center;
  gap:14px;
}

.kafu-style .brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--aqua),var(--teal));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.kafu-style .brand-title{
  color:var(--navy);
  font-size:14px;
  font-weight:700;
}

.kafu-style .header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.kafu-style .content-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:32px 24px 50px;
}

.kafu-style .page-head{
  margin-bottom:24px;
}

.kafu-style .kafu-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.kafu-style .page-crumb{
  display:flex;
  gap:7px;
  align-items:center;
  font-size:11px;
  color:var(--text-lt);
  margin-bottom:10px;
}

.kafu-style .page-title{
  font-size:30px;
  font-weight:800;
  color:var(--navy);
  margin:0 0 6px;
  letter-spacing:-.02em;
}

.kafu-style .page-sub{
  font-size:14px;
  color:var(--text-md);
}

.kafu-style .btn,
.kafu-style .top-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 15px;
  border-radius:10px;
  font-size:12px;
  font-weight:600;
  font-family:inherit;
  text-decoration:none;
  border:1.5px solid transparent;
  transition:.2s;
  white-space:nowrap;
  cursor:pointer;
}

.kafu-style .btn-primary,
.kafu-style .btn.green,
.kafu-style button.btn{
  background:linear-gradient(135deg,var(--navy),var(--blue));
  color:#fff;
}

.kafu-style .btn-primary:hover,
.kafu-style .btn.green:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(22,145,208,.28);
}

.kafu-style .btn-secondary,
.kafu-style .btn-light{
  background:#fff;
  color:var(--navy);
  border-color:var(--border);
}

.kafu-style .btn-secondary:hover,
.kafu-style .btn-light:hover{
  background:var(--bg-soft);
  border-color:var(--blue);
}

.kafu-style .btn.blue{
  background:rgba(22,145,208,.08);
  color:var(--blue);
  border-color:rgba(22,145,208,.18);
}

.kafu-style .btn.red{
  background:var(--danger-bg);
  color:var(--danger-fg);
  border-color:rgba(184,50,50,.15);
}

.kafu-style .btn.orange{
  background:var(--warn-bg);
  color:var(--warn-fg);
  border-color:rgba(138,102,20,.15);
}

.kafu-style .card,
.kafu-style .kpi-card,
.kafu-style .filter-card,
.kafu-style .table-card{
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:16px;
  box-shadow:0 4px 24px rgba(10,38,71,.05);
}

.kafu-style .kpi-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
  margin-bottom:18px;
}

.kafu-style .kpi-card{
  padding:16px;
  border-top:0;
  position:relative;
  overflow:hidden;
}

.kafu-style .kpi-card::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:4px;
  background:var(--blue);
}

.kafu-style .kpi-card.total::before{background:var(--navy);}
.kafu-style .kpi-card.new::before{background:var(--blue);}
.kafu-style .kpi-card.progress::before{background:#C9A437;}
.kafu-style .kpi-card.done::before{background:var(--green);}
.kafu-style .kpi-card.rejected::before{background:#B83232;}
.kafu-style .kpi-card.late::before{background:#F59E0B;}

.kafu-style .kpi-label{
  color:var(--text-lt);
  font-size:11px;
  font-weight:600;
  margin-bottom:8px;
}

.kafu-style .kpi-value{
  color:var(--navy);
  font-size:25px;
  font-weight:800;
  line-height:1;
}

.kafu-style .type-strip{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.kafu-style .type-pill{
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:999px;
  padding:7px 13px;
  font-size:12px;
  font-weight:600;
  color:var(--text-md);
  box-shadow:0 2px 10px rgba(10,38,71,.04);
}

.kafu-style .type-pill strong{
  color:var(--navy);
  margin-right:6px;
}

.kafu-style .filter-card{
  padding:18px;
  margin-bottom:18px;
}

.kafu-style .filters-advanced{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px;
  align-items:end;
}

.kafu-style .field label{
  display:block;
  color:var(--navy);
  font-size:12px;
  font-weight:700;
  margin-bottom:7px;
}

.kafu-style .field input,
.kafu-style .field select,
.kafu-style .field textarea{
  width:100%;
  padding:11px 13px;
  border:1.5px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:var(--text-dk);
  font-family:inherit;
  font-size:13px;
  outline:none;
  transition:.2s;
}

.kafu-style .field input:focus,
.kafu-style .field select:focus,
.kafu-style .field textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(22,145,208,.08);
}

.kafu-style .table-card{
  overflow:hidden;
}

.kafu-style .table-head{
  padding:18px 20px;
  border-bottom:1px solid var(--border-soft);
  background:linear-gradient(180deg,#fff 0%,#FAFCFE 100%);
}

.kafu-style .table-title{
  color:var(--navy);
  font-size:16px;
  font-weight:800;
}

.kafu-style .table-count{
  color:var(--text-lt);
  font-size:12px;
}

.kafu-style .trx-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.kafu-style .trx-table th{
  background:#F8FBFE;
  color:var(--text-md);
  font-size:12px;
  font-weight:700;
  padding:12px 14px;
  border-bottom:1px solid var(--border-soft);
  white-space:nowrap;
}

.kafu-style .trx-table td{
  padding:13px 14px;
  border-bottom:1px solid var(--border-soft);
  color:var(--text-dk);
  vertical-align:middle;
}

.kafu-style .trx-table tbody tr:hover{
  background:#F8FBFE;
}

.kafu-style .trx-number{
  color:var(--navy);
  font-weight:800;
  text-decoration:none;
}

.kafu-style .trx-subject{
  color:var(--text-md);
  font-size:12px;
  margin-top:3px;
}

.kafu-style .badge,
.kafu-style .type-badge,
.kafu-style .priority-badge,
.kafu-style .late-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:700;
}

.kafu-style .badge.new{
  background:rgba(22,145,208,.1);
  color:var(--blue);
}

.kafu-style .badge.in_progress{
  background:var(--warn-bg);
  color:var(--warn-fg);
}

.kafu-style .badge.done{
  background:var(--success-bg);
  color:var(--success-fg);
}

.kafu-style .badge.rejected{
  background:var(--danger-bg);
  color:var(--danger-fg);
}

.kafu-style .late-badge{
  background:var(--danger-bg);
  color:var(--danger-fg);
  margin-top:5px;
}

.kafu-style .type-badge{
  background:rgba(22,145,208,.08);
  color:var(--navy);
  border:1px solid rgba(22,145,208,.15);
}

.kafu-style .priority-badge{
  background:#FBFCFE;
  color:var(--text-md);
  border:1px solid var(--border-soft);
  margin-top:5px;
}

.kafu-style .attachment-indicator{
  display:inline-flex;
  align-items:center;
  gap:5px;
  text-decoration:none;
  background:rgba(22,145,208,.08);
  color:var(--blue);
  border:1px solid rgba(22,145,208,.15);
  padding:5px 9px;
  border-radius:999px;
  font-weight:700;
}

.kafu-style .icon-btn{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  text-decoration:none;
  background:#fff;
  border:1px solid var(--border-soft);
  transition:.2s;
}

.kafu-style .icon-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(10,38,71,.08);
}

.kafu-style .icon-btn.view{background:rgba(22,145,208,.08);}
.kafu-style .icon-btn.edit{background:var(--success-bg);}
.kafu-style .icon-btn.delete{background:var(--danger-bg);}

.kafu-style .row-late{
  background:#FFF9F5;
}

.kafu-style .row-done{
  background:#FAFFFB;
}

.kafu-style .child-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(40,58,131,.08);
  color:var(--indigo);
  border-radius:999px;
  padding:3px 8px;
  font-size:10px;
  font-weight:700;
}

.kafu-style .admin-menu-wrap,
.kafu-style .notif-wrap{
  position:relative;
}

.kafu-style .notif-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  background:var(--bg-soft);
  border:1px solid var(--border-soft);
  position:relative;
}

.kafu-style .notif-badge{
  position:absolute;
  top:-5px;
  left:-5px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#B83232;
  color:#fff;
  font-size:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.kafu-style .notif-dropdown,
.kafu-style .admin-menu-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:320px;
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(10,38,71,.12);
  padding:12px;
  display:none;
  z-index:200;
}

.kafu-style .admin-menu-dropdown{
  width:230px;
}

.kafu-style .notif-dropdown.show,
.kafu-style .admin-menu-dropdown.show{
  display:block;
}

.kafu-style .notif-title,
.kafu-style .notif-section-title{
  color:var(--navy);
  font-weight:800;
  font-size:12px;
  margin-bottom:8px;
}

.kafu-style .notif-item,
.kafu-style .admin-menu-dropdown a{
  display:block;
  text-decoration:none;
  color:var(--text-md);
  padding:9px 10px;
  border-radius:10px;
  font-size:12px;
}

.kafu-style .notif-item:hover,
.kafu-style .admin-menu-dropdown a:hover{
  background:var(--bg-soft);
  color:var(--navy);
}

.kafu-style .flash-alert{
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:18px;
  border:1px solid var(--border-soft);
  background:#fff;
  box-shadow:0 4px 18px rgba(10,38,71,.05);
}

.kafu-style .flash-alert.success{
  background:var(--success-bg);
  color:var(--success-fg);
}

.kafu-style .flash-alert.error{
  background:var(--danger-bg);
  color:var(--danger-fg);
}

.kafu-style .flash-alert.warning{
  background:var(--warn-bg);
  color:var(--warn-fg);
}

.kafu-style .app-footer{
  max-width:1180px;
  margin:0 auto;
  padding:20px 24px 30px;
  color:var(--text-lt);
  font-size:11px;
  text-align:center;
}

@media(max-width:1100px){
  .kafu-style .kpi-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:720px){
  .kafu-style .app-header-inner,
  .kafu-style .kafu-page-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .kafu-style .header-actions{
    width:100%;
  }

  .kafu-style .content-wrap{
    padding:22px 14px 40px;
  }

  .kafu-style .page-title{
    font-size:24px;
  }

  .kafu-style .kpi-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .kafu-style .table-wrap{
    overflow:auto;
  }
}
