/* ============================================================
NFA ADMIN DASHBOARD + LOGIN — CSS
File: assets/css/nfa-admin.css
============================================================ */

/* ── Reset for full-bleed layout ── */
.nfa-admin-auth-page,
.nfa-adm-page {
	margin: 0;
	padding: 0;
	/* 	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; */
	-webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════
ADMIN LOGIN PAGE
════════════════════════════════════════ */
.nfa-admin-auth-page {
	display: flex;
	min-height: 100vh;
	background: #f0f2f5;
}

.nfa-auth-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Left: Brand panel */
.nfa-auth-panel--brand {
	background: linear-gradient(145deg, #0d2347 0%, #1a3a6b 50%, #1e4d8c 100%);
	/*     flex: 0 0 42%; */
	min-height: 100vh;
	padding: 48px;
	position: relative;
	overflow: hidden;
}

.nfa-auth-panel--brand::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

.nfa-auth-panel--brand::after {
	content: '';
	position: absolute;
	bottom: -60px;
	left: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

.nfa-auth-brand {
	max-width: 360px;
	color: #fff;
}

.nfa-auth-brand__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 60px;
}

.nfa-auth-brand__name {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.nfa-auth-brand__text h1 {
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 16px;
	letter-spacing: -0.312px;
}

.nfa-auth-brand__text p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.7;
	margin: 0 0 48px;
}

.nfa-auth-brand__stats {
	display: flex;
	gap: 32px;
}

.nfa-auth-brand__stat-num {
	display: block;
	font-size: 36px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	margin-bottom: 4px;
}

.nfa-auth-brand__stat-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-weight: 600;
}

/* Right: Form panel */
.nfa-auth-panel--form {
	background: #fff;
	/*     flex: 0 0 58%; */
	padding: 48px;
}

.nfa-auth-form-wrap {
	width: 100%;
	max-width: 420px;
}

.nfa-auth-form-head {
	margin-bottom: 32px;
}

.nfa-auth-form-head h2 {
	font-size: 28px;
	font-weight: 800;
	color: #0d2347;
	margin: 0 0 8px;
	letter-spacing: -0.312px;
}

.nfa-auth-form-head p {
	font-size: 14px;
	color: #888;
	margin: 0;
	line-height: 1.5;
}

.nfa-auth-msg {
	display: none;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13.5px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.nfa-auth-msg.msg--error {
	display: block;
	background: #fff5f5;
	border: 1px solid #feb2b2;
	color: #c53030;
}

.nfa-auth-msg.msg--success {
	display: block;
	background: #f0fff4;
	border: 1px solid #9ae6b4;
	color: #276749;
}

.nfa-auth-field {
	margin-bottom: 20px;
}

.nfa-auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 7px;
}

.nfa-auth-field__input-wrap {
	position: relative;
}

.nfa-auth-field__icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	pointer-events: none;
}

