/* ==========================================================================
   BD Leads CRM — Visual Design System
   Drop-in replacement: same class names/markup as before, new look on top.
   All original accessibility guarantees are preserved and extended:
   - visible focus rings on every focusable element
   - 44px minimum touch targets
   - screen-reader-text utility
   - no JS required for any core function; JS only adds nice-to-haves
   ========================================================================== */

@import url( "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" );

.bdcrm-app,
.bdcrm-app *,
.bdcrm-app *::before,
.bdcrm-app *::after,
.bdcrm-header,
.bdcrm-header *,
.bdcrm-header *::before,
.bdcrm-header *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------
   Design tokens — Modern Aesthetic Monochrome (Black, White, Neutral Greys)
   -------------------------------------------------------------------- */
.bdcrm-app,
.bdcrm-header {
	--bdcrm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Monochromatic Primary & Accents */
	--bdcrm-primary: #18181b;
	--bdcrm-primary-dark: #09090b;
	--bdcrm-primary-light: #f4f4f5;
	--bdcrm-primary-ring: rgba(24, 24, 27, 0.12);

	/* Typography & Surface Grays */
	--bdcrm-ink: #09090b;
	--bdcrm-ink-soft: #52525b;
	--bdcrm-muted: #71717a;
	--bdcrm-border: #e4e4e7;
	--bdcrm-border-soft: #f4f4f5;
	--bdcrm-surface: #ffffff;
	--bdcrm-surface-alt: #fafafa;
	--bdcrm-page-bg: #f8f9fa;

	/* Soft Status Accents */
	--bdcrm-success: #166534;
	--bdcrm-success-bg: #f0fdf4;
	--bdcrm-danger: #991b1b;
	--bdcrm-danger-bg: #fef2f2;
	--bdcrm-warning-bg: #fffbeb;
	--bdcrm-warning-ink: #92400e;

	--bdcrm-radius-sm: 8px;
	--bdcrm-radius: 12px;
	--bdcrm-radius-lg: 16px;

	--bdcrm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--bdcrm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--bdcrm-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

	--bdcrm-focus: #18181b;
}

@media ( prefers-reduced-motion: reduce ) {
	.bdcrm-app *,
	.bdcrm-header * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

body:has( .bdcrm-app ) {
	background: var(--bdcrm-page-bg);
}

.bdcrm-app {
	max-width: 1080px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
	font-family: var(--bdcrm-font);
	color: var(--bdcrm-ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.bdcrm-app img,
.bdcrm-app svg {
	max-width: 100%;
}

.bdcrm-app h1 {
	font-size: 1.85rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0.2em 0 0.75em;
	color: #09090b;
}

.bdcrm-app h2 {
	font-size: 1.12rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	margin: 2.25em 0 0.85em;
	color: #18181b;
}

.bdcrm-app h2:first-of-type {
	margin-top: 1.4em;
}

.bdcrm-app > p > a:not(.bdcrm-button):not(.bdcrm-btn-subtle) {
	color: #52525b;
	font-weight: 500;
	font-size: 0.92rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	transition: color 0.12s ease;
}

.bdcrm-app > p > a:not(.bdcrm-button):not(.bdcrm-btn-subtle):hover {
	color: #09090b;
	text-decoration: underline;
}

/* --------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------- */
.bdcrm-app th,
.bdcrm-app td {
	text-align: left;
	padding: 0.85em 1em;
	border-bottom: 1px solid var(--bdcrm-border-soft);
}

.bdcrm-app td a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	color: #09090b;
	font-weight: 600;
	text-decoration: none;
}

.bdcrm-app td a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------
   Status text
   -------------------------------------------------------------------- */
.bdcrm-app .bdcrm-error {
	color: var(--bdcrm-danger);
	font-weight: 700;
}

.bdcrm-app .bdcrm-warning {
	display: inline-block;
	color: var(--bdcrm-warning-ink);
	background: var(--bdcrm-warning-bg);
	border: 1px solid #f0d3a3;
	border-radius: var(--bdcrm-radius-sm);
	padding: 0.6em 0.9em;
	font-weight: 600;
}

.bdcrm-app .bdcrm-notice {
	display: inline-block;
	color: var(--bdcrm-success);
	background: var(--bdcrm-success-bg);
	border: 1px solid #b7e6c9;
	border-radius: var(--bdcrm-radius-sm);
	padding: 0.6em 0.9em;
	font-weight: 700;
}

.bdcrm-app .bdcrm-empty {
	color: var(--bdcrm-muted);
	font-style: normal;
	margin: 0;
	text-align: center;
}

/* Decorative icons used inline in the nav, on buttons, and in empty
   states. `currentColor` means they inherit whatever text color they
   sit next to, so they never need per-context overrides. */
.bdcrm-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	color: currentColor;
}

.bdcrm-app .bdcrm-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75em;
	background: var(--bdcrm-surface-alt);
	border: 1px dashed var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	padding: 3em 1.5em;
	text-align: center;
}

.bdcrm-app .bdcrm-empty-state .bdcrm-icon {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--bdcrm-muted);
	opacity: 0.55;
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.bdcrm-app .bdcrm-button,
.bdcrm-app button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	padding: 0.65em 1.35em;
	background: #18181b;
	color: #ffffff;
	border: 1px solid #18181b;
	border-radius: var(--bdcrm-radius-sm);
	font-family: inherit;
	font-weight: 500;
	font-size: 0.92rem;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--bdcrm-shadow-sm);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.bdcrm-app .bdcrm-button:hover,
.bdcrm-app button:hover {
	background: #27272a;
	border-color: #27272a;
	box-shadow: var(--bdcrm-shadow);
	transform: translateY(-1px);
}

.bdcrm-app .bdcrm-button:active,
.bdcrm-app button:active {
	transform: translateY(0);
	background: #09090b;
}

