.em-crm-wrap{
	max-width:1280px;
	margin:32px auto;
	padding:0 20px 40px;
	color:#0f172a;
}

.em-crm-page-head{
	display:flex;
	justify-content:space-between;
	align-items:flex-start;
	gap:16px;
	margin:0 0 24px;
	margin-bottom:20px;
	flex-wrap:wrap;
}

.em-crm-page-head h1{
	margin:0;
	font-size:34px;
	line-height:1.15;
	font-weight:800;
	color:#0f172a;
}

.em-crm-page-actions{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
}

.em-crm-cards{
	display:grid;
	grid-template-columns:repeat(5,minmax(0,1fr));
	gap:16px;
}

.em-crm-card{
	background:#ffffff;
	border:1px solid #e2e8f0;
	border-radius:18px;
	padding:20px;
	box-shadow:0 8px 20px rgba(15,23,42,0.04);
	transition:all .2s ease;
}


.em-crm-card:hover{
	transform:translateY(-2px);
	box-shadow:0 12px 28px rgba(15,23,42,0.08);
}

.em-crm-card h3{
	margin:0 0 10px;
	font-size:15px;
	font-weight:700;
	color:#475569;
}

.em-crm-stat{
	font-size:42px;
	line-height:1;
	font-weight:900;
	letter-spacing:-0.04em;
	color:#0f172a;
}


.em-crm-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:20px;
	align-items:start;
}