.nfa-auth-field__input {
	width: 100%;
	height: 46px;
	border: 1.5px solid #dde2ea;
	border-radius: 6px;
	padding: 0 44px;
	font-size: 14px;
	color: #333;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nfa-auth-field__input:focus {
	border-color: #1a3a6b;
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.nfa-auth-field.has-error .nfa-auth-field__input {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.nfa-auth-field__eye {
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #aaa;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}

.nfa-auth-field__eye:hover {
	color: #555;
}

.nfa-auth-field__error {
	font-size: 12px;
	color: #e53e3e;
	margin-top: 5px;
	min-height: 16px;
	display: block;
}

.nfa-auth-submit {
	width: 100%;
	height: 50px;
	background: #1a3a6b;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
	transition: background 0.2s, transform 0.1s;
}

.nfa-auth-submit:hover:not(:disabled) {
	background: #0d2347;
	transform: translateY(-1px);
}

.nfa-auth-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.nfa-auth-submit .btn-loader svg {
	animation: nfa-spin 0.8s linear infinite;
}

.nfa-auth-footer {
	margin-top: 24px;
	text-align: center;
	font-size: 13px;
}

.nfa-auth-footer a {
	color: #1a3a6b;
	text-decoration: none;
	font-weight: 600;
}

.nfa-auth-footer a:hover {
	text-decoration: underline;
}

/* ════════════════════════════════════════
ADMIN DASHBOARD
════════════════════════════════════════ */
.nfa-adm-page {
	display: flex;
	min-height: 100vh;
	background: #f4f5f7;
}

/* ── Sidebar ── */
.nfa-adm-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: #0d2347;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.nfa-adm-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 24px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nfa-adm-sidebar__brand span {
	font-size: var(--fs-20);
	font-weight: var(--fw-700);
	color: #fff;
	letter-spacing: 0.3px;
}

.nfa-adm-sidebar__nav {
	flex: 1;
	padding: 20px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nfa-adm-sidebar__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: none;
	/* 	border-radius: 6px; */
	font-size: var(--fs-18);
	font-weight: var(--fw-600);
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: all 0.2s;
	position: relative;
	background: transparent;
}

.nfa-adm-sidebar__link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.nfa-adm-sidebar__link.is-active {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-weight: 700;
}

.nfa-adm-sidebar__badge {
	margin-left: auto;
	background: #e53e3e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 1px;
	border-radius: 20px;
	min-width: 20px;
	text-align: center;
}

.nfa-adm-sidebar__user {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nfa-adm-sidebar__user-name {
	display: block;
	font-size: var(--fs-20);
	font-weight: var(--fw-600);
	color: #fff;
}

.nfa-adm-sidebar__user-role {
	display: block;
	font-size: var(--fs-16);
	color: rgba(255, 255, 255, 0.5);
	margin-top: 2px;
}

.nfa-adm-sidebar__logout {
	color: rgba(255, 255, 255, 0.5);
	background: transparent;
	border: none;
	transition: color 0.2s;
	display: flex;
	align-items: center;
}

.nfa-adm-sidebar__logout:hover {
	color: #e53e3e;
}

.nfa-admin-logout-btn.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* ── Main ── */
.nfa-adm-main {
	flex: 1;
	overflow-x: hidden;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* ── Top bar ── */
.nfa-adm-topbar {
	background: #fff;
	border-bottom: 1px solid #e8eaed;
	padding: 20px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.nfa-adm-sidebar__brand-link {
	text-decoration: none;
}

.nfa-adm-topbar__title {
	font-size: var(--fs-22);
	font-weight: var(--fw-700);
	color: #0d2347;
	margin: 0 0 4px;
	letter-spacing: -0.3px;
}

.nfa-adm-topbar__sub {
	font-size: var(--fs-14);
	color: #aaa;
	margin: 0;
}

.nfa-adm-topbar__stats {
	display: flex;
	gap: 20px;
}

.nfa-adm-stat {
	text-align: center;
	min-width: 60px;
}

.nfa-adm-stat__num {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: #0d2347;
	line-height: 1;
	margin-bottom: 3px;
}

.nfa-adm-stat__num--green {
	color: #38a169;
}

.nfa-adm-stat__num--orange {
	color: #dd6b20;
}

.nfa-adm-stat__num--blue {
	color: #3182ce;
}

.nfa-adm-stat__label {
	font-size: 11px;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
}

/* ── Content area ── */
.nfa-adm-content {
	padding: 24px 28px;
	flex: 1;
}

/* ── Filter bar ── */
.nfa-adm-filter-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.nfa-adm-search {
	flex: 1;
	min-width: 220px;
	height: 38px;
	border: 1.5px solid #dde2ea;
	border-radius: 6px;
	padding: 0 14px;
	font-size: 13.5px;
	color: #333;
	outline: none;
	background: #fff;
	transition: border-color 0.2s;
}

.nfa-adm-search:focus {
	border-color: #1a3a6b;
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}

.nfa-adm-filter-btns {
	display: flex;
	gap: 6px;
}

.nfa-adm-filter-btn {
	height: 36px;
	padding: 0 14px;
	border: 1.5px solid #dde2ea;
	border-radius: 20px;
	background: #fff;
	font-size: 12.5px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.2s;
}

.nfa-adm-filter-btn:hover,
.nfa-adm-filter-btn.is-active {
	background: #0d2347;
	border-color: #0d2347;
	color: #fff;
}

/* ── Table ── */
.nfa-adm-table-wrap {
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	overflow: hidden;
	overflow-x: auto;
}

.nfa-adm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	white-space: nowrap;
}

.nfa-adm-table th {
	background: #f8f9fb;
	padding: 11px 16px;
	text-align: left;
	font-size: 11.5px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: -0.312px;
	border-bottom: 1px solid #e8eaed;
}

.nfa-adm-table td {
	padding: 13px 16px;
	color: #444;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.nfa-adm-table tr:last-child td {
	border-bottom: none;
}

.nfa-adm-table__row:hover td {
	background: #fafbfc;
}

.nfa-adm-table__actions {
	display: flex;
	gap: 4px;
	align-items: center;
	flex-wrap: wrap;
	max-width: 320px;
}

/* ── Badges ── */
.nfa-adm-badge {
	display: inline-flex;
	align-items: center;
	padding: 10px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.nfa-adm-badge--pending {
	background: #fef3c7;
	color: #92400e;
}

.nfa-adm-badge--approved {
	background: #d1fae5;
	color: #065f46;
}

.nfa-adm-badge--rejected {
	background: #fee2e2;
	color: #991b1b;
}

.nfa-adm-badge--suspended {
	background: #fff3cd;
	color: #856404;
}

/* FEATURE: Approval vs Account status split — "Not Applicable" (account
   doesn't exist yet, application isn't approved) and "Disabled" (admin
   suspended a previously-active account) need their own distinct looks so
   they're never mistaken for "Pending"/"Rejected" application states. */
.nfa-adm-badge--neutral {
	background: #f1f5f9;
	color: #64748b;
}

.nfa-adm-badge--disabled {
	background: #e2e8f0;
	color: #334155;
}

/* ── Flag indicators (distinct from status badges — used for time-limited
   conditions like a security lockout, not for the funder's ongoing state) ── */
.nfa-adm-flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2px;
	white-space: nowrap;
	cursor: help;
}

.nfa-adm-flag--locked {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.nfa-adm-flag__icon {
	font-size: 12px;
	line-height: 1;
}

/* ── Audit action badges ── */
.nfa-audit-action--vendor_approved,
.nfa-audit-action--profile_approved {
	background: #dcfce7;
	color: #166534;
}

.nfa-audit-action--vendor_rejected,
.nfa-audit-action--profile_rejected {
	background: #fee2e2;
	color: #991b1b;
}

.nfa-audit-action--vendor_suspended,
.nfa-audit-action--profile_suspended {
	background: #fff3cd;
	color: #856404;
}

.nfa-audit-action--vendor_reactivated,
.nfa-audit-action--profile_reactivated {
	background: #d1ecf1;
	color: #0c5460;
}

.nfa-audit-action--profile_submitted {
	background: #e8eaf6;
	color: #3949ab;
}

.nfa-audit-action--state_override {
	background: #f3e5f5;
	color: #6a1b9a;
}

.nfa-audit-action--vendor_reset_to_pending {
	background: #fff3cd;
	color: #856404;
}

/* ── Buttons ── */
.nfa-adm-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	border: none;
	border-radius: 4px;
	font-size: var(--fs-14);
	font-weight: var(--fw-600);
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
	white-space: nowrap;
}

.nfa-adm-btn:hover:not(:disabled) {
	opacity: 0.85;
	transform: translateY(-1px);
}

.nfa-adm-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.nfa-adm-btn--approve {
	background: #1a3a6b;
	color: #fff;
}

.nfa-adm-btn--reject {
	background: #e53e3e;
	color: #fff;
}

.nfa-adm-btn--manage {
	background: #e5581e;
	color: #fff;
}

.nfa-adm-btn--view {
	background: #eef0f3;
	color: #444;
	border: 1px solid #dde2ea;
}

/* ── Detail rows ── */
.nfa-adm-detail-row td {
	padding: 0 !important;
	background: #f8f9fb !important;
}

.nfa-adm-detail-panel {
	padding: 16px 20px;
	border-top: 2px solid #e8eaed;
}

.nfa-adm-detail-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 20px;
	margin-bottom: 14px;
}

.nfa-adm-detail-grid>div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nfa-adm-detail-label {
	font-size: 10.5px;
	color: #aaa;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 3px;
}

.nfa-adm-detail-tags-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.nfa-adm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 5px;
}

.nfa-adm-tag {
	background: #e8edf5;
	color: #1a3a6b;
	border-radius: 8px !important;
	padding: 10px !important;
	font-size: 12px;
	font-weight: 600;
}

/* ── Empty state ── */
.nfa-adm-empty {
	text-align: center;
	padding: 60px 24px;
	color: #aaa;
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	font-size: 14px;
}

/* ════════════════════════════════════════
MODALS
════════════════════════════════════════ */
.nfa-adm-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.nfa-adm-modal.is-open {
	display: flex;
}

.nfa-adm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.nfa-adm-modal__box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 10px;
	padding: 0;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.nfa-adm-modal__box--sm {
	max-width: 500px;
}

.nfa-adm-modal__box--md {
	max-width: 700px;
	width: 94vw;
}

/* ── Lead Details popup (admin dashboard → Leads → Details) ──
   Replaces the old flat label/value list with grouped sections so an
   admin can scan a lead at a glance instead of reading a long list. */
.nfa-lead-detail__hero {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 24px;
	background: linear-gradient(135deg, #f0f5ff 0%, #f8fafc 100%);
	border-bottom: 1px solid #eef1f6;
}

.nfa-lead-detail__avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1a3a6b;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
}

.nfa-lead-detail__hero-main {
	flex: 1;
	min-width: 0;
}

.nfa-lead-detail__business {
	font-size: 16px;
	font-weight: 700;
	color: #0d2347;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nfa-lead-detail__meta {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.nfa-lead-detail__section {
	padding: 16px 24px;
	border-bottom: 1px solid #f2f4f8;
}

.nfa-lead-detail__section:last-child {
	border-bottom: none;
}

.nfa-lead-detail__section-title {
	margin: 0 0 12px;
	font-size: 11.5px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.nfa-lead-detail__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
}

.nfa-lead-detail__item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.nfa-lead-detail__item .label {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
}

.nfa-lead-detail__item .value {
	font-size: 13.5px;
	color: #0d2347;
	font-weight: 600;
	word-break: break-word;
}

.nfa-lead-detail__item .value a {
	color: #1a3a6b;
	text-decoration: none;
}

.nfa-lead-detail__item .value a:hover {
	text-decoration: underline;
}

.nfa-lead-detail__stars {
	color: #f5b301;
	font-size: 14px;
	letter-spacing: 1px;
}

.nfa-lead-detail__stars--empty {
	color: #d1d5db;
}

.nfa-lead-detail__stars-num {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
}

.nfa-lead-detail__pricing-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0;
	border-bottom: 1px dashed #eef1f6;
	font-size: 12.5px;
}

.nfa-lead-detail__pricing-row:last-child {
	border-bottom: none;
}

.nfa-lead-detail__pricing-row .plabel {
	color: #64748b;
}

.nfa-lead-detail__pricing-row .pval {
	color: #0d2347;
	font-weight: 600;
	text-align: right;
}

.nfa-lead-detail__pricing-row .pval--header {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.4px;
	color: #64748b;
}

@media only screen and (max-width: 480px) {
	.nfa-lead-detail__grid {
		grid-template-columns: 1fr;
	}

	.nfa-lead-detail__hero {
		padding: 16px;
	}

	.nfa-lead-detail__section {
		padding: 14px 16px;
	}
}

.nfa-adm-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid #f0f0f1;
}

