/* =========================================================
   پاسپورت بیمار نوژین — استایل نهایی
   رنگ‌ها: سبز نوژین #213640 | طلایی #c8a97e و #d4af37
   ========================================================= */

/* =========================================================
   ۱. پایه
   ========================================================= */
.npp-wrap {
	direction: rtl;
	text-align: right;
	font-family: "Estedad", "Vazirmatn", Tahoma, "Iranian Sans", sans-serif;
	color: #1e293b;
	max-width: 720px;
	margin: 24px auto;
	padding: 0 12px;
}

/* =========================================================
   ۲. رفع مشکل نمایش عناصر hidden (به‌ویژه موبایل)
   ========================================================= */
html body .npp-wrap [hidden],
html body .npp-wrap.npp-login [hidden],
html body .npp-wrap.npp-dashboard [hidden],
html body .npp-wrap button[hidden],
html body .npp-wrap div[hidden],
html body .npp-wrap input[hidden],
html body .npp-wrap .npp-btn[hidden],
html body .npp-login [hidden],
html body .npp-dashboard [hidden] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	position: absolute !important;
	left: -99999px !important;
}

/* =========================================================
   ۳. فرم ورود (Login)
   ========================================================= */
.npp-wrap.npp-login {
	background: linear-gradient(135deg, #fdfbf7 0%, #f4efe6 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	margin: 0;
	max-width: 100%;
}

.npp-login .npp-card {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 24px;
	box-shadow: 0 20px 40px -10px rgba(33, 54, 64, 0.12);
	padding: 40px;
	max-width: 520px;
	width: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.npp-login .npp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 25px 50px -10px rgba(33, 54, 64, 0.18);
}

.npp-login .npp-logo {
	text-align: center;
	margin-bottom: 15px;
}

.npp-login .npp-logo img {
	max-width: 140px;
	height: auto;
}

.npp-login .npp-title {
	color: #213640;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
	text-align: center;
}

.npp-login .npp-subtitle {
	color: #c8a97e;
	font-size: 15px;
	text-align: center;
	margin: 0 0 30px;
	font-weight: 600;
	line-height: 1.8;
	padding: 0 8px;
}

/* --- فیلدها --- */
.npp-login .npp-field {
	margin-bottom: 20px;
}

.npp-login .npp-form label {
	color: #213640;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	display: block;
}

.npp-login .npp-input {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	color: #213640;
	font-size: 16px;
	padding: 16px;
	text-align: center;
	letter-spacing: 1px;
	direction: ltr;
	transition: all 0.3s ease;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.npp-login .npp-input:focus {
	background: #ffffff;
	border-color: #c8a97e;
	box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.18);
	outline: none;
}

.npp-login .npp-input::placeholder {
	color: #94a3b8;
	letter-spacing: normal;
}

.npp-login .npp-input.is-readonly {
	background: #f8f5ef;
	color: #64748b;
	cursor: not-allowed;
	direction: rtl;
	text-align: right;
	padding-left: 16px;
	padding-right: 16px;
	letter-spacing: 0;
	font-weight: 600;
	border-color: #e2e8f0;
}

.npp-login .npp-input.is-readonly:focus {
	box-shadow: none;
	border-color: #e2e8f0;
}

/* --- دکمه‌ها --- */
.npp-login .npp-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 10px;
}

.npp-login .npp-btn {
	border-radius: 50px;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	width: 100%;
	-webkit-tap-highlight-color: transparent;
	font-family: inherit;
}

.npp-login .npp-btn-primary {
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #ffffff;
	box-shadow: 0 8px 15px rgba(200, 169, 126, 0.35);
}

.npp-login .npp-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #d4af37 0%, #c8a97e 100%);
	transform: translateY(-2px);
	box-shadow: 0 12px 20px rgba(212, 175, 55, 0.45);
}

.npp-login .npp-btn-success {
	background: #213640;
	color: #ffffff;
	box-shadow: 0 8px 15px rgba(33, 54, 64, 0.25);
}

.npp-login .npp-btn-success:hover:not(:disabled) {
	background: #16242c;
	transform: translateY(-2px);
	box-shadow: 0 12px 20px rgba(33, 54, 64, 0.35);
}

.npp-login .npp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.npp-login .npp-btn.is-loading,
.npp-login .npp-btn.is-loading:disabled,
.npp-login .npp-btn.is-loading:hover {
	cursor: wait !important;
}

/* --- بازارسال کد --- */
.npp-resend-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
	font-size: 13px;
	color: #64748b;
}

.npp-resend-text {
	color: #64748b;
	font-size: 13px;
}

.npp-resend-btn {
	background: none;
	border: none;
	color: #c8a97e;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	padding: 2px 4px;
	transition: color 0.2s;
	font-family: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.npp-resend-btn:hover:not(:disabled) {
	color: #d4af37;
}

.npp-resend-btn:disabled {
	color: #94a3b8;
	cursor: not-allowed;
	text-decoration: none;
}

.npp-resend-timer {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
}

/* --- پیام‌ها --- */
.npp-login .npp-message {
	text-align: center;
	font-size: 14px;
	margin-top: 15px;
	min-height: 20px;
	font-weight: 600;
}

.npp-login .npp-message.is-error {
	color: #dc2626;
}

.npp-login .npp-message.is-success {
	color: #059669;
}

/* --- انیمیشن ظاهر شدن فیلد کد --- */
@keyframes npp-fade-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.npp-login .npp-code-field:not([hidden]) {
	animation: npp-fade-in 0.4s ease;
}

/* =========================================================
   ۴. داشبورد — پایه
   ========================================================= */
.npp-wrap.npp-dashboard {
	background: #f4efe6;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	max-width: 100%;
	direction: rtl;
	text-align: right;
}

/* =========================================================
   ۵. هدر هیرو (Hero)
   ========================================================= */
.npp-hero {
	position: relative;
	width: 100%;
	min-height: 360px;
	background:
		linear-gradient(135deg, rgba(33, 54, 64, 0.95) 0%, rgba(45, 69, 83, 0.92) 50%, rgba(33, 54, 64, 0.98) 100%),
		radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 20% 80%, rgba(200, 169, 126, 0.12) 0%, transparent 50%);
	overflow: hidden;
}

.npp-hero-overlay {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 25%, rgba(200, 169, 126, 0.15) 0%, transparent 35%),
		radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.1) 0%, transparent 35%);
	pointer-events: none;
}

.npp-hero-dots {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(rgba(200, 169, 126, 0.5) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.08;
	mask-image: radial-gradient(ellipse at 20% 40%, black 20%, transparent 60%),
		radial-gradient(ellipse at 80% 60%, black 20%, transparent 60%);
	-webkit-mask-image: radial-gradient(ellipse at 20% 40%, black 20%, transparent 60%),
		radial-gradient(ellipse at 80% 60%, black 20%, transparent 60%);
	mask-composite: add;
	-webkit-mask-composite: source-over;
	pointer-events: none;
}

.npp-hero-content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 40px 50px;
	display: flex;
	flex-direction: column;
	min-height: 360px;
}

.npp-hero-topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.npp-hero-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.npp-hero-logo {
	max-width: 48px;
	height: auto;
}

.npp-hero-brand-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #ffffff;
}

.npp-hero-brand-text strong {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: #ffffff;
	line-height: 1;
}

.npp-hero-brand-text small {
	font-size: 10.5px;
	color: #c8a97e;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.3px;
}

.npp-dashboard .npp-btn-ghost {
	background: rgba(200, 169, 126, 0.12);
	color: #c8a97e;
	border: 1px solid rgba(200, 169, 126, 0.35);
	border-radius: 50px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.25s;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	letter-spacing: 0.3px;
}

.npp-dashboard .npp-btn-ghost:hover {
	background: #c8a97e;
	color: #213640;
	border-color: #c8a97e;
	transform: translateY(-2px);
}

.npp-logout-icon {
	font-size: 14px;
	display: inline-block;
	line-height: 1;
}

.npp-hero-title {
	margin-top: 55px;
	padding-top: 0;
	text-align: center;
}

.npp-hero-title h1 {
	margin: 0 0 12px;
	font-size: 38px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.5px;
	line-height: 1.3;
	text-align: center;
}

.npp-hero-title p {
	margin: 0;
	font-size: 15px;
	color: #c8a97e;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.2px;
	text-align: center;
}

/* =========================================================
   ۶. کارت پاسپورت شناور
   ========================================================= */
.npp-passport-float {
	max-width: 1200px;
	margin: -70px auto 0;
	padding: 0 40px;
	position: relative;
	z-index: 3;
}

.npp-passport-card {
	position: relative;
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
	border: 1px solid rgba(200, 169, 126, 0.3);
	border-radius: 20px;
	padding: 26px 30px;
	display: flex;
	align-items: center;
	gap: 22px;
	box-shadow: 0 20px 50px -15px rgba(33, 54, 64, 0.25), 0 0 0 1px rgba(200, 169, 126, 0.1);
	overflow: hidden;
}

.npp-passport-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 6px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e 0%, #d4af37 100%);
}

.npp-passport-avatar {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 800;
	color: #c8a97e;
	box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.2), 0 10px 20px rgba(33, 54, 64, 0.2);
	font-family: inherit;
	cursor: pointer;
	overflow: hidden;
}

.npp-passport-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.npp-passport-info {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.npp-passport-label {
	font-size: 11px;
	color: #c8a97e;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1;
}

.npp-passport-name {
	font-size: 21px;
	font-weight: 800;
	color: #213640;
	margin: 3px 0 2px;
	line-height: 1.4;
}

.npp-passport-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
	line-height: 1.6;
}

.npp-passport-meta b {
	color: #213640;
	font-weight: 800;
	letter-spacing: 1px;
	background: rgba(200, 169, 126, 0.15);
	padding: 2px 8px;
	border-radius: 6px;
}

.npp-passport-sep {
	color: #cbd5e1;
	font-size: 14px;
}

.npp-passport-stamp {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 2px dashed rgba(200, 169, 126, 0.6);
	border-radius: 12px;
	color: #c8a97e;
	transform: rotate(-5deg);
}

.npp-passport-stamp span {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 2px;
	line-height: 1;
}

.npp-passport-stamp small {
	font-size: 8px;
	letter-spacing: 1px;
	margin-top: 4px;
	opacity: 0.8;
	line-height: 1;
}

/* =========================================================
   ۷. محتوای اصلی + بخش‌های جمع‌شو
   ========================================================= */
.npp-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 40px 30px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.npp-section {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 20px;
	padding: 30px 34px 32px;
	box-shadow: 0 10px 30px -10px rgba(33, 54, 64, 0.08);
	transition: box-shadow 0.3s ease;
}

.npp-section:hover {
	box-shadow: 0 15px 40px -10px rgba(33, 54, 64, 0.12);
}

.npp-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.npp-toggle-header {
	padding-bottom: 18px;
	border-bottom: 2px solid rgba(200, 169, 126, 0.15);
	margin-bottom: 26px;
	cursor: pointer;
	user-select: none;
}

.npp-section-title-group {
	display: flex;
	align-items: center;
	gap: 14px;
}

.npp-section-title-group h3 {
	margin: 0;
	font-size: 19px;
	color: #213640;
	font-weight: 800;
	letter-spacing: -0.2px;
	line-height: 1.4;
}

.npp-section-icon {
	font-size: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	transition: transform 0.3s;
	flex-shrink: 0;
}

.npp-section:hover .npp-section-icon {
	transform: scale(1.08);
}

.npp-icon-gold {
	background: linear-gradient(135deg, #f8f5ef 0%, #f4efe6 100%);
	border: 1px solid rgba(200, 169, 126, 0.4);
}

.npp-icon-navy {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	border: 1px solid rgba(33, 54, 64, 0.3);
}

/* دکمهٔ جمع/باز */
.npp-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: rgba(200, 169, 126, 0.12);
	border: 1px solid rgba(200, 169, 126, 0.35);
	border-radius: 50%;
	color: #213640;
	cursor: pointer;
	transition: all 0.25s ease;
	flex-shrink: 0;
}

.npp-toggle-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
	transform: scale(1.05);
}

.npp-toggle-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.25);
}

.npp-toggle-btn svg {
	transition: transform 0.3s ease;
	display: block;
}

.npp-section.is-collapsed .npp-toggle-btn svg {
	transform: rotate(-90deg);
}

.npp-section-body {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
	opacity: 1;
}

.npp-section.is-collapsed .npp-section-body {
	grid-template-rows: 0fr;
	opacity: 0;
}

.npp-section-body-inner {
	overflow: hidden;
	min-height: 0;
}

.npp-section.is-collapsed .npp-toggle-header {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* =========================================================
   ۸. کارت‌های اطلاعاتی (Info Box)
   ========================================================= */
.npp-info-box {
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border: 1px solid rgba(200, 169, 126, 0.25);
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
	min-height: 84px;
	justify-content: center;
	text-align: right;
	direction: rtl;
}

.npp-info-box::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e, #d4af37);
	opacity: 0;
	transition: opacity 0.3s;
}

.npp-info-box:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px rgba(200, 169, 126, 0.15);
	transform: translateY(-3px);
}

.npp-info-box:hover::before {
	opacity: 1;
}

.npp-info-label {
	font-size: 12px;
	color: #64748b;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 1.5;
	text-align: right;
}

.npp-info-value {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
	line-height: 1.6;
	text-align: right;
}

.npp-info-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	word-break: normal;
	word-wrap: normal;
	max-width: 100%;
	font-size: 13px;
	font-weight: 700;
	color: #213640;
	line-height: 1.6;
	letter-spacing: 0;
	text-align: right;
}

.npp-ltr {
	direction: ltr;
	text-align: right;
	letter-spacing: 0.5px;
	font-family: "Mada", Tahoma, sans-serif;
}

/* =========================================================
   ۹. گرید مشخصات هویتی
   ========================================================= */
.npp-identity-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

/* =========================================================
   ۱۰. گرید اطلاعات پزشکی (۶ ستونی: ۳ + ۲)
   ========================================================= */
.npp-medical-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.npp-medical-grid > .npp-info-box:nth-child(1),
.npp-medical-grid > .npp-info-box:nth-child(2),
.npp-medical-grid > .npp-info-box:nth-child(3) {
	grid-column: span 2;
}

.npp-medical-grid > .npp-info-box:nth-child(4),
.npp-medical-grid > .npp-info-box:nth-child(5) {
	grid-column: span 3;
}

/* =========================================================
   ۱۱. خط زمانی خدمات
   ========================================================= */
.npp-timeline-list {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}

.npp-timeline-list::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	right: 13px;
	width: 2px;
	background: linear-gradient(to bottom, #c8a97e, #d4af37, rgba(212, 175, 55, 0.2));
	opacity: 0.5;
}

.npp-timeline-item {
	display: flex;
	gap: 20px;
	padding: 16px 0;
	position: relative;
}

.npp-timeline-marker {
	flex-shrink: 0;
	width: 28px;
	display: flex;
	justify-content: center;
	padding-top: 8px;
}

.npp-timeline-dot {
	width: 16px;
	height: 16px;
	background: #ffffff;
	border: 3px solid #c8a97e;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.15);
	position: relative;
	z-index: 1;
	transition: all 0.3s;
}

.npp-timeline-item:hover .npp-timeline-dot {
	background: #c8a97e;
	transform: scale(1.15);
}

.npp-timeline-body {
	flex: 1;
	background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%);
	border: 1px solid #f1ebdd;
	border-radius: 14px;
	padding: 18px 22px;
	transition: all 0.3s;
}

.npp-timeline-body:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px rgba(200, 169, 126, 0.12);
}

.npp-timeline-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.npp-timeline-title {
	color: #213640;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.5;
}

.npp-timeline-date {
	font-size: 12px;
	color: #ffffff;
	font-weight: 700;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	padding: 5px 14px;
	border-radius: 20px;
	letter-spacing: 0.5px;
	line-height: 1.4;
	white-space: nowrap;
}

.npp-timeline-doctor {
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.npp-timeline-doctor-label {
	color: #c8a97e;
	font-weight: 700;
}

.npp-timeline-desc {
	margin: 0;
	font-size: 14px;
	color: #475569;
	line-height: 2;
}

/* =========================================================
   ۱۲. توصیه‌های مراقبتی
   ========================================================= */
.npp-rec-group {
	margin-bottom: 26px;
}

.npp-rec-group:last-child {
	margin-bottom: 0;
}

.npp-rec-group-header {
	margin-bottom: 16px;
}

.npp-rec-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 22px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.npp-badge-pre {
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(200, 169, 126, 0.3);
}

.npp-badge-post {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
	box-shadow: 0 8px 18px rgba(33, 54, 64, 0.25);
}

.npp-rec-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.npp-rec-item {
	display: flex;
	gap: 14px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border: 1px solid #f1ebdd;
	border-radius: 14px;
	transition: all 0.3s;
}

.npp-rec-item:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px rgba(200, 169, 126, 0.12);
	transform: translateX(-4px);
}

.npp-rec-bullet {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(200, 169, 126, 0.35);
}

.npp-rec-body {
	flex: 1;
}

.npp-rec-body strong {
	display: block;
	margin-bottom: 8px;
	color: #213640;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
}

.npp-rec-body p {
	margin: 0;
	font-size: 14px;
	color: #475569;
	line-height: 2;
}

/* =========================================================
   ۱۳. حالت خالی (Empty State)
   ========================================================= */
.npp-empty-state {
	text-align: center;
	padding: 32px 24px;
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border: 2px dashed rgba(200, 169, 126, 0.35);
	border-radius: 16px;
}

.npp-empty-icon {
	font-size: 34px;
	margin-bottom: 12px;
	opacity: 0.6;
	line-height: 1;
}

.npp-empty-text {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	color: #213640;
	line-height: 1.6;
}

