/* TM Insights admin page styles */

.tm-insights {
	max-width: 1080px;
}

.tm-insights-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin: 24px 0;
}

@media (min-width: 960px) {
	.tm-insights-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.tm-insights-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px 20px;
}

.tm-insights-section h2 {
	font-size: 14px;
	margin-top: 0;
	color: #1d2327;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tm-insights-section .tm-source {
	font-size: 11px;
	color: #646970;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	margin-left: 8px;
}

.tm-insights-section .tm-empty {
	color: #646970;
	font-style: italic;
	margin: 12px 0;
}

.tm-insights-section .tm-metric {
	font-size: 32px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.2;
	margin: 8px 0;
}

.tm-insights-section .tm-sub {
	color: #646970;
	font-size: 13px;
}

.tm-insights-section.tm-warn .tm-metric { color: #b32d2e; }
.tm-insights-section.tm-amber .tm-metric { color: #b08800; }
.tm-insights-section.tm-ok .tm-metric { color: #008a20; }

.tm-insights-section table {
	width: 100%;
	border-collapse: collapse;
}

.tm-insights-section table th,
.tm-insights-section table td {
	padding: 6px 0;
	text-align: left;
	font-size: 13px;
	border-bottom: 1px solid #f0f0f1;
}

.tm-insights-section table th {
	font-weight: 600;
	color: #646970;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.tm-insights-footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #c3c4c7;
	font-size: 12px;
	color: #646970;
	text-align: center;
}

.tm-insights-footer a {
	color: #2271b1;
}

.tm-key-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 12px 0;
}

.tm-key-row code {
	flex: 1;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 8px 12px;
	border-radius: 3px;
	font-family: Menlo, Consolas, monospace;
	font-size: 12px;
}
