/*
 * LAFU Tables: front-end table styles.
 *
 * Colours come from the theme (theme.json tokens and the text colour), so a
 * table fits light and dark themes alike. Presets sit on top. Every rule is
 * scoped under .ltable and resets what themes like to set on tables, buttons
 * and links (uppercase headers, button skins, underlines).
 */

.ltable {
	/* The theme's own text and background pair always contrast; a table accent set in LAFU Tables overrides it. */
	--ltable-accent: var(--wp--preset--color--contrast, #1d2127);
	--ltable-on-accent: var(--wp--preset--color--base, #fff);
	/* An opaque pair for what floats over the table. Controls stay see-through, so they suit any page. */
	--ltable-surface: var(--wp--preset--color--base, Canvas);
	--ltable-surface-text: var(--wp--preset--color--contrast, CanvasText);
	--ltable-line: color-mix(in srgb, currentColor 12%, transparent);
	--ltable-line-strong: color-mix(in srgb, currentColor 22%, transparent);
	--ltable-soft: color-mix(in srgb, currentColor 3.5%, transparent);
	--ltable-head: color-mix(in srgb, currentColor 5%, transparent);
	--ltable-hover: color-mix(in srgb, var(--ltable-accent) 7%, transparent);
	--ltable-muted: color-mix(in srgb, currentColor 68%, transparent);
	--ltable-frame: var(--ltable-line);
	--ltable-radius: 12px;
	--ltable-radius-sm: 8px;
	--ltable-pad-y: 0.75em;
	--ltable-pad-x: 1em;
	--ltable-size: min(var(--wp--preset--font-size--small, 15px), 16px);
	container: ltable / inline-size;
	margin-block: 1.5em;
	font-size: var(--ltable-size);
	line-height: 1.5;
}

.ltable *,
.ltable *::before,
.ltable *::after {
	box-sizing: border-box;
}

/* Themes often style search boxes with more specific rules than the reset above. */
.ltable.ltable .ltable__toolbar input,
.ltable.ltable .ltable__toolbar select,
.ltable.ltable .ltable__length select {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	font-family: inherit;
}

/* Themes underline every link in the content; sort links and page numbers are controls. */
.ltable.ltable .ltable__table th a,
.ltable.ltable .ltable__pager a {
	/* OceanWP forces its underline with !important. */
	text-decoration: none !important;
	box-shadow: none;
}

/* Some themes give tables another font than the page (Twenty Twenty): one font for labels, controls and rows. */
.ltable.ltable .ltable__table,
.ltable.ltable .ltable__table th,
.ltable.ltable .ltable__table td {
	font-family: inherit;
}

.ltable .ltable__table td.ltable-nw {
	white-space: nowrap;
}

/* The open list of a select is drawn by the browser: its text and background must come as one pair.
   Themes colour only the background (WoodMart dark: `.wd select option`), which left black system text on a
   black list. The doubled class wins over such theme rules. */
.ltable.ltable select option {
	color: CanvasText;
	background-color: Canvas;
}

.ltable svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
	vertical-align: middle;
}

/* Dark: forced with .is-dark, or following the device with "system". */
.ltable.is-dark {
	--ltable-surface: #15171c;
	--ltable-surface-text: currentColor;
	--ltable-line: color-mix(in srgb, currentColor 14%, transparent);
	--ltable-soft: color-mix(in srgb, currentColor 4.5%, transparent);
	--ltable-head: color-mix(in srgb, currentColor 7%, transparent);
	--ltable-accent: var(--ltable-accent-dark, #7aa2ff);
	--ltable-on-accent: #0d1220;
	color-scheme: dark;
	color: #e6e8ec;
	background: var(--ltable-surface);
	padding: 16px;
	border-radius: var(--ltable-radius);
}

@media (prefers-color-scheme: dark) {
	.ltable.ltable--system {
		--ltable-surface: #15171c;
		--ltable-surface-text: currentColor;
		--ltable-line: color-mix(in srgb, currentColor 14%, transparent);
		--ltable-soft: color-mix(in srgb, currentColor 4.5%, transparent);
		--ltable-head: color-mix(in srgb, currentColor 7%, transparent);
		--ltable-accent: var(--ltable-accent-dark, #7aa2ff);
		--ltable-on-accent: #0d1220;
		color-scheme: dark;
		color: #e6e8ec;
		background: var(--ltable-surface);
		padding: 16px;
		border-radius: var(--ltable-radius);
	}
}

.ltable.is-light {
	color-scheme: light;
	--ltable-surface: #fff;
	--ltable-surface-text: currentColor;
	color: #1d2127;
	background: var(--ltable-surface);
}

.ltable.ltable--compact {
	--ltable-pad-y: 0.4em;
	--ltable-pad-x: 0.65em;
}

.ltable .ltable__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ltable .ltable__description {
	margin-block-end: 1em;
	color: var(--ltable-muted);
}

.ltable .ltable__description > :first-child {
	margin-block-start: 0;
}

.ltable .ltable__description > :last-child {
	margin-block-end: 0;
}

/*
 * Toolbar: the search box on the left, column filters in an even grid that
 * fills the width. Every control has one height and the controls share one
 * bottom line, whether or not a label sits above them. The renderer names the
 * filter count (ltable__toolbar--f1 to --f7, 7 meaning "7 or more").
 */
.ltable .ltable__toolbar {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
}

.ltable .ltable__toolbar > .ltable__field--search,
.ltable .ltable__toolbar > .ltable__apply {
	grid-column: 1 / -1;
}

.ltable .ltable__toolbar > .ltable__apply {
	justify-self: start;
}

/* An odd filter out in a grid of pairs takes the whole row. */
.ltable .ltable__toolbar--odd > .ltable__field:last-of-type {
	grid-column: 1 / -1;
}

.ltable .ltable__toolbar--f0,
.ltable .ltable__toolbar--f1 {
	grid-template-columns: minmax(0, 1fr);
}

@container ltable (min-width: 420px) {

	.ltable .ltable__toolbar--f3,
	.ltable .ltable__toolbar--f6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--f3 > .ltable__field:last-of-type,
	.ltable .ltable__toolbar--f6 > .ltable__field:last-of-type {
		grid-column: auto;
	}
}

@container ltable (min-width: 600px) {

	/* Up to four filters share one row with the search box, which is twice as wide as a filter. */
	.ltable .ltable__toolbar--f0 {
		grid-template-columns: minmax(0, 384px);
	}

	.ltable .ltable__toolbar--search.ltable__toolbar--f1 {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.ltable .ltable__toolbar--search.ltable__toolbar--f2 {
		grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--search.ltable__toolbar--f3 {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--search.ltable__toolbar--f4 {
		grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--search.ltable__toolbar--f1 > .ltable__field--search,
	.ltable .ltable__toolbar--search.ltable__toolbar--f2 > .ltable__field--search,
	.ltable .ltable__toolbar--search.ltable__toolbar--f3 > .ltable__field--search,
	.ltable .ltable__toolbar--search.ltable__toolbar--f4 > .ltable__field--search {
		grid-column: auto;
	}

	.ltable .ltable__toolbar--f2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--f3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--f4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--f5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--f7 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ltable .ltable__toolbar--f5 > .ltable__field:last-of-type,
	.ltable .ltable__toolbar--f7 > .ltable__field:last-of-type {
		grid-column: auto;
	}
}

/*
 * More filters: past four filters, the rest open in a panel under the toolbar.
 * The panel floats over the table, so opening it moves nothing. Active filters
 * from the panel stay in sight as chips that remove them.
 */
.ltable .ltable__more-filters {
	min-width: 0;
	margin: 0;
}

.ltable .ltable__more-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 13.6px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
	background: transparent;
	border: 1px solid var(--ltable-line-strong);
	border-radius: var(--ltable-radius-sm);
}

.ltable .ltable__more-btn::-webkit-details-marker {
	display: none;
}

.ltable .ltable__more-btn:hover,
.ltable .ltable__more-filters[open] > .ltable__more-btn {
	background: var(--ltable-head);
}

.ltable .ltable__more-btn > span:first-of-type {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ltable .ltable__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5.6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ltable-on-accent);
	background: var(--ltable-accent);
	border-radius: 999px;
}

.ltable .ltable__count[hidden],
.ltable .ltable__chips[hidden] {
	display: none;
}

/* Narrow: the third filter and the button each take a full row, so the label is never cut. */
.ltable .ltable__toolbar--more > .ltable__field:last-of-type,
.ltable .ltable__toolbar--more > .ltable__more-filters {
	grid-column: 1 / -1;
}

@container ltable (min-width: 600px) {

	/* Wide: three filters, then the button at the width its label needs. */
	.ltable .ltable__toolbar--more {
		grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	}

	.ltable .ltable__toolbar--search.ltable__toolbar--more {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
	}

	.ltable .ltable__toolbar--more > .ltable__field:last-of-type,
	.ltable .ltable__toolbar--more > .ltable__more-filters {
		grid-column: auto;
	}
}

.ltable .ltable__panel {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 8px);
	z-index: 20;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr));
	align-items: end;
	gap: 12px;
	max-height: min(416px, 70vh);
	padding: 16px;
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--ltable-surface);
	color: var(--ltable-surface-text);
	border: 1px solid var(--ltable-line-strong);
	border-radius: var(--ltable-radius);
	box-shadow: 0 12px 32px -8px rgb(0 0 0 / 0.22);
}

.ltable .ltable__panel > .ltable__apply {
	grid-column: 1 / -1;
	justify-self: start;
}

.ltable .ltable__chips {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ltable .ltable__chips li {
	margin: 0;
	padding: 0;
}

.ltable .ltable__chip {
	display: inline-flex;
	align-items: center;
	gap: 6.4px;
	max-width: 100%;
	min-height: 32px;
	padding: 4px 9.6px 4px 12.8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
	text-decoration: none;
	background: var(--ltable-head);
	border: 1px solid var(--ltable-line);
	border-radius: 999px;
}

.ltable .ltable__chip:hover {
	color: inherit;
	text-decoration: none;
	border-color: var(--ltable-line-strong);
}

.ltable .ltable__field {
	display: flex;
	flex-direction: column;
	gap: 4.8px;
	min-width: 0;
	position: relative;
}

.ltable .ltable__field label {
	margin: 0;
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--ltable-muted);
	text-transform: none;
	letter-spacing: normal;
}

.ltable.ltable .ltable__toolbar input,
.ltable.ltable .ltable__toolbar select,
.ltable.ltable .ltable__length select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 13.6px;
	font: inherit;
	font-size: 15px;
	line-height: 1;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	background-color: transparent;
	border: 1px solid var(--ltable-line-strong);
	border-radius: var(--ltable-radius-sm);
	box-shadow: none;
	outline: 0;
}

