/* ============================================================
   Avalue Sindical — Design System v2
   Paleta: Azul institucional + Verde ação + Neutros refinados
   Tipografia: Sora (display) + Source Sans 3 (corpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --brand-blue:       #1B3A6B;
  --brand-blue-mid:   #2558A8;
  --brand-blue-light: #EBF1FB;
  --brand-green:      #1A7F4B;
  --brand-green-bg:   #E8F7EF;
  --accent-red:       #C0392B;

  --surface:          #FFFFFF;
  --bg:               #F0F4FA;
  --border:           #D5DEED;
  --text-primary:     #101828;
  --text-secondary:   #4A5568;
  --text-muted:       #8898AA;

  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;

  --shadow-sm:  0 1px 3px rgba(27,58,107,.08), 0 1px 2px rgba(27,58,107,.06);
  --shadow-md:  0 4px 16px rgba(27,58,107,.10), 0 2px 6px rgba(27,58,107,.07);
  --shadow-lg:  0 12px 32px rgba(27,58,107,.14);

  --transition: 180ms ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  margin: 0;
  cursor: default;
}

h1 { font-size: 26px; font-weight: 700; line-height: 1.25; }
h5 { font-size: 18px; font-weight: 600; }
h6 { font-size: 16px; font-weight: 600; }

/* ── Layout ── */
#wrapper {
  min-height: calc(100vh - 120px);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Largura padrão das telas que descendem do base.html de cadastro (classe
   aplicada por padrão no block body_class do base): abre as laterais em telas
   largas — navbar e conteúdo acompanham, pois ambos usam .container. */
@media (min-width: 1200px) {
  .tela-ampla .container { max-width: min(1400px, 94vw); }
}

/* ── Navbar ── */
.navbar {
  background: var(--brand-blue) !important;
  padding: 10px 24px;
  min-height: 88px;
  height: auto;
  box-shadow: 0 2px 8px rgba(27,58,107,.25);
  border-bottom: 3px solid var(--brand-blue-mid);
}

.navbar-brand {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 4px 0;
  flex-shrink: 0;
}

.navbar-brand img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.navbar h5 {
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
  opacity: .95;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
}

.navbar h4 {
  color: #BFD4F5;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 0;
  line-height: 1.3;
}

/* ── Layout da cobrança (base_cobranca.html): logo menor + barra de menu ── */
.layout-cobranca .navbar.sticky-top { min-height: 80px; padding-top: 6px; padding-bottom: 6px; }
/* Remove a linha azul-clara (border-bottom do navbar) entre o topo e a área interna. */
.layout-cobranca .navbar.sticky-top { border-bottom: none; }
.layout-cobranca .navbar-brand img { max-height: 68px; }
.layout-cobranca .navbar h5 { font-size: 14px; }

/* ── Sidebar retrátil da cobrança ── */
:root { --sidebar-w: 214px; --sidebar-w-collapsed: 72px; --nav-h: 80px; }

.sidebar-cobranca {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-mid) 100%);
  display: flex; flex-direction: column;
  z-index: 1018;
  box-shadow: 2px 0 14px rgba(27, 58, 107, .18);
  transition: width .2s ease, transform .25s ease;
}
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sidebar-head-title {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  white-space: nowrap; overflow: hidden;
}
.sidebar-toggle {
  flex-shrink: 0; width: 34px; height: 34px; border: none; border-radius: 9px;
  background: rgba(255, 255, 255, .12); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: background .15s ease;
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, .22); }
.sidebar-toggle i { transition: transform .2s ease; }

.sidebar-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 12px; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }

.sidebar-section {
  font-family: 'Sora', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
  margin: 16px 10px 6px; white-space: nowrap; overflow: hidden;
}
.sidebar-nav > .sidebar-section:first-child { margin-top: 2px; }

.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 3px; border-radius: 10px;
  color: rgba(255, 255, 255, .88) !important; text-decoration: none;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 500;
  white-space: nowrap; position: relative;
  transition: background .15s ease, color .15s ease;
}
.sidebar-link i {
  flex-shrink: 0; width: 24px; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-link .sidebar-label { overflow: hidden; transition: opacity .15s ease; }
.sidebar-link:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF !important; }
.sidebar-link.active { background: rgba(255, 255, 255, .18); color: #FFFFFF !important; font-weight: 600; }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: #FFFFFF;
}
.sidebar-link--sair { color: rgba(255, 220, 220, .92) !important; }
.sidebar-link--sair:hover { background: rgba(192, 57, 43, .35); color: #FFFFFF !important; }

/* Conteúdo deslocado à direita da sidebar (apenas em páginas com menu) */
body.has-sidebar #wrapper,
body.has-sidebar > footer {
  margin-left: var(--sidebar-w);
  transition: margin-left .2s ease;
}
/* A .container do Bootstrap tem largura fixa por breakpoint; com a sidebar
   ocupando a esquerda isso estoura a viewport e gera scroll horizontal.
   Dentro da área com sidebar o container vira fluido e se adapta à largura. */
body.has-sidebar #wrapper > .container { max-width: 100%; width: 100%; }
/* Telas internas: reduz o respiro lateral do container e dos cards para dar
   mais área útil/visão aos dados. Escopado a .has-sidebar (não afeta o público). */
body.has-sidebar #wrapper > .container { padding-left: 4px; padding-right: 4px; }
body.has-sidebar .card-header { padding-left: 16px; padding-right: 16px; }
body.has-sidebar .card-body { padding-left: 16px; padding-right: 16px; }

/* ── Estado recolhido (somente ícones) ── */
body.has-sidebar.sidebar-collapsed .sidebar-cobranca { width: var(--sidebar-w-collapsed); }
body.has-sidebar.sidebar-collapsed #wrapper,
body.has-sidebar.sidebar-collapsed > footer { margin-left: var(--sidebar-w-collapsed); }
.sidebar-collapsed .sidebar-head-title,
.sidebar-collapsed .sidebar-link .sidebar-label { opacity: 0; width: 0; }
.sidebar-collapsed .sidebar-head { justify-content: center; padding: 12px 0; }
.sidebar-collapsed .sidebar-link { justify-content: center; gap: 0; padding: 10px; }
.sidebar-collapsed .sidebar-section { height: 0; margin: 6px 0; padding: 0; opacity: 0; }
.sidebar-collapsed .sidebar-toggle i { transform: rotate(180deg); }

/* Tooltip no modo recolhido */
.sidebar-collapsed .sidebar-link::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--brand-blue); color: #FFFFFF; font-size: 12.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 7px; white-space: nowrap;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .12s ease; z-index: 1030;
}
.sidebar-collapsed .sidebar-link:hover::after { opacity: 1; }

/* ── Logo do topo alinhada ao conteúdo (cobrança e votação) ──
   A logo alinha com a margem esquerda dos cards da área interna (que começa
   após a sidebar) e acompanha, com animação, o recolher/expandir do menu.
   O left espelha o margin-left do #wrapper + o padding do container (4px). */
@media (min-width: 768px) {
  body.layout-cobranca.has-sidebar .navbar .navbar-brand {
    position: absolute; left: calc(var(--sidebar-w) + 4px); top: 0; bottom: 0;
    display: flex; align-items: center;
    padding: 6px 0;
    transition: left .2s ease;
  }
  body.layout-cobranca.has-sidebar.sidebar-collapsed .navbar .navbar-brand {
    left: calc(var(--sidebar-w-collapsed) + 4px);
  }
  /* A logo sai do fluxo do container: mantém o bloco do usuário/módulo à direita. */
  body.layout-cobranca.has-sidebar .navbar-brand-info { margin-left: auto; }
}

/* Botão hambúrguer (mobile) e backdrop */
.sidebar-mobile-toggle, .sidebar-backdrop { display: none; }

