/* StudioWeb Ballot: votação no site (Bootstrap do tema para formulários e alertas) */
.sw-ballot {
	max-width: 640px;
	margin: 24px 0;
	padding: 24px;
	border: 1px solid #dee2e6;
	border-radius: 12px;
	background: #fff;
}
.sw-ballot-head h2 {
	margin: 0 0 4px;
}
.sw-ballot-period,
.sw-ballot-kind {
	margin: 0 0 4px;
	color: #6c757d;
	font-size: .95em;
}
.sw-ballot-description {
	margin: 16px 0;
}
.sw-ballot-steps {
	display: flex;
	gap: 8px;
	margin: 20px 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.sw-ballot-steps li {
	flex: 1;
	padding: 8px 6px 8px 34px;
	border-radius: 8px;
	background: #f1f3f5;
	color: #6c757d;
	font-size: .9em;
	position: relative;
}
.sw-ballot-steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 8px;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ced4da;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	transform: translateY(-50%);
}
.sw-ballot-steps li.is-current {
	background: color-mix(in srgb, var(--bs-primary, #2271b1) 12%, #fff);
	color: #212529;
	font-weight: 600;
}
.sw-ballot-steps li.is-current::before,
.sw-ballot-steps li.is-done::before {
	background: var(--bs-primary, #2271b1);
}
.sw-ballot-steps li.is-done::before {
	content: "✓";
}
.sw-ballot-code {
	max-width: 180px;
	font-size: 1.6em;
	letter-spacing: .3em;
	text-align: center;
}
.sw-ballot-question legend {
	font-weight: 600;
}
.sw-ballot-question .form-check {
	margin: 6px 0;
	padding: 10px 12px 10px 36px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
}
.sw-ballot-question .form-check:has(input:checked) {
	border-color: var(--bs-primary, #2271b1);
	background: color-mix(in srgb, var(--bs-primary, #2271b1) 8%, #fff);
}
.sw-ballot-note {
	color: #6c757d;
	font-size: .9em;
}
.sw-ballot-receipt-code {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 1.3em;
	letter-spacing: .1em;
}
.sw-ballot-receipt {
	margin-top: 24px;
	padding-top: 12px;
	border-top: 1px solid #dee2e6;
}
.sw-ballot-receipt summary {
	cursor: pointer;
	color: #6c757d;
}
.is-busy {
	opacity: .65;
	cursor: progress;
}
@media (max-width: 575px) {
	.sw-ballot {
		padding: 16px;
	}
	.sw-ballot-steps li {
		padding-left: 30px;
		font-size: .8em;
	}
}