.nfa-adm-modal__title {
	font-size: 17px;
	font-weight: var(--fw-700);
	color: #0d2347;
	margin: 0;
}

.nfa-adm-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	padding: 4px;
	display: flex;
	align-items: center;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
}

.nfa-adm-modal__close:hover {
	color: #e53e3e;
	background: #fff5f5;
}

.nfa-adm-modal__funder-info {
	padding: 14px 24px;
	background: #f8f9fb;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
}

.nfa-adm-modal__funder-info strong {
	font-size: 15px;
	color: #0d2347;
	display: block;
	margin-bottom: 4px;
}

.nfa-adm-modal__tabs {
	display: flex;
	border-bottom: 1px solid #f0f0f1;
}

.nfa-adm-modal__tab {
	flex: 1;
	padding: 12px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 13.5px;
	font-weight: 600;
	color: #888;
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: -1px;
}

.nfa-adm-modal__tab.is-active {
	color: #0d2347;
	border-bottom-color: #1a3a6b;
}

.nfa-adm-modal__tab-content {
	display: none;
	padding: 20px 24px;
}

.nfa-adm-modal__tab-content.is-active {
	display: block;
}

.nfa-adm-modal__desc {
	padding: 20px 24px;
	font-size: var(--fs-14);
	color: #555;
	margin: 0;
}

