.bdf-document-filter {
	--bdf-border: #d8dee6;
	--bdf-surface: #ffffff;
	--bdf-muted: #5e6b78;
	--bdf-text: #1f2933;
	--bdf-accent: #1268a8;
	--bdf-accent-dark: #0d4f80;
	color: var(--bdf-text);
}

.bdf-controls {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(260px, 2fr) minmax(170px, 1fr) minmax(220px, 1.2fr) minmax(200px, 1.1fr);
	margin-bottom: 18px;
}

.bdf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.bdf-field label {
	font-size: 0.875rem;
	font-weight: 700;
}

.bdf-field input,
.bdf-field select {
	background: var(--bdf-surface);
	border: 1px solid var(--bdf-border);
	border-radius: 6px;
	color: var(--bdf-text);
	font: inherit;
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.bdf-field select {
	-webkit-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--bdf-text) 50%),
		linear-gradient(135deg, var(--bdf-text) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 50%,
		calc(100% - 12px) 50%;
	background-repeat: no-repeat;
	background-size: 6px 6px, 6px 6px;
	padding-right: 34px;
	text-overflow: ellipsis;
}

.bdf-view-switch {
	display: inline-flex;
	gap: 8px;
}

.bdf-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	grid-column: 1 / -1;
}

.bdf-result-meta {
	color: var(--bdf-muted);
	display: flex;
	font-size: 0.9375rem;
	justify-content: space-between;
	margin-bottom: 10px;
}

.bdf-table-wrap {
	border: 1px solid var(--bdf-border);
	border-radius: 8px;
	overflow-x: auto;
}

.bdf-table {
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.bdf-table th,
.bdf-table td {
	border-bottom: 1px solid var(--bdf-border);
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}

.bdf-table th {
	background: #f4f7fa;
	font-weight: 800;
	white-space: nowrap;
}

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

.bdf-table a,
.bdf-card a,
.bdf-link-list a {
	color: var(--bdf-accent);
	font-weight: 700;
	text-decoration: none;
}

.bdf-table a:hover,
.bdf-card a:hover,
.bdf-link-list a:hover {
	text-decoration: underline;
}

.bdf-link-list {
	margin-bottom: 0;
	margin-top: 0;
}

.bdf-link-list li + li {
	margin-top: 6px;
}

.bdf-list {
	display: grid;
	gap: 10px;
}

.bdf-card {
	border: 1px solid var(--bdf-border);
	border-radius: 8px;
	padding: 14px;
}

.bdf-card h3 {
	font-size: 1.0625rem;
	line-height: 1.35;
	margin: 0 0 8px;
}

.bdf-card-meta {
	color: var(--bdf-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 0.9375rem;
}

.bdf-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.bdf-page.is-active {
	cursor: default;
}

.bdf-page-ellipsis {
	align-items: center;
	color: var(--bdf-muted);
	display: inline-flex;
	min-height: 36px;
	padding: 0 4px;
}

.bdf-empty {
	border: 1px solid var(--bdf-border);
	border-radius: 8px;
	margin: 0;
	padding: 18px;
}

.boundary-meetings.bdf-document-filter {
	margin: 1.5rem 0;
}

.boundary-meetings__controls {
	grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.boundary-meetings .bdf-table-wrap,
.boundary-meetings .bdf-list,
.boundary-meetings .bdf-link-list {
	margin-bottom: 1.5rem;
}

.boundary-meetings .boundary-meetings__year-row th {
	background: #e9eef4;
	color: var(--bdf-text);
	font-size: 1rem;
}

.boundary-meetings__empty {
	margin: 1rem 0;
}

.bdf-document-filter.is-loading {
	opacity: 0.65;
}

@media (max-width: 980px) {
	.bdf-controls {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bdf-controls {
		grid-template-columns: 1fr;
	}

	.bdf-actions,
	.bdf-view-switch {
		width: 100%;
	}

	.bdf-view-button[data-bdf-view="table"] {
		display: none;
	}
}