.ltable.ltable .ltable__toolbar select,
.ltable.ltable .ltable__length select {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-inline-end: 35.2px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 16.8px) 52%, calc(100% - 12px) 52%;
	background-size: 4.8px 4.8px;
	background-repeat: no-repeat;
	cursor: pointer;
}

/* Right to left: the arrow sits at the start side. */
.ltable.ltable .ltable__toolbar select:dir(rtl),
.ltable.ltable .ltable__length select:dir(rtl) {
	background-position: 12px 52%, 16.8px 52%;
}

.ltable.ltable .ltable__toolbar .ltable__search {
	padding-inline-start: 38.4px;
}

.ltable .ltable__field--search .ltable__icon {
	position: absolute;
	inset-inline-start: 13.6px;
	bottom: 12px;
	color: var(--ltable-muted);
	pointer-events: none;
}

.ltable.ltable .ltable__toolbar input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.ltable.ltable .ltable__toolbar input:focus-visible,
.ltable.ltable .ltable__toolbar select:focus-visible,
.ltable.ltable .ltable__length select:focus-visible,
.ltable .ltable__apply:focus-visible,
.ltable a:focus-visible,
.ltable summary:focus-visible,
.ltable .ltable__scroll:focus-visible {
	outline: 2px solid var(--ltable-accent);
	outline-offset: 2px;
}

