/* FlovacDropdown — the app's dropdown (public/assets/js/custom/flovac_dropdown.js).
   The box is an md-input field: its underline, its text metrics and the one
   chevron the selects in main.min.css have. The list is the flat panel the
   select2 dropdowns had: no border, 2px corners, a soft shadow. This file
   loads before main.min.css, so what has to outrank it is spelled out. */

/* The select stays in the page and holds the value, out of sight. It keeps
   a box, so code asking whether it is visible gets the answer it got before. */
select[data-flv-dropdown] {
	position: absolute !important;
	width: 1px !important;
	min-width: 0 !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

button.flv-dropdown {
	display: block;
	width: 100%;
	height: 43px;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 28px 12px 4px;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
	border-radius: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23727272' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 24px 24px;
	font: 400 15px/18px Roboto, sans-serif;
	color: inherit;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-transition: border-color .2s ease-in;
	transition: border-color .2s ease-in;
}

button.flv-dropdown[hidden] {
	display: none;
}

.flv-dropdown-label {
	display: block;
	min-height: 18px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

button.flv-dropdown:focus,
button.flv-dropdown.flv-dropdown-open {
	border-bottom-color: #2196f3;
}

button.flv-dropdown.md-input-danger {
	border-bottom-color: #e53935;
}

button.flv-dropdown.md-input-success {
	border-bottom-color: #7cb342;
}

button.flv-dropdown:disabled {
	border-bottom-style: dashed;
	opacity: .6;
	cursor: default;
}

/* The list. Above the modals (1010), the footer's time bar (999999) and the
   range picker (1000000). */
.flv-dropdown-popup {
	position: fixed;
	z-index: 1000001;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .26);
	font: 400 15px/19px Roboto, sans-serif;
	color: #212121;
	text-align: left;
}

.flv-dropdown-popup[hidden],
.flv-dropdown-popup [hidden] {
	display: none !important;
}

.flv-dropdown-search-row {
	flex: 0 0 auto;
	padding: 4px 12px 8px;
}

input.flv-dropdown-search {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	color: inherit;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	-webkit-transition: border-color .2s ease-in;
	transition: border-color .2s ease-in;
}

input.flv-dropdown-search:focus {
	border-bottom-color: #2196f3;
}

ul.flv-dropdown-list {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	list-style: none;
}

.flv-dropdown-option,
.flv-dropdown-group,
.flv-dropdown-none {
	margin: 0;
	padding: 8px 12px;
}

.flv-dropdown-option {
	min-height: 19px;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.flv-dropdown-option.flv-dropdown-grouped {
	padding-left: 24px;
}

.flv-dropdown-option.flv-dropdown-active {
	background: rgba(0, 0, 0, .07);
}

.flv-dropdown-option[aria-selected=true] {
	color: #1976d2;
	font-weight: 500;
}

.flv-dropdown-option[aria-disabled=true] {
	opacity: .45;
	cursor: default;
}

.flv-dropdown-group {
	padding-bottom: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #727272;
}

.flv-dropdown-none {
	color: #727272;
}

/* Nothing picked yet: the box says what it is for, greyed. */
button.flv-dropdown.flv-dropdown-placeholder .flv-dropdown-label {
	color: #727272;
}

/* A multiple select ticks its options: a column for the tick in front of
   every row, the tick itself only on the picked ones. */
.flv-dropdown-popup-multiple .flv-dropdown-option {
	position: relative;
	padding-left: 36px;
}

.flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true] {
	color: inherit;
	font-weight: 400;
}

.flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true]::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 50%;
	width: 5px;
	height: 10px;
	margin-top: -8px;
	border: solid #1976d2;
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

/* A tick that stays: something else on the page depends on it. */
.flv-dropdown-popup-multiple .flv-dropdown-option.flv-dropdown-locked {
	cursor: default;
}

.flv-dropdown-popup-multiple .flv-dropdown-option.flv-dropdown-locked::before {
	border-color: #9e9e9e;
}

/* A typed text that can be added. */
.flv-dropdown-option.flv-dropdown-created {
	font-style: italic;
}

/* Small dropdowns that stand in a line of other things: a table's pager and
   page size, a date picker's month and year. */
.ts_pager button.flv-dropdown,
.dataTables_length button.flv-dropdown,
.daterangepicker button.flv-dropdown {
	display: inline-block;
	width: auto;
	min-width: 64px;
	height: 32px;
	padding: 6px 26px 6px 4px;
	background-position: right 0 center;
	font-size: 14px;
	vertical-align: middle;
}