.nfa-adm-modal__msg {
	display: none;
	padding: 10px 14px;
	border-radius: 5px;
	font-size: 13px;
	margin-bottom: 14px;
	line-height: 1.5;
}

.nfa-adm-modal__msg.msg--error {
	display: block;
	background: #fff5f5;
	border: 1px solid #feb2b2;
	color: #c53030;
}

.nfa-adm-modal__msg.msg--success {
	display: block;
	background: #f0fff4;
	border: 1px solid #9ae6b4;
	color: #276749;
}

.nfa-adm-mfield {
	margin-top: 20px;
	margin-bottom: 20px;
}

.nfa-adm-mfield label {
	display: block;
	font-size: var(--fs-14);
	font-weight: var(--fw-600);
	color: #333;
	margin-bottom: 6px;
}

.nfa-adm-minput {
	width: 100%;
	/* 	height: 40px; */
	border: 1.5px solid #dde2ea;
	border-radius: 5px;
	padding: 14px 12px !important;
	font-size: var(--fs-14) !important;
	color: #333;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nfa-adm-minput:focus {
	border-color: #1a3a6b;
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.nfa-adm-minput-wrap {
	position: relative;
}

.nfa-adm-minput-wrap .nfa-adm-minput {
	padding-right: 40px;
}

.nfa-adm-minput-eye {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #aaa;
	display: flex;
	align-items: center;
}

/* Generic password show/hide wrapper — used anywhere a plain inline-styled
   password field needs a toggle (Create/Edit NFA Admin forms) without
   depending on the .nfa-adm-minput modal input styling. */
.nfa-pw-wrap {
	position: relative;
}

.nfa-pw-wrap input {
	padding-right: 42px !important;
}

.nfa-pw-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #999;
	display: flex;
	align-items: center;
}

.nfa-pw-toggle:hover {
	color: #555;
}

/* Admin "Manage Service Rating" star picker — mirrors the star input
   customers see, so admins can click stars instead of only typing a
   number. Supports half-stars via left/right click zones.
   Technique: an empty star sits behind a clipped filled star; the
   filled star's inner glyph has a FIXED width equal to the button so
   it doesn't re-center as the clip width shrinks — only the visible
   slice (0/50/100%) changes, which is what makes half-stars render
   correctly instead of just scaling the whole glyph down. */
.nfa-adm-star-picker {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nfa-adm-star-picker__star {
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 28px;
	height: 28px;
	line-height: 0;
}

.nfa-adm-star-picker__star .empty,
.nfa-adm-star-picker__star .fill {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.nfa-adm-star-picker__star .empty {
	justify-content: center;
	font-size: 26px;
	color: #d1d5db;
}

.nfa-adm-star-picker__star .fill {
	width: 0%;
	overflow: hidden;
	justify-content: flex-start;
}

.nfa-adm-star-picker__star .fill .fill-inner {
	width: 28px;
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	font-size: 26px;
	color: #00D743;
}

.nfa-adm-star-picker__value {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	min-width: 34px;
}

.nfa-adm-mtextarea {
	height: auto !important;
	resize: vertical;
	padding: 10px 12px;
	font-family: inherit;
	line-height: 1.5;
}

.nfa-adm-merror {
	font-size: 12px;
	color: #e53e3e;
	margin-top: 4px;
	display: block;
	min-height: 14px;
}

.nfa-adm-mhint {
	font-size: 11.5px;
	color: #aaa;
	margin-top: 10px;
	display: block;
	line-height: 1.5;
}

.nfa-adm-mfield.has-error .nfa-adm-minput {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Password strength bar */
.nfa-adm-pass-strength {
	height: 4px;
	border-radius: 4px;
	margin-top: 8px;
	background: #eee;
	position: relative;
	overflow: hidden;
	display: none;
}

.nfa-adm-pass-strength::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	border-radius: 4px;
	transition: width 0.3s, background 0.3s;
}

.nfa-adm-pass-strength[data-strength="weak"]::after {
	width: 30%;
	background: #e53e3e;
}

.nfa-adm-pass-strength[data-strength="fair"]::after {
	width: 60%;
	background: #dd6b20;
}

.nfa-adm-pass-strength[data-strength="strong"]::after {
	width: 100%;
	background: #38a169;
}

.nfa-adm-modal__save {
	width: 100%;
	height: 42px;
	background: #1a3a6b;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s;
	margin-top: 4px;
}

.nfa-adm-modal__save:hover:not(:disabled) {
	background: #0d2347;
}

.nfa-adm-modal__save:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.nfa-adm-modal__save--red {
	background: #e53e3e;
}

.nfa-adm-modal__save--red:hover:not(:disabled) {
	background: #c53030;
}

.nfa-adm-modal__save .btn-loader svg {
	animation: nfa-spin 0.8s linear infinite;
}

.nfa-adm-modal__actions {
	display: flex;
	gap: 10px;
	padding: 0 24px 20px;
}

.nfa-adm-modal__actions .nfa-adm-btn {
	flex: 0 0 auto;
	padding: 12px 18px;
	font-size: var(--fs-14);
}

.nfa-adm-modal__actions .nfa-adm-modal__save {
	flex: 1;
	/* 	height: 38px; */
	margin: 0;
}

select.nfa-adm-select {
	-webkit-appearance: none;
	appearance: none;

	padding: 10px 40px 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	background-color: #fff;

	line-height: 1.4;
	/*     min-height: 40px; */

	/* custom arrow */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
}

select.dt-input {
	-webkit-appearance: none;
	appearance: none;
	min-width: 50px;

	padding: 10px 40px 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	background-color: #fff;

	line-height: 1.4;
	/*     min-height: 40px; */

	/* custom arrow */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 14px;
}

/* ── Spin ── */
@keyframes nfa-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.req {
	color: #e53e3e;
}

/* ──────────────────────────────────────────────────────────────
B) NFA ADMIN DASHBOARD — State Override Modal
──────────────────────────────────────────────────────────────── */

/* Wider modal box for state grid */
.nfa-adm-modal__box--lg {
	max-width: 780px;
	width: 94vw;
}

/* Legend */
.nfa-adm-state-legend {
	display: flex;
	gap: 12px;
	padding: 10px 24px;
	border-bottom: 1px solid #f0f0f0;
	flex-wrap: wrap;
}

.nfa-adm-state-legend__item {
	font-size: 11px;
	font-weight: 600;
	padding: 10px;
	border-radius: 12px;
}

.nfa-adm-state-legend__item--active {
	background: #e8f4fd;
	color: #1a3a6b;
}

.nfa-adm-state-legend__item--forced {
	background: #dcfce7;
	color: #166534;
}

.nfa-adm-state-legend__item--blocked {
	background: #fee2e2;
	color: #991b1b;
}

.nfa-adm-state-note {
	font-size: 12px;
	color: #666;
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	padding: 8px 12px;
	margin: 12px 24px;
	border-radius: 0 4px 4px 0;
}

/* National banner */
.nfa-adm-state-national-badge {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 13px;
	padding: 8px 16px;
	margin: 0 24px 12px;
	border-radius: 6px;
}

/* State grid select header */
.nfa-adm-state-select-header {
	display: flex;
	align-items: center;
	padding: 0 0 10px;
	gap: 8px;
}

.nfa-adm-state-sel-btn {
	padding: 12px 25px;
	border-radius: 4px;
	border: 1px solid #1a3a6b;
	background: transparent;
	color: #1a3a6b;
	font-size: var(--fs-14);
	/* 	font-weight: 600; */
	cursor: pointer;
}

.nfa-adm-state-sel-btn:hover {
	background: #1a3a6b;
	color: #fff;
}

/* Admin state grid */
.nfa-adm-state-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 6px;
	max-height: 360px;
	overflow-y: auto;
	padding: 12px 24px;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

/* Individual admin state item */
.nfa-adm-state-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	color: #333;
	transition: background .1s;
	position: relative;
}

.nfa-adm-state-item:hover {
	background: #f0f4ff;
}

.nfa-adm-state-item--conflict {
	background: #fffbeb;
}

.nfa-adm-state-item input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: #1a3a6b;
	cursor: pointer;
	flex-shrink: 0;
}