.npp-empty-hint {
	margin: 0;
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.9;
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================
   ۱۴. آپلود عکس پروفایل
   ========================================================= */
.npp-avatar-overlay {
	position: absolute;
	inset: 0;
	background: rgba(33, 54, 64, 0.75);
	color: #c8a97e;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.npp-passport-avatar:hover .npp-avatar-overlay {
	opacity: 1;
}

.npp-avatar-loading {
	position: absolute;
	inset: 0;
	background: rgba(33, 54, 64, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.npp-passport-avatar.is-loading .npp-avatar-loading {
	display: flex;
}

.npp-passport-avatar.is-loading .npp-avatar-overlay {
	opacity: 0;
}

.npp-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(200, 169, 126, 0.25);
	border-top-color: #c8a97e;
	border-radius: 50%;
	animation: npp-spin 0.8s linear infinite;
}

@keyframes npp-spin {
	to {
		transform: rotate(360deg);
	}
}

.npp-avatar-message {
	font-size: 12px;
	font-weight: 700;
	margin-top: 6px;
	line-height: 1.6;
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-block;
}

.npp-avatar-message.is-success {
	color: #059669;
	background: rgba(5, 150, 105, 0.1);
}

.npp-avatar-message.is-error {
	color: #dc2626;
	background: rgba(220, 38, 38, 0.1);
}

.npp-avatar-message.is-info {
	color: #213640;
	background: rgba(200, 169, 126, 0.15);
}

/* =========================================================
   ۱۵. کارت دیجیتال نوژین
   ========================================================= */
.npp-digital-section {
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
}

.npp-digital-hint {
	font-size: 13px;
	color: #64748b;
	line-height: 2;
	margin: 0 0 20px;
	text-align: right;
	padding: 12px 16px;
	background: rgba(200, 169, 126, 0.08);
	border-right: 3px solid #c8a97e;
	border-radius: 8px;
}

.npp-digital-card {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 45px -15px rgba(33, 54, 64, 0.35), 0 0 0 1px rgba(200, 169, 126, 0.25);
	background: linear-gradient(135deg, #1e2d3a 0%, #213640 45%, #2d4553 100%);
}

.npp-digital-card::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.npp-digital-card::after {
	content: "";
	position: absolute;
	bottom: -30%;
	left: -8%;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(200, 169, 126, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.npp-digital-card-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1.2fr 0.9fr;
	gap: 20px;
	align-items: center;
	padding: 26px 28px;
}

.npp-digital-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.npp-digital-logo-wrap {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(200, 169, 126, 0.12);
	border: 2px solid rgba(200, 169, 126, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.npp-digital-logo {
	max-width: 48px;
	max-height: 48px;
	width: auto;
	height: auto;
	display: block;
}

.npp-digital-brand-text {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.npp-digital-brand-text strong {
	font-size: 18px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 2px;
	line-height: 1;
}

.npp-digital-brand-text small {
	font-size: 9px;
	color: #c8a97e;
	font-weight: 600;
	letter-spacing: 4px;
	margin-top: 4px;
}

.npp-digital-brand-tagline {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.6;
	font-weight: 500;
	margin-top: 4px;
	max-width: 140px;
}

.npp-digital-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 8px;
	border-right: 1px solid rgba(200, 169, 126, 0.2);
	border-left: 1px solid rgba(200, 169, 126, 0.2);
	text-align: right;
}

.npp-digital-label {
	font-size: 10px;
	color: #c8a97e;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1;
}

.npp-digital-name {
	font-size: 19px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.4;
	margin: 4px 0;
}

.npp-digital-meta {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
}

.npp-digital-meta b {
	color: #d4af37;
	font-weight: 800;
	letter-spacing: 1px;
	background: rgba(212, 175, 55, 0.12);
	padding: 1px 7px;
	border-radius: 4px;
}

.npp-digital-url {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #c8a97e;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-top: 6px;
	background: rgba(200, 169, 126, 0.1);
	padding: 4px 10px;
	border-radius: 20px;
	align-self: flex-start;
}

.npp-digital-url svg {
	flex-shrink: 0;
	opacity: 0.9;
}

.npp-digital-qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.npp-digital-qr-frame {
	background: #ffffff;
	padding: 8px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	position: relative;
}

.npp-digital-qr-frame::before {
	content: "";
	position: absolute;
	inset: -4px;
	border: 2px solid rgba(200, 169, 126, 0.5);
	border-radius: 16px;
	pointer-events: none;
}

.npp-digital-qr-img {
	display: block;
	width: 110px;
	height: 110px;
	border-radius: 4px;
}

.npp-digital-qr-label {
	font-size: 10px;
	color: #c8a97e;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.npp-digital-stripe {
	position: relative;
	z-index: 2;
	height: 5px;
	background: linear-gradient(to left, transparent, #c8a97e 20%, #d4af37 50%, #c8a97e 80%, transparent);
}

/* =========================================================
   ۱۶. تماس با مطب + دکمهٔ شناور (FAB)
   ========================================================= */
.npp-contact-section {
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
}

.npp-contact-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 26px;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	border-radius: 16px;
	box-shadow: 0 10px 25px -10px rgba(33, 54, 64, 0.4);
	position: relative;
	overflow: hidden;
}

.npp-contact-card::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.npp-contact-info {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 0;
}

.npp-contact-icon-circle {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #213640;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.2);
	animation: npp-call-pulse 2s ease-in-out infinite;
}

@keyframes npp-call-pulse {
	0%, 100% {
		box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.2);
	}
	50% {
		box-shadow: 0 0 0 10px rgba(200, 169, 126, 0.08);
	}
}

.npp-contact-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.npp-contact-label {
	font-size: 11.5px;
	color: #c8a97e;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-align: right;
}

.npp-contact-number {
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-align: right;
}

.npp-contact-hours {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	font-weight: 500;
	line-height: 1.6;
	text-align: right;
}

.npp-contact-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #213640;
	text-decoration: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.3px;
	transition: all 0.3s ease;
	box-shadow: 0 8px 18px rgba(200, 169, 126, 0.35);
	position: relative;
	z-index: 1;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.npp-contact-btn:hover {
	background: linear-gradient(135deg, #d4af37 0%, #c8a97e 100%);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(212, 175, 55, 0.45);
	color: #213640;
}

.npp-contact-btn svg {
	flex-shrink: 0;
}

/* FAB */
.npp-call-fab {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px 14px 16px;
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #213640;
	text-decoration: none;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.3px;
	box-shadow: 0 10px 25px -5px rgba(200, 169, 126, 0.5), 0 0 0 0 rgba(200, 169, 126, 0.7);
	transition: all 0.3s ease;
	animation: npp-fab-ring 2s infinite;
	font-family: inherit;
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.npp-call-fab:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 15px 30px -5px rgba(200, 169, 126, 0.6);
	color: #213640;
	animation: none;
}

.npp-call-fab.is-hidden {
	opacity: 0;
	transform: translateY(20px) scale(0.85);
	pointer-events: none;
	animation: none;
}

.npp-call-fab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #213640;
	color: #c8a97e;
	border-radius: 50%;
	flex-shrink: 0;
}

.npp-call-fab-label {
	white-space: nowrap;
}

@keyframes npp-fab-ring {
	0% {
		box-shadow: 0 10px 25px -5px rgba(200, 169, 126, 0.5), 0 0 0 0 rgba(200, 169, 126, 0.6);
	}
	70% {
		box-shadow: 0 10px 25px -5px rgba(200, 169, 126, 0.5), 0 0 0 14px rgba(200, 169, 126, 0);
	}
	100% {
		box-shadow: 0 10px 25px -5px rgba(200, 169, 126, 0.5), 0 0 0 0 rgba(200, 169, 126, 0);
	}
}

/* =========================================================
   ۱۷. فوتر داشبورد
   ========================================================= */
.npp-footer {
	background: linear-gradient(135deg, #213640 0%, #16242c 100%);
	color: #ffffff;
	margin-top: 50px;
	position: relative;
	overflow: hidden;
}

.npp-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to left, transparent, #c8a97e, transparent);
	opacity: 0.5;
}

.npp-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 40px;
	text-align: center;
}

.npp-footer-inner p {
	margin: 0 0 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 500;
	line-height: 1.8;
}

.npp-footer-inner p:last-child {
	margin-bottom: 0;
}

.npp-footer-tagline {
	color: #c8a97e !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 1.5px;
	margin-top: 8px !important;
}

/* =========================================================
   ۱۸. واکنش‌گرایی (Responsive)
   ========================================================= */

/* --- تبلت: تا ۹۰۰px --- */
@media (max-width: 900px) {
	.npp-hero-content {
		padding: 20px 24px 60px;
	}

	.npp-hero-title h1 {
		font-size: 32px;
	}

	.npp-hero-title p {
		font-size: 14px;
	}

	.npp-passport-float {
		padding: 0 24px;
		margin-top: -60px;
	}

	.npp-content {
		padding: 32px 24px 24px;
	}

	.npp-identity-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.npp-footer-inner {
		padding: 28px 24px;
	}
}

/* --- موبایل بزرگ: تا ۶۴۰px --- */
@media (max-width: 640px) {
	/* هیرو */
	.npp-hero {
		min-height: 320px;
	}

	.npp-hero-content {
		padding: 16px 18px 50px;
		min-height: 320px;
	}

	.npp-hero-topbar {
		align-items: center;
	}

	.npp-hero-logo {
		max-width: 40px;
	}

	.npp-hero-brand-text strong {
		font-size: 15px;
	}

	.npp-hero-brand-text small {
		font-size: 9.5px;
		max-width: 160px;
		line-height: 1.4;
	}

	.npp-dashboard .npp-btn-ghost {
		padding: 7px 12px;
		font-size: 12px;
	}

	.npp-logout-icon {
		font-size: 13px;
	}

	.npp-hero-title {
		margin-top: 40px;
		padding-top: 0;
		text-align: center;
	}

	.npp-hero-title h1 {
		font-size: 26px;
		margin-bottom: 10px;
		text-align: center;
	}

	.npp-hero-title p {
		font-size: 13px;
		text-align: center;
	}

	/* کارت پاسپورت */
	.npp-passport-float {
		padding: 0 16px;
		margin-top: -50px;
	}

	.npp-passport-card {
		padding: 20px;
		gap: 14px;
		flex-wrap: wrap;
	}

	.npp-passport-avatar {
		width: 60px;
		height: 60px;
		font-size: 26px;
	}

	.npp-passport-name {
		font-size: 17px;
	}

	.npp-passport-meta {
		font-size: 11px;
		gap: 6px;
	}

	.npp-passport-stamp {
		padding: 8px 12px;
	}

	.npp-passport-stamp span {
		font-size: 13px;
	}

	/* محتوا */
	.npp-content {
		padding: 24px 16px 20px;
		gap: 20px;
	}

	.npp-section {
		padding: 22px 20px 24px;
		border-radius: 16px;
	}

	.npp-toggle-header {
		padding-bottom: 14px;
		margin-bottom: 20px;
	}

	.npp-section-title-group {
		gap: 12px;
	}

	.npp-section-title-group h3 {
		font-size: 16px;
	}

	.npp-section-icon {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.npp-toggle-btn {
		width: 32px;
		height: 32px;
	}

	/* گریدها */
	.npp-identity-grid,
	.npp-medical-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.npp-medical-grid > .npp-info-box:nth-child(1),
	.npp-medical-grid > .npp-info-box:nth-child(2),
	.npp-medical-grid > .npp-info-box:nth-child(3),
	.npp-medical-grid > .npp-info-box:nth-child(4),
	.npp-medical-grid > .npp-info-box:nth-child(5) {
		grid-column: span 1;
	}

	.npp-info-box {
		min-height: auto;
		padding: 14px 16px;
	}

	.npp-info-label {
		font-size: 11.5px;
	}

	.npp-info-value {
		font-size: 14px;
	}

	.npp-info-text {
		font-size: 13px;
	}

	/* خط زمانی */
	.npp-timeline-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.npp-timeline-body {
		padding: 16px 18px;
	}

	.npp-timeline-list::before {
		right: 13px;
	}

	/* توصیه‌ها */
	.npp-rec-badge {
		font-size: 12px;
		padding: 7px 18px;
	}

	.npp-rec-item {
		padding: 16px 18px;
		gap: 12px;
	}

	.npp-rec-body strong {
		font-size: 14px;
	}

	.npp-rec-body p {
		font-size: 13px;
		line-height: 1.9;
	}

	/* حالت خالی */
	.npp-empty-state {
		padding: 26px 18px;
	}

	.npp-empty-icon {
		font-size: 30px;
	}

	/* کارت دیجیتال */
	.npp-digital-card-inner {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px;
		text-align: center;
	}

	.npp-digital-brand {
		padding-bottom: 14px;
		border-bottom: 1px solid rgba(200, 169, 126, 0.2);
	}

	.npp-digital-brand-tagline {
		max-width: 100%;
	}

	.npp-digital-info {
		border-right: none;
		border-left: none;
		padding: 0;
		align-items: center;
		text-align: center;
	}

	.npp-digital-url {
		align-self: center;
	}

	.npp-digital-qr-img {
		width: 130px;
		height: 130px;
	}

	.npp-digital-section .npp-section-header {
		flex-wrap: wrap;
		gap: 10px;
	}

	/* آپلود آواتار */
	.npp-avatar-overlay {
		opacity: 0.6;
		background: rgba(33, 54, 64, 0.6);
	}

	/* کارت تماس */
	.npp-contact-card {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px;
	}

	.npp-contact-info {
		gap: 14px;
	}

	.npp-contact-icon-circle {
		width: 48px;
		height: 48px;
	}

	.npp-contact-number {
		font-size: 19px;
	}

	.npp-contact-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
	}

	/* FAB */
	.npp-call-fab {
		bottom: 18px;
		left: 18px;
		padding: 12px;
		gap: 0;
	}

	.npp-call-fab-label {
		display: none;
	}

	.npp-call-fab-icon {
		width: 36px;
		height: 36px;
		background: transparent;
		color: #213640;
	}

	/* فوتر */
	.npp-footer-inner {
		padding: 24px 20px;
	}

	.npp-footer-inner p {
		font-size: 12px;
	}
}

/* --- موبایل کوچک: تا ۴۸۰px --- */
@media (max-width: 480px) {
	.npp-login .npp-card {
		padding: 24px;
		border-radius: 16px;
	}
	.npp-login .npp-title {
		font-size: 22px;
	}
	.npp-login .npp-subtitle {
		font-size: 14px;
	}
	.npp-resend-wrap {
		justify-content: center;
	}
}
/* =========================================================
   فاز ۷: پنل اختصاصی پرسنل
   ========================================================= */

.npp-wrap.npp-staff-panel {
	background: #f4efe6;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	max-width: 100%;
	direction: rtl;
	text-align: right;
}

/* ---- نوار بالایی ---- */
.npp-staff-topbar {
	background: linear-gradient(135deg, #213640 0%, #16242c 100%);
	color: #ffffff;
	position: relative;
}

.npp-staff-topbar::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to left, transparent, #c8a97e, #d4af37, #c8a97e, transparent);
	opacity: 0.6;
}

.npp-staff-topbar-inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 16px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.npp-staff-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.npp-staff-brand-logo {
	max-width: 44px;
	height: auto;
}

.npp-staff-brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.npp-staff-brand-text strong {
	font-size: 15px;
	color: #ffffff;
	font-weight: 800;
	line-height: 1.3;
}

.npp-staff-brand-text small {
	font-size: 10.5px;
	color: #c8a97e;
	font-weight: 600;
}

.npp-staff-user {
	display: flex;
	align-items: center;
	gap: 14px;
}

.npp-staff-user-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.npp-staff-user-info strong {
	font-size: 14px;
	color: #ffffff;
	font-weight: 700;
}

.npp-staff-user-meta {
	font-size: 11px;
	color: #c8a97e;
	font-weight: 600;
}

.npp-staff-user-meta code {
	background: rgba(200, 169, 126, 0.15);
	color: #d4af37;
	padding: 1px 8px;
	border-radius: 4px;
	font-size: 10.5px;
	letter-spacing: 1px;
}

.npp-staff-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 800;
	color: #213640;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.25);
}

.npp-staff-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.npp-staff-logout-btn {
	background: rgba(200, 169, 126, 0.15);
	color: #c8a97e;
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 50px;
	padding: 7px 14px;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	transition: all 0.25s;
}

.npp-staff-logout-btn:hover {
	background: #c8a97e;
	color: #213640;
	border-color: #c8a97e;
}

/* ---- بدنهٔ پنل ---- */
.npp-staff-body {
	max-width: 1300px;
	margin: 0 auto;
	padding: 24px 32px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 24px;
}

/* ---- سایدبار ---- */
.npp-staff-sidebar {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 16px;
	padding: 18px 14px;
	box-shadow: 0 6px 20px -8px rgba(33, 54, 64, 0.08);
	align-self: start;
	position: sticky;
	top: 20px;
}

.npp-staff-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npp-staff-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 10px;
	color: #475569;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 600;
	transition: all 0.2s;
	font-family: inherit;
}

.npp-staff-nav-item:hover {
	background: #f8f5ef;
	color: #213640;
}

.npp-staff-nav-item.is-active {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	box-shadow: 0 6px 16px -4px rgba(33, 54, 64, 0.3);
}

.npp-staff-nav-icon {
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

.npp-staff-nav-label {
	flex: 1;
}

.npp-staff-sidebar-footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #f1ebdd;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
}

.npp-staff-sidebar-footer span {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 500;
}

.npp-staff-sidebar-footer strong {
	font-size: 13px;
	color: #c8a97e;
	font-weight: 800;
	letter-spacing: 1px;
}

/* ---- محتوا ---- */
.npp-staff-content {
	min-width: 0;
}

.npp-staff-section {
	display: none;
	animation: npp-fade-in 0.3s ease;
}

.npp-staff-section.is-active {
	display: block;
}

.npp-staff-section-header {
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(200, 169, 126, 0.15);
}

.npp-staff-section-header h2 {
	margin: 0 0 4px;
	font-size: 20px;
	color: #213640;
	font-weight: 800;
}

.npp-staff-section-header p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

/* ---- کارت‌های آمار ---- */
.npp-staff-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.npp-staff-stat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
	overflow: hidden;
	transition: all 0.25s;
}

.npp-staff-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px -8px rgba(33, 54, 64, 0.15);
}

