/* ==========================================================================
   Design tokens
   Primary: Deep Teal (#0F5850, sampled from the Vozbun logo) sidebar/brand
   accent, with a soft gold (#C99A3E, from the logo's tagline/sparkle) used
   sparingly for the quick-add CTA — mirroring the logo's own color balance
   (teal dominant, gold as a sparse accent, white for contrast).
   Status badge colors (amber/emerald/sky/coral) are kept independent of
   the brand palette so status meaning stays unambiguous at a glance.
   Type: Space Grotesk for headings & stat numbers, Inter for body/UI.
   ========================================================================== */
.crm-app {
	--crm-ink: #14171F;
	--crm-ink-soft: #64697A;
	--crm-canvas: #EEF3F1;
	--crm-surface: #FFFFFF;
	--crm-border: #E5EEEC;
	--crm-purple: #0F5850;
	--crm-purple-dark: #0B443D;
	--crm-purple-light: #E4F1EF;
	--crm-sidebar-from: #0c3617;
	--crm-sidebar-mid1: #1e5737;
	--crm-sidebar-mid2: #00570e;
	--crm-sidebar-to: #043800;
	--crm-gold: #C99A3E;
	--crm-gold-pale: #FBEFD6;
	--crm-emerald: #16A34A;
	--crm-amber: #F59E0B;
	--crm-sky: #0EA5E9;
	--crm-coral: #E0457B;
	--crm-table-head-bg: rgba(255, 255, 255, 0.5);
	--crm-row-hover-bg: rgba(15, 88, 80, 0.04);
	--crm-time-muted: #9AA1B0;
	--crm-icon-tint-emerald: #E5F8EC;
	--crm-icon-tint-sky: #E4F5FD;
	--crm-notice-success-bg: #EAFBF1;
	--crm-notice-success-text: #0F7A38;
	--crm-notice-error-bg: #FDEEEC;
	--crm-notice-error-text: #B3261E;
	--crm-shadow: 0 8px 30px rgba(15, 40, 35, 0.08);
	--crm-radius-sm: 12px;
	--crm-radius-md: 18px;
	--crm-radius-lg: 24px;
	--crm-sidebar-width: 234px;
	--crm-sidebar-text: rgba(255, 255, 255, 0.78);
	--crm-icon-size: 21px;
	--crm-btn-radius: 12px;
	--crm-btn-padding-y: 10px;
	--crm-btn-padding-x: 18px;
	--crm-font-size-base: 14px;
	--crm-gap: 16px;
	--crm-content-max-width: none;
	--crm-font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--crm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Glass surface — translucent panel over the ambient gradient behind it. */
	--crm-glass-bg: rgba(255, 255, 255, 0.55);
	--crm-glass-border: rgba(255, 255, 255, 0.6);
	--crm-glass-blur: 20px;
	--crm-glass-shadow: 0 8px 30px rgba(15, 40, 35, 0.08);

	display: flex;
	min-height: 96vh;
	font-family: var(--crm-font-body);
	font-size: var(--crm-font-size-base);
	font-weight: 400;
	color: var(--crm-ink);
	background: var(--crm-canvas);
	border-radius: 0px;
	overflow: hidden;
	position: relative;
	transition: background 0.2s ease, color 0.2s ease;
	letter-spacing: -0.005em;
}

/* Ambient gradient backdrop behind the content area — this is what the
   glass cards float over. Brand-tinted (teal + gold) rather than a
   generic purple/blue, so the glass treatment still reads as Vozbun
   rather than a stock template. */
.crm-app__body {
	background:
		radial-gradient(circle at 12% 8%, rgba(15, 88, 80, 0.16), transparent 42%),
		radial-gradient(circle at 88% 12%, rgba(201, 154, 62, 0.14), transparent 38%),
		radial-gradient(circle at 50% 95%, rgba(15, 88, 80, 0.10), transparent 50%),
		var(--crm-canvas);
}

/* Layout axis: content width (full-bleed vs boxed) */
.crm-app[data-crm-content="boxed"] {
	max-width: var(--crm-content-max-width);
	margin: 0 auto;
	border-radius: var(--crm-radius-lg);
	box-shadow: var(--crm-shadow);
}

/* Layout axis: sidebar position (left / right / top) */
.crm-app[data-crm-sidebar-pos="right"] {
	flex-direction: row-reverse;
}
.crm-app[data-crm-sidebar-pos="top"] .crm-sidebar {
	display: none;
}
.crm-app[data-crm-sidebar-pos="top"] .crm-topbar {
	flex-wrap: wrap;
}
.crm-app[data-crm-sidebar-pos="top"] .crm-topbar__nav {
	display: flex;
	gap: 4px;
	order: 10;
	width: 100%;
	padding-top: 8px;
	border-top: 1px solid var(--crm-border);
	margin-top: 8px;
	flex-wrap: wrap;
}
.crm-topbar__nav {
	display: none;
}
.crm-app[data-crm-sidebar-pos="top"] .crm-topbar__nav a {
	color: var(--crm-ink-soft);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: var(--crm-radius-sm);
}
.crm-app[data-crm-sidebar-pos="top"] .crm-topbar__nav a.is-active {
	background: var(--crm-purple-light);
	color: var(--crm-purple-dark);
	font-weight: 600;
}
.crm-app[data-crm-sidebar-pos="top"] .crm-topbar__menu-toggle {
	display: none !important;
}

/* Layout axis: sidebar style (gradient / solid / light) */
.crm-app[data-crm-sidebar-style="solid"] .crm-sidebar {
	background: var(--crm-purple);
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar {
	background: var(--crm-surface);
	border-right: 1px solid var(--crm-border);
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__brand,
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__user-name {
	color: var(--crm-ink);
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__link {
	color: var(--crm-ink-soft) !important;
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__link:hover {
	background: var(--crm-purple-light);
	color: var(--crm-purple-dark) !important;
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__link.is-active {
	background: var(--crm-purple);
	color: #fff !important;
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__user {
	border-top-color: var(--crm-border);
}
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__user-role,
.crm-app[data-crm-sidebar-style="light"] .crm-sidebar__logout {
	color: var(--crm-ink-soft) !important;
}

/* Layout axis: compact icon-only sidebar rail */
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar {
	width: 76px;
}
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__brand span.crm-brand-text,
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__link span.crm-link-text,
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__user-name,
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__user-role,
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__account-link span.crm-link-text {
	display: none;
}
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__link,
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__account-link {
	justify-content: center;
	font-size: 20px;
	padding: 12px 0;
}
.crm-app[data-crm-sidebar-mode="compact"] .crm-sidebar__logout {
	display: none;
}

/* Layout axis: density (spacing scale) */
.crm-app[data-crm-density="compact"] .crm-main { padding: 16px 20px 28px; }
.crm-app[data-crm-density="compact"] .crm-table th,
.crm-app[data-crm-density="compact"] .crm-table td { padding: 7px 12px; }
.crm-app[data-crm-density="compact"] .crm-stat-grid,
.crm-app[data-crm-density="compact"] .crm-dash-row,
.crm-app[data-crm-density="compact"] .crm-widget-grid { gap: 10px; }

.crm-app[data-crm-density="spacious"] .crm-main { padding: 34px 40px 52px; }
.crm-app[data-crm-density="spacious"] .crm-table th,
.crm-app[data-crm-density="spacious"] .crm-table td { padding: 15px 20px; }
.crm-app[data-crm-density="spacious"] .crm-stat-grid,
.crm-app[data-crm-density="spacious"] .crm-dash-row,
.crm-app[data-crm-density="spacious"] .crm-widget-grid { gap: 22px; }

/* Dark theme — toggled via [data-crm-theme="dark"] on .crm-app (see
   crm-topbar__theme-toggle in class-crm-shortcode.php). The sidebar's
   teal gradient stays the same in both themes since it's brand chrome,
   not content — only the canvas/surfaces/text/borders shift. Status
   badge colors also stay identical: they're solid pills with their own
   background, so theme has no effect on their legibility. */
.crm-app[data-crm-theme="dark"] {
	--crm-ink: #EDEFF3 !important;
	--crm-ink-soft: #9AA1B0 !important;
	--crm-canvas: #0B0E13 !important;
	--crm-surface: #1B1F29 !important;
	--crm-border: #2A2F3B !important;
	--crm-purple-light: #16352F;
	--crm-gold-pale: #2E2718;
	--crm-table-head-bg: rgba(255, 255, 255, 0.04);
	--crm-row-hover-bg: rgba(255, 255, 255, 0.03);
	--crm-time-muted: #6B7280;
	--crm-icon-tint-emerald: #14311F;
	--crm-icon-tint-sky: #10293A;
	--crm-notice-success-bg: #12301F;
	--crm-notice-success-text: #4ADE80;
	--crm-notice-error-bg: #341717;
	--crm-notice-error-text: #F87171;
	--crm-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
	--crm-glass-bg: rgba(255, 255, 255, 0.055);
	--crm-glass-border: rgba(255, 255, 255, 0.09);
	--crm-glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.crm-app[data-crm-theme="dark"] .crm-app__body {
	background:
		radial-gradient(circle at 12% 8%, rgba(27, 110, 99, 0.30), transparent 42%),
		radial-gradient(circle at 88% 14%, rgba(201, 154, 62, 0.22), transparent 40%),
		radial-gradient(circle at 50% 100%, rgba(27, 110, 99, 0.18), transparent 55%),
		var(--crm-canvas);
}
.crm-app[data-crm-theme="dark"] .crm-input,
.crm-app[data-crm-theme="dark"] .crm-select,
.crm-app[data-crm-theme="dark"] .crm-form__row input,
.crm-app[data-crm-theme="dark"] .crm-form__row select,
.crm-app[data-crm-theme="dark"] .crm-form__row textarea,
.crm-app[data-crm-theme="dark"] .crm-reply-form textarea,
.crm-app[data-crm-theme="dark"] .crm-new-convo select {
	background: var(--crm-surface);
	color: var(--crm-ink);
}
.crm-app[data-crm-theme="dark"] .crm-profile-avatar,
.crm-app[data-crm-theme="dark"] .crm-topbar__avatar img {
	border-color: var(--crm-border);
}
.crm-app[data-crm-theme="dark"] .crm-topbar__search {
	background: rgba(255, 255, 255, 0.05);
}
.crm-app[data-crm-theme="dark"] .crm-topbar__theme-toggle {
	background: rgba(255, 255, 255, 0.05);
}
.crm-app h1, .crm-app h2, .crm-app h3 {
	font-family: var(--crm-font-display);
	letter-spacing: -0.01em;
	/* color: #16342a; */
	font-weight: 900;
}
.crm-app * { box-sizing: border-box; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.crm-sidebar {
	width: var(--crm-sidebar-width);
	flex-shrink: 0;
	background-color: #0c3617;
	background-image: linear-gradient(135deg, #0c3617 0%, #1e5737 29%, #00570e 67%, #043800 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	padding: 22px 0;
	transition: transform 0.25s ease;
	z-index: 40;
}
.crm-sidebar__brand {
	font-family: var(--crm-font-display);
	font-weight: 700;
	font-size: 18px;
	padding: 0 22px 24px;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 8px;
}
.crm-sidebar__link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-radius: var(--crm-radius-sm);
	color: var(--crm-sidebar-text) !important;
	padding: 11px 16px;
	margin: 2px 12px;
	width: calc(100% - 24px);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: none !important;
}
.crm-sidebar__link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
}
.crm-sidebar__link.is-active {
	background: #fff;
	color: var(--crm-purple-dark) !important;
	font-weight: 600;
}
.crm-sidebar__user {
	margin-top: auto;
	padding: 18px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 12px;
}
.crm-sidebar__account-link {
	display: block;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 10px;
	padding: 6px 0;
}
.crm-sidebar__account-link.is-active {
	color: #FFE9A8 !important;
}
.crm-sidebar__user-name {
	font-weight: 600;
	color: #fff;
}
.crm-sidebar__user-role {
	color: rgba(255, 255, 255, 0.65);
	text-transform: capitalize;
	margin-bottom: 8px;
}
.crm-sidebar__logout {
	color: rgba(255, 255, 255, 0.65) !important;
	text-decoration: underline !important;
	font-size: 12px;
}
.crm-sidebar__close {
	display: none;
}

.crm-sidebar-backdrop {
	display: none;
}

/* ==========================================================================
   App body / top bar
   ========================================================================== */
.crm-app__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.crm-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 28px;
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-bottom: 1px solid var(--crm-glass-border);
}
.crm-topbar__menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: var(--crm-ink);
	padding: 4px;
	line-height: 1;
}
.crm-topbar__search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.35);
	border: 1px solid var(--crm-glass-border);
	border-radius: 999px;
	padding: 9px 16px;
	max-width: 340px;
	flex: 1;
}
.crm-topbar__search input {
	border: none;
	background: none;
	outline: none;
	font-size: 13.5px;
	font-family: var(--crm-font-body);
	width: 100%;
	color: var(--crm-ink);
}
.crm-topbar__search-icon {
	color: var(--crm-ink-soft);
	font-size: 14px;
}
.crm-topbar__spacer {
	flex: 1;
}
.crm-topbar__quickadd {
	background: var(--crm-gold);
	color: var(--crm-ink) !important;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(201, 154, 62, 0.35);
}
.crm-topbar__quickadd:hover {
	background: #B8892F;
	box-shadow: 0 6px 18px rgba(201, 154, 62, 0.42);
}
.crm-topbar__theme-toggle {
	background: var(--crm-canvas);
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 15px;
	line-height: 1;
}
.crm-theme-icon-dark { display: none; }
.crm-app[data-crm-theme="dark"] .crm-theme-icon-light { display: none; }
.crm-app[data-crm-theme="dark"] .crm-theme-icon-dark { display: inline; }

.crm-topbar__bell {
	position: relative;
	font-size: 18px;
	text-decoration: none !important;
	line-height: 1;
	flex-shrink: 0;
}
.crm-topbar__badge {
	position: absolute;
	top: -6px;
	right: -9px;
	background: var(--crm-coral);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 999px;
	padding: 1px 5px;
	min-width: 14px;
	text-align: center;
}
.crm-topbar__avatar img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid var(--crm-purple-light);
}

/* Main */
.crm-main {
	flex: 1;
	padding: 24px 28px 40px;
	overflow-x: hidden;
	overflow-y: auto;
}
.crm-module__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}
.crm-module__header h1 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}
.crm-module__header-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.crm-muted {
	color: var(--crm-ink-soft);
	font-size: 13px;
}