.nfa-adm-state-item__name {
	flex: 1;
	line-height: 1.3;
}

.nfa-adm-state-item__conflict {
	color: #f59e0b;
	font-size: 11px;
	margin-left: auto;
}

/* Admin table: states button */
.nfa-adm-btn--state {
	background: #6b46c1;
	color: #fff;
}

.nfa-adm-btn--state:hover {
	background: #553c9a;
}

/* About page: state dropdown integration */
.about-banner__select--state {
	/* Inherits from .about-banner__select — add any state-specific overrides here */
	min-width: 120px;
}

/* About page state hint message */
.about-banner__state-hint {
	color: #ffcc00;
	font-size: 13px;
	margin-top: 8px;
	font-weight: 500;
}

/* Funder registration: state section (if added later) */
.funder-reg-state-wrap {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #e0e5ec;
	border-radius: 6px;
	padding: 12px;
}

.nfa-adm-datatable td span {
	font-size: 12px !important;
}

/* Compact action buttons inside DataTables */
.nfa-adm-datatable .nfa-adm-table__actions .nfa-adm-btn {
	padding: 5px 9px;
	font-size: 11.5px;
	border-radius: 4px;
}

.account-adm-title {
	font-size: 12px;
	color: #888;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 5px;
}

.account-adm-detail {
	font-size: var(--fs-14);
	color: #333;
	word-break: break-word;
}

.account-adm-industries {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.account-adm-industries-type {
	background: #e8edf5;
	color: #1a3a6b;
	border-radius: 3px;
	padding: 8px;
	font-size: 11px;
}

.account-adm-funding-type {
	font-size: 11px;
	color: #888;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 6px
}

.nfa-adm-modal-details {
	padding: 20px 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
	max-height: 70vh;
	overflow-y: auto;
}

.nfa-adm-manage-tab {
	margin-top: 16px;
	font-size: 12px;
	color: #aaa;
}

.nfa-adm-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.nfa-adm-industry-edit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* ── Mobile Header & Sidebar Toggle ── */
.nfa-adm-mobile-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	background: #1a3a6b;
	padding: 0 16px;
	height: 56px;
	position: sticky;
	top: 0;
	z-index: 200;
	flex-shrink: 0;
	width: 100%;
}

.nfa-adm-mobile-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nfa-adm-mobile-header__logo {
	height: 32px;
	width: auto;
}

.nfa-adm-mobile-header__name {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.nfa-adm-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 6px;
}

.nfa-adm-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* ── Sidebar Overlay ── */
.nfa-adm-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.nfa-adm-sidebar-overlay.is-open {
	display: block;
}

.nfa-adm-mobile-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.custom-select-wrapper {
	position: relative;
	display: inline-block;
}

.custom-select-wrapper select {
	padding: 15px 45px 15px 15px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	font-size: var(--fs-16) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background: #fff !important;
	cursor: pointer !important;
	min-width: 200px !important;
	background-image: none !important;
}

/* custom arrow */
.custom-select-wrapper::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 15px;
	width: 10px;
	height: 10px;

	border-right: 2px solid #555;
	border-bottom: 2px solid #555;

	transform: translateY(-70%) rotate(45deg);
	transition: 0.3s ease;

	pointer-events: none;
}

