/* MerchantKits Attendance Manager — admin styles */

.mkam-stat-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	margin: 20px 0;
}

@media screen and (max-width: 1200px) {
	.mkam-stat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 600px) {
	.mkam-stat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.mkam-stat-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: 4px solid #64748b;
	border-radius: 6px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mkam-stat-card__value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}

.mkam-stat-card__label {
	color: #64748b;
	font-size: 13px;
}

.mkam-stat-card--total { border-top-color: #2563eb; }
.mkam-stat-card--present { border-top-color: #16a34a; }
.mkam-stat-card--leave { border-top-color: #7c3aed; }
.mkam-stat-card--absent { border-top-color: #dc2626; }
.mkam-stat-card--late { border-top-color: #ea580c; }
.mkam-stat-card--pending { border-top-color: #ca8a04; }

.mkam-quick-actions {
	margin: 16px 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mkam-dashboard__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

@media screen and (max-width: 900px) {
	.mkam-dashboard__columns {
		grid-template-columns: 1fr;
	}
}

.mkam-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.mkam-card h2 {
	margin-top: 0;
}

.mkam-card--locked {
	opacity: 0.85;
}

.mkam-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	color: #fff;
	background: #64748b;
}

.mkam-badge--active,
.mkam-badge--approved,
.mkam-badge--present { background: #16a34a; }
.mkam-badge--pending,
.mkam-badge--late { background: #ea580c; }
.mkam-badge--rejected,
.mkam-badge--absent,
.mkam-badge--terminated { background: #dc2626; }
.mkam-badge--on_leave { background: #2563eb; }
.mkam-badge--inactive,
.mkam-badge--cancelled,
.mkam-badge--weekend,
.mkam-badge--holiday { background: #94a3b8; }

.mkam-row-pending {
	background: #fefce8 !important;
}

.mkam-pro-banner {
	margin-top: 24px;
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	color: #fff;
	padding: 24px;
	border-radius: 8px;
}

.mkam-pro-banner h3 {
	color: #fff;
	margin-top: 0;
}

.mkam-cross-promo {
	margin-top: 16px;
	padding: 12px 16px;
	background: #f1f5f9;
	border-radius: 6px;
	font-size: 13px;
}

.mkam-ai-result {
	margin-top: 16px;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	white-space: pre-wrap;
	min-height: 24px;
}

.mkam-ai .mkam-card label {
	margin-right: 12px;
}

.mkam-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #cbd5e1;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: mkam-spin 0.7s linear infinite;
	vertical-align: middle;
}

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