.ts_pager button.flv-dropdown {
	margin: -3px 0 0 4px;
}

.daterangepicker button.flv-dropdown {
	min-width: 0;
	height: 24px;
	padding: 2px 22px 2px 2px;
	background-size: 20px 20px;
	font-size: 12px;
}

/* A finger wants taller rows than a mouse. */
@media (pointer: coarse) {
	.flv-dropdown-option {
		padding-top: 12px;
		padding-bottom: 12px;
	}
}

/* The dark themes: light text, underline and chevron on the dark surfaces. */
.app_theme_smartmc_dark button.flv-dropdown,
.app_theme_vacuview_dark button.flv-dropdown,
.app_theme_flovac_dark button.flv-dropdown {
	border-bottom-color: rgba(255, 255, 255, .3);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' fill-opacity='.7' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
	color: #fefefe;
}

.app_theme_smartmc_dark button.flv-dropdown:focus,
.app_theme_vacuview_dark button.flv-dropdown:focus,
.app_theme_flovac_dark button.flv-dropdown:focus,
.app_theme_smartmc_dark button.flv-dropdown.flv-dropdown-open,
.app_theme_vacuview_dark button.flv-dropdown.flv-dropdown-open,
.app_theme_flovac_dark button.flv-dropdown.flv-dropdown-open {
	border-bottom-color: #2196f3;
}

.app_theme_smartmc_dark button.flv-dropdown.md-input-danger,
.app_theme_vacuview_dark button.flv-dropdown.md-input-danger,
.app_theme_flovac_dark button.flv-dropdown.md-input-danger {
	border-bottom-color: #e53935;
}

.app_theme_smartmc_dark .flv-dropdown-popup,
.app_theme_vacuview_dark .flv-dropdown-popup,
.app_theme_flovac_dark .flv-dropdown-popup {
	background: #616161;
	color: #fefefe;
}

.app_theme_smartmc_dark input.flv-dropdown-search,
.app_theme_vacuview_dark input.flv-dropdown-search,
.app_theme_flovac_dark input.flv-dropdown-search {
	border-bottom-color: rgba(255, 255, 255, .3);
}

.app_theme_smartmc_dark input.flv-dropdown-search:focus,
.app_theme_vacuview_dark input.flv-dropdown-search:focus,
.app_theme_flovac_dark input.flv-dropdown-search:focus {
	border-bottom-color: #2196f3;
}

.app_theme_smartmc_dark .flv-dropdown-option.flv-dropdown-active,
.app_theme_vacuview_dark .flv-dropdown-option.flv-dropdown-active,
.app_theme_flovac_dark .flv-dropdown-option.flv-dropdown-active {
	background: rgba(255, 255, 255, .12);
}

.app_theme_smartmc_dark .flv-dropdown-option[aria-selected=true],
.app_theme_vacuview_dark .flv-dropdown-option[aria-selected=true],
.app_theme_flovac_dark .flv-dropdown-option[aria-selected=true] {
	color: #90caf9;
}

.app_theme_smartmc_dark .flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true],
.app_theme_vacuview_dark .flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true],
.app_theme_flovac_dark .flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true] {
	color: inherit;
}

.app_theme_smartmc_dark .flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true]::before,
.app_theme_vacuview_dark .flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true]::before,
.app_theme_flovac_dark .flv-dropdown-popup-multiple .flv-dropdown-option[aria-selected=true]::before {
	border-color: #90caf9;
}

.app_theme_smartmc_dark button.flv-dropdown.flv-dropdown-placeholder .flv-dropdown-label,
.app_theme_vacuview_dark button.flv-dropdown.flv-dropdown-placeholder .flv-dropdown-label,
.app_theme_flovac_dark button.flv-dropdown.flv-dropdown-placeholder .flv-dropdown-label,
.app_theme_smartmc_dark .flv-dropdown-group,
.app_theme_vacuview_dark .flv-dropdown-group,
.app_theme_flovac_dark .flv-dropdown-group,
.app_theme_smartmc_dark .flv-dropdown-none,
.app_theme_vacuview_dark .flv-dropdown-none,
.app_theme_flovac_dark .flv-dropdown-none {
	color: rgba(255, 255, 255, .6);
}
