.tcf-component {
	--tcf-primary: #2563eb;
	--tcf-head-bg: #1e3a5f;
	--tcf-head-text: #fff;
	--tcf-border: #dbe2ea;
	--tcf-hover: #eff6ff;
	--tcf-radius: 12px;
	--tcf-font-size: 15px;
	box-sizing: border-box;
	color: #172033;
	font-size: var(--tcf-font-size);
	line-height: 1.5;
	margin-block: 1.5rem;
	max-width: 100%;
}

.tcf-anchor {
	display: block;
	position: relative;
	top: -24px;
	visibility: hidden;
}

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

.tcf-title {
	color: inherit;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.2;
	margin: 0 0 1rem;
}

.tcf-filter-panel {
	background: #fff;
	border: 1px solid var(--tcf-border);
	border-radius: var(--tcf-radius);
	margin-bottom: 1rem;
	overflow: hidden;
}

.tcf-filter-panel > summary {
	align-items: center;
	color: #334155;
	cursor: pointer;
	display: flex;
	font-size: 0.92rem;
	font-weight: 700;
	gap: 0.6rem;
	list-style: none;
	min-height: 48px;
	padding: 0.65rem 0.9rem;
	user-select: none;
}

.tcf-filter-panel > summary::-webkit-details-marker {
	display: none;
}

.tcf-filter-panel > summary::after {
	color: #64748b;
	content: "⌄";
	font-size: 1.1rem;
	margin-left: 0.2rem;
	transition: transform 150ms ease;
}

.tcf-filter-panel[open] > summary::after {
	transform: rotate(180deg);
}

.tcf-filter-panel > summary:hover {
	background: #f8fafc;
}

.tcf-filter-panel > summary:focus-visible {
	box-shadow: inset 0 0 0 2px var(--tcf-primary);
	outline: 0;
}

.tcf-filter-panel > summary small {
	color: #64748b;
	font-size: 0.76rem;
	font-weight: 500;
	margin-left: auto;
}

.tcf-filter-panel.has-active-filters > summary small,
.tcf-filter-panel.has-active-filters .tcf-filter-icon {
	color: var(--tcf-primary);
	font-weight: 700;
}

.tcf-filter-icon {
	align-items: center;
	background: #f1f5f9;
	border-radius: 6px;
	display: inline-flex;
	font-size: 1rem;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.tcf-filters {
	align-items: end;
	background: #f7f9fc;
	border: 1px solid var(--tcf-border);
	border-radius: var(--tcf-radius);
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin-bottom: 1rem;
	padding: 1rem;
}

.tcf-filter-panel .tcf-filters {
	border: 0;
	border-radius: 0;
	border-top: 1px solid var(--tcf-border);
	margin: 0;
}

.tcf-field {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	gap: 0.35rem;
	margin: 0;
}

.tcf-field > span:first-child,
.tcf-field > legend {
	font-size: 0.86rem;
}

fieldset.tcf-field {
	border: 0;
	margin: 0;
	min-inline-size: 0;
	padding: 0;
}

fieldset.tcf-field > legend {
	font-weight: 600;
	margin-bottom: 0.35rem;
	padding: 0;
}

.tcf-field input:not([type="checkbox"]),
.tcf-field select,
.tcf-field textarea {
	appearance: none;
	background: #fff;
	border: 1px solid #aeb9c8;
	border-radius: 8px;
	box-shadow: none;
	color: #172033;
	font: inherit;
	font-weight: 400;
	margin: 0;
	max-width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.75rem;
	width: 100%;
}

.tcf-field textarea {
	min-height: 110px;
	resize: vertical;
}

.tcf-field select[multiple] {
	min-height: 115px;
}

.tcf-field input:focus,
.tcf-field select:focus,
.tcf-field textarea:focus,
.tcf-sort:focus-visible,
.tcf-button:focus-visible {
	border-color: var(--tcf-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tcf-primary) 22%, transparent);
	outline: 2px solid transparent;
}

.tcf-field small {
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 400;
}

.tcf-field--search {
	grid-column: span 2;
}

.tcf-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1rem;
	text-decoration: none;
}

.tcf-button--primary {
	background: var(--tcf-primary);
	color: #fff;
}

.tcf-button--secondary {
	background: #fff;
	border-color: var(--tcf-border);
	color: #334155;
}

.tcf-table-scroll {
	border: 1px solid var(--tcf-border);
	border-radius: var(--tcf-radius);
	overflow-x: auto;
}

.tcf-table {
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: inherit;
	margin: 0;
	min-width: 100%;
	width: 100%;
}

.tcf-table th,
.tcf-table td {
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--tcf-border);
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: middle;
}

.tcf-table th {
	background: var(--tcf-head-bg) !important;
	color: var(--tcf-head-text) !important;
	font-weight: 700;
	white-space: nowrap;
}

.tcf-component .tcf-table thead th,
.tcf-component .tcf-table thead th *,
.tcf-component .tcf-table thead .tcf-sort {
	color: var(--tcf-head-text) !important;
}

.tcf-has-tags .tcf-table .tcf-col-tags {
	min-width: 240px;
	width: 42%;
}

.tcf-has-tags .tcf-table .tcf-col:not(.tcf-col-tags) {
	width: 1%;
}

.tcf-has-tags .tcf-table td.tcf-col:not(.tcf-col-tags) {
	min-width: 105px;
}

.tcf-table th:first-child {
	border-top-left-radius: calc(var(--tcf-radius) - 1px);
}

.tcf-table th:last-child {
	border-top-right-radius: calc(var(--tcf-radius) - 1px);
}

.tcf-table tbody tr:last-child td {
	border-bottom: 0;
}