.npp-staff-stat-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
}

.npp-stat-gold::before   { background: linear-gradient(to bottom, #c8a97e, #d4af37); }
.npp-stat-navy::before   { background: linear-gradient(to bottom, #213640, #2d4553); }
.npp-stat-green::before  { background: linear-gradient(to bottom, #059669, #10b981); }
.npp-stat-purple::before { background: linear-gradient(to bottom, #7c3aed, #a855f7); }

.npp-staff-stat-icon {
	font-size: 24px;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #f8f5ef;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.npp-staff-stat-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.npp-staff-stat-label {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
}

.npp-staff-stat-value {
	font-size: 22px;
	color: #213640;
	font-weight: 800;
	line-height: 1.2;
}

/* ---- کارت خوش‌آمد ---- */
.npp-staff-welcome-card {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	border-radius: 16px;
	padding: 24px 26px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.npp-staff-welcome-card::before {
	content: "";
	position: absolute;
	top: -40%;
	left: -10%;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.npp-staff-welcome-icon {
	font-size: 32px;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.npp-staff-welcome-body {
	position: relative;
	z-index: 1;
	flex: 1;
}

.npp-staff-welcome-body strong {
	display: block;
	font-size: 17px;
	font-weight: 800;
	margin-bottom: 8px;
	color: #ffffff;
}

.npp-staff-welcome-body p {
	margin: 0;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 2;
}

.npp-staff-welcome-body strong {
	color: #c8a97e;
	display: inline;
	font-weight: 800;
}

/* ---- Placeholder ---- */
.npp-staff-placeholder {
	background: #ffffff;
	border: 2px dashed rgba(200, 169, 126, 0.4);
	border-radius: 16px;
	padding: 48px 32px;
	text-align: center;
}

.npp-staff-placeholder-icon {
	font-size: 42px;
	margin-bottom: 12px;
	opacity: 0.6;
}

.npp-staff-placeholder strong {
	display: block;
	font-size: 17px;
	color: #213640;
	font-weight: 800;
	margin-bottom: 8px;
}

.npp-staff-placeholder p {
	margin: 0 auto;
	font-size: 13.5px;
	color: #94a3b8;
	line-height: 2;
	max-width: 480px;
}

/* ---- صفحهٔ مهمان (ورود نکرده) ---- */
.npp-staff-guest {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 40px 20px;
	background: linear-gradient(135deg, #fdfbf7 0%, #f4efe6 100%);
}

.npp-staff-guest-card {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 24px;
	padding: 40px;
	max-width: 460px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 40px -10px rgba(33, 54, 64, 0.15);
}

.npp-staff-guest-card .npp-logo {
	text-align: center;
	margin-bottom: 20px;
}

/* ---- موبایل ---- */
@media (max-width: 900px) {
	.npp-staff-topbar-inner {
		padding: 12px 18px;
		flex-wrap: wrap;
		gap: 12px;
	}

	.npp-staff-user-info {
		display: none;
	}

	.npp-staff-body {
		grid-template-columns: 1fr;
		padding: 18px;
		gap: 16px;
	}

	.npp-staff-sidebar {
		position: static;
		padding: 12px;
	}

	.npp-staff-nav {
		flex-direction: row;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 4px;
	}

	.npp-staff-nav-item {
		flex-shrink: 0;
		padding: 10px 14px;
		font-size: 12.5px;
	}

	.npp-staff-nav-label {
		white-space: nowrap;
	}

	.npp-staff-sidebar-footer {
		display: none;
	}

	.npp-staff-brand-text small {
		display: none;
	}

	.npp-staff-welcome-card {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
}

@media (max-width: 480px) {
	.npp-staff-topbar-inner {
		padding: 10px 14px;
	}

	.npp-staff-brand-logo {
		max-width: 36px;
	}

	.npp-staff-brand-text strong {
		font-size: 13px;
	}

	.npp-staff-stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.npp-staff-stat-card {
		padding: 14px;
		gap: 10px;
	}

	.npp-staff-stat-icon {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}

	.npp-staff-stat-value {
		font-size: 18px;
	}

	.npp-staff-stat-label {
		font-size: 11px;
	}
}
/* =========================================================
   اصلاح ریسپانسیو موبایل پنل پرسنل — Override نهایی
   ========================================================= */

@media (max-width: 900px) {

	/* مطمئن شو پنل تمام عرض صفحه را می‌گیرد */
	html body .npp-wrap.npp-staff-panel {
		max-width: 100% !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
	}

	/* همهٔ عناصر داخل پنل */
	html body .npp-wrap.npp-staff-panel *,
	html body .npp-wrap.npp-staff-panel *::before,
	html body .npp-wrap.npp-staff-panel *::after {
		box-sizing: border-box !important;
	}

	/* نوار بالایی */
	html body .npp-staff-topbar-inner {
		max-width: 100% !important;
		width: 100% !important;
		padding: 12px 14px !important;
		box-sizing: border-box !important;
	}

	/* بدنهٔ پنل: تک‌ستونی و تمام عرض */
	html body .npp-staff-body {
		display: block !important;
		grid-template-columns: none !important;
		max-width: 100% !important;
		width: 100% !important;
		padding: 12px !important;
		margin: 0 !important;
		gap: 0 !important;
		box-sizing: border-box !important;
	}

	/* سایدبار: افقی و تمام عرض */
	html body .npp-staff-sidebar {
		position: static !important;
		top: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 12px 0 !important;
		padding: 10px !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	html body .npp-staff-nav {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		gap: 6px !important;
		padding-bottom: 4px !important;
		-webkit-overflow-scrolling: touch;
	}

	html body .npp-staff-nav li {
		flex-shrink: 0 !important;
	}

	html body .npp-staff-nav-item {
		padding: 9px 12px !important;
		font-size: 12px !important;
		white-space: nowrap !important;
	}

	html body .npp-staff-nav-label {
		white-space: nowrap !important;
	}

	html body .npp-staff-sidebar-footer {
		display: none !important;
	}

	/* محتوا: تمام عرض */
	html body .npp-staff-content {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* گرید آمار: ۲ ستونه برابر */
	html body .npp-staff-stats-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
		width: 100% !important;
	}

	/* کارت آماری: فشرده */
	html body .npp-staff-stat-card {
		padding: 12px !important;
		gap: 10px !important;
		flex-direction: row !important;
		align-items: center !important;
		min-width: 0 !important;
	}

	html body .npp-staff-stat-icon {
		width: 38px !important;
		height: 38px !important;
		font-size: 18px !important;
		flex-shrink: 0 !important;
	}

	html body .npp-staff-stat-info {
		min-width: 0 !important;
		flex: 1 !important;
	}

	html body .npp-staff-stat-value {
		font-size: 18px !important;
	}

	html body .npp-staff-stat-label {
		font-size: 10.5px !important;
	}

	/* کارت خوش‌آمد */
	html body .npp-staff-welcome-card {
		padding: 18px !important;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
	}

	html body .npp-staff-welcome-icon {
		font-size: 28px !important;
	}

	html body .npp-staff-section-header h2 {
		font-size: 18px !important;
	}

	/* Placeholder */
	html body .npp-staff-placeholder {
		padding: 32px 20px !important;
	}

	html body .npp-staff-placeholder-icon {
		font-size: 36px !important;
	}
}

@media (max-width: 480px) {

	/* روی موبایل‌های کوچک، آمار در دو ستون باریک */
	html body .npp-staff-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}

	html body .npp-staff-stat-card {
		padding: 10px !important;
		gap: 8px !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		text-align: right !important;
	}

	html body .npp-staff-stat-value {
		font-size: 16px !important;
	}

	html body .npp-staff-brand-text strong {
		font-size: 12.5px !important;
	}

	html body .npp-staff-logout-btn {
		padding: 6px 10px !important;
		font-size: 11.5px !important;
	}
}
/* =========================================================
   اصلاح نهایی ریسپانسیو پنل پرسنل — Override سراسری
   ========================================================= */

/* حذف پدینگ و مارجین قالب در صفحات پنل پرسنل */
html body.page-template-elementor_canvas:has(.npp-wrap.npp-staff-panel),
body.page-template-elementor_canvas .npp-wrap.npp-staff-panel {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow-x: hidden !important;
	box-sizing: border-box !important;
}

/* Elementor canvas و کانتینرهایش */
body.page-template-elementor_canvas .elementor,
body.page-template-elementor_canvas .elementor-section-wrap,
body.page-template-elementor_canvas .elementor-widget-container,
body.page-template-elementor_canvas .elementor-widget-shortcode {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* override مخصوص موبایل */
@media (max-width: 900px) {

	html,
	body {
		overflow-x: hidden !important;
		max-width: 100vw !important;
	}

	html body .npp-wrap.npp-staff-panel {
		width: 100vw !important;
		max-width: 100vw !important;
		margin: 0 !important;
		padding: 0 !important;
		margin-right: calc(50% - 50vw) !important;
		margin-left: calc(50% - 50vw) !important;
	}

	html body .npp-staff-topbar {
		width: 100% !important;
	}

	html body .npp-staff-topbar-inner {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		padding: 12px 14px !important;
		gap: 10px !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	html body .npp-staff-brand-text {
		display: none !important;
	}

	html body .npp-staff-brand {
		gap: 0 !important;
	}

	html body .npp-staff-brand-logo {
		max-width: 38px !important;
	}

	html body .npp-staff-user {
		gap: 8px !important;
	}

	html body .npp-staff-user-info {
		display: none !important;
	}

	html body .npp-staff-avatar {
		width: 34px !important;
		height: 34px !important;
		font-size: 15px !important;
	}

	html body .npp-staff-logout-btn {
		padding: 6px 12px !important;
		font-size: 11.5px !important;
	}

	html body .npp-staff-body {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 10px !important;
		margin: 0 !important;
	}

	html body .npp-staff-sidebar {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 10px 0 !important;
		padding: 8px !important;
		border-radius: 12px !important;
		overflow: hidden !important;
	}

	html body .npp-staff-nav {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		gap: 6px !important;
		padding: 2px 2px 6px !important;
		scrollbar-width: thin;
	}

	html body .npp-staff-nav::-webkit-scrollbar {
		height: 4px;
	}

	html body .npp-staff-nav::-webkit-scrollbar-thumb {
		background: rgba(200, 169, 126, 0.4);
		border-radius: 4px;
	}

	html body .npp-staff-nav li {
		flex-shrink: 0 !important;
	}

	html body .npp-staff-nav-item {
		padding: 8px 12px !important;
		font-size: 11.5px !important;
		border-radius: 8px !important;
		white-space: nowrap !important;
	}

	html body .npp-staff-nav-icon {
		font-size: 14px !important;
	}

	html body .npp-staff-sidebar-footer {
		display: none !important;
	}

	html body .npp-staff-content {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	html body .npp-staff-section-header {
		margin-bottom: 14px !important;
		padding-bottom: 10px !important;
	}

	html body .npp-staff-section-header h2 {
		font-size: 17px !important;
	}

	html body .npp-staff-section-header p {
		font-size: 12px !important;
	}

	html body .npp-staff-stats-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
		width: 100% !important;
		margin-bottom: 14px !important;
	}

	html body .npp-staff-stat-card {
		padding: 12px !important;
		gap: 8px !important;
		flex-direction: row !important;
		align-items: center !important;
		min-width: 0 !important;
		border-radius: 12px !important;
	}

	html body .npp-staff-stat-icon {
		width: 34px !important;
		height: 34px !important;
		font-size: 16px !important;
		border-radius: 9px !important;
	}

	html body .npp-staff-stat-value {
		font-size: 17px !important;
	}

	html body .npp-staff-stat-label {
		font-size: 10.5px !important;
	}

	html body .npp-staff-welcome-card {
		padding: 16px !important;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		border-radius: 14px !important;
	}

	html body .npp-staff-welcome-icon {
		font-size: 26px !important;
	}

	html body .npp-staff-welcome-body strong {
		font-size: 15px !important;
	}

	html body .npp-staff-welcome-body p {
		font-size: 12.5px !important;
		line-height: 1.9 !important;
	}

	html body .npp-staff-placeholder {
		padding: 28px 16px !important;
	}

	html body .npp-staff-placeholder-icon {
		font-size: 34px !important;
	}

	html body .npp-staff-placeholder strong {
		font-size: 15px !important;
	}

	html body .npp-staff-placeholder p {
		font-size: 12.5px !important;
	}
}

@media (max-width: 480px) {
	html body .npp-staff-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 6px !important;
	}

	html body .npp-staff-stat-card {
		padding: 10px !important;
		gap: 6px !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		text-align: right !important;
	}

	html body .npp-staff-stat-icon {
		width: 30px !important;
		height: 30px !important;
		font-size: 15px !important;
	}

	html body .npp-staff-stat-value {
		font-size: 15px !important;
	}

	html body .npp-staff-stat-label {
		font-size: 10px !important;
	}
}
/* =========================================================
   فاز ۷ - پیام ۵: مدیریت بیماران در پنل پرسنل
   ========================================================= */

/* ---- نوار جستجو ---- */
.npp-staff-search-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.25);
	border-radius: 12px;
	padding: 6px 8px 6px 14px;
	margin-bottom: 16px;
	box-shadow: 0 4px 14px -6px rgba(33, 54, 64, 0.08);
}

.npp-staff-search-icon {
	font-size: 15px;
	opacity: 0.5;
	flex-shrink: 0;
}

.npp-staff-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	padding: 8px 4px;
	font-size: 13.5px;
	font-family: inherit;
	color: #213640;
	min-width: 0;
}

.npp-staff-search-input::placeholder {
	color: #94a3b8;
}

.npp-staff-search-btn {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.25s;
	flex-shrink: 0;
}

.npp-staff-search-btn:hover {
	background: linear-gradient(135deg, #16242c 0%, #213640 100%);
	transform: translateY(-1px);
}

/* ---- لیست بیماران ---- */
.npp-patients-list {
	min-height: 120px;
}

.npp-patients-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 40px 20px;
	color: #64748b;
	font-size: 13.5px;
}

.npp-patients-empty {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
	font-size: 13.5px;
	background: #ffffff;
	border: 2px dashed rgba(200, 169, 126, 0.3);
	border-radius: 14px;
}

.npp-patient-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-patient-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 14px;
	transition: all 0.25s;
}

.npp-patient-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px -6px rgba(200, 169, 126, 0.2);
	transform: translateY(-2px);
}

.npp-patient-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	flex-shrink: 0;
	overflow: hidden;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-patient-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.npp-patient-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npp-patient-name {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
}

.npp-patient-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	color: #64748b;
}

.npp-patient-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.npp-meta-label {
	color: #94a3b8;
	font-weight: 600;
}

.npp-patient-meta-item b {
	color: #213640;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.npp-patient-view-btn {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.25s;
	flex-shrink: 0;
}

.npp-patient-view-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

/* ---- صفحه‌بندی ---- */
.npp-patients-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
	font-size: 13px;
}

.npp-page-btn {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.3);
	color: #213640;
	border-radius: 8px;
	padding: 7px 14px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 12.5px;
	transition: all 0.25s;
}

.npp-page-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

.npp-page-info {
	color: #64748b;
	font-weight: 600;
}

/* ---- فرم بیمار ---- */
.npp-patient-form {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 16px;
	padding: 24px;
}

.npp-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.npp-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.npp-form-field label {
	font-size: 12.5px;
	color: #475569;
	font-weight: 700;
}

.npp-form-field input,
.npp-form-field select,
.npp-form-field textarea {
	width: 100%;
	box-sizing: border-box;
	background: #fdfbf7;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	font-family: inherit;
	color: #213640;
	transition: all 0.2s;
}

.npp-form-field input:focus,
.npp-form-field select:focus,
.npp-form-field textarea:focus {
	outline: none;
	border-color: #c8a97e;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-form-field input:disabled,
.npp-form-field select:disabled,
.npp-form-field textarea:disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

.npp-form-full {
	grid-column: 1 / -1;
}

.npp-form-required label::after {
	content: " *";
	color: #dc2626;
}

.npp-form-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

.npp-form-actions .npp-btn {
	align-self: flex-start;
	min-width: 200px;
}

/* ---- Modal ---- */
body.npp-modal-open {
	overflow: hidden;
}

.npp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.npp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.npp-modal-content {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 18px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.npp-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #f1ebdd;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
}

.npp-modal-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
}

.npp-modal-close {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	font-family: inherit;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.npp-modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.npp-modal-body {
	padding: 22px;
	overflow-y: auto;
	flex: 1;
}

.npp-modal-footer {
	padding: 14px 22px;
	border-top: 1px solid #f1ebdd;
	background: #fdfbf7;
}

.npp-modal-body .npp-form-grid {
	gap: 12px;
}

/* ---- ریسپانسیو ---- */
@media (max-width: 640px) {
	.npp-staff-search-bar {
		padding: 5px 6px 5px 12px;
	}

	.npp-staff-search-btn {
		padding: 7px 12px;
		font-size: 12px;
	}

	.npp-patient-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 14px;
	}

	.npp-patient-view-btn {
		width: 100%;
		text-align: center;
	}

	.npp-patient-meta {
		gap: 8px;
	}

	.npp-form-grid {
		grid-template-columns: 1fr;
	}

	.npp-form-actions .npp-btn {
		width: 100%;
		align-self: stretch;
	}

	.npp-modal-content {
		max-height: 95vh;
		border-radius: 14px;
	}

	.npp-modal-header {
		padding: 14px 16px;
	}

	.npp-modal-body {
		padding: 16px;
	}
}
/* =========================================================
   رفع باگ نوار جستجوی پنل پرسنل
   ========================================================= */

html body .npp-wrap.npp-staff-panel .npp-staff-search-bar .npp-staff-search-input,
html body .npp-wrap.npp-staff-panel .npp-staff-search-bar .npp-staff-search-input:hover,
html body .npp-wrap.npp-staff-panel .npp-staff-search-bar .npp-staff-search-input:focus,
html body .npp-wrap.npp-staff-panel .npp-staff-search-bar .npp-staff-search-input:active {
	background: transparent !important;
	background-color: transparent !important;
	color: #213640 !important;
	-webkit-text-fill-color: #213640 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	caret-color: #213640 !important;
}

/* حذف آیکن X پیش‌فرض مرورگر در input type=search */
html body .npp-wrap.npp-staff-panel .npp-staff-search-input::-webkit-search-cancel-button,
html body .npp-wrap.npp-staff-panel .npp-staff-search-input::-webkit-search-decoration,
html body .npp-wrap.npp-staff-panel .npp-staff-search-input::-webkit-search-results-button,
html body .npp-wrap.npp-staff-panel .npp-staff-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: none !important;
}

/* انتخاب متن هم خوانا باشد */
html body .npp-wrap.npp-staff-panel .npp-staff-search-input::selection {
	background: rgba(200, 169, 126, 0.3) !important;
	color: #213640 !important;
}
/* =========================================================
   پیام ۶ ب: تب‌ها و محتوای بالینی در Modal
   ========================================================= */

/* تب‌های Modal */
.npp-modal-tabs {
	display: flex;
	gap: 6px;
	padding: 10px 16px 0;
	border-bottom: 1px solid #e2e8f0;
	background: #f8f5ef;
	flex-wrap: wrap;
}

.npp-tab-btn {
	background: transparent;
	border: none;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
	border-bottom: 3px solid transparent;
	font-family: inherit;
	transition: all 0.2s;
}

.npp-tab-btn:hover {
	color: #213640;
	background: rgba(200, 169, 126, 0.1);
}

.npp-tab-btn.is-active {
	color: #213640;
	border-bottom-color: #c8a97e;
	background: #ffffff;
}

.npp-tab-pane {
	display: none;
}

.npp-tab-pane.is-active {
	display: block;
}

.npp-timeline-loading {
	display: flex;
	justify-content: center;
	padding: 40px;
}

/* لیست خط زمانی در Modal */
.npp-timeline-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.npp-timeline-item {
	background: #fdfbf7;
	border: 1px solid #f1ebdd;
	border-radius: 12px;
	padding: 14px 16px;
	position: relative;
}

.npp-timeline-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.npp-timeline-item-title {
	font-size: 14px;
	font-weight: 800;
	color: #213640;
}

.npp-timeline-item-date {
	font-size: 11.5px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	padding: 3px 12px;
	border-radius: 20px;
	letter-spacing: 0.5px;
}

.npp-timeline-item-meta {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 6px;
}

.npp-timeline-item-desc {
	font-size: 12.5px;
	color: #475569;
	line-height: 1.9;
	margin-bottom: 6px;
}

.npp-timeline-delete-btn {
	background: transparent;
	border: 1px solid #fca5a5;
	color: #b91c1c;
	border-radius: 6px;
	padding: 4px 12px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
}

.npp-timeline-delete-btn:hover {
	background: #fef2f2;
}

/* فرم افزودن خدمت */
.npp-add-service-block,
.npp-add-rec-block {
	margin-top: 12px;
	border-top: 1px dashed #e2e8f0;
	padding-top: 12px;
}

.npp-toggle-add-btn {
	background: rgba(200, 169, 126, 0.12);
	border: 1px dashed #c8a97e;
	color: #213640;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	width: 100%;
	transition: all 0.2s;
}

.npp-toggle-add-btn:hover {
	background: rgba(200, 169, 126, 0.2);
}

.npp-add-service-form,
.npp-add-rec-form {
	margin-top: 14px;
	background: #f8f5ef;
	border: 1px solid #f1ebdd;
	border-radius: 12px;
	padding: 16px;
}

/* توصیه‌ها در Modal */
.npp-rec-block {
	margin-bottom: 20px;
}

.npp-rec-block-header {
	margin-bottom: 10px;
}

.npp-rec-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 800;
}

.npp-badge-pre {
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	color: #ffffff;
}

.npp-badge-post {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
}

.npp-rec-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.npp-rec-item {
	background: #fdfbf7;
	border: 1px solid #f1ebdd;
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.npp-rec-item-body {
	flex: 1;
}

.npp-rec-item-body strong {
	display: block;
	font-size: 13.5px;
	font-weight: 800;
	color: #213640;
	margin-bottom: 4px;
}

.npp-rec-item-body p {
	margin: 0;
	font-size: 12.5px;
	color: #475569;
	line-height: 1.9;
}

.npp-rec-delete-btn {
	background: transparent;
	border: 1px solid #fca5a5;
	color: #b91c1c;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	flex-shrink: 0;
}

.npp-rec-delete-btn:hover {
	background: #fef2f2;
}

.npp-rec-empty {
	text-align: center;
	padding: 16px;
	color: #94a3b8;
	font-size: 12.5px;
	background: #fdfbf7;
	border: 1px dashed #e2e8f0;
	border-radius: 10px;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-modal-tabs {
		padding: 8px 10px 0;
	}

	.npp-tab-btn {
		flex: 1;
		padding: 9px 8px;
		font-size: 11.5px;
	}

	.npp-timeline-item-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.npp-rec-item {
		flex-direction: column;
	}
}
/* =========================================================
   پیام ۶ ب — اصلاحات نهایی فرم‌های Modal
   ========================================================= */

/* ---- بزرگ‌تر کردن فیلدها برای خوانایی بیشتر ---- */
html body .npp-modal-body .npp-form-field input,
html body .npp-modal-body .npp-form-field select,
html body .npp-modal-body .npp-form-field textarea {
	padding: 14px 16px !important;
	font-size: 14.5px !important;
	min-height: 50px !important;
	line-height: 1.5 !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	color: #213640 !important;
	font-family: inherit !important;
}

html body .npp-modal-body .npp-form-field textarea {
	min-height: 84px !important;
	resize: vertical !important;
	padding-top: 12px !important;
}

html body .npp-modal-body .npp-form-field select {
	padding-left: 40px !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: left 14px center !important;
	background-size: 16px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

html body .npp-modal-body .npp-form-field label {
	font-size: 13.5px !important;
	margin-bottom: 8px !important;
	color: #1e293b !important;
	font-weight: 700 !important;
	display: block !important;
}

/* ---- راهنمای زیر فیلد ---- */
.npp-form-hint {
	margin: 6px 0 0;
	font-size: 11.5px;
	color: #94a3b8;
	line-height: 1.6;
}

/* ---- دکمهٔ toggle: حالت بسته ---- */
.npp-toggle-add-btn.is-closed,
.npp-toggle-add-btn:not(.is-open) {
	background: rgba(200, 169, 126, 0.12);
	border: 1px dashed #c8a97e;
	color: #213640;
}

/* ---- دکمهٔ toggle: حالت باز (برای بستن) ---- */
.npp-toggle-add-btn.is-open {
	background: rgba(220, 38, 38, 0.08);
	border: 1px solid #fca5a5;
	color: #b91c1c;
}

.npp-toggle-add-btn.is-open:hover {
	background: rgba(220, 38, 38, 0.15);
}

/* ---- Datepicker (در صورت لود شدن) ---- */
.npp-modal-body .datepicker-plot-area,
.npp-modal-body .pDatepicker,
.npp-modal-body .persian-datepicker {
	font-family: "Estedad", "Vazirmatn", Tahoma, sans-serif !important;
	z-index: 9999999 !important;
}

.npp-modal-body .npp-datepicker-input {
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a97e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: left 14px center !important;
	background-size: 18px !important;
	padding-left: 44px !important;
}

/* ---- موبایل ---- */
@media (max-width: 640px) {
	html body .npp-modal-body .npp-form-field input,
	html body .npp-modal-body .npp-form-field select,
	html body .npp-modal-body .npp-form-field textarea {
		padding: 13px 14px !important;
		font-size: 14px !important;
		min-height: 48px !important;
	}

	html body .npp-modal-body .npp-form-field label {
		font-size: 13px !important;
	}
}
/* =========================================================
   اصلاح رنگ دکمه‌های اصلی در Modal بیمار
   (از طلایی به سبز نوژین برای خوانایی بیشتر)
   ========================================================= */

html body .npp-modal-body .npp-form-actions .npp-btn-primary,
html body .npp-modal-body .npp-add-service-form .npp-btn-primary,
html body .npp-modal-body .npp-add-rec-form .npp-btn-primary {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 15px rgba(33, 54, 64, 0.28) !important;
	border: none !important;
}

html body .npp-modal-body .npp-form-actions .npp-btn-primary:hover:not(:disabled),
html body .npp-modal-body .npp-add-service-form .npp-btn-primary:hover:not(:disabled),
html body .npp-modal-body .npp-add-rec-form .npp-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #16242c 0%, #213640 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 12px 22px rgba(33, 54, 64, 0.38) !important;
}

html body .npp-modal-body .npp-form-actions .npp-btn-primary:disabled,
html body .npp-modal-body .npp-add-service-form .npp-btn-primary:disabled,
html body .npp-modal-body .npp-add-rec-form .npp-btn-primary:disabled {
	opacity: 0.55 !important;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%) !important;
}
/* ====== فیلدهای ناخوانا (Blur) برای پزشک ====== */
.npp-form-private {
    position: relative;
}

.npp-blur-input {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    background: #fafafa;
    color: #bbb;
    letter-spacing: 1px;
}

.npp-blur-input::selection {
    background: transparent;
}

/* در صورت نیاز به یک پترن ملایم روی فیلدهای بلور */
.npp-form-private input.npp-blur-input,
.npp-form-private textarea.npp-blur-input {
    background-image: repeating-linear-gradient(
        45deg,
        #fafafa,
        #fafafa 6px,
        #f4f4f4 6px,
        #f4f4f4 12px
    );
}
/* ====== باکس خروج موفق ====== */
.npp-logout-success {
    text-align: center;
    padding: 16px 0 8px;
    margin-bottom: 12px;
}

.npp-logout-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #faf6ea 0%, #f5edd6 100%);
    color: #b8935a; /* رنگ طلایی نوژین */
    box-shadow: 0 4px 14px rgba(184, 147, 90, 0.15);
}

.npp-logout-success-icon svg {
    display: block;
    width: 44px;
    height: 44px;
    color: #b8935a;
}

.npp-logout-success .npp-title {
    margin-top: 4px;
    color: #1e2d3d; /* سرمه‌ای نوژین */
}

.npp-logout-success-hint {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.7;
}
/* =========================================================
   فاز ۴ ب: مدیریت پرسنل + مدیریت نقش‌ها
   ========================================================= */

/* ---- Toolbar ---- */
.npp-staff-manage-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
	align-items: center;
}

.npp-staff-manage-toolbar-spacer { flex: 1; }

.npp-staff-search-bar--inline {
	flex: 1 1 260px;
	margin-bottom: 0;
}

.npp-staff-filter {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.25);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-family: inherit;
	color: #213640;
	font-weight: 600;
	min-width: 130px;
	cursor: pointer;
}

.npp-staff-filter:focus {
	outline: none;
	border-color: #c8a97e;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-staff-add-btn {
	padding: 10px 20px !important;
	font-size: 13px !important;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ---- Staff cards ---- */
.npp-staff-list { min-height: 120px; }

.npp-staff-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-staff-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 14px;
	transition: all 0.25s;
}

.npp-staff-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px -6px rgba(200, 169, 126, 0.2);
	transform: translateY(-2px);
}