.bdcrm-app button[disabled] {
	background: #e4e4e7;
	border-color: #e4e4e7;
	color: #a1a1aa;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.bdcrm-app .bdcrm-btn-subtle {
	background: #ffffff;
	color: var(--bdcrm-ink-soft);
	border: 1px solid var(--bdcrm-border);
	font-size: 0.85em;
	font-weight: 500;
	padding: 0.5em 1em;
	box-shadow: var(--bdcrm-shadow-sm);
}

.bdcrm-app .bdcrm-btn-subtle:hover {
	color: var(--bdcrm-danger);
	border-color: #fca5a5;
	background: var(--bdcrm-danger-bg);
	box-shadow: none;
	transform: none;
}

.bdcrm-app .bdcrm-btn-subtle[disabled] {
	background: #f4f4f5;
	color: #a1a1aa;
	border-color: var(--bdcrm-border);
}

/* --------------------------------------------------------------------
   Badges (stage pipeline colors — minimal modern aesthetic with high contrast)
   -------------------------------------------------------------------- */
.bdcrm-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	font-size: 0.74em;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #27272a;
	background: #f4f4f5;
	border: 1px solid #e4e4e7;
}

.bdcrm-badge-new { background: #f4f4f5; color: #52525b; border-color: #e4e4e7; }
.bdcrm-badge-contacted { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.bdcrm-badge-meeting { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.bdcrm-badge-proposal { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.bdcrm-badge-interested { background: #fdf2f8; color: #9d174d; border-color: #fbcfe8; }
.bdcrm-badge-onboarded { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* --------------------------------------------------------------------
   Stage stepper
   -------------------------------------------------------------------- */
.bdcrm-stepper {
	display: flex;
	flex-wrap: wrap;
	border: none;
	margin: 0 0 1.25em;
	padding: 0;
	gap: 0.5em;
}

.bdcrm-stepper .bdcrm-step {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
	padding: 0.4em 1em;
	background: var(--bdcrm-surface);
	border: 1px solid var(--bdcrm-border);
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--bdcrm-ink-soft);
	cursor: pointer;
	position: relative;
	box-shadow: var(--bdcrm-shadow-sm);
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.bdcrm-stepper .bdcrm-step:hover {
	border-color: #a1a1aa;
	background: #f4f4f5;
}

.bdcrm-stepper .bdcrm-step input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 40px;
	height: 40px;
	margin: 0;
	cursor: pointer;
}

.bdcrm-stepper .bdcrm-step input[type="radio"]:focus-visible ~ .bdcrm-step-label,
.bdcrm-stepper .bdcrm-step input[type="radio"]:focus ~ .bdcrm-step-label {
	outline: 2px solid var(--bdcrm-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

.bdcrm-stepper .is-complete {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.bdcrm-stepper .is-current {
	background: #18181b;
	border-color: #18181b;
	color: #ffffff;
	font-weight: 600;
	box-shadow: var(--bdcrm-shadow);
}

/* --------------------------------------------------------------------
   Stage filter tabs
   -------------------------------------------------------------------- */
.bdcrm-stage-tabs {
	display: flex;
	gap: 0.35em;
	margin-bottom: 1.5em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid var(--bdcrm-border);
}

.bdcrm-stage-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 0.9em;
	border-radius: var(--bdcrm-radius-sm);
	color: var(--bdcrm-ink-soft);
	font-weight: 500;
	font-size: 0.88rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.bdcrm-stage-tabs a:hover {
	background: #f4f4f5;
	color: #18181b;
}

.bdcrm-stage-tabs a.is-active {
	font-weight: 600;
	text-decoration: none;
	color: #18181b;
	background: #f4f4f5;
	border: 1px solid var(--bdcrm-border);
}

@media ( max-width: 767px ) {
	.bdcrm-stage-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
		padding-bottom: 0.6em;
	}
}

/* --------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------- */
.bdcrm-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	margin-top: 1.5em;
}

.bdcrm-pagination a,
.bdcrm-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	min-width: 38px;
	padding: 0.25em 0.6em;
	margin-right: 0;
	border-radius: var(--bdcrm-radius-sm);
	font-weight: 500;
	font-size: 0.88rem;
	color: var(--bdcrm-ink-soft);
	text-decoration: none;
	background: var(--bdcrm-surface);
	border: 1px solid var(--bdcrm-border);
	box-shadow: var(--bdcrm-shadow-sm);
}

.bdcrm-pagination a:hover {
	border-color: #a1a1aa;
	color: #18181b;
	background: #f4f4f5;
}

.bdcrm-pagination .bdcrm-page-current {
	font-weight: 600;
	text-decoration: none;
	background: #18181b;
	border-color: #18181b;
	color: #ffffff;
}

/* --------------------------------------------------------------------
   Notes thread
   -------------------------------------------------------------------- */
.bdcrm-notes-thread {
	list-style: none;
	padding: 0;
	margin: 1.25em 0;
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.bdcrm-notes-thread .bdcrm-note {
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius-sm);
	padding: 1rem 1.25rem;
	background: #ffffff;
	box-shadow: var(--bdcrm-shadow-sm);
}

.bdcrm-notes-thread .bdcrm-note-meta {
	font-size: 0.82em;
	color: var(--bdcrm-muted);
	margin-bottom: 0.4em;
}

.bdcrm-notes-thread .bdcrm-note-meta strong {
	color: var(--bdcrm-ink);
	font-weight: 600;
}

.bdcrm-notes-thread .bdcrm-note-body {
	font-size: 0.92rem;
	line-height: 1.6;
	color: #27272a;
}

/* --------------------------------------------------------------------
   Fields / forms
   -------------------------------------------------------------------- */
.bdcrm-app .bdcrm-field {
	margin-bottom: 1.1em;
}

.bdcrm-app .bdcrm-field.has-error input,
.bdcrm-app .bdcrm-field.has-error select {
	border: 1px solid var(--bdcrm-danger);
	background: #fff6f6;
}

.bdcrm-app .bdcrm-field-error {
	display: block;
	color: var(--bdcrm-danger);
	font-size: 0.85em;
	font-weight: 600;
	margin-top: 0.35em;
}

.bdcrm-app .bdcrm-error-banner {
	background: var(--bdcrm-danger-bg);
	border: 1px solid #f3b9b3;
	color: #a00;
	padding: 0.9em 1.1em;
	border-radius: var(--bdcrm-radius-sm);
	margin: 1.25em 0;
	font-weight: 600;
}

.bdcrm-app .bdcrm-duplicate-banner {
	background: var(--bdcrm-warning-bg);
	border: 1px solid #f0d3a3;
	color: var(--bdcrm-warning-ink);
	padding: 0.9em 1.1em;
	border-radius: var(--bdcrm-radius-sm);
	margin: 1.25em 0;
	font-weight: 600;
}

.bdcrm-app .bdcrm-submit-btn.is-loading {
	background: #9b95f0;
	background-image: none;
	cursor: wait;
	position: relative;
	padding-left: 2.4em;
}

.bdcrm-app .bdcrm-submit-btn.is-loading::before {
	content: "";
	position: absolute;
	left: 1em;
	top: 50%;
	width: 0.9em;
	height: 0.9em;
	margin-top: -0.45em;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bdcrm-spin 0.6s linear infinite;
}

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

.bdcrm-app .bdcrm-auto-clear {
	transition: opacity 0.4s ease;
}

.bdcrm-app .bdcrm-auto-clear.is-fading {
	opacity: 0;
}

.bdcrm-app.bdcrm-403,
.bdcrm-app.bdcrm-lead-gone,
.bdcrm-app.bdcrm-fatal-error {
	text-align: center;
	padding: 4.5em 1.5em;
	max-width: 560px;
}

.bdcrm-app.bdcrm-403 h1,
.bdcrm-app.bdcrm-lead-gone h1,
.bdcrm-app.bdcrm-fatal-error h1 {
	font-size: 1.5rem;
}

/* --------------------------------------------------------------------
   Accessibility utilities (unchanged behavior, kept intact)
   -------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.bdcrm-app a:focus-visible,
.bdcrm-app button:focus-visible,
.bdcrm-app input:focus-visible,
.bdcrm-app select:focus-visible,
.bdcrm-app textarea:focus-visible,
.bdcrm-header a:focus-visible,
.bdcrm-header button:focus-visible {
	outline: 3px solid var(--bdcrm-focus);
	outline-offset: 2px;
}

.bdcrm-app a:focus,
.bdcrm-app button:focus,
.bdcrm-app input:focus,
.bdcrm-app select:focus,
.bdcrm-app textarea:focus,
.bdcrm-header a:focus,
.bdcrm-header button:focus {
	outline: 3px solid var(--bdcrm-focus);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------
   Inputs & Controls
   -------------------------------------------------------------------- */
.bdcrm-app input[type="text"],
.bdcrm-app input[type="email"],
.bdcrm-app input[type="password"],
.bdcrm-app input[type="number"],
.bdcrm-app input[type="date"],
.bdcrm-app input[type="file"],
.bdcrm-app select,
.bdcrm-app textarea {
	min-height: 42px;
	width: 100%;
	max-width: 100%;
	padding: 0.6em 0.85em;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--bdcrm-ink);
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius-sm);
	box-shadow: var(--bdcrm-shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bdcrm-app input:hover,
.bdcrm-app select:hover,
.bdcrm-app textarea:hover {
	border-color: #a1a1aa;
}

.bdcrm-app input:focus,
.bdcrm-app select:focus,
.bdcrm-app textarea:focus {
	border-color: #18181b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.bdcrm-app input[type="file"] {
	padding: 0.45em 0.6em;
	background: var(--bdcrm-surface-alt);
}

.bdcrm-app textarea {
	min-height: 100px;
	resize: vertical;
}

.bdcrm-app label {
	display: block;
	margin-bottom: 0.45em;
	font-weight: 500;
	font-size: 0.88rem;
	color: #3f3f46;
}

.bdcrm-app .bdcrm-button,
.bdcrm-app button {
	min-height: 40px;
	min-width: 40px;
}

@media ( max-width: 1023px ) {
	.bdcrm-app .bdcrm-field,
	.bdcrm-app form p {
		display: block;
		width: 100%;
	}
}

/* Forms rendered as clean white cards with crisp borders and soft shadows */
.bdcrm-app form:not([style*="display:inline"]):not(.bdcrm-search-form):not(.bdcrm-filter-form) {
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	box-shadow: var(--bdcrm-shadow);
	padding: 1.75rem;
	margin: 0 0 1.75rem;
}

.bdcrm-app form:not([style*="display:inline"]):not(.bdcrm-search-form):not(.bdcrm-filter-form) > p:last-child,
.bdcrm-app form:not([style*="display:inline"]):not(.bdcrm-search-form):not(.bdcrm-filter-form) .bdcrm-field:last-child {
	margin-bottom: 0;
}

/* Stage-change and reassign forms */
.bdcrm-stage-form,
.bdcrm-reassign-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
}

.bdcrm-reassign-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.85em;
}

.bdcrm-reassign-form label {
	margin: 0;
}

.bdcrm-reassign-form select {
	width: auto;
	min-width: 220px;
}

/* --------------------------------------------------------------------
   Header / primary navigation
   -------------------------------------------------------------------- */
.bdcrm-header {
	max-width: 100%;
	width: 100%;
	margin: 0 0 2.5rem;
	padding: 0;
	background: #ffffff;
	border-bottom: 1px solid var(--bdcrm-border);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
	font-family: var(--bdcrm-font);
}

.bdcrm-header-row {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 1.1rem 1.25rem;
}

.bdcrm-brand {
	font-weight: 700;
	font-size: 1.12rem;
	letter-spacing: -0.02em;
	color: #18181b;
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}

.bdcrm-brand .bdcrm-icon {
	width: 1.25em;
	height: 1.25em;
	color: #18181b;
}

.bdcrm-primary-nav a .bdcrm-icon {
	color: #71717a;
}

.bdcrm-primary-nav a:hover .bdcrm-icon,
.bdcrm-primary-nav a[aria-current="page"] .bdcrm-icon {
	color: currentColor;
}

.bdcrm-primary-nav {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.bdcrm-primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0.2em 0 0.85em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.bdcrm-primary-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-height: 38px;
	padding: 0 0.9em;
	border-radius: var(--bdcrm-radius-sm);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	color: #71717a;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.bdcrm-primary-nav a:hover {
	background: #f4f4f5;
	color: #18181b;
}

.bdcrm-primary-nav a[aria-current="page"] {
	color: #18181b;
	background: #f4f4f5;
	font-weight: 600;
}

.bdcrm-utility-nav {
	display: flex;
	align-items: center;
	gap: 1em;
	font-size: 0.88rem;
	white-space: nowrap;
}

.bdcrm-utility-nav a {
	color: #71717a;
	font-weight: 500;
	text-decoration: none;
	padding: 0.4em 0.8em;
	border-radius: var(--bdcrm-radius-sm);
	border: 1px solid #e4e4e7;
	background: #ffffff;
	transition: all 0.12s ease;
}

.bdcrm-utility-nav a:hover {
	color: var(--bdcrm-danger);
	border-color: #fca5a5;
	background: var(--bdcrm-danger-bg);
}

.bdcrm-account-name {
	color: #27272a;
	font-weight: 500;
}

.bdcrm-account-name::before {
	content: "";
	display: inline-block;
	width: 1.35em;
	height: 1.35em;
	margin-right: 0.45em;
	vertical-align: middle;
	border-radius: 50%;
	background: #27272a;
}

@media ( max-width: 767px ) {
	.bdcrm-primary-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.bdcrm-primary-nav a {
		width: 100%;
		border-radius: var(--bdcrm-radius-sm);
		padding: 0.75em 0.9em;
	}

	.bdcrm-js .bdcrm-primary-nav.is-collapsed {
		display: none;
	}
}

/* --------------------------------------------------------------------
   Tables: shared card-wrapped, scrollable pattern across every list
   -------------------------------------------------------------------- */
.bdcrm-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	box-shadow: var(--bdcrm-shadow-sm);
}

.bdcrm-app table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	margin: 0;
}

.bdcrm-app table thead th {
	background: #fbfbfb;
	color: #71717a;
	font-size: 0.76rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.85rem 1.15rem;
	border-bottom: 1px solid var(--bdcrm-border);
	white-space: nowrap;
}

.bdcrm-app table tbody td {
	padding: 0.9rem 1.15rem;
	border-bottom: 1px solid #f4f4f5;
	font-size: 0.92rem;
	color: #27272a;
}

.bdcrm-app table tbody tr {
	transition: background-color 0.12s ease;
}

.bdcrm-app table tbody tr:hover {
	background: #fafafa;
}

.bdcrm-app table tbody tr:last-child td {
	border-bottom: none;
}

/* --------------------------------------------------------------------
   Search / filter forms — styled as a clean toolbar
   -------------------------------------------------------------------- */
.bdcrm-search-form,
.bdcrm-filter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75em;
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	box-shadow: var(--bdcrm-shadow-sm);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5em;
}

