/* Seletor moderno (assets/js/seletor.js): o painel que abre no lugar da lista do navegador, no computador. */
.rk-seletor {
	--rk-sel-accent: var(--nx-accent, var(--bv-accent, var(--color-primary, #143BBA)));
	position: fixed;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	min-width: 220px;
	overflow: hidden;
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16), 0 2px 6px rgba(17, 24, 39, 0.06);
	font-size: 15px;
	line-height: 1.4;
	animation: rk-seletor-abre 0.14s ease-out;
}

@keyframes rk-seletor-abre {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

.rk-seletor .rk-seletor__busca {
	flex: none;
	width: auto;
	height: 42px;
	margin: 8px 8px 4px;
	border: 1px solid rgba(17, 24, 39, 0.14);
	border-radius: 10px;
	padding: 0 12px 0 36px;
	background: #f6f7f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px center / 16px no-repeat;
	color: inherit;
	font: inherit;
	outline: none;
}

.rk-seletor .rk-seletor__busca:focus {
	border-color: var(--rk-sel-accent);
	background-color: #ffffff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-sel-accent) 18%, transparent);
}

.rk-seletor__lista {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 4px 6px 6px;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.rk-seletor__item {
	position: relative;
	margin: 0;
	border-radius: 9px;
	padding: 9px 36px 9px 12px;
	cursor: pointer;
	user-select: none;
}

.rk-seletor__item[hidden] {
	display: none;
}

.rk-seletor__item.is-ativo {
	background: color-mix(in srgb, var(--rk-sel-accent) 10%, #ffffff);
}

.rk-seletor__item.is-escolhido {
	font-weight: 700;
	color: var(--rk-sel-accent);
}

.rk-seletor__item.is-escolhido::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rk-seletor__vazio {
	margin: 0;
	padding: 14px 16px 18px;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
}

.rk-seletor__vazio[hidden] {
	display: none;
}