.npp-staff-card-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-staff-card-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.npp-staff-card-name {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
}

.npp-self-badge {
	color: #c8a97e;
	font-size: 11px;
	font-weight: 700;
}

.npp-staff-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	color: #64748b;
	align-items: center;
}

.npp-staff-personnel {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.npp-staff-mobile {
	color: #213640;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.npp-staff-card-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.npp-role-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.npp-role-badge--primary {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
}

.npp-role-badge--secondary {
	background: rgba(200, 169, 126, 0.15);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.35);
}

.npp-role-badge--system {
	background: rgba(124, 58, 237, 0.1);
	color: #6d28d9;
	border: 1px solid rgba(124, 58, 237, 0.3);
}

.npp-role-badge--count {
	background: rgba(100, 116, 139, 0.1);
	color: #475569;
}

.npp-staff-card-status {
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 700;
	flex-shrink: 0;
}

.npp-status--active {
	background: rgba(5, 150, 105, 0.12);
	color: #047857;
}

.npp-status--inactive {
	background: rgba(148, 163, 184, 0.18);
	color: #475569;
}

.npp-status--suspended {
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
}

.npp-staff-card-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.npp-staff-edit-btn {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 8px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
}

.npp-staff-edit-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

/* ---- Extra roles grid (فرم پرسنل) ---- */
.npp-extra-roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	padding: 12px;
	background: #f8f5ef;
	border-radius: 10px;
	border: 1px solid #f1ebdd;
}

.npp-extra-role-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #ffffff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #213640;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.npp-extra-role-item:hover {
	border-color: #c8a97e;
}

.npp-extra-role-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #c8a97e;
	cursor: pointer;
	flex-shrink: 0;
}

/* ---- Roles list ---- */
.npp-roles-list { min-height: 120px; }

.npp-roles-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 14px;
}

.npp-role-card {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.25);
	border-radius: 14px;
	padding: 16px 18px;
	transition: all 0.25s;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.npp-role-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px -6px rgba(200, 169, 126, 0.2);
}

.npp-role-card-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.npp-role-card-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.npp-role-card-title strong {
	font-size: 16px;
	color: #213640;
	font-weight: 800;
}

.npp-role-card-title code {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
}

.npp-role-card-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.npp-role-card-caps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 24px;
}

.npp-cap-chip {
	background: linear-gradient(135deg, rgba(200, 169, 126, 0.1) 0%, rgba(212, 175, 55, 0.08) 100%);
	color: #213640;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	border: 1px solid rgba(200, 169, 126, 0.3);
}

.npp-cap-chip--muted {
	background: transparent;
	color: #94a3b8;
	border-style: dashed;
}

.npp-role-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f1ebdd;
}

.npp-role-edit-btn,
.npp-role-delete-btn {
	flex: 1;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid;
}

.npp-role-edit-btn {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	border-color: rgba(200, 169, 126, 0.4);
}

.npp-role-edit-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

.npp-role-delete-btn {
	background: transparent;
	color: #b91c1c;
	border-color: #fca5a5;
}

.npp-role-delete-btn:hover {
	background: #fef2f2;
}

/* ---- Caps grid (فرم نقش) ---- */
.npp-caps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 8px;
	padding: 14px;
	background: #f8f5ef;
	border-radius: 10px;
	border: 1px solid #f1ebdd;
}

.npp-cap-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #ffffff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #213640;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.npp-cap-item:hover {
	border-color: #c8a97e;
}

.npp-cap-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #c8a97e;
	cursor: pointer;
	flex-shrink: 0;
}

/* ---- Modal wide ---- */
.npp-modal-content--wide {
	max-width: 760px;
}

/* ---- موبایل ---- */
@media (max-width: 640px) {
	.npp-staff-manage-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.npp-staff-search-bar--inline {
		flex: 1 1 auto;
	}

	.npp-staff-filter,
	.npp-staff-add-btn {
		width: 100%;
	}

	.npp-staff-card {
		flex-wrap: wrap;
	}

	.npp-staff-card-status {
		order: 3;
	}

	.npp-staff-card-actions {
		width: 100%;
		margin-top: 6px;
	}

	.npp-staff-edit-btn {
		width: 100%;
	}

	.npp-roles-cards {
		grid-template-columns: 1fr;
	}

	.npp-extra-roles-grid,
	.npp-caps-grid {
		grid-template-columns: 1fr;
	}
}
/* =========================================================
   مرحلهٔ ۴ ج: مودال انتقال و حذف نقش
   ========================================================= */

.npp-migrate-warning {
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 1px solid #fbbf24;
	border-radius: 12px;
	margin-bottom: 18px;
	align-items: flex-start;
}

.npp-migrate-warning-icon {
	font-size: 26px;
	flex-shrink: 0;
	line-height: 1;
}

.npp-migrate-warning-body {
	flex: 1;
	min-width: 0;
}

.npp-migrate-warning-body strong {
	display: block;
	font-size: 14.5px;
	font-weight: 800;
	color: #78350f;
	margin-bottom: 6px;
}

.npp-migrate-warning-body p {
	margin: 0;
	font-size: 13px;
	color: #78350f;
	line-height: 1.8;
	opacity: 0.85;
}

.npp-migrate-list {
	background: #f8f5ef;
	border: 1px solid #f1ebdd;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 12px;
	max-height: 200px;
	overflow-y: auto;
}

.npp-migrate-list-title {
	font-size: 12px;
	font-weight: 800;
	color: #64748b;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.npp-migrate-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	background: #ffffff;
	border-radius: 8px;
	margin-bottom: 6px;
	font-size: 13px;
}

.npp-migrate-item:last-child {
	margin-bottom: 0;
}