.bdcrm-search-form label,
.bdcrm-filter-form label {
	margin: 0;
}

.bdcrm-search-form input[type="text"],
.bdcrm-filter-form input[type="text"],
.bdcrm-filter-form select,
.bdcrm-filter-form input[type="date"] {
	width: auto;
	min-width: 180px;
}

.bdcrm-search-form > label,
.bdcrm-filter-form > label {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	font-size: 0.82rem;
	font-weight: 500;
	color: #52525b;
}

@media ( max-width: 767px ) {
	.bdcrm-search-form,
	.bdcrm-filter-form {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75em;
	}

	.bdcrm-search-form input[type="text"],
	.bdcrm-filter-form input[type="text"],
	.bdcrm-filter-form select,
	.bdcrm-filter-form input[type="date"] {
		width: 100%;
	}
}

/* --------------------------------------------------------------------
   Dashboard stat-card grid
   -------------------------------------------------------------------- */
.bdcrm-dashboard ul[class*="stat"],
.bdcrm-dashboard > ul:nth-of-type(1) {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85em;
}

.bdcrm-dashboard ul[class*="stat"] li,
.bdcrm-dashboard > ul:nth-of-type(1) li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6em;
	flex: 1 1 140px;
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	box-shadow: var(--bdcrm-shadow-sm);
	padding: 1.15rem 1.25rem;
}

