@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
  }

  #popupBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2a9f46;
    color: white;
    padding: 12px 20px;
    border-radius: 35px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    z-index: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2.5s infinite;
    transition: background-color 0.3s;
  }

  #popupBtn:hover {
    background-color: #1e7e34;
  }

  #popupBtn .icon {
    background: white;
    color: #2a9f46;
    border-radius: 50%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #formPopup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 420px;
    height: 620px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 12px;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #formPopup iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  #closePopup {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
  }

  #closePopup:hover {
    color: #000;
  }

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}
.video-card {
  text-align: center;
  max-width: 220px;
}
.video-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  border: 2px solid #ddd;
  transition: transform 0.2s;
}
.video-card img:hover {
  transform: scale(1.05);
  border-color: #004085;
}
.video-card h4 {
  margin-top: 8px;
  color: #004085;
  font-size: 16px;
  font-weight: bold;
}
/* Layout geral dos balancetes */
.balancetes-2025-wrapper {
    max-width: 980px;
    margin: 24px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-family: var(--primary-font, "Roboto", sans-serif);
}

.balancetes-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 18px 20px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    flex: 1 1 360px;
}

/* Borda de destaque no topo */
.balancetes-card.receita {
    border-top: 5px solid #2563eb; /* azul */
}

.balancetes-card.despesa {
    border-top: 5px solid #16a34a; /* verde */
}

/* Cabeçalhos */
.balancetes-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.balancetes-card-title {
    margin: 0;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0f172a;
}

.balancetes-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #4b5563;
    background: #f9fafb;
    white-space: nowrap;
}

.balancetes-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #4b5563;
}

/* Lista de meses */
.balancetes-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balancetes-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
}

.balancetes-item-titulo {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.balancetes-item-tipo {
    font-size: 12px;
    color: #6b7280;
}

/* Botões */
.balancetes-btn {
    font-size: 12px;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 500;
}

.balancetes-btn.receita {
    background: #2563eb;
}

.balancetes-btn.despesa {
    background: #16a34a;
}

/* TEMPLATE PLANO PLURIANUAL*/
.ppa-wrap{max-width:980px;margin:0 auto}
.ppa-title{margin:0 0 14px;font-size:22px;line-height:1.25}

.ppa-grid{display:flex;flex-wrap:wrap;gap:12px}
.ppa-card{
  flex:1 1 280px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.ppa-card h4{margin:0 0 10px;font-size:16px}

.ppa-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  background:#0ea5e9;
  color:#fff !important;
  padding:10px 12px;
  border-radius:10px;
  font-weight:700;
}
.ppa-btn:hover{filter:brightness(.95)}
/* FIM TEMPLATE*/