.em-crm-panel{
	background:#ffffff;
	border:1px solid #e5e7eb;
	border-radius:18px;
	padding:22px;
	box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.em-crm-panel-full{
	grid-column:1 / -1;
}

.em-crm-panel h2{
	margin:0 0 16px;
	font-size:22px;
	line-height:1.2;
	font-weight:800;
	color:#0f172a;
}

/* Leads table */
.em-crm-table{
	width:100%;
	min-width:1120px;
	border-collapse:collapse;
	background:#fff;
	table-layout:fixed;
	font-size:13px;
}

.em-crm-table th,
.em-crm-table td{
	box-sizing:border-box;
}

.em-crm-table thead th{
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

/* Actual column widths */
.em-crm-table th:nth-child(1),
.em-crm-table td:nth-child(1){
	width:60px;
	min-width:60px;
	max-width:60px;
}

.em-crm-table th:nth-child(2),
.em-crm-table td:nth-child(2){
	width:138px;
	min-width:138px;
	max-width:138px;
}

.em-crm-table th:nth-child(3),
.em-crm-table td:nth-child(3){
	width:138px;
	min-width:138px;
	max-width:138px;
}

.em-crm-table th:nth-child(4),
.em-crm-table td:nth-child(4){ width:92px; }

.em-crm-table th:nth-child(5),
.em-crm-table td:nth-child(5){ width:142px; }

.em-crm-table th:nth-child(6),
.em-crm-table td:nth-child(6){ width:76px; }

.em-crm-table th:nth-child(7),
.em-crm-table td:nth-child(7){ width:68px; }

.em-crm-table th:nth-child(8),
.em-crm-table td:nth-child(8){ width:108px; }

.em-crm-table th:nth-child(9),
.em-crm-table td:nth-child(9){ width:64px; }

.em-crm-table th:nth-child(10),
.em-crm-table td:nth-child(10){ width:90px; }

.em-crm-table th:nth-child(11),
.em-crm-table td:nth-child(11){
	width:96px;
	white-space:nowrap;
}

/* Sticky columns */
.em-crm-sticky-col{
	position:sticky;
	background:#fff;
	z-index:3;
}

.em-crm-table thead .em-crm-sticky-col{
	background:#f8fafc;
	z-index:5;
}

.em-crm-sticky-col-1{
	left:0;
	width:60px;
	min-width:60px;
	max-width:60px;
	box-shadow:2px 0 0 #e5e7eb;
}

.em-crm-sticky-col-2{
	left:60px;
	width:138px;
	min-width:138px;
	max-width:138px;
	box-shadow:2px 0 0 #e5e7eb;
}

.em-crm-table tbody tr:hover .em-crm-sticky-col{
	background:#fcfdff;
}

/* Filters */
.em-crm-filters{
	display:flex;
	flex-wrap:wrap;
	gap:12px;
	align-items:center;
	margin:0 0 18px;
	padding:18px;
	background:#ffffff;
	border:1px solid #e5e7eb;
	border-radius:18px;
	box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.em-crm-filters input[type="text"],
.em-crm-filters input[type="search"],
.em-crm-filters input[type="email"],
.em-crm-filters input[type="number"],
.em-crm-filters input[type="datetime-local"],
.em-crm-filters select,
.em-crm-form input[type="text"],
.em-crm-form input[type="search"],
.em-crm-form input[type="email"],
.em-crm-form input[type="number"],
.em-crm-form input[type="datetime-local"],
.em-crm-form select,
.em-crm-form textarea{
	width:100%;
	padding:11px 13px;
	border:1px solid #cbd5e1;
	border-radius:12px;
	background:#fff;
	color:#0f172a;
	font-size:11px;
	line-height:1.35;
	box-sizing:border-box;
	outline:none;
	transition:border-color .18s ease, box-shadow .18s ease;
}

.em-crm-filters input[type="text"],
.em-crm-filters input[type="search"]{
	min-width:240px;
	flex:1 1 240px;
}

.em-crm-filters select{
	min-width:180px;
	flex:0 0 auto;
}

.em-crm-form input:focus,
.em-crm-form select:focus,
.em-crm-form textarea:focus,
.em-crm-filters input:focus,
.em-crm-filters select:focus{
	border-color:#2563eb;
	box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.em-crm-form p{
	margin:0 0 16px;
}

.em-crm-form label{
	display:block;
	margin:0 0 7px;
	font-size:14px;
	font-weight:800;
	color:#334155;
}

.em-crm-form textarea{
	min-height:130px;
	resize:vertical;
}

/* Buttons */
.em-crm-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding:12px 18px;
	border:none;
	border-radius:999px;
	background:linear-gradient(135deg,#1d4ed8,#2563eb);
	color:#ffffff !important;
	font-size:14px;
	font-weight:800;
	line-height:1;
	text-decoration:none !important;
	cursor:pointer;
	box-shadow:0 10px 22px rgba(37,99,235,.22);
	transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.em-crm-btn:hover{
	transform:translateY(-1px);
	box-shadow:0 14px 28px rgba(37,99,235,.26);
	filter:brightness(1.02);
}

.em-crm-btn-secondary{
	background:#ffffff;
	color:#0f172a !important;
	border:1px solid #cbd5e1;
	box-shadow:none;
}

.em-crm-btn-secondary:hover{
	background:#f8fafc;
	box-shadow:none;
}

/* Alerts */
.em-crm-alert{
	padding:14px 16px;
	margin:0 0 18px;
	border-radius:14px;
	font-size:14px;
	font-weight:700;
	line-height:1.45;
	border:1px solid transparent;
}

.em-crm-alert-success{
	background:#ecfdf3;
	color:#166534;
	border-color:#86efac;
}

.em-crm-alert-error{
	background:#fef2f2;
	color:#991b1b;
	border-color:#fca5a5;
}

/* Notes */
.em-crm-notes{
	display:grid;
	gap:12px;
}

.em-crm-note-item{
	background:#f8fafc;
	border:1px solid #e2e8f0;
	border-radius:14px;
	padding:14px 16px;
}

.em-crm-note-meta{
	margin:0 0 8px;
	font-size:12px;
	font-weight:700;
	color:#64748b;
}

.em-crm-note-body{
	font-size:14px;
	line-height:1.6;
	color:#0f172a;
}

/* Existing mini tables */
.em-crm-mini-table{
	width:100%;
	border-collapse:collapse;
}

.em-crm-mini-table th,
.em-crm-mini-table td{
	padding:11px 0;
	border-bottom:1px solid #eef2f7;
	text-align:left;
	vertical-align:top;
	font-size:14px;
	line-height:1.45;
}

.em-crm-mini-table th{
	width:210px;
	padding-right:20px;
	font-weight:800;
	color:#334155;
}

.em-crm-mini-table td{
	color:#0f172a;
}

.em-crm-mini-table tr:last-child th,
.em-crm-mini-table tr:last-child td{
	border-bottom:none;
}

/* Status chips */
.em-crm-status-stack{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	align-items:center;
}

.em-crm-status-chip{
	display:inline-flex;
	align-items:center;
	padding:3px 8px;
	border-radius:999px;
	font-size:10px;
	font-weight:800;
	line-height:1;
	white-space:nowrap;
}

.em-crm-status-warning{
	background:#ffedd5;
	color:#9a3412;
}

.em-crm-status-success{
	background:#dcfce7;
	color:#166534;
}

.em-crm-status-muted{
	background:#e2e8f0;
	color:#334155;
}

.em-crm-status-neutral{
	background:#dbeafe;
	color:#1d4ed8;
}

.em-crm-status-orphan{
	background:#fef3c7;
	color:#92400e;
}

.em-crm-status-overdue{
	background:#fee2e2;
	color:#991b1b;
}

/* Action dropdown */
.em-crm-actions-menu{
	position:relative;
	display:inline-block;
}

.em-crm-actions-toggle{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:8px 10px;
	border:1px solid #cbd5e1;
	border-radius:10px;
	background:#fff;
	color:#0f172a;
	font-size:12px;
	font-weight:700;
	cursor:pointer;
	line-height:1;
}

.em-crm-actions-toggle:hover{
	background:#f8fafc;
}

.em-crm-actions-dropdown{
	position:absolute;
	right:0;
	top:calc(100% + 8px);
	min-width:170px;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:14px;
	box-shadow:0 18px 40px rgba(15,23,42,.14);
	padding:8px;
	display:none;
	z-index:20;
}

.em-crm-actions-menu.is-open .em-crm-actions-dropdown{
	display:block;
}

.em-crm-actions-link,
.em-crm-actions-danger,
.em-crm-actions-disabled{
	display:block;
	width:100%;
	text-align:left;
	padding:10px 12px;
	border:none;
	background:none;
	border-radius:10px;
	font-size:13px;
	line-height:1.3;
	text-decoration:none;
	box-sizing:border-box;
}

.em-crm-actions-link{
	color:#0f172a;
	font-weight:600;
}

.em-crm-actions-link:hover{
	background:#f8fafc;
	text-decoration:none;
}

.em-crm-actions-danger{
	color:#b91c1c;
	font-weight:700;
	cursor:pointer;
}

.em-crm-actions-danger:hover{
	background:#fef2f2;
}

.em-crm-actions-disabled{
	color:#94a3b8;
	font-weight:700;
	cursor:default;
}

/* Utility */
.em-crm-muted{
	color:#64748b;
}

.em-crm-check{
	display:inline-flex;
	align-items:center;
	gap:8px;
	font-size:13px;
	font-weight:600;
	color:#334155;
	white-space:nowrap;
}

.em-crm-check input[type="checkbox"]{
	width:16px;
	height:16px;
	margin:0;
}

.em-crm-actions-inline{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	align-items:center;
}

.em-crm-empty{
	padding:22px;
	background:#ffffff;
	border:1px dashed #cbd5e1;
	border-radius:16px;
	color:#64748b;
	font-weight:600;
}

/* =======================================
   CRM LEAD DETAIL PAGE ONLY
   Compact WP Admin-style mini-table layout
======================================= */

.em-crm-page-head-detail{
	margin:0 0 16px;
	align-items:flex-start;
}

.em-crm-page-head-detail h1{
	font-size:22px;
	line-height:1.1;
	font-weight:700;
}

.em-crm-breadcrumb{
	margin:0 0 6px;
	font-size:12px;
	gap:6px;
}

.em-crm-status-stack-head{
	margin-top:8px;
	gap:5px;
}

.em-crm-detail-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:16px;
	align-items:start;
}

.em-crm-info-box{
	padding:10px 12px;
	background:#f8fafc;
	border:1px solid #e2e8f0;
	border-radius:8px;
	margin:0 0 12px;
	font-size:12px;
	line-height:1.45;
	color:#334155;
}

.em-crm-panel-action{
	margin-top:10px;
}

.em-crm-notes-timeline .em-crm-note-item{
	border-left:4px solid #dbeafe;
	background:#ffffff;
}

/* Lead detail compact lists */
.em-crm-detail-list{
	width:100%;
	border-top:1px solid #eef2f7;
}

.em-crm-detail-row{
	display:grid;
	grid-template-columns:150px minmax(0,1fr);
	column-gap:12px;
	padding:6px 0;
	border-bottom:1px solid #eef2f7;
	align-items:start;
}

.em-crm-detail-label{
	font-size:12px;
	font-weight:600;
	color:#50575e;
	line-height:1.35;
}

.em-crm-detail-value{
	font-size:12px;
	font-weight:500;
	color:#1d2327;
	line-height:1.35;
	word-break:break-word;
}

/* Lead detail compact forms */
.em-crm-detail-grid .em-crm-panel{
	padding:12px;
	border-radius:4px;
	box-shadow:none;
	border-color:#dcdcde;
}

.em-crm-detail-grid .em-crm-panel h2{
	font-size:14px;
	margin:0 0 8px;
	font-weight:600;
	color:#1d2327;
}

.em-crm-detail-grid .em-crm-form p{
	margin:0 0 10px;
}

.em-crm-detail-grid .em-crm-form label{
	margin:0 0 4px;
	font-size:12px;
	font-weight:600;
	color:#50575e;
}

.em-crm-detail-grid .em-crm-form input,
.em-crm-detail-grid .em-crm-form select,
.em-crm-detail-grid .em-crm-form textarea{
	font-size:12px;
	padding:6px 8px;
	border-radius:3px;
	border:1px solid #ccd0d4;
	color:#1d2327;
}

.em-crm-detail-grid .em-crm-form textarea{
	min-height:84px;
}

.em-crm-detail-grid .em-crm-btn,
.em-crm-detail-grid .em-crm-btn-secondary{
	font-size:12px;
	padding:6px 10px;
	border-radius:3px;
	box-shadow:none;
}

.em-crm-col{
	display:flex;
	flex-direction:column;
	gap:16px;
}

.em-crm-mini{
	width:100%;
	border-collapse:collapse;
	font-size:12px;
}

.em-crm-mini th{
	width:130px;
	text-align:left;
	font-weight:600;
	color:#50575e;
	padding:6px 8px;
	border-bottom:1px solid #eee;
	vertical-align:top;
}

.em-crm-mini td{
	padding:6px 8px;
	border-bottom:1px solid #eee;
	color:#1d2327;
	word-break:break-word;
}

.em-crm-panel-action{
	margin-top:10px;
}

.em-crm-note{
	font-size:11px;
	padding:8px 10px;
	border:1px solid #eee;
	margin-bottom:8px;
	background:#fafafa;
	line-height:1.45;
}

.em-crm-convert-list{
	margin:8px 0 12px 18px;
	padding:0;
	font-size:12px;
	line-height:1.5;
	color:#1d2327;
}

.em-crm-convert-list li{
	margin:0 0 6px;
}

.em-crm-convert-list code{
	background:#f6f7f7;
	padding:1px 4px;
	border-radius:3px;
	font-size:11px;
}

/* =========================
   CRM ANALYTICS TABLES
========================= */

.em-crm-analytics-table{
	width:100%;
	min-width:0;
	table-layout:auto;
	border-collapse:collapse;
	background:#fff;
	font-size:13px;
}

.em-crm-analytics-table th,
.em-crm-analytics-table td{
	padding:10px 14px;
	border:1px solid #e5e7eb;
	text-align:center;
	vertical-align:top;
}

.em-crm-analytics-table th{
	background:#f8fafc;
	font-weight:700;
	color:#334155;
	white-space:nowrap;
}

.em-crm-analytics-table td{
	color:#0f172a;
}

.em-crm-analytics-table th:first-child,
.em-crm-analytics-table td:first-child{
	width:70%;
}

.em-crm-analytics-table th:last-child,
.em-crm-analytics-table td:last-child{
	width:30%;
	text-align:center;
	white-space:nowrap;
}

/* =========================
   CRM NAV BAR
========================= */

.em-crm-nav{
	margin:0 0 18px;
}

.em-crm-nav-inner{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:12px;
	padding:10px 12px;
	background:#ffffff;
	border:1px solid #e5e7eb;
	border-radius:16px;
	box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.em-crm-nav-link{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:9px 14px;
	border:1px solid #cbd5e1;
	border-radius:999px;
	background:#ffffff;
	color:#0f172a !important;
	text-decoration:none !important;
	font-size:13px;
	font-weight:700;
	line-height:1;
	white-space:nowrap;
	transition:all .18s ease;
}

.em-crm-nav-link:hover{
	background:#f8fafc;
	border-color:#94a3b8;
	color:#0f172a !important;
	text-decoration:none !important;
}

.em-crm-nav-link.is-active{
	background:linear-gradient(135deg,#1d4ed8,#2563eb);
	color:#ffffff !important;
	border-color:#2563eb;
	box-shadow:0 10px 22px rgba(37,99,235,.18);
}

/* =======================================
   RESPONSIVE
======================================= */

@media (max-width: 1200px){
	.em-crm-cards{
		grid-template-columns:repeat(3,minmax(0,1fr));
	}
}

@media (max-width: 900px){
	.em-crm-grid{
		grid-template-columns:1fr;
	}

	.em-crm-panel-full{
		grid-column:auto;
	}

	.em-crm-cards{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}

	.em-crm-mini-table th{
		width:160px;
	}

	.em-crm-table{
		min-width:1100px;
	}

	.em-crm-detail-grid{
		grid-template-columns:1fr;
	}

	.em-crm-detail-row{
		grid-template-columns:130px minmax(0,1fr);
	}

	.em-crm-analytics-table th:first-child,
	.em-crm-analytics-table td:first-child{
		width:auto;
	}

	.em-crm-analytics-table th:last-child,
	.em-crm-analytics-table td:last-child{
		width:auto;
	}
}

@media (max-width: 640px){
	.em-crm-wrap{
		padding:0 14px 28px;
		margin:22px auto;
	}

	.em-crm-page-head h1{
		font-size:28px;
	}

	.em-crm-cards{
		grid-template-columns:1fr;
	}

	.em-crm-card,
	.em-crm-panel,
	.em-crm-filters{
		padding:16px;
		border-radius:16px;
	}

	.em-crm-table-wrap{
		border-radius:16px;
	}

	.em-crm-table{
		min-width:1100px;
	}

	.em-crm-mini-table th,
	.em-crm-mini-table td{
		display:block;
		width:auto;
		padding:8px 0;
	}

	.em-crm-mini-table th{
		border-bottom:none;
		padding-bottom:2px;
	}

	.em-crm-mini-table td{
		padding-top:0;
		padding-bottom:12px;
	}

	.em-crm-btn,
	.em-crm-btn-secondary{
		width:100%;
	}

	.em-crm-page-actions{
		width:100%;
	}

	.em-crm-page-actions .em-crm-btn,
	.em-crm-page-actions .em-crm-btn-secondary{
		flex:1 1 100%;
	}

	.em-crm-detail-row{
		grid-template-columns:1fr;
		row-gap:2px;
	}

	.em-crm-nav-inner{
		padding:8px;
		gap:8px;
	}

	.em-crm-nav-link{
		padding:8px 12px;
		font-size:12px;
	}
}

/* Warning card */

.em-crm-card-warning{
	border:1px solid #f59e0b;
	background:#fff7ed;
}

.em-crm-card-warning .em-crm-stat{
	color:#b45309;
}

/* Inline alert */

.em-crm-alert-inline{
	margin:8px 0 0;
	font-size:12px;
	font-weight:700;
	color:#b91c1c;
}

/* Danger button */

.em-crm-btn-danger{
	background:#dc2626;
	color:#fff;
	border:none;
}

.em-crm-btn-danger:hover{
	background:#b91c1c;
}

/* ===============================
   EASYMATHS CRM - DASHBOARD POLISH
=============================== */

.em-crm-wrap-dashboard{
	max-width:1320px;
}

.em-crm-page-head-dashboard{
	align-items:flex-end;
	margin:0 0 26px;
}

.em-crm-page-head-main{
	max-width:760px;
}

.em-crm-kicker{
	margin:0 0 8px;
	font-size:12px;
	font-weight:700;
	letter-spacing:.08em;
	text-transform:uppercase;
	color:#64748b;
}

.em-crm-page-subtitle{
	margin:10px 0 0;
	font-size:16px;
	line-height:1.6;
	color:#475569;
}

.em-crm-page-actions-dashboard{
	align-items:center;
}

.em-crm-overview-alert{
	margin:0 0 24px;
	padding:14px 16px;
	border-radius:14px;
	background:#fff7ed;
	border:1px solid #fdba74;
	color:#9a3412;
	font-size:14px;
	font-weight:600;
	box-shadow:0 8px 24px rgba(15,23,42,0.05);
}

.em-crm-dashboard-sections{
	display:grid;
	gap:28px;
}

.em-crm-dashboard-section{
	display:grid;
	gap:14px;
}

.em-crm-section-head{
	display:flex;
	justify-content:space-between;
	align-items:flex-end;
	gap:16px;
	flex-wrap:wrap;
}

.em-crm-section-head h2{
	margin:0;
	font-size:24px;
	line-height:1.15;
	font-weight:800;
	color:#0f172a;
}

.em-crm-section-head p{
	margin:0;
	font-size:14px;
	line-height:1.5;
	color:#64748b;
}

.em-crm-cards-5{
	grid-template-columns:repeat(5,minmax(0,1fr));
}

.em-crm-cards-4{
	grid-template-columns:repeat(4,minmax(0,1fr));
}

.em-crm-cards-maintenance{
	grid-template-columns:repeat(1,minmax(0,1fr));
}

.em-crm-card-stat{
	min-height:172px;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
}

.em-crm-card-stat h3{
	margin:0 0 14px;
	font-size:15px;
	line-height:1.35;
	font-weight:700;
	color:#475569;
}

.em-crm-card-stat .em-crm-stat{
	font-size:44px;
	line-height:1;
	font-weight:800;
	letter-spacing:-0.03em;
	color:#0f172a;
	margin:0 0 14px;
}

.em-crm-card-sub{
	margin:0;
	font-size:14px;
	line-height:1.55;
	color:#64748b;
}

.em-crm-card-success{
	border-color:#bbf7d0;
	background:linear-gradient(180deg,#ffffff 0%,#f0fdf4 100%);
}

.em-crm-card-success .em-crm-stat{
	color:#166534;
}

.em-crm-card-attention{
	border-color:#fdba74;
	background:linear-gradient(180deg,#ffffff 0%,#fff7ed 100%);
}

.em-crm-card-attention .em-crm-stat{
	color:#c2410c;
}

.em-crm-card-highlight{
	border-color:#bfdbfe;
	background:linear-gradient(180deg,#ffffff 0%,#eff6ff 100%);
}

.em-crm-card-highlight .em-crm-stat{
	color:#1d4ed8;
}

.em-crm-card-warning{
	border:1px solid #f59e0b;
	background:#fff7ed;
}

.em-crm-cards-maintenance{
	grid-template-columns:repeat(2,minmax(0,1fr));
	max-width:800px;
}

.em-crm-card-maintenance-top{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:18px;
	flex-wrap:wrap;
}

.em-crm-card-maintenance-top h3{
	margin:0 0 8px;
	font-size:18px;
	line-height:1.2;
	font-weight:800;
	color:#7c2d12;
}

.em-crm-card-maintenance-stat{
	min-width:92px;
	height:82px;
	display:flex;
	align-items:center;
	justify-content:center;
	border-radius:18px;
	background:#ffffff;
	border:1px solid #fdba74;
	font-size:36px;
	line-height:1;
	font-weight:900;
	color:#b45309;
	box-shadow:0 10px 24px rgba(245,158,11,0.12);
}

.em-crm-alert-inline{
	margin:12px 0 0;
	font-size:12px;
	font-weight:800;
	letter-spacing:.04em;
	text-transform:uppercase;
	color:#b91c1c;
}

.em-crm-card-actions{
	margin:18px 0 0;
}

.em-crm-btn-danger{
	background:#dc2626;
	color:#ffffff;
	border:1px solid #dc2626;
	box-shadow:0 10px 24px rgba(220,38,38,0.18);
}

.em-crm-btn-danger:hover{
	background:#b91c1c;
	border-color:#b91c1c;
	color:#ffffff;
}

@media (max-width: 1200px){
	.em-crm-cards-5{
		grid-template-columns:repeat(3,minmax(0,1fr));
	}

	.em-crm-cards-4{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
}

@media (max-width: 760px){
	.em-crm-page-head-dashboard{
		align-items:flex-start;
	}

	.em-crm-cards-5,
	.em-crm-cards-4{
		grid-template-columns:repeat(1,minmax(0,1fr));
	}

	.em-crm-card-stat{
		min-height:auto;
	}

	.em-crm-card-maintenance-stat{
		min-width:78px;
		height:78px;
		font-size:30px;
	}
}

.em-crm-section-head h2{
	font-size:18px;
	font-weight:700;
	letter-spacing:.02em;
	color:#334155;
}

.em-crm-section-head p{
	font-size:13px;
	color:#94a3b8;
}

.em-crm-row-new-conversion td{
	background:#fffbeb;
}

.em-crm-status-new-conversion{
	background:#facc15;
	color:#081225;
	border:1px solid #eab308;
	font-weight:900;
}

.em-crm-task-card.is-overdue{
	background:#fff1f2;
	border-color:#fb7185;
	box-shadow:0 10px 24px rgba(225,29,72,.12);
}

.em-crm-task-card.is-overdue .em-crm-task-meta{
	color:#be123c;
	font-weight:800;
}

/* ===============================
   EASYMATHS CRM - ONBOARDING
=============================== */

.em-onboarding-list{
	display:grid;
	gap:18px;
}

.em-onboarding-card{
	background:#ffffff;
	border:1px solid #e5e7eb;
	border-radius:18px;
	padding:20px;
	box-shadow:0 12px 30px rgba(15,23,42,0.06);
}

.em-onboarding-card-head{
	display:flex;
	justify-content:space-between;
	align-items:flex-start;
	gap:16px;
	margin-bottom:18px;
	flex-wrap:wrap;
}

.em-onboarding-card-head h2{
	margin:0 0 6px;
	font-size:22px;
	font-weight:800;
	color:#0f172a;
}

.em-onboarding-card-head p{
	margin:0;
	color:#64748b;
	font-size:14px;
}

/* Grid */

.em-onboarding-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:16px;
}

/* Fields */

.em-field label{
	display:block;
	font-size:13px;
	font-weight:700;
	margin-bottom:6px;
	color:#334155;
}

.em-field input,
.em-field select,
.em-field textarea{
	width:100%;
	border:1px solid #cbd5e1;
	border-radius:12px;
	padding:10px 12px;
	font-size:14px;
	background:#fff;
	color:#0f172a;
	transition:all .2s ease;
}

.em-field input:focus,
.em-field select:focus,
.em-field textarea:focus{
	outline:none;
	border-color:#3b82f6;
	box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}

.em-field textarea{
	resize:vertical;
	min-height:80px;
}

.em-field-wide{
	grid-column:1 / -1;
}

/* Buttons */

.em-onboarding-actions{
	margin-top:18px;
	display:flex;
	justify-content:flex-end;
}

.em-crm-btn-primary{
	background:#0f172a;
	color:#fff;
	border:none;
	padding:10px 16px;
	border-radius:999px;
	font-weight:700;
	cursor:pointer;
	transition:all .2s ease;
}

.em-crm-btn-primary:hover{
	background:#1e293b;
	transform:translateY(-1px);
}

/* Status Pills */

.em-status-pill{
	display:inline-flex;
	align-items:center;
	border-radius:999px;
	padding:6px 12px;
	font-size:12px;
	font-weight:800;
	white-space:nowrap;
}

/* Status Colours */

.em-status-pending{
	background:#fef3c7;
	color:#92400e;
}

.em-status-in_progress{
	background:#dbeafe;
	color:#1e40af;
}

.em-status-ready_for_lessons{
	background:#dcfce7;
	color:#166534;
}

.em-status-completed{
	background:#ecfdf5;
	color:#047857;
}

.em-status-on_hold{
	background:#fee2e2;
	color:#991b1b;
}

/* Login Check */

.em-login-check{
	display:flex;
	flex-direction:column;
	gap:6px;
	font-size:13px;
}

.em-login-check a{
	font-size:12px;
	color:#2563eb;
	text-decoration:none;
}

.em-login-check a:hover{
	text-decoration:underline;
}

.em-good{
	color:#047857;
	font-weight:700;
}

.em-bad{
	color:#b91c1c;
	font-weight:700;
}

/* Notice */

.em-crm-notice{
	margin-bottom:16px;
	padding:12px 16px;
	border-radius:12px;
	font-weight:600;
}

.em-crm-notice-success{
	background:#dcfce7;
	color:#166534;
	border:1px solid #bbf7d0;
}

/* Mobile */

@media(max-width:768px){
	.em-onboarding-grid{
		grid-template-columns:1fr;
	}

	.em-onboarding-card-head{
		flex-direction:column;
	}
}

/* ===============================
   FORCE CRM STYLE OVERRIDES
=============================== */

.em-crm-wrap{
	background:#f8fafc;
	padding:20px;
	border-radius:18px;
}

/* Ensure cards are white (Astra override fix) */
.em-onboarding-card{
	background:#ffffff !important;
	border:1px solid #e5e7eb !important;
	box-shadow:0 12px 30px rgba(15,23,42,0.08) !important;
}

/* Fix inputs looking disabled/grey */
.em-onboarding-card input,
.em-onboarding-card select,
.em-onboarding-card textarea{
	background:#ffffff !important;
	color:#0f172a !important;
	opacity:1 !important;
}

/* Improve spacing clarity */
.em-field{
	display:flex;
	flex-direction:column;
}

/* Improve textarea visibility */
.em-onboarding-card textarea{
	min-height:100px;
}

/* Button polish */
.em-onboarding-actions button{
	background:#0f172a !important;
	color:#fff !important;
	box-shadow:0 6px 18px rgba(15,23,42,0.2);
}

/* Status pill stronger */
.em-status-pill{
	box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

/* Fix header spacing */
.em-crm-page-head{
	margin-bottom:20px;
}

/* Improve top title area */
.em-crm-page-head h1{
	font-size:32px;
	font-weight:800;
	color:#0f172a;
}

/* Make background not dull */
body.page-id-XXX .em-crm-wrap{
	background:#f1f5f9;
}

input, textarea, select {
	background: #f5f5f5;
}

/* ===============================
   CRM ACTIVITY TIMELINE
=============================== */

.em-crm-timeline{
	position:relative;
	display:grid;
	gap:14px;
	margin-top:8px;
}

.em-crm-timeline::before{
	content:"";
	position:absolute;
	left:16px;
	top:8px;
	bottom:8px;
	width:2px;
	background:#e2e8f0;
}

.em-crm-timeline-item{
	position:relative;
	display:grid;
	grid-template-columns:34px minmax(0,1fr);
	gap:12px;
}

.em-crm-timeline-marker{
	position:relative;
	z-index:2;
	width:34px;
	height:34px;
	border-radius:999px;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#ffffff;
	border:2px solid #cbd5e1;
	box-shadow:0 4px 12px rgba(15,23,42,.08);
}

.em-crm-timeline-marker span{
	font-size:14px;
	line-height:1;
}

.em-crm-timeline-content{
	background:#ffffff;
	border:1px solid #e5e7eb;
	border-radius:14px;
	padding:12px 14px;
	box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.em-crm-timeline-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	margin-bottom:8px;
}

.em-crm-timeline-head time{
	font-size:11px;
	font-weight:700;
	color:#64748b;
	white-space:nowrap;
}

.em-crm-timeline-badge{
	display:inline-flex;
	align-items:center;
	padding:4px 8px;
	border-radius:999px;
	font-size:10px;
	font-weight:900;
	line-height:1;
	text-transform:uppercase;
	letter-spacing:.04em;
	background:#e2e8f0;
	color:#334155;
}

.em-crm-timeline-body{
	font-size:12px;
	line-height:1.55;
	color:#1d2327;
	word-break:break-word;
}

/* Event types */

.em-crm-timeline-email .em-crm-timeline-marker{
	border-color:#3b82f6;
	background:#eff6ff;
}

.em-crm-timeline-email .em-crm-timeline-badge{
	background:#dbeafe;
	color:#1d4ed8;
}

.em-crm-timeline-conversion .em-crm-timeline-marker{
	border-color:#22c55e;
	background:#f0fdf4;
}

.em-crm-timeline-conversion .em-crm-timeline-badge{
	background:#dcfce7;
	color:#166534;
}

.em-crm-timeline-onboarding .em-crm-timeline-marker{
	border-color:#8b5cf6;
	background:#f5f3ff;
}

.em-crm-timeline-onboarding .em-crm-timeline-badge{
	background:#ede9fe;
	color:#6d28d9;
}

.em-crm-timeline-followup .em-crm-timeline-marker{
	border-color:#f59e0b;
	background:#fffbeb;
}

.em-crm-timeline-followup .em-crm-timeline-badge{
	background:#fef3c7;
	color:#92400e;
}

.em-crm-timeline-general .em-crm-timeline-marker{
	border-color:#94a3b8;
	background:#f8fafc;
}

.em-crm-timeline-general .em-crm-timeline-badge{
	background:#e2e8f0;
	color:#334155;
}

@media(max-width:640px){
	.em-crm-timeline-head{
		align-items:flex-start;
		flex-direction:column;
		gap:6px;
	}

	.em-crm-timeline-head time{
		white-space:normal;
	}
}


.em-crm-task-list{
	display:grid;
	gap:12px;
}

.em-crm-task-card{
	border:1px solid #e2e8f0;
	border-left:5px solid #94a3b8;
	border-radius:14px;
	padding:14px;
	background:#ffffff;
	box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.em-crm-task-head{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:12px;
	margin-bottom:8px;
}

.em-crm-task-title-wrap{
	display:flex;
	align-items:center;
	gap:8px;
	flex-wrap:wrap;
}

.em-crm-task-status-wrap{
	display:flex;
	align-items:center;
	gap:6px;
	flex-wrap:wrap;
	justify-content:flex-end;
}

.em-crm-task-badge{
	display:inline-flex;
	padding:3px 8px;
	border-radius:999px;
	font-size:10px;
	font-weight:900;
	line-height:1;
	text-transform:uppercase;
	letter-spacing:.04em;
	background:#e2e8f0;
	color:#334155;
}

.em-crm-task-note{
	font-size:12px;
	line-height:1.55;
	color:#334155;
}

.em-crm-task-note p{
	margin:0 0 8px;
}

.em-crm-task-note p:last-child{
	margin-bottom:0;
}

.em-crm-task-meta{
	margin:8px 0 12px;
	font-size:11px;
	font-weight:800;
	color:#64748b;
}

.em-crm-task-followup{
	border-left-color:#f59e0b;
	background:#fffaf0;
}

.em-crm-task-followup .em-crm-task-badge{
	background:#fef3c7;
	color:#92400e;
}

.em-crm-task-payment{
	border-left-color:#ef4444;
	background:#fff5f5;
}

.em-crm-task-payment .em-crm-task-badge{
	background:#fee2e2;
	color:#991b1b;
}

.em-crm-task-assessment{
	border-left-color:#2563eb;
	background:#eff6ff;
}

.em-crm-task-assessment .em-crm-task-badge{
	background:#dbeafe;
	color:#1d4ed8;
}

.em-crm-task-onboarding{
	border-left-color:#8b5cf6;
	background:#f5f3ff;
}

.em-crm-task-onboarding .em-crm-task-badge{
	background:#ede9fe;
	color:#6d28d9;
}

.em-crm-task-general{
	border-left-color:#94a3b8;
	background:#f8fafc;
}

.em-crm-task-card.is-complete{
	opacity:.68;
	background:#f8fafc;
}

.em-crm-task-card.is-complete strong{
	color:#64748b;
}

.em-crm-task-card.is-overdue{
	border-left-color:#e11d48;
	background:#fff1f2;
	box-shadow:0 10px 24px rgba(225,29,72,.12);
}

.em-crm-task-card.is-overdue .em-crm-task-meta{
	color:#be123c;
}

@media(max-width:640px){
	.em-crm-task-head{
		flex-direction:column;
	}

	.em-crm-task-status-wrap{
		justify-content:flex-start;
	}
}

.em-crm-task-assessment{
	border-left-color:#2563eb;
	background:#eff6ff;
}

.em-crm-task-assessment .em-crm-task-badge{
	background:#dbeafe;
	color:#1d4ed8;
}

.em-crm-task-count{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:24px;
	height:24px;
	margin-left:8px;
	padding:0 8px;
	border-radius:999px;
	background:#1d4ed8;
	color:#ffffff;
	font-size:12px;
	font-weight:900;
	vertical-align:middle;
}

.em-crm-task-toggle{
	display:inline-flex;
	align-items:center;
	gap:8px;
	margin:0 0 14px;
	font-size:12px;
	font-weight:800;
	color:#475569;
}

.em-crm-task-toggle input{
	width:16px;
	height:16px;
}

.em-crm-task-summary{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	margin:0 0 14px;
}

.em-crm-task-summary-pill{
	display:inline-flex;
	align-items:center;
	padding:5px 10px;
	border-radius:999px;
	font-size:11px;
	font-weight:900;
	line-height:1;
}

.em-crm-task-summary-pending{
	background:#fef3c7;
	color:#92400e;
}

.em-crm-task-summary-overdue{
	background:#fee2e2;
	color:#991b1b;
}

.em-crm-task-summary-complete{
	background:#dcfce7;
	color:#166534;
}

.em-crm-journey{
	display:grid;
	grid-template-columns:repeat(9,minmax(0,1fr));
	gap:10px;
}

.em-crm-journey-step{
	position:relative;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:8px;
	padding:12px 8px;
	border-radius:14px;
	border:1px solid #e2e8f0;
	background:#f8fafc;
	text-align:center;
}

.em-crm-journey-dot{
	width:28px;
	height:28px;
	border-radius:999px;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:14px;
	font-weight:900;
	background:#e2e8f0;
	color:#475569;
}

.em-crm-journey-label{
	font-size:11px;
	line-height:1.25;
	font-weight:800;
	color:#475569;
}

.em-crm-journey-step.is-done{
	background:#ecfdf3;
	border-color:#86efac;
}

.em-crm-journey-step.is-done .em-crm-journey-dot{
	background:#16a34a;
	color:#ffffff;
}

.em-crm-journey-step.is-done .em-crm-journey-label{
	color:#166534;
}

.em-crm-journey-step.is-pending{
	opacity:.75;
}

@media(max-width:1100px){
	.em-crm-journey{
		grid-template-columns:repeat(3,minmax(0,1fr));
	}
}

@media(max-width:640px){
	.em-crm-journey{
		grid-template-columns:1fr;
	}

	.em-crm-journey-step{
		align-items:flex-start;
		flex-direction:row;
		text-align:left;
	}
}

.em-crm-journey-step{
	text-decoration:none !important;
	cursor:pointer;
}

.em-crm-journey-step:hover{
	transform:translateY(-2px);
	box-shadow:0 10px 22px rgba(15,23,42,.08);
}

.em-crm-panel:target{
	outline:3px solid rgba(37,99,235,.25);
	box-shadow:0 0 0 6px rgba(37,99,235,.08);
}

.em-crm-task-action {
	margin: 14px 0;
}

.em-crm-task-action .em-crm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}


.em-crm-priority-section{
	margin-bottom:32px;
}

.em-crm-priority-list{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
	gap:16px;
}

.em-crm-priority-item{
	display:flex;
	flex-direction:column;
	gap:8px;
	padding:18px;
	background:#fff;
	border:1px solid #dbe3f1;
	border-radius:16px;
	text-decoration:none;
	color:inherit;
	transition:.2s;
}

.em-crm-priority-item:hover{
	transform:translateY(-2px);
	box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.em-crm-priority-type{
	display:inline-block;
	font-size:12px;
	font-weight:700;
	color:#2563eb;
	text-transform:uppercase;
}

.em-crm-priority-new-lead {
	color:#2563eb;
}

.em-crm-priority-recommendation-pending {
	color:#9333ea;
}

.em-crm-priority-payment-pending {
	color:#ea580c;
}

.em-crm-priority-onboarding-pending {
	color:#7c3aed;
}

.em-crm-priority-action {
	margin-top:4px;
	font-weight:800;
	color:#0f172a;
}

.em-crm-priority-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}

.em-crm-priority-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #dbe3f1;
	border-radius: 16px;
	text-decoration: none;
	color: #0f172a;
	box-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.em-crm-priority-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(15,23,42,.12);
}

.em-crm-priority-type {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.em-crm-priority-new-lead {
	color: #2563eb;
}

.em-crm-priority-recommendation-pending {
	color: #9333ea;
}

.em-crm-priority-payment-pending {
	color: #ea580c;
}

.em-crm-priority-onboarding-pending {
	color: #7c3aed;
}

.em-crm-priority-action {
	margin-top: 4px;
	font-weight: 800;
	color: #0f172a;
}


.em-crm-priority-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
	gap: 12px;
}


.em-crm-priority-item {
	display: grid;
	grid-template-columns: 180px 1fr 120px 140px;
	align-items: center;
	gap: 16px;
}

.em-crm-activity-list {
	display: grid;
	gap: 10px;
}

.em-crm-activity-item {
	display: grid;
	grid-template-columns: 180px 1fr 140px;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid #dbe3f1;
	border-radius: 14px;
	text-decoration: none;
	color: #0f172a;
}

.em-crm-activity-item:hover {
	box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.em-crm-activity-item {
	grid-template-columns: 220px 1fr 150px;
}

.em-crm-activity-badge {
	display: inline-flex;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.em-crm-activity-assessment {
	background: #eef2ff;
	color: #3730a3;
}

.em-crm-activity-recommendation {
	background: #f3e8ff;
	color: #7e22ce;
}

.em-crm-activity-payment {
	background: #dcfce7;
	color: #166534;
}

.em-crm-activity-conversion {
	background: #d1fae5;
	color: #065f46;
}

.em-crm-activity-onboarding {
	background: #ede9fe;
	color: #6d28d9;
}

.em-crm-activity-email {
	background: #dbeafe;
	color: #1d4ed8;
}

.em-crm-activity-lead {
	background: #fef3c7;
	color: #92400e;
}

.em-crm-activity-default {
	background: #f1f5f9;
	color: #334155;
}

.em-crm-toggle-activity{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:10px 18px;
	min-width:140px;

	border:1px solid #dbe3f1;
	border-radius:999px;

	background:#ffffff;
	color:#0f172a !important;

	font-size:14px;
	font-weight:700;
	line-height:1;

	cursor:pointer;
	transition:.2s ease;
}

.em-crm-toggle-activity:hover{
	background:#f8fafc;
	box-shadow:0 8px 18px rgba(15,23,42,.08);
	transform:translateY(-1px);
}

.em-crm-toggle-activity:hover{
	box-shadow:0 8px 18px rgba(15,23,42,.08);
	transform:translateY(-1px);
}

.em-crm-priority-desc{
	display:block;
	margin-top:4px;
	font-size:13px;
	color:#64748b;
	line-height:1.4;
}

.em-crm-priority-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	max-width: 360px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #dbe3f1;
	border-radius: 18px;
	text-decoration: none;
	color: #0f172a;
	box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.em-crm-priority-desc {
	display: block;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
}

.em-crm-priority-action {
	margin-top: 8px;
	font-weight: 800;
	color: #0f172a;
}

/* CRM dashboard premium layout update */
.em-crm-wrap-dashboard {
	max-width: 1240px;
	margin: 0 auto;
}

.em-crm-dashboard-sections {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 22px;
	align-items: start;
}

.em-crm-dashboard-section {
	grid-column: 1 / -1;
	background: #ffffff;
	border: 1px solid #dbe7f5;
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.em-crm-priority-section {
	grid-column: span 5;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	border-color: #bfdbfe;
}

.em-crm-recent-activity-section {
	grid-column: span 7;
}

.em-crm-priority-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.em-crm-priority-item {
	display: grid;
	gap: 8px;
	padding: 18px;
	border-radius: 18px;

	background: linear-gradient(
		135deg,
		#ffffff 0%,
		#eff6ff 100%
	);

	border: 2px solid #93c5fd;

	text-decoration: none;
	color: #0f172a;

	box-shadow:
		0 12px 28px rgba(37,99,235,.12),
		0 4px 12px rgba(15,23,42,.06);

	transition: all .2s ease;
}

.em-crm-priority-item:hover {
	border-color: #2563eb;
	transform: translateY(-3px);

	box-shadow:
		0 18px 36px rgba(37,99,235,.18),
		0 8px 20px rgba(15,23,42,.08);
}

.em-crm-priority-type {
	display: inline-flex;
	width: fit-content;

	padding: 6px 12px;

	border-radius: 999px;

	font-size: 11px;
	font-weight: 900;

	text-transform: uppercase;
	letter-spacing: .05em;

	background: #2563eb;
	color: #ffffff;

	box-shadow: 0 6px 16px rgba(37,99,235,.25);
}

.em-crm-priority-payment-pending {
	background: #fff7ed;
	color: #c2410c;
}

.em-crm-priority-recommendation-pending {
	background: #fef2f2;
	color: #b91c1c;
}

.em-crm-priority-onboarding-pending {
	background: #ecfdf5;
	color: #047857;
}

.em-crm-priority-desc {
	color: #64748b;
	font-size: 13px;
}

.em-crm-priority-action {
	color: #2563eb;
	font-weight: 800;
}

.em-crm-cards {
	gap: 16px;
}

.em-crm-card {
	border-radius: 16px;
	min-height: 138px;
}

.em-crm-card-stat h3 {
	font-size: 13px;
	font-weight: 800;
	color: #334155;
}

.em-crm-stat {
	font-size: 38px;
	line-height: 1;
	margin: 10px 0;
}

.em-crm-card-sub {
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.em-crm-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.em-crm-section-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 900;
	color: #0f172a;
}

.em-crm-section-head p {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 13px;
}

.em-crm-toggle-activity {
	background: #0f172a;
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.em-crm-toggle-activity:hover {
	background: #2563eb;
}

.em-crm-activity-list {
	display: grid;
	gap: 10px;
}

.em-crm-activity-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	color: #0f172a;
}

.em-crm-activity-badge {
	padding: 4px 8px;
	border-radius: 999px;
	background: #e0f2fe;
	color: #0369a1;
	font-size: 11px;
	font-weight: 800;
}

.em-crm-cards-maintenance {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 900px) {
	.em-crm-dashboard-sections {
		display: block;
	}

	.em-crm-dashboard-section {
		margin-bottom: 18px;
	}

	.em-crm-section-head {
		display: block;
	}

	.em-crm-toggle-activity {
		margin-top: 12px;
	}

	.em-crm-cards-maintenance {
		grid-template-columns: 1fr;
	}

	.em-crm-activity-item {
		grid-template-columns: 1fr;
	}
}

.em-crm-dashboard-bookmarks {
	grid-column: 1 / -1;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding-bottom: 6px;
}

.em-crm-dashboard-bookmarks a {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #dbeafe;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.em-crm-dashboard-bookmarks a:hover {
	background: #eff6ff;
	border-color: #2563eb;
}

.em-crm-toggle-activity {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff !important;
	background: #0f172a !important;
}

.em-crm-toggle-activity-text,
.em-crm-toggle-activity-count {
	color: #ffffff !important;
}

.em-crm-toggle-activity-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: rgba(255,255,255,0.18);
	font-size: 12px;
	font-weight: 900;
}

html {
	scroll-behavior: smooth;
}

#em-crm-lead-overview,
#em-crm-reward-followup,
#em-crm-system-maintenance {
	scroll-margin-top: 120px;
}

/* ===============================
   CRM MOBILE LEAD PAGE FIX
=============================== */

@media (max-width: 768px){

	.em-crm-wrap{
		width:100% !important;
		max-width:100% !important;
		margin:16px auto !important;
		padding:14px !important;
		border-radius:16px !important;
		box-sizing:border-box !important;
		overflow-x:hidden !important;
	}

	.em-crm-nav-inner{
		display:grid !important;
		grid-template-columns:1fr 1fr !important;
		gap:10px !important;
	}

	.em-crm-nav-link{
		width:100% !important;
		white-space:normal !important;
		text-align:center !important;
	}

	.em-crm-page-head h1{
		font-size:32px !important;
		line-height:1.08 !important;
	}

	.em-crm-panel{
		width:100% !important;
		max-width:100% !important;
		padding:18px !important;
		border-radius:18px !important;
		box-sizing:border-box !important;
	}

	.em-crm-form input,
	.em-crm-form select,
	.em-crm-form textarea{
		max-width:100% !important;
		box-sizing:border-box !important;
	}
}

/* Fix CRM mobile right-side cropping */
@media (max-width: 768px){

	body .site-content .ast-container{
		max-width:100vw !important;
		width:100% !important;
		padding-left:10px !important;
		padding-right:10px !important;
		box-sizing:border-box !important;
		overflow-x:hidden !important;
	}

	.em-crm-wrap,
	.em-crm-panel,
	.em-crm-card,
	.em-crm-form,
	.em-crm-form p{
		max-width:100% !important;
		width:100% !important;
		box-sizing:border-box !important;
		overflow-x:hidden !important;
	}

	.em-crm-panel{
		padding:16px !important;
	}

	.em-crm-form input,
	.em-crm-form select,
	.em-crm-form textarea{
		width:100% !important;
		max-width:100% !important;
		box-sizing:border-box !important;
	}
}

/* CRM Leads table mobile scroll fix */
@media (max-width: 768px){

	.em-crm-table-wrap,
	.em-crm-panel,
	.em-crm-wrap {
		max-width: 100% !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.em-crm-table {
		min-width: 1100px !important;
		width: 1100px !important;
	}

	.em-crm-table-wrap {
		border: 1px solid #e5e7eb;
		border-radius: 14px;
		background: #ffffff;
	}

	.em-crm-table-wrap::before {
		content: "Swipe left/right to view full table";
		display: block;
		padding: 10px 12px;
		font-size: 12px;
		font-weight: 800;
		color: #64748b;
		background: #f8fafc;
		border-bottom: 1px solid #e5e7eb;
	}
}