.bdcrm-dashboard ul[class*="stat"] li strong,
.bdcrm-dashboard > ul:nth-of-type(1) li strong {
	font-size: 1.75rem;
	font-weight: 700;
	color: #18181b;
	letter-spacing: -0.03em;
}

/* Owner dashboard navigation cards */
.bdcrm-owner-nav {
	list-style: none;
	margin: 1.5em 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.bdcrm-owner-nav li {
	flex: 1 1 180px;
}

.bdcrm-owner-nav li a {
	display: flex;
	align-items: center;
	min-height: 60px;
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	box-shadow: var(--bdcrm-shadow-sm);
	padding: 1.1rem 1.35rem;
	font-weight: 600;
	color: #18181b;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.bdcrm-owner-nav li a:hover {
	box-shadow: var(--bdcrm-shadow);
	transform: translateY(-2px);
	border-color: #18181b;
}

.bdcrm-owner-dashboard .bdcrm-note {
	color: var(--bdcrm-muted);
	font-size: 0.88rem;
}

/* Follow-ups / recent leads lists */
.bdcrm-followups,
.bdcrm-recent-leads {
	list-style: none;
	margin: 0 0 1.75em;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.bdcrm-followups li,
.bdcrm-recent-leads li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5em;
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius-sm);
	padding: 0.85rem 1.15rem;
	box-shadow: var(--bdcrm-shadow-sm);
}