/* rotate arrow */
.custom-select-wrapper.active::after {
	transform: translateY(-30%) rotate(-135deg);
}

.nfa-adm-industry-edit {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.nfa-adm-card {
	padding: 20px 20px;
}

.nfa-adm-filter .nfa-adm-btn--approve {
	font-size: var(--fs-16);
}
.widefat { width:60% !important; text-align:center; }


/* ── Responsive ── */
@media only screen and (max-width:1599px) {
	.nfa-adm-sidebar {
		width: 285px;
	}
}

@media only screen and (max-width:1366px) {
	.nfa-adm-sidebar {
		width: 260px;
	}
}

@media only screen and (max-width:1199px) {
	.nfa-adm-sidebar {
		width: 240px;
	}
}

@media only screen and (max-width:1024px) {
	.nfa-adm-industry-edit {
		grid-template-columns: 1fr;
	}

	#dashIndustriesList {
		margin-bottom: 60px;
	}

	/* Show mobile header */
	.nfa-adm-mobile-header {
		display: flex;
	}

	/* Stack page vertically */
	.nfa-adm-page {
		flex-direction: column;
	}

	/* Sidebar: hidden off-screen by default */
	.nfa-adm-sidebar {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		height: 100% !important;
		z-index: 999 !important;
		transform: translateX(-100%) !important;
		transition: transform 0.28s ease !important;
		/* Keep the same width it already has on desktop */
	}

	/* Sidebar: slide in when open */
	.nfa-adm-sidebar.is-open {
		transform: translateX(0) !important;
	}

	/* Main area takes full width */
	.nfa-adm-main {
		width: 100% !important;
		min-width: 0 !important;
	}

	.nfa-adm-sidebar__brand {
		display: none;
	}

	body.nfa-adm-body {
		padding-top: 56px !important;
		margin: 0 !important;
		overflow-x: hidden !important;
	}
}

@media (min-width: 1025px) {
	.nfa-adm-sidebar {
		transform: translateX(0) !important;
		/* Always visible */
		position: relative;
		width: 250px;
		/* your sidebar width */
	}

	.nfa-adm-main {
		margin-left: 260px;
		/* push main content to the right */
		width: calc(100% - 260px);
	}

	.nfa-adm-mobile-header {
		display: none;
		/* hide mobile header on desktop */
	}
}

@media (max-width: 1024px) {
	.nfa-auth-panel--brand {
		display: none;
	}

	.nfa-auth-panel--form {
		flex: 1;
	}

	.nfa-adm-sidebar {
		width: 60px;
		overflow: visible;
	}

	.nfa-adm-sidebar__brand span,
	.nfa-adm-sidebar__link span,
	.nfa-adm-sidebar__user-info {
		display: none;
	}

	.nfa-adm-sidebar__user .nfa-adm-sidebar__logout svg {
		height: 20px;
		width: 20px;
	}

	.nfa-adm-sidebar__link {
		justify-content: center;
		padding: 10px;
	}

	.nfa-adm-detail-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.nfa-adm-detail-tags-row {
		grid-template-columns: 1fr;
	}

	.adm-custom-heading {
		margin-top: 20px;
	}
	.nfa-adm-sidebar__nav{
		padding-top:65px !important;
	}

}

@media only screen and (max-width:767px) {
	.nfa-adm-modal__box {
		margin-left: 20px;
		margin-right: 20px;
	}

	.nfa-adm-btn {
		padding: 6px 9px;
	}

	.nfa-adm-badge {
		padding: 6px 10px;
	}

	.nfa-adm-permission-main {
		flex-direction: column;
	}

	.nfa-adm-industry-tabs {
		padding-left: 15px;
		padding-right: 15px;
	}

	.nfa-adm-banners {
		grid-template-columns: 1fr !important;
		align-items: end;
	}

	
}

@media (max-width: 640px) {
	.nfa-adm-content {
		padding: 16px;
	}

	.nfa-adm-topbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.nfa-adm-topbar__stats {
		flex-wrap: wrap;
		gap: 12px;
	}

	.nfa-adm-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.nfa-adm-filter-btns {
		flex-wrap: wrap;
	}

	.nfa-adm-modal__box {
		max-width: calc(100vw - 32px);
		max-height: 85vh;
		margin: 0 16px;
	}

	.nfa-adm-stat {
		text-align: left;
	}
}

@media only screen and (max-width:600px) {
	.nfa-adm-modal-details {
		grid-template-columns: 1fr !important;
	}

	/* 	.nfa-adm-content{
	padding-right: 10px !important;
    padding-left: 10px !important;
	} */
}

@media only screen and (max-width:500px) {
	#leadsFilterForm {
		flex-direction: column;
	}

	.nfa-adm-filter {
		width: 100%;
	}

	.nfa-adm-filter .custom-select-wrapper select {
		width: 100%;
	}

	.nfa-adm-filter .nfa-adm-btn--approve {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.ind-removable-row {
		display: flex !important;
		flex-direction: column;
		justify-content: space-between;
		align-items: stretch !important;
		gap: 10px;
		position: relative;
		padding: 14px;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		background: #fff;
	}

	.ind-removable-row input {
		width: 100%;
		box-sizing: border-box;
	}

	.ind-remove-row {
		position: absolute;
		top: 8px;
		right: 8px;

		/*         width:28px;
        height:28px; */

		display: flex;
		align-items: center;
		justify-content: center;

		padding: 0 5px !important;

		/*         border-radius:50% !important; */

		font-size: 14px !important;
		font-weight: 700;

		background: #fee2e2 !important;
		border: 1px solid #fca5a5 !important;
		color: #991b1b !important;
	}
}

