.crm-dashboard {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
}

.crm-dashboard-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.crm-dashboard-alert .crm-icon {
	width: 19px;
	height: 19px;
}

.crm-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.crm-kpi-card {
	display: flex;
	min-width: 0;
	min-height: 116px;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius);
	color: var(--crm-text) !important;
	background: var(--crm-surface);
	box-shadow: var(--crm-shadow);
	text-decoration: none !important;
}

.crm-kpi-card:hover,
.crm-kpi-card:focus {
	border-color: #d9e1ec;
	color: var(--crm-text) !important;
	box-shadow: var(--crm-shadow-hover);
	transform: translateY(-2px);
}

.crm-kpi-icon {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border-radius: 11px;
	flex: 0 0 58px;
}

.crm-kpi-icon .crm-icon {
	width: 29px;
	height: 29px;
}

.crm-kpi-card--primary .crm-kpi-icon {
	color: var(--crm-primary);
	background: var(--crm-primary-soft);
}

.crm-kpi-card--success .crm-kpi-icon {
	color: #13a34b;
	background: var(--crm-success-soft);
}

.crm-kpi-card--warning .crm-kpi-icon {
	color: #d98105;
	background: var(--crm-warning-soft);
}

.crm-kpi-card--purple .crm-kpi-icon {
	color: var(--crm-purple);
	background: var(--crm-purple-soft);
}

.crm-kpi-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.crm-kpi-title,
.crm-kpi-note {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-kpi-title {
	color: var(--crm-text-muted);
	font-size: 12px;
	font-weight: 550;
}

.crm-kpi-value {
	margin: 1px 0;
	font-size: clamp(25px, 2.2vw, 31px);
	font-weight: 760;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.crm-kpi-note {
	color: var(--crm-text-muted);
	font-size: 10px;
}

.crm-dashboard-grid {
	display: grid;
	gap: 18px;
	margin-bottom: 18px;
}

.crm-dashboard-grid--analytics {
	grid-template-columns: minmax(250px, 0.9fr) minmax(360px, 1.45fr) minmax(270px, 1fr);
}

.crm-dashboard-grid--details {
	grid-template-columns: minmax(0, 2.15fr) minmax(300px, 0.9fr);
}

.crm-dashboard .crm-panel {
	min-width: 0;
	overflow: hidden;
}

.crm-panel-header {
	display: flex;
	min-height: 69px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 17px;
	border-bottom: 1px solid #edf1f6;
}

.crm-panel-header h2 {
	margin: 0;
	color: var(--crm-text);
	font-size: 14px;
	font-weight: 740;
}

.crm-panel-header p {
	margin: 2px 0 0;
	color: var(--crm-text-muted);
	font-size: 10px;
}

.crm-panel-link,
.crm-panel-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 650;
	text-decoration: none !important;
}

.crm-panel-link .crm-icon,
.crm-panel-footer-link .crm-icon {
	width: 14px;
	height: 14px;
}

.crm-panel-footer-link {
	width: 100%;
	min-height: 43px;
	padding: 11px 17px;
	border-top: 1px solid #edf1f6;
}

.crm-panel-footer-link:hover {
	background: #f8fafc;
}

.crm-filter-chip {
	padding: 7px 10px;
	border: 1px solid var(--crm-border);
	border-radius: 8px;
	color: #516078;
	background: #fff;
	font-size: 10px;
	font-weight: 650;
	white-space: nowrap;
}

.crm-status-list {
	display: flex;
	min-height: 285px;
	flex-direction: column;
	justify-content: center;
	gap: 21px;
	padding: 20px 18px;
}

.crm-status-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
	font-size: 11px;
}

.crm-status-meta span {
	color: #42526a;
	font-weight: 650;
}

.crm-status-meta strong {
	color: var(--crm-text);
	font-size: 12px;
}

.crm-status-meta small {
	color: var(--crm-text-muted);
	font-weight: 500;
}

.crm-progress {
	height: 9px;
	overflow: hidden;
	border-radius: 6px;
	background: #edf1f6;
}

.crm-progress > span {
	display: block;
	height: 100%;
	min-width: 0;
	border-radius: inherit;
	transition: width 450ms ease;
}

.crm-status-row--muted .crm-progress > span {
	background: #94a3b8;
}