.ltable .ltable__apply,
.ltable .ltable-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 40px;
	margin: 0;
	padding: 0 17.6px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	text-shadow: none;
	color: var(--ltable-on-accent);
	background: var(--ltable-accent);
	border: 1px solid transparent;
	border-radius: var(--ltable-radius-sm);
	box-shadow: none;
	cursor: pointer;
	white-space: nowrap;
}

.ltable .ltable__apply:hover,
.ltable .ltable-btn:hover {
	color: var(--ltable-on-accent);
	background: color-mix(in srgb, var(--ltable-accent) 88%, #000);
	text-decoration: none;
}

/* "Show" is for visitors without JavaScript only. */
.ltable.is-live .ltable__apply {
	display: none;
}

@media (scripting: enabled) {

	.ltable .ltable__apply {
		display: none;
	}
}

/* The table. */
.ltable .ltable__scroll {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border-radius: var(--ltable-radius);
}

.ltable .ltable__table {
	width: 100%;
	min-width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: none;
	font-size: 1em;
	line-height: inherit;
	table-layout: auto;
	color: inherit;
}

/* The caption names the table for screen readers; its visible copy (.ltable__caption)
   sits under the scroll box, so swapping rows never moves it. */
.ltable .ltable__table caption,
.ltable .ltable__caption {
	caption-side: bottom;
	margin: 0;
	padding: 9.6px var(--ltable-pad-x) 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	text-align: start;
	color: var(--ltable-muted);
	text-transform: none;
	letter-spacing: normal;
}

/* In a framed table the caption is the frame's footer strip: the last row,
   one line, then the note on the header's tint, under one rounded frame. */
.ltable.ltable--captioned:is(.ltable--clean, .ltable--grid, .ltable--borders-all) .ltable__scroll {
	border-end-start-radius: 0;
	border-end-end-radius: 0;
}

.ltable.ltable--captioned:is(.ltable--clean, .ltable--grid, .ltable--borders-all) .ltable__caption {
	margin-top: -1px;
	padding: 10.4px var(--ltable-pad-x);
	background: var(--ltable-head);
	border: 1px solid var(--ltable-frame);
	border-end-start-radius: var(--ltable-radius);
	border-end-end-radius: var(--ltable-radius);
}

.ltable .ltable__table th,
.ltable .ltable__table td {
	padding: var(--ltable-pad-y) var(--ltable-pad-x);
	border: 0;
	background: none;
	font-size: inherit;
	font-style: normal;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	vertical-align: middle;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}

.ltable .ltable__table th {
	font-weight: 600;
	color: color-mix(in srgb, currentColor 82%, transparent);
	white-space: nowrap;
	background: var(--ltable-head);
}

.ltable .ltable__table td {
	font-weight: inherit;
}

/* Long text keeps a readable measure when many columns share the width. */
.ltable .ltable__table td.ltable-t-textarea,
.ltable .ltable__table td.ltable-t-html {
	min-width: 14em;
}

/* Proportional digits: tabular ones look spaced out in many theme fonts ("1 4"). */
.ltable .ltable__table td.ltable-t-number,
.ltable .ltable__table td.ltable-t-date {
	font-variant-numeric: normal;
	white-space: nowrap;
}

.ltable .ltable__table .ltable-a-right {
	text-align: end;
}

.ltable .ltable__table .ltable-a-center {
	text-align: center;
}

.ltable .ltable__table img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 64px;
	width: auto;
	border-radius: 6px;
}

.ltable .ltable__table td.ltable-a-center img {
	margin-inline: auto;
}

/* Sort links: plain text with a small arrow after it, never themed as a button.
   The label is the first flex item, so every header, sortable or not, sits on one baseline. */
.ltable .ltable__table .ltable__sort {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	gap: 0.35em;
	vertical-align: baseline;
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	background: none;
	border: 0;
	box-shadow: none;
	border-radius: 4px;
}

.ltable .ltable__table .ltable__sort:hover {
	color: var(--ltable-accent);
	text-decoration: none;
}

.ltable .ltable__arrow path {
	opacity: 0.35;
}