.npp-migrate-item-name {
	font-weight: 700;
	color: #213640;
}

.npp-migrate-item-code {
	background: rgba(200, 169, 126, 0.15);
	color: #213640;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.npp-migrate-note {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.9;
	padding: 12px 14px;
	background: rgba(200, 169, 126, 0.08);
	border-right: 3px solid #c8a97e;
	border-radius: 8px;
	margin-top: 14px;
}

.npp-migrate-note--info {
	background: rgba(59, 130, 246, 0.08);
	border-right-color: #3b82f6;
	color: #1e40af;
}

.npp-migrate-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	justify-content: flex-end;
}

.npp-migrate-confirm-btn {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	color: #ffffff;
	border: none;
	padding: 11px 22px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.25s;
	box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25);
}

.npp-migrate-confirm-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35);
}

.npp-migrate-confirm-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.npp-migrate-cancel-btn {
	background: transparent;
	color: #64748b;
	border: 1px solid #cbd5e1;
	padding: 11px 22px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
}

.npp-migrate-cancel-btn:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-migrate-actions {
		flex-direction: column-reverse;
	}

	.npp-migrate-confirm-btn,
	.npp-migrate-cancel-btn {
		width: 100%;
	}
}
/* =========================================================
   فاز ۴ د: اصلاح استایل دکمه‌ها و dropdownها در پنل
   ========================================================= */

/* ---- دکمه‌های اصلی پنل ---- */
html body .npp-staff-panel .npp-btn-primary,
html body .npp-wrap.npp-staff-panel .npp-btn-primary {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 11px 22px !important;
	border-radius: 10px !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	font-family: inherit !important;
	transition: all 0.25s !important;
	box-shadow: 0 6px 14px rgba(33, 54, 64, 0.22) !important;
	-webkit-text-fill-color: #ffffff !important;
	line-height: 1.4 !important;
	letter-spacing: 0.2px !important;
}

html body .npp-staff-panel .npp-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #16242c 0%, #213640 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 10px 20px rgba(33, 54, 64, 0.32) !important;
}

html body .npp-staff-panel .npp-btn-primary:disabled {
	opacity: 0.55 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* ---- دکمهٔ افزودن پرسنل / نقش جدید (کمی متفاوت، طلایی) ---- */
html body .npp-staff-panel .npp-staff-add-btn,
html body .npp-wrap.npp-staff-panel .npp-staff-add-btn {
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%) !important;
	color: #213640 !important;
	-webkit-text-fill-color: #213640 !important;
	box-shadow: 0 6px 16px rgba(200, 169, 126, 0.35) !important;
	border: none !important;
	padding: 11px 22px !important;
	font-size: 13px !important;
	border-radius: 10px !important;
	font-weight: 800 !important;
}

html body .npp-staff-panel .npp-staff-add-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #d4af37 0%, #c8a97e 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 10px 22px rgba(212, 175, 55, 0.45) !important;
	color: #213640 !important;
}

/* ---- Dropdownهای فیلتر ---- */
html body .npp-staff-panel .npp-staff-filter,
html body .npp-wrap.npp-staff-panel .npp-staff-filter {
	background-color: #ffffff !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: left 12px center !important;
	background-size: 16px !important;
	color: #213640 !important;
	-webkit-text-fill-color: #213640 !important;
	border: 1px solid rgba(200, 169, 126, 0.35) !important;
	border-radius: 10px !important;
	padding: 11px 14px 11px 38px !important;
	font-size: 13px !important;
	font-family: inherit !important;
	font-weight: 700 !important;
	min-width: 140px !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	height: auto !important;
	line-height: 1.4 !important;
	box-shadow: 0 2px 8px rgba(33, 54, 64, 0.05) !important;
	box-sizing: border-box !important;
}

html body .npp-staff-panel .npp-staff-filter:focus {
	outline: none !important;
	border-color: #c8a97e !important;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.18) !important;
}

html body .npp-staff-panel .npp-staff-filter option {
	background: #ffffff !important;
	color: #213640 !important;
	padding: 8px !important;
	font-weight: 600 !important;
}

/* =========================================================
   کارت «بیمار تکراری» در فرم پذیرش
   ========================================================= */
.npp-dup-patient-error {
	padding: 14px 16px;
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border: 1px solid #fca5a5;
	border-radius: 12px;
	text-align: right;
	margin-top: 10px;
}

.npp-dup-patient-error-msg {
	font-size: 13.5px;
	font-weight: 800;
	color: #991b1b;
	margin-bottom: 10px;
	line-height: 1.7;
}

.npp-dup-patient-card {
	background: #ffffff;
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
}

.npp-dup-patient-name {
	font-size: 14px;
	font-weight: 800;
	color: #213640;
	flex: 1 1 100%;
}

.npp-dup-patient-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12.5px;
	color: #64748b;
	flex: 1;
}

.npp-dup-patient-meta b {
	color: #213640;
	font-weight: 800;
	letter-spacing: 0.3px;
}

.npp-dup-patient-view-btn {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.25s;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba(33, 54, 64, 0.2);
}

.npp-dup-patient-view-btn:hover {
	background: linear-gradient(135deg, #16242c 0%, #213640 100%);
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(33, 54, 64, 0.3);
}

@media (max-width: 640px) {
	.npp-dup-patient-card {
		flex-direction: column;
		align-items: stretch;
	}
	.npp-dup-patient-view-btn {
		width: 100%;
	}
}
/* =========================================================
   فاز ۴ هـ: فیلد آدرس قابل گسترش
   ========================================================= */

.npp-address-field {
	position: relative;
	transition: all 0.3s ease;
}

.npp-address-field textarea {
	resize: none;
	transition: min-height 0.3s ease;
	min-height: 50px;
}

/* حالت گسترده */
.npp-address-field.is-expanded {
	grid-column: 1 / -1;
}

.npp-address-field.is-expanded textarea {
	min-height: 140px;
}

/* دکمهٔ گسترش */
.npp-address-expand-btn {
	position: absolute;
	top: 30px;
	left: 10px;
	width: 28px;
	height: 28px;
	background: rgba(200, 169, 126, 0.15);
	border: 1px solid rgba(200, 169, 126, 0.4);
	color: #213640;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	transition: all 0.2s ease;
	padding: 0;
	z-index: 2;
	line-height: 1;
}

.npp-address-expand-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
	transform: scale(1.05);
}

.npp-address-expand-btn svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* آیکون چرخش ۴۵ درجه در حالت گسترده */
.npp-address-field.is-expanded .npp-address-expand-btn {
	transform: rotate(180deg);
}

.npp-address-field.is-expanded .npp-address-expand-btn:hover {
	transform: rotate(180deg) scale(1.05);
}

/* در موبایل، همیشه گسترده باشد */
@media (max-width: 640px) {
	.npp-address-field textarea {
		min-height: 90px;
	}
	.npp-address-field.is-expanded textarea {
		min-height: 140px;
	}
}
/* =========================================================
   فاز ۴ هـ: یکسان‌سازی ارتفاع فیلدها + گسترش‌پذیری
   ========================================================= */

/* ---- ارتفاع پیش‌فرض: همه فیلدها یکسان ---- */
html body .npp-staff-panel .npp-form-field textarea,
html body .npp-modal-body .npp-form-field textarea {
	min-height: 50px !important;
	height: auto !important;
	padding: 14px 16px !important;
	line-height: 1.5 !important;
	resize: none !important;
	overflow-y: hidden !important;
	transition: min-height 0.3s ease, padding 0.3s ease !important;
	box-sizing: border-box !important;
}

/* ---- دکمهٔ گسترش ---- */
.npp-expand-btn {
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	margin-top: 10px;
	width: 26px;
	height: 26px;
	background: rgba(200, 169, 126, 0.15);
	border: 1px solid rgba(200, 169, 126, 0.4);
	color: #213640;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	transition: all 0.25s ease;
	padding: 0;
	z-index: 2;
	line-height: 1;
}

.npp-expand-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
	transform: translateY(-50%) scale(1.08);
	margin-top: 10px;
}

.npp-expand-btn svg {
	width: 13px;
	height: 13px;
	display: block;
}

/* آیکون چرخش ۱۸۰ درجه در حالت گسترده */
.npp-form-field.is-expanded .npp-expand-btn {
	transform: translateY(-50%) rotate(180deg);
	margin-top: 10px;
}

.npp-form-field.is-expanded .npp-expand-btn:hover {
	transform: translateY(-50%) rotate(180deg) scale(1.08);
}

/* ---- حالت گسترده ---- */
html body .npp-staff-panel .npp-form-field.is-expanded,
html body .npp-modal-body .npp-form-field.is-expanded {
	grid-column: 1 / -1 !important;
}

html body .npp-staff-panel .npp-form-field.is-expanded textarea,
html body .npp-modal-body .npp-form-field.is-expanded textarea {
	min-height: 140px !important;
	overflow-y: auto !important;
}

/* ---- فیلدهای دارای دکمه گسترش باید position: relative داشته باشند ---- */
.npp-form-field.npp-expandable {
	position: relative;
}

/* ---- موبایل: ارتفاع کمی بیشتر برای راحتی ---- */
@media (max-width: 640px) {
	html body .npp-staff-panel .npp-form-field textarea,
	html body .npp-modal-body .npp-form-field textarea {
		min-height: 70px !important;
	}

	html body .npp-staff-panel .npp-form-field.is-expanded textarea,
	html body .npp-modal-body .npp-form-field.is-expanded textarea {
		min-height: 140px !important;
	}
}
/* =========================================================
   فاز ۴ و: یکسان‌سازی دقیق ارتفاع همهٔ فیلدهای فرم
   ========================================================= */

/* ارتفاع ثابت برای همهٔ input/select/textarea در گرید فرم */
html body .npp-staff-panel .npp-form-grid .npp-form-field input,
html body .npp-staff-panel .npp-form-grid .npp-form-field select,
html body .npp-staff-panel .npp-form-grid .npp-form-field textarea,
html body .npp-modal-body .npp-form-grid .npp-form-field input,
html body .npp-modal-body .npp-form-grid .npp-form-field select,
html body .npp-modal-body .npp-form-grid .npp-form-field textarea,
html body .npp-patient-form .npp-form-grid .npp-form-field input,
html body .npp-patient-form .npp-form-grid .npp-form-field select,
html body .npp-patient-form .npp-form-grid .npp-form-field textarea {
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	padding: 0 16px !important;
	line-height: 50px !important;
	font-size: 14px !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
}

/* استثنا: textarea چند خطی → اسکرول داخلی */
html body .npp-staff-panel .npp-form-grid .npp-form-field textarea,
html body .npp-modal-body .npp-form-grid .npp-form-field textarea,
html body .npp-patient-form .npp-form-grid .npp-form-field textarea {
	padding: 14px 16px !important;
	line-height: 1.6 !important;
	overflow-y: auto !important;
	resize: none !important;
}

/* حالت گسترده — ارتفاع بیشتر */
html body .npp-staff-panel .npp-form-field.is-expanded textarea,
html body .npp-modal-body .npp-form-field.is-expanded textarea,
html body .npp-patient-form .npp-form-field.is-expanded textarea {
	height: 160px !important;
	min-height: 160px !important;
	max-height: 160px !important;
}

/* اطمینان: در حالت expanded هم input/select دست نخورند */
html body .npp-staff-panel .npp-form-field.is-expanded input,
html body .npp-staff-panel .npp-form-field.is-expanded select,
html body .npp-modal-body .npp-form-field.is-expanded input,
html body .npp-modal-body .npp-form-field.is-expanded select {
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	line-height: 50px !important;
}

/* موبایل: ارتفاع کمی بیشتر */
@media (max-width: 640px) {
	html body .npp-staff-panel .npp-form-grid .npp-form-field input,
	html body .npp-staff-panel .npp-form-grid .npp-form-field select,
	html body .npp-staff-panel .npp-form-grid .npp-form-field textarea,
	html body .npp-modal-body .npp-form-grid .npp-form-field input,
	html body .npp-modal-body .npp-form-grid .npp-form-field select,
	html body .npp-modal-body .npp-form-grid .npp-form-field textarea,
	html body .npp-patient-form .npp-form-grid .npp-form-field input,
	html body .npp-patient-form .npp-form-grid .npp-form-field select,
	html body .npp-patient-form .npp-form-grid .npp-form-field textarea {
		height: 56px !important;
		min-height: 56px !important;
		max-height: 56px !important;
		line-height: 54px !important;
	}

	html body .npp-staff-panel .npp-form-grid .npp-form-field textarea,
	html body .npp-modal-body .npp-form-grid .npp-form-field textarea,
	html body .npp-patient-form .npp-form-grid .npp-form-field textarea {
		padding: 15px 16px !important;
		line-height: 1.6 !important;
	}

	html body .npp-staff-panel .npp-form-field.is-expanded textarea,
	html body .npp-modal-body .npp-form-field.is-expanded textarea,
	html body .npp-patient-form .npp-form-field.is-expanded textarea {
		height: 160px !important;
		min-height: 160px !important;
		max-height: 160px !important;
	}
}

/* دکمهٔ گسترش — وسط عمودی */
html body .npp-staff-panel .npp-form-field.npp-expandable .npp-expand-btn,
html body .npp-modal-body .npp-form-field.npp-expandable .npp-expand-btn {
	top: 50% !important;
	transform: translateY(-50%) !important;
	margin-top: 10px !important;
}

html body .npp-staff-panel .npp-form-field.npp-expandable.is-expanded .npp-expand-btn,
html body .npp-modal-body .npp-form-field.npp-expandable.is-expanded .npp-expand-btn {
	transform: translateY(-50%) rotate(180deg) !important;
}
/* =========================================================
   فاز ۵-و: تب پکیج‌های بیمار در Modal
   ========================================================= */

.npp-patient-pkg-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 16px;
}

.npp-ppkg-card {
	background: #fdfbf7;
	border: 1px solid #f1ebdd;
	border-radius: 14px;
	overflow: hidden;
	transition: all 0.25s;
}

.npp-ppkg-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 6px 20px -8px rgba(200, 169, 126, 0.2);
}

.npp-ppkg-card-head {
	padding: 14px 18px;
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
	border-bottom: 1px solid #f1ebdd;
	position: relative;
}

.npp-ppkg-card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.npp-ppkg-card-title strong {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
}

.npp-ppkg-status {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
}

.npp-ppkg-status--active {
	background: rgba(5, 150, 105, 0.12);
	color: #047857;
}

.npp-ppkg-status--completed {
	background: rgba(59, 130, 246, 0.1);
	color: #1e40af;
}

.npp-ppkg-status--expired,
.npp-ppkg-status--cancelled {
	background: rgba(148, 163, 184, 0.18);
	color: #64748b;
}

.npp-ppkg-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 11.5px;
	color: #64748b;
}

.npp-ppkg-card-meta strong {
	color: #213640;
	font-weight: 700;
}

.npp-ppkg-card-price {
	position: absolute;
	top: 14px;
	left: 18px;
	font-size: 13px;
	color: #c8a97e;
	font-weight: 800;
}

.npp-ppkg-card-price small {
	font-size: 9px;
	color: #94a3b8;
	font-weight: 500;
}

.npp-ppkg-sessions {
	padding: 10px 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-ppkg-session {
	background: #ffffff;
	border: 1px solid #f1ebdd;
	border-radius: 10px;
	padding: 10px 14px;
}

.npp-ppkg-session-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.npp-ppkg-session-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #213640;
	display: flex;
	align-items: center;
	gap: 6px;
}

.npp-ppkg-gift-badge {
	font-size: 14px;
	background: rgba(212, 175, 55, 0.15);
	padding: 1px 6px;
	border-radius: 6px;
	border: 1px solid rgba(212, 175, 55, 0.35);
	line-height: 1;
}

.npp-ppkg-session-count {
	font-size: 12px;
	color: #64748b;
	font-weight: 700;
}

.npp-ppkg-session-count strong {
	color: #213640;
	font-size: 14px;
}

.npp-ppkg-progress {
	height: 8px;
	background: #f1f5f9;
	border-radius: 100px;
	overflow: hidden;
	margin-bottom: 8px;
}

.npp-ppkg-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #c8a97e 0%, #d4af37 100%);
	border-radius: 100px;
	transition: width 0.4s ease;
}

.npp-ppkg-progress-bar.is-full {
	background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.npp-ppkg-session-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 26px;
}

.npp-ppkg-use-btn {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
}

.npp-ppkg-use-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #16242c 0%, #213640 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(33, 54, 64, 0.25);
}

.npp-ppkg-use-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.npp-ppkg-session-done {
	color: #047857;
	font-size: 12px;
	font-weight: 700;
}

.npp-ppkg-session-left {
	color: #94a3b8;
	font-size: 11.5px;
	font-weight: 600;
}

.npp-ppkg-sessions-empty {
	text-align: center;
	padding: 14px;
	color: #94a3b8;
	font-size: 12.5px;
}

/* ---- فرم فروش پکیج ---- */
.npp-ppkg-sell-block {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 2px dashed #f1ebdd;
}

.npp-ppkg-sell-form {
	margin-top: 14px;
	background: #f8f5ef;
	border: 1px solid #f1ebdd;
	border-radius: 12px;
	padding: 16px;
}

.npp-ppkg-preview-hint {
	color: #c8a97e !important;
	font-weight: 700 !important;
	margin-top: 6px !important;
}

/* ---- موبایل ---- */
@media (max-width: 640px) {
	.npp-ppkg-card-price {
		position: static;
		display: inline-block;
		margin-top: 6px;
	}

	.npp-ppkg-session-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.npp-modal-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.npp-tab-btn {
		white-space: nowrap;
		flex-shrink: 0;
	}
}
/* =========================================================
   فاز ۵-و — تکمیل: پرداخت چندمرحله‌ای
   ========================================================= */

