.rotulos-ivv {
	--rotulos-ivv-primary: #c91638;
	--rotulos-ivv-primary-dark: #a01129;
	--rotulos-ivv-ink: #1f1f1f;
	--rotulos-ivv-muted: #6b6b6b;
	--rotulos-ivv-border: #e3e3e3;
	--rotulos-ivv-radius: 10px;

	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
	font-family: inherit;
	color: var(--rotulos-ivv-ink);
}

.rotulos-ivv__sidebar {
	flex: 0 0 auto;
	width: 280px;
	max-width: 100%;
	background: #fff;
	border: 1px solid var(--rotulos-ivv-border);
	border-radius: var(--rotulos-ivv-radius);
	padding: 1.5rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.rotulos-ivv__results {
	flex: 1 1 260px;
	min-width: 0;
}

.rotulos-ivv__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1.1rem;
}

/* Elements below set their own `display`, which otherwise ties in
   specificity with the browser's `[hidden] { display: none }` rule and can
   win on source order — these overrides make sure `hidden` always wins. */
.rotulos-ivv__field[hidden],
.rotulos-ivv__index[hidden] {
	display: none;
}

.rotulos-ivv__label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rotulos-ivv-muted);
}

.rotulos-ivv__input,
.rotulos-ivv__select {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 0.95rem;
	border-radius: 6px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rotulos-ivv__input {
	border: 1px solid var(--rotulos-ivv-border);
	background: #fff;
	color: var(--rotulos-ivv-ink);
	padding: 0.65rem 0.75rem;
}

.rotulos-ivv__input:focus,
.rotulos-ivv__select:focus {
	outline: none;
	border-color: var(--rotulos-ivv-primary);
	box-shadow: 0 0 0 3px rgba(201, 22, 56, 0.15);
}

.rotulos-ivv__select {
	appearance: none;
	background-color: #fff;
	color: var(--rotulos-ivv-ink);
	border: 1px solid var(--rotulos-ivv-border);
	padding: 0.65rem 2.25rem 0.65rem 0.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--rotulos-ivv-muted) 50%),
		linear-gradient(135deg, var(--rotulos-ivv-muted) 50%, transparent 50%);
	background-position:
		calc(100% - 19px) center,
		calc(100% - 14px) center;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.rotulos-ivv__actions {
	display: flex;
	gap: 0.6rem;
	padding-top: 0.5rem;
}

.rotulos-ivv__button {
	flex: 1;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.65rem 1rem;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rotulos-ivv__button--clear {
	background: transparent;
	border: 1px solid var(--rotulos-ivv-border);
	color: var(--rotulos-ivv-muted);
}

.rotulos-ivv__button--clear:hover {
	border-color: var(--rotulos-ivv-primary);
	color: var(--rotulos-ivv-primary);
}

.rotulos-ivv__button--submit {
	background-color: var(--rotulos-ivv-primary);
	border: 1px solid var(--rotulos-ivv-primary);
	color: #fff;
}

.rotulos-ivv__button--submit:hover {
	background-color: var(--rotulos-ivv-primary-dark);
	border-color: var(--rotulos-ivv-primary-dark);
}

.rotulos-ivv__button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.rotulos-ivv__input:disabled,
.rotulos-ivv__select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #f5f5f5;
}

.rotulos-ivv__index--disabled {
	opacity: 0.5;
	pointer-events: none;
}

.rotulos-ivv__count {
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: var(--rotulos-ivv-muted);
}

.rotulos-ivv__index {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.6rem;
}

.rotulos-ivv__idx {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background-color: #fff;
	border: 1px solid var(--rotulos-ivv-border);
	border-radius: 999px;
	color: var(--rotulos-ivv-ink);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rotulos-ivv__idx.is-active,
.rotulos-ivv__idx:hover {
	background-color: var(--rotulos-ivv-primary);
	border-color: var(--rotulos-ivv-primary);
	color: #fff;
}

.rotulos-ivv__message {
	padding: 0.9rem 1rem;
	border-radius: 8px;
	background: #f7f2f2;
	color: var(--rotulos-ivv-muted);
	font-size: 0.9rem;
}

.rotulos-ivv__skeleton-block {
	background: linear-gradient(90deg, var(--rotulos-ivv-border) 25%, #f2f2f2 37%, var(--rotulos-ivv-border) 63%);
	background-size: 400% 100%;
	border-radius: 4px;
	animation: rotulos-ivv-shimmer 1.4s ease infinite;
}

.rotulos-ivv__skeleton-image {
	width: 100%;
	height: 420px;
}

.rotulos-ivv__skeleton-eyebrow {
	width: 30%;
	height: 0.7rem;
	margin-bottom: 0.5rem;
}

.rotulos-ivv__skeleton-title {
	width: 55%;
	height: 1.4rem;
	margin-bottom: 0.75rem;
}

.rotulos-ivv__skeleton-badge {
	width: 80px;
	height: 1.2rem;
	margin-bottom: 1rem;
	border-radius: 999px;
}

.rotulos-ivv__skeleton-dt {
	width: 70%;
	height: 0.85rem;
}

.rotulos-ivv__skeleton-dd {
	width: 85%;
	height: 0.85rem;
}

@keyframes rotulos-ivv-shimmer {
	0% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rotulos-ivv__skeleton-block {
		animation: none;
	}
}

.rotulos-ivv__card {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	background: #fff;
	border: 1px solid var(--rotulos-ivv-border);
	border-radius: var(--rotulos-ivv-radius);
	padding: 1.75rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.rotulos-ivv__card-image-col {
	flex: 0 0 auto;
	width: 340px;
	max-width: 100%;
	display: flex;
	justify-content: center;
}

.rotulos-ivv__card-image {
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.rotulos-ivv__card-body {
	flex: 1 1 260px;
	min-width: 0;
}

.rotulos-ivv__eyebrow {
	margin: 0 0 0.15rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rotulos-ivv-primary);
}

.rotulos-ivv__card-title {
	margin: 0 0 0.75rem;
	font-size: 1.4rem;
	line-height: 1.25;
}

.rotulos-ivv__badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.rotulos-ivv__badge.is-ativo {
	background: #e8f5e9;
	color: #2e7d32;
}

.rotulos-ivv__badge.is-inativo {
	background: #f1f1f1;
	color: #6b6b6b;
}

.rotulos-ivv__details {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.rotulos-ivv__details-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	padding: 0.6rem 0;
	border-top: 1px solid var(--rotulos-ivv-border);
}

.rotulos-ivv__details-row:first-child {
	border-top: none;
	padding-top: 0;
}

.rotulos-ivv__details-row dt {
	flex: 0 0 150px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rotulos-ivv-muted);
}

.rotulos-ivv__details-row dd {
	flex: 1 1 200px;
	margin: 0;
	font-size: 0.95rem;
}

@media only screen and (max-width: 780px) {
	.rotulos-ivv__sidebar {
		width: 100%;
	}

	.rotulos-ivv__card {
		padding: 1.25rem;
	}

	.rotulos-ivv__details-row dt {
		flex-basis: 100%;
	}
}
