/* OS-Church — sistema interno.
   Paleta do logo: preto, azul #065AF5 e branco (a mesma da página inicial).
   Verde/laranja/vermelho só aparecem quando indicam situação (em dia, atraso, bloqueio). */
:root {
  --preto: #000000;
  --grafite: #12161e;          /* item ativo do menu e superfícies escuras */
  --azul: #065af5;
  --azul-escuro: #0447c4;
  --azul-claro: #e7efff;
  --azul-texto: #6d9dff;       /* azul legível sobre preto */
  --fundo: #f2f4f8;
  --borda: #e3e6ec;
  --tinta: #10131a;
  --texto-suave: #5f6778;
  --display: "Michroma", "Plus Jakarta Sans", system-ui, sans-serif;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  --bs-primary: #065af5;
  --bs-primary-rgb: 6, 90, 245;
  --bs-link-color: #065af5;
  --bs-link-color-rgb: 6, 90, 245;
  --bs-link-hover-color: #0447c4;
  --bs-link-hover-color-rgb: 4, 71, 196;
  --bs-focus-ring-color: rgba(6, 90, 245, .25);
}
body { background: var(--fundo); color: var(--tinta); }
.min-w-0 { min-width: 0; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0; background-color: var(--preto) !important; color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid #1d212a;
}
@media (max-width: 991.98px) {
  .sidebar { position: fixed; height: 100%; --bs-offcanvas-width: 270px; --bs-offcanvas-bg: #000; }
}
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.4rem 1.25rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--azul); color: #fff;
  display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0;
}
.brand-nome { font-weight: 700; line-height: 1.15; font-size: .98rem; }
.brand-sub { font-size: .75rem; color: rgba(255,255,255,.55); }
.sidebar-nav { padding: .5rem .75rem; flex-grow: 1; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.7);
  text-decoration: none; padding: .62rem .85rem; border-radius: 10px; font-weight: 500; font-size: .93rem;
  margin-bottom: 2px;
}
.sidebar-nav a i { font-size: 1.1rem; }
.sidebar-nav a:hover { background: var(--grafite); color: #fff; }
.sidebar-nav a.ativo { background: var(--grafite); color: #fff; box-shadow: inset 3px 0 0 var(--azul); }
.sidebar-nav a.ativo i { color: var(--azul-texto); }
.sidebar-sep { font-size: .72rem; color: rgba(255,255,255,.4); padding: 1rem .85rem .4rem; }
.sidebar-user { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-top: 1px solid #1d212a; font-size: .88rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grafite); border: 1px solid #2a303b; display: grid; place-items: center; font-weight: 700; color: var(--azul-texto); flex-shrink: 0; }

.badge-papel { display: inline-block; font-size: .68rem; font-weight: 600; padding: .12rem .5rem; border-radius: 99px; background: rgba(255,255,255,.12); }
.papel-pastor { background: var(--azul); color: #fff; }
.papel-discipulador { background: #fff; color: var(--tinta); }
.papel-lider { background: #2a303b; color: #fff; }
.papel-diacono { background: var(--azul-claro); color: var(--azul-escuro); }
.papel-dono { background: var(--azul); color: #fff; }
/* fora do menu (fundo claro) os selos precisam de contorno */
.conteudo .papel-discipulador { box-shadow: inset 0 0 0 1px #c9ced8; }

.conteudo { flex-grow: 1; min-width: 0; }
.conteudo-inner { padding: 1.75rem; max-width: 1400px; }
@media (max-width: 575.98px) { .conteudo-inner { padding: 1rem; } }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; background: #000; color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .btn-light { background: var(--grafite); border-color: #2a303b; color: #fff; }

/* ---------- Componentes ---------- */
.pagina-titulo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.pagina-titulo h1 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.pagina-titulo p { margin: .3rem 0 0; color: var(--texto-suave); }

.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 1.25rem; height: 100%; }
.cartao-titulo { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

.kpi { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; height: 100%; }
.kpi-icone { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; background: var(--azul-claro); color: var(--azul); }
.kpi-valor { font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kpi-rotulo { font-size: .8rem; color: var(--texto-suave); margin-top: .25rem; }
/* ícones dos indicadores: todos na cor da marca; o de alerta fica escuro para se destacar */
.ic-azul, .ic-verde, .ic-ouro, .ic-roxo { background: var(--azul-claro); color: var(--azul); }
.ic-rosa { background: var(--tinta); color: #fff; }

.tabela { background: #fff; border: 1px solid var(--borda); border-radius: 16px; overflow: hidden; }
.tabela .table { margin: 0; }
.tabela .table th { font-size: .78rem; color: var(--texto-suave); font-weight: 600; background: #f8f9fb; border-bottom-color: var(--borda); padding: .8rem 1rem; white-space: nowrap; }
.tabela .table td { padding: .8rem 1rem; vertical-align: middle; border-color: var(--borda); }
.tabela .table tr:last-child td { border-bottom: 0; }
.linha-link { cursor: pointer; }
.linha-link:hover td { background: #f6f9ff; }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filtros .form-control, .filtros .form-select { max-width: 240px; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--azul); --bs-btn-border-color: var(--azul);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--azul-escuro); --bs-btn-hover-border-color: var(--azul-escuro);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #033a9f; --bs-btn-active-border-color: #033a9f;
  --bs-btn-disabled-bg: var(--azul); --bs-btn-disabled-border-color: var(--azul);
}
.btn-outline-primary {
  --bs-btn-color: var(--azul); --bs-btn-border-color: var(--azul); --bs-btn-hover-bg: var(--azul);
  --bs-btn-hover-border-color: var(--azul); --bs-btn-active-bg: var(--azul-escuro);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--borda); --bs-btn-hover-bg: #f3f5f9; --bs-btn-hover-border-color: #d3d8e2; }
.form-control, .form-select { border-radius: 10px; border-color: #d6dae3; }
.form-control:focus, .form-select:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(6, 90, 245, .18); }
.form-check-input:checked { background-color: var(--azul); border-color: var(--azul); }
.form-check-input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(6, 90, 245, .18); }
.form-label { font-weight: 600; font-size: .88rem; }
.alert-success { --bs-alert-bg: var(--azul-claro); --bs-alert-color: #0b2f78; --bs-alert-border-color: #c9dbff; }
.alert-info { --bs-alert-bg: #f4f7ff; --bs-alert-color: #0b2f78; --bs-alert-border-color: #d6e3ff; }

.situacao { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 99px; }
.sit-membro { background: var(--azul); color: #fff; }
.sit-frequentador { background: var(--azul-claro); color: var(--azul-escuro); }
.sit-visitante { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1px #c9ced8; }
.sit-inativo { background: #eceef2; color: #6b7287; }

.vazio { text-align: center; padding: 3rem 1rem; color: var(--texto-suave); }
.vazio i { font-size: 2.5rem; display: block; margin-bottom: .5rem; opacity: .5; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .4rem; }

/* ---------- Lista de presença ---------- */
.presenca-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.presenca-lista > div { margin: 0; }
.presenca-lista label { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--borda); border-radius: 10px; padding: .65rem .8rem; cursor: pointer; background: #fff; width: 100%; }
.presenca-lista label:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.presenca-lista input { width: 1.15rem; height: 1.15rem; accent-color: var(--azul); }

/* ---------- Contador do culto (diácono) ---------- */
.contador-bloco { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 1rem; text-align: center; }
.contador-bloco .rotulo { font-weight: 700; margin-bottom: .6rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.contador-ctrl { display: flex; align-items: center; gap: .5rem; }
.contador-ctrl .btn { width: 56px; height: 56px; font-size: 1.5rem; flex-shrink: 0; border-radius: 14px; }
.contador-ctrl input.contador { font-size: 1.8rem; font-weight: 800; height: 56px; border-radius: 14px; }
.total-ao-vivo { background: var(--preto); color: #fff; border-radius: 16px; padding: 1.25rem; text-align: center; }
.total-ao-vivo .num { font-family: var(--display); font-size: 2.8rem; line-height: 1.1; color: #fff; }
.total-ao-vivo .num { text-shadow: 0 0 24px rgba(6, 90, 245, .55); }

@media (max-width: 991.98px) {
  .form-contagem { padding-bottom: 96px; }
  .total-ao-vivo {
    position: fixed !important; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 1030;
    border-radius: 18px 18px 0 0; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; text-align: left;
    box-shadow: 0 -6px 24px rgba(0,0,0,.3);
  }
  .total-ao-vivo .num { font-size: 1.9rem; }
  .total-ao-vivo .detalhe, .total-ao-vivo .excluir { display: none; }
  .total-ao-vivo .btn { margin: 0 0 0 auto !important; width: auto !important; }
}
@media (max-width: 575.98px) {
  .contador-bloco { padding: .75rem; }
  .contador-ctrl { flex-wrap: wrap; }
  .contador-ctrl input.contador { order: -1; width: 100%; font-size: 1.6rem; height: 52px; }
  .contador-ctrl .btn { flex: 1; width: auto; height: 48px; }
}
.total-ao-vivo .btn { white-space: nowrap; }

/* ---------- Mapa ---------- */
.pino-celula { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.pino-celula svg { transition: transform .15s; transform-origin: 50% 100%; }
.pino-celula:hover svg, .pino-celula.destaque svg { transform: scale(1.18); }
.mapa-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; height: calc(100vh - 170px); min-height: 480px; }
.mapa-box { border-radius: 16px; overflow: hidden; border: 1px solid var(--borda); background: #e9edf3; }
#mapa, .mapa-box > div { width: 100%; height: 100%; }
.mapa-lista { background: #fff; border: 1px solid var(--borda); border-radius: 16px; overflow-y: auto; }
.mapa-lista .item { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-bottom: 1px solid var(--borda); cursor: pointer; }
.mapa-lista .item:hover, .mapa-lista .item.ativo { background: #f6f9ff; }
.mapa-lista .item .dot { margin-top: .4rem; flex-shrink: 0; }
@media (max-width: 991.98px) {
  .mapa-wrap { grid-template-columns: 1fr; height: auto; }
  .mapa-box { height: 62vh; min-height: 380px; }
  .mapa-lista { max-height: none; }
}
.chip-rede { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--borda); background: #fff; border-radius: 99px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; cursor: pointer; user-select: none; }
.chip-rede.off { opacity: .4; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.leaflet-popup-content { margin: .9rem 1rem; font-family: var(--bs-body-font-family); min-width: 220px; }
.pop-titulo { font-weight: 800; font-size: 1.02rem; color: var(--tinta); margin-bottom: .1rem; }
.pop-rede { font-size: .78rem; font-weight: 600; margin-bottom: .55rem; }
.pop-linha { display: flex; gap: .5rem; font-size: .86rem; color: #3a4258; margin-bottom: .25rem; }
.pop-linha i { color: var(--texto-suave); }
.pop-acoes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.pop-acoes a { flex: 1 1 auto; min-width: 4.5rem; white-space: nowrap; text-align: center; font-size: .82rem; font-weight: 600; padding: .4rem; border-radius: 9px; text-decoration: none; }
.pop-acoes .principal { background: var(--azul); color: #fff !important; }
.pop-acoes .secundario { background: var(--azul-claro); color: var(--azul-escuro) !important; }
.mapa-form { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--borda); }

/* ---------- Marca (logo da igreja + OS-Church) ---------- */
.brand-logo { background: #fff; padding: 4px; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-iniciais { font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.brand-os { width: 12px; height: 12px; object-fit: contain; vertical-align: -1px; margin-right: 2px; opacity: .8; }
.brand-os-grande { background: #000; padding: 5px; border: 1px solid #2a303b; }
.brand-os-grande img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview { width: 140px; height: 140px; border-radius: 16px; border: 1px dashed #c9cdd8; background: #fff; display: grid; place-items: center; overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview.vazio-logo { color: var(--texto-suave); font-weight: 800; font-size: 2rem; }
.mini-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--borda); flex-shrink: 0; }
.mini-logo-g { width: 64px; height: 64px; border-radius: 14px; }
.mini-iniciais { display: grid; place-items: center; background: var(--preto); color: #fff; font-weight: 800; font-size: .8rem; border: 0; }
.mini-logo-g.mini-iniciais { font-size: 1.2rem; }

/* ---------- Cobrança (cores de situação mantidas de propósito) ---------- */
.bloqueio-valor { display: flex; gap: 2rem; flex-wrap: wrap; background: #f8f9fb; border: 1px solid var(--borda); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; }
.pix-box { border: 1.5px dashed #b9c3d6; border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.registro-pagamento { background: #f8f9fb; border: 1px solid var(--borda); border-radius: 12px; padding: 1rem; }
.sit { display: inline-block; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 99px; white-space: nowrap; }
.sit-emdia { background: #e3f6ee; color: #1f7a54; }
.sit-avencer { background: var(--azul-claro); color: var(--azul-escuro); }
.sit-atrasada { background: #fff1db; color: #a35c00; }
.sit-bloqueada { background: #fde4e4; color: #b42318; }
.sit-isenta { background: var(--tinta); color: #fff; }
.sit-suspensa { background: #eceef2; color: #4a5263; }
.sit-semplano { background: #fff7d6; color: #8a6d00; }
.badge.text-bg-primary { background-color: var(--azul) !important; }
.logo-preview-p { width: 84px; height: 84px; border-radius: 14px; flex-shrink: 0; }
.logo-preview-p.vazio-logo { font-size: 1.6rem; }

/* ---------- Agenda ---------- */
.agenda-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.agenda-mes { font-family: var(--display); font-weight: 400; font-size: 1.05rem; margin: 0 .4rem; min-width: 12ch; text-align: center; }
.agenda-legenda { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--texto-suave); }
.agenda-legenda .dot { margin-right: .35rem; }
.agenda-legenda .dot, .agenda-item .dot, .agenda-conflito .dot, .agenda-info .dot, .pagina-titulo .dot { background: var(--cor, #065af5); }
.dot-geral { --cor: #065af5; }
.dot-rede { background: conic-gradient(#065af5 0 33%, #10131a 0 66%, #6d9dff 0) !important; }
.dot-celula, .dot-vazado { background: #fff !important; box-shadow: inset 0 0 0 2px var(--cor, #10131a); }
.agenda-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--borda); gap: 1px; border: 1px solid var(--borda); border-radius: 16px; overflow: hidden; }
.agenda-cab { background: #f8f9fb; font-size: .78rem; font-weight: 600; color: var(--texto-suave); padding: .55rem .6rem; }
.agenda-dia { background: #fff; min-height: 112px; padding: .4rem .45rem .5rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agenda-dia.fora { background: #fafbfc; }
.agenda-dia.fora .agenda-num { color: #b3b9c6; }
.agenda-num { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 600; color: var(--tinta); height: 24px; padding-left: .15rem; }
.agenda-dia.hoje .agenda-num { color: var(--azul); }
.agenda-dia.hoje { box-shadow: inset 0 3px 0 var(--azul); }
.agenda-add { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--texto-suave); text-decoration: none; opacity: 0; }
.agenda-dia:hover .agenda-add, .agenda-add:focus-visible { opacity: 1; background: var(--azul-claro); color: var(--azul); }
.agenda-ev { display: block; font-size: .76rem; line-height: 1.3; padding: .2rem .4rem; border-radius: 6px; text-decoration: none; color: #fff !important; background: var(--cor); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-ev:hover { filter: brightness(1.12); }
.agenda-ev.vazado { background: #fff; color: var(--tinta) !important; box-shadow: inset 0 0 0 1.5px var(--cor); }
.agenda-ev.vazado:hover { filter: none; background: #f6f9ff; }
.agenda-ev b { font-weight: 700; }
.agenda-dia.tem.fora .agenda-ev { opacity: .55; }
.agenda-varios { display: none; }
@media (max-width: 767.98px) {
  .agenda-dia { min-height: 54px; padding: .3rem; align-items: center; }
  .agenda-num { justify-content: center; padding: 0; }
  .agenda-add { display: none; }
  .agenda-ev { width: 7px; height: 7px; padding: 0; border-radius: 50%; font-size: 0; display: inline-block; }
  .agenda-ev.vazado { box-shadow: inset 0 0 0 1.5px var(--cor); }
  .agenda-dia.tem { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; }
  .agenda-dia.tem .agenda-num { width: 100%; }
  .agenda-cab { text-align: center; padding: .45rem .1rem; }
}
.agenda-item { display: flex; align-items: center; gap: 1rem; padding: .75rem .25rem; border-bottom: 1px solid var(--borda); text-decoration: none; color: inherit; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-item:hover { background: #f6f9ff; }
.agenda-item-data { width: 48px; text-align: center; font-size: .72rem; color: var(--texto-suave); text-transform: lowercase; flex-shrink: 0; }
.agenda-item-data span { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--tinta); line-height: 1.1; }
.agenda-info { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px solid var(--borda); }
.agenda-info > i { color: var(--azul); font-size: 1.1rem; margin-top: .1rem; }
#no-dia.conflito { border-color: #f0b44c; background: #fffaf0; }
#no-dia.livre { border-color: #b7e4cc; }
.agenda-conflito { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid #f3e2bf; }
.agenda-conflito .dot { margin-top: .45rem; flex-shrink: 0; }

/* ---------- Barra lateral do dono ---------- */
.contador-menu { margin-left: auto; background: var(--azul); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; }
.sidebar-sep span { font-weight: 600; color: rgba(255,255,255,.55); }
.busca-igrejas { width: calc(100% - 1.7rem); margin: 0 .85rem .4rem; background: var(--grafite); border: 1px solid #2a303b; color: #fff; border-radius: 9px; padding: .4rem .65rem; font-size: .85rem; }
.busca-igrejas::placeholder { color: rgba(255,255,255,.4); }
.busca-igrejas:focus { outline: none; border-color: var(--azul); }
.lista-igrejas { display: flex; flex-direction: column; }
.sidebar-nav a.item-igreja { padding: .42rem .85rem; font-size: .88rem; gap: .6rem; min-width: 0; }
.sit-ponto { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #6b7180; }
.sit-ponto-emdia { background: #3cc48a; } .sit-ponto-avencer { background: var(--azul-texto); }
.sit-ponto-atrasada { background: #f0a83c; } .sit-ponto-bloqueada { background: #f05252; }
.sit-ponto-isenta { background: #fff; } .sit-ponto-suspensa { background: #4a5263; } .sit-ponto-semplano { background: #e8c547; }
.sidebar-vazio { display: block; padding: .3rem .85rem; font-size: .85rem; color: rgba(255,255,255,.45); }
.nova-senha { border: 2px solid var(--azul); }
.senha-gerada { font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; color: var(--tinta); background: var(--azul-claro); padding: .35rem .9rem; border-radius: 10px; }

.pop-tel { color: var(--texto-suave); white-space: nowrap; }
.badge-lideranca { display: inline-block; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: #e8efff; color: #0a3fb0; vertical-align: middle; margin-left: .25rem; }
.btn-zap { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; background: #e3f6ee; color: #1f7a54 !important; text-decoration: none; }
.btn-zap:hover { background: #c9eedd; }

/* Cadastro em passos (Nova igreja) */
.cadastro-passos { max-width: 880px; margin: 0 auto; }
.passos-topo { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; flex-wrap: wrap; padding: .6rem 0; margin-bottom: .6rem; background: var(--fundo, #f2f4f8); }
.passos-topo a { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem .4rem .45rem; border-radius: 99px; background: #fff; border: 1px solid var(--borda); color: var(--tinta); font-weight: 600; font-size: .9rem; text-decoration: none; }
.passos-topo a b { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: #eef2fa; color: var(--azul); font-size: .8rem; }
.passos-topo a.ativo { border-color: var(--azul); color: var(--azul); }
.passos-topo a.ativo b { background: var(--azul); color: #fff; }
.passo { height: auto !important; margin-bottom: 1rem; scroll-margin-top: 70px; }
.passo-cab { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--borda); }
.passo-cab h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.passo-cab p { margin: .15rem 0 0; color: var(--texto-suave); font-size: .92rem; }
.passo-num { flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: #fff; font-weight: 800; }
.opcional { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); background: #eef1f6; border-radius: 99px; padding: .15rem .55rem; vertical-align: middle; margin-left: .3rem; }
.acesso-box { background: #f6f8fc; border: 1px dashed #c9d4ea; border-radius: 14px; padding: 1rem; }
.passos-acoes { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 0 1.2rem; background: linear-gradient(to top, var(--fundo, #f2f4f8) 70%, rgba(242,244,248,0)); }

/* Equipe do OS-Church */
.funcao-card { height: 100%; }
.funcao-icone { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: #eef2fa; color: var(--azul); }
.funcao-opcao { position: relative; display: block; height: 100%; padding: 1rem 1rem 1rem 2.6rem; border: 2px solid var(--borda); border-radius: 14px; cursor: pointer; background: #fff; }
.funcao-opcao .form-check-input { position: absolute; left: 1rem; top: 1.35rem; margin: 0; }
.funcao-opcao:has(input:checked) { border-color: var(--azul); background: #f6f9ff; }
.papel-equipe-administrador { background: #10131a; color: #fff; }
.papel-equipe-suporte { background: #e3f6ee; color: #1f7a54; }
.papel-equipe-financeiro { background: #fff1db; color: #a35c00; }

/* ---- Telas do painel da plataforma (mesmo visual da Nova igreja) ---- */
.pagina-largura { max-width: 1180px; margin: 0 auto; }
.secao { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem; }
.secao-cab { display: flex; gap: .85rem; align-items: center; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--borda); }
.secao-cab h2 { font-size: 1.08rem; font-weight: 800; margin: 0; }
.secao-cab p { margin: .1rem 0 0; color: var(--texto-suave); font-size: .88rem; }
.secao-cab .acoes { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.secao-icone { flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: #eef2fa; color: var(--azul); font-size: 1.15rem; }
.secao-icone.verde { background: #e3f6ee; color: #1f7a54; } .secao-icone.laranja { background: #fff1db; color: #a35c00; }
.secao-icone.escuro { background: var(--tinta); color: #fff; }

/* Pendências do painel */
.pendencias { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.pendencia { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--borda); color: var(--tinta); text-decoration: none; }
.pendencia:hover { border-color: var(--azul); }
.pendencia strong { font-size: 1.35rem; line-height: 1; }
.pendencia span { font-size: .85rem; color: var(--texto-suave); line-height: 1.2; }
.pendencia i.bi-chevron-right { margin-left: auto; color: var(--texto-suave); }
.pendencia.ok { opacity: .55; }

/* Abas de filtro */
.abas { display: inline-flex; gap: .25rem; padding: .25rem; background: #eef1f6; border-radius: 12px; flex-wrap: wrap; }
.abas a { padding: .4rem .85rem; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--texto-suave); text-decoration: none; }
.abas a.ativo { background: #fff; color: var(--tinta); box-shadow: 0 1px 3px rgba(16,19,26,.08); }
.abas a b { margin-left: .3rem; font-size: .78rem; color: var(--azul); }

/* Cartões de planos */
.plano-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.4rem; border-radius: 18px; background: #fff; border: 1px solid var(--borda); }
.plano-card.inativo { opacity: .6; }
.plano-card .nome { font-family: Michroma, sans-serif; font-size: 1rem; letter-spacing: .02em; }
.plano-card .preco { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 .1rem; }
.plano-card .preco small { font-size: .9rem; font-weight: 600; color: var(--texto-suave); }
.plano-card .desc { color: var(--texto-suave); font-size: .9rem; min-height: 1.4em; }
.plano-card .rodape { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px dashed var(--borda); }
.plano-card .etiquetas { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0 1rem; }
.plano-novo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; height: 100%; min-height: 220px; border: 2px dashed #c9d4ea; border-radius: 18px; color: var(--azul); font-weight: 700; text-decoration: none; }
.plano-novo:hover { background: #f6f9ff; }
.plano-novo i { font-size: 1.8rem; }

/* Cartões de interessados e pedidos */
.lista-cartoes { display: grid; gap: .75rem; }
.item-cartao { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--borda); border-radius: 14px; background: #fff; }
.item-cartao.feito { background: #fafbfc; }
.item-cartao .principal { flex: 1 1 260px; min-width: 0; }
.item-cartao .titulo { font-weight: 800; font-size: 1.02rem; }
.item-cartao .linha { display: flex; gap: .45rem; align-items: center; color: #3a4258; font-size: .9rem; margin-top: .25rem; flex-wrap: wrap; }
.item-cartao .linha i { color: var(--texto-suave); }
.item-cartao .mensagem { margin-top: .6rem; padding: .6rem .8rem; border-left: 3px solid #c9d4ea; background: #f8f9fb; border-radius: 0 10px 10px 0; font-size: .9rem; color: #3a4258; white-space: pre-line; }
.item-cartao .lado { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; margin-left: auto; }
.item-cartao .quando { font-size: .8rem; color: var(--texto-suave); white-space: nowrap; }
.item-cartao .botoes { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 575px) { .item-cartao .lado { align-items: stretch; width: 100%; margin-left: 0; } .item-cartao .botoes { justify-content: stretch; } .item-cartao .botoes > * { flex: 1; } }

/* Como funciona (passos explicativos) */
.como-funciona { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.como-funciona div { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: #3a4258; }
.como-funciona b { flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: #fff; font-size: .8rem; }

/* Prévia do aviso do Pix */
.previa-pix { border: 1px dashed #c9d4ea; border-radius: 14px; padding: 1rem; background: #f6f8fc; font-size: .9rem; }
.secao-tabela { padding: 0; overflow: hidden; }
.secao-tabela .secao-cab { padding: 1.1rem 1.25rem; margin: 0; }
.secao-tabela .table { margin: 0; }
.secao-tabela .table th { font-size: .78rem; color: var(--texto-suave); font-weight: 600; background: #f8f9fb; border-bottom-color: var(--borda); padding: .75rem 1rem; white-space: nowrap; }
.secao-tabela .table td { padding: .8rem 1rem; vertical-align: middle; border-color: var(--borda); }
.secao-tabela .table tr:last-child td { border-bottom: 0; }
.secao-tabela .filtros { margin: 0; }
.secao-tabela .filtros .form-control, .secao-tabela .filtros .form-select { max-width: 210px; }
.secao-cab .filtros { flex-wrap: nowrap; }
@media (max-width: 991px) { .secao-cab .filtros { flex-wrap: wrap; width: 100%; margin-left: 0; } .secao-cab .filtros .form-control, .secao-cab .filtros .form-select { max-width: none; flex: 1 1 180px; } }
.como-funciona div > span { display: block; }
