/* ===== Patrimônio v1.7 — telas no padrão Gestão Igreja ===== */
.gp { display: flex; flex-direction: column; gap: 12px; }
.gp-cab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gp-titulo { margin: 0; font-size: 1.15rem; }
.gp-sub { margin: 2px 0 0; color: #64748b; font-size: .86rem; }
.gp-barra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gp-busca { flex: 1 1 260px; min-width: 200px; }
.gp-filtro { min-width: 220px; }
.gp-tabela-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.gp-tabela { width: 100%; border-collapse: collapse; font-size: .88rem; }
.gp-tabela th { background: #f1f5f9; color: #334155; text-align: left; padding: 8px 10px; font-weight: 600; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.gp-tabela td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.gp-tabela .num { text-align: right; white-space: nowrap; }
.gp-tabela tbody tr[data-gp-row] { cursor: pointer; }
.gp-tabela tbody tr[data-gp-row]:hover, .gp-tabela tbody tr[data-gp-row]:focus { background: #ecfdf5; outline: none; }
.gp-tabela tfoot td { background: #f8fafc; border-top: 2px solid #e2e8f0; }
.gp-tabela tr.gp-alerta td, .gp-tabela tr.alerta td { color: #b91c1c; }
.gp-vazio { color: #64748b; padding: 14px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; margin: 0; }
.gp-pag { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: .86rem; color: #475569; }
.gp-conta { margin: 6px 2px 0; font-size: .82rem; color: #64748b; }
.gp-sec { grid-column: 1 / -1; margin: 14px 0 4px; padding: 6px 10px; background: #f0fdfa; border-left: 4px solid var(--primary, #0d9488); font-weight: 700; color: #0f766e; font-size: .9rem; border-radius: 4px; }
.grid-form .gp-sec.full { grid-column: 1 / -1; }
.gp-obrig { color: #dc2626; }
.gp-abas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }
body button.gp-aba { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; box-shadow: none; }
body button.gp-aba.ativa { background: var(--primary, #0d9488); color: #fff; border-color: transparent; }
.gp-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.gp-filtros .field { min-width: 170px; margin: 0; }
.gp-filtros-acoes { display: flex; gap: 8px; margin-left: auto; }
.gp-rel-saida h3 { margin: 14px 0 6px; color: #0f766e; font-size: .95rem; }
.gp-rel-saida h2 { font-size: 1rem; }
.gp-rel-saida .termo p { text-align: justify; line-height: 1.5; }
.gp-rel-saida .ass { display: flex; gap: 30px; margin-top: 40px; }
.gp-rel-saida .ass div { flex: 1; border-top: 1px solid #334155; text-align: center; padding-top: 4px; font-size: .82rem; }
.gp-rel-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.gp-rel-grupo { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.gp-rel-grupo h3 { margin: 0 0 4px; font-size: .95rem; color: #0f766e; }
body button.gp-rel-item { box-shadow: none; text-align: left; background: #f8fafc; color: #1e293b; border: 1px solid #e2e8f0; }
body button.gp-rel-item:hover { background: #ecfdf5; border-color: #99f6e4; }
.gp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 12px; }
.gp-kpi { background: #fff; border: 1px solid #e2e8f0; border-left: 5px solid var(--primary, #0d9488); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.gp-kpi[role="button"] { cursor: pointer; }
.gp-kpi[role="button"]:hover { box-shadow: 0 4px 14px rgba(15, 118, 110, .12); }
.gp-kpi span { color: #64748b; font-size: .82rem; }
.gp-kpi b { font-size: 1.35rem; color: #0f172a; }
.gp-kpi small { color: #94a3b8; font-size: .76rem; }
.gp-kpi.warn { border-left-color: #f59e0b; }
.gp-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.gp-barra-linha { display: grid; grid-template-columns: 150px 1fr 48px; gap: 8px; align-items: center; margin: 6px 0; font-size: .86rem; }
.gp-barra-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-barra-linha strong { text-align: right; }
.gp-barra-trilho { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.gp-barra-cheio { display: block; height: 100%; background: var(--primary, #0d9488); border-radius: 999px; }
.gp-barra-cheio.ok { background: #16a34a; }
.gp-barra-cheio.med { background: #f59e0b; }
.gp-barra-cheio.ruim { background: #ea580c; }
.gp-barra-cheio.pior { background: #dc2626; }
/* faixa de nova versão / inatividade */
.pat-faixa { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 99999; display: flex; align-items: center; gap: 12px;
  background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: min(680px, 94vw); font-size: .92rem; }
.pat-faixa-btn { background: #14b8a6; color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
button.pat-faixa-x, .pat-faixa-x { box-shadow: none; background: transparent; color: #cbd5e1; border: 0; font-size: 1.3rem; cursor: pointer; padding: 0 4px; }
@media (max-width: 700px) {
  .gp-barra-linha { grid-template-columns: 100px 1fr 40px; }
  .gp-filtros-acoes { margin-left: 0; width: 100%; }
}
/* cadeado de permissões */
.gp-cad-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.gp-cad-grupo { display: flex; flex-direction: column; gap: 6px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; }
.gp-cad-grupo h4 { margin: 0 0 2px; font-size: .85rem; color: #0f766e; }
.gp-cad-acoes { flex-direction: row; flex-wrap: wrap; }
body button.gp-cad { display: flex; align-items: center; gap: 8px; text-align: left; background: #fff; color: #64748b; border: 1px solid #cbd5e1; box-shadow: none; padding: 7px 10px; }
body button.gp-cad .gp-cad-ico { display: inline-flex; color: #94a3b8; }
body button.gp-cad.aberto { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; font-weight: 600; }
body button.gp-cad.aberto .gp-cad-ico { color: #059669; }
.gp-tabela tr.gp-lido td { background: #dcfce7; }
.gp-tabela select, .gp-tabela input { min-width: 90px; padding: 4px 6px; font-size: .85rem; }
/* sino */
.pat-sino-wrap { position: relative; display: inline-flex; }
button.pat-sino { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; }
.pat-sino-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.pat-sino-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 14px 40px rgba(15,23,42,.18); z-index: 9000; padding: 6px; }
.pat-sino-cab { font-weight: 700; padding: 8px 10px; color: #0f172a; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
body button.pat-sino-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: #fff; color: #0f172a; border: 0; border-left: 4px solid #94a3b8; border-radius: 6px; padding: 8px 10px; margin: 4px 0; box-shadow: none; }
body button.pat-sino-item:hover { background: #f8fafc; }
body button.pat-sino-item.alerta { border-left-color: #dc2626; }
body button.pat-sino-item.aviso { border-left-color: #f59e0b; }
body button.pat-sino-item small { color: #64748b; font-weight: 400; }
.pat-sino-vazio { color: #64748b; padding: 10px; margin: 0; }
/* logo STRATA (Solução em Software) no rodapé do menu: cartão branco para aparecer no fundo verde */
html body.skin-pro.op-layout img.strataDevLogo.strataLogoNova,
html[data-edition="igreja"] body img.strataDevLogo.strataLogoNova,
img.strataDevLogo.strataLogoNova {
  display: block !important;
  width: 100% !important;
  max-width: 190px !important;
  max-height: none !important;
  height: auto !important;
  margin: 4px auto 0 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
/* retomada da sessão ao recarregar: não mostra a tela de login (volta direto na mesma tela) */
html.pat-retomando #login-screen { visibility: hidden !important; }
html.pat-retomando body { background: #f4f6f8; }
/* leitura contínua pela câmera */
.scan-continuo .scan-card { max-width: 520px; width: 96vw; }
.scan-video-wrap { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.scan-video-wrap video { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.scan-mira { position: absolute; inset: 18% 22%; border: 3px solid rgba(20, 184, 166, .9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.scan-status { margin: 10px 0 4px; padding: 10px 12px; border-radius: 8px; background: #f1f5f9; font-weight: 600; min-height: 22px; }
.scan-status.ok { background: #dcfce7; color: #166534; }
.scan-status.erro { background: #fee2e2; color: #991b1b; }
.scan-conta { color: #475569; font-size: .9rem; }
body button.gp-btn-camera { background: #0f766e; color: #fff; }
/* galeria de fotos do bem */
.it-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; width: 100%; margin-bottom: 8px; }
.it-gal-foto { margin: 0; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.it-gal-foto.principal { border-color: #0d9488; }
.it-gal-foto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.it-gal-foto figcaption { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.it-gal-tag { font-size: .75rem; font-weight: 700; color: #0f766e; text-align: center; padding: 3px 0; }
body button.it-gal-btn { background: transparent; color: #0f766e; border: 0; box-shadow: none; font-size: .78rem; padding: 3px 4px; min-height: 0; }
body button.it-gal-btn.danger-txt { color: #b91c1c; }
.it-gal-add { display: inline-flex; align-items: center; justify-content: center; margin: 2px 8px 2px 0; padding: 9px 14px; border: 2px dashed #94a3b8; border-radius: 10px; cursor: pointer; font-weight: 600; color: #0f766e; background: #f8fafc; }
.it-gal-add:hover { border-color: #0d9488; background: #f0fdfa; }
.it-foto-row { flex-wrap: wrap; }
/* ===== celular: tabelas viram cartões, botões grandes ===== */
.mv-aceite table td, .mv-aceite table th { padding: 8px 10px; }
.mv-aceite-acoes { white-space: nowrap; }
@media (max-width: 760px) {
  .gp-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gp-kpi { padding: 10px 12px; }
  .gp-kpi b { font-size: 1.1rem; }
  .gp-kpi small { display: none; }
  .gp-duas { grid-template-columns: 1fr; }
  .gp-tabela-wrap { border: 0; background: transparent; overflow: visible; }
  .gp-tabela, .gp-tabela tbody, .gp-tabela tfoot, .gp-tabela tr, .gp-tabela td { display: block; width: 100%; box-sizing: border-box; }
  .gp-tabela thead { display: none; }
  .gp-tabela tbody tr, .gp-tabela tfoot tr { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin: 0 0 10px; padding: 8px 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
  .gp-tabela tfoot tr { background: #f0fdfa; }
  .gp-tabela td { border: 0 !important; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; min-height: 26px; }
  .gp-tabela td::before { content: attr(data-l); font-weight: 600; color: #64748b; text-align: left; flex: 0 0 auto; max-width: 48%; }
  .gp-tabela td[data-l=""]::before, .gp-tabela td:empty { display: none; }
  .gp-tabela td.num { text-align: right; }
  .gp-tabela-inv td { flex-wrap: wrap; }
  .gp-tabela-inv td select, .gp-tabela-inv td input { flex: 1 1 60%; min-height: 42px; font-size: 16px; }
  .gp-tabela-inv tr.gp-lido { border-color: #22c55e; background: #f0fdf4; }
  .gp-tabela-inv tr.gp-alerta { border-color: #fca5a5; }
  .gp-barra { gap: 8px; }
  .gp-barra > button, .gp-filtros-acoes button, .gp-cab button, .row-actions button { min-height: 44px; }
  .gp-busca { flex-basis: 100%; min-height: 44px; font-size: 16px; }
  .gp-filtros .field { min-width: 100%; }
  .gp-filtros-acoes { width: 100%; }
  .gp-filtros-acoes button { flex: 1; }
  body button.gp-btn-camera { width: 100%; font-size: 1.05rem; padding: 14px; }
  .gp-pag { justify-content: space-between; }
  .gp-pag span { font-size: .8rem; text-align: center; }
  .grid-form { grid-template-columns: 1fr !important; }
  .it-galeria { grid-template-columns: repeat(3, 1fr); }
  .pat-faixa { left: 8px; right: 8px; transform: none; bottom: 10px; flex-wrap: wrap; }
  .pat-sino-pop { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; }
  .mv-aceite table, .mv-aceite tbody, .mv-aceite tr, .mv-aceite td { display: block; width: 100%; }
  .mv-aceite thead { display: none; }
  .mv-aceite tr { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .mv-aceite td::before { content: attr(data-l); display: block; font-size: .75rem; color: #64748b; font-weight: 600; }
  .mv-aceite-acoes { white-space: normal; display: flex !important; gap: 8px; }
  .mv-aceite-acoes button { flex: 1; min-height: 44px; }
  .gp-rel-grupos { grid-template-columns: 1fr; }
  .gp-cad-grade { grid-template-columns: 1fr; }
}
.aj-passos { padding-left: 20px; line-height: 1.55; }
.aj-passos li { margin: 6px 0; }