.crm-status-row--primary .crm-progress > span {
	background: linear-gradient(90deg, #4b8bf3, var(--crm-primary));
}

.crm-status-row--danger .crm-progress > span {
	background: linear-gradient(90deg, #fb7185, var(--crm-danger));
}

.crm-status-row--success .crm-progress > span {
	background: linear-gradient(90deg, #4ade80, var(--crm-success));
}

.crm-chart-wrap {
	position: relative;
	height: 285px;
	padding: 14px 15px 16px;
}

.crm-chart-svg-host,
.crm-chart-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.crm-chart-svg text {
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.crm-chart-svg .crm-chart-grid {
	stroke: #edf1f6;
	stroke-width: 1;
}

.crm-chart-svg .crm-chart-axis-label {
	fill: var(--crm-text-muted);
	font-size: 10px;
}

.crm-chart-svg .crm-chart-line {
	fill: none;
	stroke: var(--crm-primary);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
}

.crm-chart-svg .crm-chart-point {
	fill: var(--crm-primary);
	stroke: #fff;
	stroke-width: 2;
}

.crm-chart-loading {
	position: absolute;
	inset: 14px 15px 16px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: var(--crm-text-muted);
	background: #fbfcfe;
	font-size: 12px;
}

.crm-chart-loading.is-hidden {
	display: none;
}

.crm-activity-list {
	min-height: 285px;
	padding: 6px 15px;
}

.crm-activity-item {
	display: flex;
	min-height: 54px;
	align-items: center;
	gap: 10px;
	padding: 8px 2px;
	border-bottom: 1px solid #edf1f6;
	color: var(--crm-text) !important;
	text-decoration: none !important;
}

.crm-activity-item:last-child {
	border-bottom: 0;
}

.crm-activity-item:hover .crm-activity-copy strong,
.crm-activity-item:focus .crm-activity-copy strong {
	color: var(--crm-primary-dark);
}

.crm-activity-icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 9px;
	flex: 0 0 36px;
}

.crm-activity-icon .crm-icon {
	width: 18px;
	height: 18px;
}

.crm-activity-icon--success {
	color: #15a14b;
	background: var(--crm-success-soft);
}

.crm-activity-icon--primary,
.crm-activity-icon--muted {
	color: var(--crm-primary);
	background: var(--crm-primary-soft);
}

.crm-activity-icon--danger {
	color: var(--crm-danger);
	background: var(--crm-danger-soft);
}

.crm-activity-copy {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
}

.crm-activity-copy strong,
.crm-activity-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-activity-copy strong {
	color: var(--crm-text);
	font-size: 11px;
	font-weight: 670;
}

.crm-activity-copy small,
.crm-activity-date {
	color: var(--crm-text-muted);
	font-size: 9px;
}

.crm-activity-date {
	max-width: 54px;
	text-align: right;
	white-space: nowrap;
}

.crm-latest-panel .crm-table-responsive {
	border-radius: 0;
}

.crm-dashboard-table > thead > tr > th {
	padding: 11px 13px !important;
	border-bottom-width: 1px !important;
	background: #fbfcfe !important;
	font-size: 10px !important;
}

.crm-dashboard-table > tbody > tr > td {
	padding: 10px 13px !important;
	font-size: 10px;
	white-space: nowrap;
}

.crm-dashboard-table > tbody > tr > td:first-child {
	max-width: 230px;
	white-space: normal;
}

.crm-dashboard-table a {
	color: var(--crm-text);
	text-decoration: none;
}

.crm-dashboard-table a:hover {
	color: var(--crm-primary);
}

.crm-badge {
	display: inline-flex;
	min-height: 23px;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 650;
	line-height: 1.2;
	white-space: nowrap;
}

.crm-badge-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.crm-badge--primary {
	color: #1e5dc5;
	background: var(--crm-primary-soft);
}

.crm-badge--success {
	color: #159348;
	background: var(--crm-success-soft);
}

.crm-badge--warning {
	color: #b66d00;
	background: var(--crm-warning-soft);
}

.crm-badge--danger {
	color: #c93636;
	background: var(--crm-danger-soft);
}

.crm-badge--purple {
	color: #7443d8;
	background: var(--crm-purple-soft);
}

.crm-badge--muted {
	color: #5f6e82;
	background: #eef2f7;
}

.crm-row-action {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 7px;
}

.crm-row-action:hover {
	background: var(--crm-primary-soft);
}

.crm-row-action .crm-icon {
	width: 15px;
	height: 15px;
}

.crm-upcoming-list {
	min-height: 335px;
	padding: 6px 15px;
}

.crm-upcoming-item {
	display: flex;
	min-height: 76px;
	align-items: center;
	gap: 12px;
	padding: 10px 2px;
	border-bottom: 1px solid #edf1f6;
	color: var(--crm-text) !important;
	text-decoration: none !important;
}

.crm-upcoming-item:last-child {
	border-bottom: 0;
}

.crm-date-tile {
	display: grid;
	width: 49px;
	height: 54px;
	place-content: center;
	border: 1px solid #e8edf4;
	border-radius: 9px;
	background: #f7f9fc;
	text-align: center;
	flex: 0 0 49px;
}

.crm-date-tile strong {
	font-size: 17px;
	line-height: 1.05;
}

.crm-date-tile small {
	margin-top: 3px;
	color: var(--crm-text-muted);
	font-size: 8px;
	font-weight: 650;
}

.crm-upcoming-copy {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	align-items: flex-start;
	flex-direction: column;
}

.crm-upcoming-copy > strong,
.crm-upcoming-copy > small {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-upcoming-copy > strong {
	margin-bottom: 2px;
	font-size: 11px;
}

.crm-upcoming-copy > small {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 5px;
	color: var(--crm-text-muted);
	font-size: 9px;
}

.crm-upcoming-copy > small .crm-icon {
	width: 11px;
	height: 11px;
}

.crm-empty {
	display: grid;
	min-height: 160px;
	place-content: center;
	justify-items: center;
	gap: 8px;
	padding: 24px;
	color: var(--crm-text-muted);
	text-align: center;
}

.crm-empty .crm-icon {
	width: 31px;
	height: 31px;
	color: #9cabc0;
}

.crm-empty p {
	max-width: 270px;
	margin: 0;
	font-size: 11px;
}
