.crm-mdhanway-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 20px;
}

.crm-mdhanway-form {
	background: #fff;
	border: 1px solid #e6e8ef;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.crm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.crm-full {
	grid-column: 1 / -1;
}

.crm-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #111827;
}

.crm-field input,
.crm-field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
}

.crm-field input:focus,
.crm-field textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.crm-submit-btn {
	margin-top: 18px;
	width: 100%;
	padding: 14px 18px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #2563eb, #0f172a);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.crm-staff-auth-wrap {
	max-width: 460px;
}

.crm-staff-login-shell {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
	max-width: 460px;
	min-height: 58vh;
	padding: 24px 16px;
}

.crm-staff-login-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 34px;
	width: 100%;
}

.crm-staff-login-card h2 {
	color: #111827;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 6px;
	text-align: left;
}

.crm-staff-login-card input[type="text"],
.crm-staff-login-card input[type="password"] {
	background: #fff;
	border: 1px solid #d7dce3;
	border-radius: 8px;
	box-sizing: border-box;
	color: #111827;
	font-size: 15px;
	line-height: 1.4;
	padding: 14px 15px;
	width: 100%;
}

.crm-staff-login-card input[type="text"]:focus,
.crm-staff-login-card input[type="password"]:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
	outline: none;
}

.crm-staff-login-card input::placeholder {
	color: #6b7280;
	opacity: 1;
}

.crm-staff-remember {
	align-items: center;
	color: #374151;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	gap: 9px;
	line-height: 1.4;
	margin: -2px 0 2px;
}

.crm-staff-remember input {
	accent-color: #2563eb;
	height: 16px;
	margin: 0;
	width: 16px;
}

.crm-staff-login-card button {
	background: #2563eb;
	border: 0;
	border-radius: 8px;
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	padding: 14px 18px;
	width: 100%;
}

.crm-staff-login-card button:hover,
.crm-staff-login-card button:focus {
	background: #1d4ed8;
	outline: none;
}

.crm-staff-login-notice {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-sizing: border-box;
	margin-bottom: 14px;
	padding: 12px 14px;
	width: 100%;
}

.crm-staff-login-notice-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.crm-staff-login-notice-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.crm-screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.crm-staff-brand {
	margin-bottom: 16px;
	text-align: center;
}

.crm-staff-brand h2,
.crm-staff-dashboard-header h2 {
	color: #111827;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 6px;
}

.crm-staff-brand p,
.crm-staff-dashboard-header p {
	color: #64748b;
	margin: 0;
}

.crm-staff-login-form .crm-field + .crm-field {
	margin-top: 16px;
}

.crm-staff-message {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 12px 14px;
}

.crm-staff-message-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.crm-staff-message-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.crm-staff-dashboard-wrap {
	max-width: 1120px;
}

.crm-staff-dashboard-header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.crm-staff-logout-btn {
	background: #111827;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 11px 16px;
}

.crm-staff-summary {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: 18px;
}

.crm-staff-summary > div,
.crm-staff-table-panel {
	background: #fff;
	border: 1px solid #e6e8ef;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.crm-staff-summary span {
	color: #64748b;
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
}

.crm-staff-summary strong {
	color: #111827;
	display: block;
	font-size: 20px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.crm-staff-table-panel h3 {
	color: #111827;
	font-size: 20px;
	margin: 0 0 14px;
}

.crm-staff-table-scroll {
	overflow-x: auto;
}

.crm-staff-lead-table {
	border-collapse: collapse;
	min-width: 860px;
	width: 100%;
}

.crm-staff-lead-table th,
.crm-staff-lead-table td {
	border-bottom: 1px solid #e5e7eb;
	color: #111827;
	padding: 12px;
	text-align: left;
	vertical-align: top;
}

.crm-staff-lead-table th {
	background: #f8fafc;
	font-size: 13px;
	font-weight: 700;
}

.crm-staff-lead-table td {
	font-size: 14px;
}

.crm-staff-lead-row-new {
	animation: crm-staff-new-lead 2.8s ease-out;
}

@keyframes crm-staff-new-lead {
	0% {
		background: #ecfdf5;
	}

	100% {
		background: transparent;
	}
}

@media (max-width: 768px) {
	.crm-grid {
		grid-template-columns: 1fr;
	}

	.crm-staff-login-shell {
		min-height: auto;
		padding: 18px 12px;
	}

	.crm-staff-login-card {
		padding: 26px 20px;
	}

	.crm-staff-login-card h2 {
		font-size: 24px;
	}

	.crm-staff-dashboard-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.crm-staff-summary {
		grid-template-columns: 1fr;
	}
}