.bdcrm-followups li a,
.bdcrm-recent-leads li a {
	color: #18181b;
	font-weight: 600;
	text-decoration: none;
}

.bdcrm-followups li a:hover,
.bdcrm-recent-leads li a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------
   Attachments list
   -------------------------------------------------------------------- */
.bdcrm-attachments {
	list-style: none;
	margin: 0 0 1.25em;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45em;
}

.bdcrm-attachments li {
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius-sm);
	padding: 0.65rem 1rem;
	box-shadow: var(--bdcrm-shadow-sm);
}

.bdcrm-attachments li a {
	color: #18181b;
	font-weight: 500;
	text-decoration: none;
}

.bdcrm-attachments li a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------
   Lead detail — owner-of tag, delete-request footer spacing
   -------------------------------------------------------------------- */
.bdcrm-owner-of {
	display: inline-block;
	color: var(--bdcrm-ink-soft);
	background: var(--bdcrm-surface-alt);
	border: 1px solid var(--bdcrm-border-soft);
	border-radius: 999px;
	padding: 0.35em 0.9em;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1em;
}

.bdcrm-delete-request {
	margin-top: 2.5em;
	padding-top: 1.25em;
	border-top: 1px solid var(--bdcrm-border-soft);
}

/* --------------------------------------------------------------------
   Login screen — centered card
   -------------------------------------------------------------------- */
.bdcrm-login {
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 2rem;
}

.bdcrm-login h1 {
	text-align: center;
	font-size: 1.5rem;
}

.bdcrm-login form {
	width: 100%;
	max-width: 380px;
}

.bdcrm-login > p {
	width: 100%;
	max-width: 380px;
	text-align: center;
}

/* --------------------------------------------------------------------
   Employee edit / add-employee card width
   -------------------------------------------------------------------- */
.bdcrm-employee-edit form,
.bdcrm-lead-new form {
	max-width: 620px;
}

/* --------------------------------------------------------------------
   Delete requests — inline approve/reject mini-forms inside table cells
   -------------------------------------------------------------------- */
.bdcrm-delete-requests-table td form {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0 0.4em 0 0;
}

.bdcrm-delete-requests-table td form button {
	font-size: 0.85rem;
	padding: 0.5em 0.9em;
}

.bdcrm-delete-requests-table td form:last-child button {
	background: none;
	background-image: none;
	color: var(--bdcrm-muted);
	border: 1px solid var(--bdcrm-border);
	box-shadow: none;
}

.bdcrm-delete-requests-table td form:last-child button:hover {
	color: var(--bdcrm-ink);
	border-color: var(--bdcrm-ink-soft);
	transform: none;
}

/* --------------------------------------------------------------------
   Digital Presence Profile & Email Outreach Sections
   -------------------------------------------------------------------- */
.bdcrm-section {
	margin: 2.25rem 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bdcrm-border-soft);
}

.bdcrm-summary-strip {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.bdcrm-badge-critical { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.bdcrm-badge-moderate { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.bdcrm-badge-minor { background: #dcfce7; color: #166534; border-color: #86efac; }

.bdcrm-details-form {
	margin-bottom: 1.5rem;
}

.bdcrm-details-form summary {
	cursor: pointer;
	list-style: none;
	display: inline-block;
}

.bdcrm-card-form {
	margin-top: 1rem !important;
}

.bdcrm-category-group {
	margin-bottom: 2rem;
}

.bdcrm-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--bdcrm-border-soft);
}

.bdcrm-section-title-wrap {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.bdcrm-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--bdcrm-radius-sm);
	background: var(--bdcrm-primary-light);
	color: var(--bdcrm-primary);
}

.bdcrm-section-icon .bdcrm-icon {
	width: 22px;
	height: 22px;
}

.bdcrm-section-subtitle {
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
	color: var(--bdcrm-muted);
}

.bdcrm-category-title-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.5rem;
}

.bdcrm-cat-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #f4f4f5;
	color: #18181b;
}

.bdcrm-cat-icon-badge .bdcrm-icon {
	width: 16px;
	height: 16px;
}

.bdcrm-count-pill {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--bdcrm-muted);
}

.bdcrm-findings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 1.25rem;
	margin-top: 1rem;
}

.bdcrm-finding-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 1.4rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	position: relative;
}

.bdcrm-finding-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.bdcrm-finding-card.bdcrm-severity-critical { border-left: 5px solid #ef4444; }
.bdcrm-finding-card.bdcrm-severity-moderate { border-left: 5px solid #f59e0b; }
.bdcrm-finding-card.bdcrm-severity-minor { border-left: 5px solid #10b981; }

.bdcrm-finding-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.bdcrm-finding-header h4 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
}

.bdcrm-finding-desc {
	font-size: 0.92rem;
	color: #334155;
	margin: 0;
	line-height: 1.6;
	background: #f8fafc;
	padding: 0.75rem 0.9rem;
	border-radius: 6px;
	border-left: 2px solid #cbd5e1;
}

.bdcrm-finding-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	margin: 0;
}

.bdcrm-finding-link .bdcrm-icon {
	width: 15px;
	height: 15px;
	color: var(--bdcrm-primary);
}

.bdcrm-finding-link a {
	color: var(--bdcrm-primary);
	font-weight: 600;
	text-decoration: underline;
}

.bdcrm-finding-screenshots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.bdcrm-screenshot-thumb {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.5rem 0.85rem;
	text-decoration: none;
	color: #1e293b;
	font-size: 0.85rem;
	font-weight: 500;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bdcrm-screenshot-thumb:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	transform: translateY(-1px);
}

.bdcrm-screenshot-preview-img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	flex-shrink: 0;
}

.bdcrm-ss-filename {
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.82rem;
	color: #475569;
}

.bdcrm-btn-link-danger {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: none !important;
	border: none !important;
	color: var(--bdcrm-danger) !important;
	padding: 0 !important;
	font-size: 0.85rem !important;
	text-decoration: underline !important;
	box-shadow: none !important;
	cursor: pointer;
}