/* Status overview cards (Leads/Projects/Hiring "totals by status" bar) */
.crm-overview-cards {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
	overflow-x: auto;
	margin-bottom: 16px;
}
.crm-overview-card {
	flex: 1 1 0;
	min-width: 132px;
	background: var(--crm-glass-bg, var(--crm-surface));
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border: 1px solid var(--crm-glass-border, var(--crm-border));
	border-radius: 18px;
	padding: 12px 14px 12px;
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
}
.crm-overview-card--total {
	border-color: rgba(15, 88, 80, 0.28);
	background: linear-gradient(180deg, rgba(15, 88, 80, 0.08), var(--crm-glass-bg, var(--crm-surface)));
}
.crm-overview-card__value {
	font-family: var(--crm-font-display);
	font-size: 25px;
	font-weight: 600;
	margin: 0 0 6px;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-align: start;
}
.crm-overview-card__head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 8px;
	min-width: 0;
}
.crm-overview-card__pct {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--crm-ink);
	flex-shrink: 0;
}
.crm-overview-card__label {
	font-size: 12px;
	font-weight: 500;
	color: var(--crm-ink-soft);
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: start;
}
.crm-overview-card__bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.28);
	overflow: hidden;
	margin-bottom: 6px;
}
.crm-overview-card__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	min-width: 0;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--crm-bar-color, #22D3EE) 35%, #fff) 0%,
		var(--crm-bar-color, #22D3EE) 55%,
		color-mix(in srgb, var(--crm-bar-color, #22D3EE) 70%, #0EA5E9) 100%
	);
	box-shadow: 0 0 10px color-mix(in srgb, var(--crm-bar-color, #22D3EE) 70%, transparent);
}
.crm-overview-card__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-size: 11px;
	color: var(--crm-ink-soft);
}
.crm-overview-card__trend {
	font-size: 11px;
	color: var(--crm-ink-soft);
}
.crm-app[data-crm-theme="dark"] .crm-overview-card__bar {
	background: rgba(255, 255, 255, 0.12);
}
.crm-app[data-crm-theme="dark"] .crm-overview-card__pct {
	color: #fff;
}

/* Notices */
.crm-notice {
	padding: 10px 16px;
	border-radius: var(--crm-radius-sm);
	margin-bottom: 16px;
	font-size: 14px;
}
.crm-notice--success {
	background: var(--crm-notice-success-bg);
	color: var(--crm-notice-success-text);
}
.crm-notice--error {
	background: var(--crm-notice-error-bg);
	color: var(--crm-notice-error-text);
}

/* Buttons */
.crm-btn {
	display: inline-block;
	border: none;
	border-radius: var(--crm-btn-radius);
	padding: var(--crm-btn-padding-y) var(--crm-btn-padding-x);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	font-family: var(--crm-font-body);
	transition: background 0.15s ease, border-color 0.15s ease;
}
.crm-btn--primary {
	background: var(--crm-purple);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(15, 88, 80, 0.28);
}
.crm-btn--primary:hover {
	background: var(--crm-purple-dark);
	box-shadow: 0 6px 18px rgba(15, 88, 80, 0.35);
}
.crm-btn--ghost {
	background: transparent;
	border: 1px solid var(--crm-border);
	color: var(--crm-ink) !important;
}
.crm-btn--ghost:hover {
	border-color: var(--crm-purple);
	color: var(--crm-purple) !important;
}
.crm-link-btn {
	background: none;
	border: none;
	color: var(--crm-purple) !important;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	margin-right: 10px;
	padding: 0;
	text-decoration: none !important;
}
.crm-link-btn--danger {
	color: var(--crm-coral) !important;
}
.crm-required {
	color: var(--crm-coral);
}

/* Toolbar / filters */
.crm-datatable__toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.crm-input,
.crm-select {
	padding: 9px 12px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	font-size: 14px;
	font-family: var(--crm-font-body);
	background: var(--crm-surface);
}
.crm-input {
	min-width: 200px;
	flex: 1;
	max-width: 320px;
}
.crm-input:focus,
.crm-select:focus {
	outline: none;
	border-color: var(--crm-purple);
	box-shadow: 0 0 0 3px var(--crm-purple-light);
}

/* Table — isolate from theme/Elementor (fixed layout + nowrap caused overlapping cells). */
.crm-app .crm-table-wrap {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: var(--crm-radius-sm);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--crm-glass-border);
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
	max-width: 100%;
}
.crm-app table.crm-table {
	width: max-content;
	min-width: 100%;
	max-width: none;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto !important;
	font-size: 13.5px;
	line-height: 1.4;
}
.crm-app .crm-table th,
.crm-app .crm-table td {
	text-align: start;
	padding: 12px 16px;
	border-bottom: 1px solid var(--crm-border);
	vertical-align: top;
	align-items: start;
	white-space: nowrap;
	word-break: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
}
.crm-app .crm-table th {
	background: var(--crm-table-head-bg);
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--crm-ink-soft);
	position: sticky;
	top: 0;
	z-index: 1;
}
.crm-app .crm-table tbody tr:hover {
	background: var(--crm-row-hover-bg);
}
.crm-app .crm-table tbody tr:last-child td {
	border-bottom: none;
}
.crm-app .crm-table .crm-td--text {
	max-width: 220px;
}
.crm-app .crm-table .crm-td--money {
	text-align: start;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	font-feature-settings: "tnum";
	overflow: visible;
}
.crm-app .crm-table th:has(+ th.crm-td--money),
.crm-app .crm-table .crm-td--money {
	padding-right: 20px;
}
.crm-app .crm-table .crm-td--status,
.crm-app .crm-table .crm-td--actions,
.crm-app .crm-table .crm-td--date,
.crm-app .crm-table .crm-th-checkbox {
	overflow: visible;
	white-space: nowrap;
	max-width: none;
}
.crm-app .crm-table .crm-td--actions {
	text-align: start;
}
.crm-app .crm-table .crm-td--actions .crm-link-btn {
	margin-left: 8px;
}

