/* Vendor */
@import "bootstrap/scss/bootstrap.scss";
@import "datatables.net-bs5/css/dataTables.bootstrap5.css";
@import "@algolia/autocomplete-theme-classic/dist/theme.min.css";

@import "leaflet/dist/leaflet.css";
@import "leaflet-loading/src/Control.Loading.css";
@import "leaflet-fullscreen/dist/leaflet.fullscreen.css";

@import "highlight.js/styles/github.css";

@import "layout.css";

@import "prose.css";

@import "components/icon.css";
@import "components/tag.css";
@import "components/pidbadge.css";

@import "modules/pageheader.css";
@import "modules/searchbutton.css";

:root {
	--sidebar-width: 220px;
}

/* overwrite large Bootstrap headings */
h1 {
	font-size: min(calc(1.375rem + 1.5vw), 2rem);
}

h2 {
	font-size: min(calc(1.325rem + .9vw), 1.75rem);
}

h3 {
	font-size: min(calc(1.3rem + .6vw), 1.5rem);
}

h4 {
	font-size: min(calc(1.275rem + .3vw), 1.25rem);
}

h5 {
	font-size: 1.125rem;
}

h6 {
	font-size: 1rem;
}

.text-code {
	color: var(--bs-code-color);
}

.footer-copy {
	border-top: 1px solid var(--bs-gray-200);
}


.table-meta_data thead th:first-child {
	width: 33%;
}

.link-subtle {
	color: currentColor;
	text-decoration: none;
}

.link-subtle:hover,
.link-subtle:focus {
	text-decoration: underline;
}

/**
 * Map Control overlay for map.
 * https://leafletjs.com/examples/choropleth/
 */
.info {
	padding: 6px 8px;
	font: 14px/16px Arial, Helvetica, sans-serif;
	background: white;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	min-width: 150px;
}

.info h4 {
	margin: 0 0 5px;
	color: #777;
}

.legend {
	line-height: 18px;
	color: #555;
}

.legend i {
	width: 18px;
	height: 18px;
	float: left;
	margin-right: 8px;
	opacity: 0.7;
}

.datalayer-states--inline .datalayer-state {
	display: inline-block;
}

.datalayer-state {
	position: relative;
	font-size: .875em;
	color: rgba(var(--bs-secondary-rgb), 1);
}

.datalayer-state--active .datalayer-state-icon {
	color: var(--bs-success);
}

.datalayer-state--inactive .datalayer-state-icon {
	color: var(--bs-gray-400);
}


.dt-uninitialized .dt-default-hidden {
	display: none;
}

dh-chart {
	--aa-search-input-height: 36px;
	--aa-input-border-color-rgb: 222, 226, 230;
	--aa-input-border-color-alpha: 1;


	min-height: 636px;
	display: block;
}

dh-chart .aa-Form {
	border-radius: var(--bs-border-radius);
	/* no var in AA for this */
}


.dlv-derived-cell {
	position: relative;
	padding-left: 3em !important;
}

.dlv-derived-btn {
	position: absolute;
	left: 0.25em;
	top: 50%;
	transform: translateY(-50%);
}

.dlv>.popover {
	display: none;
	min-width: 200px;
}

.dlv>.popover>.popover-arrow {
	position: absolute;
	left: 0;
	transform: translate3d(84px, 0px, 0px);
}

.dlv:hover .popover {
	position: absolute;
	display: block;
	bottom: 100.25%;
	left: 2em;
	transform: translateX(-50%);
}


.leaflet-popup-content-wrapper {
	max-height: 250px;
	overflow: scroll;
}

.leaflet-top,
.leaflet-bottom {
	/* in the leaflet source this is 1000. bootstrap dropdown has z-index: 1000 as well.
	to prevent the leaflet controls being over the bootstrap controls we reduce it. */
	z-index: 999;
}



.row-striped {
	--bs-table-color-type: var(--bs-table-striped-color);
	--bs-table-bg-type: var(--bs-table-striped-bg);
}


.btn-language-toggle {
	border-color: var(--bs-border-color);
}