@media only screen and (max-width:479px) {
	.nfa-adm-stat {
		width: 45%;
	}
}

@media only screen and (max-width: 425px) {
    .nfa-adm-stat {
        width: 38%;
		min-width:unset;
    }
}

@media only screen and (max-width: 320px) {
    .nfa-adm-stat {
        width: 35%;
		min-width:unset;
    }
}



/* ════════════════════════════════════════════════════════════
   PERMISSIONS SECTION
   ════════════════════════════════════════════════════════════ */

.nfa-adm-perm-card {
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.nfa-adm-perm-header {
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f4f8;
}

.nfa-adm-perm-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: #1a2f4e;
	letter-spacing: -.3px;
}

.nfa-adm-perm-subtitle {
	margin: 0;
	font-size: 13px;
	color: #8a9ab5;
}

.nfa-adm-perm-success {
	margin-bottom: 18px;
	padding: 11px 16px;
	background: #f0fff4;
	border: 1px solid #9ae6b4;
	border-radius: 8px;
	font-size: 13px;
	color: #276749;
	font-weight: 500;
}

.nfa-adm-perm-empty {
	padding: 20px;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 8px;
	font-size: 13px;
	color: #92400e;
}

/* Two-column layout: user list | capability form */
.nfa-adm-perm-layout {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 24px;
	align-items: start;
}

/* ── Left column: user list ── */
.nfa-adm-perm-users {
	border: 1px solid #e8edf2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.nfa-adm-perm-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border-bottom: 1px solid #f0f4f8;
	text-decoration: none;
	color: #374151;
	background: #fff;
	transition: background .15s, color .15s;
}

.nfa-adm-perm-user:last-child {
	border-bottom: none;
}

.nfa-adm-perm-user:hover {
	background: #f5f8ff;
	color: #1a3a6b;
}

.nfa-adm-perm-user.is-active {
	background: #eef3ff;
	color: #1a3a6b;
	border-left: 3px solid #1a3a6b;
}

.nfa-adm-perm-user__avatar {
	border-radius: 50%;
	flex-shrink: 0;
	display: block;
}

.nfa-adm-perm-user__info {
	min-width: 0;
}

.nfa-adm-perm-user__name {
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nfa-adm-perm-user__role {
	font-size: 11px;
	color: #8a9ab5;
	margin-top: 2px;
}

/* ── Right column: form ── */
.nfa-adm-perm-form-wrap {
	background: #fff;
}

.nfa-adm-perm-form-title {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 700;
	color: #1a2f4e;
}

/* Capability list */
.nfa-adm-perm-caps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.nfa-adm-perm-cap {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid #e8edf2;
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s, background .15s, box-shadow .15s;
}

.nfa-adm-perm-cap:hover {
	border-color: #a3bffa;
	background: #fafcff;
	box-shadow: 0 2px 8px rgba(26, 58, 107, .06);
}

.nfa-adm-perm-cap.is-granted {
	border-color: #93c5fd;
	background: #eff6ff;
}

.nfa-adm-perm-cap__cb {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #1a3a6b;
	cursor: pointer;
}

.nfa-adm-perm-cap__text {
	flex: 1;
	min-width: 0;
}

.nfa-adm-perm-cap__label {
	font-weight: 600;
	font-size: 13px;
	color: #1a2f4e;
	margin-bottom: 3px;
}

.nfa-adm-perm-cap__desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
}

/* Save button */
.nfa-adm-perm-save-btn {
	padding: 11px 28px !important;
	font-size: 14px !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.nfa-adm-perm-layout {
		grid-template-columns: 1fr;
	}

	.nfa-adm-perm-users {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0;
		border-radius: 10px;
	}

	.nfa-adm-perm-user {
		flex: 1 1 160px;
		border-bottom: none;
		border-right: 1px solid #f0f4f8;
		padding: 10px 12px;
	}

	.nfa-adm-perm-user:last-child {
		border-right: none;
	}

	.nfa-adm-perm-card {
		padding: 20px 16px;
	}
}

/* ════════════════════════════════════════
   ADMIN PANEL DESIGN IMPROVEMENTS
   ════════════════════════════════════════ */

/* Topbar stats: better visual separation */
.nfa-adm-topbar__stats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.nfa-adm-stat {
	background: #f8f9fb;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	padding: 10px 16px;
	min-width: 70px;
	text-align: center;
}

.nfa-adm-stat__num {
	font-size: 22px;
}

/* Sidebar link hover animation */
.nfa-adm-sidebar__link {
	border-radius: 6px !important;
	margin: 1px 0 !important;
	transition: background 0.15s, color 0.15s, padding-left 0.15s !important;
}

.nfa-adm-sidebar__link.is-active {
	background: rgba(255, 255, 255, 0.18) !important;
	border-left: 3px solid #4a90d9 !important;
}

/* Table: header uppercase caps improved */
.nfa-adm-table th,
.nfa-adm-datatable th {
	background: #f0f4fa !important;
	color: #1a3a6b !important;
	font-size: 11px !important;
	letter-spacing: 0.8px !important;
}

/* Topbar cleaner */
.nfa-adm-topbar {
	background: #fff;
	border-bottom: 2px solid #e8eaed;
	padding: 16px 28px;
}

.nfa-adm-topbar__title {
	font-size: 20px !important;
}

/* Improved action buttons - compact */
.nfa-adm-datatable .nfa-adm-btn {
	padding: 6px 10px !important;
	font-size: 12px !important;
	border-radius: 5px !important;
	line-height: 1.2 !important;
}