.ltable th[aria-sort="ascending"] .ltable__arrow path:last-child,
.ltable th[aria-sort="descending"] .ltable__arrow path:first-child {
	opacity: 1;
}

.ltable th[aria-sort="ascending"] .ltable__arrow path:first-child,
.ltable th[aria-sort="descending"] .ltable__arrow path:last-child {
	opacity: 0.12;
}

.ltable th[aria-sort] {
	color: inherit;
}

/* Borders. */
.ltable.ltable--borders-rows .ltable__table td,
.ltable.ltable--borders-rows .ltable__table th {
	border-bottom: 1px solid var(--ltable-line);
}

.ltable.ltable--borders-rows .ltable__table thead th {
	border-bottom-color: var(--ltable-line-strong);
}

.ltable.ltable--borders-rows .ltable__table tbody tr:last-child td {
	border-bottom: 0;
}

.ltable.ltable--borders-all .ltable__scroll {
	border: 1px solid var(--ltable-frame);
}

.ltable.ltable--borders-all .ltable__table td,
.ltable.ltable--borders-all .ltable__table th {
	border-inline-end: 1px solid var(--ltable-line);
	border-bottom: 1px solid var(--ltable-line);
}

.ltable.ltable--borders-all .ltable__table tr > :last-child {
	border-inline-end: 0;
}

.ltable.ltable--borders-all .ltable__table tbody tr:last-child td {
	border-bottom: 0;
}

/* Stripes and hover. */
.ltable.ltable--stripes .ltable__table tbody tr:nth-child(even) td {
	background: var(--ltable-soft);
}

.ltable.ltable--hover .ltable__table tbody tr:hover td {
	background: var(--ltable-hover);
}

.ltable .ltable__table tr.ltable__empty td {
	padding-block: 2.5em;
	text-align: center;
	color: var(--ltable-muted);
	background: none;
}

/* "Did you mean ...?" after a search with no rows (Forgiving search). */
.ltable .ltable__suggest a {
	color: var(--ltable-surface-text, currentColor);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Presets. */
.ltable.ltable--clean .ltable__scroll {
	border: 1px solid var(--ltable-frame);
}

.ltable.ltable--minimal .ltable__scroll {
	border-radius: 0;
}

.ltable.ltable--minimal .ltable__table th {
	background: none;
}

.ltable.ltable--minimal .ltable__table thead th {
	border-bottom: 2px solid var(--ltable-line-strong);
}

.ltable.ltable--grid {
	--ltable-radius: 6px;
	--ltable-frame: var(--ltable-line-strong);
}

.ltable.ltable--grid .ltable__scroll {
	border: 1px solid var(--ltable-frame);
}

.ltable.ltable--grid .ltable__table td,
.ltable.ltable--grid .ltable__table th {
	border-inline-end: 1px solid var(--ltable-line);
	border-bottom: 1px solid var(--ltable-line);
}

.ltable.ltable--grid .ltable__table tr > :last-child {
	border-inline-end: 0;
}

.ltable.ltable--bold .ltable__table thead th {
	color: var(--ltable-on-accent);
	background: var(--ltable-accent);
	border-bottom-color: transparent;
}

.ltable.ltable--bold .ltable__table thead .ltable__sort:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ltable.ltable--bold .ltable__table thead .ltable__arrow path {
	opacity: 0.55;
}

.ltable.ltable--bold .ltable__table thead th[aria-sort] .ltable__arrow path {
	opacity: 0.4;
}

.ltable.ltable--bold .ltable__table thead th[aria-sort="ascending"] .ltable__arrow path:last-child,
.ltable.ltable--bold .ltable__table thead th[aria-sort="descending"] .ltable__arrow path:first-child {
	opacity: 1;
}

.ltable.ltable--soft .ltable__scroll {
	border-radius: 0;
}

.ltable.ltable--soft .ltable__table {
	border-spacing: 0 6.4px;
}

.ltable.ltable--soft .ltable__table th {
	background: none;
	padding-block: 0.25em;
	border: 0;
}

.ltable.ltable--soft .ltable__table td,
.ltable.ltable--soft.ltable--stripes .ltable__table tbody tr:nth-child(even) td {
	background: var(--ltable-head);
	border: 0;
}

.ltable.ltable--soft.ltable--hover .ltable__table tbody tr:hover td {
	background: var(--ltable-hover);
}

.ltable.ltable--soft .ltable__table td:first-child {
	border-start-start-radius: var(--ltable-radius-sm);
	border-end-start-radius: var(--ltable-radius-sm);
}

.ltable.ltable--soft .ltable__table td:last-child {
	border-start-end-radius: var(--ltable-radius-sm);
	border-end-end-radius: var(--ltable-radius-sm);
}

/* Sticky header: the scroll box gets a height so the header can stick in it. */
.ltable.ltable--sticky-header .ltable__scroll {
	max-height: min(75vh, 704px);
	overflow: auto;
}

.ltable.ltable--sticky-header .ltable__table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: linear-gradient(var(--ltable-head), var(--ltable-head)), var(--ltable-surface);
}

.ltable.ltable--sticky-header.ltable--bold .ltable__table thead th {
	background: var(--ltable-accent);
}

/* Choice pills, one stable colour per option. */
.ltable .ltable-pill {
	--tone: #2f5fd0;
	display: inline-flex;
	align-items: center;
	padding: 0.15em 0.65em;
	border-radius: 999px;
	font-size: 0.8125em;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	color: color-mix(in srgb, var(--tone) 62%, currentColor);
	background: color-mix(in srgb, var(--tone) 13%, transparent);
}

