/*
 * Oninit Grafana data sources - page-specific CSS overlay.
 *
 * Loaded by /grafana/content.php so it applies to every grafana page
 * without touching the shared site CSS. Overrides the shared
 * /css/legacy.css typography for tables, lists, and code blocks so
 * the rendering is consistent with the surrounding chrome.
 */

/* Sidenav section divider. Groups related links under a non-clickable
 * label without nesting markup. */
.sidenav .sidenav-section {
	display: block;
	margin-top: 14px;
	margin-bottom: 4px;
	padding: 4px 12px 4px 12px;
	border-top: 1px solid #d8c8a8;
	font-family: tahoma;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7e4400;
}

/* Tables: visible grid matching the legacy <td>/<th> rules */
.grafana-content table.legacy {
	border-collapse: collapse;
	margin: 8px 4px 12px 4px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
	width: auto;
	max-width: 100%;
	text-align: left;
}

.grafana-content table.legacy th,
.grafana-content table.legacy td {
	border: 1px solid #c0a880;
	padding: 6px 10px;
	vertical-align: top;
	text-align: left;
}

.grafana-content table.legacy th {
	background-color: #f2eddc;
	color: #7e4400;
	font-weight: bold;
}

.grafana-content table.legacy tr:nth-child(even) td {
	background-color: #fbf8ee;
}

/* Lists: legacy.css sets font but not list-style; restore round
 * bullets and a sensible indent so the bullet itself shows up. */
.grafana-content ul.legacy {
	list-style-type: disc;
	margin-left: 24px;
	padding-left: 16px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
}

.grafana-content ul.legacy li {
	margin-top: 2px;
	margin-bottom: 2px;
	color: #000000;
}

/* Ordered lists: matched baseline plus an explicit list-style-type
 * so site-wide framework CSS that resets list-style to none does not
 * leave numbered procedures unnumbered. */
.grafana-content ol.legacy {
	list-style-type: decimal;
	list-style-position: outside;
	margin: 8px 4px 12px 24px;
	padding-left: 16px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
}

.grafana-content ol.legacy li {
	display: list-item;
	margin-top: 2px;
	margin-bottom: 2px;
	color: #000000;
}

/* Pre / code: monospace with a soft cream background so query and
 * config snippets sit visually apart from prose. */
.grafana-content pre.legacy {
	background-color: #fbf8ee;
	border: 1px solid #c0a880;
	padding: 8px 12px;
	margin: 8px 4px 12px 4px;
	font-family: "Liberation Mono", "Menlo", "Consolas", monospace;
	font-size: 12px;
	color: #000000;
	overflow-x: auto;
	white-space: pre;
}