.crm-badge {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: capitalize;
	color: #fff;
	letter-spacing: 0.01em;
}

/* Pagination */
.crm-pagination {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	font-size: 13px;
	color: var(--crm-ink-soft);
	flex-wrap: wrap;
}

/* Form */
.crm-form {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: var(--crm-radius-md);
	padding: 28px;
	max-width: 560px;
	border: 1px solid var(--crm-glass-border);
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
}
.crm-form__row {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.crm-form__row label {
	font-size: 13px;
	font-weight: 600;
	color: var(--crm-ink);
}
.crm-form__row input,
.crm-form__row select,
.crm-form__row textarea {
	padding: 9px 12px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	font-size: 14px;
	font-family: var(--crm-font-body);
	width: 100%;
}
.crm-form__row input:focus,
.crm-form__row select:focus,
.crm-form__row textarea:focus {
	outline: none;
	border-color: var(--crm-purple);
	box-shadow: 0 0 0 3px var(--crm-purple-light);
}
.crm-form__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.crm-file-current {
	font-size: 12px;
	color: var(--crm-ink-soft);
	margin: 4px 0 0;
}

/* Import panel */
.crm-import-panel {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: var(--crm-radius-md);
	padding: 28px;
	max-width: 640px;
	border: 1px solid var(--crm-glass-border);
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
}
.crm-import-panel .crm-form {
	border: none;
	padding: 0;
	margin-top: 16px;
	max-width: none;
}
.crm-import-fields {
	background: var(--crm-canvas);
	border-radius: var(--crm-radius-sm);
	padding: 12px 14px;
	margin: 14px 0;
	font-size: 13px;
}
.crm-import-fields code {
	display: block;
	margin-top: 6px;
	word-break: break-word;
	background: var(--crm-surface);
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid var(--crm-border);
	font-size: 12px;
}
.crm-help-text {
	color: var(--crm-ink-soft);
	font-size: 12px;
	margin: 8px 0 0;
}

/* ==========================================================================
   Dashboard: stat cards with icons + trend
   ========================================================================== */
.crm-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}
.crm-stat-card {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border: 1px solid var(--crm-glass-border);
	border-radius: var(--crm-radius-lg);
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.crm-stat-card:hover {
	transform: translateY(-2px);
}
.crm-stat-card__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--crm-radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--crm-icon-size);
	flex-shrink: 0;
}
.crm-stat-card--indigo .crm-stat-card__icon { background: var(--crm-purple-light); }
.crm-stat-card--emerald .crm-stat-card__icon { background: var(--crm-icon-tint-emerald); }
.crm-stat-card--sky .crm-stat-card__icon { background: var(--crm-icon-tint-sky); }
.crm-stat-card--amber .crm-stat-card__icon { background: var(--crm-gold-pale); }
.crm-stat-card__body {
	min-width: 0;
}
.crm-stat-card__label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--crm-ink-soft);
	font-weight: 600;
}
.crm-stat-card__value {
	font-family: var(--crm-font-display);
	font-size: 26px;
	font-weight: 600;
	margin: 4px 0 2px;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.crm-stat-card__sub {
	font-size: 12px;
	color: var(--crm-ink-soft);
}
.crm-trend {
	font-weight: 700;
}
.crm-trend--up { color: var(--crm-emerald); }
.crm-trend--down { color: var(--crm-coral); }
.crm-trend--flat { color: var(--crm-ink-soft); }

/* Revenue overview + activity layout */
.crm-dash-row {
	display: flex;
	gap: 16px;
	align-items: stretch;
	margin-bottom: 16px;
}
.crm-dash-col--main {
	flex: 2.1;
	min-width: 0;
}
.crm-dash-col--side {
	flex: 1;
	min-width: 260px;
	display: flex;
	flex-direction: column;
}

.crm-panel {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border: 1px solid var(--crm-glass-border);
	border-radius: var(--crm-radius-lg);
	padding: 22px 24px;
	height: 100%;
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
}
.crm-panel h3 {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
}
.crm-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 6px;
}

.crm-revenue-big {
	font-family: var(--crm-font-display);
	font-size: 30px;
	font-weight: 700;
	margin: 2px 0 14px;
}
.crm-chart-canvas-wrap {
	position: relative;
	width: 100%;
	height: 220px;
}
.crm-chart-canvas-wrap--tall {
	height: 320px;
}
.crm-chart-canvas-wrap canvas {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

/* Activity feed */
.crm-activity-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	max-height: 340px;
	overflow-y: auto;
}
.crm-activity-item {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--crm-border);
}
.crm-activity-item:last-child {
	border-bottom: none;
}
.crm-activity-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--crm-purple-light);
	color: var(--crm-purple-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}
.crm-activity-name {
	font-weight: 600;
	font-size: 13px;
}
.crm-activity-note {
	font-size: 12.5px;
	color: var(--crm-ink-soft);
	line-height: 1.4;
}
.crm-activity-note strong {
	color: var(--crm-ink);
	font-weight: 600;
	text-transform: capitalize;
}
.crm-activity-time {
	font-size: 11px;
	color: var(--crm-time-muted);
	margin-top: 2px;
}
.crm-empty-state {
	color: var(--crm-ink-soft);
	font-size: 13px;
	padding: 12px 0;
}

/* Secondary widget row: status rings + gauge + quick actions */
.crm-widget-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.crm-widget-grid .crm-panel {
	display: flex;
	flex-direction: column;
}

.crm-ring-cluster {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 14px;
	justify-content: space-between;
}
.crm-ring {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.crm-ring::before {
	content: '';
	position: absolute;
	inset: 7px;
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: 50%;
}
.crm-ring-value {
	position: relative;
	z-index: 1;
	font-family: var(--crm-font-display);
	font-weight: 700;
	font-size: 13px;
}
.crm-ring-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--crm-ink-soft);
	text-transform: capitalize;
	text-align: center;
}

.crm-gauge-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding-top: 6px;
}
.crm-gauge {
	position: relative;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.crm-gauge::before {
	content: '';
	position: absolute;
	inset: 14px;
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: 50%;
}
.crm-gauge-value {
	position: relative;
	z-index: 1;
	font-family: var(--crm-font-display);
	font-size: 30px;
	font-weight: 700;
}
.crm-gauge-label {
	margin-top: 12px;
	font-size: 12.5px;
	color: var(--crm-ink-soft);
	text-align: center;
}

/* Horizontal bar breakdown (Projects by status) */
.crm-hbar-list {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.crm-hbar-row {
	font-size: 12.5px;
}
.crm-hbar-row__label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 4px;
	color: var(--crm-ink-soft);
	text-transform: capitalize;
}
.crm-hbar-row__label strong {
	color: var(--crm-ink);
	font-family: var(--crm-font-display);
}
.crm-hbar-track {
	background: var(--crm-canvas);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}
.crm-hbar-fill {
	height: 100%;
	border-radius: 999px;
}

/* Quick actions card */
.crm-quickactions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
	flex: 1;
	justify-content: center;
}
.crm-quickactions__icon {
	font-size: 30px;
	text-align: center;
	margin-bottom: 4px;
}
.crm-quickactions a.crm-btn {
	text-align: center;
}

@media (max-width: 900px) {
	.crm-dash-row {
		flex-direction: column;
	}
	.crm-dash-col--side {
		min-width: 0;
	}
}
@media (max-width: 560px) {
	.crm-widget-grid {
		grid-template-columns: 1fr;
	}
}

/* Legacy list (kept for any custom overrides referencing it) */
.crm-breakdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.crm-breakdown-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--crm-border);
	font-size: 13px;
}
.crm-breakdown-count {
	font-weight: 700;
	font-family: var(--crm-font-display);
}

/* Account tabs */
.crm-account-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--crm-border);
	margin-bottom: 22px;
	flex-wrap: wrap;
}
.crm-account-tab {
	padding: 10px 16px;
	color: var(--crm-ink-soft) !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	position: relative;
}
.crm-account-tab.is-active {
	color: var(--crm-purple) !important;
	border-bottom-color: var(--crm-purple);
	font-weight: 600;
}
.crm-tab-badge {
	display: inline-block;
	background: var(--crm-coral);
	color: #fff;
	font-size: 10px;
	border-radius: 999px;
	padding: 1px 6px;
	margin-left: 4px;
}

/* Profile */
.crm-profile-card {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: var(--crm-radius-md);
	padding: 28px;
	max-width: 480px;
	border: 1px solid var(--crm-glass-border);
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
}
.crm-profile-avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 18px;
	display: block;
	border: 3px solid var(--crm-purple-light);
}