.ltable .ltable-tone-1 {
	--tone: #0f8a5f;
}

.ltable .ltable-tone-2 {
	--tone: #b4540a;
}

.ltable .ltable-tone-3 {
	--tone: #8b3fc7;
}

.ltable .ltable-tone-4 {
	--tone: #c02c5a;
}

.ltable .ltable-tone-5 {
	--tone: #0b7a8f;
}

/*
 * Footer: rows per page, the status line and the pages. The renderer works out
 * the widths they need (the pager at its widest page) and names them in
 * classes, in 2 rem steps: from ltable__foot--wN (N rem of table width) all three share one row,
 * from ltable__foot--mN rows per page and the pages share a row over the status
 * line, below that each has its own row. So the layout depends on the table's
 * width only and never changes while paging. Two lines of status text are no
 * taller than the controls, so a long status line cannot move anything either.
 */
.ltable .ltable__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "length" "status" "pager";
	align-items: center;
	gap: 12px 16px;
	margin-top: 16px;
}

.ltable .ltable__info {
	display: contents;
}

.ltable .ltable__length {
	display: flex;
	grid-area: length;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.ltable .ltable__length label {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ltable-muted);
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
}

.ltable.ltable .ltable__length select {
	width: auto;
	min-width: 76px;
	height: 36px;
	font-size: 14px;
}

.ltable .ltable__length .ltable__apply {
	min-height: 36px;
}

.ltable .ltable__status {
	grid-area: status;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	line-height: 1.25;
	color: var(--ltable-muted);
}

.ltable .ltable__foot > .ltable__pager {
	grid-area: pager;
	justify-self: start;
}

/* Neighbours of the current page show where the whole pager fits on its row. */
.ltable .ltable__pager .ltable__near {
	display: none;
}

@container ltable (min-width: 320px) {

	.ltable .ltable__foot--p20 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m20 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w20 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 352px) {

	.ltable .ltable__foot--p22 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m22 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w22 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 384px) {

	.ltable .ltable__foot--p24 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m24 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w24 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 416px) {

	.ltable .ltable__foot--p26 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m26 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w26 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 448px) {

	.ltable .ltable__foot--p28 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m28 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w28 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 480px) {

	.ltable .ltable__foot--p30 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m30 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w30 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 512px) {

	.ltable .ltable__foot--p32 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m32 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w32 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 544px) {

	.ltable .ltable__foot--p34 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m34 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w34 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 576px) {

	.ltable .ltable__foot--p36 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m36 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w36 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 608px) {

	.ltable .ltable__foot--p38 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m38 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w38 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 640px) {

	.ltable .ltable__foot--p40 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m40 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w40 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 672px) {

	.ltable .ltable__foot--p42 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m42 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w42 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 704px) {

	.ltable .ltable__foot--p44 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m44 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w44 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 736px) {

	.ltable .ltable__foot--p46 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m46 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w46 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 768px) {

	.ltable .ltable__foot--p48 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m48 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w48 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 800px) {

	.ltable .ltable__foot--p50 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m50 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w50 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 832px) {

	.ltable .ltable__foot--p52 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m52 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w52 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 864px) {

	.ltable .ltable__foot--p54 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m54 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w54 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 896px) {

	.ltable .ltable__foot--p56 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m56 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w56 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 928px) {

	.ltable .ltable__foot--p58 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m58 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w58 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 960px) {

	.ltable .ltable__foot--p60 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m60 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w60 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 992px) {

	.ltable .ltable__foot--p62 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m62 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w62 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 1024px) {

	.ltable .ltable__foot--p64 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m64 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w64 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 1056px) {

	.ltable .ltable__foot--p66 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m66 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w66 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

@container ltable (min-width: 1088px) {

	.ltable .ltable__foot--p68 .ltable__near {
		display: inline-flex;
	}

	.ltable .ltable__foot--m68 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length . pager" "status status status";
	}

	.ltable .ltable__foot--w68 {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "length status pager";
	}
}

.ltable .ltable__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.ltable .ltable__pager[hidden] {
	display: none;
}

.ltable .ltable__pager a,
.ltable .ltable__pager .ltable__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 36px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	text-transform: none;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--ltable-radius-sm);
	box-shadow: none;
}

.ltable .ltable__pager a:hover {
	background: var(--ltable-head);
	border-color: var(--ltable-line);
	text-decoration: none;
	color: inherit;
}

.ltable .ltable__pager a.is-current {
	color: var(--ltable-on-accent);
	background: var(--ltable-accent);
	border-color: transparent;
	font-weight: 600;
}

.ltable .ltable__pager .ltable__step {
	font-size: 18.4px;
}

.ltable .ltable__pager .ltable__gap {
	min-width: 20px;
	padding: 0;
	color: var(--ltable-muted);
}

/* Collapse mode: a "more" cell holds the columns hidden at this width. */
.ltable .ltable__more-col {
	display: none;
	width: 1%;
	white-space: nowrap;
}

.ltable .ltable__more summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	list-style: none;
	cursor: pointer;
	border-radius: 999px;
	color: var(--ltable-muted);
}

.ltable .ltable__more summary::-webkit-details-marker {
	display: none;
}

.ltable .ltable__more summary:hover {
	background: var(--ltable-head);
}