@media (max-width: 767px) {
  .sidebar-cobranca { top: 0; transform: translateX(-100%); z-index: 1050; }
  body.has-sidebar.sidebar-collapsed .sidebar-cobranca { width: var(--sidebar-w); } /* no mobile abre completo */
  body.has-sidebar.sidebar-open .sidebar-cobranca { transform: translateX(0); box-shadow: 2px 0 22px rgba(0, 0, 0, .3); }
  body.has-sidebar #wrapper,
  body.has-sidebar > footer { margin-left: 0 !important; }
  body.has-sidebar .navbar .container { padding-left: 64px; }
  .sidebar-mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; top: 14px; left: 12px; z-index: 1051;
    width: 42px; height: 42px; border: none; border-radius: 10px;
    background: var(--brand-blue); color: #FFFFFF; font-size: 22px; cursor: pointer;
    box-shadow: var(--shadow-md);
  }
  body.has-sidebar.sidebar-open .sidebar-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .5); z-index: 1049;
  }
}

/* ── Page header strip (abaixo do navbar) ── */
.page-header-strip {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 100%);
  padding: 32px 24px 28px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-strip h1 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  position: relative;
}

.page-header-strip p {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  margin: 0;
  position: relative;
}

/* ── Cards ── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--surface);
}

.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
}

.card-header h1,
.card-header h5 {
  max-width: none;
  margin: 0 0 4px;
  color: var(--brand-blue);
}

.card-header p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.card-header.com-imagem {
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-body {
  background: #FAFBFD;
  padding: 28px 32px;
}

/* ── Painel de ações da home (os dois botões grandes) ── */
.action-panel {
  display: flex;
  gap: 20px;
  padding: 32px 28px;
  justify-content: center;
  background: var(--surface);
  flex-wrap: wrap;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 220px;
  min-height: 130px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 20px 16px;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.action-card .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Atualização — azul */
.action-card.update {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: #C0D4EF;
}
.action-card.update .action-icon {
  background: var(--brand-blue);
  color: white;
}
.action-card.update:hover { border-color: var(--brand-blue-mid); }

/* Nova filiação — verde */
.action-card.new {
  background: var(--brand-green-bg);
  color: var(--brand-green);
  border-color: #B2DFC8;
}
.action-card.new .action-icon {
  background: var(--brand-green);
  color: white;
}
.action-card.new:hover { border-color: var(--brand-green); }

/* Bootstrap button overrides */
.btn {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .015em;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--brand-blue-mid);
  color: white;
  box-shadow: 0 2px 8px rgba(37,88,168,.30);
}
.btn-primary:hover {
  background: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(27,58,107,.35);
  color: white;
}

.btn-success {
  background: var(--brand-green);
  color: white;
  box-shadow: 0 2px 8px rgba(26,127,75,.28);
}
.btn-success:hover {
  background: #15683D;
  box-shadow: 0 4px 14px rgba(26,127,75,.35);
  color: white;
}

.btn.w-100 { max-width: 380px; }

