/*
 * klagget.nu's own styles for the host element around an ekonomidata.nu card
 * (specs/ekonomidata-embed/04 R12-R14). Handle klagget-ekonomidata, loaded only where a card
 * or its fallback prints. Plain CSS outside the Tailwind build, and outside every vN/
 * directory and the hash pin: ekonomidata's card CSS lives inline in the shadow root and is
 * never styled from here.
 *
 * The host is a direct child of .content-body, so the theme's rule for the column's
 * children gives it the paragraphs' width; it sets no width itself. Its vertical margins
 * equal a paragraph's (my-6). The table rules style the light-DOM fallback, which shows
 * only where the shadow root is not attached (old browsers, innerHTML copies); browsers
 * that attach it render the card from the shadow tree, on screen and in print, and never
 * the fallback.
 */

.klagget-ekonomidata {
	display: block;
	position: relative;
	contain: layout paint style;
	isolation: isolate;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.klagget-ekonomidata table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.klagget-ekonomidata caption {
	padding-bottom: 0.5rem;
	text-align: left;
	font-weight: 600;
}

.klagget-ekonomidata th,
.klagget-ekonomidata td {
	padding: 0.375rem 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	vertical-align: top;
	overflow-wrap: anywhere;
}

.klagget-ekonomidata th {
	text-align: left;
	font-weight: 600;
}

.klagget-ekonomidata td,
.klagget-ekonomidata thead th + th {
	text-align: right;
}

.klagget-ekonomidata p {
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
}

.klagget-ekonomidata small {
	font-size: 0.875em;
}

@media print {
	.klagget-ekonomidata {
		break-inside: avoid;
	}
}