/* ---- رفع چیدمان هدر کارت ---- */
.npp-ppkg-card-head {
	position: relative;
}

.npp-ppkg-card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.npp-ppkg-card-price {
	/* حذف absolute قبلی */
	position: static !important;
	display: block !important;
	text-align: left;
	font-size: 13px;
	color: #c8a97e;
	font-weight: 800;
	margin-top: 6px;
}

/* ---- بخش مالی ---- */
.npp-ppkg-finance {
	background: #f8f5ef;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.npp-ppkg-finance-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
}

.npp-ppkg-finance-label {
	color: #64748b;
	font-weight: 600;
}

.npp-ppkg-finance-value {
	color: #213640;
	font-weight: 800;
	font-size: 14px;
}

.npp-ppkg-finance-value small {
	font-size: 10px;
	color: #94a3b8;
	font-weight: 500;
}

.npp-ppkg-finance-paid {
	color: #047857;
}

.npp-ppkg-finance-balance {
	color: #b91c1c;
}

.npp-ppkg-finance-overpaid {
	color: #7c3aed;
}

.npp-ppkg-finance-ok {
	color: #059669;
}

.npp-ppkg-finance-row--alert {
	background: rgba(220, 38, 38, 0.06);
	padding: 6px 10px;
	margin: -4px -10px 0;
	border-radius: 6px;
}

.npp-ppkg-finance-row--info {
	background: rgba(124, 58, 237, 0.06);
	padding: 6px 10px;
	margin: -4px -10px 0;
	border-radius: 6px;
}

.npp-ppkg-finance-row--ok {
	background: rgba(5, 150, 105, 0.06);
	padding: 6px 10px;
	margin: -4px -10px 0;
	border-radius: 6px;
}

/* ---- لیست پرداخت‌ها ---- */
.npp-ppkg-payments {
	padding: 10px 14px;
	background: #fdfbf7;
	border-radius: 10px;
	margin: 0 14px 12px;
	border: 1px dashed #f1ebdd;
}

.npp-ppkg-payments-title {
	font-size: 11.5px;
	color: #94a3b8;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.npp-ppkg-payment-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	font-size: 12.5px;
	border-bottom: 1px solid rgba(241, 235, 221, 0.5);
}

.npp-ppkg-payment-row:last-child {
	border-bottom: none;
}

.npp-ppkg-payment-date {
	color: #64748b;
	min-width: 100px;
}

.npp-ppkg-payment-amount {
	color: #047857;
	font-weight: 800;
	min-width: 120px;
}

.npp-ppkg-payment-by {
	color: #94a3b8;
	font-size: 11.5px;
	margin-right: auto;
}

/* ---- فرم پرداخت ---- */
.npp-ppkg-payment-block {
	margin: 12px 14px 16px;
	padding-top: 12px;
	border-top: 2px dashed #f1ebdd;
}

.npp-ppkg-payment-form {
	margin-top: 12px;
	background: #f8f5ef;
	border: 1px solid #f1ebdd;
	border-radius: 12px;
	padding: 14px;
}

/* ---- جداکننده ---- */
.npp-numeric-input {
	font-family: "Mada", "Estedad", monospace !important;
	letter-spacing: 0.5px;
	text-align: right;
	font-weight: 700;
	color: #213640;
}

/* ---- دکمه ثبت پرداخت (پنهان در موبایل خیلی کوچک) ---- */
@media (max-width: 480px) {
	.npp-ppkg-payment-by {
		display: none;
	}
}
/* =========================================================
   فاز ۵ — نمایش پکیج‌ها در پنل بیمار
   ========================================================= */

.npp-patient-pkg-portal {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ---- کارت پکیج ---- */
.npp-ppkg-portal-card {
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
	border: 1px solid rgba(200, 169, 126, 0.3);
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 14px -6px rgba(33, 54, 64, 0.08);
	transition: all 0.3s ease;
}

.npp-ppkg-portal-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 10px 28px -10px rgba(200, 169, 126, 0.25);
	transform: translateY(-2px);
}

.npp-ppkg-portal-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 5px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e 0%, #d4af37 100%);
}

/* ---- هدر کارت ---- */
.npp-ppkg-portal-head {
	padding: 18px 22px 14px;
	border-bottom: 1px solid #f1ebdd;
	background: rgba(255, 255, 255, 0.6);
}

.npp-ppkg-portal-head-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.npp-ppkg-portal-name {
	font-size: 16px;
	font-weight: 800;
	color: #213640;
	line-height: 1.4;
}

.npp-ppkg-portal-status {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.npp-ppkg-portal-status--active {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
	color: #047857;
	border: 1px solid rgba(5, 150, 105, 0.25);
}

.npp-ppkg-portal-status--completed {
	background: rgba(100, 116, 139, 0.1);
	color: #475569;
	border: 1px solid rgba(100, 116, 139, 0.2);
}

.npp-ppkg-portal-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #64748b;
}

.npp-ppkg-portal-meta strong {
	color: #213640;
	font-weight: 700;
}

.npp-ppkg-portal-meta-sep {
	color: #cbd5e1;
}

.npp-ppkg-portal-warn {
	color: #b45309;
}

.npp-ppkg-portal-warn strong {
	color: #b45309;
}

/* ---- هشدارها ---- */
.npp-ppkg-portal-alert {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.8;
}

.npp-ppkg-portal-alert--warning {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #78350f;
	border-right: 3px solid #f59e0b;
}

.npp-ppkg-portal-alert--danger {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #991b1b;
	border-right: 3px solid #dc2626;
}

.npp-ppkg-portal-alert strong {
	font-weight: 800;
}