.bdcrm-btn-link-danger .bdcrm-icon {
	width: 14px;
	height: 14px;
}

/* Email Settings & Compose */
.bdcrm-status-card {
	padding: 1.15rem 1.35rem;
	border-radius: var(--bdcrm-radius-sm);
	margin-bottom: 1.5rem;
}

.bdcrm-status-card-content {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.bdcrm-status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.bdcrm-status-icon .bdcrm-icon {
	width: 20px;
	height: 20px;
}

.bdcrm-status-sub {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	opacity: 0.9;
}

.bdcrm-status-card.is-verified {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.bdcrm-status-card.is-unverified {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.bdcrm-preset-buttons-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.bdcrm-preset-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bdcrm-ink-soft);
}

.bdcrm-compose-full-wrapper {
	width: 100%;
	margin-bottom: 2rem;
}

.bdcrm-compose-box-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
	padding: 1.75rem 2rem !important;
	margin: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.bdcrm-compose-sender-info {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: var(--bdcrm-radius-sm);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: 0.92rem;
}

.bdcrm-sender-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.bdcrm-sender-row strong {
	color: #0f172a;
	min-width: 170px;
}

.bdcrm-sender-row span {
	color: #334155;
}

.bdcrm-warning-text {
	color: #b45309;
	font-weight: 600;
}

.bdcrm-compose-actions-bar {
	margin-top: 1.25rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bdcrm-btn-primary-send {
	padding: 0.75rem 1.75rem !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	border-radius: 6px !important;
	background: #18181b !important;
	color: #ffffff !important;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.bdcrm-btn-primary-send:hover {
	background: #27272a !important;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.bdcrm-form-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.bdcrm-field-half {
	flex: 1 1 45%;
}

.bdcrm-field-quarter {
	flex: 1 1 20%;
}

.bdcrm-field-hint {
	font-weight: normal;
	color: var(--bdcrm-muted);
	font-size: 0.82rem;
	margin-left: 0.35rem;
}

.bdcrm-email-history-list {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
	margin-top: 1.25rem;
}

.bdcrm-email-history-card {
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: 10px;
	padding: 1.4rem 1.6rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.bdcrm-email-history-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.bdcrm-email-history-card.is-outgoing {
	border-left: 4px solid #0284c7;
	background: #ffffff;
}

.bdcrm-email-history-card.is-incoming {
	border-left: 4px solid #10b981;
	background: #ffffff;
}

.bdcrm-email-history-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #f1f5f9;
}

.bdcrm-email-subject-wrap {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.bdcrm-direction-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.25rem 0.65rem;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
}

.bdcrm-direction-tag.tag-outgoing {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.bdcrm-direction-tag.tag-incoming {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.bdcrm-mail-bullet .bdcrm-icon {
	width: 18px;
	height: 18px;
	color: #64748b;
}

.bdcrm-email-history-card.is-incoming .bdcrm-mail-bullet .bdcrm-icon {
	color: #10b981;
}

.bdcrm-email-history-card.is-outgoing .bdcrm-mail-bullet .bdcrm-icon {
	color: #0284c7;
}

.bdcrm-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.bdcrm-status-badge.bdcrm-status-incoming {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.bdcrm-status-badge .bdcrm-icon {
	width: 14px;
	height: 14px;
}

.bdcrm-email-history-body {
	margin: 1.1rem 0;
	padding: 1.15rem 1.35rem;
	border-radius: 6px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #1e293b;
	word-break: break-word;
}

.bdcrm-email-history-body.body-outgoing {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.bdcrm-email-history-body.body-incoming {
	background: #f0fdf4;
	border: 1px solid #dcfce7;
}

.bdcrm-email-history-footer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid #f8fafc;
	width: 100%;
}

.bdcrm-email-history-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.bdcrm-email-history-meta small {
	color: #64748b;
	font-size: 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: wrap;
}

.bdcrm-email-history-meta strong {
	color: #1e293b;
}

.bdcrm-email-thread-actions {
	width: 100%;
	display: block;
}

.bdcrm-inline-thread-action {
	width: 100%;
	display: block;
}

.bdcrm-inline-thread-action summary {
	cursor: pointer;
	user-select: none;
	list-style: none;
	display: inline-flex;
}

.bdcrm-inline-thread-action summary::-webkit-details-marker {
	display: none;
}

.bdcrm-btn-small {
	padding: 0.45rem 1rem !important;
	font-size: 0.85rem !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.45rem !important;
	font-weight: 600 !important;
	border-radius: 6px !important;
}

.bdcrm-thread-quick-form {
	margin-top: 1rem;
	padding: 1.5rem 1.75rem;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	width: 100%;
	box-sizing: border-box;
}

.bdcrm-thread-quick-form .bdcrm-field {
	margin-bottom: 1.15rem;
}

.bdcrm-thread-quick-form label {
	margin-bottom: 0.4rem;
	display: block;
	color: #1e293b;
}

.bdcrm-thread-quick-form input[type="text"],
.bdcrm-thread-quick-form input[type="file"],
.bdcrm-thread-quick-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
}

.bdcrm-thread-quick-form textarea {
	min-height: 120px;
}

.bdcrm-help-box {
	background: #fafafa;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	padding: 1.5rem;
	margin-top: 2rem;
}

.bdcrm-help-box h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0;
	font-size: 1.05rem;
}

.bdcrm-help-box h3 .bdcrm-icon {
	width: 20px;
	height: 20px;
	color: var(--bdcrm-primary);
}

.bdcrm-help-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.bdcrm-help-card {
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius-sm);
	padding: 1.15rem;
}

.bdcrm-help-card h4 {
	margin-top: 0;
	font-size: 0.95rem;
}

.bdcrm-help-card ol,
.bdcrm-help-card ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.88rem;
	line-height: 1.55;
}

.bdcrm-disclaimer {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--bdcrm-muted);
	margin-top: 0.75rem;
	font-size: 0.82rem;
}

