/* Complementos do Mosaic Igreja sobre o padrão visual Mosaic (mosaic.css) */
[hidden] { display: none !important; }

/* usuário na topbar */
.usuario-box { display: flex; align-items: center; gap: 10px; padding-left: 4px; }
.usuario-box b { display: block; font-size: 13px; }
.usuario-box small { display: block; font-size: 11.5px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 34px; }

/* formulários */
.form-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; margin: 18px 0 10px; display: flex; gap: 10px; align-items: center; }
.form-sec:first-child { margin-top: 0; }
.form-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field.full { grid-column: 1 / -1; }
.field.dupla { grid-column: span 2; }
.field input, .field select, .field textarea { height: 36px; width: 100%; }
.field textarea { height: auto; min-height: 70px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.checks label:hover { background: #f8f9fd; }
.checks input { width: 16px; height: 16px; accent-color: var(--navy); }
.check-linha { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.check-linha input { width: 16px; height: 16px; accent-color: var(--navy); }
.seg { display: inline-flex; background: #eef1f8; padding: 3px; border-radius: 10px; gap: 2px; }
.seg button { font-family: var(--font); border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button.on[data-v="receita"] { background: var(--good); color: #fff; }
.seg button.on[data-v="despesa"] { background: var(--bad); color: #fff; }
.seg button.on[data-v="transferencia"] { background: var(--blue); color: #fff; }
.input-valor { font-family: var(--font-num); font-weight: 600; text-align: right; }

/* ações e listas */
.page-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; }
.page-actions .grow { flex: 1; }
.acoes-linha { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.v-rec { color: var(--good); font-weight: 600; }
.v-des { color: var(--bad); font-weight: 600; }
.v-trf { color: var(--blue); font-weight: 600; }
.sub-linha { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.lista-simples { list-style: none; padding: 0; margin: 0; }
.lista-simples li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f2f7; font-size: 13px; }
.lista-simples li:last-child { border-bottom: 0; }

/* gráfico de barras (SVG) */
.grafico svg { width: 100%; height: 260px; display: block; }
.legenda { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* relatório (prestação de contas) */
.relatorio { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; max-width: 1000px; margin: 0 auto; }
.rel-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 18px; }
.rel-cab h2 { color: var(--navy); font-size: 20px; }
.rel-cab .igreja { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.rel-cab img { width: 150px; }
.rel-titulo { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.rel-periodo { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.rel-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); font-weight: 800; margin: 22px 0 8px; }
.rel-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rel-resumo div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rel-resumo span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.rel-resumo b { display: block; font-family: var(--font-num); font-size: 17px; margin-top: 4px; }
.rel-resumo .destaque { background: rgba(26, 11, 143, .05); border-color: rgba(26, 11, 143, .2); }
.assinaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; text-align: center; font-size: 12px; }
.assinaturas div { border-top: 1px solid var(--ink); padding-top: 6px; }
.assinaturas small { display: block; color: var(--muted); }
.rel-rodape { margin-top: 28px; font-size: 10.5px; color: var(--muted); text-align: right; }

@media (max-width: 860px) {
  .usuario-box div { display: none; }
  .field.dupla { grid-column: auto; }
  .relatorio { padding: 18px; }
  .rel-cab { flex-direction: column-reverse; }
  .assinaturas { grid-template-columns: 1fr; gap: 40px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { display: block; }
  .main { display: block !important; }
  .page-actions, .modal, .toast { display: none !important; }
  .relatorio { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  table.t th { position: static; }
  table.t tr { page-break-inside: avoid; }
  .assinaturas { page-break-inside: avoid; }
}