.tcf-table tbody tr:hover td {
	background: var(--tcf-hover);
}

.tcf-is-striped .tcf-table tbody tr:nth-child(even) td {
	background: #f8fafc;
}

.tcf-is-striped .tcf-table tbody tr:nth-child(even):hover td {
	background: var(--tcf-hover);
}

.tcf-sort {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: inherit;
	gap: 0.5rem;
	justify-content: space-between;
	margin: -0.4rem;
	padding: 0.4rem;
	width: calc(100% + 0.8rem);
}

.tcf-sort-icon {
	font-size: 1.05em;
	opacity: 0.72;
}

.tcf-sort.is-active .tcf-sort-icon {
	opacity: 1;
}

.tcf-table a {
	color: var(--tcf-primary);
	font-weight: 600;
}

.tcf-tag {
	align-items: center;
	background: color-mix(in srgb, var(--tcf-primary) 12%, white);
	border: 1px solid color-mix(in srgb, var(--tcf-primary) 26%, white);
	border-radius: 999px;
	color: color-mix(in srgb, var(--tcf-primary) 78%, #111827);
	display: inline-flex;
	font-size: 0.72em;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	padding: 0.18rem 0.46rem;
}

.tcf-tag-list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	max-width: 100%;
	width: 100%;
}

.tcf-tag-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tcf-tag-choice {
	align-items: center;
	background: #fff;
	border: 1px solid var(--tcf-border);
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 600;
	gap: 0.35rem;
	padding: 0.4rem 0.7rem;
}

.tcf-tag-choice:has(input:checked) {
	background: color-mix(in srgb, var(--tcf-primary) 12%, white);
	border-color: var(--tcf-primary);
	color: var(--tcf-primary);
}

.tcf-tag-choice input {
	accent-color: var(--tcf-primary);
	margin: 0;
}

.tcf-muted,
.tcf-results {
	color: #64748b;
}

.tcf-results {
	font-size: 0.85rem;
	margin: 0.55rem 0 0;
	text-align: right;
}

.tcf-empty {
	background: #f8fafc;
	border: 1px dashed var(--tcf-border);
	border-radius: var(--tcf-radius);
	margin: 1rem 0 0;
	padding: 1.2rem;
	text-align: center;
}

.tcf-empty[hidden],
.tcf-table tr[hidden] {
	display: none !important;
}

.tcf-form-panel {
	background: #f7f9fc;
	border: 1px solid var(--tcf-border);
	border-radius: var(--tcf-radius);
	margin-top: 1.5rem;
	padding: clamp(1rem, 3vw, 1.5rem);
}

.tcf-form-panel h3 {
	color: inherit;
	font-size: 1.3rem;
	margin: 0 0 1rem;
}

.tcf-form-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 1rem;
}

.tcf-field--wide {
	grid-column: 1 / -1;
}

.tcf-checkbox {
	align-items: center;
	display: flex;
	font-weight: 400;
	gap: 0.45rem;
	min-height: 44px;
}

.tcf-checkbox input {
	accent-color: var(--tcf-primary);
	height: 20px;
	width: 20px;
}

.tcf-required {
	color: #b42318;
}

.tcf-honeypot {
	height: 0;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.tcf-notice {
	border-left: 4px solid;
	border-radius: 6px;
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
}

.tcf-notice--success {
	background: #ecfdf3;
	border-color: #16a34a;
	color: #166534;
}

.tcf-notice--error {
	background: #fff1f2;
	border-color: #e11d48;
	color: #9f1239;
}

@media (max-width: 720px) {
	.tcf-filters,
	.tcf-form-grid {
		grid-template-columns: 1fr;
	}

	.tcf-field--search,
	.tcf-field--wide {
		grid-column: auto;
	}

	.tcf-filter-panel > summary small {
		display: none;
	}

	.tcf-layout-cards .tcf-table-scroll {
		border: 0;
		overflow: visible;
	}

	.tcf-layout-cards .tcf-table,
	.tcf-layout-cards .tcf-table tbody,
	.tcf-layout-cards .tcf-table tr,
	.tcf-layout-cards .tcf-table td {
		display: block;
		width: 100%;
	}

	.tcf-layout-cards .tcf-table thead {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.tcf-layout-cards .tcf-table tr {
		background: #fff;
		border: 1px solid var(--tcf-border);
		border-radius: var(--tcf-radius);
		box-shadow: 0 4px 15px rgb(15 23 42 / 6%);
		margin-bottom: 0.8rem;
		overflow: hidden;
	}

	.tcf-layout-cards .tcf-table td,
	.tcf-layout-cards.tcf-is-striped .tcf-table tbody tr:nth-child(even) td {
		align-items: flex-start;
		background: #fff;
		display: grid;
		gap: 1rem;
		grid-template-columns: minmax(100px, 38%) 1fr;
		padding: 0.75rem 0.9rem;
		text-align: right;
	}

	.tcf-layout-cards .tcf-table td::before {
		color: #475569;
		content: attr(data-label);
		font-weight: 700;
		text-align: left;
	}

	.tcf-layout-cards .tcf-tag-list {
		justify-content: flex-end;
	}

	.tcf-layout-cards.tcf-has-tags .tcf-table .tcf-col {
		min-width: 0;
		width: 100%;
	}

	.tcf-layout-cards .tcf-table tr:last-child td:last-child,
	.tcf-layout-cards .tcf-table td:last-child {
		border-bottom: 0;
	}

	.tcf-layout-scroll .tcf-table {
		min-width: 680px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tcf-button,
	.tcf-table td {
		transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
	}

	.tcf-button:hover {
		transform: translateY(-1px);
	}
}