.bdcrm-disclaimer .bdcrm-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------
   WhatsApp Outreach, Chat Isolation & Voice Note Recorder Styles
   -------------------------------------------------------------------- */
.bdcrm-btn-whatsapp {
	background-color: #25D366 !important;
	color: #ffffff !important;
	border-color: #20ba59 !important;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.bdcrm-btn-whatsapp:hover {
	background-color: #1da851 !important;
	color: #ffffff !important;
}

.bdcrm-icon-whatsapp-bg {
	background: #dcfce7 !important;
	color: #15803d !important;
}

/* Owner WhatsApp Connection Card */
.bdcrm-wa-connection-card {
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	padding: 1.5rem;
	margin: 1.5rem 0 2rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bdcrm-wa-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--bdcrm-border-soft);
}

.bdcrm-wa-title-wrap {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bdcrm-wa-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #25D366;
	color: #ffffff;
}

.bdcrm-wa-icon-badge .bdcrm-icon {
	width: 24px;
	height: 24px;
}

.bdcrm-card-subtitle {
	margin: 0.2rem 0 0;
	font-size: 0.88rem;
	color: var(--bdcrm-muted);
}

.bdcrm-wa-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.82rem;
}

.bdcrm-wa-status-connected {
	background: #dcfce7;
	color: #166534;
}

.bdcrm-wa-status-qr_ready {
	background: #fef3c7;
	color: #92400e;
}

.bdcrm-wa-status-disconnected {
	background: #f4f4f5;
	color: #71717a;
}

