/* Main content area */
#main-loading {
	text-align: center;
}

#main-loading-image {
	width: 256px;
	height: 256px;
	padding: 0;
}


/* Scrollbars */
div {
	scrollbar-width: auto !important;
	scrollbar-color: #1166dd transparent !important;
}

div::-webkit-scrollbar {
	width: 16px !important;
}

div::-webkit-scrollbar-track {
	background: transparent !important;
}

div::-webkit-scrollbar-thumb {
	background-color: #1166dd !important;
	border-radius: 10px !important;
	border: 3px solid transparent !important;
}


/* Search control */
#search-control {
	display: block;
	width: 100%;
	padding: 0.775rem 1rem;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.5;
	color: white;
	background: none;
	border: none;
	appearance: none;
	outline: none;
}
.search-control:active {
	border: none;
}

.search-control::placeholder {
	color: #ccc
}


/* Products browser */
#products-browser {
	display: flex;
	flex-flow: column;
	height: 100%;
}

#products-browser-top {
	height: 312px;
}

#products-browser-bottom {
	flex-grow: 1;
	overflow: hidden;
	position: relative;
}

#products-browser-bottom-container {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	overflow: hidden;
}


#products-browser-parameters {
	display: flex;
	flex-flow: column;
	height: 310px;
}

#products-browser-results {
	display: flex;
	flex-flow: column;
	height: 100%;
}

#products-browser-parameters-container {
	width: 100%;
	display: flex;
	gap: 12px;
	overflow-x: auto;
}


#products-browser-quantity-container {
	margin-top: 10px;
}

#products-browser-quantity-container > div {
	display: inline-block;
}
#products-browser-quantity-min {
	display: inline-block;
	width: 110px;
	height: 28px;
}

#products-browser-quantity-container .form-check-label {
	color: #222;
}

.product-browser-parameter-list {
	flex: 0 0 200px;
	background-color: white;
	margin-bottom: 8px;
}

.product-browser-parameter-list > .top {
	border: 1px solid #ccc;
	box-sizing: border-box;
	height: 44px;

	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;

	padding: 12px;

	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-browser-parameter-list > .bottom > .filter {
	overflow: hidden;
}

.product-browser-parameter-list > .bottom > .filter > .filter-control {
	padding: 8px 8px;
	margin-right: 6px;
	height: 28px;
	display: inline-block;
}

.product-browser-parameter-list > .bottom > .filter > .min,
.product-browser-parameter-list > .bottom > .filter > .max {
	width: 50px;
}

.product-browser-parameter-list > .bottom > .filter > .filter-unit {
	width: 50px;
}

.product-browser-parameter-list > .bottom {
	height: 202px;

	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	box-sizing: border-box;

	-webkit-border-bottom-right-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-radius-bottomright: 5px;
	-moz-border-radius-bottomleft: 5px;
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;

	padding: 4px 0 4px 0;
}

.product-browser-parameter-list > .bottom > .filter {
	height: 30px;
	margin: 0 4px;
}

.product-browser-parameter-list > .bottom > .values {
	height: 176px;
	margin-right: 2px;
	overflow-x: hidden;
	overflow-y: scroll;
}

.product-browser-parameter-list > .bottom > .values.has-filter {
	height: 144px;
}

.product-browser-parameter-list > .bottom > .values > .value {
	padding: 2px 4px;
	margin: 0 2px;
}

.product-browser-parameter-list > .bottom > .values > .value.selected {
	background-color: #0d6efd;
	color: white;
}

.product-browser-parameter-list > .bottom > .reset {
	font-weight: bold;
	cursor: pointer;
	text-align: center;
}

#products-browser-results-table-container {
	position: relative;
	box-sizing: border-box;
	margin: 1vh 0;
	height: 100vh;
}

.products-browser-results-table-header {
}

.products-browser-results-table-header > tr > th {
	border-right: 1px solid #ccc !important;
	border-bottom: 1px solid #ccc !important;
}

#products-browser-results-table > tbody > tr > td {
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

#products-browser-results-table > tbody > tr > td:last-child {
	border-right: none;
}

#products-browser-results-table > tbody > tr:last-child > td {
	border-bottom: none;
}

.product-result-image {
	text-align: center;
}

.product-result-image > img {
	max-width: 50px;
}

.product-result-image > .datasheet-link > a > i{
	color: rgb(0, 158, 247);
}

.product-result-prices > dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
}

.product-result-prices > dl > dt {
	grid-column-start: 1;
	text-align: right;
	padding-right: 10px;
}

.product-result-prices > dl > dd {
	grid-column-start: 2;
	text-align: left;
}

.copy-to-clipboard {
	color: rgb(0, 158, 247) !important;
	cursor: pointer;
}