/* ---- جلسات ---- */
.npp-ppkg-portal-sessions {
	padding: 14px 22px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.npp-ppkg-portal-session {
	background: #ffffff;
	border: 1px solid #f1ebdd;
	border-radius: 12px;
	padding: 12px 16px;
	transition: all 0.25s ease;
}

.npp-ppkg-portal-session:hover {
	border-color: #c8a97e;
	background: #fdfbf7;
}

.npp-ppkg-portal-session-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.npp-ppkg-portal-session-name {
	font-size: 14px;
	font-weight: 700;
	color: #213640;
	display: flex;
	align-items: center;
	gap: 6px;
}

.npp-ppkg-portal-gift {
	font-size: 15px;
	display: inline-block;
	background: rgba(212, 175, 55, 0.15);
	padding: 1px 7px;
	border-radius: 6px;
	border: 1px solid rgba(212, 175, 55, 0.35);
	line-height: 1;
}

.npp-ppkg-portal-session-count {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.npp-ppkg-portal-session-count strong {
	font-size: 16px;
	color: #213640;
	font-weight: 800;
}

/* ---- نوار پیشرفت ---- */
.npp-ppkg-portal-progress {
	height: 10px;
	background: #f1f5f9;
	border-radius: 100px;
	overflow: hidden;
	margin-bottom: 10px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.npp-ppkg-portal-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #c8a97e 0%, #d4af37 100%);
	border-radius: 100px;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(212, 175, 55, 0.3);
}

.npp-ppkg-portal-progress-bar.is-full {
	background: linear-gradient(90deg, #059669 0%, #10b981 100%);
	box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

/* ---- فوتر جلسه ---- */
.npp-ppkg-portal-session-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 12.5px;
	min-height: 22px;
}

.npp-ppkg-portal-session-left {
	color: #64748b;
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.npp-ppkg-portal-session-left strong {
	font-size: 15px;
	color: #c8a97e;
	font-weight: 800;
}

.npp-ppkg-portal-session-done {
	color: #047857;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 4px;
}

.npp-ppkg-portal-empty {
	text-align: center;
	padding: 16px;
	color: #94a3b8;
	font-size: 13px;
	background: #fdfbf7;
	border: 1px dashed #e2e8f0;
	border-radius: 10px;
}

/* ---- موبایل ---- */
@media (max-width: 640px) {
	.npp-ppkg-portal-head {
		padding: 14px 16px 12px;
	}

	.npp-ppkg-portal-name {
		font-size: 14.5px;
	}

	.npp-ppkg-portal-sessions {
		padding: 12px 16px 14px;
	}

	.npp-ppkg-portal-session {
		padding: 10px 14px;
	}

	.npp-ppkg-portal-session-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.npp-ppkg-portal-session-count strong {
		font-size: 15px;
	}

	.npp-ppkg-portal-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.npp-ppkg-portal-meta-sep {
		display: none;
	}
}
/* =========================================================
   فاز ۵-الف: بهبود چیدمان دکمهٔ فروش
   ========================================================= */

.npp-ppkg-sell-block--top {
	margin-top: 0;
	margin-bottom: 18px;
	padding-top: 0;
	padding-bottom: 14px;
	border-top: none;
	border-bottom: 1px dashed #e2e8f0;
}

/* دکمهٔ فروش در بالای تب، کمی برجسته‌تر */
.npp-ppkg-sell-block--top .npp-toggle-add-btn {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	border: none;
	color: #ffffff;
	padding: 12px 20px;
	font-size: 13.5px;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(33, 54, 64, 0.22);
}

.npp-ppkg-sell-block--top .npp-toggle-add-btn:hover {
	background: linear-gradient(135deg, #16242c 0%, #213640 100%);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(33, 54, 64, 0.32);
}

.npp-ppkg-sell-block--top .npp-toggle-add-btn.is-open {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
	border: 1px solid #fca5a5;
	box-shadow: none;
}
/* =========================================================
   فاز ۵-ب: حذف پکیج + بازپرداخت
   ========================================================= */

/* ---- بلوک بازپرداخت‌ها ---- */
.npp-ppkg-refunds {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 14px 12px;
}

.npp-ppkg-refunds-title {
	font-size: 11.5px;
	color: #991b1b;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.npp-ppkg-refunds-total {
	font-size: 13px;
	color: #7f1d1d;
}

.npp-ppkg-refunds-total strong {
	font-size: 14px;
	font-weight: 800;
}

/* ---- بلوک بازپرداخت + حذف ---- */
.npp-ppkg-actions-block {
	margin: 12px 14px 16px;
	padding-top: 12px;
	border-top: 2px dashed #f1ebdd;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-toggle-refund {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	border: none;
	color: #ffffff;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.25s;
	box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
	text-align: center;
}

.npp-toggle-refund:hover {
	background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
}

.npp-toggle-refund.is-open {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
	border: 1px solid #fca5a5;
	box-shadow: none;
}

.npp-ppkg-refund-form {
	margin-top: 8px;
	background: #fef9f3;
	border: 1px solid #fed7aa;
	border-radius: 12px;
	padding: 16px;
}

.npp-ppkg-refund-info {
	background: #fef3c7;
	border-right: 3px solid #f59e0b;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 12.5px;
	color: #78350f;
	font-weight: 600;
	line-height: 1.8;
}

.npp-ppkg-refund-info strong {
	color: #b45309;
	font-weight: 800;
	font-size: 14px;
}

/* ---- دکمهٔ حذف ---- */
.npp-ppkg-delete-btn {
	background: transparent;
	border: 1px solid #fca5a5;
	color: #b91c1c;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	align-self: flex-start;
}

.npp-ppkg-delete-btn:hover:not(:disabled) {
	background: #fef2f2;
	border-color: #dc2626;
	color: #991b1b;
}

.npp-ppkg-delete-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ---- هشدار نیاز به بازپرداخت قبل از حذف ---- */
.npp-ppkg-delete-warn {
	background: #fef3c7;
	border-right: 3px solid #f59e0b;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 12.5px;
	color: #78350f;
	font-weight: 600;
	line-height: 1.8;
}

.npp-ppkg-delete-warn strong {
	color: #b45309;
	font-weight: 800;
}

/* ---- موبایل ---- */
@media (max-width: 640px) {
	.npp-ppkg-actions-block {
		margin-left: 10px;
		margin-right: 10px;
	}

	.npp-ppkg-delete-btn {
		align-self: stretch;
		text-align: center;
	}
}
/* =========================================================
   فاز ۵-ج: جلسات زمان‌بندی‌شده (پنل پرسنلی)
   ========================================================= */

.npp-ppkg-appts {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed #e2e8f0;
}

.npp-ppkg-appts-title {
	font-size: 11.5px;
	color: #94a3b8;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.npp-ppkg-appt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: #fdfbf7;
	border: 1px solid #f1ebdd;
	border-radius: 8px;
	margin-bottom: 6px;
	font-size: 12.5px;
}

.npp-ppkg-appt:last-child { margin-bottom: 0; }

.npp-ppkg-appt.is-used    { background: rgba(5, 150, 105, 0.06); border-color: rgba(5, 150, 105, 0.25); }
.npp-ppkg-appt.is-missed  { background: rgba(220, 38, 38, 0.05); border-color: rgba(220, 38, 38, 0.2); }
.npp-ppkg-appt.is-cancelled { background: #f1f5f9; border-color: #cbd5e1; opacity: 0.7; }

.npp-ppkg-appt-num {
	font-size: 10.5px;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
	width: 22px; height: 22px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800;
	flex-shrink: 0;
}

.npp-ppkg-appt-info { flex: 1; min-width: 0; }

.npp-ppkg-appt-date {
	color: #213640;
	font-weight: 800;
	font-size: 12.5px;
}

.npp-ppkg-appt-time {
	color: #c8a97e;
	font-weight: 700;
	font-size: 11.5px;
	margin-right: 6px;
}

.npp-ppkg-appt-time--empty {
	color: #94a3b8;
	font-weight: 500;
}

.npp-ppkg-appt-status {
	font-size: 10.5px;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 700;
	flex-shrink: 0;
}

.npp-ppkg-appt-status--pending   { background: rgba(200, 169, 126, 0.15); color: #92400e; }
.npp-ppkg-appt-status--used      { background: rgba(5, 150, 105, 0.12); color: #047857; }
.npp-ppkg-appt-status--missed    { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.npp-ppkg-appt-status--cancelled { background: rgba(100, 116, 139, 0.15); color: #475569; }

.npp-ppkg-appt-actions { display: flex; gap: 4px; flex-shrink: 0; }

.npp-ppkg-appt-action-btn {
	background: transparent;
	border: 1px solid #e2e8f0;
	color: #475569;
	border-radius: 5px;
	padding: 3px 8px;
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.15s;
}

.npp-ppkg-appt-action-btn:hover { background: #f1f5f9; }

.npp-ppkg-appt-action-btn--ok {
	border-color: rgba(5, 150, 105, 0.4); color: #047857;
}
.npp-ppkg-appt-action-btn--ok:hover { background: rgba(5, 150, 105, 0.08); }

.npp-ppkg-appt-action-btn--cancel {
	border-color: #fca5a5; color: #b91c1c;
}
.npp-ppkg-appt-action-btn--cancel:hover { background: #fef2f2; }

.npp-ppkg-appt-new-btn {
	width: 100%;
	background: rgba(200, 169, 126, 0.12);
	border: 1px dashed #c8a97e;
	color: #213640;
	border-radius: 8px;
	padding: 7px 12px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	margin-top: 6px;
	transition: all 0.2s;
}

.npp-ppkg-appt-new-btn:hover { background: rgba(200, 169, 126, 0.22); }
.npp-ppkg-appt-new-btn.is-open {
	background: rgba(220, 38, 38, 0.06);
	border-color: #fca5a5;
	color: #b91c1c;
	border-style: solid;
}

.npp-ppkg-appt-form {
	background: #fdfbf7;
	border: 1px solid #f1ebdd;
	border-radius: 10px;
	padding: 12px;
	margin-top: 8px;
}

.npp-ppkg-appt-form .npp-form-grid {
	gap: 10px;
}

.npp-ppkg-appt-empty {
	text-align: center;
	color: #94a3b8;
	font-size: 11.5px;
	padding: 10px;
}

/* =========================================================
   فاز ۵-ج: جلسات آیندهٔ بیمار (پنل بیمار)
   ========================================================= */

.npp-appt-portal-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* کارت جلسه */
.npp-appt-portal-card {
	display: grid;
	grid-template-columns: 130px 1fr auto;
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
	border: 1px solid rgba(200, 169, 126, 0.25);
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	transition: all 0.25s;
}

.npp-appt-portal-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 22px -10px rgba(200, 169, 126, 0.25);
	transform: translateY(-2px);
}

.npp-appt-portal-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e, #d4af37);
	z-index: 1;
}

.npp-appt-portal-card.is-today::before { background: linear-gradient(to bottom, #dc2626, #f59e0b); }
.npp-appt-portal-card.is-soon::before  { background: linear-gradient(to bottom, #f59e0b, #d4af37); }

/* ستون تاریخ (راست) */
.npp-appt-portal-date {
	background: linear-gradient(135deg, #faf6ea 0%, #f5edd6 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 10px;
	border-left: 1px dashed rgba(200, 169, 126, 0.4);
	text-align: center;
	gap: 6px;
}

.npp-appt-portal-day {
	font-size: 14px;
	color: #213640;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.npp-appt-portal-time {
	display: inline-block;
	font-size: 11.5px;
	color: #c8a97e;
	font-weight: 800;
	background: #ffffff;
	padding: 3px 10px;
	border-radius: 20px;
	border: 1px solid rgba(200, 169, 126, 0.35);
	line-height: 1.4;
}

.npp-appt-portal-time--empty {
	color: #94a3b8;
	font-weight: 500;
	font-size: 10.5px;
	background: transparent;
	border: 1px dashed rgba(148, 163, 184, 0.4);
}

/* ستون محتوا (وسط) */
.npp-appt-portal-body {
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	min-width: 0;
}

.npp-appt-portal-service {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
}

.npp-appt-portal-package {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	line-height: 1.5;
}

/* ستون وضعیت (چپ) */
.npp-appt-portal-status {
	background: linear-gradient(135deg, #faf6ea 0%, #f5edd6 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 18px;
	border-right: 1px dashed rgba(200, 169, 126, 0.4);
	min-width: 100px;
}

.npp-appt-portal-status-icon {
	font-size: 26px;
	line-height: 1;
}

.npp-appt-portal-badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.npp-appt-portal-badge--today {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
}

.npp-appt-portal-badge--soon {
	background: rgba(245, 158, 11, 0.15);
	color: #b45309;
	border: 1px solid rgba(245, 158, 11, 0.4);
}

/* یادداشت — تمام عرض */
.npp-appt-portal-note {
	grid-column: 1 / -1;
	font-size: 12px;
	color: #64748b;
	line-height: 1.8;
	background: rgba(200, 169, 126, 0.08);
	border-top: 1px dashed rgba(200, 169, 126, 0.3);
	padding: 8px 16px;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-appt-portal-card {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"date status"
			"body body";
	}

	.npp-appt-portal-date {
		grid-area: date;
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		padding: 10px 14px;
		border-left: none;
		border-bottom: 1px dashed rgba(200, 169, 126, 0.4);
	}

	.npp-appt-portal-status {
		grid-area: status;
		flex-direction: row;
		gap: 8px;
		padding: 10px 14px;
		border-right: none;
		border-bottom: 1px dashed rgba(200, 169, 126, 0.4);
		min-width: 0;
	}

	.npp-appt-portal-status-icon {
		font-size: 20px;
	}

	.npp-appt-portal-body {
		grid-area: body;
		padding: 12px 14px;
	}
}

.npp-appt-portal-note {
	grid-column: 1 / -1;
	font-size: 12px;
	color: #64748b;
	line-height: 1.8;
	background: rgba(200, 169, 126, 0.08);
	border-right: 3px solid #c8a97e;
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 4px;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-appt-portal-card {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 12px 16px;
	}

	.npp-appt-portal-date {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 0 0 10px;
		border-left: none;
		border-bottom: 1px dashed rgba(200, 169, 126, 0.3);
	}

	.npp-appt-portal-time { margin-top: 0; }

	.npp-ppkg-appt {
		flex-wrap: wrap;
	}

	.npp-ppkg-appt-actions {
		width: 100%;
		margin-top: 4px;
	}

	.npp-ppkg-appt-action-btn {
		flex: 1;
		text-align: center;
		padding: 6px 8px;
	}
}
/* =========================================================
   تقویم شمسی مستقل NPP (fallback)
   ========================================================= */
.npp-jdp {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
	font-family: inherit;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	width: 290px;
	box-sizing: border-box;
	direction: rtl;
}
.npp-jdp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin-bottom: 8px;
}
.npp-jdp-title {
	flex: 1;
	text-align: center;
	font-weight: 800;
	color: #213640;
	font-size: 14px;
	letter-spacing: 0.3px;
}
.npp-jdp-nav {
	background: transparent;
	border: 1px solid #e2e8f0;
	color: #213640;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	padding: 0;
}
.npp-jdp-nav:hover { background: #f1f5f9; }

.npp-jdp-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 4px;
}
.npp-jdp-weekdays span {
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	padding: 4px 0;
}
.npp-jdp-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.npp-jdp-day {
	background: transparent;
	border: none;
	cursor: pointer;
	font-family: inherit;
	padding: 8px 0;
	border-radius: 8px;
	font-size: 13px;
	color: #213640;
	font-weight: 600;
}
.npp-jdp-day:hover:not(.is-empty) { background: #f1f5f9; }
.npp-jdp-day.is-selected {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	font-weight: 800;
}
.npp-jdp-day.is-empty { cursor: default; pointer-events: none; }

.npp-jdp-foot {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #f1ebdd;
}
.npp-jdp-today,
.npp-jdp-close {
	flex: 1;
	background: #f8f5ef;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #213640;
	cursor: pointer;
	font-family: inherit;
}
.npp-jdp-today:hover,
.npp-jdp-close:hover { background: #e2e8f0; }
/* =========================================================
   NPP Time Picker
   ========================================================= */
.npp-jtp {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px;
	font-family: inherit;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	direction: rtl;
	width: 200px;
	box-sizing: border-box;
}
.npp-jtp-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
	border-bottom: 1px solid #f1ebdd;
	padding-bottom: 6px;
}
.npp-jtp-title {
	font-size: 12px;
	font-weight: 800;
	color: #213640;
}
.npp-jtp-clear {
	background: transparent;
	border: 1px solid #fca5a5;
	color: #b91c1c;
	padding: 3px 8px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}
.npp-jtp-clear:hover { background: #fef2f2; }

.npp-jtp-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}
.npp-jtp-col {
	max-height: 200px;
	overflow-y: auto;
	scrollbar-width: thin;
	border: 1px solid #f1ebdd;
	border-radius: 8px;
	padding: 4px;
}
.npp-jtp-col::-webkit-scrollbar { width: 5px; }
.npp-jtp-col::-webkit-scrollbar-thumb { background: rgba(200, 169, 126, 0.4); border-radius: 4px; }

.npp-jtp-opt {
	display: block;
	width: 100%;
	background: transparent;
	border: none;
	padding: 6px 4px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #213640;
	cursor: pointer;
	text-align: center;
	letter-spacing: 0.5px;
}
.npp-jtp-opt:hover { background: #f1f5f9; }
.npp-jtp-opt.is-selected {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
}
/* =========================================================
   فاز ۵-د: نمایش جلسات پکیج در Timeline بیمار
   ========================================================= */
.npp-timeline-item--pkg .npp-timeline-body {
	background: linear-gradient(135deg, #fdfbf7 0%, #faf6ea 100%);
	border-color: rgba(200, 169, 126, 0.35);
}

.npp-timeline-item--pkg .npp-timeline-body:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px rgba(200, 169, 126, 0.18);
}

.npp-timeline-dot--pkg {
	background: linear-gradient(135deg, #faf6ea 0%, #f5edd6 100%);
	border-color: #c8a97e;
	box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.25);
}

.npp-timeline-item--pkg:hover .npp-timeline-dot--pkg {
	background: linear-gradient(135deg, #c8a97e 0%, #d4af37 100%);
	border-color: #d4af37;
}

.npp-timeline-pkg-tag {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 800;
	color: #92400e;
	background: rgba(200, 169, 126, 0.2);
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 6px;
	padding: 2px 8px;
	margin-left: 6px;
	letter-spacing: 0.3px;
	vertical-align: middle;
}
/* =========================================================
   فاز ۵-ج (نسخهٔ ۲): جلسات آیندهٔ بیمار — Flexbox
   ========================================================= */
.npp-jappt-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.npp-jappt-card {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
	border: 1px solid rgba(200, 169, 126, 0.25);
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.npp-jappt-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 22px -10px rgba(200, 169, 126, 0.3);
	transform: translateY(-2px);
}

.npp-jappt-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e, #d4af37);
	z-index: 1;
}

.npp-jappt-card.is-today::before { background: linear-gradient(to bottom, #dc2626, #f59e0b); }
.npp-jappt-card.is-soon::before  { background: linear-gradient(to bottom, #f59e0b, #d4af37); }

.npp-jappt-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* ستون تاریخ */
.npp-jappt-col-date {
	width: 130px;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	padding: 16px 10px;
	background: linear-gradient(135deg, #faf6ea 0%, #f5edd6 100%);
	border-left: 1px dashed rgba(200, 169, 126, 0.4);
	text-align: center;
}

.npp-jappt-day {
	font-size: 14px;
	color: #213640;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.npp-jappt-time {
	display: inline-block;
	font-size: 11.5px;
	color: #c8a97e;
	font-weight: 800;
	background: #ffffff;
	padding: 3px 10px;
	border-radius: 20px;
	border: 1px solid rgba(200, 169, 126, 0.35);
	line-height: 1.4;
}

.npp-jappt-time.is-empty {
	color: #94a3b8;
	font-weight: 500;
	font-size: 10.5px;
	background: transparent;
	border: 1px dashed rgba(148, 163, 184, 0.4);
}

/* ستون محتوا */
.npp-jappt-col-main {
	flex: 1 1 0;
	align-items: flex-start;
	gap: 5px;
	padding: 16px 18px;
	text-align: right;
	min-width: 0;
}

.npp-jappt-service {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
	width: 100%;
}

.npp-jappt-pkg {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	line-height: 1.5;
	width: 100%;
}

/* ستون وضعیت */
.npp-jappt-col-status {
	width: 100px;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	padding: 16px 12px;
	background: linear-gradient(135deg, #faf6ea 0%, #f5edd6 100%);
	border-right: 1px dashed rgba(200, 169, 126, 0.4);
}

.npp-jappt-icon {
	font-size: 26px;
	line-height: 1;
}

.npp-jappt-badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.npp-jappt-badge.is-today {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
}

.npp-jappt-badge.is-soon {
	background: rgba(245, 158, 11, 0.15);
	color: #b45309;
	border: 1px solid rgba(245, 158, 11, 0.4);
}

/* یادداشت — تمام عرض */
.npp-jappt-note {
	flex-basis: 100%;
	width: 100%;
	padding: 8px 16px;
	font-size: 12px;
	color: #64748b;
	background: rgba(200, 169, 126, 0.08);
	border-top: 1px dashed rgba(200, 169, 126, 0.3);
	line-height: 1.8;
	text-align: right;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-jappt-col-date {
		width: auto;
		flex: 1 1 0;
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		padding: 10px 14px;
		border-left: none;
		border-bottom: 1px dashed rgba(200, 169, 126, 0.4);
	}

	.npp-jappt-col-status {
		width: auto;
		flex-direction: row;
		gap: 8px;
		padding: 10px 14px;
		border-right: none;
		border-bottom: 1px dashed rgba(200, 169, 126, 0.4);
	}

	.npp-jappt-icon {
		font-size: 20px;
	}

	.npp-jappt-col-main {
		flex-basis: 100%;
		padding: 12px 14px;
	}
}
/* =========================================================
   فاز ۵-ز: مدیریت کسب‌وکار — منوها و placeholder
   ========================================================= */

/* نشانه‌گذاری منوهای business */
.npp-staff-nav-item[data-section^="business-"] {
	border-right: 2px solid transparent;
	padding-right: 12px;
	position: relative;
}

.npp-staff-nav-item[data-section^="business-"]::before {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 0;
	background: linear-gradient(to bottom, #c8a97e, #d4af37);
	transition: height 0.25s ease;
	border-radius: 2px;
}

.npp-staff-nav-item[data-section^="business-"]:hover::before {
	height: 60%;
}

.npp-staff-nav-item[data-section^="business-"].is-active::before {
	height: 80%;
}

/* placeholder مخصوص business — کمی مجلل‌تر */
.npp-business-placeholder {
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border-color: rgba(200, 169, 126, 0.55);
	position: relative;
	overflow: hidden;
}

.npp-business-placeholder::before {
	content: "";
	position: absolute;
	top: -40%;
	left: -10%;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.npp-business-placeholder .npp-staff-placeholder-icon {
	font-size: 52px;
	opacity: 0.85;
	position: relative;
	z-index: 1;
}

.npp-business-placeholder strong {
	color: #213640;
	font-size: 18px;
	position: relative;
	z-index: 1;
}

/* موبایل: منوها در سایدبار افقی، بردر سمت راست را حذف کن */
@media (max-width: 900px) {
	.npp-staff-nav-item[data-section^="business-"] {
		border-right: none;
		padding-right: 14px;
	}

	.npp-staff-nav-item[data-section^="business-"]::before {
		right: auto;
		bottom: 0;
		top: auto;
		transform: none;
		width: 0;
		height: 2px;
		background: linear-gradient(to right, #c8a97e, #d4af37);
		transition: width 0.25s ease;
	}

	.npp-staff-nav-item[data-section^="business-"]:hover::before,
	.npp-staff-nav-item[data-section^="business-"].is-active::before {
		width: 60%;
		height: 2px;
	}
}
/* =========================================================
   فاز ۵-ز (5-Z-2): مدیریت خدمات
   ========================================================= */

.npp-services-list {
	min-height: 120px;
}

.npp-service-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-service-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 14px;
	transition: all 0.25s;
}

.npp-service-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px -6px rgba(200, 169, 126, 0.2);
	transform: translateY(-2px);
}

.npp-service-card-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-service-card-info {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npp-service-card-name {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
}

.npp-service-card-desc {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.6;
}

.npp-service-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.npp-service-source {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

.npp-service-source--nubat {
	background: rgba(33, 54, 64, 0.1);
	color: #213640;
}

.npp-service-source--custom {
	background: rgba(200, 169, 126, 0.15);
	color: #a07428;
}

.npp-service-category-chip {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(200, 169, 126, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.3);
}

.npp-service-code {
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.npp-service-card-stats {
	display: flex;
	gap: 18px;
	flex-shrink: 0;
	padding: 0 16px;
	border-right: 1px dashed rgba(200, 169, 126, 0.3);
	border-left: 1px dashed rgba(200, 169, 126, 0.3);
}

.npp-service-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 80px;
}

.npp-service-stat-label {
	font-size: 10.5px;
	color: #94a3b8;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.npp-service-stat-value {
	font-size: 13px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
}

.npp-service-stat-value small {
	font-size: 9.5px;
	color: #94a3b8;
	font-weight: 500;
}

.npp-service-muted {
	color: #94a3b8;
	font-weight: 500;
	font-size: 12px;
}

.npp-service-card-status {
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 700;
	flex-shrink: 0;
}

.npp-service-card-actions {
	display: flex;
	gap: 5px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: 220px;
}

.npp-service-edit-btn,
.npp-service-status-btn {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.4);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	white-space: nowrap;
}

.npp-service-edit-btn:hover,
.npp-service-status-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

.npp-service-delete-btn {
	background: transparent;
	color: #b91c1c;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	white-space: nowrap;
}

.npp-service-delete-btn:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

.npp-service-edit-btn:disabled,
.npp-service-status-btn:disabled,
.npp-service-delete-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.npp-service-price-history-hint {
	margin-top: 14px;
	padding: 10px 14px;
	background: rgba(200, 169, 126, 0.08);
	border-right: 3px solid #c8a97e;
	border-radius: 8px;
	color: #64748b;
	font-size: 12px;
}

/* موبایل */
@media (max-width: 900px) {
	.npp-service-card {
		flex-wrap: wrap;
	}

	.npp-service-card-info {
		flex-basis: calc(100% - 70px);
	}

	.npp-service-card-stats {
		flex-basis: 100%;
		padding: 10px 0 0;
		border-right: none;
		border-left: none;
		border-top: 1px dashed rgba(200, 169, 126, 0.3);
		justify-content: space-around;
		margin-top: 6px;
	}

	.npp-service-stat {
		align-items: center;
		flex: 1;
	}

	.npp-service-card-actions {
		flex-basis: 100%;
		max-width: none;
		justify-content: flex-start;
		margin-top: 6px;
	}

	.npp-service-edit-btn,
	.npp-service-status-btn,
	.npp-service-delete-btn {
		flex: 1;
		text-align: center;
	}
}
/* =========================================================
   فاز ۵-ز (5-Z-3): مدیریت دسته‌بندی خدمات
   ========================================================= */

.npp-categories-list {
	min-height: 120px;
}

.npp-category-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-category-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 14px;
	transition: all 0.25s;
}

.npp-category-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 20px -6px rgba(200, 169, 126, 0.2);
	transform: translateY(-2px);
}

.npp-category-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	border: 2px solid;
	flex-shrink: 0;
	line-height: 1;
}

.npp-category-card-info {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npp-category-card-name {
	font-size: 15px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
}

.npp-category-card-slug code {
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.npp-category-card-desc {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.6;
	margin-top: 2px;
}

.npp-category-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 4px;
}

.npp-cat-badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

.npp-cat-badge--system {
	background: rgba(124, 58, 237, 0.1);
	color: #6d28d9;
	border: 1px solid rgba(124, 58, 237, 0.3);
}

.npp-cat-badge--custom {
	background: rgba(200, 169, 126, 0.15);
	color: #a07428;
	border: 1px solid rgba(200, 169, 126, 0.4);
}

.npp-cat-badge--count {
	background: rgba(5, 150, 105, 0.1);
	color: #047857;
	border: 1px solid rgba(5, 150, 105, 0.25);
}

.npp-cat-badge--empty {
	background: rgba(148, 163, 184, 0.15);
	color: #64748b;
}

.npp-cat-badge--order {
	background: #f8f5ef;
	color: #64748b;
}

.npp-category-card-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.npp-cat-edit-btn,
.npp-cat-delete-btn {
	border-radius: 8px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	white-space: nowrap;
}

.npp-cat-edit-btn {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.4);
}

.npp-cat-edit-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

.npp-cat-delete-btn {
	background: transparent;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

.npp-cat-delete-btn:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

.npp-cat-edit-btn:disabled,
.npp-cat-delete-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-category-card {
		flex-wrap: wrap;
	}

	.npp-category-card-info {
		flex-basis: calc(100% - 80px);
	}

	.npp-category-card-actions {
		flex-basis: 100%;
		margin-top: 6px;
	}

	.npp-cat-edit-btn,
	.npp-cat-delete-btn {
		flex: 1;
		text-align: center;
	}
}
/* =========================================================
   فاز ۵-ز (5-Z-4): مدیریت پکیج‌ها در CRM
   ========================================================= */

.npp-bpkg-list { min-height: 120px; }

.npp-bpkg-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.npp-bpkg-card {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.25s;
	position: relative;
}

.npp-bpkg-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e, #d4af37);
}

.npp-bpkg-card.is-inactive::before {
	background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
}

.npp-bpkg-card:hover {
	border-color: #c8a97e;
	box-shadow: 0 10px 26px -8px rgba(200, 169, 126, 0.25);
	transform: translateY(-2px);
}

.npp-bpkg-card.is-inactive {
	opacity: 0.85;
	background: #fafbfc;
}

.npp-bpkg-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 20px 14px;
	border-bottom: 1px solid #f1ebdd;
}

.npp-bpkg-avatar {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #c8a97e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-bpkg-info { flex: 1 1 0; min-width: 0; }

.npp-bpkg-name {
	font-size: 16px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
	margin-bottom: 4px;
}

.npp-bpkg-code {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.npp-bpkg-desc {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.6;
	margin-top: 4px;
}

.npp-bpkg-status {
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 800;
	flex-shrink: 0;
}

.npp-bpkg-status--active {
	background: rgba(5, 150, 105, 0.12);
	color: #047857;
}

.npp-bpkg-status--inactive {
	background: rgba(148, 163, 184, 0.18);
	color: #64748b;
}

.npp-bpkg-finance {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 14px 20px;
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border-bottom: 1px solid #f1ebdd;
}

.npp-bpkg-finance-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 100px;
}

.npp-bpkg-finance-item span {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 700;
}

.npp-bpkg-finance-item strong {
	font-size: 14px;
	color: #213640;
	font-weight: 800;
}

.npp-bpkg-finance-item strong small {
	font-size: 10px;
	color: #94a3b8;
	font-weight: 500;
}

.npp-bpkg-finance-item--save strong { color: #059669; }

.npp-bpkg-items {
	padding: 12px 20px;
	border-bottom: 1px solid #f1ebdd;
}

.npp-bpkg-items-title {
	font-size: 11.5px;
	color: #94a3b8;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.npp-bpkg-items-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.npp-bpkg-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #f1ebdd;
	border-radius: 10px;
	padding: 6px 12px;
	font-size: 12.5px;
}

.npp-bpkg-item-name {
	color: #213640;
	font-weight: 700;
}

.npp-bpkg-item-sessions {
	color: #c8a97e;
	font-weight: 800;
	background: rgba(200, 169, 126, 0.15);
	padding: 1px 8px;
	border-radius: 20px;
	font-size: 11px;
}

.npp-bpkg-gift {
	font-size: 10.5px;
	color: #b45309;
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.4);
	padding: 1px 6px;
	border-radius: 20px;
	font-weight: 700;
}

.npp-bpkg-actions {
	display: flex;
	gap: 8px;
	padding: 12px 20px;
	background: #f8f5ef;
	flex-wrap: wrap;
}

.npp-bpkg-edit-btn,
.npp-bpkg-toggle-btn,
.npp-bpkg-delete-btn {
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	white-space: nowrap;
}

.npp-bpkg-edit-btn {
	background: rgba(200, 169, 126, 0.12);
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.4);
}

.npp-bpkg-edit-btn:hover {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

.npp-bpkg-toggle-btn {
	background: #ffffff;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.npp-bpkg-toggle-btn:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

.npp-bpkg-delete-btn {
	background: transparent;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

.npp-bpkg-delete-btn:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

.npp-bpkg-edit-btn:disabled,
.npp-bpkg-toggle-btn:disabled,
.npp-bpkg-delete-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Items Editor در Modal */
.npp-bpkg-items-editor {
	background: #f8f5ef;
	border: 1px solid #f1ebdd;
	border-radius: 12px;
	padding: 14px;
	margin-top: 16px;
}

.npp-bpkg-items-editor-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.npp-bpkg-items-editor-head h4 {
	margin: 0;
	font-size: 14px;
	color: #213640;
	font-weight: 800;
}

.npp-bpkg-item-add {
	padding: 8px 16px !important;
	font-size: 12.5px !important;
}

.npp-bpkg-items-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-bpkg-item-row {
	display: grid;
	grid-template-columns: 2fr 0.8fr 1.2fr 0.8fr auto;
	gap: 10px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	align-items: end;
}

.npp-bpkg-item-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.npp-bpkg-item-col label {
	font-size: 11px;
	color: #64748b;
	font-weight: 700;
}

.npp-bpkg-item-col select,
.npp-bpkg-item-col input[type="number"],
.npp-bpkg-item-col input[type="text"] {
	width: 100%;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13.5px;
	font-family: inherit;
	color: #213640;
	background: #fdfbf7;
	box-sizing: border-box;
}

.npp-bpkg-item-col select:focus,
.npp-bpkg-item-col input:focus {
	outline: none;
	border-color: #c8a97e;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.npp-bpkg-item-gift-label {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 12px;
	background: #fdfbf7;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 12.5px;
	color: #213640;
	font-weight: 600;
	cursor: pointer;
	justify-content: center;
}

.npp-bpkg-item-gift-label input {
	accent-color: #c8a97e;
	cursor: pointer;
}

.npp-bpkg-item-remove {
	width: 44px;
	height: 44px;
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-family: inherit;
	transition: all 0.2s;
	align-self: end;
}

.npp-bpkg-item-remove:hover {
	background: #fee2e2;
	border-color: #dc2626;
}

/* موبایل */
@media (max-width: 900px) {
	.npp-bpkg-item-row {
		grid-template-columns: 1fr 1fr;
	}

	.npp-bpkg-item-col--service { grid-column: 1 / -1; }
	.npp-bpkg-item-col--gift    { grid-column: 1 / 2; }
	.npp-bpkg-item-col--remove  { grid-column: 2 / 3; }

	.npp-bpkg-item-remove {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.npp-bpkg-head {
		flex-wrap: wrap;
	}

	.npp-bpkg-avatar {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}

	.npp-bpkg-actions {
		flex-direction: column;
	}

	.npp-bpkg-edit-btn,
	.npp-bpkg-toggle-btn,
	.npp-bpkg-delete-btn {
		width: 100%;
		text-align: center;
	}
}
/* ===== قیمت خودکار پکیج ===== */
#npp-biz-package-form [name="total_price"],
#npp-biz-package-form [name="original_price"] {
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	font-weight: 800;
	color: #213640;
}

#npp-biz-package-form [name="original_price"]:focus,
#npp-biz-package-form [name="total_price"]:focus {
	background: #ffffff;
}

/* ===== ردیف آیتم پکیج — قیمت خودکار ===== */
.npp-bpkg-item-price {
	background: #fdfbf7;
	font-weight: 700;
	color: #213640;
}

.npp-bpkg-item-price:focus {
	background: #ffffff;
}
/* =========================================================
   فاز ۵-ز (5-Z-5): تنظیمات مطب
   ========================================================= */

.npp-settings-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px;
	background: #f8f5ef;
	border: 1px solid #f1ebdd;
	border-radius: 14px;
	flex-wrap: wrap;
}

.npp-settings-tab {
	flex: 1;
	min-width: 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	background: transparent;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s;
}

.npp-settings-tab:hover { background: rgba(200, 169, 126, 0.1); color: #213640; }

.npp-settings-tab.is-active {
	background: linear-gradient(135deg, #213640 0%, #2d4553 100%);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(33, 54, 64, 0.2);
}

.npp-settings-tab-icon { font-size: 16px; }

.npp-settings-pane { display: none; }
.npp-settings-pane.is-active { display: block; }

.npp-settings-loading {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.npp-settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.npp-settings-card {
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 14px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.npp-settings-card h3 {
	margin: 0 0 4px;
	font-size: 15px;
	color: #213640;
	font-weight: 800;
}

.npp-settings-card--test {
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border-style: dashed;
}

.npp-settings-test-hint {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.7;
}

.npp-settings-test-hint code {
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 700;
	direction: ltr;
	display: inline-block;
}

/* Logo Field */
.npp-logo-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background: #fdfbf7;
	border: 1px dashed rgba(200, 169, 126, 0.4);
	border-radius: 10px;
}

.npp-logo-field label {
	font-size: 12.5px;
	color: #475569;
	font-weight: 700;
}

.npp-logo-preview {
	width: 100%;
	height: 100px;
	background: #ffffff;
	border: 1px solid #f1ebdd;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.npp-logo-preview img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.npp-logo-empty {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
}

.npp-logo-actions {
	display: flex;
	gap: 8px;
}

.npp-logo-actions .npp-btn {
	flex: 1;
	padding: 8px 12px !important;
	font-size: 12px !important;
}

/* Color Field */
.npp-color-row {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 10px;
	align-items: center;
}

.npp-color-row input[type="color"] {
	width: 100%;
	height: 46px;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	background: #ffffff;
}

.npp-color-text {
	height: 46px !important;
	padding: 0 14px !important;
	background: #fdfbf7 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	font-family: "Mada", monospace !important;
	font-weight: 700 !important;
	letter-spacing: 1px !important;
	color: #213640 !important;
	text-align: center !important;
}

/* Actions */
.npp-settings-actions {
	display: flex;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid #f1ebdd;
	margin-top: 16px;
	flex-wrap: wrap;
}

.npp-btn-secondary {
	background: #ffffff;
	color: #213640;
	border: 1px solid rgba(200, 169, 126, 0.5);
}

.npp-btn-secondary:hover:not(:disabled) {
	background: #c8a97e;
	color: #ffffff;
	border-color: #c8a97e;
}

/* SMS Log */
.npp-sms-log-details {
	margin-top: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 12.5px;
}

.npp-sms-log-details summary {
	cursor: pointer;
	font-weight: 700;
	color: #213640;
}

.npp-sms-log-details pre {
	direction: ltr;
	text-align: left;
	background: #f6f7f7;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 10px;
	margin: 10px 0 0;
	overflow: auto;
	max-height: 300px;
	font-size: 11.5px;
	line-height: 1.6;
	color: #475569;
}

/* موبایل */
@media (max-width: 640px) {
	.npp-settings-tab { flex-basis: 100%; }
	.npp-settings-card { padding: 14px 16px; }
	.npp-settings-actions { flex-direction: column; }
	.npp-settings-actions .npp-btn { width: 100%; }
}
/* =========================================================
   فاز ۵-ز (5-Z-6): تاریخ تغییر قیمت
   ========================================================= */

.npp-ph-list-wrap { min-height: 120px; }

.npp-ph-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npp-ph-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid rgba(200, 169, 126, 0.2);
	border-radius: 12px;
	transition: all 0.25s;
	position: relative;
	overflow: hidden;
}

.npp-ph-row::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, #c8a97e, #d4af37);
	opacity: 0.6;
}

.npp-ph-row:hover {
	border-color: #c8a97e;
	box-shadow: 0 8px 22px -10px rgba(200, 169, 126, 0.25);
	transform: translateY(-1px);
}

.npp-ph-main {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.npp-ph-service {
	font-size: 14.5px;
	color: #213640;
	font-weight: 800;
	line-height: 1.4;
}

.npp-ph-date {
	font-size: 11.5px;
	color: #94a3b8;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.npp-ph-changes {
	flex: 1 1 320px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.npp-ph-change {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fdfbf7;
	border: 1px solid #f1ebdd;
	border-radius: 8px;
	font-size: 13px;
}

.npp-ph-change small {
	font-size: 10px;
	color: #94a3b8;
	font-weight: 500;
}

.npp-ph-label {
	font-size: 11px;
	color: #64748b;
	font-weight: 700;
	margin-left: 2px;
}

.npp-ph-old {
	color: #94a3b8;
	font-weight: 700;
	text-decoration: line-through;
	text-decoration-color: rgba(148, 163, 184, 0.5);
}

.npp-ph-arrow {
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	margin: 0 2px;
}

.npp-ph-new { font-weight: 800; }

.npp-ph-dir--up .npp-ph-arrow { color: #dc2626; }
.npp-ph-dir--up .npp-ph-new   { color: #b91c1c; }
.npp-ph-dir--up {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border-color: #fecaca;
}

.npp-ph-dir--down .npp-ph-arrow { color: #059669; }
.npp-ph-dir--down .npp-ph-new   { color: #047857; }
.npp-ph-dir--down {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-color: #bbf7d0;
}

.npp-ph-dir--same .npp-ph-arrow { color: #94a3b8; }

.npp-ph-change--cost {
	font-size: 12px;
	opacity: 0.92;
}

.npp-ph-meta {
	flex: 0 0 180px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	min-width: 0;
}

.npp-ph-by {
	font-size: 12.5px;
	color: #213640;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.npp-ph-by small {
	color: #94a3b8;
	font-weight: 600;
	font-size: 10.5px;
}

.npp-ph-note {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 900px) {
	.npp-ph-row { flex-wrap: wrap; gap: 12px; }
	.npp-ph-main { flex: 1 1 100%; }
	.npp-ph-changes { flex: 1 1 100%; }
	.npp-ph-meta {
		flex: 1 1 100%;
		text-align: right;
		border-top: 1px dashed #f1ebdd;
		padding-top: 8px;
	}
}
/* =========================================================
   فاز ۶-الف: پروندهٔ سلامت
   ========================================================= */

.npp-health-section {
	margin-top: 18px;
	padding: 16px;
	background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
	border: 1px solid rgba(200, 169, 126, 0.3);
	border-radius: 12px;
}

.npp-health-title {
	font-size: 14px;
	color: #213640;
	font-weight: 800;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(200, 169, 126, 0.25);
}

.npp-health-conditions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #f1ebdd;
	border-radius: 10px;
}


/* =========================================================
   اصلاح چیدمان گرید اطلاعات پزشکی — Override
   ========================================================= */
html body .npp-wrap .npp-medical-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 14px !important;
}

html body .npp-wrap .npp-medical-grid > .npp-info-box {
	grid-column: auto / span 1 !important;
}

html body .npp-wrap .npp-medical-grid > .npp-info-box--wide {
	grid-column: auto / span 2 !important;
}

html body .npp-wrap .npp-medical-grid > .npp-info-box--alert {
	grid-column: auto / span 1 !important;
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
	border-color: #fecaca !important;
}

html body .npp-wrap .npp-medical-grid > .npp-info-box--alert .npp-info-label {
	color: #b91c1c !important;
}

html body .npp-wrap .npp-medical-grid > .npp-info-box--alert .npp-info-value {
	color: #991b1b !important;
}

@media (max-width: 900px) {
	html body .npp-wrap .npp-medical-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	html body .npp-wrap .npp-medical-grid {
		grid-template-columns: 1fr !important;
	}
	html body .npp-wrap .npp-medical-grid > .npp-info-box--wide {
		grid-column: 1 / -1 !important;
	}
}

/* =========================================================
   Add Service — Top Block
   ========================================================= */
.npp-add-service-block--top {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px dashed #e2e8f0;
}

.npp-add-service-block--top .npp-toggle-add-btn {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px dashed #94a3b8;
	border-radius: 10px;
	color: #475569;
	font-family: 'Dana', Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
}
.npp-add-service-block--top .npp-toggle-add-btn:hover {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-color: #0284c7;
	color: #0369a1;
}
.npp-add-service-block--top .npp-toggle-add-btn.is-open {
	background: #213640;
	border-color: #213640;
	color: #fff;
}
.npp-add-service-block--top .npp-toggle-add-btn.is-open:hover {
	background: #0f1f27;
}

/* Timeline Item — زیباتر */
.npp-timeline-item {
	position: relative;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-right: 3px solid #c8a97e;
	border-radius: 10px;
	margin-bottom: 8px;
	transition: box-shadow .15s ease;
}
.npp-timeline-item:hover {
	box-shadow: 0 3px 12px -6px rgba(15, 23, 42, .15);
}

.npp-timeline-item-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}
.npp-timeline-item-title {
	font-family: 'Dana', Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}
.npp-timeline-item-date {
	font-size: 12px;
	color: #64748b;
	background: #f1f5f9;
	padding: 3px 10px;
	border-radius: 99px;
	font-weight: 500;
}
.npp-timeline-item-meta {
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
}
.npp-timeline-item-meta .npp-meta-label {
	color: #94a3b8;
}
.npp-timeline-item-desc {
	font-size: 13px;
	color: #334155;
	margin-top: 6px;
	line-height: 1.7;
}
.npp-timeline-delete-btn {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	background: #fee2e2;
	color: #dc2626;
	border: 0;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s ease;
}
.npp-timeline-item:hover .npp-timeline-delete-btn {
	opacity: 1;
}
/* =========================================================
   Chronic Conditions — نسخهٔ نهایی، ساده مثل WP admin
   ========================================================= */
.npp-health-conditions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 8px 0 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.npp-health-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-family: 'Dana', Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #334155;
	cursor: pointer;
	line-height: 1.5;
	box-shadow: none;
}

.npp-health-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	min-width: 16px;
	max-width: 16px;
	margin: 0;
	padding: 0;
	accent-color: #213640;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-appearance: checkbox;
	appearance: checkbox;
	border-radius: 3px;
}

.npp-health-check span {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
	background: transparent;
	border: 0;
	line-height: 1.5;
}
/* =========================================================
   Modal Width — عرض ثابت برای جلوگیری از تغییر اندازه
   ========================================================= */
.npp-modal-content {
	width: 92vw !important;
	max-width: 880px !important;
	min-width: 320px !important;
	box-sizing: border-box !important;
}

@media (max-width: 640px) {
	.npp-modal-content {
		width: 96vw !important;
		max-width: none !important;
	}
}
/* =========================================================
   Modal Tabs — Sticky Force (روی همه والدها)
   ========================================================= */
.npp-modal-content,
.npp-modal-body,
.npp-patient-modal,
.npp-modal-tabs {
	overflow: visible !important;
}

.npp-modal-body,
.npp-patient-modal-body,
#npp-modal-body {
	overflow-y: auto !important;
	overflow-x: hidden !important;
	max-height: 80vh !important;
	position: relative !important;
}

.npp-modal-tabs {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 999 !important;
	background: #fff !important;
	isolation: isolate !important;
}
/* Force Fix — modal-content overflow */
.npp-modal-content {
	overflow: visible !important;
	max-height: none !important;
}