/* ==========================================================================
   MINHA COLINHA 2026 — DESIGN SYSTEM PAPEL REAL (ACESSIBILIDADE & LEVEZA)
   ========================================================================== */

:root {
  /* Identidade Visual Bruno Ortiz 10222 */
  --bg-main: #004575;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border: rgba(255, 255, 255, 0.15);
  --border-focus: #0088e0;
  
  /* Azul & Verde Bruno Ortiz */
  --blue-primary: #006cb5;
  --blue-dark: #004d82;
  --blue-light: #0088e0;
  --green-primary: #15803d;
  --green-accent: #76c04e;
  --green-dark: #072312;
  --green-soft-tint: #14532d;

  /* Amarelo Pastel / Urna */
  --yellow-pastel: #fef08a;
  --yellow-warm: #ffcc29;
  --yellow-soft: #fef9c3;
  --yellow-tag-bg: #fef9c3;
  --yellow-tag-text: #854d0e;

  /* Tipografia */
  --text-main: #19261f;
  --text-dim: #334155;
  --text-muted: #64748b;
  
  /* Fontes de Alta Legibilidade */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #00365c;
  background-image: 
    /* Feixe de luz diagonal suave azul */
    linear-gradient(135deg, rgba(0, 108, 181, 0.35) 0%, transparent 48%, rgba(0, 54, 92, 0.85) 100%),
    /* Feixe secundário diagonal verde e dourado */
    linear-gradient(225deg, rgba(118, 192, 78, 0.18) 0%, transparent 45%),
    /* Iluminação radial de destaque no topo/centro */
    radial-gradient(ellipse at 50% 12%, rgba(0, 136, 224, 0.28) 0%, rgba(0, 77, 130, 0.88) 58%, #002742 100%),
    /* Microtextura sutil */
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  background-attachment: fixed;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  padding: 14px 14px 74px;
  -webkit-font-smoothing: antialiased;
}

/* Header Centralizado Discreto */
.app-header {
  max-width: 540px;
  margin: 0 auto 10px;
  background: transparent;
  border: none;
  padding: 4px 10px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.header-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-content-clean {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 4px 0;
}

.btn-reset-central {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #ffcc29;
  color: #004d82;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 9px 22px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 204, 41, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-reset-central svg {
  color: #d97706;
}

.btn-reset-central:hover {
  background: #fef08a;
  border-color: #f59e0b;
  color: #00365c;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32), 0 0 16px rgba(255, 204, 41, 0.6);
}

.btn-reset-central:active {
  transform: translateY(1px) scale(0.98);
}

.btn-rever-link {
  background: rgba(34, 197, 94, 0.15);
  border: 1.5px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-rever-link:hover {
  background: rgba(34, 197, 94, 0.28);
  border-color: #22c55e;
  transform: translateY(-1px);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(234, 179, 8, 0.15);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.header-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.btn-header-icon:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
  color: #4ade80;
  transform: scale(1.06);
}

.btn-reset-icon:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fca5a5;
  transform: rotate(-35deg) scale(1.08);
}

.btn-header-icon:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #14532d;
  transform: scale(1.06);
}

.btn-reset-icon:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(-35deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.btn-header-icon:active {
  transform: scale(0.92);
}

@media (max-width: 480px) {
  .header-actions {
    top: -4px;
    right: -4px;
  }
  .btn-header-icon {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   TELA DE BOAS-VINDAS TEMÁTICA (ONBOARDING)
   Mesmo design system de papel artesanal texturizado e elementos cívicos
   ========================================================================== */
/* ==========================================================================
   TELA DE BOAS-VINDAS TEMÁTICA (REDESIGN FIEL À REFERÊNCIA IMAGEM 1)
   ========================================================================== */
.welcome-screen-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 30px;
  animation: fadeInSmooth 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-screen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 4px;
}

/* Topo: MS à esquerda + Eleições 2026 à direita */
.welcome-ref-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 4px;
  margin-bottom: 6px;
}

.welcome-ref-ms {
  text-align: left;
}

.ms-label-small {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  line-height: 1.25;
  display: block;
}

.welcome-ref-eleicoes {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.eleicoes-ref-txt {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 2.2px;
  display: block;
}

.eleicoes-ref-ano {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
  display: block;
  margin-top: 1px;
}

.eleicoes-ref-bars,
.welcome-civic-bars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.eleicoes-ref-bars span,
.welcome-civic-bars span {
  height: 3px;
  border-radius: 2px;
}

.eleicoes-ref-bars .bar-g,
.welcome-civic-bars .bar-g { width: 14px; background: #15803d; }
.eleicoes-ref-bars .bar-y,
.welcome-civic-bars .bar-y { width: 14px; background: #eab308; }
.eleicoes-ref-bars .bar-b,
.welcome-civic-bars .bar-b { width: 14px; background: #0284c7; }

/* Hero Avatar Central com Anel Dourado e Badge 4333 */
.welcome-ref-hero {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}

.welcome-ref-avatar-box {
  width: 185px;
  height: 185px;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.55));
  animation: floatMascot 3.2s ease-in-out infinite alternate;
}

.welcome-ref-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Logomarca Oficial e Números do Candidato */
.welcome-ref-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 10px;
  width: 100%;
}

.welcome-ref-logo-img {
  width: 100%;
  max-width: 270px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.welcome-ref-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.welcome-ref-cargo {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.welcome-ref-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 0.92;
  font-family: var(--font-display);
  font-weight: 900;
}

.name-part-white {
  font-size: 42px;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.name-part-green {
  font-size: 58px;
  background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2.5px;
  filter: drop-shadow(0 4px 14px rgba(34, 197, 94, 0.35));
}

.welcome-ref-slogan {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 4px;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Card dos 3 Passos */
.welcome-ref-steps-box {
  width: 100%;
  background: rgba(0, 24, 12, 0.48);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 5px;
  margin: 14px 0 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-ref-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.welcome-ref-step-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(250, 204, 21, 0.3);
}

.ref-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #facc15;
  color: #052516;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ref-step-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  line-height: 1.35;
}

.ref-step-text strong {
  color: #ffffff;
  font-weight: 900;
}

/* Campo: Seu Primeiro Nome */
.welcome-ref-input-group {
  width: 100%;
  margin-bottom: 18px;
  text-align: left;
}

.welcome-ref-input-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 4px;
}

.welcome-ref-input-box {
  width: 100%;
  height: 56px;
  background: rgba(0, 20, 10, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  transition: all 0.2s ease;
}

.welcome-ref-input-box:focus-within {
  border-color: #facc15;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}

.welcome-ref-input-box.shake-input {
  animation: shakeInput 0.4s ease;
  border-color: #f87171 !important;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.4) !important;
}

.ref-input-user-icon {
  font-size: 18px;
  opacity: 0.7;
  color: #ffffff;
  user-select: none;
}

.ref-input-field {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ref-input-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  text-transform: uppercase;
}

.welcome-input-aviso {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 5px 10px;
  border-radius: 8px;
  text-align: center;
  animation: fadeIn 0.2s;
}

/* Botão Radiante Dourado (Idêntico à Referência 1) */
.btn-ref-start-gold {
  width: 100%;
  height: 58px;
  border-radius: 29px;
  border: none;
  background: linear-gradient(180deg, #fde047 0%, #eab308 55%, #ca8a04 100%);
  color: #052516;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(234, 179, 8, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ref-start-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(234, 179, 8, 0.6);
  filter: brightness(1.06);
}

.btn-ref-start-gold:active {
  transform: translateY(0);
}

.btn-ref-start-gold .btn-arrow-right {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.btn-ref-start-gold:hover .btn-arrow-right {
  transform: translateX(4px);
}

/* Faixa Cívica Decorativa no Rodapé */
.welcome-ref-bottom-stripes {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.welcome-ref-bottom-stripes span {
  height: 4px;
  border-radius: 2px;
}

.welcome-ref-bottom-stripes .stripe-g { width: 36px; background: #15803d; }
.welcome-ref-bottom-stripes .stripe-y { width: 36px; background: #eab308; }
.welcome-ref-bottom-stripes .stripe-b { width: 36px; background: #0284c7; }

/* Stepper de 6 Etapas Conectadas (Funil do Álbum) */
.stepper-funil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 12px auto 0;
  padding: 0 10px;
}

.step-node-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: #f1f5f9;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.step-circle:hover {
  transform: scale(1.1);
  border-color: #4ade80;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
}

.step-circle.ativo {
  background: #15803d;
  border-color: #facc15;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6), 0 0 8px rgba(250, 204, 21, 0.4);
  transform: scale(1.18);
}

.step-circle.concluido {
  background: #15803d;
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.step-circle.fixado-bloqueado {
  background: #15803d;
  border-color: #facc15;
  color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.step-connector-line {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-connector-line.preenchida {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
}

/* ==========================================================================
   VITRINE 3D DE PAPEL REAL & CENTRAL DE BUSCA (LAYOUT ADAPTATIVO)
   - Desktop: Lado a Lado (Split View 2 colunas: Cédula Fixa + Busca Ampla)
   - Mobile: Vertical Ergonômico (Busca acima da gaveta ao alcance do polegar)
   ========================================================================== */
.container-vitrine {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vitrine-split-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

@media (min-width: 860px) {
  .vitrine-split-layout {
    display: flex;
    justify-content: center;
    max-width: 580px;
    margin: 0 auto;
  }
}

/* 1. O Nicho Tridimensional com a Cédula em Primeiro Plano */
.nicho-vitrine-frame {
  position: relative;
  width: 100%;
  background: rgba(0, 45, 76, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 136, 224, 0.35);
  border-radius: 20px;
  box-shadow: 
    inset 0 8px 24px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 108, 181, 0.2);
  padding: 16px 10px;
  overflow: hidden;
  perspective: 1200px;
  min-height: calc(100dvh - 170px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .nicho-vitrine-frame {
    min-height: 520px;
  }
}

.nicho-vitrine-inner {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cédulas de Papel com Textura Real */
.cedula-papel {
  position: absolute;
  width: 285px;
  max-width: 86vw;
  background: #fdfbf7;
  background-image: radial-gradient(#ece6d8 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  border: 1.5px solid #d8d2c4;
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10), 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Dobra sutil e realista no canto inferior do papel */
.cedula-papel::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, #eae4d5 50%, #ded7c6 100%);
  border-top-left-radius: 4px;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.08);
}

/* Cédula Central: BEM MAIOR, MÁXIMA EVIDÊNCIA E DESTAQUE VISUAL */
.cedula-central {
  z-index: 10;
  width: 295px;
  max-width: 88vw;
  transform: translateX(0) translateY(0) scale(1.06);
  box-shadow: 
    0 24px 46px rgba(20, 83, 45, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.10);
  border: 2px solid #b8a992;
  background: #ffffff;
}

/* Animação suave e fluida de transição ao trocar de cargo */
.cedula-central.cedula-animar-troca {
  animation: cedulaSlideAvanco 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cedulaSlideAvanco {
  0% {
    transform: translateY(8px) scale(0.97);
    opacity: 0.35;
  }
  100% {
    transform: translateY(0) scale(1.06);
    opacity: 1;
  }
}

/* Cédula Esquerda: Transparência Ampliada do Centro para a Borda Externa */
.cedula-esquerda {
  z-index: 5;
  transform: translateX(-155px) translateY(12px) rotate(-6deg) scale(0.85);
  opacity: 0.55;
  filter: brightness(0.95);
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
}

.cedula-esquerda:hover {
  transform: translateX(-140px) translateY(6px) rotate(-3deg) scale(0.88);
  opacity: 0.85;
}

/* Cédula Direita: Transparência Ampliada do Centro para a Borda Externa */
.cedula-direita {
  z-index: 5;
  transform: translateX(155px) translateY(12px) rotate(6deg) scale(0.85);
  opacity: 0.55;
  filter: brightness(0.95);
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
}

.cedula-direita:hover {
  transform: translateX(132px) translateY(6px) rotate(4deg) scale(0.88);
  opacity: 0.85;
}

/* Conteúdo da Cédula */
.cedula-cargo-titulo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: #14532d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #e5dfd2;
  width: 100%;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.cedula-info-bloco {
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

.cedula-sublabel {
  font-size: 10.5px;
  font-weight: 800;
  color: #8c8273;
  text-transform: uppercase;
  display: block;
}

.cedula-cand-nome {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: #0c2c62;
  line-height: 1.18;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.cedula-area-clicavel.vazio .cedula-cand-nome {
  color: #15803d;
  font-size: 19px;
}

.cedula-cand-partido {
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
}

/* Layout Miolo: Foto Grande em Máxima Evidência ao lado do Número */
.cedula-corpo-voto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin: 6px 0 10px;
}

.cedula-foto-frame {
  width: 76px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #cbbfab;
  background: #eeeae0;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.cedula-foto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.cedula-numero-bloco {
  flex: 1;
  text-align: left;
}

.cedula-numero-label {
  font-size: 10px;
  font-weight: 800;
  color: #8c8273;
  display: block;
  text-transform: uppercase;
}

.cedula-numero-grande {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #0f3d21;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* Dois Botões Discretos Lado a Lado: Confirmar e Trocar */
.cedula-botoes-dupla {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.btn-cedula-discreto {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-cedula-confirmar {
  background: #14532d;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.28);
}

.btn-cedula-confirmar:hover {
  background: #0f3d21;
  transform: translateY(-1px);
}

.btn-cedula-trocar {
  background: #faf8f5;
  color: #5c4d37;
  border-color: #d8d2c4;
}

.btn-cedula-trocar:hover {
  background: #f3efe6;
  color: #19261f;
  border-color: #b89f77;
}

/* Setas de Navegação no Nicho */
.nicho-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #ded7cb;
  color: #14532d;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.nicho-nav-arrow:hover {
  background: #14532d;
  color: #fef08a;
  transform: translateY(-50%) scale(1.08);
}

.arrow-prev { left: 6px; }
.arrow-next { right: 6px; }

/* ==========================================================================
   2. CÉDULA CLICÁVEL & BOTÃO DE SELEÇÃO RÁPIDA
   ========================================================================== */
.cedula-area-clicavel {
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0;
  transition: all 0.2s ease;
  position: relative;
  border: 1.5px dashed transparent;
}

.cedula-area-clicavel.vazio {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.cedula-area-clicavel.vazio:hover {
  background: rgba(16, 185, 129, 0.09);
  border-color: #059669;
}

.cedula-area-clicavel.preenchido {
  border: 1.5px solid transparent;
}

.cedula-area-clicavel.preenchido:hover {
  background: rgba(20, 83, 45, 0.05);
}

.cedula-area-clicavel:active {
  transform: scale(0.99);
}

.cedula-toque-escolher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #14532d;
  color: #fef08a;
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.25);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 6px;
  animation: pulseToque 2.2s infinite ease-in-out;
}

@keyframes pulseToque {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(20, 83, 45, 0.25); }
  50% { transform: scale(1.04); box-shadow: 0 5px 14px rgba(20, 83, 45, 0.35); }
}

.cedula-toque-alterar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #15803d;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Cédula Fixa Oficial Bruno Ortiz 10222 */
.cedula-fixada-bruno {
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%) !important;
  border: 2px solid #006cb5 !important;
  box-shadow: 0 8px 24px rgba(0, 108, 181, 0.22) !important;
  cursor: default !important;
}

.cedula-foto-frame-bruno {
  border: 2.5px solid #006cb5 !important;
  box-shadow: 0 4px 12px rgba(0, 108, 181, 0.28) !important;
}

.cedula-status-fixo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #004d82;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Bolinha de Stepper Fixada */
.step-circle.fixado-bloqueado {
  background: #006cb5 !important;
  border-color: #ffcc29 !important;
  color: #ffcc29 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 108, 181, 0.35) !important;
}

/* ==========================================================================
   3. MODAL DE SELEÇÃO ISOLADA DE CANDIDATOS
   - Mobile: Full-Screen (100dvh, visual de tela nativa, body scroll lock)
   - Desktop/Tablet (>= 768px): Modal centralizado (~640px, max-height 85vh)
   ========================================================================== */
body.modal-selecao-aberto {
  overflow: hidden !important;
  touch-action: none;
}

.modal-selecao-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

.modal-selecao-conteudo {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fdfbf7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .modal-selecao-overlay {
    align-items: center;
    padding: 24px;
  }

  .modal-selecao-conteudo {
    width: 100%;
    max-width: 660px;
    height: 82vh;
    max-height: 720px;
    border-radius: 18px;
    border: 1.5px solid #ded7cb;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes modalPopIn {
  from {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 3.1 CABEÇALHO FIXO DO MODAL */
.modal-selecao-header {
  flex-shrink: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn-voltar-selecao {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #0c2c62;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-voltar-selecao:hover {
  background: #ecfdf5;
  border-color: #15803d;
  color: #15803d;
}

.btn-voltar-arrow {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.modal-selecao-titulo {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 900;
  color: #0c2c62;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  flex: 1;
}

/* 3.2 CAMPO DE BUSCA FIXO */
.modal-selecao-search-wrap {
  flex-shrink: 0;
  background: #ffffff;
  padding: 12px 18px 14px;
  border-bottom: 1.5px solid #e2e8f0;
  z-index: 2;
}

.modal-search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.modal-search-box:focus-within {
  background: #ffffff;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.modal-search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.modal-search-input {
  width: 100%;
  height: 48px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  padding: 0 42px 0 46px;
}

.modal-search-input::placeholder {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
}

.btn-clear-modal-search {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 17px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.btn-clear-modal-search:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* 3.2.1 DIAL HÁPTICO / ENGRENAGEM DE ROLAGEM ALFABÉTICA (A-Z) */
.modal-alfabeto-wheel-container {
  position: relative;
  width: 100%;
  padding: 8px 0 6px;
  overflow: hidden;
}

/* Dica textual discreta acima da engrenagem */
.modal-alfabeto-dica {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  user-select: none;
  opacity: 0.85;
}

.modal-alfabeto-dica .dica-arrow {
  font-size: 14px;
  color: #15803d;
  animation: pulseArrow 1.6s ease-in-out infinite alternate;
}

@keyframes pulseArrow {
  from { opacity: 0.45; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.15); }
}

.modal-alfabeto-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px calc(50% - 24px); /* Centraliza o primeiro e o último item com folga */
  scrollbar-width: none;
  /* Efeito de Fade Lateral / Cilindro 3D aplicado diretamente no trilho rolante */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 16%, #000000 32%, #000000 68%, rgba(0,0,0,0.85) 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 16%, #000000 32%, #000000 68%, rgba(0,0,0,0.85) 84%, transparent 100%);
}

.modal-alfabeto-bar::-webkit-scrollbar {
  display: none;
}

.btn-alfabeto-pille {
  scroll-snap-align: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.84);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.22s ease, 
              background-color 0.2s ease, 
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  user-select: none;
}

/* Item "TODOS" em formato oval adaptável */
.btn-alfabeto-pille[data-letra=""] {
  flex: 0 0 68px;
  width: 68px;
  border-radius: 22px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.btn-alfabeto-pille:hover {
  opacity: 0.8;
  transform: scale(0.96);
  border-color: #006cb5;
  color: #006cb5;
}

.btn-alfabeto-pille:active {
  transform: scale(0.92);
}

/* LETRA EM EVIDÊNCIA ABSOLUTA (NO CENTRO DA ENGRENAGEM) */
.btn-alfabeto-pille.ativo {
  opacity: 1;
  background: #006cb5;
  border: 2.5px solid #ffcc29;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 108, 181, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.28);
  z-index: 5;
}

/* 3.3 LISTA DE RESULTADOS GENEROSA E ROLÁVEL */
.modal-selecao-lista-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* LINHA DE CANDIDATO COM FOTOS GRANDES, NOMES EM EVIDÊNCIA & TOQUE CONFORTÁVEL */
.cand-compact-row {
  width: 100%;
  min-height: 82px;
  background: #ffffff;
  border: 1.8px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.cand-compact-row:hover {
  background: #f8fafc;
  border-color: #15803d;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.12);
  transform: translateY(-2px);
}

.cand-compact-row:focus-visible {
  outline: 2px solid #15803d;
  background: #f0fdf4;
}

.cand-compact-row:active {
  background: #ecfdf5;
  transform: scale(0.99);
}

/* Estado Ativo/Selecionado */
.cand-compact-row.cand-compact-selected {
  background: #f0fdf4;
  border-color: #15803d;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.18);
}

.cand-compact-row.cand-compact-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #15803d;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

/* Feedback Imediato ao Clicar */
.cand-compact-row.cand-compact-confirming {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cand-compact-row.cand-compact-confirming .cand-compact-numero {
  background: #15803d !important;
  color: #fef08a !important;
  transform: scale(1.08);
  transition: all 0.2s ease;
}

/* FOTOGRAFIA EM MÁXIMA EVIDÊNCIA (AUMENTADA CONFORME PEDIDO) */
.cand-compact-photo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 15%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease;
}

.cand-compact-row:hover .cand-compact-photo {
  transform: scale(1.04);
  border-color: #15803d;
}

.cand-compact-photo-placeholder {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 2px solid #86efac;
  color: #15803d;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* BLOCO CENTRAL: NOME E PARTIDO COM MAIOR ESPAÇAMENTO */
.cand-compact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

/* 1. NOME (BEM MAIOR, ALTO CONTRASTE E DESTAQUE) */
.cand-compact-nome {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 900;
  color: #0c2c62;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cand-compact-selected-badge {
  font-size: 11.5px;
  color: #15803d;
  font-weight: 900;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 2px 8px;
  line-height: 1;
}

/* 3. PARTIDO/SIGLA (TAG CÍVICA NÍTIDA) */
.cand-compact-partido {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.cand-compact-partido::before {
  content: "•";
  color: #15803d;
  font-size: 14px;
}

/* 2. NÚMERO (BEM MAIOR, DESTAQUE VISUAL PARA CONFERÊNCIA RÁPIDA) */
.cand-compact-numero {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #0c2c62;
  background: #fef9c3;
  border: 1.8px solid #fef08a;
  padding: 6px 14px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  min-width: 60px;
  text-align: center;
}

@media (max-width: 480px) {
  .modal-selecao-header {
    height: 58px;
    padding: 0 12px;
  }
  .modal-selecao-lista-wrap {
    padding: 10px 10px 24px;
    gap: 8px;
  }
  .cand-compact-row {
    min-height: 76px;
    padding: 8px 12px;
    gap: 12px;
  }
  .cand-compact-photo,
  .cand-compact-photo-placeholder {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    border-radius: 10px;
  }
  .cand-compact-nome {
    font-size: 16.5px;
  }
  .cand-compact-numero {
    font-size: 21px;
    padding: 4px 10px;
    min-width: 50px;
  }
}

/* ESTADOS VAZIOS E INFORMATIVOS DA BUSCA */
.modal-busca-estado-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 16px;
  color: #8c8273;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

/* Figurinha com Efeito de Pontinha Solta / Descolada do Painel de Rolha */
.estojo-fig-card {
  background: #ffffff;
  background-image: radial-gradient(#faf7f0 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  border: 1px solid #dcd5c7;
  border-radius: 4px;
  padding: 5px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  user-select: none;
}

/* Cantinho Inferior Solto / Curvado de Adesivo de Papel */
.estojo-fig-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, transparent 50%, #dcd6c8 50%, #c4baa7 100%);
  border-top-left-radius: 2.5px;
  box-shadow: -1px -1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: all 0.2s ease;
}

.estojo-fig-card:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
  border-color: #14532d;
  background: #ffffff;
  z-index: 5;
}

.estojo-fig-card:hover::after {
  width: 16px;
  height: 16px;
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.22);
}

.estojo-fig-card:active {
  transform: scale(0.95);
}

.estojo-fig-ordem {
  position: absolute;
  top: 2px;
  left: 3px;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 900;
  color: #856a42;
}

/* Foto Padronizada com Proporção Perfeita */
.estojo-fig-photo-box {
  width: 100%;
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  background: #eeeae0;
  margin: 11px 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estojo-fig-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.estojo-fig-nome {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  color: #19261f;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 1px;
}

.estojo-fig-partido {
  font-size: 8.5px;
  font-weight: 700;
  color: #6b5c43;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.estojo-fig-numero {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: #19261f;
  letter-spacing: -0.3px;
}

.ticket-card.preenchido:hover {
  border-color: var(--green-primary);
}

.ticket-card.vazio {
  border-style: dashed;
  border-color: #d1cabe;
  background: #faf8f4;
}

.ticket-card.vazio:hover {
  border-color: var(--green-accent);
  background: #fdfbf7;
}

/* Cabeçalho do Ticket */
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ticket-cargo-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-ordem-voto {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--yellow-tag-text);
  background: var(--yellow-tag-bg);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.ticket-sep {
  color: #c4bbae;
  font-size: 14px;
}

.ticket-cargo-nome {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green-dark);
}

.ticket-cargo-vaga {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #a16207;
}

/* Conteúdo Preenchido (Números em Caixa Escura de Alto Contraste com Amarelo Pastel) */
.ticket-body-filled {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticket-number-box {
  flex-shrink: 0;
  background: #0f3d21;
  border: 2px solid #14532d;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(15, 61, 33, 0.25);
}

.ticket-big-number {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 2px;
  line-height: 1.05;
}

.ticket-photo-wrapper {
  width: 58px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #eef2ef;
  flex-shrink: 0;
}

.ticket-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.ticket-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--green-dark);
  background: #ecfdf5;
}

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-urna-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ticket-party {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-accent);
  margin-top: 3px;
}

.ticket-action-btns {
  display: flex;
  gap: 8px;
}

.btn-ticket-clear {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-ticket-clear:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

/* Conteúdo Vazio com Silhueta Neutra */
.ticket-body-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}

.ticket-avatar-silhouette {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eeeae0;
  border: 1.5px solid #ded8cb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8273;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ticket-card.vazio:hover .ticket-avatar-silhouette {
  background: #e6f4ec;
  border-color: #a7d7bc;
  color: var(--green-primary);
  transform: scale(1.05);
}

.ticket-empty-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.ticket-empty-sub {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Seção de Conclusão migrada para o design atual de alta fidelidade */

/* ==========================================================================
   AÇÕES FINAIS DIRETAS E OBJETIVAS (SEM BOTÕES REPETIDOS)
   ========================================================================== */
.acoes-finais-diretas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.btn-acao-primaria {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-acao-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-acao-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-acao-whatsapp:active {
  transform: translateY(0);
}

.btn-acao-salvar-larga {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #14532d;
  color: #14532d;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-acao-salvar-larga:hover {
  background: #f0fdf4;
  border-color: #0f3d21;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.15);
}

.btn-acao-salvar-larga:active {
  transform: translateY(0);
}

.acoes-finais-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.btn-link-discreto {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-link-discreto:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.btn-link-danger {
  color: #ef4444;
}

.btn-link-danger:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* Gaveta Deslizante (Bottom Sheet Clara) */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 28, 22, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-out;
}

.sheet-panel {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 14px 24px max(24px, env(safe-area-inset-bottom));
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #ded7cb;
  border-radius: 3px;
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.sheet-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--yellow-tag-text);
  background: var(--yellow-tag-bg);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-bottom: 4px;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.15;
}

.btn-close-sheet {
  background: #f4f0e6;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
}

.btn-close-sheet:hover {
  color: var(--text-main);
  background: #eae3d5;
}

/* Campo de Busca Grande */
.search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-primary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 58px;
  background: #faf8f5;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 48px 0 52px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12);
}

.btn-clear-input {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   GRADE DE FIGURINHAS NA CONSULTA (Até 5 por linha com micro-movimento)
   ========================================================================== */
.candidatos-lista {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 figurinhas por linha em mobile e desktop */
  gap: 8px;
  padding: 6px 2px 24px;
}

@media (max-width: 360px) {
  .candidatos-lista {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

/* Card Mini-Figurinha Colecionável */
.cand-item-btn {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
  
  /* Efeito de movimento bem leve contínuo (respiração / flutuação) */
  animation: figurinhaFlutuar 3.2s ease-in-out infinite alternate;
}

/* Variação no tempo de flutuação para cada figurinha para efeito orgânico */
.cand-item-btn:nth-child(2n) {
  animation-duration: 3.6s;
  animation-delay: 0.3s;
}
.cand-item-btn:nth-child(3n) {
  animation-duration: 4s;
  animation-delay: 0.6s;
}
.cand-item-btn:nth-child(4n) {
  animation-duration: 3.4s;
  animation-delay: 0.9s;
}

@keyframes figurinhaFlutuar {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-3px) rotate(0.4deg);
  }
}

.cand-item-btn:hover, .cand-item-btn:active {
  border-color: var(--green-primary);
  background: #ecfdf5;
  transform: translateY(-5px) scale(1.06) !important;
  box-shadow: 0 8px 18px rgba(20, 83, 45, 0.2);
  z-index: 5;
}

/* Moldura da Foto da Mini-Figurinha */
.cand-item-photo-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 4px;
  overflow: hidden;
  background: #ece7db;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.cand-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.cand-item-photo-placeholder {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--green-dark);
}

/* Número em Destaque na Mini-Figurinha */
.cand-item-nr {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  color: #fef08a;
  background: #0f3d21;
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.4px;
  width: 100%;
  text-align: center;
  margin-bottom: 3px;
}

/* Nome Curto de Urna e Sigla */
.cand-item-nome {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cand-item-meta {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--green-accent);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Inserção Manual */
.box-manual-cand {
  background: #faf8f5;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f3d21;
  border: 1.5px solid #14532d;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  animation: fadeInDown 0.3s ease;
  text-align: center;
  max-width: 90vw;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeInSmooth {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ESPELHO REAL DA COLINHA PRONTA COM FOTOS (ACIMA DOS BOTÕES DE AÇÃO)
   REBUSCADA EM PAPEL TEXTURADO REAL, COM ASPECTO DE FIGURINHAS COLECIONÁVEIS
   ========================================================================== */
.colinha-final-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 18px 0 28px;
  /* Textura realista de papel encorpado / cartolina kraft cívica */
  background: #f5efe3;
  background-image: 
    radial-gradient(#ded2be 1.2px, transparent 1.2px),
    radial-gradient(#eae0ce 0.8px, transparent 0.8px);
  background-size: 16px 16px, 8px 8px;
  background-position: 0 0, 4px 4px;
  border: 2.5px solid #cbbfab;
  border-radius: 20px;
  padding: 22px 16px;
  box-shadow: 
    inset 0 3px 12px rgba(0, 0, 0, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.04),
    0 16px 36px rgba(44, 38, 25, 0.12);
  position: relative;
}

/* Efeito de Figurinha Adesiva Colada na Folha com Relevo e Sombra */
.final-row-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  background-image: radial-gradient(#faf7f0 0.9px, transparent 0.9px);
  background-size: 12px 12px;
  border: 2px solid #ded7cb;
  border-radius: 12px;
  padding: 14px 16px;
  gap: 16px;
  box-shadow: 
    0 6px 16px rgba(44, 38, 25, 0.09),
    0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-row-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 38, 25, 0.14);
}

/* Moldura e Dobra Sutil de Figurinha no Canto */
.final-row-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(225deg, #ded6c4 50%, #faf8f5 50%);
  border-bottom-left-radius: 4px;
  box-shadow: -1.5px 1.5px 3px rgba(0, 0, 0, 0.08);
}

.final-row-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fde047;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.6px;
  box-shadow: 0 1px 3px rgba(133, 77, 14, 0.15);
}

/* Foto do Candidato Bem Maior no Formato Figurinha Oficial */
.final-row-photo {
  width: 78px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid #cbbfab;
  background: #eeeae0;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.final-row-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.final-row-cargo {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 3px;
}

/* Nome de Urna Maior e em Destaque Absoluto */
.final-row-nome {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: #19261f;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.final-row-partido {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-accent);
  display: block;
  margin-top: 3px;
}

/* Caixa do Número BEM MAIOR e Maciça com Alto Contraste */
.final-row-number-box {
  background: #0f3d21;
  border: 2.5px solid #14532d;
  border-radius: 10px;
  padding: 8px 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 61, 33, 0.30);
}

.final-row-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 1.2px;
  line-height: 1;
}

/* Botão Link de Reiniciar Colinha na Tela Final */
.btn-reiniciar-final-link {
  background: none;
  border: 1.5px dashed #dc2626;
  color: #dc2626;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reiniciar-final-link:hover {
  background: #fef2f2;
  border-style: solid;
  transform: translateY(-1px);
}

/* Modal de Animação: Colinha Saindo da Urna (Impressão) */
.print-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(18, 28, 22, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.print-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 620px;
}

.urna-dispenser-box {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  width: 100%;
}

.urna-dispenser-img {
  width: 240px;
  max-width: 70vw;
  height: auto;
  aspect-ratio: 364 / 163;
  object-fit: contain;
}

.urna-slot-cut {
  width: 100%;
  max-width: 580px;
  height: 8px;
  background: #091b13;
  border-radius: 4px;
  margin-top: -4px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(255, 255, 255, 0.15);
}

.paper-slip-viewport {
  width: 280px;
  max-height: 400px;
  overflow: hidden;
  position: relative;
  margin-top: -4px;
  z-index: 5;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

/* Viewport ampliado para acomodar com perfeição a colinha oficial 9:16 saindo da urna */
.paper-card-viewport {
  width: 100%;
  max-width: 440px;
  max-height: 580px;
  overflow: hidden;
  position: relative;
  margin-top: -4px;
  z-index: 5;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}

.paper-slip-roll {
  background: #faf8f4;
  background-image: radial-gradient(#ebe5d8 1px, transparent 1px);
  background-size: 16px 16px;
  border-left: 1px solid #d8d2c4;
  border-right: 1px solid #d8d2c4;
  padding: 16px 18px 20px;
  transform: translateY(-100%);
  animation: rollOutPaper 4.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card idêntico ao modelo final deslizando para fora da urna */
.paper-card-roll {
  background: transparent;
  border: none;
  padding: 0;
  transform: translateY(-100%);
  animation: rollOutPaper 3.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.paper-card-roll .colinha-vert-card-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@keyframes rollOutPaper {
  0% {
    transform: translateY(-100%);
    opacity: 0.2;
  }
  15% {
    transform: translateY(-75%);
    opacity: 1;
  }
  45% {
    transform: translateY(-40%);
    opacity: 1;
  }
  75% {
    transform: translateY(-12%);
    opacity: 1;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.slip-header {
  text-align: center;
  padding-bottom: 8px;
}

.slip-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #14532d;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.slip-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.slip-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  color: #a16207;
  letter-spacing: 0.4px;
}

.slip-dashed-divider {
  border-top: 1.5px dashed #c8c1b2;
  margin: 10px 0;
}

.slip-candidatos-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ==========================================================================
   ANIMAÇÃO: CÉDULA DE PAPEL SAINDO DA URNA COM FOTOS REAIS
   ========================================================================== */
.slip-logo-img {
  width: 140px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

.slip-item-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2dcd0;
  border-radius: 6px;
  padding: 6px 8px;
  gap: 8px;
}

.slip-item-photo {
  width: 32px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid #ded7cb;
  background: #eeeae0;
  flex-shrink: 0;
}

.slip-item-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.slip-item-cargo {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slip-item-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.slip-item-nr {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #fef08a;
  background: #0f3d21;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.slip-footer {
  text-align: center;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

.slip-serrated-edge {
  height: 8px;
  margin-top: 10px;
  background-image: radial-gradient(circle, transparent 4px, #faf8f4 4.5px);
  background-size: 9px 9px;
  background-position: 0 0;
  border-bottom: 2px dashed #b8b0a0;
}

.print-status-text {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.print-spinner {
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fef08a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO FIXA NO RODAPÉ (COMO NO MOCKUP)
   ========================================================================== */
/* Espaçamento inferior equilibrado no body */
body {
  padding-bottom: 36px !important;
}

/* ==========================================================================
   MODAL GUIA DO ELEITOR
   ========================================================================== */
.guia-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(18, 28, 22, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.guia-modal-card {
  width: 100%;
  max-width: 480px;
  background: #fdfbf7;
  border: 2px solid #ded7cb;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideInFigurinha 0.25s ease-out;
}

.guia-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #14532d;
  color: #ffffff;
}

.guia-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.btn-close-guia {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.guia-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.guia-topic-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e8e2d5;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.guia-topic-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.guia-topic-box strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #14532d;
  display: block;
  margin-bottom: 2px;
}

.guia-topic-box p {
  font-size: 13px;
  color: #55665b;
  line-height: 1.4;
}

/* Ajustes Responsivos Grandes (iPad / Desktop) */
@media (min-width: 640px) {
  body {
    padding: 32px 32px 100px !important;
  }
}

/* ==========================================================================
   SEÇÃO DE CONCLUSÃO LIMPA E FOCO 100% NA COLINHA
   ========================================================================== */
.conclusao-section {
  width: 100%;
  max-width: 680px;
  margin: 10px auto 30px;
  animation: fadeIn 0.3s ease-out;
}

.conclusao-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.colinha-final-preview {
  width: 100%;
  margin: 0 auto 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.acoes-finais-diretas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin-bottom: 16px;
}

.btn-acao-primaria.btn-acao-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-acao-primaria.btn-acao-whatsapp:hover {
  background: #22c35e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}


.btn-acao-secundaria.btn-acao-salvar-larga {
  background: #ffffff;
  color: #0f3d21;
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-acao-secundaria.btn-acao-salvar-larga:hover {
  background: #fef08a;
  border-color: #fef08a;
  color: #0f3d21;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.acoes-finais-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
}

.btn-acao-editar {
  flex: 1;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn-acao-editar:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #ffffff !important;
}

.btn-acao-recomecar {
  flex: 1;
  background: #ffffff;
  border: 2px solid #ef4444;
  color: #b91c1c;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-acao-recomecar svg {
  color: #dc2626;
}

.btn-acao-recomecar:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-acao-recomecar:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .acoes-finais-links {
    flex-direction: column;
    gap: 10px;
  }
  .btn-acao-editar, .btn-acao-recomecar {
    width: 100%;
  }
}

/* ==========================================================================
   NOVO DESIGN DE SANTINHO / COLINHA OFICIAL 2:3 (FIEL AO NOVO MODELO)
   ========================================================================== */
/* ==========================================================================
   DESIGN DE SANTINHO / COLINHA ELEITORAL OFICIAL 2:3 (PADRÃO REFERÊNCIA NACIONAL)
   ========================================================================== */
.colinha-vert-card-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 682 / 1024;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  container-type: inline-size;
  container-name: colinhacard;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Camada da Foto do Candidato (Bruno Ortiz à Direita, Ocupando Todo o Espaço com Impacto) */
.colinha-vert-candidato-img {
  position: absolute;
  top: 0%;
  right: -8%;
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  pointer-events: none;
  /* Suave transição branca na base para contraste impecável da logo */
  mask-image: linear-gradient(to bottom, black 0%, black 80%, rgba(0, 0, 0, 0.5) 89%, transparent 97%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, rgba(0, 0, 0, 0.5) 89%, transparent 97%);
}

/* Camada da Logomarca Oficial (Fixada no Canto Inferior Direito com Presença Marcante) */
.colinha-vert-logo-img {
  position: absolute;
  bottom: 3%;
  right: 2%;
  width: 53%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.16));
}

/* Slogan Oficial Abaixo da Logo */
.colinha-vert-slogan {
  display: none;
}

.colinha-vert-slogan-img {
  display: none;
}

/* Coluna de Votação na Esquerda (56% do card para respiração visual e zero colisão) */
.colinha-vert-left-col {
  position: relative;
  z-index: 3;
  width: 56%;
  height: 100%;
  padding: 4.2cqi 0 4.2cqi 4.2cqi;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Cabeçalho do Eleitor: Chancela / Pill Badge Azul Oficial de Votação */
.colinha-vert-eleitor-header {
  margin-bottom: 0.9cqi;
  width: fit-content;
}

.colinha-vert-eleitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqi;
  background: linear-gradient(135deg, #006cb5 0%, #004d82 100%);
  color: #ffffff;
  padding: 0.5cqi 1.6cqi 0.5cqi 1.4cqi;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 2.2cqi;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: 0 3px 8px rgba(0, 108, 181, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.colinha-vert-eleitor-star {
  color: #ffd700;
  font-size: 2.2cqi;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.colinha-vert-rows-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.colinha-vert-row {
  display: flex;
  flex-direction: column;
  gap: 0.6cqi;
  width: 100%;
}

/* Título do Cargo: Preto Sólido, Caixa Alta, Fonte Display em Negrito Pesado */
.colinha-vert-cargo-label {
  font-family: var(--font-display);
  font-size: 3.5cqi;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.colinha-vert-row-content {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Foto do Candidato Escolhido: Padrão Oficial (8cqi x 11.5cqi) sem Borda, Apenas Sombra */
.colinha-vert-minifoto {
  height: 11.5cqi;
  width: 8cqi;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 1cqi;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

.colinha-vert-boxes-group {
  display: flex;
  flex-direction: column;
  gap: 0.4cqi;
  min-width: 0;
}

.colinha-vert-boxes {
  display: flex;
  gap: 0.8cqi;
  align-items: center;
  flex-wrap: nowrap;
}

/* Nome do Candidato Abaixo dos Números (com borda branca e sombra - NUNCA abreviar) */
.colinha-vert-cand-nome {
  font-family: var(--font-display);
  font-size: 2.5cqi;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.05;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  max-width: 46cqi;
  -webkit-text-stroke: 1.2px #ffffff;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Ajuste proporcional para nomes longos (ex: ECONOMISTA RENATO GOMES) para exibir 100% completo */
.colinha-vert-cand-nome.is-long-name {
  font-size: 2.1cqi;
  letter-spacing: -0.02em;
}

/* Bruno Ortiz em super destaque: posicionado entre o cargo e os números 10222 */
.colinha-vert-cand-nome-destaque {
  font-size: 4.8cqi;
  font-weight: 950;
  color: #006cb5;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px #ffffff;
  paint-order: stroke fill;
  filter: drop-shadow(0 3px 6px rgba(0, 77, 130, 0.5));
  margin-top: 0.2cqi;
  margin-bottom: 0.8cqi;
  line-height: 1;
}

/* Caixas de Dígitos Padrão: 8.4cqi x 11.2cqi, peso extra-bold marcante */
.colinha-vert-digit-box {
  width: 8.4cqi;
  height: 11.2cqi;
  background: #ffffff;
  border: 2.2px solid #006cb5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 7.8cqi;
  font-weight: 950;
  color: #000000;
  -webkit-text-stroke: 1.1px #000000;
  paint-order: stroke fill;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Destaque Máximo: Deputado Estadual - Bruno Ortiz 10222 */
.colinha-vert-row-depEst {
  position: relative;
  background: rgba(0, 108, 181, 0.05);
  border-radius: 10px;
  padding: 0.8cqi 0.8cqi 1cqi;
  margin: -0.8cqi -0.8cqi 0;
  border-left: 3.5px solid #006cb5;
}

.colinha-vert-row-depEst .colinha-vert-cargo-label {
  color: #004d82;
  font-size: 3.8cqi;
  letter-spacing: 0.02em;
}

.colinha-vert-row-depEst .colinha-vert-digit-box {
  width: 10.2cqi;
  height: 13.5cqi;
  font-size: 9.6cqi;
  font-weight: 950;
  color: #004d82;
  -webkit-text-stroke: 1.2px #004d82;
  paint-order: stroke fill;
  border-radius: 8px;
  border-width: 3.2px;
  border-color: #006cb5;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 108, 181, 0.22);
}

.colinha-vert-row-depEst .colinha-vert-boxes {
  gap: 1cqi;
}

/* Destaque Especial Marquinhos Trad 4333 na Colinha */
.pocket-marquinhos-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
  border: 2px solid #16a34a !important;
  border-left: 6px solid #15803d !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15) !important;
  position: relative;
}

.pocket-marquinhos-badge-top {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}

.pocket-marquinhos-photo-wrap {
  width: 72px !important;
  height: 88px !important;
  border: 2px solid #16a34a !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2) !important;
}

/* Cabeçalho Oficial */
.pocket-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2.5px solid #14532d;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.pocket-header-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.pocket-header-text {
  flex: 1;
  text-align: left;
}

.pocket-header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #14532d;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.pocket-header-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  color: #854d0e;
  letter-spacing: 0.4px;
}

.pocket-header-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  background: #fef08a;
  color: #713f12;
  border: 1px solid #eab308;
  border-radius: 6px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Faixa de Ordem Oficial */
.pocket-ordem-banner {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  color: #14532d;
  background: #ecfdf5;
  border: 1.5px dashed #86efac;
  border-radius: 6px;
  text-align: center;
  padding: 5px 8px;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

/* Grade Vertical com Espaçamento Confortável */
.pocket-votes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card Individual de Cargo - Robusto e com Alto Contraste */
.pocket-vote-row {
  background: #ffffff;
  border: 1.8px solid #ded7cb;
  border-left: 5px solid #14532d;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pocket-vote-row.pocket-empty {
  border-left-color: #cbd5e1;
  background: #fafaf9;
}

.pocket-vote-empty-msg {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 6px 0;
  letter-spacing: 0.5px;
}

.pocket-vote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
  margin-bottom: 6px;
  border-bottom: 1px dashed #ede8df;
  padding-bottom: 4px;
}

.pocket-vote-ordem {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: #854d0e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pocket-vote-cargo {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  color: #14532d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Miolo: Foto Grande + Dígitos Gigantes */
.pocket-vote-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Foto com Proporção de Foto Oficial de Documento/Santinho */
.pocket-cand-photo-wrap {
  width: 54px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #cbbfab;
  background: #f5f2eb;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pocket-cand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pocket-cand-avatar-placeholder {
  font-size: 22px;
  color: #8c8273;
}

/* Informações do Voto e Caixas de Dígitos */
.pocket-vote-cand-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.pocket-digits-group {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 4px;
}

/* Caixas de Dígitos Bem Maiores e Nítidas */
.pocket-digit-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 30px;
  padding: 0 4px;
  background: #0f3d21;
  color: #fef08a;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border: 1.5px solid #062312;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Nome do Candidato */
.pocket-cand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 900;
  color: #19261f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pocket-cand-party {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
  margin-top: 1px;
}

/* Rodapé Cívico */
.pocket-footer {
  border-top: 2px solid #14532d;
  padding-top: 8px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pocket-footer-text {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: #55665b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pocket-footer-url {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  color: #14532d;
}

/* ==========================================================================
   FOLHA DE IMPRESSÃO A4 (4 CÓPIAS EM GRADE 2x2 COM MARCAS DE CORTE)
   ========================================================================== */
.a4-print-sheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12pt;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }

  /* Oculta toda a interface web na hora de imprimir */
  header,
  nav,
  .app-header,
  .container-vitrine,
  .modal-selecao-overlay,
  .print-modal-overlay,
  .guia-modal-overlay,
  .round-actions-group,
  .btn-rever-link,
  .btn-reiniciar-final-link,
  .conclusao-badge,
  .conclusao-title,
  .conclusao-sub,
  #toast {
    display: none !important;
  }

  .conclusao-section,
  .conclusao-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Oculta o preview individual da tela e ativa a folha A4 com 4 colinhas */
  #colinha-final-preview {
    display: none !important;
  }

  .a4-print-sheet {
    display: grid !important;
    grid-template-columns: 65mm 65mm;
    grid-template-rows: 95mm 95mm;
    justify-content: center;
    align-content: center;
    gap: 10mm 12mm;
    width: 100%;
    height: 100%;
    padding-top: 6mm;
    box-sizing: border-box;
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Estilização Física Exata das 4 Colinhas Impressas (65mm x 95mm) */
  .a4-pocket-card {
    width: 65mm !important;
    height: 95mm !important;
    max-width: 65mm !important;
    max-height: 95mm !important;
    box-sizing: border-box !important;
    border: 1px solid #14532d !important;
    border-radius: 3mm !important;
    padding: 2.5mm 3mm !important;
    background: #ffffff !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    outline: 1px dashed #cbd5e1; /* Guia de recorte */
    outline-offset: 2mm;
  }

  /* Marcas de Corte nos 4 Cantos */
  .a4-pocket-card::before,
  .a4-pocket-card::after {
    content: "";
    position: absolute;
    width: 3mm;
    height: 3mm;
    pointer-events: none;
  }

  .a4-pocket-card::before {
    top: -2mm;
    left: -2mm;
    border-top: 0.5pt solid #64748b;
    border-left: 0.5pt solid #64748b;
  }

  .a4-pocket-card::after {
    bottom: -2mm;
    right: -2mm;
    border-bottom: 0.5pt solid #64748b;
    border-right: 0.5pt solid #64748b;
  }

  .a4-pocket-card .pocket-header {
    border-bottom: 1.2pt solid #14532d !important;
    padding-bottom: 1.2mm !important;
    margin-bottom: 1mm !important;
    gap: 2mm !important;
  }

  .a4-pocket-card .pocket-header-logo {
    width: 7mm !important;
    height: 7mm !important;
  }

  .a4-pocket-card .pocket-header-title {
    font-size: 8.5pt !important;
  }

  .a4-pocket-card .pocket-header-sub {
    font-size: 6pt !important;
  }

  .a4-pocket-card .pocket-header-badge {
    font-size: 5.5pt !important;
    padding: 0.5mm 1.5mm !important;
  }

  .a4-pocket-card .pocket-ordem-banner {
    font-size: 5.5pt !important;
    padding: 0.8mm !important;
    margin-bottom: 1mm !important;
  }

  .a4-pocket-card .pocket-votes-list {
    gap: 1mm !important;
  }

  .a4-pocket-card .pocket-vote-row {
    border: 0.5pt solid #d1d5db !important;
    border-left: 2pt solid #14532d !important;
    border-radius: 1.5mm !important;
    padding: 1mm 1.5mm !important;
  }

  .a4-pocket-card .pocket-vote-ordem {
    font-size: 5.5pt !important;
  }

  .a4-pocket-card .pocket-vote-cargo {
    font-size: 6.5pt !important;
  }

  .a4-pocket-card .pocket-digit-box {
    width: 3.6mm !important;
    height: 4.6mm !important;
    font-size: 8pt !important;
    border-radius: 0.8mm !important;
  }

  .a4-pocket-card .pocket-cand-name {
    font-size: 7pt !important;
  }

  .a4-pocket-card .pocket-cand-party {
    font-size: 5.5pt !important;
  }

  .a4-pocket-card .pocket-cand-photo-wrap {
    width: 6mm !important;
    height: 7.5mm !important;
    border-radius: 1mm !important;
  }

  .a4-pocket-card .pocket-footer {
    padding-top: 1mm !important;
    margin-top: 1mm !important;
  }

  .a4-pocket-card .pocket-footer-text {
    font-size: 5.5pt !important;
  }

  .a4-pocket-card .pocket-footer-url {
    font-size: 5pt !important;
  }
}


