/* Label pickers built with LabelsHelper (labels-helper.js), loaded on every page by templates/header.php */
.sol-color-circle,
.label-color-code {
	width: 20px;
	height: 20px;
	border-radius: 10px;
	float: right;
	position: relative;
	top: -3px;
	border: 1px solid #909090;
}

.labels-helper .sol-selection-container .sol-option {
	padding: 6px 20px 0;
	border-bottom: 1px solid #EEEEEE;
}

.labels-helper .selected-option {
	background-color: #cecece;
}

.labels-helper .child-option .sol-label {
	margin-left: 10px;
}

.labels-helper .child-option .sol-label:before {
	content: "\221F";
	margin-right: 5px;
}

.labels-helper .sol-checkbox {
	margin-right: 6px !important;
}

/* Colour circle, checkbox and text in one row, the circle first (issue 9416) */
.labels-helper .sol-selection-container .sol-label {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	padding: 0 !important;
	text-indent: 0 !important;
}

.labels-helper .sol-selection-container .sol-color-circle,
.labels-helper .sol-selection-container .label-color-code {
	float: none !important;
	top: 0;
	flex: 0 0 auto;
	margin-right: 5px;
}

.labels-helper .sol-selection-container .sol-checkbox {
	flex: 0 0 auto;
}

.labels-helper .context-only-option,
.documentation-labels .context-only-option {
	background-color: #f5f5f5 !important;
	color: #999;
	opacity: .65;
	cursor: not-allowed;
}

.labels-helper .context-only-option .sol-label,
.documentation-labels .context-only-option .sol-label {
	cursor: not-allowed;
}

/* Parent of a search match, shown for context only (issue 9416) */
.sol-search-context .sol-label {
	color: #999;
}

.labels-bootstrap-select .filter-option-inner-inner {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.labels-bootstrap-select .dropdown-menu li a {
	padding: 5px 12px;
}

.labels-bootstrap-select .dropdown-menu li a span.text {
	display: block !important;
	width: 100%;
}

.labels-bootstrap-select .dropdown-menu li a .check-mark {
	display: none !important;
}

.labels-bootstrap-select .dropdown-menu li.selected a,
.labels-bootstrap-select .dropdown-menu li a:hover,
.labels-bootstrap-select .dropdown-menu li a:focus {
	background-color: #f5f5f5;
}

.labels-bootstrap-select-none {
        text-align: center;
        display: block;
        font-weight: 400;
        color: #333;
        border: 1px solid #e7e9ea;
        padding: 3px 0;
}

.labels-base-keys-select .dropdown-menu.inner > li:nth-child(1),
.labels-base-keys-select .dropdown-menu.inner > li:nth-child(2) {
	display: inline-block;
	width: 50%;
}

.labels-base-keys-select .dropdown-menu.inner > li:nth-child(1) a,
.labels-base-keys-select .dropdown-menu.inner > li:nth-child(2) a {
	padding-left: 4px;
	padding-right: 4px;
}

.labels-bootstrap-option {
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 20px;
	font-weight: 700;
	color: #333;
}

.labels-bootstrap-tree {
	flex: 0 0 14px;
	color: #555;
	font-weight: 400;
	line-height: 1;
	margin-right: 5px;
}

.labels-bootstrap-checkbox {
	flex: 0 0 13px;
	width: 13px;
	height: 13px;
	margin-right: 8px;
	border: 1px solid #888;
	border-radius: 2px;
	background: #fff;
	position: relative;
}

.labels-bootstrap-select .dropdown-menu li.selected .labels-bootstrap-checkbox::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 1px;
	width: 5px;
	height: 8px;
	border: solid #333;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.labels-bootstrap-title {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.labels-bootstrap-color {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-left: auto;
	border: 1px solid #909090;
	border-radius: 50%;
}

.labels-bootstrap-color-start {
	margin-left: 0;
	margin-right: 8px;
}

.labels-bootstrap-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 5px;
	max-width: 100%;
}

.labels-bootstrap-tags:empty {
	display: none;
}

.labels-bootstrap-tag {
	align-items: center;
	background: #e0e7ff;
	border: 1px solid #a5b4fc;
	border-radius: 5px;
	color: #1f2937;
	display: inline-flex;
	font-size: 12px;
	gap: 4px;
	line-height: 1.2;
	max-width: 100%;
	min-height: 22px;
	padding: 3px 8px 3px 5px;
	vertical-align: middle;
}

.labels-bootstrap-tag-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.labels-bootstrap-tag-remove {
	background: transparent;
	border: 0;
	color: #6366f1;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 14px;
	font-size: 0;
	font-weight: 700;
	height: 14px;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: relative;
	width: 14px;
	vertical-align: middle;
}

.labels-bootstrap-tag-remove::before,
.labels-bootstrap-tag-remove::after {
	background: currentColor;
	content: "";
	height: 2px;
	left: 3px;
	position: absolute;
	top: 6px;
	width: 8px;
}

.labels-bootstrap-tag-remove::before {
	transform: rotate(45deg);
}

.labels-bootstrap-tag-remove::after {
	transform: rotate(-45deg);
}

.labels-bootstrap-tag-remove:hover,
.labels-bootstrap-tag-remove:focus {
	color: #c00;
	outline: none;
}
