.bimverdi-doffin-with-filter {
	margin: 1.5em 0;
}

.bimverdi-doffin-with-filter .bvd-filterbar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"search   search"
		"cpv      fylker"
		"actions  actions";
	gap: 1em;
	padding: 1em;
	background: #f6f7f9;
	border: 1px solid #e3e6ea;
	border-radius: 6px;
	margin-bottom: 1em;
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

.bimverdi-doffin-with-filter .bvd-filter {
	min-width: 0;
}
.bimverdi-doffin-with-filter .bvd-filter--search       { grid-area: search; }
.bimverdi-doffin-with-filter .bvd-filter--cpv-wrap     { grid-area: cpv; }
.bimverdi-doffin-with-filter .bvd-filter--fylker-wrap  { grid-area: fylker; }
.bimverdi-doffin-with-filter .bvd-filter__actions      { grid-area: actions; }

.bimverdi-doffin-with-filter .bvd-filter__label {
	font-weight: 600;
	display: block;
	margin-bottom: 0.4em;
}

.bimverdi-doffin-with-filter .bvd-filter--search input.bvd-filter__search {
	width: 100%;
	padding: 0.45em 0.6em;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 0.95em;
	box-sizing: border-box;
}

.bimverdi-doffin-with-filter .bvd-filter__hint {
	display: block;
	margin-top: 0.4em;
	font-size: 0.82em;
	color: #555;
	line-height: 1.4;
}

.bimverdi-doffin-with-filter .bvd-vedleggsok {
	color: #1e6cb6;
	text-decoration: underline;
}
.bimverdi-doffin-with-filter .bvd-vedleggsok:hover {
	color: #155a99;
}

.bimverdi-doffin-with-filter .bvd-filter__options {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.3em 0.8em;
	max-height: 12em;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.4em;
}

.bimverdi-doffin-with-filter .bvd-filter__options label {
	font-size: 0.92em;
	display: block;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	line-height: 1.3;
}

.bimverdi-doffin-with-filter .bvd-filter__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5em;
	justify-content: flex-end;
	align-items: center;
}

.bimverdi-doffin-with-filter .bvd-filter__actions button {
	padding: 0.45em 0.9em;
	border: 1px solid #ccd0d4;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.92em;
}

.bimverdi-doffin-with-filter .bvd-filter__actions .bvd-apply {
	background: #1e6cb6;
	border-color: #1e6cb6;
	color: #fff;
}
.bimverdi-doffin-with-filter .bvd-filter__actions .bvd-apply:hover {
	background: #155a99;
}

.bimverdi-doffin-with-filter .bvd-loading,
.bimverdi-doffin-with-filter .bvd-error {
	padding: 0.5em 0;
	color: #555;
}
.bimverdi-doffin-with-filter .bvd-error {
	color: #a01818;
}

.bimverdi-doffin-with-filter .bimverdi-doffin-actions {
	margin-top: 0.6em;
	font-size: 0.9em;
}

.bimverdi-doffin-with-filter .bimverdi-doffin-vedleggsok {
	color: #1e6cb6;
	text-decoration: underline;
}
.bimverdi-doffin-with-filter .bimverdi-doffin-vedleggsok:hover {
	color: #155a99;
}

@media (max-width: 700px) {
	.bimverdi-doffin-with-filter .bvd-filterbar {
		grid-template-columns: 1fr;
		grid-template-areas:
			"search"
			"cpv"
			"fylker"
			"actions";
	}
	.bimverdi-doffin-with-filter .bvd-filter__actions {
		justify-content: stretch;
	}
	.bimverdi-doffin-with-filter .bvd-filter__actions button {
		flex: 1;
	}
}


.bimverdi-doffin-with-filter .bvd-load-more-wrap {
	text-align: center;
	margin: 1.5em 0 0.5em;
}

.bimverdi-doffin-with-filter .bvd-load-more {
	padding: 0.6em 1.4em;
	border: 1px solid #1e6cb6;
	background: #fff;
	color: #1e6cb6;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 600;
}
.bimverdi-doffin-with-filter .bvd-load-more:hover {
	background: #1e6cb6;
	color: #fff;
}
.bimverdi-doffin-with-filter .bvd-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}


.bimverdi-doffin-with-filter .bvd-fylke-all-label {
	font-weight: 600;
	margin-bottom: 0.3em;
	padding-bottom: 0.3em;
	border-bottom: 1px dashed #ccd0d4;
}


.bimverdi-doffin-cpv {
	margin: 0.5em 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.88em;
	color: #444;
}
.bimverdi-doffin-cpv li {
	margin: 0.15em 0;
	padding: 0;
	list-style: none;
}
.bimverdi-doffin-cpv li code {
	background: #eef1f4;
	padding: 1px 4px;
	border-radius: 3px;
}