/* Messages */
.crm-messages {
	display: flex;
	gap: 20px;
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: var(--crm-radius-md);
	border: 1px solid var(--crm-glass-border);
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
	min-height: 420px;
	flex-wrap: wrap;
}
.crm-messages__list {
	width: 260px;
	flex-shrink: 0;
	border-right: 1px solid var(--crm-border);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.crm-new-convo {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}
.crm-new-convo select {
	flex: 1;
	padding: 6px;
	border-radius: 8px;
	border: 1px solid var(--crm-border);
	font-size: 12px;
}
.crm-convo-item {
	display: flex;
	flex-direction: column;
	padding: 9px 10px;
	border-radius: var(--crm-radius-sm);
	text-decoration: none !important;
	color: var(--crm-ink) !important;
	position: relative;
}
.crm-convo-item:hover,
.crm-convo-item.is-active {
	background: var(--crm-purple-light);
}
.crm-convo-name {
	font-weight: 600;
	font-size: 13px;
}
.crm-convo-snippet {
	font-size: 12px;
	color: var(--crm-ink-soft);
}
.crm-convo-item .crm-tab-badge {
	position: absolute;
	top: 8px;
	right: 8px;
}
.crm-messages__thread {
	flex: 1;
	min-width: 240px;
	padding: 20px;
	display: flex;
	flex-direction: column;
}
.crm-thread {
	flex: 1;
	overflow-y: auto;
	max-height: 340px;
	margin: 12px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.crm-thread__msg {
	max-width: 70%;
}
.crm-thread__msg.is-mine {
	align-self: flex-end;
	text-align: right;
}
.crm-thread__bubble {
	display: inline-block;
	padding: 9px 13px;
	border-radius: var(--crm-radius-md);
	background: var(--crm-canvas);
	font-size: 13px;
}
.crm-thread__msg.is-mine .crm-thread__bubble {
	background: var(--crm-purple);
	color: #fff;
}
.crm-thread__time {
	font-size: 10px;
	color: var(--crm-time-muted);
	margin-top: 3px;
}
.crm-reply-form {
	display: flex;
	gap: 8px;
}
.crm-reply-form textarea {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	font-family: var(--crm-font-body);
	resize: none;
}

/* Notifications */
.crm-notifications-panel {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border-radius: var(--crm-radius-md);
	padding: 16px 20px;
	border: 1px solid var(--crm-glass-border);
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
	max-width: 640px;
}
.crm-notification-row {
	display: block;
	padding: 13px 10px;
	border-bottom: 1px solid var(--crm-border);
	text-decoration: none !important;
	color: var(--crm-ink) !important;
}
.crm-notification-row.is-unread {
	background: var(--crm-purple-light);
	border-radius: var(--crm-radius-sm);
}
.crm-notification-title {
	font-weight: 600;
	font-size: 13px;
}
.crm-notification-message {
	font-size: 12px;
	color: var(--crm-ink-soft);
	margin-top: 2px;
}
.crm-notification-time {
	font-size: 11px;
	color: var(--crm-time-muted);
	margin-top: 4px;
}

/* Client list (My Work tab) */
.crm-client-list {
	list-style: disc;
	padding-left: 20px;
	font-size: 13px;
}
.crm-account-content h3 {
	margin: 22px 0 10px;
	font-size: 15px;
	font-weight: 600;
}
.crm-account-content h3:first-child {
	margin-top: 0;
}

/* Bulk actions */
.crm-bulk-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.crm-bulk-count-label {
	font-size: 12.5px;
	color: var(--crm-ink-soft);
}
.crm-th-checkbox {
	width: 36px;
	text-align: center !important;
}
.crm-th-checkbox input[type="checkbox"] {
	cursor: pointer;
}

/* Appearance settings form */
.crm-theme-form {
	max-width: 900px;
}
.crm-theme-section {
	background: var(--crm-glass-bg);
	backdrop-filter: blur(var(--crm-glass-blur, 20px));
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 20px));
	border: 1px solid var(--crm-glass-border);
	border-radius: var(--crm-radius-md);
	padding: 22px 26px;
	margin-bottom: 18px;
	box-shadow: var(--crm-glass-shadow, var(--crm-shadow));
}
.crm-theme-section h3 {
	margin: 0 0 14px;
	font-size: 15px;
}
.crm-theme-section h4 {
	margin: 18px 0 4px;
	font-size: 13px;
}
.crm-theme-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 20px;
}
.crm-theme-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.crm-theme-row label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--crm-ink-soft);
}
.crm-theme-row input[type="color"] {
	width: 100%;
	height: 38px;
	padding: 2px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	cursor: pointer;
	background: var(--crm-surface);
}
.crm-theme-row input[type="text"],
.crm-theme-row input[type="number"],
.crm-theme-row select,
.crm-theme-row input[type="file"] {
	padding: 8px 10px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	font-size: 13.5px;
	font-family: var(--crm-font-body);
}

/* Top-nav layout icon list rendering (Font Awesome icons) */
.crm-icon-fa {
	width: 1.2em;
	text-align: center;
	display: inline-block;
}
.crm-icon-img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: inline-block;
	vertical-align: middle;
	border-radius: 4px;
}
.crm-app[data-crm-sidebar-mode="compact"] .crm-icon-img {
	width: 22px;
	height: 22px;
}

/* Icons settings page — per-module upload rows */
.crm-icon-upload-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.crm-icon-upload-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px;
	background: var(--crm-canvas);
	border-radius: var(--crm-radius-sm);
}
.crm-icon-upload-row__preview {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--crm-surface);
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	font-size: 20px;
}
.crm-icon-upload-row__preview img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 4px;
}
.crm-icon-upload-row__fields {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.crm-icon-upload-row__fields > label {
	font-size: 13px;
	font-weight: 600;
}
.crm-icon-upload-row__sublabel {
	font-size: 11px !important;
	font-weight: 500 !important;
	color: var(--crm-ink-soft);
}
.crm-icon-upload-row__remove {
	display: block;
	font-size: 12px;
	color: var(--crm-coral);
	margin-top: 4px;
	font-weight: 500;
}

/* Misc */
.crm-login-notice {
	text-align: center;
	padding: 60px 20px;
}
.crm-login-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 20px;
	background: var(--crm-purple);
	color: #fff !important;
	border-radius: var(--crm-radius-sm);
	text-decoration: none !important;
	font-weight: 600;
}

/* ==========================================================================
   Responsive — tablet & mobile, portrait & landscape
   ========================================================================== */

/* Tablet landscape / small desktop */
@media (max-width: 1100px) {
	.crm-stat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablet portrait (also covers mobile landscape ~ up to 900px handled above for dash-row) */
@media (max-width: 900px) {
	.crm-topbar__search {
		max-width: 220px;
	}
	.crm-main {
		padding: 20px 18px 32px;
	}
}

/* Mobile: collapse sidebar to an off-canvas drawer */
@media (max-width: 780px) {
	.crm-topbar__menu-toggle {
		display: inline-flex;
		align-items: center;
	}
	.crm-topbar__search {
		display: none;
	}
	.crm-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		transform: translateX(-100%);
		box-shadow: 8px 0 24px rgba(20, 23, 31, 0.18);
	}
	.crm-app.is-nav-open .crm-sidebar {
		transform: translateX(0);
	}
	.crm-sidebar__close {
		display: block;
		position: absolute;
		top: 18px;
		right: 16px;
		background: rgba(255, 255, 255, 0.15);
		border: none;
		color: #fff;
		width: 28px;
		height: 28px;
		border-radius: 50%;
		font-size: 15px;
		cursor: pointer;
	}
	.crm-sidebar-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(20, 23, 31, 0.45);
		z-index: 35;
	}
	.crm-app.is-nav-open .crm-sidebar-backdrop {
		display: block;
	}
	.crm-stat-grid {
		grid-template-columns: 1fr 1fr;
	}
	.crm-stat-card {
		padding: 14px 16px;
	}
	.crm-stat-card__value {
		font-size: 20px;
	}
}

/* Small mobile portrait */
@media (max-width: 480px) {
	.crm-stat-grid {
		grid-template-columns: 1fr;
	}
	.crm-module__header h1 {
		font-size: 19px;
	}
	.crm-topbar {
		padding: 12px 16px;
		gap: 10px;
	}
	.crm-topbar__quickadd {
		padding: 8px 12px;
		font-size: 12.5px;
	}
	.crm-panel {
		padding: 16px;
	}
	.crm-revenue-big {
		font-size: 24px;
	}
	.crm-form,
	.crm-import-panel,
	.crm-profile-card,
	.crm-notifications-panel {
		padding: 18px;
	}
	.crm-messages {
		flex-direction: column;
	}
	.crm-messages__list {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--crm-border);
	}
}

/* Landscape phones specifically (short viewport height) */
@media (max-height: 480px) and (orientation: landscape) {
	.crm-app {
		min-height: 100vh;
	}
	.crm-sidebar {
		overflow-y: auto;
	}
}


