:root {
  /* Paleta verde-lima */
  --cor-fundo: #F5F9EA;          /* creme esverdeado */
  --cor-texto: #1F2A17;          /* verde quase preto */
  --cor-topo: #1E3A1C;           /* verde floresta: barra do topo e menu */
  --cor-lima: #A4D233;           /* verde-lima: botões e destaques */
  --cor-lima-hover: #93C024;
  --cor-lima-escura: #4A7512;    /* verde-lima escuro: números/preços sobre branco */
  --cor-lima-clara: #ECF5D3;     /* fundo de cabeçalhos e seleção */
  --cor-secundaria: #2A7866;     /* verde-azulado: botões secundários */
  --cor-alerta: #A15F00;         /* âmbar: estoque baixo */
  --cor-alerta-clara: #FFF3D9;   /* âmbar claro: linhas em aberto */
  --cor-perigo: #B3392E;         /* vermelho: excluir/cancelada */
  --cor-borda: #DCE7C2;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/inter-700.woff2") format("woff2");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select { font-family: inherit; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--cor-fundo);
  color: var(--cor-texto);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cor-topo);
  color: white;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { font-size: 1.3em; font-weight: bold; color: white; text-decoration: none; }
.topbar nav a {
  color: white;
  text-decoration: none;
  margin-left: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.topbar nav a:hover { background: rgba(255,255,255,0.15); }
.topbar nav a.ativo { background: var(--cor-lima); color: var(--cor-texto); }

.conteudo { padding: 20px; max-width: 1200px; margin: 0 auto; }

h1 { margin-top: 0; }

/* PDV */
.pdv { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.pdv-produtos {
  flex: 2;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.produto-card {
  background: white;
  border: 2px solid var(--cor-borda);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s, border-color 0.15s;
  user-select: none;
}
.produto-card:hover { border-color: var(--cor-lima); transform: translateY(-2px); }
.produto-card:active { transform: translateY(0); }
.produto-card .nome { font-weight: 700; margin-bottom: 6px; }
.produto-card .preco { color: var(--cor-lima-escura); font-weight: 700; }
.produto-card .estoque { font-size: 0.8em; color: #888; margin-top: 4px; }
.produto-card.sem-estoque { opacity: 0.4; cursor: not-allowed; }
.produto-card.estoque-baixo .estoque { color: var(--cor-alerta); font-weight: 700; }

.carrinho {
  flex: 1;
  min-width: 280px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 16px;
}
.carrinho h2 { margin-top: 0; }
#lista-carrinho { list-style: none; padding: 0; margin: 0; }
#lista-carrinho li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--cor-borda);
}
#lista-carrinho .item-controles { display: flex; align-items: center; gap: 6px; }
#lista-carrinho button.qtd-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ccc;
  background: #f5f5f5; cursor: pointer; font-weight: bold;
}
.carrinho-total { font-size: 1.2em; margin: 14px 0; text-align: right; }
.vazio { color: #999; font-style: italic; }

.pagamento { margin: 12px 0; }
.pagamento label { display: block; margin-bottom: 6px; font-weight: 600; }
.formas-pagamento { display: flex; gap: 8px; }
.fp-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: 2px solid var(--cor-borda);
  background: var(--cor-fundo); cursor: pointer; font-weight: 600;
}
.fp-btn.selecionada { border-color: var(--cor-lima-escura); background: var(--cor-lima-clara); }

.btn-primario {
  width: 100%; padding: 12px; background: var(--cor-lima); color: var(--cor-texto); border: none;
  border-radius: 8px; font-size: 1.05em; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.btn-primario:hover { background: var(--cor-lima-hover); }
.btn-primario:disabled { background: #DDE8C6; color: #7D8A6E; cursor: not-allowed; }
.btn-secundario {
  width: 100%; padding: 10px; background: white; color: var(--cor-secundaria); border: 2px solid var(--cor-secundaria);
  border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 8px;
}

/* Estoque */
.form-produto {
  display: flex; flex-wrap: wrap; gap: 14px; background: white; padding: 16px;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px;
}
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo label { font-size: 0.85em; font-weight: 600; color: #666; }
.campo input, .campo select {
  padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1em;
  font-family: inherit; background: white;
}
.campo select { min-width: 160px; }
.dica-campo { color: #999; font-size: 0.78em; }
.campo-botoes { flex-direction: row; align-items: flex-end; gap: 10px; }
.campo-botoes button { width: auto; padding: 10px 18px; margin-top: 0; }

.tabela { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; }
.tabela th, .tabela td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--cor-borda); }
.tabela th { background: var(--cor-lima-clara); }
.tabela tr.linha-baixa { background: var(--cor-alerta-clara); }
/* Botões de ação dentro das tabelas: mesmo tamanho, alinhados numa linha */
.tabela .acoes { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.tabela button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; padding: 0 12px; margin: 0;
  border: 1px solid var(--cor-borda); border-radius: 8px; background: white;
  color: var(--cor-texto); font-size: 0.85em; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tabela button:hover { background: var(--cor-lima-clara); border-color: var(--cor-lima-escura); }
.tabela button.btn-destaque { background: var(--cor-lima-clara); border-color: var(--cor-lima); }
.tabela button.btn-destaque:hover { background: var(--cor-lima); border-color: var(--cor-lima-escura); }
.tabela button.excluir { color: var(--cor-perigo); border-color: #EFCFCB; }
.tabela button.excluir:hover { background: #FBE9E7; border-color: var(--cor-perigo); }
.tabela button.so-icone { width: 34px; padding: 0; }
.tabela button.editar { color: var(--cor-secundaria); }
.tabela button svg { flex-shrink: 0; }
.tabela button .rotulo-acao { display: none; }

/* Caixa */
.filtro-data { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.filtro-data input { padding: 8px; border-radius: 6px; border: 1px solid #ddd; }
.filtro-data button { width: auto; }
.cards-resumo { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.card-resumo {
  background: white; border-radius: 12px; padding: 16px 20px; min-width: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card-resumo .valor { font-size: 1.5em; font-weight: 700; color: var(--cor-lima-escura); }
.card-resumo .rotulo { color: #777; font-size: 0.9em; }
.badge-cancelada { color: var(--cor-perigo); font-weight: 600; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--cor-topo); color: white; padding: 12px 20px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.toast.mostrar { opacity: 1; }

.barra-fixa { display: none; }

/* Fichas (crédito pré-pago) */
.formas-pagamento { flex-wrap: wrap; }
.fp-btn { min-width: calc(50% - 4px); }
.painel-ficha { margin: 4px 0 12px; }
.painel-ficha input {
  width: 100%; padding: 10px; border: 2px solid var(--cor-borda); border-radius: 8px; font-size: 1em;
}
.painel-ficha input:focus { outline: none; border-color: var(--cor-lima-escura); }
.resultados-ficha { list-style: none; padding: 0; margin: 6px 0 0; }
.resultados-ficha li { margin-bottom: 4px; }
.resultados-ficha li.vazio { padding: 6px 2px; }
.resultados-ficha button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px; border: 1px solid var(--cor-borda); border-radius: 8px; background: white;
  cursor: pointer; text-align: left; font-size: 0.95em; color: var(--cor-texto);
}
.resultados-ficha button:hover { border-color: var(--cor-lima-escura); background: var(--cor-lima-clara); }
.resultados-ficha small { display: block; color: #777; font-size: 0.85em; }
.ficha-escolhida {
  padding: 10px 12px; border-radius: 8px; background: var(--cor-lima-clara);
  border: 2px solid var(--cor-lima-escura); display: flex; flex-direction: column; gap: 4px;
}
.ficha-escolhida.sem-saldo { background: var(--cor-alerta-clara); border-color: var(--cor-alerta); }
.ficha-escolhida .aviso { color: var(--cor-perigo); font-weight: 700; }
.link-btn {
  background: none; border: none; padding: 0 4px; color: var(--cor-secundaria);
  text-decoration: underline; cursor: pointer; font-size: 0.9em;
}
.valores-ficha { display: flex; gap: 6px; flex-wrap: wrap; }
.valores-ficha button {
  flex: 1; min-width: 72px; white-space: nowrap; padding: 10px 8px; border: 2px solid var(--cor-borda); border-radius: 8px;
  background: white; color: var(--cor-texto); font-weight: 700; font-size: 1em; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.valores-ficha button:hover { border-color: var(--cor-lima-escura); }
.valores-ficha button.selecionado { background: var(--cor-lima); border-color: var(--cor-lima-escura); }
.filtro-data select { padding: 8px; border-radius: 6px; border: 1px solid #ddd; background: white; }
.filtro-data input[type="search"] { flex: 1; min-width: 180px; }
.btn-perigo { color: var(--cor-perigo); border-color: var(--cor-perigo); }

.dialog-ficha {
  width: calc(100% - 32px); max-width: 620px; max-height: calc(100vh - 32px);
  border: none; border-radius: 14px; padding: 18px 20px; color: var(--cor-texto);
  background: var(--cor-fundo); box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.dialog-ficha::backdrop { background: rgba(20, 35, 15, 0.55); }
.dialog-ficha h2 { margin: 0; font-size: 1.2em; }
.dialog-ficha h3 { margin: 18px 0 8px; font-size: 1em; }
.dialog-ficha .form-produto { margin-bottom: 8px; box-shadow: none; }
.dialog-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.saldo-grande { font-size: 1.3em; margin-top: 10px; }
.saldo-grande strong { color: var(--cor-lima-escura); }
.acoes-encerrar { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.acoes-encerrar select { padding: 8px; border-radius: 8px; border: 1px solid #ddd; }
.acoes-encerrar button { width: auto; flex: 1; margin-top: 0; min-width: 150px; }
.valor-saida { color: var(--cor-perigo); white-space: nowrap; }
.valor-entrada { color: var(--cor-lima-escura); white-space: nowrap; }
/* Extrato: continua tabela também no celular (3 colunas curtas) */
.extrato { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; font-size: 0.95em; }
.extrato th, .extrato td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--cor-borda); }
.extrato th { background: var(--cor-lima-clara); }
.extrato td:first-child { white-space: nowrap; color: #666; }
.extrato th:last-child, .extrato td:last-child { text-align: right; }
.fp-btn { -webkit-tap-highlight-color: transparent; }
.editar-ficha { margin-top: 18px; }
.editar-ficha summary { cursor: pointer; color: var(--cor-secundaria); font-weight: 600; margin-bottom: 8px; }
#secao-reabrir { margin-top: 14px; }

/* Login / usuário logado */
.topbar-usuario { font-size: 0.85em; opacity: 0.9; white-space: nowrap; }
.topbar-usuario a { color: white; }
.pagina-acesso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cartao-acesso {
  width: 100%; max-width: 380px; background: white; border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center;
}
.cartao-acesso h1 { font-size: 1.4em; margin: 6px 0; }
.icone-acesso { font-size: 2.6em; }
.form-acesso { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 16px 0; }
.form-acesso input { width: 100%; }
.erro-acesso {
  background: #FBE9E7; color: var(--cor-perigo); border-radius: 8px; padding: 10px; font-weight: 600; margin: 12px 0 0;
}

.aviso-inscrito {
  display: inline-block; font-size: 0.8em; padding: 2px 6px; border-radius: 6px; margin: 1px 0;
  background: var(--cor-alerta-clara); white-space: nowrap; cursor: help;
}
.aviso-site { background: var(--cor-lima-clara); cursor: default; }
.aviso-link-publico { background: var(--cor-lima-clara); border-radius: 10px; padding: 10px 14px; }
.aviso-link-publico a { color: var(--cor-lima-escura); font-weight: 700; }

/* Pagamentos e relatório de prestação de contas */
.resumo-pagamentos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.resumo-pagamentos div {
  flex: 1; min-width: 100px; background: white; border-radius: 10px; padding: 8px 12px;
  display: flex; flex-direction: column;
}
.resumo-pagamentos span { font-size: 0.8em; color: #777; }
.resumo-pagamentos strong { color: var(--cor-lima-escura); font-size: 1.1em; }
#campo-pagamento-inicial select { margin-top: 4px; }
.obs-pagamento { display: block; color: #888; font-size: 0.82em; }
.dialog-link { max-width: 520px; }
.dialog-link textarea {
  width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 0.95em; resize: vertical;
}
.rotulo-campo { font-size: 0.85em; font-weight: 600; color: #666; display: block; margin-top: 8px; }
.acoes-link { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acoes-link .btn-primario, .acoes-link .btn-secundario {
  width: auto; flex: 1; margin-top: 0; text-align: center; text-decoration: none; padding: 12px;
}
.relatorio-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.relatorio-topo h1 { margin-bottom: 4px; }
.relatorio-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.relatorio-acoes .btn-primario, .relatorio-acoes .btn-secundario {
  width: auto; margin-top: 0; padding: 10px 16px; font-size: 0.95em; text-decoration: none; display: inline-block;
}
.tabela-relatorio td:last-child, .tabela-relatorio th:last-child { text-align: right; white-space: nowrap; }
.tabela-relatorio tr.linha-total td { font-weight: 700; background: var(--cor-lima-clara); }

@media print {
  body { background: white; padding: 0; font-size: 11pt; }
  .topbar, .toast, .nao-imprimir, .barra-fixa { display: none !important; }
  .conteudo { padding: 0; max-width: none; }
  .card-resumo { box-shadow: none; border: 1px solid #ccc; }
  .tabela { font-size: 10pt; }
  .tabela th, .tabela td { padding: 5px 8px; }
  .tabela tr { break-inside: avoid; }
  h2 { break-after: avoid; margin-top: 18px; }
}

/* Situação da inscrição e aprovações de dinheiro */
.selo { display: inline-block; font-size: 0.82em; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.selo-ok { background: var(--cor-lima-clara); color: var(--cor-lima-escura); border: 1px solid #b9dc84; }
/* Pendente: mesmo verde do site, mais apagado e tracejado, com bolinha vazada */
.selo-pendente {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f6e8; color: #5a7437; border: 1px dashed #a7c47c;
}
.selo-pendente::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid currentColor; flex-shrink: 0;
}
.tabela tr.linha-pendente { background: #f8fbf1; }
.topbar nav a { position: relative; }
.contador-nav {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px; border-radius: 999px; background: var(--cor-perigo); color: white; font-size: 0.72em; font-weight: 700;
}
.lista-pedidos { display: flex; flex-direction: column; gap: 12px; }
.pedido-dinheiro { background: white; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pedido-dinheiro header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.valor-previsto strong { color: var(--cor-lima-escura); font-size: 1.1em; }
.familia-pedido { margin: 8px 0; padding-left: 20px; }
.pedido-dinheiro .resumo-pagamentos div { background: var(--cor-fundo); }
.acoes-pedido { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.acoes-pedido label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85em; font-weight: 600; color: #666; }
.acoes-pedido input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1em; width: 140px; }
.acoes-pedido button { width: auto; margin-top: 0; padding: 10px 16px; }

/* Página pública de inscrição */
.pagina-publica { padding-bottom: 0; }
/* Topo da inscrição: paisagem de fundo + barraca, título e subtítulo como texto.
   O creme da arte (#F4F8E9) continua no fundo da página. */
.pagina-publica { background: #f4f8e9; }
.topo-publico {
  position: relative; overflow: hidden; background: #f4f8e9;
  height: clamp(300px, 29vw, 480px);  /* limite: em monitor grande não cresce sem parar */
}
.arte-topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;  /* corta o céu, nunca a onda */
}
.topo-conteudo {
  position: relative; height: 76%; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; text-align: center;
}
.marca-acampamento {
  width: clamp(78px, 8.5vw, 150px); height: auto; margin-bottom: clamp(2px, 0.5vw, 8px);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
}
.titulo-acampamento {
  margin: 0; font-size: clamp(1.7rem, 3.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.5px; line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.destaque-ibbj { color: #8ee04a; }
.destaque-ano { color: #f5d76e; }
.subtitulo-acampamento {
  display: flex; align-items: center; gap: 14px; justify-content: center; width: 100%;
  margin: clamp(4px, 0.8vw, 12px) 0 0; font-size: clamp(0.9rem, 1.45vw, 1.35rem);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.subtitulo-acampamento::before, .subtitulo-acampamento::after {
  content: ""; flex: 0 1 clamp(24px, 7vw, 130px); height: 2px; background: #8ee04a; border-radius: 2px;
}
.versiculo-topo {
  margin: clamp(6px, 1vw, 14px) 0 0; max-width: 620px;
  font-style: italic; font-size: clamp(0.82rem, 1.15vw, 1.08rem); line-height: 1.4; color: #eaf5d0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.conteudo-publico { max-width: 640px; margin: 0 auto; padding: 16px; }
.bloco-publico {
  background: white; border-radius: 14px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.bloco-publico h2 { margin: 0 0 12px; font-size: 1.15em; }
.bloco-publico .campo { margin-bottom: 12px; }
.bloco-publico .campo input:not([type="radio"]):not([type="checkbox"]) { width: 100%; }
.faixa-lote { background: var(--cor-lima-clara); border: 2px solid var(--cor-lima); }
.faixa-lote h2 { margin-bottom: 10px; }
.linha-lotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.linha-lotes li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: #fff; border: 2px solid var(--cor-borda); color: #777;
}
.linha-lotes .lote-nome { font-weight: 700; }
.linha-lotes .lote-data { font-size: 0.9em; }
.linha-lotes .lote-preco { font-weight: 700; font-size: 1.1em; }
.linha-lotes .lote-etiqueta { font-size: 0.75em; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.linha-lotes .lote-agora { border-color: var(--cor-lima-escura); color: #1f2d0f; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.linha-lotes .lote-agora .lote-etiqueta { background: var(--cor-lima-escura); color: #fff; }
.linha-lotes .lote-passou { opacity: 0.55; }
.linha-lotes .lote-passou .lote-data, .linha-lotes .lote-passou .lote-preco { text-decoration: line-through; }
.linha-lotes .lote-passou .lote-etiqueta { background: #ddd; color: #666; }
.lote-regras { margin: 10px 0 0; font-size: 0.92em; }
.cartao-pessoa { border: 2px solid var(--cor-borda); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.cartao-pessoa-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.campo-opcoes { border: none; padding: 0; margin: 0 0 12px; }
.campo-opcoes legend { font-size: 0.85em; font-weight: 600; color: #666; margin-bottom: 6px; }
.campo-opcoes label, .consentimento { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.campo-opcoes input, .consentimento input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--cor-lima-escura); }
.consentimento span { font-size: 0.9em; }
.campo-armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#resumo-pessoas, .lista-confirmados { list-style: none; padding: 0; margin: 0; }
#resumo-pessoas li, .lista-confirmados li {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cor-borda);
}
.total-publico { font-size: 1.25em; text-align: right; margin: 12px 0; }
.caixa-pix {
  background: var(--cor-lima-clara); border-radius: 10px; padding: 12px; margin: 10px 0;
  display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere;
}
.titulo-pix { margin: 16px 0 4px; font-size: 1.05em; }
.qr-pix { width: 220px; max-width: 70vw; margin: 4px auto; background: white; border-radius: 8px; padding: 6px; }
.qr-pix svg { width: 100%; height: auto; display: block; }
.caixa-pix .btn-primario { margin-top: 4px; }
.valor-pix { margin-bottom: 4px; }
.linha-valor-pix { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2em; }
.linha-valor-pix input { flex: 1; font-size: 1.1em; font-weight: 700; padding: 10px; border: 2px solid var(--cor-lima-escura); border-radius: 8px; }
.atalhos-pix { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.atalhos-pix button {
  flex: 1; padding: 8px; border: 1px solid var(--cor-borda); border-radius: 8px; background: white;
  color: var(--cor-texto); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.atalhos-pix button:hover { border-color: var(--cor-lima-escura); }
.qr-pix { transition: opacity 0.2s; }
.qr-pix.qr-desatualizado { opacity: 0.25; }
#aviso-valor-pix { color: var(--cor-alerta); font-weight: 600; }
#btn-gerar-pix, #btn-dinheiro { margin-top: 10px; }
.pagamento-inscricao { margin-top: 12px; }
.aviso-minimo {
  background: var(--cor-alerta-clara); border-left: 4px solid var(--cor-alerta); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 12px;
}
.rotulo-abas { font-weight: 700; margin: 16px 0 8px; }
.aviso-confirmada {
  background: var(--cor-lima-clara); border-left: 4px solid var(--cor-lima-escura); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 12px;
}
.resumo-familia { background: var(--cor-fundo); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.resumo-familia p { margin: 4px 0; }
.escolha-modo { padding: 12px; }
.botoes-modo { display: flex; gap: 8px; }
.botao-modo {
  flex: 1; padding: 14px 10px; border: 2px solid var(--cor-borda); border-radius: 12px; background: white;
  color: var(--cor-texto); font-weight: 700; font-size: 1em; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.botao-modo.ativo { border-color: var(--cor-lima-escura); background: var(--cor-lima-clara); }
.botao-modo small { display: block; margin-top: 2px; font-size: 0.75em; font-weight: 600; color: #6b7d5a; }
.abas-pagamento { display: flex; gap: 6px; }
.aba-pagamento {
  flex: 1; padding: 12px 6px; border: 2px solid var(--cor-borda); border-radius: 10px; background: white;
  color: var(--cor-texto); font-weight: 700; font-size: 0.95em; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.aba-pagamento.ativa { border-color: var(--cor-lima-escura); background: var(--cor-lima-clara); }
.aba-pagamento small { display: block; font-size: 0.72em; font-weight: 600; color: #6b7d5a; margin-top: 2px; }
.resumo-taxa { background: var(--cor-lima-clara); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.resumo-taxa .dica-campo { display: block; margin-top: 4px; }
.painel-meio { margin-top: 12px; }
.painel-meio p { margin: 8px 0; }
#cartao-brick { min-height: 60px; }
#etapa-pix { margin-top: 4px; }
#etapa-pagar { display: flex; flex-direction: column; gap: 8px; }
#etapa-pagar[hidden] { display: none; }
.aguardando-pix { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 0; }
.bolinha-pix {
  width: 10px; height: 10px; border-radius: 50%; background: var(--cor-lima-escura); flex-shrink: 0;
  animation: pulsar-pix 1.2s ease-in-out infinite;
}
@keyframes pulsar-pix { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.7); } }
.pix-confirmado { text-align: center; padding: 10px 0; }
.pix-confirmado h3 { margin: 4px 0; color: var(--cor-lima-escura); font-size: 1.3em; }
.icone-confirmado { font-size: 3em; line-height: 1; }
.dados-pix { font-size: 0.9em; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--cor-borda); padding-top: 8px; }
.rodape-publico { text-align: center; padding: 20px 16px 28px; font-size: 0.85em; }
.rodape-publico a { color: #888; }

/* ===================== Mobile / tablet ===================== */
@media screen and (max-width: 768px) {
  body { padding-bottom: 62px; }

  .topbar { padding: 10px 14px; }
  .topbar .brand { font-size: 1.1em; }
  .topbar nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--cor-topo);
    margin: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 60;
  }
  .topbar nav a {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 10px;
    font-size: 0.78em;
  }
  .topbar nav a .icone { font-size: 1.3em; line-height: 1; }

  .conteudo { padding: 14px; }

  /* PDV */
  .pdv { flex-direction: column; gap: 14px; }
  .pdv-produtos {
    order: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .produto-card {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 8px;
    touch-action: manipulation;
  }
  .produto-card .nome { font-size: 1.02em; }
  .carrinho { order: 2; position: static; margin-bottom: 70px; }

  .fp-btn, .btn-primario, .btn-secundario, .qtd-btn, button {
    touch-action: manipulation;
  }
  .fp-btn, .btn-primario, .btn-secundario { min-height: 48px; font-size: 1em; }
  #lista-carrinho button.qtd-btn { width: 34px; height: 34px; font-size: 1.1em; }

  .barra-fixa {
    position: fixed;
    left: 0; right: 0;
    bottom: 58px;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: white;
    padding: 10px 14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    border-top: 1px solid var(--cor-borda);
  }
  .barra-fixa.oculta { display: none; }
  .barra-fixa span { font-weight: 700; }
  .barra-fixa button {
    background: var(--cor-lima); color: var(--cor-texto); border: none; border-radius: 8px;
    padding: 10px 18px; font-weight: 700; min-height: 44px;
  }

  /* Formulários */
  .form-produto { flex-direction: column; gap: 12px; padding: 14px; }
  .campo input, .campo select { font-size: 16px; padding: 12px 10px; min-height: 44px; }
  .campo-botoes { flex-direction: column; align-items: stretch; }
  .campo-botoes button { width: 100%; min-height: 46px; }

  .filtro-data { flex-wrap: wrap; }
  .filtro-data input { font-size: 16px; min-height: 44px; flex: 1; }
  .filtro-data button { flex: 1; min-height: 44px; }

  /* Tabelas viram cards empilhados */
  .tabela thead { display: none; }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela tr {
    margin-bottom: 10px;
    border: 1px solid var(--cor-borda);
    border-radius: 10px;
    overflow: hidden;
  }
  .tabela td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cor-borda);
    text-align: right;
  }
  .tabela td:last-child { border-bottom: none; }
  .tabela td { overflow-wrap: anywhere; }
  .tabela td::before { flex-shrink: 0; }
  .tabela td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #777;
    text-align: left;
  }
  .tabela td[data-label=""]::before,
  .tabela td:not([data-label])::before { content: none; }

  .dialog-ficha { width: 100%; max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; padding: 14px; }
  .painel-ficha input, .filtro-data select, .acoes-encerrar select { font-size: 16px; min-height: 44px; }
  .resultados-ficha button { min-height: 48px; }
  .valores-ficha button { min-height: 48px; }
  .topbar-usuario { font-size: 0.8em; }
  .pagina-acesso { padding-bottom: 16px; }
  .form-acesso input { font-size: 16px; min-height: 44px; }
  .pagina-publica { padding-bottom: 0; }
  .bloco-publico .campo input:not([type="radio"]):not([type="checkbox"]) { font-size: 16px; min-height: 46px; }
  /* Cartão no celular: ações em grade, sem o rótulo "Ações" ao lado */
  .tabela td[data-label="Ações"]::before { content: none; }
  .tabela .acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .tabela .acoes .btn-destaque { grid-column: 1 / -1; }
  .tabela button { height: 42px; }
  .tabela button.so-icone { width: auto; padding: 0 12px; }
  .tabela button .rotulo-acao { display: inline; }
  .topbar nav a .contador-nav { position: absolute; top: 2px; right: 18%; margin: 0; }
  .acoes-pedido { flex-direction: column; align-items: stretch; }
  .acoes-pedido input { width: 100%; min-height: 44px; font-size: 16px; }
  .subtitulo-acampamento { font-size: 0.86rem; }
  .subtitulo-acampamento::before, .subtitulo-acampamento::after { display: none; }
}

/* ---------- Log (aba do Erison) ---------- */
.tabela-log td { font-size: 0.9em; vertical-align: top; }
.tabela-log td:first-child { white-space: nowrap; }
.tabela-log small { color: #777; }
.tabela-log tr.log-cartao_recusado td, .tabela-log tr.log-erro_mp td, .tabela-log tr.log-pagamento_excluido td,
.tabela-log tr.log-login_falhou td, .tabela-log tr.tentativa-rejected td { background: #fff3f1; }
.tabela-log tr.log-pagamento_aprovado td, .tabela-log tr.log-dinheiro_aprovado td,
.tabela-log tr.tentativa-approved td { background: var(--cor-lima-clara); }

/* ---------- Lista de inscritos por família ---------- */
.barra-lista { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.barra-lista input[type="search"] { flex: 1; min-width: 200px; padding: 9px 10px; border-radius: 8px; border: 1px solid #ddd; }
.barra-lista select { padding: 9px 10px; border-radius: 8px; border: 1px solid #ddd; background: white; }
.alternar-visao { display: inline-flex; border: 1px solid var(--cor-borda); border-radius: 10px; overflow: hidden; background: white; }
.alternar-visao button {
  width: auto; margin: 0; border: none; border-radius: 0; background: white; color: var(--cor-texto);
  padding: 9px 14px; font-weight: 600; font-size: 0.9em; cursor: pointer;
}
.alternar-visao button.ativo { background: var(--cor-lima); color: var(--cor-texto); }

.familia-card { background: white; border: 1px solid var(--cor-borda); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.familia-card.familia-pendente { border-left: 5px solid #a7c47c; }
.familia-card:not(.familia-pendente) { border-left: 5px solid var(--cor-lima-escura); }
.familia-topo {
  display: grid; grid-template-columns: minmax(200px, 1.3fr) 2fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; background: #f8fbf1; border-bottom: 1px solid var(--cor-borda);
}
.familia-quem { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.familia-nome { font-size: 1.05em; }
.familia-codigo { font-size: 0.85em; color: #666; }
.familia-selos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.selo-enviado { background: #e8f1fb; color: #2d5a86; border: 1px solid #bcd3ea; }
.selo-nao-enviado { background: var(--cor-alerta-clara); color: #8a5a00; border: 1px dashed #e0b85c; }
.familia-valores { display: flex; gap: 8px; flex-wrap: wrap; }
.familia-valores div {
  display: flex; flex-direction: column; background: white; border: 1px solid var(--cor-borda);
  border-radius: 8px; padding: 5px 10px; min-width: 90px;
}
.familia-valores span { font-size: 0.75em; color: #666; }
.familia-valores .valor-minimo { border-style: dashed; border-color: #a7c47c; }
.familia-acoes { display: flex; gap: 6px; }
.familia-membros { list-style: none; margin: 0; padding: 0; }
.familia-membros li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 16px; border-bottom: 1px solid #eef3e3;
}
.familia-membros li:last-child { border-bottom: none; }
.membro-nome small { display: block; color: #777; font-size: 0.82em; }
.membro-avisos { margin-top: 2px; }
.membro-avisos:empty { display: none; }
.membro-valor { text-align: right; font-weight: 600; white-space: nowrap; }
.membro-valor small { color: #777; font-weight: 400; }
.familia-card .acoes { display: flex; gap: 6px; align-items: center; }
.familia-card button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; margin: 0; width: auto;
  border: 1px solid var(--cor-borda); border-radius: 8px; background: white;
  color: var(--cor-texto); font-size: 0.85em; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.familia-card button:hover { background: var(--cor-lima-clara); border-color: var(--cor-lima-escura); }
.familia-card button.btn-destaque { background: var(--cor-lima-clara); border-color: var(--cor-lima); }
.familia-card button.so-icone { width: 34px; padding: 0; }
.familia-card button.editar { color: var(--cor-secundaria); }
.familia-card button.excluir { color: var(--cor-perigo); border-color: #EFCFCB; }
.familia-card button .rotulo-acao { display: none; }
#lista-familias .vazio { text-align: center; color: #777; padding: 20px; }

@media screen and (max-width: 768px) {
  .familia-topo { grid-template-columns: 1fr; gap: 10px; }
  .familia-valores { display: grid; grid-template-columns: 1fr 1fr; }
  .familia-valores div { min-width: 0; }
  .familia-acoes button { flex: 1; height: 42px; }
  .familia-membros li { grid-template-columns: 1fr auto; padding: 10px 12px; }
  .familia-membros li .acoes { grid-column: 1 / -1; justify-content: flex-end; }
  .alternar-visao { width: 100%; }
  .alternar-visao button { flex: 1; }
  .barra-lista select { width: 100%; }
}
@media print {
  .barra-lista, .familia-acoes, .familia-card .acoes { display: none; }
  .familia-card { break-inside: avoid; }
}

/* ---------- Etapas da inscrição e aviso de "não confirmada" ---------- */
.etapas-inscricao {
  list-style: none; display: flex; gap: 6px; margin: 0 0 14px; padding: 0; counter-reset: none;
}
.etapas-inscricao li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px; border-radius: 999px; background: #eef3e3; color: #7a8a68; font-weight: 600; font-size: 0.9em;
}
.etapas-inscricao li span {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: white; font-size: 0.85em; flex-shrink: 0;
}
.etapas-inscricao li.atual { background: var(--cor-lima); color: var(--cor-texto); }
.etapas-inscricao li.feita { background: var(--cor-lima-clara); color: var(--cor-lima-escura); }
.etapas-inscricao li.feita span { background: var(--cor-lima-escura); color: white; }
#form-inscricao > .etapas-inscricao { background: white; border-radius: 14px; padding: 8px; }
.aviso-nao-confirmada {
  background: #fff4e0; border: 2px solid #f0b44c; color: #6b4200; border-radius: 12px; padding: 12px 14px;
}
.aviso-nao-confirmada > strong:first-child { display: block; font-size: 1.05em; margin-bottom: 4px; }
.aviso-nao-confirmada p { margin: 0; }
.dica-campo.centro { text-align: center; display: block; margin-top: 8px; }

.aviso-prazo-lote { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #f0b44c; }
.lote-garantia { font-weight: 600; color: var(--cor-lima-escura); }

/* Alergia e remédio visíveis direto na lista */
.caixa-saude {
  display: inline-block; font-size: 0.82em; line-height: 1.35; padding: 3px 8px; border-radius: 6px;
  margin: 2px 4px 2px 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; vertical-align: top;
}
.caixa-saude strong { font-weight: 700; }
.caixa-alergia { background: #fdecea; color: #8a2a20; border: 1px solid #f3c2bb; }
.caixa-remedio { background: #eaf1fb; color: #24507e; border: 1px solid #c3d6ee; }
.tabela td[data-label="Avisos"] { max-width: 260px; }

/* Backup (aba Log) e aviso da virada do lote (lista) */
.caixa-backup {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: white; border: 1px solid var(--cor-borda); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.caixa-backup p { margin: 2px 0 0; }
.caixa-backup .btn-primario { width: auto; margin: 0; text-decoration: none; padding: 10px 18px; }
.caixa-backup.backup-atrasado { border: 2px solid #f0b44c; background: #fff8ea; }
.alerta-virada {
  background: #fff4e0; border: 2px solid #f0b44c; color: #6b4200; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.alerta-virada .link-btn { font-weight: 700; color: #6b4200; text-decoration: underline; }

/* ---------- Comprovante da inscrição ---------- */
.pagina-comprovante .conteudo-publico { padding-top: 24px; }
.comprovante h1 { margin: 0; font-size: 1.4em; }
.comprovante h2 { font-size: 1.05em; margin: 20px 0 8px; }
.comprovante-topo { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--cor-lima); padding-bottom: 12px; }
.comprovante-topo p { margin: 2px 0 0; color: #666; }
.comprovante-situacao { margin-top: 14px; padding: 10px 14px; border-radius: 10px; }
.comprovante-situacao.ok { background: var(--cor-lima-clara); color: var(--cor-lima-escura); }
.comprovante-situacao.pendente { background: #fff4e0; color: #6b4200; border: 1px solid #f0b44c; }
.comprovante-codigo { margin: 10px 0 0; color: #555; }
.tabela-comprovante { width: 100%; border-collapse: collapse; }
.tabela-comprovante th, .tabela-comprovante td { padding: 7px 6px; border-bottom: 1px solid var(--cor-borda); text-align: left; }
.tabela-comprovante th { font-size: 0.8em; color: #666; font-weight: 600; }
.tabela-comprovante .num { text-align: right; white-space: nowrap; }
.tabela-comprovante tfoot td { font-weight: 700; border-bottom: none; }
.tabela-comprovante tfoot tr.falta td { color: #6b4200; }
.comprovante-rodape { margin-top: 20px; font-size: 0.8em; color: #777; }
.comprovante-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.comprovante-acoes .btn-primario, .comprovante-acoes .btn-secundario { flex: 1; min-width: 180px; text-align: center; text-decoration: none; }
.link-comprovante a { color: var(--cor-lima-escura); font-weight: 700; }
.pix-confirmado .btn-primario { display: block; text-align: center; text-decoration: none; margin-bottom: 8px; }
@media print {
  .pagina-comprovante { background: white; }
  .pagina-comprovante .bloco-publico { box-shadow: none; border: none; }
}

/* ---------- Cobrar em sequência ---------- */
.barra-sequencia {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: white; border: 1px solid var(--cor-borda); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
}
.barra-sequencia .btn-primario { width: auto; margin: 0; padding: 9px 16px; }
.progresso-sequencia { height: 8px; background: #eef3e3; border-radius: 999px; overflow: hidden; margin-top: 4px; }
#barra-progresso { height: 100%; background: var(--cor-lima); width: 0; transition: width 0.3s; }
.contador-sequencia { font-size: 0.85em; color: #666; margin: 8px 0 2px; }
.familia-sequencia { margin: 0 0 10px; font-size: 1.05em; }
#mensagem-sequencia { width: 100%; box-sizing: border-box; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid #ddd; }
@media screen and (max-width: 768px) {
  .barra-sequencia .btn-primario { width: 100%; }
}

/* Data combinada de pagamento */
.selo-promessa { background: #eef6ff; color: #2d5a86; border: 1px solid #bcd3ea; }
.selo-promessa-vencida { background: #fdecea; color: #8a2a20; border: 1px solid #f3c2bb; }
#promessa-data { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 8px; border: 1px solid #ddd; font-size: 1em; }

/* Card "Ainda a receber" */
.card-a-receber { min-width: 240px; }
.barra-arrecadado { height: 6px; background: #eef3e3; border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.barra-arrecadado div { height: 100%; background: var(--cor-lima); border-radius: 999px; }
.detalhe-card { font-size: 0.8em; color: #777; margin-top: 2px; }
.detalhe-card strong { color: var(--cor-texto); }
#cards-resumo-inscritos .card-resumo { flex: 1 1 150px; min-width: 150px; padding: 14px 16px; }
#cards-resumo-inscritos .card-a-receber { flex: 2 1 250px; }

/* Painel financeiro (largura inteira) + cards de pessoas */
#cards-resumo-inscritos .painel-financeiro {
  flex: 1 1 100%; background: white; border-radius: 12px; padding: 14px 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.numeros-financeiro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.numeros-financeiro div { display: flex; flex-direction: column; }
.numeros-financeiro span { color: #777; font-size: 0.85em; }
.numeros-financeiro strong { font-size: 1.45em; color: var(--cor-lima-escura); }
.numeros-financeiro div:last-child strong { color: var(--cor-texto); }
.painel-financeiro .barra-arrecadado { height: 8px; margin: 12px 0 6px; }
@media screen and (max-width: 768px) {
  .numeros-financeiro { grid-template-columns: 1fr 1fr; }
  .numeros-financeiro div:last-child { grid-column: 1 / -1; }
  #cards-resumo-inscritos .card-resumo { flex: 1 1 90px; min-width: 90px; }
}

.titulo-com-acao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.titulo-com-acao .btn-secundario { width: auto; margin: 0; }

.caixa-total { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--cor-borda); font-size: 0.9em; }
.caixa-total span { color: #777; }
.caixa-total a { color: var(--cor-lima-escura); font-weight: 600; }

.form-meta { margin-top: 16px; }
#entrada-origem { padding: 8px; border-radius: 6px; border: 1px solid #ddd; background: white; width: 100%; }

/* Relatório: entradas por família */
.linha-familia-rel { cursor: pointer; }
.linha-familia-rel:hover td, .linha-familia-rel.aberta td { background: #f8fbf1; }
.seta-rel { display: inline-block; width: 12px; color: var(--cor-lima-escura); }
.detalhe-familia-rel > td { padding: 0 12px 10px 34px !important; background: #f8fbf1; }
.sub-tabela-rel { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.sub-tabela-rel td { padding: 5px 8px; border-bottom: 1px dashed var(--cor-borda); }
.sub-tabela-rel .num { text-align: right; white-space: nowrap; }
@media print { .seta-rel { display: none; } }

/* ---------- Cantina online: janela do PIX automático e ficha digital ---------- */
.dialog-pix { border: none; border-radius: 18px; padding: 22px; width: min(92vw, 380px); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.dialog-pix::backdrop { background: rgba(10, 20, 8, 0.6); }
.dialog-pix h2 { margin: 0 0 6px; }
.dialog-pix .qr-pix { width: 240px; height: 240px; margin: 12px auto; }
.dialog-pix .qr-pix svg { width: 100%; height: 100%; display: block; }
.status-pix { font-weight: 700; font-size: 1.1em; margin: 14px 0 8px; }
.status-pix.aguardando { color: #9a6b00; }
.status-pix.pago { color: #2F7D3E; font-size: 1.4em; }
.status-pix .girando { display: inline-block; animation: girar-pix 1.4s linear infinite; }
@keyframes girar-pix { to { transform: rotate(360deg); } }
.acoes-pix { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.acoes-ficha-digital { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.acoes-ficha-digital a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.acoes-ficha-digital a.btn-primario { color: inherit; }
a.btn-whats { text-decoration: none; display: inline-block; padding: 7px 12px; border: 1px solid #25D366; border-radius: 8px; background: #E7F8EE;
              color: #128C4A; font-size: 0.85em; font-weight: 600; white-space: nowrap; }
a.btn-whats:hover { background: #25D366; color: #fff; }
/* Botões da linha da ficha: lado a lado, sem quebrar */
.acoes-ficha { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.tabela button.btn-whats { background: #E7F8EE; border-color: #25D366; color: #128C4A; }
.tabela button.btn-whats:hover { background: #25D366; border-color: #1DA851; color: #fff; }