/* ── Formulário ── */
label {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  padding: 9px 14px;
  height: auto;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

.form-control:focus {
  border-color: var(--brand-blue-mid);
  box-shadow: 0 0 0 3px rgba(37,88,168,.15);
  outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238898AA' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group { margin-bottom: 18px; }

/* ── Seção de busca ── */
.consulta {
  width: 100%;
  max-width: 100%;
  margin: auto;
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.search-card .section-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-blue-mid);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-card .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Inicio / Fim ── */
.inicio-fim {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 28px;
}
.inicio-fim .inicio,
.inicio-fim .fim { width: 50%; }
.inicio-fim p { margin-bottom: 5px; font-size: 13px; color: var(--text-muted); }
.inicio-fim .list-group-item {
  width: 50%;
  font-weight: 600;
  border-color: var(--border);
}

/* ── Cadastro ── */
.cadastro {
  max-width: 590px;
  margin: 16px auto 0;
}
.cadastro label { font-size: 13px; }
.cadastro .campo-telefone { display: flex; gap: 8px; }
.cadastro .campo-telefone .fone-ddd  { width: 70px; flex-shrink: 0; }
.cadastro .campo-telefone .fone-numero { flex: 1; }

/* ── Termo ── */
.termo {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 590px;
  margin: auto;
}

/* ── Arquivos relacionados ── */
.arquivos-relacionados { display: flex; flex-wrap: wrap; gap: 16px; }

.arquivos-relacionados a {
  width: calc(50% - 8px);
  min-height: 90px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.arquivos-relacionados a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.arquivos-relacionados a .icon {
  width: 80px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF3F2;
  flex-shrink: 0;
  font-size: 28px;
}

.arquivos-relacionados a .nome {
  flex: 1;
  padding: 0 20px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

/* ── Votação ── */
.voto { max-width: 420px; margin: auto; }
.voto .list-group-item { padding-left: 28px; border-color: var(--border); }
.voto .list-group-item label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.voto .list-group-item label.selected { color: var(--accent-red); font-weight: 700; }

/* ── Resultado ── */
.resultado {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-md);
  width: auto;
  margin: 16px auto;
  display: table;
  box-shadow: var(--shadow-sm);
}
.resultado .table { font-size: 14px; margin-bottom: 0; }
.resultado .table th { border-top: none; color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }

/* ── Alerts ── */
.alert-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 12px 16px;
}

/* ── Footer — fixo em TODAS as telas ── */
footer {
  background: var(--brand-blue);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed !important;
  z-index: 1030;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Garante espaço abaixo do conteúdo em todas as telas */
body {
  padding-bottom: 80px;
}

#wrapper {
  padding-bottom: 80px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 18px;
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.footer-badge .dot {
  width: 7px; height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

footer p, footer p a {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin: 0;
}

footer p a { font-weight: 700; color: white; }

/* ── Vídeo ── */
.videoWrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* #foto */
#foto { max-width: 70%; height: auto; }

/* ── Responsivo ── */
@media (max-width: 767.98px) {
  .navbar h5 { font-size: 13px; }

  .action-panel { flex-direction: column; align-items: center; }
  .action-card { width: 100%; max-width: 320px; flex-direction: row; min-height: 72px; }

  .card-body { padding: 16px 12px; }
  .card-header.com-imagem { flex-direction: column; }
  .card-header h1 { max-width: 100%; }

  .inicio-fim { flex-direction: column; }
  .inicio-fim .inicio,
  .inicio-fim .fim { width: 100%; }

  .cadastro { max-width: 100%; margin: 0; }

  .arquivos-relacionados a { width: 100%; }

  .btn-action {
    position: fixed;
    z-index: 9;
    bottom: 56px;
    left: 0;
    width: 100%;
    background: white;
    border-top: 2px solid var(--border);
    padding: 10px 16px;
  }

  .card-body .btn { max-width: 100%; }

  /* Centraliza botão submit no mobile */
  .btn-submit-wrap { justify-content: center !important; }
}

@media (max-width: 570px) {
  .resultado .table,
  .resultado .table tbody,
  .resultado .table tfoot,
  .resultado .table th,
  .resultado .table tr,
  .resultado .table td {
    display: block; width: 100%; text-align: center !important;
  }
  .resultado .table tbody tr td:first-child::before { content: 'Alternativa: '; }
  .resultado .table tbody tr td:first-child+td+td::after { content: ' votos'; }
  .resultado .table thead { display: none; }
}

/* ── Entrada com ícone ── */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 40px; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── reCAPTCHA badge — empurra acima do footer fixo ── */
.grecaptcha-badge {
  bottom: 72px !important;
}

/* ── Seta separador início/fim do evento ── */
.seta-separador { padding: 16px 0; }
.seta-separador i { font-size: 24px; color: var(--text-muted); }

@media (max-width: 767.98px) {
  .seta-separador i {
    transform: rotate(90deg);
  }
}

/* ── Cartaz do evento — efeito hover ── */
.cartaz-evento-wrap {
  position: relative;
  cursor: zoom-in;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.cartaz-evento-wrap::after {
  content: '\F52A';                        /* ícone bi-zoom-in */
  font-family: 'bootstrap-icons';
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(27,58,107,.75);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.cartaz-evento-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

.cartaz-evento-img {
  transition: transform 400ms ease, filter 400ms ease;
  will-change: transform;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 480px;
}

.cartaz-evento-wrap:hover .cartaz-evento-img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

/* ── Navbar ── */
.navbar .container { gap: 16px; }
.navbar-brand-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }

@media (max-width: 767.98px) {
  .navbar { min-height: auto; padding: 10px 16px; }
  .navbar .container { flex-direction: column; align-items: center !important; gap: 6px; }
  .navbar-brand { flex-shrink: 0; max-width: 80vw; }
  .navbar-brand img { height: auto; max-height: 60px; max-width: 100%; }
  .navbar-brand-info { align-items: center; text-align: center; width: 100%; }
  .navbar h5 { text-align: center !important; font-size: 12px; }
  .navbar h4 { text-align: center; font-size: 12px; }
}

/* ── Card header gap ── */
.card-header.d-flex { gap: 16px; }

/* ── Section icon box ── */
.section-icon-box {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.section-icon-box--blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.section-icon-box--red  { background: #FEF3F2; color: #C0392B; }
.section-icon-box--green { background: var(--brand-green-bg); color: var(--brand-green); }
/* Variante grande (ex.: cards de seleção do tipo de contribuição) */
.section-icon-box--lg { width: 76px; height: 76px; border-radius: 18px; font-size: 40px; }
/* Variante para dois ícones lado a lado (código de barras + QR) */
.section-icon-box--duo {
  width: auto; min-width: 76px; height: 76px; padding: 0 16px;
  gap: 10px; font-size: 34px; border-radius: 18px;
}

/* ── Card header text ── */
.card-header-title { color: var(--brand-blue); margin-bottom: 2px; font-size: 16px; }
.card-header-title--green { color: var(--brand-green); }
.card-header-title--red { color: var(--accent-red); }
.card-header-desc { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ── Card header fluido no mobile (ícone + texto + badges) ── */
@media (max-width: 575.98px) {
  .card-header--flow { flex-wrap: wrap; align-items: flex-start; }
  .card-header--flow > div:not(.section-icon-box) { flex: 1 1 auto; min-width: 0; }
  .card-header--flow .badge-situacao {
    margin-left: 0 !important;
    max-width: 100%; white-space: normal; text-align: left;
  }
}

/* ── Section label icons ── */
.section-label i { font-size: 13px; }

/* ── Badge situacao (cadastro em andamento) ── */
.badge-situacao {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-green); color: white;
  padding: 5px 14px; border-radius: 999px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px;
  animation: piscar 1.5s infinite;
  box-shadow: 0 2px 6px rgba(26,127,75,.30);
}
@keyframes piscar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.04); }
}

/* ── Destaque dos dados da guia (confirmação) ── */
.guia-destaque {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.guia-destaque-item {
  background: var(--brand-green-bg);
  border: 1px solid #B2DFC8;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
}
.guia-destaque-label {
  display: block;
  color: var(--brand-green);
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
}
.guia-destaque-valor {
  display: block;
  color: var(--text-primary);
  font-size: 18px; font-weight: 700;
}
/* Valor em verde sólido e pulsando para destacar a escolha do usuário */
.guia-destaque-item--valor {
  background: var(--brand-green);
  border-color: var(--brand-green);
  box-shadow: 0 2px 8px rgba(26,127,75,.30);
  animation: piscar 1.5s infinite;
}
.guia-destaque-item--valor .guia-destaque-label,
.guia-destaque-item--valor .guia-destaque-valor { color: #fff; }

/* Botão com pulsar (ex.: Re-imprimir) para chamar a atenção */
.btn-pulsar { animation: piscar 1.5s infinite; }
/* Badge pulsando mantendo a cor (override do animation:none do --blue) */
.badge-pulsar { animation: piscar 1.5s infinite !important; }
/* Badge compacto (para listas com vários chips numa linha só) */
.badge-xs { padding: 2px 8px; font-size: 11px; gap: 4px; }
.badge-xs i { font-size: 10px; }
.gap-8 { gap: 8px; }

/* ── Grid de boletos (listagem) ── */
.boleto-grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.boleto-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.boleto-grid thead th {
  background: var(--brand-blue-light); color: var(--brand-blue);
  font-weight: 700; text-align: left; padding: 11px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.boleto-grid tbody td {
  padding: 9px 12px; border-top: 1px solid var(--border);
  color: var(--text-primary); white-space: nowrap;
}
.boleto-grid tbody tr:hover { background: #F7FAFF; }
.boleto-grid th.sortable { cursor: pointer; user-select: none; }
.boleto-grid th.sortable:hover { background: #E3ECFF; }
.boleto-grid th .sort-ind { font-size: 11px; color: var(--brand-blue); }
.boleto-grid .text-right { text-align: right; }
.boleto-grid .celula-empresa { white-space: normal; min-width: 200px; max-width: 320px; }
.boleto-grid .celula-tipo { white-space: normal; min-width: 110px; max-width: 170px; }
.boleto-grid .celula-email { white-space: normal; min-width: 150px; max-width: 210px; word-break: break-all; }
.boleto-grid .celula-situacao { white-space: normal; min-width: 80px; max-width: 100px; }
.boleto-grid .celula-canal { white-space: normal; min-width: 90px; max-width: 130px; }
.boleto-grid .celula-situacao .status-badge { white-space: normal; }
.boleto-grid .grid-vazio { text-align: center; color: var(--text-muted); padding: 28px 12px; white-space: normal; }

/* Badges de situação do título */
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.status-a_vencer       { background: var(--brand-blue-light); color: var(--brand-blue); }
.status-vencido        { background: #FEF3F2; color: #C0392B; }
.status-quitado        { background: var(--brand-green-bg); color: var(--brand-green); }
.status-quitado_atraso { background: #FFF4E5; color: #B7791F; }
/* Situação da empresa */
.status-normal    { background: var(--brand-green-bg); color: var(--brand-green); }
.status-encerrada { background: #FEF3F2; color: #C0392B; }
/* Espelho de conciliação (Banco x EmpresaAtualiza) — destaque visual */
.empresa-espelho td, .empresa-espelho th { vertical-align: middle; }
.empresa-espelho .espelho-campo { font-weight: 600; color: var(--text-muted, #6b7688); }
.empresa-espelho .linha-alterada { background: #FEF3F2; }
.empresa-espelho .valor-alterado { color: #C0392B; font-weight: 700; }
.valor-alterado { color: #C0392B; font-weight: 700; }
/* Chevron do botão de filtros (empresas) */
.chevron-emp { transition: transform .2s ease; }
.chevron-emp.chevron-virado { transform: rotate(180deg); }

/* ── Dashboard ── */
/* Período exibido no cabeçalho apenas quando os filtros estão recolhidos */
.header-periodo { display: none; font-weight: 700; color: var(--brand-blue); font-size: 14px; white-space: nowrap; }
.header-periodo .bi { margin-right: 4px; }
.filtros-recolhidos .header-periodo { display: inline-flex; align-items: center; }
.filtros-recolhidos .dash-filtros { display: none; }
.gap-12 { gap: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px; border-left-width: 4px;
}
.kpi-link { display: block; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.kpi-link:hover {
  text-decoration: none; color: inherit; transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(27, 58, 107, .14);
}
.kpi-link:hover.kpi-card--total   { border-color: var(--brand-blue); }
.kpi-link:hover.kpi-card--pagos   { border-color: var(--brand-green); }
.kpi-link:hover.kpi-card--vencido { border-color: var(--accent-red); }
.kpi-link:hover.kpi-card--avencer { border-color: #B7791F; }
.kpi-card .bi-arrow-right-short { opacity: 0; transition: opacity .15s ease; }
.kpi-link:hover .bi-arrow-right-short { opacity: 1; }
.kpi-card--total   { border-left-color: var(--brand-blue); }
.kpi-card--pagos   { border-left-color: var(--brand-green); }
.kpi-card--vencido { border-left-color: var(--accent-red); }
.kpi-card--avencer { border-left-color: #B7791F; }
.kpi-label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .4px;
}
.kpi-valor {
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin-top: 6px; line-height: 1.1;
}
.kpi-sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* Cards de resumo dos Boletos Emitidos: 5 cards (mais compactos) e valores
   coloridos por recorte. */
.kpi-grid--boletos { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi-valor--vermelho { color: var(--accent-red); }
.kpi-valor--ambar { color: #B7791F; }
.kpi-valor--azul { color: var(--brand-blue); }
.kpi-valor--verde { color: var(--brand-green); }
.kpi-pct--pagos   { color: var(--brand-green); }
.kpi-pct--vencido { color: var(--accent-red); }
.kpi-pct--avencer { color: #B7791F; }
.dashboard-chart-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 16px;
}
.dashboard-chart-titulo {
  font-size: 13px; font-weight: 700; color: var(--brand-blue);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px;
}
.dashboard-chart-wrap { max-width: 280px; margin: 0 auto; }
.dashboard-chart-box { position: relative; height: 260px; width: 100%; }
.dashboard-chart-cabec { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-chart-cabec .dashboard-chart-titulo { margin-bottom: 14px; }
.btn-mapa-cheia, .btn-chart-cheia { white-space: nowrap; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
/* Card de gráfico em tela cheia (Fullscreen API) */
.dashboard-chart-card.chart-fs {
  background: #fff; padding: 22px 30px; display: flex; flex-direction: column; overflow: auto;
}
.dashboard-chart-card.chart-fs .dashboard-chart-cabec { flex: 0 0 auto; }
.dashboard-chart-card.chart-fs > canvas,
.dashboard-chart-card.chart-fs .dashboard-chart-wrap,
.dashboard-chart-card.chart-fs .dashboard-chart-box {
  flex: 1 1 auto; min-height: 0; max-width: none; width: 100%; height: auto;
}
.dashboard-chart-card.chart-fs .dashboard-chart-wrap { display: flex; align-items: center; justify-content: center; }
.dashboard-chart-card.chart-fs .chart-legenda { flex: 0 0 auto; }
.dashboard-mapa-wrap { position: relative; height: 480px; width: 100%; border-radius: var(--radius-md); overflow: hidden; }
/* Legenda do mapa (Leaflet) */
.mapa-legenda {
  background: rgba(255, 255, 255, .92); padding: 8px 10px; border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2); font-size: 11px; line-height: 1.6; color: var(--text-primary);
}
.mapa-legenda span { display: flex; align-items: center; gap: 6px; }
.mapa-legenda i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; opacity: .85; }
/* Painel de informações (balão fixo no canto, atualiza no hover) */
.mapa-info {
  background: rgba(255, 255, 255, .96); padding: 8px 12px; border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22); font-size: 12px; line-height: 1.35;
  color: var(--text-primary); min-width: 160px; max-width: 220px;
  border-left: 4px solid #b9c0cc; transition: border-color .15s;
}
.mapa-info--ativo { border-left-color: #1B3A6B; }
.mapa-info h6 { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--text-primary); }
.mapa-info b { font-size: 14px; color: #1B8A4B; }
.mapa-info-vazio { color: var(--text-muted, #8a93a3); font-size: 11px; }
.mapa-info-fil { margin-top: 3px; font-size: 11px; color: #1B3A6B; font-weight: 600; }
/* Rótulo de cidade sem arrecadação: nome sempre visível, com fundo discreto
   (a célula é quase transparente, então a pílula garante a legibilidade). */
.leaflet-tooltip.mapa-rotulo--sem {
  font-size: 10px; font-weight: 600;
  background: rgba(255, 255, 255, .82); color: #2a3340 !important;
  padding: 1px 5px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .12);
}
.leaflet-tooltip.mapa-rotulo--sem span { text-shadow: none !important; color: #2a3340 !important; }
.leaflet-container { font: inherit; }
/* Rótulo fixo das cidades que arrecadam (nome + valor) */
.leaflet-tooltip.mapa-rotulo {
  background: transparent; border: none; box-shadow: none;
  font-size: 10px; font-weight: 700; line-height: 1.15; text-align: center;
  padding: 0; white-space: nowrap; pointer-events: none;
}
.leaflet-tooltip.mapa-rotulo::before { display: none; border: none; }

/* Legenda externa do gráfico (valores e % fora do gráfico) */
.chart-legenda { list-style: none; margin: 16px 0 0; padding: 0; }
.chart-legenda li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 4px; border-top: 1px solid var(--border); font-size: 13px;
}
.chart-legenda li:first-child { border-top: none; }
.chart-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.chart-dot--pagos   { background: #1B8A4B; }
.chart-dot--vencido { background: #C0392B; }
.chart-dot--avencer { background: #B7791F; }
.chart-leg-nome { color: var(--text-primary); font-weight: 600; }
.chart-leg-valor { margin-left: auto; color: var(--text-primary); font-weight: 700; }
.chart-leg-pct {
  min-width: 56px; text-align: right; color: var(--text-muted);
  font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Overlay de carregamento (global) */
.app-loading {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: rgba(255, 255, 255, .68);
  display: none; align-items: center; justify-content: center;
}
.app-loading.ativo { display: flex; }
.app-loading-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-loading-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--brand-blue-light); border-top-color: var(--brand-blue);
  animation: app-spin .7s linear infinite;
}
.app-loading-box span { color: var(--brand-blue); font-weight: 700; font-size: 13px; }
@keyframes app-spin { to { transform: rotate(360deg); } }

/* Badge "Registrado": azul = Sim, vermelho = Não */
.badge-registrado {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge-registrado.reg-sim { background: var(--brand-blue-light); color: var(--brand-blue); }
.badge-registrado.reg-nao { background: #FEF3F2; color: #C0392B; }

/* Header clicável (recolher/mostrar filtros) com chevron giratório */
.card-header-toggle { cursor: pointer; user-select: none; transition: background .15s ease; }
.card-header-toggle:hover { background: #FAFBFE; }
.card-header-toggle:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -2px; }
.chevron-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-blue-light); color: var(--brand-blue); font-size: 16px;
  transition: transform .25s ease, background .15s ease; flex-shrink: 0;
}
.card-header-toggle:hover .chevron-toggle { background: #E3ECFF; }

/* Recolhido (modo agressivo): o card-header vira uma faixa fina, colada no topo,
   sobrando o máximo de área para o grid. */
.filtros-recolhidos .card-header { padding-top: 6px; padding-bottom: 6px; }
.filtros-recolhidos .card-header .section-icon-box,
.filtros-recolhidos .card-header .card-header-desc { display: none; }
.filtros-recolhidos .card-header .card-header-title { font-size: 14px; }
.filtros-recolhidos .chevron-toggle { transform: rotate(180deg); width: 28px; height: 28px; font-size: 14px; }

/* Abas (Arquivo Remessa) */
.nav-tabs-remessa { border-bottom: 2px solid var(--border); gap: 4px; }
.nav-tabs-remessa .nav-link {
  border: none; color: var(--text-muted); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-tabs-remessa .nav-link:hover { color: var(--brand-blue); background: transparent; }
.nav-tabs-remessa .nav-link.active {
  color: var(--brand-blue); background: transparent; border-bottom-color: var(--brand-blue);
}
.nav-tabs-remessa .badge-aba {
  background: var(--brand-blue-light); color: var(--brand-blue); font-size: 11px; font-weight: 700;
}
.nav-tabs-remessa .nav-link.active .badge-aba { background: var(--brand-blue); color: #fff; }

/* Campo de busca client-side do grid (só aparece quando há dados) */
.grid-busca { position: relative; margin-bottom: 12px; }
.grid-busca-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.grid-busca .form-control { padding-left: 36px; }

/* Contagem acima do grid */
.grid-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.grid-meta-total { font-weight: 700; color: var(--text-primary); }

/* Estado de carregamento (AJAX) */
#grid-container { transition: opacity .12s ease; }
#grid-container.grid-carregando { opacity: .45; pointer-events: none; }

/* Página larga: o card de listagem quebra a largura do container para usar a tela toda */
@media (min-width: 1200px) {
  .pagina-larga {
    width: calc(100vw - 48px);
    max-width: 1720px;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  /* Com a sidebar o container já é fluido (ocupa a área à direita do menu); o
     breakout pelo viewport (100vw) ignoraria a sidebar e desalinharia o card.
     Aqui ele apenas acompanha a largura do conteúdo, igual aos demais cards. */
  body.has-sidebar .pagina-larga {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
}

/* Botão de ação (editar) no grid */
.btn-editar-boleto {
  border: 1px solid var(--border); background: #fff; color: var(--brand-blue);
  border-radius: var(--radius-md); padding: 3px 9px; line-height: 1;
}
.btn-editar-boleto:hover { background: var(--brand-blue-light); border-color: var(--brand-blue); }

/* Formulário de edição (modal) */
.editar-acoes {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.editar-aviso { font-size: 13px; }
.label-editavel { color: var(--brand-blue); font-weight: 700; }
.label-editavel::after { content: " ✎"; font-weight: 400; }
#modal-editar .form-control[readonly] { background: #F4F6F9; color: var(--text-primary); }

/* ── Item de guia já gerada (lista) ── */
.guia-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.guia-item-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.guia-item-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 16px;
}
.guia-item-info > div { display: flex; flex-direction: column; }
.guia-campo-label {
  font-size: 11px; color: var(--brand-blue); font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}
.guia-campo-valor { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.guia-campo-valor--destaque { color: var(--brand-green); font-size: 16px; }

/* ── Gradient banners (dentro de card) ── */
.banner-blue {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 100%);
  padding: 28px 32px; position: relative; overflow: hidden;
}
.banner-green {
  background: linear-gradient(135deg, var(--brand-green) 0%, #15683D 100%);
  padding: 28px 32px; position: relative; overflow: hidden;
}
.banner-texture {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.banner-inner { position: relative; }
.banner-inner-flex { position: relative; display: flex; align-items: center; gap: 16px; }
.banner-icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: white; flex-shrink: 0;
}
.banner-title { font-family: 'Sora',sans-serif; font-size: 17px; font-weight: 700; color: white; margin: 0; line-height: 1.3; }
.banner-desc  { color: rgba(255,255,255,.75); font-size: 13px; margin: 4px 0 0; }
.banner-event-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 12px;
}
.banner-event-badge i    { color: rgba(255,255,255,.80); font-size: 12px; }
.banner-event-badge span {
  font-family: 'Sora',sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.80);
}
.banner-event-title {
  font-family: 'Sora',sans-serif; font-size: 22px; font-weight: 800;
  color: white; margin: 0; line-height: 1.3; word-break: break-word;
}
.banner-extra-text {
  padding: 16px 24px;
  background: var(--brand-blue-light);
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--brand-blue);
}

/* ── Date blocks (início / fim) ── */
.date-block { border-radius: var(--radius-md); padding: 20px 24px; }
.date-block--green { background: var(--brand-green-bg); border: 1px solid #B2DFC8; }
.date-block--red   { background: #FEF2F2; border: 1px solid #FECACA; }
.date-block-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.date-block-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; flex-shrink: 0;
}
.date-block-icon--green { background: var(--brand-green); }
.date-block-icon--red   { background: #C0392B; }
.date-block-label { font-family: 'Sora',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.date-block-label--green { color: var(--brand-green); }
.date-block-label--red   { color: #C0392B; }
.date-block-value { font-family: 'Sora',sans-serif; font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; }
.date-block-value--green { color: var(--brand-green); }
.date-block-value--red   { color: #C0392B; }
.date-block-time  { font-size: 14px; color: var(--text-secondary); margin: 4px 0 0; }

/* ── Notice boxes ── */
.notice { border-radius: var(--radius-md); padding: 20px 24px; display: flex; align-items: flex-start; gap: 14px; }
.notice--green   { background: var(--brand-green-bg); border: 1px solid #B2DFC8; }
.notice--red     { background: #FEF2F2; border: 1px solid #FECACA; }
.notice--warning { background: #FEF3F2; border: 1px solid #FECACA; }
.notice--center  { align-items: center; }
.notice-icon         { flex-shrink: 0; margin-top: 1px; }
.notice-icon--red    { color: #C0392B; font-size: 22px; }
.notice-icon--clock  { color: #C0392B; font-size: 28px; }
.notice-icon--check  { color: var(--brand-green); font-size: 28px; }
.notice-title        { font-family: 'Sora',sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.notice-title--red   { color: #991B1B; }
.notice-title--green { color: var(--brand-green); }
.notice-body         { font-size: 14px; color: #7F1D1D; margin: 0; line-height: 1.7; }
.notice-text--closed { font-family: 'Sora',sans-serif; font-size: 16px; font-weight: 700; color: #991B1B; margin: 0; line-height: 1.5; }

/* ── Alert info blue ── */
.alert-info-blue {
  background: var(--brand-blue-light); border: 1px solid #C0D4EF;
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 15px; color: var(--brand-blue); margin-bottom: 0;
}

/* ── Lock notice (evento não iniciado) ── */
.notice-lock {
  display: flex; align-items: center; gap: 10px;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--radius-sm); padding: 12px 20px;
  font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 600; color: #991B1B;
}
.notice-lock i { font-size: 16px; }

/* ── Success notice (conclusão) ── */
.success-notice {
  background: var(--brand-green-bg); border: 1px solid #B2DFC8;
  border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 24px;
}
.success-notice-inner { display: flex; gap: 16px; align-items: flex-start; }
.success-notice-icon  { font-size: 28px; color: var(--brand-green); flex-shrink: 0; margin-top: 2px; }
.success-notice-title { font-size: 16px; font-weight: 600; color: var(--brand-green); font-family: 'Sora',sans-serif; margin-bottom: 6px; }
.success-notice-body  { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ── Confirmed list ── */
.confirmed-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 8px; }
.confirmed-list-item { padding: 12px 20px; display: flex; align-items: center; gap: 10px; }
.confirmed-list-item + .confirmed-list-item { border-top: 1px solid var(--border); }
.confirmed-list-icon { color: var(--brand-green); font-size: 16px; flex-shrink: 0; }
.confirmed-list-name { font-size: 15px; font-weight: 500; color: var(--text-primary); }

/* ── Person list (convites) ── */
.person-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.person-list-item { padding: 13px 20px; display: flex; align-items: center; gap: 12px; }
.person-list-item + .person-list-item { border-top: 1px solid var(--border); }
.person-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue); font-size: 14px; flex-shrink: 0;
}
.person-name { font-size: 15px; font-weight: 500; color: var(--text-primary); }
a.person-list-item { color: inherit; text-decoration: none; transition: background .15s ease; }
a.person-list-item:hover { background: var(--brand-blue-light); color: inherit; text-decoration: none; }

/* ── Filiação empresa (lista de botões clicáveis) ── */
.filiacao-empresa-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.filiacao-empresa-list .empty-state { grid-column: 1 / -1; }
.filiacao-empresa-list form { display: flex; }
.filiacao-empresa-item {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; font: inherit; text-align: left;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.filiacao-empresa-item:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue-mid);
  box-shadow: var(--shadow-md);
}
.filiacao-empresa-chevron { margin-left: auto; color: var(--text-muted); font-size: 14px; }
@media (min-width: 768px) {
  .filiacao-empresa-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── Botão transparente que torna todo o card clicável (POST) ── */
.card-submit-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 1;
}

/* ── Cards clicáveis de dependência/local/tipo (locação) ── */
.dependencia-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  border-color: var(--border);
}
.dependencia-card .card-body,
.dependencia-card .card-title,
.dependencia-card .card-title i,
.dependencia-card .card-text,
.dependencia-card .card-text small,
.dependencia-card .card-text small i,
.dependencia-card .section-icon-box {
  transition: background .18s ease, color .18s ease;
}
.dependencia-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(27,58,107,.28),
    0 6px 14px rgba(27,58,107,.18);
  border-color: var(--brand-blue);
}
.dependencia-card:hover .card-body { background: var(--brand-blue); }

/* Texto secundário dentro dos cards: tipografia mais legível em ambos os estados */
.dependencia-card .card-title { color: var(--brand-blue); font-weight: 700; }
.dependencia-card .card-text { color: var(--text-secondary); font-size: 14px; margin-bottom: .5rem; line-height: 1.5; }
.dependencia-card .card-text small,
.dependencia-card .card-text small.text-muted {
  color: var(--text-primary) !important;
  font-size: 13px; font-weight: 600;
}

.dependencia-card:hover .card-title,
.dependencia-card:hover .card-title i,
.dependencia-card:hover .card-text,
.dependencia-card:hover .card-text small,
.dependencia-card:hover .card-text small i,
.dependencia-card:hover .card-text small.text-muted { color: #fff !important; }
.dependencia-card:hover .section-icon-box {
  background: rgba(255,255,255,.18); color: #fff;
}

/* ── Calendário de locação ── */
.calendar-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px 20px;
  box-shadow: var(--shadow-sm); max-width: 720px; margin: 0 auto 16px;
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.calendar-title {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--brand-blue); margin: 0; text-transform: capitalize;
}
.calendar-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-blue); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.calendar-nav-btn:hover { background: var(--brand-blue-light); border-color: var(--brand-blue-mid); }
.calendar-nav-btn:disabled,
.calendar-nav-btn[disabled] {
  opacity: .35; cursor: not-allowed;
  background: var(--surface); border-color: var(--border); color: var(--text-muted);
}
.calendar-nav-btn:disabled:hover,
.calendar-nav-btn[disabled]:hover { background: var(--surface); border-color: var(--border); }
.calendar-nav-btn i { font-size: 14px; }
.calendar-dow-row, .calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.calendar-dow {
  text-align: center; font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); padding: 6px 0;
}
.calendar-grid { margin-top: 4px; }
.calendar-footer {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  min-height: 56px; padding: 4px;
}
.calendar-day--out { opacity: .35; }
.calendar-day--unavailable { color: var(--text-muted); }
.calendar-day--available {
  background: var(--brand-blue-light); color: var(--brand-blue);
  border-color: #C0D4EF; cursor: pointer;
}
.calendar-day--available:hover {
  background: var(--brand-blue); color: white; border-color: var(--brand-blue);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  text-decoration: none;
}
.calendar-day--today {
  border-color: var(--brand-blue-mid); border-width: 2px;
}
.calendar-day-num { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; line-height: 1; }
.calendar-day-info { font-size: 10px; font-weight: 600; opacity: .9; margin-top: 4px; line-height: 1; }

.calendar-legend {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted); margin-top: 16px;
}
.calendar-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
}
.calendar-legend-dot--available { background: var(--brand-blue-light); border: 1px solid #C0D4EF; }
.calendar-legend-dot--today { background: var(--surface); border: 2px solid var(--brand-blue-mid); }

@media (max-width: 575.98px) {
  .calendar-wrap { padding: 14px; }
  .calendar-day { min-height: 44px; font-size: 12px; }
  .calendar-day-num { font-size: 13px; }
  .calendar-day-info { display: none; }
}

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 40px; display: block; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 600; margin: 0; }

/* ── Search card variante limpa ── */
.search-card--clean { padding: 0; border: none; box-shadow: none; background: transparent; }

/* ── Buttons extras ── */
.btn-green  { background: var(--brand-green) !important; color: white !important; box-shadow: 0 2px 8px rgba(26,127,75,.28); }
.btn-green:hover { background: #15683D !important; }
.btn-red    { background: #C0392B !important; color: white !important; }
.btn-neutral{ background: var(--bg) !important; color: var(--text-secondary) !important; border: 1px solid var(--border) !important; }

/* ── Button icon helper ── */
.btn-icon { font-size: 15px; margin-right: 8px; vertical-align: -2px; }

/* ── Button actions gap ── */
.btn-actions { gap: 12px; }

/* ── Form utilities ── */
.label-nowrap    { white-space: nowrap; }
.empresa-display { background: #F8FAFC; color: var(--text-secondary); cursor: default; }
.text-terms      { font-size: 16px; line-height: 1.7; color: var(--text-secondary); }

/* ── Gap utilities ── */
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── Data table (dependentes / listagens) ── */
.data-table { font-size: 14px; }
.data-table thead tr { background: var(--brand-blue-light); }
.data-table thead th { border-top: none; color: var(--brand-blue); font-family: 'Sora',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; vertical-align: middle; }
.data-table td.td-secondary { color: var(--text-secondary); }
.data-table td.td-center { text-align: center; }
.data-table a.link-primary-data { color: var(--brand-blue-mid); font-weight: 600; text-decoration: none; }
.data-table a.link-secondary-data { color: var(--text-secondary); text-decoration: none; }

/* ── Btn danger small ── */
.btn-danger-sm { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; font-family: 'Sora',sans-serif; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); }

/* ── Modal custom ── */
.modal-content-custom { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header-custom { border-bottom: 1px solid var(--border); padding: 20px 24px; }
.modal-body-custom { padding: 20px 24px; color: var(--text-secondary); font-size: 14px; }
.modal-footer-custom { border-top: 1px solid var(--border); padding: 16px 24px; gap: 8px; }
.modal-icon-box { width: 36px; height: 36px; border-radius: 8px; background: #FEF2F2; display: flex; align-items: center; justify-content: center; color: #C0392B; font-size: 18px; }
.modal-title-custom { font-family: 'Sora',sans-serif; font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; }
.modal-close-custom { color: var(--text-muted); }

/* ── Form column flex ── */
.form-flex-col { display: flex; flex-direction: column; gap: 12px; }

/* ── Signature aviso ── */
.assinatura-aviso { display: flex; align-items: center; gap: 10px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; color: #991B1B; font-family: 'Sora',sans-serif; font-weight: 600; }
.assinatura-aviso i { font-size: 16px; flex-shrink: 0; }

/* ── Filiado info text ── */
.filiado-info-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* ── Form check custom ── */
.form-check-custom-input { width:18px; height:18px; margin-top:2px; accent-color:var(--brand-blue-mid); cursor:pointer; }
.form-check-custom-label { font-family:'Source Sans 3',sans-serif; font-size:15px; font-weight:500; color:var(--text-primary); cursor:pointer; text-transform:none; letter-spacing:0; }

/* ── SMS resend link ── */
.sms-link { color: var(--brand-blue-mid); font-weight: 600; text-decoration: none; }
.sms-link:hover { text-decoration: underline; }

/* ── Notice spacing modifier ── */
.notice--mb { margin-bottom: 24px; }

/* ── Alert small (inline validation) ── */
.alert-sm { font-size: 13px; }

/* ── Green price badge ── */
.price-badge-green { background: var(--brand-green-bg); border: 1px solid #B2DFC8; padding: 6px 16px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px; }
.price-badge-green i { color: var(--brand-green); font-size: 14px; }
.price-badge-green span { font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 700; color: var(--brand-green); }

/* ── Notice icon large ── */
.notice-icon--gear { font-size: 24px; margin-top: 2px; color: #C0392B; }

/* ── Convite info box ── */
.convite-info-box { gap: 12px; margin-bottom: 20px; border-radius: var(--radius-md); }
.convite-info-icon { color: var(--brand-blue); font-size: 20px; flex-shrink: 0; }
.convite-info-name { font-family: 'Sora',sans-serif; font-size: 16px; font-weight: 700; color: var(--brand-blue); margin: 0; }
.convite-info-status { font-size: 13px; color: var(--brand-green); font-weight: 600; margin: 4px 0 0; }

/* ── Notice body text ── */
.notice-body-text { font-size: 15px; margin: 0; color: var(--text-secondary); }
.notice-title-line { line-height: 1.6; margin: 0 0 4px; }
.notice-highlight { font-family: 'Sora',sans-serif; font-weight: 700; }

/* ── Person list margin ── */
.person-list--mb { margin-bottom: 20px; }
.person-list--sm-mb { margin-bottom: 8px; }

/* ── Form check padding ── */
.form-check--padded { padding-left: 28px; }

/* ── Person avatar square variant ── */
.person-avatar--square { border-radius: 8px !important; }

/* ── Criteria label/value ── */
.criteria-label { color: var(--text-muted); margin: 0 0 2px; font-size: 13px; }
.criteria-value { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0; }

/* ── Badge situacao static (blue) ── */
.badge-situacao--blue { background: var(--brand-blue-light); color: var(--brand-blue); border: 1px solid #C0D4EF; box-shadow: none; animation: none; }
.badge-situacao--blue i { font-size: 12px; }

/* ── Person list item column ── */
.person-list-item--col { flex-direction: column; align-items: flex-start; }
.person-list-item--col .d-flex { margin-bottom: 10px; }

/* ── Tag list (badges row) ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 44px; }

/* ── Termo content scroll box ── */
.termo-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); max-height: 360px; overflow-y: auto; }

/* ── Alert info box row ── */
.alert-info-row { gap: 14px; margin-bottom: 24px; border-radius: var(--radius-md); }

/* ── Termo accept label ── */
.termo-accept-label { font-family: 'Sora',sans-serif; font-size: 15px; font-weight: 600; color: var(--brand-blue); margin: 0; cursor: pointer; line-height: 1.4; }

/* ── Flex shrink zero ── */
.flex-shrink-0 { flex-shrink: 0; }

/* ── Convite person label ── */
.convite-person-label { margin: 0; cursor: pointer; }

/* ── QR code reader container ── */
.qr-reader { width: 280px; }

/* ── Convite (ticket) ── */
.convite-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 100%);
  padding: 36px 24px 28px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; position: relative; overflow: hidden; text-align: center;
}
.convite-photo-row { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; }
.convite-photo-circle {
  width: 148px; height: 148px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.50);
  box-shadow: 0 8px 28px rgba(0,0,0,.30);
  overflow: hidden; flex-shrink: 0; position: relative;
}
.convite-photo-img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.convite-event-img-wrap {
  border-radius: var(--radius-md);
  border: 3px solid rgba(255,255,255,.30);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  overflow: hidden; max-width: 220px; width: 100%;
}
.convite-event-img { width: 100%; height: auto; display: block; }
.convite-info-row { position: relative; z-index: 1; text-align: center; width: 100%; }
.convite-name {
  font-family: 'Sora',sans-serif; font-size: 22px; font-weight: 800;
  color: white; margin: 0; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.convite-badge-matricula {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 5px 16px; margin: 10px 0 0;
}
.convite-badge-matricula i  { color: white; font-size: 13px; }
.convite-badge-matricula span { font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 700; color: white; letter-spacing: .02em; }
.convite-modulo { font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.90); margin: 8px 0 0; line-height: 1.4; }
.convite-data   { font-family: 'Sora',sans-serif; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.90); margin: 8px 0 0; }
.convite-data i { margin-right: 6px; }
.convite-qr-section { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 20px; }
.convite-qr-box { background: white; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); display: inline-block; }
.convite-qr-label { font-family: 'Sora',sans-serif; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.convite-status {
  background: var(--brand-green-bg); border: 1px solid #B2DFC8;
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
.convite-status--mb { margin-bottom: 20px; }
.convite-status-icon  { color: var(--brand-green); font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.convite-status-title { font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 700; color: var(--brand-green); margin: 0; }
.convite-status-title--mb { margin: 0 0 4px; }
.convite-status-body  { font-size: 13px; color: var(--text-secondary); margin: 0; }
.convite-companions { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.convite-companion-item { padding: 11px 18px; display: flex; align-items: center; gap: 10px; }
.convite-companion-item + .convite-companion-item { border-top: 1px solid var(--border); }
.convite-companion-icon { color: var(--brand-blue-mid); font-size: 15px; flex-shrink: 0; }
.convite-companion-name { font-size: 15px; font-weight: 500; color: var(--text-primary); }
.convite-buttons { gap: 12px; justify-content: center; }
.btn-whatsapp {
  background: #25D366 !important; color: white !important;
  box-shadow: 0 2px 8px rgba(37,211,102,.28);
}
.btn-whatsapp i, .btn-download i, .btn-neutral i { font-size: 16px; margin-right: 8px; vertical-align: -2px; }

/* ── Webcam photo capture ── */
#video  { width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
#photo  { width: 100%; height: auto; border-radius: var(--radius-md); display: block; background: #EAECF0; }
#canvas { display: none; }
.camera, .output { width: 100%; display: inline-block; }
#startbutton {
  display: block; width: 100%; margin-top: 12px; padding: 10px;
  background: var(--brand-blue-mid); color: white;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
#startbutton:hover { background: var(--brand-blue); }
.contentarea { font-size: 16px; font-family: Arial; text-align: center; }
.bold-input   { font-weight: bold; }

/* ── Banner badge content (diretoria / evento) ── */
.banner-badge-icon { color: white; font-size: 12px; }
.banner-badge-text { font-family: 'Sora',sans-serif; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); }

/* ── Notice extra variants ── */
.notice-icon--green   { color: var(--brand-green); font-size: 22px; flex-shrink: 0; }
.notice-body--default { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.7; }

/* ── Vote candidate option ── */
.vote-option { display:flex; align-items:center; gap:14px; padding:14px 18px; border:1px solid var(--border); border-radius:var(--radius-md); cursor:pointer; transition:border-color var(--transition),background var(--transition); margin-bottom:8px; }
.vote-option:last-child { margin-bottom:0; }
.vote-option:hover      { border-color:var(--brand-blue-mid); background:var(--brand-blue-light); }
.vote-option input[type=radio] { width:18px; height:18px; accent-color:var(--brand-blue-mid); flex-shrink:0; cursor:pointer; }
.vote-option-name { font-family:'Sora',sans-serif; font-size:15px; font-weight:600; color:var(--text-primary); flex:1; }

/* ── Vote receipt / comprovante ── */
.receipt-list { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.receipt-item { padding:13px 20px; display:flex; align-items:flex-start; gap:14px; }
.receipt-item + .receipt-item { border-top:1px solid var(--border); }
.receipt-icon  { color:var(--brand-blue-mid); font-size:17px; flex-shrink:0; margin-top:2px; }
.receipt-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-bottom:2px; }
.receipt-value { font-size:15px; font-weight:600; color:var(--text-primary); margin:0; }
/* ── Login da Cobrança ── */
.login-cobranca {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-card-top {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 100%);
  padding: 16px 32px 14px;
  text-align: center;
  color: #FFFFFF;
}
.login-card-top .login-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  background: rgba(255,255,255,.14);
  color: #FFFFFF;
}
.login-card-top h1 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #FFFFFF;
}
.login-card-top p {
  font-size: 13px;
  margin: 0;
  color: rgba(255,255,255,.78);
}
.login-card-body { padding: 18px 32px 20px; }
.login-field { position: relative; }
.login-field .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 17px;
  pointer-events: none;
}
.login-field .form-control { padding-left: 42px; }
.login-card-body .form-control { height: 46px; }
.btn-login {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-mid);
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  margin-top: 6px;
}
.btn-login:hover { background: var(--brand-blue); box-shadow: var(--shadow-md); }
.btn-login i { font-size: 18px; }
.login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-foot i { color: var(--brand-green); font-size: 14px; }

/* ── Badge do módulo no topo (cobrança) ── */
.modulo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.modulo-badge i { font-size: 15px; }

/* Rótulo divisor de seção dentro de formulários */
.section-divider-label {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-blue-mid);
  margin: 18px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}

/* Iframe do boleto (resultado da geração) */
.boleto-frame {
  width: 100%; min-height: 860px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
}
@media print {
  body * { visibility: hidden; }
  #boletoframe, #boletoframe * { visibility: visible; }
  #boletoframe { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}

/* Logo encostada à esquerda (largura natural) e bloco do módulo à direita
   (largura natural); o nome da entidade ocupa todo o espaço central e fica
   centralizado entre os dois, quebrando em mais linhas quando for longo. */
.layout-cobranca .navbar-brand { flex: 0 0 auto; }
.layout-cobranca .navbar-brand-info { flex: 0 1 auto; }
.navbar-entidade {
  flex: 1 1 auto; min-width: 0;
  padding: 0 16px; text-align: center;
  color: #FFFFFF; font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 16px; line-height: 1.25; letter-spacing: .01em;
  overflow-wrap: anywhere;
}
@media (max-width: 991px) {
  .navbar-entidade { display: none; }  /* evita sobreposição com logo/módulo */
}
/* Aplicada por script no base.html quando a logomarca larga toma o espaço
   central: melhor sumir do que espremer o nome em coluna estreita. */
.navbar-entidade.entidade-oculta { display: none; }

/* Pulso contínuo da logo (com brilho) somente nas telas de login */
@keyframes logo-pulsar-loop {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .8)); }
}
body.login-cobranca-page .navbar-brand img {
  animation: logo-pulsar-loop 1.8s ease-in-out infinite;
}

/* Alerta inline no topo do formulário de empresa (modal) */
.empresa-alert:not(:empty) { margin-bottom: 14px; }
.empresa-alert .alert { margin-bottom: 0; }

/* Mapa Anual de Arrecadação (empresa × meses) */
.mapa-grid { border-collapse: collapse; }
.mapa-grid th, .mapa-grid td { white-space: nowrap; border: 1px solid var(--border); }
.mapa-grid td.text-right, .mapa-grid th.text-right { font-variant-numeric: tabular-nums; }
.mapa-grid thead th { border-color: var(--brand-blue-mid); }
.mapa-grid .mapa-total-col { font-weight: 700; color: var(--brand-blue); background: var(--brand-blue-light); }
.mapa-grid tfoot .mapa-totais td { font-weight: 700; border-top: 2px solid var(--brand-blue-mid); background: #FAFBFD; }
.mapa-grid tfoot .mapa-totais .mapa-total-col { color: var(--brand-green); background: var(--brand-green-bg); }

/* ── Arquivos do evento (manutenção da votação): itens em cartão ── */
.arquivos-lista { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }

.arquivo-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FBFCFE;
  padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.arquivo-card:hover { border-color: var(--brand-blue-mid, #9DB6E0); box-shadow: 0 2px 10px rgba(27, 58, 107, .06); }

.arquivo-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.arquivo-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: #E3ECFF; color: var(--brand-blue);
  font-size: 14px;
}
.arquivo-num--novo { background: #E6F7EE; color: var(--brand-green, #1F9D57); }

.arquivo-card-titulo { font-weight: 600; color: var(--text-primary, #1B2A4A); min-width: 0; }

.arquivo-card-acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.arquivo-excluir {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-red, #D92D20); font-size: 13px; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; background: #FEF3F2;
}
.arquivo-excluir:hover { background: #FEE4E2; }

/* ── Importação de votantes (aba "Importar listas" da votação) ── */
.import-spinner { width: 2.5rem; height: 2.5rem; }
.import-grid-wrap { max-height: 380px; overflow: auto; }
.import-grid th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.import-grid .import-col-select { min-width: 150px; }

/* Coluna "Votou" (Votantes Cadastrados): badge maior que o texto do grid */
.badge-votou { font-size: 14px; font-weight: 700; padding: .35em .7em; letter-spacing: .4px; }

/* Nome do usuário conectado (header da votação): destaque + pulsar */
.usuario-logado {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #E3ECFF;
  padding: 5px 14px;
  border-radius: 999px;
  gap: 6px;
  animation: usuario-pulse 1.8s ease-in-out infinite;
}
.usuario-logado i { font-size: 17px; }
/* No topo (navbar) o bloco da direita não pode encolher abaixo do conteúdo
   (senão a pílula vaza sobre o nome da entidade ao centro): largura própria
   limitada e textos truncados com reticências (.text-truncate no template). */
.layout-cobranca .navbar-brand-info { flex: 0 0 auto; min-width: auto; max-width: 340px; }
.navbar .usuario-logado { white-space: nowrap; font-size: 13px; max-width: 100%; }
.navbar .usuario-logado i { font-size: 15px; flex-shrink: 0; }
.layout-cobranca .navbar-brand-info .modulo-badge { max-width: 100%; }
.layout-cobranca .navbar-brand-info .modulo-badge i { flex-shrink: 0; }
@keyframes usuario-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 58, 107, .40); }
  50%      { box-shadow: 0 0 0 7px rgba(27, 58, 107, 0); }
}
@media (prefers-reduced-motion: reduce) { .usuario-logado { animation: none; } }

/* ── Dashboard da votação: apuração por evento (gráficos) ── */
.apuracao-evento-sel { min-width: 280px; }
.apuracao-pergunta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.apuracao-pergunta-titulo { font-weight: 700; color: var(--brand-blue); margin-bottom: 10px; }
.apuracao-canvas-wrap { position: relative; width: 100%; height: 320px; }
@media (max-width: 575.98px) { .apuracao-evento-sel { min-width: 100%; } }

/* Tabela de apuração (dashboard): bolinhas de cor da paleta + linha total */
.apuracao-cor { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.apuracao-cor-0 { background: #1B3A6B; } .apuracao-cor-1 { background: #1F9D57; }
.apuracao-cor-2 { background: #D92D20; } .apuracao-cor-3 { background: #B7791F; }
.apuracao-cor-4 { background: #6C5CE7; } .apuracao-cor-5 { background: #0EA5A5; }
.apuracao-cor-6 { background: #E8590C; } .apuracao-cor-7 { background: #2D6CDF; }
.apuracao-cor-8 { background: #C026D3; } .apuracao-cor-9 { background: #0F766E; }
.apuracao-tabela { max-width: 520px; }
.apuracao-tabela-total th, .apuracao-tabela-total td { font-weight: 700; border-top: 2px solid var(--brand-blue-mid, #9DB6E0); background: #FAFBFD; }

/* Votantes da Diretoria: realce verde sutil na linha */
.boleto-grid tbody tr.linha-diretoria { background: #ECFDF3; }
.boleto-grid tbody tr.linha-diretoria:hover { background: #D1FADF; }

/* Seletor de tipo de gráfico (dashboard) */
.apuracao-tipo-sel { width: auto; min-width: 160px; }