.ltable .ltable__more[open] summary svg {
	transform: rotate(180deg);
}

.ltable .ltable__more dl {
	margin: 8px 0 0;
	white-space: normal;
}

.ltable .ltable__more dl > div {
	display: none;
	gap: 2.4px;
	padding-block: 4px;
}

.ltable .ltable__more dt {
	font-size: 12px;
	font-weight: 600;
	color: var(--ltable-muted);
}

.ltable .ltable__more dd {
	margin: 0;
}

/* Layout mode (comparison and pricing tables). */
.ltable.ltable--layout .ltable__table th,
.ltable.ltable--layout .ltable__table td {
	text-align: center;
	vertical-align: middle;
}

.ltable.ltable--layout .ltable__table th[scope="row"],
.ltable.ltable--layout .ltable__table td.ltable-a-left {
	text-align: start;
}

.ltable.ltable--layout .ltable__table > * > tr > * > * + * {
	margin-top: 9.6px;
}

.ltable .ltable-ico {
	display: inline-block;
}

.ltable .ltable-ico--check {
	color: #15803d;
}

.ltable .ltable-ico--x {
	color: #c0262d;
}

.ltable .ltable-ico--star {
	color: #d18a00;
}

.ltable .ltable-rating span {
	letter-spacing: 0.08em;
	color: transparent;
	background: linear-gradient(90deg, #d18a00 var(--ltable-rating, 0%), var(--ltable-line-strong) 0);
	-webkit-background-clip: text;
	background-clip: text;
}

.ltable .ltable-list {
	display: inline-block;
	margin: 0;
	padding: 0;
	text-align: start;
	list-style: none;
}

.ltable .ltable-list li {
	position: relative;
	margin: 4px 0;
	padding-inline-start: 22.4px;
}

.ltable .ltable-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 3.2px;
	top: 0.4em;
	width: 10.4px;
	height: 5.6px;
	border-inline-start: 2px solid #15803d;
	border-bottom: 2px solid #15803d;
	transform: rotate(-45deg);
}

.ltable-note {
	padding: 12px 16px;
	font-size: 14px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {

	.ltable .ltable__table td,
	.ltable .ltable__table tbody {
		transition: background-color 0.12s ease, opacity 0.15s ease;
	}

	.ltable .ltable__more summary svg {
		transition: transform 0.15s ease;
	}
}

.ltable.is-loading .ltable__table tbody {
	opacity: 0.55;
}

/*
 * Per-device column hiding (six widths) and stack mode. Widths are the
 * table's own width (container queries), so tables in sidebars and narrow
 * columns behave too.
 */
@container ltable (max-width: 479.98px) {

	.ltable.ltable .ltable__table .ltable-hide-xs {
		display: none;
	}

	.ltable.ltable--more-xs .ltable__more-col {
		display: table-cell;
	}

	.ltable .ltable__more dl > .ltable-only-xs {
		display: grid;
	}
}

@container ltable (min-width: 480px) and (max-width: 767.98px) {

	.ltable.ltable .ltable__table .ltable-hide-sm {
		display: none;
	}

	.ltable.ltable--more-sm .ltable__more-col {
		display: table-cell;
	}

	.ltable .ltable__more dl > .ltable-only-sm {
		display: grid;
	}
}

@container ltable (min-width: 768px) and (max-width: 1023.98px) {

	.ltable.ltable .ltable__table .ltable-hide-md {
		display: none;
	}

	.ltable.ltable--more-md .ltable__more-col {
		display: table-cell;
	}

	.ltable .ltable__more dl > .ltable-only-md {
		display: grid;
	}
}

@container ltable (min-width: 1024px) and (max-width: 1279.98px) {

	.ltable.ltable .ltable__table .ltable-hide-lg {
		display: none;
	}

	.ltable.ltable--more-lg .ltable__more-col {
		display: table-cell;
	}

	.ltable .ltable__more dl > .ltable-only-lg {
		display: grid;
	}
}

@container ltable (min-width: 1280px) and (max-width: 1535.98px) {

	.ltable.ltable .ltable__table .ltable-hide-xl {
		display: none;
	}

	.ltable.ltable--more-xl .ltable__more-col {
		display: table-cell;
	}

	.ltable .ltable__more dl > .ltable-only-xl {
		display: grid;
	}
}

@container ltable (min-width: 1536px) {

	.ltable.ltable .ltable__table .ltable-hide-xxl {
		display: none;
	}

	.ltable.ltable--more-xxl .ltable__more-col {
		display: table-cell;
	}

	.ltable .ltable__more dl > .ltable-only-xxl {
		display: grid;
	}
}

/* Stack mode: below the chosen width each row becomes a card of label and value pairs. */
.ltable.ltable--stack-xs .ltable__table td:empty {
	display: none;
}

.ltable.ltable--stack-xs .ltable__table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ltable.ltable--stack-xs .ltable__scroll {
	max-height: none;
	overflow: visible;
	border: 0;
}

.ltable.ltable--stack-xs .ltable__table,
.ltable.ltable--stack-xs .ltable__table tbody,
.ltable.ltable--stack-xs .ltable__table tr,
.ltable.ltable--stack-xs .ltable__table td {
	display: block;
}

.ltable.ltable--stack-xs .ltable__table tr {
	margin-bottom: 12px;
	border: 1px solid var(--ltable-line);
	border-radius: var(--ltable-radius);
	overflow: hidden;
}

.ltable.ltable--stack-xs .ltable__table td {
	display: grid;
	grid-template-columns: minmax(104px, 38%) 1fr;
	justify-items: start;
	gap: 12px;
	text-align: start;
	border-bottom: 1px solid var(--ltable-line);
}

.ltable.ltable--stack-xs .ltable__table caption {
	display: block;
}

.ltable.ltable--stack-xs .ltable__table td::before {
	content: attr(data-label);
	font-weight: 600;
	color: var(--ltable-muted);
}

.ltable.ltable--stack-xs .ltable__table tr td:last-child {
	border-bottom: 0;
}

.ltable.ltable--stack-xs .ltable__table tr.ltable__empty td {
	display: block;
}

.ltable.ltable--stack-xs .ltable__table tr.ltable__empty td::before {
	content: none;
}

@container ltable (max-width: 479.98px) {

	.ltable.ltable--stack-sm .ltable__table td:empty {

		display: none;

	}


	.ltable.ltable--stack-sm .ltable__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ltable.ltable--stack-sm .ltable__scroll {
		max-height: none;
		overflow: visible;
		border: 0;
	}

	.ltable.ltable--stack-sm .ltable__table,
	.ltable.ltable--stack-sm .ltable__table tbody,
	.ltable.ltable--stack-sm .ltable__table tr {
		display: block;
	}

	.ltable.ltable--stack-sm .ltable__table tr {
		margin-bottom: 12px;
		border: 1px solid var(--ltable-line);
		border-radius: var(--ltable-radius);
		overflow: hidden;
	}

	.ltable.ltable--stack-sm .ltable__table td {
		display: grid;
		grid-template-columns: minmax(104px, 38%) 1fr;
		justify-items: start;
		gap: 12px;
		text-align: start;
		border-bottom: 1px solid var(--ltable-line);
	}

	.ltable.ltable--stack-sm .ltable__table caption {
		display: block;
	}

	.ltable.ltable--stack-sm .ltable__table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--ltable-muted);
	}

	.ltable.ltable--stack-sm .ltable__table tr td:last-child {
		border-bottom: 0;
	}

	.ltable.ltable--stack-sm .ltable__table tr.ltable__empty td {
		display: block;
	}

	.ltable.ltable--stack-sm .ltable__table tr.ltable__empty td::before {
		content: none;
	}
}