.bdcrm-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.bdcrm-pulse-dot.is-connected {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.bdcrm-pulse-dot.is-waiting {
	background: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.bdcrm-pulse-dot.is-disconnected {
	background: #a1a1aa;
}

.bdcrm-wa-connected-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: var(--bdcrm-radius-sm);
	padding: 1.25rem 1.5rem;
}

.bdcrm-wa-phone-tag {
	display: inline-block;
	font-family: monospace;
	font-size: 1.05rem;
	background: #e2e8f0;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	margin-left: 0.5rem;
}

.bdcrm-qr-scan-area {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	background: #fafafa;
	border: 1px dashed #d4d4d8;
	border-radius: var(--bdcrm-radius-sm);
	padding: 1.5rem;
}

.bdcrm-qr-visual-card {
	text-align: center;
	background: #ffffff;
	padding: 1rem;
	border-radius: var(--bdcrm-radius-sm);
	box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.bdcrm-qr-image {
	display: block;
	margin: 0 auto 0.5rem;
	border-radius: 6px;
}

.bdcrm-qr-instruction {
	margin: 0;
	font-size: 0.8rem;
	color: var(--bdcrm-muted);
	max-width: 200px;
}

.bdcrm-qr-steps ol {
	margin: 0.5rem 0 1.25rem;
	padding-left: 1.25rem;
	line-height: 1.6;
	font-size: 0.9rem;
}

.bdcrm-qr-confirm-form input[type="text"] {
	max-width: 320px;
	margin-top: 0.35rem;
}

/* WhatsApp 1:1 Isolated Lead Chat */
.bdcrm-wa-chat-container {
	background: #e5ddd5;
	background-image: radial-gradient(#d1c7bc 10%, transparent 11%);
	background-size: 16px 16px;
	border: 1px solid #cbd5e1;
	border-radius: var(--bdcrm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 480px;
	margin-top: 1rem;
}

.bdcrm-wa-chat-header {
	background: #f0f2f5;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #e2e8f0;
}

.bdcrm-wa-chat-contact-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bdcrm-wa-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #128c7e;
	color: #ffffff;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}

.bdcrm-wa-chat-phone {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	color: #64748b;
}

.bdcrm-wa-chat-phone .bdcrm-icon {
	width: 13px;
	height: 13px;
}

.bdcrm-wa-chat-status-indicator {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: #475569;
}

.bdcrm-wa-messages-stream {
	flex: 1;
	padding: 1.25rem;
	overflow-y: auto;
	max-height: 420px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bdcrm-wa-empty-chat {
	text-align: center;
	margin: auto;
	max-width: 380px;
	color: #52525b;
	background: rgba(255, 255, 255, 0.85);
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bdcrm-wa-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #25d366;
	color: #ffffff;
	margin-bottom: 0.75rem;
}

.bdcrm-wa-empty-icon .bdcrm-icon {
	width: 28px;
	height: 28px;
}

.bdcrm-wa-empty-chat h4 {
	margin: 0 0 0.5rem;
}

.bdcrm-wa-empty-chat p {
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0;
}

/* WhatsApp Message Bubbles */
.bdcrm-wa-bubble {
	max-width: 75%;
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.12);
	position: relative;
	font-size: 0.92rem;
	line-height: 1.45;
}

.bdcrm-wa-bubble.is-lead {
	align-self: flex-start;
	background-color: #d9fdd3 !important;
	border: 1px solid #c0ebba !important;
	border-top-left-radius: 0;
}

.bdcrm-wa-bubble.is-owner {
	align-self: flex-end;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-top-right-radius: 0;
}

.bdcrm-wa-bubble.is-out {
	align-self: flex-end;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-top-right-radius: 0;
}

.bdcrm-wa-bubble.is-in {
	align-self: flex-start;
	background-color: #d9fdd3;
	border: 1px solid #c0ebba;
	border-top-left-radius: 0;
}

.bdcrm-wa-bubble-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	color: #64748b;
}

.bdcrm-wa-sender-label {
	font-weight: 600;
	color: #075e54;
}

.bdcrm-wa-text {
	word-break: break-word;
}

.bdcrm-wa-bubble-status {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	font-size: 0.72rem;
	color: #64748b;
	margin-top: 0.25rem;
}

.bdcrm-wa-ticks .bdcrm-icon {
	width: 14px;
	height: 14px;
	color: #3b82f6;
}

/* Voice Player & Media Preview */
.bdcrm-wa-voice-player {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
}

.bdcrm-wa-mic-icon .bdcrm-icon {
	width: 20px;
	height: 20px;
	color: #128c7e;
}

.bdcrm-audio-player {
	height: 36px;
	max-width: 260px;
}

.bdcrm-wa-img-thumbnail {
	max-width: 240px;
	max-height: 200px;
	border-radius: 6px;
	display: block;
	margin-bottom: 0.35rem;
}

.bdcrm-wa-doc-attachment {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(0,0,0,0.05);
	padding: 0.4rem 0.65rem;
	border-radius: 6px;
	margin-bottom: 0.35rem;
}

.bdcrm-wa-doc-attachment .bdcrm-icon {
	width: 16px;
	height: 16px;
}

/* WhatsApp Compose Footer */
.bdcrm-wa-compose-form {
	background: #f0f2f5;
	padding: 0.75rem 1rem;
	border-top: 1px solid #e2e8f0;
}

.bdcrm-wa-input-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.bdcrm-wa-tool-btn {
	background: none;
	border: none;
	color: #54656f;
	padding: 0.5rem;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bdcrm-wa-tool-btn:hover {
	background: #e2e8f0;
	color: #111b21;
}

.bdcrm-wa-tool-btn .bdcrm-icon {
	width: 20px;
	height: 20px;
}

.bdcrm-wa-file-label {
	cursor: pointer;
	margin: 0;
}

.bdcrm-wa-textarea {
	flex: 1;
	border-radius: 8px !important;
	border: 1px solid #d1d5db !important;
	padding: 0.6rem 0.85rem !important;
	font-size: 0.92rem !important;
	resize: none;
	min-height: 42px;
	max-height: 90px;
	background: #ffffff;
}

.bdcrm-btn-send-wa-pill {
	border-radius: 999px !important;
	padding: 0.6rem 1.25rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.4rem !important;
	flex-shrink: 0 !important;
	font-size: 0.92rem !important;
	height: 42px !important;
	white-space: nowrap !important;
}

.bdcrm-btn-send-wa-pill .bdcrm-icon {
	width: 17px;
	height: 17px;
}

/* Audio Recording Bar */
.bdcrm-wa-voice-recorder-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #fee2e2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 0.5rem 0.85rem;
	margin-bottom: 0.6rem;
}

.bdcrm-rec-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ef4444;
	animation: bdcrm-pulse 1s infinite alternate;
}

@keyframes bdcrm-pulse {
	from { opacity: 0.4; }
	to { opacity: 1; }
}

.bdcrm-rec-timer {
	font-family: monospace;
	font-weight: 700;
	color: #991b1b;
	font-size: 0.95rem;
	flex: 1;
}

.bdcrm-wa-voice-preview {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 0.4rem 0.85rem;
	margin-bottom: 0.6rem;
	font-size: 0.85rem;
}

.bdcrm-wa-mic-badge {
	color: #16a34a;
}

.bdcrm-preview-audio-player {
	height: 32px;
	flex: 1;
}

.bdcrm-btn-delete-audio {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

/* Owner Dashboard WhatsApp Activity Table */
.bdcrm-wa-activity-card {
	background: #ffffff;
	border: 1px solid var(--bdcrm-border);
	border-radius: var(--bdcrm-radius);
	padding: 1.5rem;
	margin: 1.5rem 0 2rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bdcrm-wa-feed-table td {
	vertical-align: middle;
}

/* Owner WhatsApp Web Hub */
.bdcrm-hub-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--bdcrm-border-soft);
}

.bdcrm-btn-large {
	padding: 0.75rem 1.4rem !important;
	font-size: 1rem !important;
	border-radius: var(--bdcrm-radius-sm) !important;
}

.bdcrm-hub-instructions ol {
	margin: 0.5rem 0 1.25rem;
	padding-left: 1.25rem;
	line-height: 1.7;
	font-size: 0.92rem;
}

.bdcrm-hub-phone-form {
	max-width: 460px;
	margin-top: 1rem;
}

.bdcrm-input-inline-btn {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.bdcrm-input-inline-btn input {
	flex: 1;
}

/* Chat bubble contrast refinement */
.bdcrm-wa-bubble.is-lead,
.bdcrm-wa-bubble.is-in {
	align-self: flex-start;
	background-color: #d9fdd3 !important;
	border: 1px solid #c0ebba !important;
	border-top-left-radius: 0;
}

.bdcrm-wa-bubble.is-owner,
.bdcrm-wa-bubble.is-out {
	align-self: flex-end;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-top-right-radius: 0;
}

/* -----------------------------------------------------------------------
   Role-based WhatsApp chat bubbles
   .bdcrm-bubble-sent     = employee / lead-manager sent  -> green, RIGHT
   .bdcrm-bubble-received = owner reply                   -> white, LEFT
----------------------------------------------------------------------- */
.bdcrm-wa-bubble.bdcrm-bubble-sent {
	align-self: flex-end;
	background-color: #d9fdd3 !important;
	border: 1px solid #c0ebba !important;
	border-radius: 8px;
	border-top-right-radius: 0;
}

.bdcrm-wa-bubble.bdcrm-bubble-received {
	align-self: flex-start;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px;
	border-top-left-radius: 0;
}

/* WhatsApp Realistic UI Additions */
.bdcrm-wa-day-divider {
	display: flex;
	justify-content: center;
	margin: 0.75rem 0;
}

.bdcrm-wa-day-badge {
	background: #ffffff;
	padding: 0.25rem 0.85rem;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #54656f;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bdcrm-wa-avatar-img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-block;
}

.bdcrm-wa-voice-bubble {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.25rem 0;
}

.bdcrm-wa-voice-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #128c7e;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.bdcrm-wa-voice-player-custom {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1;
}

.bdcrm-wa-voice-player-custom audio {
	height: 32px;
	max-width: 240px;
}

.bdcrm-wa-lead-warning {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #fff8e6;
	border: 1px solid #ffe082;
	color: #856404;
	padding: 0.85rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
}

.bdcrm-wa-feed-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 0.85rem;
}