/* Card view sections */
.nfa-adm-section-card {
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

/* Industry content editor improvements */
.nfa-ind-section {
	transition: box-shadow 0.15s;
}

.nfa-ind-section:focus-within {
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}

/* Better filter form */
#leadsFilterForm {
	border-radius: 10px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Rich text area in industry editor */
.ind-rich-textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px;
	border: 1.5px solid #e2e8f0;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.6;
	resize: vertical;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ind-rich-textarea:focus {
	border-color: #1a3a6b;
	box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}

/* Section header in industry editor */
.ind-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f0f4fa;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
	font-weight: 600;
	font-size: 13px;
	color: #1a3a6b;
	cursor: pointer;
	user-select: none;
}

.ind-section-header .ind-section-toggle {
	color: #aaa;
	font-size: 16px;
	transition: transform 0.2s;
}

.ind-section-body {
	padding: 4px 0;
}

/* Removable row (resource links, paragraphs) */
/* .ind-removable-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
} */

.ind-remove-row {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	border-radius: 5px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

.ind-remove-row:hover {
	background: #fecaca;
}

/* Add buttons */
.ind-add-btn {
	background: #eff6ff;
	border: 1px dashed #93c5fd;
	color: #1a3a6b;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.ind-add-btn:hover {
	background: #dbeafe;
}

/* Success/error messages in industry editor */
#indContentMsg {
	transition: all 0.2s;
}

/* ══════════════════════════════════════════════════════════════
   NFA RICH EDITOR — Admin Dashboard Industry Content Editor
   Applied to contenteditable divs used as WYSIWYG replacements
══════════════════════════════════════════════════════════════ */

.nfa-rich-editor-wrap {
	position: relative;
	width: 100%;
}

.nfa-rich-editor {
	min-height: 120px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	line-height: 1.65;
	color: #111;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	width: 100%;
	overflow-y: auto;
	cursor: text;
	transition: border-color .15s;
	resize: vertical;
	overflow-y: auto;
}

.nfa-rich-editor:focus {
	border-color: #1a3a6b;
	box-shadow: 0 0 0 2px rgba(26, 58, 107, .12);
}

.nfa-rich-editor p {
	margin: 0 0 .6em;
}

.nfa-rich-editor p:last-child {
	margin-bottom: 0;
}

/* FAQ answer rich editor — slightly smaller */
.ind-faq-a.nfa-rich-editor {
	min-height: 80px;
	font-size: 13px;
}

/* ── Industry panel full-width fix ── */
#indPanelContent,
#indPanelNames,
#indPanelDynopts {
	width: 100%;
	box-sizing: border-box;
	max-width: 100%;
}

#indDynamicFields {
	width: 100%;
}

#indDynamicFields [data-field] {
	width: 100%;
	box-sizing: border-box;
}

/* ── Industry content editor card widths ── */
.nfa-ind-section {
	width: 100%;
	box-sizing: border-box;
}

/* ── Make the whole industries tab full width ── */
#nfaIndustriesTab {
	width: 100%;
}

/* ── Manage Industries — two-column layout fix ── */
.nfa-adm-industry-edit>div {
	width: 100%;
	min-width: 0;
}
#vcListView,
#vcFormView {
	padding:24px;
}
#vcListView .nfa-adm-modal__desc{
	padding:0 !important;
}
#vcFormView .nfa-adm-modal__actions{
	padding:0 !important;
}
.wp-core-ui.wp-editor-wrap{
	width:100% !important;
}


/* ══════════════════════════════════════════════════════════════
   INDUSTRY MANAGE PANEL — two-column grid for Add/List columns
══════════════════════════════════════════════════════════════ */

/* The Names panel inside admin dashboard uses a two-column layout */
#indPanelNames .nfa-adm-industry-edit {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 24px !important;
	flex-direction: unset !important;
	width: 100% !important;
}

/* On smaller screens, stack them */
@media only screen and (max-width: 900px) {
	#indPanelNames .nfa-adm-industry-edit {
		grid-template-columns: 1fr !important;
	}
}

@media only screen and (max-width:767px){
	#vcListView,
	#vcFormView {
		padding:15px;
	}
}

/* Content panel - single column full width */
#indPanelContent .nfa-adm-industry-edit {
	display: block !important;
	width: 100% !important;
}

/* Fix rich editor focus ring */
.nfa-rich-editor:focus {
	border-color: #1a3a6b !important;
	box-shadow: 0 0 0 2px rgba(26, 58, 107, .1) !important;
}

/* Enter hint text */
.nfa-rich-editor+p[style*="text-align:right"] {
	font-size: 11px;
	color: #aaa;
	margin: 3px 0 0;
}
/* ── Fix 2: Consistent button colours matching NFA custom theme ── */

/* Contacts — teal/indigo */
.nfa-adm-btn--contacts {
	background: #0d9488;
	color: #fff;
}
.nfa-adm-btn--contacts:hover {
	background: #0f766e;
}

/* Audit Log — neutral slate */
.nfa-adm-btn--audit {
	background: #475569;
	color: #fff;
}
.nfa-adm-btn--audit:hover {
	background: #334155;
}

/* Restore / Re-enable — green */
.nfa-adm-btn--restore {
	background: #16a34a;
	color: #fff;
}
.nfa-adm-btn--restore:hover {
	background: #15803d;
}

/* Suspend / Disable — amber */
.nfa-adm-btn--suspend {
	background: #d97706;
	color: #fff;
}
.nfa-adm-btn--suspend:hover {
	background: #b45309;
}

/* Override inline bg on Restore/Disable/Delete so the classes win */
.nfa-adm-btn--restore[style],
.nfa-adm-btn--suspend[style] {
	background: unset !important;
	color: unset !important;
}

/* Lead Details "Details" button in the Leads table (UI/UX addition) */
.nfa-adm-lead-details-btn {
	background: #0d1f3c;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.nfa-adm-lead-details-btn:hover {
	background: #16305e;
}