/* Client invoice table — stacked payments, not extra columns */
.crm-form:has(#crm-payments-editor) {
	max-width: 780px;
}
.crm-app .crm-table--accounts th,
.crm-app .crm-table--accounts td {
	vertical-align: top;
}
.crm-app .crm-table--accounts .crm-td--payments,
.crm-app .crm-table--accounts .crm-td--client,
.crm-app .crm-table--accounts .crm-td--paid,
.crm-app .crm-table--accounts .crm-td--balance,
.crm-app .crm-table--accounts .crm-td--invoice,
.crm-app .crm-table--accounts .crm-td--actions {
	white-space: normal;
	overflow: visible;
	max-width: none;
}
.crm-app .crm-table--accounts .crm-td--client {
	min-width: 180px;
}
.crm-app .crm-table--accounts .crm-td--payments {
	min-width: 320px;
}
.crm-app .crm-table--accounts .crm-td--money,
.crm-app .crm-table--accounts .crm-td--paid,
.crm-app .crm-table--accounts .crm-td--balance {
	text-align: start;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.crm-client-cell {
	display: flex;
	align-items: start;
	gap: 12px;
}
.crm-client-avatar {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #EEF2FF;
	color: #4338CA;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.02em;
}
.crm-client-cell__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.crm-client-cell__name {
	font-size: 14px;
	color: var(--crm-ink);
}
.crm-client-cell__sub {
	font-size: 12px;
	color: var(--crm-ink-soft);
	font-weight: 400;
}

.crm-pay-stack {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 6px;
}
.crm-pay-empty {
	font-size: 12px;
	color: var(--crm-ink-soft);
}
.crm-pay-chip {
	display: flex;
	align-items: start;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.2;
	width: max-content;
	max-width: 100%;
}
.crm-pay-chip.is-paid {
	background: #ECFDF5;
	color: #047857;
}
.crm-pay-chip.is-due {
	background: #FFF7ED;
	color: #C2410C;
}
.crm-pay-chip__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: 0 0 7px;
	background: currentColor;
	margin:4px 0px;
}
.crm-pay-chip.is-paid .crm-pay-chip__dot { background: #10B981; }
.crm-pay-chip.is-due .crm-pay-chip__dot { background: #F59E0B; }
.crm-pay-chip__label {
	font-weight: 600;
	color: var(--crm-ink);
}
.crm-pay-chip__date {
	color: var(--crm-ink-soft);
	font-size: 11px;
}
.crm-pay-chip__amt {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	margin-left: 4px;
	color: inherit;
}
.crm-pay-chip.is-paid .crm-pay-chip__amt { color: #047857; }
.crm-pay-chip.is-due .crm-pay-chip__amt { color: #C2410C; }
.crm-pay-chip__badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-left: 4px;
}
.crm-pay-add {
	font-size: 13px;
	font-weight: 600;
	color: #2563EB;
	text-decoration: none;
	margin-top: 4px;
}
.crm-pay-add:hover { text-decoration: underline; }

.crm-paid-cell {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 6px;
	min-width: 88px;
}
.crm-paid-bar {
	width: 72px;
	height: 5px;
	border-radius: 999px;
	background: #E5E7EB;
	overflow: hidden;
}
.crm-paid-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #2563EB;
}
.crm-paid-bar.is-complete span {
	background: #16A34A;
}

.crm-balance.is-clear { color: #16A34A; }
.crm-balance.is-due { color: #EA580C; }

.crm-invoice-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.crm-invoice-status--draft { background: #EEF2FF; color: #4338CA; }
.crm-invoice-status--sent { background: #ECFDF5; color: #047857; }
.crm-invoice-status--pending { background: #FFF7ED; color: #C2410C; }
.crm-invoice-file {
	display: block;
	font-size: 11px;
	margin-top: 4px;
	color: #2563EB;
}

.crm-app .crm-table--accounts .crm-td--actions .crm-link-btn {
	display: inline-block;
	border: 1px solid var(--crm-border);
	border-radius: 8px;
	padding: 6px 12px;
	margin: 0 0 0 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	background: #fff;
}
.crm-app .crm-table--accounts .crm-td--actions .crm-link-btn--danger {
	border-color: #FECACA;
	color: #DC2626;
}

.crm-pay-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--crm-ink-soft);
}
.crm-pay-chip--legend {
	padding: 4px 10px;
}
.crm-pay-legend__note { color: var(--crm-ink-soft); }

.crm-pay-editor-row {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr 1fr 0.7fr auto;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}
.crm-pay-editor-row input,
.crm-pay-editor-row select {
	padding: 8px 10px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius-sm);
	font-size: 13px;
	font-family: var(--crm-font-body);
	width: 100%;
}

.crm-app[data-crm-theme="dark"] .crm-client-avatar {
	background: rgba(99, 102, 241, 0.2);
	color: #C7D2FE;
}
.crm-app[data-crm-theme="dark"] .crm-pay-chip.is-paid { background: rgba(16, 185, 129, 0.15); }
.crm-app[data-crm-theme="dark"] .crm-pay-chip.is-due { background: rgba(245, 158, 11, 0.15); }
.crm-app[data-crm-theme="dark"] .crm-paid-bar { background: rgba(255,255,255,0.12); }
.crm-app[data-crm-theme="dark"] .crm-table--accounts .crm-td--actions .crm-link-btn {
	background: transparent;
}

@media (max-width: 720px) {
	.crm-pay-editor-row {
		grid-template-columns: 1fr 1fr;
	}
}


/* Compact accounts money bar (Total paid / Total dues) */
.crm-pay-overview {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.crm-pay-overview__card {
	flex: 1 1 240px;
	min-width: 0;
	background: var(--crm-glass-bg, rgba(255,255,255,0.42));
	backdrop-filter: blur(var(--crm-glass-blur, 18px)) saturate(1.35);
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 18px)) saturate(1.35);
	border: 1px solid var(--crm-glass-border, rgba(255,255,255,0.2));
	border-radius: 8px;
	padding: 16px;
	box-shadow: var(--crm-glass-shadow, 0 4px 16px rgba(15,23,42,0.06));
}
.crm-pay-overview__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--crm-ink-soft);
	font-weight: 600;
	text-align: start;
}
.crm-pay-overview__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 4px;
}
.crm-pay-overview__value {
	font-family: var(--crm-font-display);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-align: start;
}
.crm-pay-spark-wrap {
	position: relative;
	flex: 0 0 110px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}
