/* ========== Dropdown Container ========== */
.dropdown {
	position: relative;
	display: flex;
	width: 100%;
	user-select: none;
	background-color: #ffffff;
	color: #191919;
	border: 1px solid #d0d1d2;
	border-radius: 3px;
}

.dropdown.disabled {
	background-color: #f3f3f3;
	border: 1px solid #f3f3f3;
}

/* ========== Dropdown Header ========== */
.dropdown .dropdown-header {
	padding: 10px 35px 10px 10px;
	overflow: hidden;
	gap: 7px;
}

.dropdown .dropdown-header.dropdown-header-active {
	border-color: #c1c9d0;
}

/* dropdown arrow - open */
.dropdown .dropdown-header.dropdown-header-active::after {
	transform: translateY(-50%) rotate(180deg);
}

.dropdown .dropdown-header.dropdown-header-active+.dropdown-options {
	display: flex;
}

.dropdown .dropdown-header .dropdown-header-placeholder {
	color: #000000;
}

.dropdown.disabled .dropdown-header .dropdown-header-placeholder,
.dropdown.disabled .dropdown-header .dropdown-header-max {
	color: #cccccc;
}

/* selected number */
.dropdown .dropdown-header .dropdown-header-option {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	color: #ffffff;
	font-size: 10px;
	font-weight: 600;
	line-height: normal;
	background-color: #a2a2a2;
}

.dropdown .dropdown-header .dropdown-header-max {
	font-size: 10px;
	color: #65727e;
}

/* selected inputs all labels */
.dropdown .dropdown-header .dropdown-header-option-text {
	display: flex;
	align-items: center;
	max-width: -webkit-fill-available;
	padding: 2px 7px;
	font-size: 12px;
	line-height: normal;
	border-radius: 10px;
	border: 1px solid #999999;
	color: #000000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	word-break: break-all;
}

.dropdown .dropdown-header .dropdown-header-option-text strong {
	display: contents;
	word-break: break-all;
}

/* remove labels button */
.dropdown .dropdown-header .dropdown-header-option-text .remove-option-button {
	display: flex;
	align-items: center;
	height: 0;
	padding: 0 0 0 7px;
	border: none;
	outline: none;
	background-color: transparent;
}

.dropdown .dropdown-header .dropdown-header-option-text .remove-option-button ion-icon {
	color: #000000;
}

.dropdown .dropdown-options {
	display: none;
	box-sizing: border-box;
	flex-flow: wrap;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	margin-top: 1px;
	padding: 5px;
	background-color: #fff;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	box-shadow: 4px 9px 10px 0px rgba(0, 0, 0, 0.2);
	max-height: 270px;
	overflow-y: auto;
	overflow-x: hidden;
}

.dropdown .dropdown-options::-webkit-scrollbar {
	width: 15px;
}

.dropdown .dropdown-options::-webkit-scrollbar-track {
	background: #f0f1f3;
}

.dropdown .dropdown-options::-webkit-scrollbar-thumb {
	background: #cdcfd1;
}

.dropdown .dropdown-options::-webkit-scrollbar-thumb:hover {
	background: #b2b6b9;
}

.dropdown .dropdown-options .dropdown-option,
.dropdown .dropdown-options .dropdown-all {
	padding: 4px 12px;
	height: 42px;
}

.dropdown .dropdown-options .dropdown-option .dropdown .dropdown-options .dropdown-option .dropdown-option-radio,
.dropdown .dropdown-options .dropdown-all .dropdown-option-radio {
	margin-right: 14px;
	height: 16px;
	width: 16px;
	border: 1px solid #ced4da;
}

.dropdown .dropdown-options .dropdown-option.disabled {
	position: relative;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 10px 15px;
	font-size: 12px;
	font-weight: 300;
	color: #3b3b3b;
	line-height: 30px;
	transition: all 0.5s;
	color: #cccccc;
	background-color: #f9f9f9;
}

.dropdown .dropdown-options .dropdown-option .dropdown-option-text,
.dropdown .dropdown-options .dropdown-all .dropdown-option-text {
	box-sizing: border-box;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
	font-size: 12px;
	line-height: normal;
}

.dropdown .dropdown-options .dropdown-option.dropdown-selected .dropdown-option-radio,
.dropdown .dropdown-options .dropdown-all.dropdown-selected .dropdown-option-radio {
	border-color: #40c979;
	background-color: #40c979;
}

.dropdown .dropdown-options .dropdown-option.dropdown-selected .dropdown-option-radio::after,
.dropdown .dropdown-options .dropdown-all.dropdown-selected .dropdown-option-radio::after {
	content: "";
	display: block;
	width: 3px;
	height: 7px;
	margin: 0.12em 0 0 0.27em;
	border: solid #fff;
	border-width: 0 0.15em 0.15em 0;
	transform: rotate(45deg);
}

.dropdown .dropdown-options .dropdown-option.dropdown-selected .dropdown-option-text,
.dropdown .dropdown-options .dropdown-all.dropdown-selected .dropdown-option-text {
	color: #40c979;
}

.dropdown .dropdown-options .dropdown-option:hover,
.dropdown .dropdown-options .dropdown-option:active,
.dropdown .dropdown-options .dropdown-all:hover,
.dropdown .dropdown-options .dropdown-all:active {
	background-color: #f3f4f7;
}

.dropdown .dropdown-options .dropdown-all {
	border-bottom: 1px solid #f1f3f5;
	border-radius: 0;
}

.dropdown .dropdown-options .dropdown-search {
	padding: 7px 10px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	margin: 10px 10px 5px 10px;
	width: 100%;
	outline: none;
	font-size: 16px;
}

.dropdown .dropdown-options .dropdown-search::placeholder {
	color: #b2b5b9;
}

.dropdown .dropdown-header,
.dropdown .dropdown-all {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	margin: 0;
	padding: 10px 15px;
	font-size: 12px;
	font-weight: 300;
	background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' width='15' height='15' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z' fill='%23999999'/></g></svg>") no-repeat;
	border-radius: 3px;
	background-position: right 9px top 50%;
	background-color: #ffffff;
	box-shadow: none !important;
	outline: none;
}

.dropdown.disabled .dropdown-header {
	cursor: not-allowed;
}

.dropdown .dropdown-option,
.dropdown .dropdown-all {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	align-items: center;
	cursor: pointer;
	display: flex;
	align-items: center;
	width: 100%;
	font-size: 12px;
	color: #212529;
}

.dropdown .dropdown-option[data-selectable-input="false"] {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}