@container ltable (max-width: 767.98px) {

	.ltable.ltable--stack-md .ltable__table td:empty {

		display: none;

	}


	.ltable.ltable--stack-md .ltable__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ltable.ltable--stack-md .ltable__scroll {
		max-height: none;
		overflow: visible;
		border: 0;
	}

	.ltable.ltable--stack-md .ltable__table,
	.ltable.ltable--stack-md .ltable__table tbody,
	.ltable.ltable--stack-md .ltable__table tr {
		display: block;
	}

	.ltable.ltable--stack-md .ltable__table tr {
		margin-bottom: 12px;
		border: 1px solid var(--ltable-line);
		border-radius: var(--ltable-radius);
		overflow: hidden;
	}

	.ltable.ltable--stack-md .ltable__table td {
		display: grid;
		grid-template-columns: minmax(104px, 38%) 1fr;
		justify-items: start;
		gap: 12px;
		text-align: start;
		border-bottom: 1px solid var(--ltable-line);
	}

	.ltable.ltable--stack-md .ltable__table caption {
		display: block;
	}

	.ltable.ltable--stack-md .ltable__table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--ltable-muted);
	}

	.ltable.ltable--stack-md .ltable__table tr td:last-child {
		border-bottom: 0;
	}

	.ltable.ltable--stack-md .ltable__table tr.ltable__empty td {
		display: block;
	}

	.ltable.ltable--stack-md .ltable__table tr.ltable__empty td::before {
		content: none;
	}
}

@container ltable (max-width: 1023.98px) {

	.ltable.ltable--stack-lg .ltable__table td:empty {

		display: none;

	}


	.ltable.ltable--stack-lg .ltable__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ltable.ltable--stack-lg .ltable__scroll {
		max-height: none;
		overflow: visible;
		border: 0;
	}

	.ltable.ltable--stack-lg .ltable__table,
	.ltable.ltable--stack-lg .ltable__table tbody,
	.ltable.ltable--stack-lg .ltable__table tr {
		display: block;
	}

	.ltable.ltable--stack-lg .ltable__table tr {
		margin-bottom: 12px;
		border: 1px solid var(--ltable-line);
		border-radius: var(--ltable-radius);
		overflow: hidden;
	}

	.ltable.ltable--stack-lg .ltable__table td {
		display: grid;
		grid-template-columns: minmax(104px, 38%) 1fr;
		justify-items: start;
		gap: 12px;
		text-align: start;
		border-bottom: 1px solid var(--ltable-line);
	}

	.ltable.ltable--stack-lg .ltable__table caption {
		display: block;
	}

	.ltable.ltable--stack-lg .ltable__table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--ltable-muted);
	}

	.ltable.ltable--stack-lg .ltable__table tr td:last-child {
		border-bottom: 0;
	}

	.ltable.ltable--stack-lg .ltable__table tr.ltable__empty td {
		display: block;
	}

	.ltable.ltable--stack-lg .ltable__table tr.ltable__empty td::before {
		content: none;
	}
}