.crm-pay-overview__card.is-due .crm-pay-spark-wrap {
	background: none;
}
.crm-pay-spark {
	display: block;
	width: 110px;
	height: 32px;
}
.crm-tick-bar {
	display: flex;
	align-items: start;
	gap: 2px;
	height: 8px;
	margin-bottom: 4px;
}
.crm-tick-bar span {
	flex: 1 1 0;
	max-width: 4px;
	height: 100%;
	border-radius: 1px;
	background: #E5E7EB;
}
.crm-pay-overview__card.is-total .crm-tick-bar span.is-on { background: #2563EB; }
.crm-pay-overview__card.is-paid .crm-tick-bar span.is-on { background: #16A34A; }
.crm-pay-overview__card.is-due .crm-tick-bar span.is-on { background: #EA580C; }
.crm-pay-overview__trend {
	font-size: 11px;
	color: var(--crm-ink-soft);
	text-align: start;
}
.crm-app[data-crm-theme="dark"] .crm-tick-bar span { background: rgba(255,255,255,0.12); }


.crm-count-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	padding: 8px 16px;
	border-radius: 14px;
	background: var(--crm-glass-bg, rgba(255,255,255,0.45));
	backdrop-filter: blur(var(--crm-glass-blur, 18px)) saturate(1.3);
	-webkit-backdrop-filter: blur(var(--crm-glass-blur, 18px)) saturate(1.3);
	border: 1px solid var(--crm-glass-border, rgba(255,255,255,0.55));
	box-shadow: var(--crm-glass-shadow, 0 6px 20px rgba(15,23,42,0.06));
	min-height: 64px;
}
.crm-count-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	min-width: 0;
}
.crm-count-hero__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	color: var(--crm-ink-soft);
	text-align: start;
}
.crm-count-hero__value {
	font-family: var(--crm-font-display);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--crm-ink);
	text-align: start;
}
.crm-count-hero__trend {
	font-size: 11px;
	color: var(--crm-ink-soft);
	text-align: start;
}
.crm-count-hero__spark {
	flex: 0 0 132px;
	width: 132px;
	height: 40px;
	display: block;
}
.crm-count-hero.is-leads .crm-count-hero__value { color: #1D4ED8; }
.crm-count-hero.is-projects .crm-count-hero__value { color: #047857; }


/* Home dashboard (command center) */
.crm-home { max-width: 100%; min-width: 0; }
	.crm-home-main, .crm-home-side, .crm-home-mount, .crm-home-panel { min-width: 0; max-width: 100%; }
	.crm-app .crm-home p { margin: 0 0 6px; }
	.crm-home-table-wrap { overflow-x: auto; max-width: 100%; }
.crm-home-greet {
	font-family: var(--crm-font-display);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.03em;
	margin: 0 0 4px;
}
.crm-home-sub { margin: 0 0 18px; color: var(--crm-ink-soft); font-size: 14px; }
.crm-home-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.crm-home-side { display: flex; flex-direction: column; gap: 14px; }
.crm-kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.crm-kpi {
	border-radius: 16px;
	padding: 14px 14px 12px;
	min-height: 108px;
}
.crm-kpi__icon {
	width: 28px; height: 28px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 700; margin-bottom: 8px;
	background: rgba(255,255,255,0.7);
}
.crm-kpi__label { font-size: 12px; color: var(--crm-ink-soft); font-weight: 600; }
.crm-kpi__value {
	font-family: var(--crm-font-display);
	font-size: 22px; font-weight: 650; letter-spacing: -0.03em;
	margin: 4px 0 2px; line-height: 1.15;
}
.crm-kpi__sub { font-size: 11.5px; color: var(--crm-ink-soft); }
.crm-kpi--peach { background: #FFE8D6; }
.crm-kpi--rose { background: #F8D7E3; }
.crm-kpi--sky { background: #D7E8FF; }
.crm-kpi--lilac { background: #E6D9FF; }
.crm-kpi--mint { background: #D8F3E4; }
.crm-home-panel {
	background: var(--crm-glass-bg, #fff);
	border: 1px solid var(--crm-glass-border, #E5EEEC);
	border-radius: 16px;
	padding: 14px 16px 16px;
	margin-bottom: 14px;
	box-shadow: var(--crm-glass-shadow, 0 8px 24px rgba(15,23,42,0.04));
}
.crm-home-panel__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.crm-home-panel__head h2, .crm-home-panel__head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.crm-home-panel__meta { font-size: 12.5px; color: var(--crm-ink-soft); }
.crm-pipe { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 10px; }
.crm-pipe-col { border-radius: 14px; padding: 10px; min-height: 180px; min-width: 0; overflow: hidden; }
.crm-pipe-col--blue { background: #E8F0FF; color: #1E3A8A; }
.crm-pipe-col--lilac { background: #F3E8FF; color: #6B21A8; }
.crm-pipe-col--green { background: #E4F4EC; color: #14532D; }
.crm-pipe-col--gold { background: #FBF3DC; color: #854D0E; }
.crm-pipe-col--coral { background: #FDE8EF; color: #9F1239; }
.crm-pipe-col__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; margin-bottom: 8px; color: inherit; }
.crm-deal {
	display: block; background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
	text-decoration: none; color: #111827; box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}
.crm-deal__title, .crm-deal__sub, .crm-deal__date, .crm-deal__amt {
		overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
	}
	.crm-deal__title { font-weight: 650; font-size: 13px; color: #111827; }
.crm-deal__sub, .crm-deal__date { font-size: 11px; color: #6B7280; }
.crm-deal__amt { font-size: 12.5px; font-weight: 650; margin-top: 2px; color: #111827; }
.crm-deal__tag {
	display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px;
	font-size: 10px; font-weight: 650; background: #EEF2FF; color: #3730A3;
}
.crm-status-cell { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crm-badge--tag { font-size: 11px; font-weight: 650; }
.crm-pipe-add { display: block; text-align: center; font-size: 12px; font-weight: 650; padding: 8px; margin-top: 4px; color: inherit; text-decoration: none; background: rgba(15, 23, 42, 0.06); border-radius: 10px; }
.crm-pipe-empty { font-size: 12px; color: var(--crm-ink-soft); margin: 8px 0; }
	.crm-pipe-col .crm-pipe-empty { color: inherit; opacity: 0.7; }
.crm-qa__list { display: flex; flex-direction: column; gap: 6px; }
.crm-qa__list a {
	display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none;
	color: var(--crm-ink); font-size: 13px; font-weight: 600; background: rgba(15,88,80,0.06);
}
.crm-today ul { list-style: none; margin: 0; padding: 0; }
.crm-today li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.crm-today__h { font-size: 12px; font-weight: 700; margin: 8px 0 4px; }
.crm-today__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-pri { font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 7px; background: #EEF2FF; color: #3730A3; text-transform: capitalize; }
.crm-pri--high { background: #FEE2E2; color: #B91C1C; }
.crm-pri--med { background: #FFEDD5; color: #C2410C; }
.crm-stage-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.crm-stage-pill {
	flex: 1 1 90px; background: #F8FAFC; border-radius: 12px; padding: 8px 10px; text-align: start;
}
.crm-stage-pill span { display: block; font-size: 12px; color: var(--crm-ink-soft); }
.crm-stage-pill strong { font-size: 20px; font-family: var(--crm-font-display); }
.crm-home-h3 { font-size: 13px; margin: 4px 0 8px; }
.crm-home-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.crm-home-table th { text-align: start; color: var(--crm-ink-soft); font-weight: 600; padding: 6px 8px; }
.crm-home-table td { padding: 8px; border-top: 1px solid var(--crm-border, #E5EEEC); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-chip-mini { font-size: 11px; background: #EEF2FF; border-radius: 999px; padding: 2px 8px; }
.crm-home-split { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 14px; }
.crm-fin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.crm-fin-kpis__v { font-size: 18px; font-weight: 650; font-family: var(--crm-font-display); }
.crm-fin-kpis__l { font-size: 11px; color: var(--crm-ink-soft); }
.crm-inv-list { list-style: none; margin: 0; padding: 0; }
.crm-inv-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--crm-border, #E5EEEC); font-size: 12.5px; }
.crm-inv-st { font-style: normal; font-size: 11px; font-weight: 700; }
.crm-inv-st.is-paid { color: #047857; }
.crm-inv-st.is-due, .crm-inv-st.is-pending { color: #C2410C; }
.crm-act2 { list-style: none; margin: 0; padding: 0; }
.crm-act2 li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; padding: 8px 0; font-size: 12.5px; border-top: 1px solid var(--crm-border, #E5EEEC); }
.crm-act2__dot { width: 8px; height: 8px; border-radius: 50%; background: #0F5850; margin-top: 6px; }
.crm-act2 time { color: var(--crm-ink-soft); font-size: 11px; }
.crm-cal__track { display: flex; gap: 10px; overflow-x: auto; }
.crm-cal__slot { min-width: 160px; flex: 1; border-radius: 12px; padding: 10px 12px; background: #F1F5F9; }
.crm-cal__slot strong { display: block; font-size: 12px; }
.crm-cal__slot span { font-size: 12.5px; }
.crm-cal__slot.is-meeting { background: #E0F2FE; }
.crm-cal__slot.is-project { background: #EDE9FE; }
@media (max-width: 1100px) {
	.crm-home-body, .crm-home-split, .crm-kpi-row, .crm-pipe { grid-template-columns: 1fr; }
	.crm-home-side { order: -1; }
}

.crm-home-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.crm-home-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-home-filter select, .crm-home-filter input[type="date"] {
	border: 1px solid var(--crm-border, #E5EEEC); border-radius: 10px; padding: 6px 10px; background: #fff; font-size: 13px;
}
.crm-home-mount { position: relative; min-height: 120px; }
.crm-home.is-loading .crm-home-body { opacity: 0.45; pointer-events: none; }
.crm-home-loading {
	position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
	background: #0F5850; color: #fff; font-size: 12px; font-weight: 650;
	padding: 6px 12px; border-radius: 999px; z-index: 2;
}
a.crm-kpi { text-decoration: none; color: inherit; display: block; cursor: pointer; }
a.crm-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.crm-home .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.crm-app[data-crm-theme="dark"] .crm-kpi--peach { background: #4A3428; color: #FDE8D8; }
.crm-app[data-crm-theme="dark"] .crm-kpi--rose { background: #4A2A38; color: #F8D7E3; }
.crm-app[data-crm-theme="dark"] .crm-kpi--sky { background: #243A52; color: #D7E8FF; }
.crm-app[data-crm-theme="dark"] .crm-kpi--lilac { background: #35284A; color: #E6D9FF; }
.crm-app[data-crm-theme="dark"] .crm-kpi--mint { background: #1E3A32; color: #D8F3E4; }
.crm-app[data-crm-theme="dark"] .crm-kpi__icon { background: rgba(0,0,0,0.25); color: inherit; }
.crm-app[data-crm-theme="dark"] .crm-kpi__label,
.crm-app[data-crm-theme="dark"] .crm-kpi__sub { color: rgba(255,255,255,0.72); }
.crm-app[data-crm-theme="dark"] .crm-pipe-col--blue { background: #1C2A3D; }
.crm-app[data-crm-theme="dark"] .crm-pipe-col--lilac { background: #2A2340; }
.crm-app[data-crm-theme="dark"] .crm-pipe-col--green { background: #1A3328; }
.crm-app[data-crm-theme="dark"] .crm-pipe-col--gold { background: #3D2E12; }
.crm-app[data-crm-theme="dark"] .crm-pipe-col--coral { background: #3D1524; }
.crm-app[data-crm-theme="dark"] .crm-deal { background: #ffffff12; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill { background: rgba(255,255,255,0.06); }
.crm-app[data-crm-theme="dark"] .crm-chip-mini { background: rgba(255,255,255,0.08); color: var(--crm-ink); }
.crm-app[data-crm-theme="dark"] .crm-cal__slot { background: rgba(255,255,255,0.06); }
.crm-app[data-crm-theme="dark"] .crm-cal__slot.is-meeting { background: #163246; }
.crm-app[data-crm-theme="dark"] .crm-cal__slot.is-project { background: #2A2442; }
.crm-app[data-crm-theme="dark"] .crm-qa__list a { background: rgba(255,255,255,0.06); }
.crm-app[data-crm-theme="dark"] .crm-pri { background: #2A3148; color: #C7D2FE; }
.crm-app[data-crm-theme="dark"] .crm-pri--high { background: #3F1D1D; color: #FCA5A5; }
.crm-app[data-crm-theme="dark"] .crm-pri--med { background: #3F2A16; color: #FDBA74; }
.crm-app[data-crm-theme="dark"] a.crm-kpi:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.crm-app[data-crm-theme="dark"] .crm-btn,
.crm-app[data-crm-theme="dark"] .crm-btn-ghost,
.crm-app[data-crm-theme="dark"] .crm-table thead,
.crm-app[data-crm-theme="dark"] .crm-card {
	color: var(--crm-ink);
}
.crm-app[data-crm-theme="dark"] .crm-table td,
.crm-app[data-crm-theme="dark"] .crm-table th {
	border-color: var(--crm-border);
	color: var(--crm-ink);
}

.crm-cal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.crm-cal-bar__nav { display: flex; align-items: center; gap: 6px; }
.crm-cal-btn, .crm-cal-icon, .crm-cal-views button {
	border: 1px solid var(--crm-border); background: var(--crm-surface); color: var(--crm-ink);
	border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 650; cursor: pointer;
}
.crm-cal-icon { width: 32px; padding: 6px 0; }
.crm-cal-title { font-size: 15px; margin-left: 6px; }
.crm-cal-views { display: flex; margin-left: auto; border: 1px solid var(--crm-border); border-radius: 8px; overflow: hidden; }
.crm-cal-views button { border: 0; border-radius: 0; background: transparent; }
.crm-cal-views button.is-on { background: #E11D48; color: #fff; }
.crm-cal-search input {
	border: 1px solid var(--crm-border); border-radius: 8px; padding: 6px 10px; font-size: 13px;
	background: var(--crm-surface); color: var(--crm-ink); min-width: 140px;
}
.crm-cal-month {
	display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
	border: 1px solid var(--crm-border); border-radius: 12px; overflow: hidden;
}
.crm-cal-wd {
	padding: 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
	color: var(--crm-ink-soft); text-align: center; background: rgba(15,88,80,.04);
	border-bottom: 1px solid var(--crm-border);
}
.crm-cal-cell {
	min-height: 92px; padding: 6px; border-right: 1px solid var(--crm-border);
	border-bottom: 1px solid var(--crm-border); background: var(--crm-surface, #fff);
}
.crm-cal-cell.is-mute { opacity: .45; }
.crm-cal-cell.is-today { background: #E8F4FF; box-shadow: inset 0 0 0 2px #7DD3FC; }
.crm-cal-cell.is-week { min-height: 160px; }
.crm-cal-num { font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.crm-cal-evt {
	display: block; font-size: 11px; font-weight: 650; line-height: 1.25;
	padding: 2px 6px; border-radius: 4px; margin-bottom: 3px; text-decoration: none;
	color: #14532D; background: #BBF7D0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crm-cal-evt--blue { background: #BFDBFE; color: #1E3A8A; }
.crm-cal-evt--teal { background: #A7F3D0; color: #065F46; }
.crm-cal-evt--green { background: #86EFAC; color: #14532D; }
.crm-cal-evt--purple { background: #DDD6FE; color: #5B21B6; }
.crm-cal-evt--red { background: #FECACA; color: #991B1B; }
.crm-cal-more { font-size: 10px; color: var(--crm-ink-soft); }
.crm-cal-daylist { display: flex; flex-direction: column; gap: 6px; }
.crm-cal-daylist .crm-cal-evt { white-space: normal; padding: 8px 10px; font-size: 13px; }
.crm-cal-year { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.crm-cal-ymin {
	text-align: left; border: 1px solid var(--crm-border); border-radius: 12px; padding: 10px;
	background: var(--crm-surface); color: var(--crm-ink); cursor: pointer;
}
.crm-cal-ydots { font-size: 12px; color: var(--crm-ink-soft); margin-top: 6px; }
.crm-app[data-crm-theme="dark"] .crm-cal-cell { background: rgba(255,255,255,.03); }
.crm-app[data-crm-theme="dark"] .crm-cal-cell.is-today { background: #163246; }
.crm-app[data-crm-theme="dark"] .crm-cal-wd { background: rgba(255,255,255,.04); }
@media (max-width: 900px) {
	.crm-cal-year { grid-template-columns: 1fr 1fr; }
	.crm-cal-cell { min-height: 72px; }
}

.crm-main { position: relative; min-height: 240px; }
.crm-main.is-loading { opacity: 0.55; pointer-events: none; }
.crm-main.is-loading::after {
	content: "Loading…";
	position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
	background: #0F5850; color: #fff; font-size: 12px; font-weight: 650;
	padding: 6px 12px; border-radius: 999px; z-index: 5; pointer-events: none;
}

.crm-cal-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-cal-custom select, .crm-cal-custom input[type="date"] {
	border: 1px solid var(--crm-border); border-radius: 8px; padding: 6px 10px;
	background: var(--crm-surface); color: var(--crm-ink); font-size: 13px;
}
.crm-cal-cell.is-range { background: rgba(225, 29, 72, 0.10); }
.crm-app[data-crm-theme="dark"] .crm-cal-cell.is-range { background: rgba(225, 29, 72, 0.22); }

.crm-stage-pill--pre_production { background: #F1F5F9; color: #334155; }
.crm-stage-pill--pre_production span { color: #64748B; }
.crm-stage-pill--production { background: #E0F2FE; color: #0369A1; }
.crm-stage-pill--production span { color: #0284C7; }
.crm-stage-pill--post_production { background: #EDE9FE; color: #5B21B6; }
.crm-stage-pill--post_production span { color: #7C3AED; }
.crm-stage-pill--completed { background: #DCFCE7; color: #166534; }
.crm-stage-pill--completed span { color: #16A34A; }
.crm-stage-pill--cancelled { background: #FEE2E2; color: #991B1B; }
.crm-stage-pill--cancelled span { color: #DC2626; }
.crm-chip-mini--pre_production { background: #E2E8F0; color: #334155; }
.crm-chip-mini--production { background: #BAE6FD; color: #075985; }
.crm-chip-mini--post_production { background: #DDD6FE; color: #5B21B6; }
.crm-chip-mini--completed { background: #BBF7D0; color: #166534; }
.crm-chip-mini--cancelled { background: #FECACA; color: #991B1B; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--pre_production { background: #1e293b52; color: #E2E8F0; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--production { background: #0c4a6e52; color: #BAE6FD; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--post_production { background: #2e10654b; color: #DDD6FE; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--completed { background: #14532d53; color: #BBF7D0; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--cancelled { background: #7f1d1d4d; color: #FECACA; }

.crm-kpi { position: relative; padding-right: 62px; }
.crm-kpi::after { display: none !important; }
.crm-kpi__pie {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 52px;
	height: 52px;
	z-index: 2;
}
.crm-kpi-chart { width: 52px !important; height: 52px !important; }

.crm-kpi { overflow: visible !important; }
.crm-kpi-row { overflow: visible; }
.crm-kpi-tip {
	position: absolute;
	z-index: 100000;
	pointer-events: none;
	transform: translate(-50%, -100%);
	background: #111827;
	color: #F8FAFC;
	font-size: 12px;
	line-height: 1.35;
	padding: 8px 10px;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.28);
	opacity: 0;
	visibility: hidden;
	white-space: nowrap;
}
.crm-kpi-tip.is-on { opacity: 1; visibility: visible; }
.crm-kpi-tip strong { display: block; margin-bottom: 2px; color: #fff; }
.crm-kpi-tip.is-dark {
	background: #F8FAFC;
	color: #111827;
}
.crm-kpi-tip.is-dark strong { color: #111827; }

.crm-app[data-crm-theme="dark"] .crm-pipe-col,
.crm-app[data-crm-theme="dark"] .crm-pipe-col__head,
.crm-app[data-crm-theme="dark"] .crm-pipe-col .crm-pipe-empty,
.crm-app[data-crm-theme="dark"] .crm-pipe-add {
	color: #F1F5F9 !important;
}
.crm-app[data-crm-theme="dark"] .crm-deal {
	background: rgba(15, 23, 42, 0.45) !important;
	color: #F8FAFC !important;
}
.crm-app[data-crm-theme="dark"] .crm-deal__title,
.crm-app[data-crm-theme="dark"] .crm-deal__amt {
	color: #F8FAFC !important;
}
.crm-app[data-crm-theme="dark"] .crm-deal__sub,
.crm-app[data-crm-theme="dark"] .crm-deal__date {
	color: #CBD5E1 !important;
}

html.crm-is-dark .crm-app,
.crm-app.is-dark,
.crm-app[data-crm-theme="dark"] {
	--crm-ink: #EDEFF3 !important;
	--crm-ink-soft: #9AA1B0 !important;
	--crm-canvas: #0B0E13 !important;
	--crm-surface: #1B1F29 !important;
	--crm-border: #2A2F3B !important;
	--crm-glass-bg: rgba(255, 255, 255, 0.055) !important;
	--crm-glass-border: rgba(255, 255, 255, 0.09) !important;
	background: #0B0E13 !important;
	color: #EDEFF3 !important;
}
html.crm-is-dark .crm-app .crm-app__body,
.crm-app.is-dark .crm-app__body,
.crm-app[data-crm-theme="dark"] .crm-app__body {
	background:
		radial-gradient(circle at 12% 8%, rgba(27, 110, 99, 0.30), transparent 42%),
		radial-gradient(circle at 88% 14%, rgba(201, 154, 62, 0.22), transparent 40%),
		#0B0E13 !important;
	color: #EDEFF3 !important;
}

.crm-kpi--peach .crm-kpi__value { color: #C2410C !important; }
.crm-kpi--rose .crm-kpi__value { color: #BE185D !important; }
.crm-kpi--sky .crm-kpi__value { color: #0369A1 !important; }
.crm-kpi--lilac .crm-kpi__value { color: #6D28D9 !important; }
.crm-kpi--mint .crm-kpi__value { color: #047857 !important; }
.crm-app[data-crm-theme="dark"] .crm-kpi--peach .crm-kpi__value { color: #FBBF24 !important; }
.crm-app[data-crm-theme="dark"] .crm-kpi--rose .crm-kpi__value { color: #F9A8D4 !important; }
.crm-app[data-crm-theme="dark"] .crm-kpi--sky .crm-kpi__value { color: #38BDF8 !important; }
.crm-app[data-crm-theme="dark"] .crm-kpi--lilac .crm-kpi__value { color: #C4B5FD !important; }
.crm-app[data-crm-theme="dark"] .crm-kpi--mint .crm-kpi__value { color: #34D399 !important; }

.crm-fin-kpis > div:nth-child(1) { background: #E0F2FE !important; }
.crm-fin-kpis > div:nth-child(1) .crm-fin-kpis__v { color: #0369A1 !important; }
.crm-fin-kpis > div:nth-child(2) { background: #FEE2E2 !important; }
.crm-fin-kpis > div:nth-child(2) .crm-fin-kpis__v { color: #991B1B !important; }
.crm-fin-kpis > div:nth-child(3) { background: #DCFCE7 !important; }
.crm-fin-kpis > div:nth-child(3) .crm-fin-kpis__v { color: #166534 !important; }
.crm-fin-kpis > div:nth-child(4) { background: #EDE9FE !important; }
.crm-fin-kpis > div:nth-child(4) .crm-fin-kpis__v { color: #5B21B6 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) { background: #0C4A6E !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) .crm-fin-kpis__v { color: #BAE6FD !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) { background: #7F1D1D !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) .crm-fin-kpis__v { color: #FECACA !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) { background: #14532D !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) .crm-fin-kpis__v { color: #BBF7D0 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) { background: #2E1065 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) .crm-fin-kpis__v { color: #DDD6FE !important; }

.crm-fin-kpis > div:nth-child(1) .crm-fin-kpis__l { color: #0369A1 !important; }
.crm-fin-kpis > div:nth-child(2) .crm-fin-kpis__l { color: #991B1B !important; }
.crm-fin-kpis > div:nth-child(3) .crm-fin-kpis__l { color: #166534 !important; }
.crm-fin-kpis > div:nth-child(4) .crm-fin-kpis__l { color: #5B21B6 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) .crm-fin-kpis__l { color: #7DD3FC !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) .crm-fin-kpis__l { color: #FCA5A5 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) .crm-fin-kpis__l { color: #86EFAC !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) .crm-fin-kpis__l { color: #C4B5FD !important; }

.crm-fin-kpis { gap: 12px; }
.crm-fin-kpis > div {
	padding: 16px 18px !important;
	border-radius: 16px !important;
}
.crm-app[data-crm-theme="dark"] .crm-stage-pill,
.crm-app[data-crm-theme="dark"] .crm-stage-pill span,
.crm-app[data-crm-theme="dark"] .crm-stage-pill strong {
	color: #F8FAFC !important;
}
.crm-app[data-crm-theme="dark"] .crm-stage-pill--pre_production { background: #3d4f6654 !important; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--production { background: #1d7ab05a !important; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--post_production { background: #6d3cc955 !important; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--completed { background: #1f9a5c4f !important; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--cancelled { background: #d645454a !important; }

.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) { background: #1D7AB0 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) { background: #D64545 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) { background: #1F9A5C !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) { background: #6D3CC9 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div .crm-fin-kpis__v,
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div .crm-fin-kpis__l {
	color: #F8FAFC !important;
}

.crm-fin-kpis > div {
	padding: 8px 12px !important;
	border-radius: 8px !important;
}
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) { background: #0E3344 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) .crm-fin-kpis__v { color: #F1F5F9 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(1) .crm-fin-kpis__l { color: #5EB3C4 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) { background: #4A2228 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) .crm-fin-kpis__v { color: #F5B4AE !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(2) .crm-fin-kpis__l { color: #E08B84 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) { background: #16382C !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) .crm-fin-kpis__v { color: #A7E3B8 !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(3) .crm-fin-kpis__l { color: #6FCF8A !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) { background: #2A1B4A !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) .crm-fin-kpis__v { color: #DDD6FE !important; }
.crm-app[data-crm-theme="dark"] .crm-fin-kpis > div:nth-child(4) .crm-fin-kpis__l { color: #A78BFA !important; }

.crm-stage-pill__row {
	display: flex;
	align-items: center;
	gap: 8px;
	/* margin-top: 4px; */
}
.crm-segbar {
	display: flex;
	gap: 2px;
	flex: 1;
	min-width: 48px;
	height: 10px;
	align-items: center;
}
.crm-segbar__tick {
	flex: 1;
	height: 8px;
	border-radius: 1px;
	background: rgba(15, 23, 42, 0.14);
	display: block;
}
.crm-segbar__tick.is-on { background: currentColor; }
.crm-stage-pill--pre_production .crm-segbar__tick.is-on { background: #64748B; }
.crm-stage-pill--production .crm-segbar__tick.is-on { background: #0284C7; }
.crm-stage-pill--post_production .crm-segbar__tick.is-on { background: #7C3AED; }
.crm-stage-pill--completed .crm-segbar__tick.is-on { background: #16A34A; }
.crm-stage-pill--cancelled .crm-segbar__tick.is-on { background: #DC2626; }
.crm-app[data-crm-theme="dark"] .crm-segbar__tick { background: rgba(255,255,255,0.18); }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--pre_production .crm-segbar__tick.is-on { background: #94A3B8; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--production .crm-segbar__tick.is-on { background: #7DD3FC; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--post_production .crm-segbar__tick.is-on { background: #C4B5FD; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--completed .crm-segbar__tick.is-on { background: #4ADE80; }
.crm-app[data-crm-theme="dark"] .crm-stage-pill--cancelled .crm-segbar__tick.is-on { background: #FCA5A5; }

.crm-stage-pills { align-items: start; }
.crm-stage-pill { overflow: hidden; align-self: start; }
.crm-stage-pill__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	min-height: 0;
	height: auto;
}
.crm-segbar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 40px;
	max-width: 100%;
	height: 8px !important;
	max-height: 8px !important;
	overflow: hidden;
}
.crm-segbar__tick {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	height: 8px !important;
	max-height: 8px !important;
	border-radius: 1px;
	display: block;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
}

.crm-stage-pill .crm-segbar {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	height: 4px !important;
	max-height: 8px !important;
}
.crm-stage-pill .crm-segbar__tick {
	display: block !important;
	flex: 1 1 0 !important;
	height: 8px !important;
	max-height: 8px !important;
	width: auto !important;
}

.crm-stage-pills {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: stretch;
}
.crm-stage-pill { min-width: 0; }
@media (max-width: 900px) {
	.crm-stage-pills { grid-template-columns: 1fr; }
}

.crm-kpi__icon img {
	width: 16px;
	height: 16px;
	display: block;
	object-fit: contain;
}
.crm-kpi--peach .crm-kpi__icon { color: #C2410C; }
.crm-kpi--rose .crm-kpi__icon { color: #BE185D; }
.crm-kpi--sky .crm-kpi__icon { color: #0369A1; }
.crm-kpi--lilac .crm-kpi__icon { color: #6D28D9; }
.crm-kpi--mint .crm-kpi__icon { color: #047857; }


.crm-kpi__icon svg {
	width: var(--crm-kpi-icon-size, 18px);
	height: var(--crm-kpi-icon-size, 18px);
	display: block;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	color: inherit;
}
.crm-kpi__icon svg [fill]:not([fill="none"]) { fill: currentColor; stroke: none; }
.crm-kpi__icon svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.crm-sidebar .crm-icon-svg {
	width: 1.15em;
	height: 1.15em;
	display: inline-block;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
}
.crm-sidebar .crm-icon-svg [fill]:not([fill="none"]) { fill: currentColor; }
.crm-icon-fa { color: inherit; }
.crm-sidebar .crm-icon-svg {
	width: 1.15em;
	height: 1.15em;
	max-width: 22px;
	max-height: 22px;
	display: inline-block;
	vertical-align: middle;
	overflow: hidden;
}
.crm-sidebar .crm-icon-svg [fill]:not([fill="none"]) { fill: currentColor; }

.crm-check-grid { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.crm-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.crm-deal__tag { margin-right: 4px; }

.crm-stage-subs { list-style: none; margin: 8px 0 0; padding: 0; font-size: 11px; }
.crm-stage-subs li { display: flex; justify-content: space-between; gap: 8px; opacity: 0.92; padding: 2px 0; }
.crm-stage-subs strong { font-weight: 700; }

.crm-stage-pill { cursor: pointer; }
.crm-stage-pill__sum {
	list-style: none;
	cursor: pointer;
	display: block;
}
.crm-stage-pill__sum::-webkit-details-marker { display: none; }
.crm-stage-pill__sum::after {
	content: "";
	float: right;
	width: 0; height: 0;
	margin-top: 6px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	opacity: 0.7;
	transition: transform .15s ease;
}
.crm-stage-pill[open] > .crm-stage-pill__sum::after {
	transform: rotate(180deg);
}
.crm-stage-pill:not([open]) .crm-stage-subs { display: none; }


.crm-today-tabs { margin-top: 8px; }
.crm-today-tabs__bar {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	padding: 0 10px;
}
.crm-today-tabs__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: #64748B;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 18px 12px;
	cursor: pointer;
	border-radius: 14px 14px 0 0;
	position: relative;
	z-index: 1;
}
.crm-today-tabs__btn em {
	font-style: normal;
	opacity: 0.65;
	margin-left: 4px;
	font-size: 11px;
}
.crm-today-tabs__btn[aria-selected="true"] {
	background: #fff;
	color: #0F172A;
	font-weight: 700;
}
.crm-today-tabs__body {
	background: #fff;
	color: #0F172A;
	border-radius: 16px;
	padding: 14px 16px 16px;
	min-height: 120px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	position: relative;
	z-index: 2;
}
.crm-today-tabs__panel { display: none !important; }
.crm-today-tabs__panel.is-on { display: block !important; }
.crm-today-tabs__panel ul { list-style: none; margin: 0; padding: 0; }
.crm-today-tabs__panel li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: center;
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 1px solid #E2E8F0;
}
.crm-today-tabs__panel li:last-child { border-bottom: 0; }
.crm-today-tabs__body .crm-pipe-empty { color: #64748B; }
.crm-today-tabs__body .crm-today__who { color: #0F172A; }
.crm-app[data-crm-theme="dark"] .crm-today-tabs__btn { color: #94A3B8; }
.crm-app[data-crm-theme="dark"] .crm-today-tabs__btn[aria-selected="true"] {
	background: #1E293B;
	color: #F8FAFC;
}
.crm-app[data-crm-theme="dark"] .crm-today-tabs__body {
	background: #1E293B;
	color: #F8FAFC;
	box-shadow: none;
}
.crm-app[data-crm-theme="dark"] .crm-today-tabs__panel li { border-bottom-color: rgba(255,255,255,0.08); }
.crm-app[data-crm-theme="dark"] .crm-today-tabs__body .crm-today__who { color: #F8FAFC; }
.crm-app[data-crm-theme="dark"] .crm-today-tabs__body .crm-pipe-empty { color: #94A3B8; }

.crm-fin-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: start;
}
.crm-fin-col {
	min-width: 0;
	padding: 12px 14px 14px;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.03);
}
.crm-fin-col__h {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}
.crm-fin-kpis--3 { grid-template-columns: repeat(3, 1fr) !important; }
.crm-home-side .crm-act2 { max-height: 280px; overflow: auto; }
@media (max-width: 900px) {
	.crm-fin-duo { grid-template-columns: 1fr; }
}
.crm-app[data-crm-theme="dark"] .crm-fin-col {
	background: rgba(255,255,255,0.04);
}

.crm-todo__add { display: flex; gap: 6px; margin-bottom: 8px; }
.crm-todo__add input {
	flex: 1; min-width: 0; border: 1px solid #E2E8F0; border-radius: 10px;
	padding: 8px 10px; font: inherit; font-size: 13px; background: #fff; color: inherit;
}
.crm-todo__add button { min-width: 36px; }
.crm-todo__list { list-style: none; margin: 0; padding: 0; }
.crm-todo__list li {
	display: flex; align-items: center; gap: 8px;
	padding: 7px 0; font-size: 13px; border-bottom: 1px solid #E2E8F0;
}
.crm-todo__list li:last-child { border-bottom: 0; }
.crm-todo__check {
	width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #94A3B8;
	background: transparent; cursor: pointer; flex: 0 0 auto;
}
.crm-todo__list li.is-done .crm-todo__check { background: #16A34A; border-color: #16A34A; }
.crm-todo__list li.is-done span { text-decoration: line-through; opacity: 0.55; }
.crm-todo__list li span { flex: 1; min-width: 0; }
.crm-todo__del {
	border: 0; background: transparent; color: #94A3B8; cursor: pointer; font-size: 16px; line-height: 1;
}
.crm-app[data-crm-theme="dark"] .crm-todo__add input {
	background: #0F172A; border-color: rgba(255,255,255,0.12); color: #F8FAFC;
}
.crm-app[data-crm-theme="dark"] .crm-todo__list li { border-bottom-color: rgba(255,255,255,0.08); }

.crm-login-card {
	max-width: 400px; margin: 48px auto; padding: 28px 26px; border-radius: 18px;
	background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,0.08);
}
.crm-login-card h1 { margin: 0 0 6px; font-size: 22px; }
.crm-login-card__sub { color: #64748B; margin: 0 0 18px; font-size: 14px; }
.crm-login-card__err { color: #B91C1C; background: #FEE2E2; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.crm-login-form label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.crm-login-form input {
	display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
	border: 1px solid #E2E8F0; border-radius: 10px; font: inherit;
}
.crm-login-form .crm-login-btn, .crm-login-btn {
	width: 100%; margin-top: 6px; padding: 11px 14px; border: 0; border-radius: 12px;
	background: #0F5850; color: #fff; font-weight: 700; cursor: pointer; text-align: center; display: inline-block; text-decoration: none;
}
.crm-login-or { text-align: center; color: #94A3B8; margin: 14px 0; font-size: 12px; }
.crm-login-google {
	display: block; text-align: center; padding: 11px 14px; border-radius: 12px;
	border: 1px solid #E2E8F0; color: #0F172A; font-weight: 650; text-decoration: none;
}
.crm-cal-gcal { padding: 0 12px 10px; }
.crm-cal-evt--gcal { background: #DBEAFE; color: #1D4ED8; }