@container ltable (max-width: 1279.98px) {

	.ltable.ltable--stack-xl .ltable__table td:empty {

		display: none;

	}


	.ltable.ltable--stack-xl .ltable__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ltable.ltable--stack-xl .ltable__scroll {
		max-height: none;
		overflow: visible;
		border: 0;
	}

	.ltable.ltable--stack-xl .ltable__table,
	.ltable.ltable--stack-xl .ltable__table tbody,
	.ltable.ltable--stack-xl .ltable__table tr {
		display: block;
	}

	.ltable.ltable--stack-xl .ltable__table tr {
		margin-bottom: 12px;
		border: 1px solid var(--ltable-line);
		border-radius: var(--ltable-radius);
		overflow: hidden;
	}

	.ltable.ltable--stack-xl .ltable__table td {
		display: grid;
		grid-template-columns: minmax(104px, 38%) 1fr;
		justify-items: start;
		gap: 12px;
		text-align: start;
		border-bottom: 1px solid var(--ltable-line);
	}

	.ltable.ltable--stack-xl .ltable__table caption {
		display: block;
	}

	.ltable.ltable--stack-xl .ltable__table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--ltable-muted);
	}

	.ltable.ltable--stack-xl .ltable__table tr td:last-child {
		border-bottom: 0;
	}

	.ltable.ltable--stack-xl .ltable__table tr.ltable__empty td {
		display: block;
	}

	.ltable.ltable--stack-xl .ltable__table tr.ltable__empty td::before {
		content: none;
	}
}

@container ltable (max-width: 1535.98px) {

	.ltable.ltable--stack-xxl .ltable__table td:empty {

		display: none;

	}


	.ltable.ltable--stack-xxl .ltable__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ltable.ltable--stack-xxl .ltable__scroll {
		max-height: none;
		overflow: visible;
		border: 0;
	}

	.ltable.ltable--stack-xxl .ltable__table,
	.ltable.ltable--stack-xxl .ltable__table tbody,
	.ltable.ltable--stack-xxl .ltable__table tr {
		display: block;
	}

	.ltable.ltable--stack-xxl .ltable__table tr {
		margin-bottom: 12px;
		border: 1px solid var(--ltable-line);
		border-radius: var(--ltable-radius);
		overflow: hidden;
	}

	.ltable.ltable--stack-xxl .ltable__table td {
		display: grid;
		grid-template-columns: minmax(104px, 38%) 1fr;
		justify-items: start;
		gap: 12px;
		text-align: start;
		border-bottom: 1px solid var(--ltable-line);
	}

	.ltable.ltable--stack-xxl .ltable__table caption {
		display: block;
	}

	.ltable.ltable--stack-xxl .ltable__table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--ltable-muted);
	}

	.ltable.ltable--stack-xxl .ltable__table tr td:last-child {
		border-bottom: 0;
	}

	.ltable.ltable--stack-xxl .ltable__table tr.ltable__empty td {
		display: block;
	}

	.ltable.ltable--stack-xxl .ltable__table tr.ltable__empty td::before {
		content: none;
	}
}

/* Buttons inside cells stay compact. */
.ltable .ltable__table .ltable-btn {
	min-height: 32px;
	padding: 0 13.6px;
	font-size: 14px;
	border-radius: 999px;
}

/* Header kept for screen readers but not shown (hide_header). */
.ltable .ltable__table thead.ltable__head-hidden tr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Group rows. */
.ltable .ltable__table tr.ltable__group th {
	padding-block: 0.6em;
	font-size: 0.8125em;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: inherit;
	background: color-mix(in srgb, var(--ltable-accent) 9%, transparent);
	border-bottom: 1px solid var(--ltable-line);
}

/* Footer totals. */
.ltable .ltable__table tfoot td {
	font-weight: 600;
	font-variant-numeric: normal;
	border-top: 2px solid var(--ltable-line-strong);
	background: var(--ltable-head);
	white-space: nowrap;
}

.ltable .ltable__total-name {
	margin-inline-end: 0.35em;
	font-size: 0.75em;
	font-weight: 600;
	color: var(--ltable-muted);
}

/* Row links: the cell's link covers the row. */
.ltable .ltable__table tbody tr {
	position: relative;
}

.ltable .ltable__table a[data-ltable-row-link]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ltable .ltable__table tr:has(a[data-ltable-row-link]) {
	cursor: pointer;
}

/* Fixed first column while the table scrolls sideways. */
.ltable.ltable--fixed-first .ltable__table tr:not(.ltable__group) > :first-child {
	position: sticky;
	inset-inline-start: 0;
	z-index: 1;
	background: var(--ltable-surface);
	box-shadow: inset -1px 0 0 var(--ltable-line);
}

.ltable.ltable--fixed-first .ltable__table thead tr:not(.ltable__group) > :first-child,
.ltable.ltable--fixed-first .ltable__table tfoot tr:not(.ltable__group) > :first-child {
	background: linear-gradient(var(--ltable-head), var(--ltable-head)), var(--ltable-surface);
}

.ltable.ltable--fixed-first.ltable--stripes .ltable__table tbody tr:nth-child(even):not(.ltable__group) > td:first-child {
	background: linear-gradient(var(--ltable-soft), var(--ltable-soft)), var(--ltable-surface);
}

.ltable.ltable--fixed-first.ltable--hover .ltable__table tbody tr:hover > td:first-child {
	background: linear-gradient(var(--ltable-hover), var(--ltable-hover)), var(--ltable-surface);
}

.ltable.ltable--fixed-first.ltable--sticky-header .ltable__table thead tr > :first-child {
	z-index: 3;
}
