/* sistemaigreja — tema claro (administração igreja) — design tokens SaaS premium */
:root {
  --ig-bg: #f7f7f5;
  --ig-surface: #ffffff;
  --ig-surface-muted: #f9f9f7;
  --ig-line: #e5e7eb;
  --ig-text: #0f172a;
  --ig-muted: #64748b;
  --ig-accent: #0369a1;
  --ig-primary: #0369a1;
  --ig-accent-hover: #0284c7;
  --ig-accent-soft: #e0f2fe;
  --ig-positive: #15803d;
  --ig-negative: #dc2626;
  --ig-radius: 14px;
  --ig-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);

  /* Layout — sidebar alinhada ao offset de header/conteúdo */
  --ig-sidebar-width: 272px;
  --ig-sidebar-width-collapsed: 78px;
  --ig-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ig-duration-fast: 0.15s;
  --ig-duration: 0.22s;

  /* Cartão / painel — vocabulário único (Stripe / dashboard SaaS) */
  --ig-card-radius: 14px;
  --ig-card-padding-y: 16px;
  --ig-card-padding-x: 18px;
  --ig-card-border: 1px solid #e5e7eb;
  --ig-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ig-card-elev-shadow: 0 2px 4px rgba(15, 23, 42, 0.07), 0 8px 18px rgba(15, 23, 42, 0.1), 0 20px 44px rgba(15, 23, 42, 0.14);
  --ig-card-elev-shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.08), 0 14px 28px rgba(15, 23, 42, 0.12), 0 28px 56px rgba(15, 23, 42, 0.16);
  --ig-sidebar-bg: linear-gradient(180deg, #0369a1 0%, #02466e 100%);
  --ig-sidebar-bg-2: #02466e;
  --ig-sidebar-text: #ffffff;
  --ig-sidebar-muted: rgba(255, 255, 255, 0.62);
  --ig-sidebar-border: rgba(255, 255, 255, 0.12);
  --ig-sidebar-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1), 4px 0 18px rgba(3, 105, 161, 0.42), 8px 0 36px rgba(15, 23, 42, 0.28);

  /* Tipografia — hierarquia */
  --ig-font-page-title: clamp(1.22rem, 2.2vw, 1.52rem);
  --ig-font-section: 1.0625rem;
  --ig-font-card-title: 0.8125rem;
  --ig-font-label: 0.6875rem;
  --ig-font-body: 0.875rem;
  --ig-font-small: 0.8125rem;
  --ig-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Espaçamento — área principal */
  --ig-space-content-x: clamp(16px, 2.4vw, 28px);
  --ig-space-content-y: clamp(14px, 1.9vw, 24px);
  --ig-space-stack: 1.125rem;

  /* Controles */
  --ig-btn-height: 38px;
  --ig-input-height: 40px;
  --ig-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;

  /* Design system — linguagem visual única */
  --ig-ui-radius-sm: 8px;
  --ig-ui-radius-md: 10px;
  --ig-ui-radius-lg: 12px;
  --ig-ui-radius-xl: 16px;
  --ig-ui-border: 1px solid #e5e7eb;
  --ig-ui-border-muted: 1px solid #e5e7eb;
  --ig-ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ig-ui-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.06);
  --ig-ui-focus: 0 0 0 2px var(--ig-surface), 0 0 0 4px rgba(3, 105, 161, 0.28);
  --ig-ui-focus-danger: 0 0 0 2px var(--ig-surface), 0 0 0 4px rgba(220, 38, 38, 0.22);
  --ig-ui-pending-bg: #fffbeb;
  --ig-ui-pending-border: rgba(245, 158, 11, 0.38);
  --ig-ui-pending-text: #92400e;
  --ig-ui-ok-bg: #f0fdf4;
  --ig-ui-ok-border: rgba(34, 197, 94, 0.35);
  --ig-ui-ok-text: #14532d;
  --ig-ui-danger-bg: #fff1f2;
  --ig-ui-danger-border: rgba(248, 113, 113, 0.42);
  --ig-ui-danger-text: #b91c1c;
  --ig-ui-neutral-bg: #f8fafc;
  --ig-ui-neutral-border: rgba(148, 163, 184, 0.35);
  --ig-ui-neutral-text: #475569;
  --ig-ui-info-bg: #e0f2fe;
  --ig-ui-info-border: rgba(3, 105, 161, 0.35);
  --ig-ui-info-text: #0c4a6e;
  --ig-ui-warn-bg: #fffbeb;
  --ig-ui-warn-border: rgba(245, 158, 11, 0.38);
  --ig-ui-warn-text: #92400e;
  --ig-ui-loading-bg: #f1f5f9;
  --ig-ui-loading-border: rgba(148, 163, 184, 0.45);
  --ig-ui-loading-text: #475569;
  --ig-ui-space-section: 14px;
  --ig-ui-space-block: 12px;
  --ig-ui-radius-pill: 999px;

  /* Pilha de empilhamento — evita “guerra” de z-index entre layout, modais e dicas */
  --ig-z-base: 1;
  --ig-z-header: 100;
  --ig-z-sidebar: 90;
  --ig-z-sticky: 120;
  --ig-z-dropdown: 400;
  --ig-z-lancModal: 8000;
  --ig-z-igModal: 8200;
  --ig-z-tooltip: 8300;
}

/* Carregamento por aba — overlay leve durante fetch/init (navegação SaaS) */
body.sistemaigreja .tabpane.ig-tab-skeleton-active {
  position: relative;
}
body.sistemaigreja .tabpane.ig-tab-skeleton-active::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 40;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(255, 255, 255, 0) 96%
  );
  background-size: 220% 100%;
  animation: igTabSkeletonShimmer 1.15s ease-in-out infinite;
}
@keyframes igTabSkeletonShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

body.sistemaigreja {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ig-font-ui);
  background: var(--ig-bg);
  color: var(--ig-text);
  letter-spacing: 0.01em;
  padding: 12px;
}

body.sistemaigreja.sidenav-on {
  padding-left: 0;
}

body.sistemaigreja *,
body.sistemaigreja *::before,
body.sistemaigreja *::after {
  box-sizing: border-box;
}

body.sistemaigreja .wrap {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

body.sistemaigreja.sidenav-on .wrap {
  max-width: none;
  margin: 0;
  width: 100%;
}

body.sistemaigreja .layout {
  min-width: 0;
}

body.sistemaigreja.sidenav-on .wrap > .top {
  margin-left: var(--ig-sidebar-width);
}

body.sistemaigreja.sidenav-on.sidenav-collapsed .wrap > .top {
  margin-left: var(--ig-sidebar-width-collapsed);
}

body.sistemaigreja .content {
  margin-left: 0;
  padding: var(--ig-space-content-y) var(--ig-space-content-x) 28px;
  min-width: 0;
}

body.sistemaigreja.sidenav-on .content {
  margin-left: var(--ig-sidebar-width);
}

body.sistemaigreja.sidenav-on.sidenav-collapsed .content {
  margin-left: var(--ig-sidebar-width-collapsed);
}

body.sistemaigreja .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: var(--ig-card-border);
  border-radius: var(--ig-card-radius);
  background: var(--ig-surface);
  box-shadow: var(--ig-card-shadow);
}

body.sistemaigreja .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.sistemaigreja .brandMark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ig-accent), #0284c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

body.sistemaigreja .brandLogoImg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  background: #fff;
}

body.sistemaigreja .headerObs {
  margin-top: 6px;
  font-size: 0.78rem;
  max-width: 520px;
  line-height: 1.4;
}

body.sistemaigreja .titleBlock h1 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ig-text);
  line-height: 1.2;
}

body.sistemaigreja .titleBlock .subtitle {
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ig-muted);
  line-height: 1.35;
}

body.sistemaigreja .topActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Botões — primário / secundário (padrão) / perigo */
body.sistemaigreja .igBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: var(--ig-btn-height);
  padding: 0 14px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--ig-surface);
  color: var(--ig-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.sistemaigreja .igBtn:hover {
  border-color: rgba(100, 116, 139, 0.55);
  background: #f8fafc;
}

body.sistemaigreja .igBtn:focus-visible {
  outline: none;
  box-shadow: var(--ig-ui-focus);
}

body.sistemaigreja .igBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-accent);
  border-color: var(--ig-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .igBtnPrimary:hover {
  background: var(--ig-accent-hover);
  border-color: var(--ig-accent-hover);
}

body.sistemaigreja .igBtnPrimary:focus-visible {
  box-shadow: var(--ig-ui-focus);
}

body.sistemaigreja .igBtnDanger {
  border-color: rgba(252, 165, 165, 0.85);
  background: linear-gradient(180deg, #fff1f2 0%, #fef2f2 100%);
  color: var(--ig-ui-danger-text);
}

body.sistemaigreja .igBtnDanger:hover {
  background: #ffe4e6;
  border-color: #f87171;
  color: #991b1b;
}

body.sistemaigreja .igBtnDanger:focus-visible {
  box-shadow: var(--ig-ui-focus-danger);
}

body.sistemaigreja .lancPanel .lancModeBar {
  margin-bottom: 10px;
}

body.sistemaigreja .lancModePill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--ig-accent-soft);
  color: #0c4a6e;
  border: 1px solid #bae6fd;
}

body.sistemaigreja .lancPanel .lancFormTitle {
  margin-top: 0;
}

body.sistemaigreja .lancListaResumo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ig-text);
  margin: 0 0 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border: 1px solid var(--ig-line);
}

body.sistemaigreja .lancListaResumo.muted {
  color: var(--ig-muted);
  font-weight: 500;
  background: #f8fafc;
}

body.sistemaigreja tr.contaRowInativa td {
  opacity: 0.72;
}

body.sistemaigreja td.num.contaSaldoPos {
  color: var(--ig-positive);
  font-weight: 700;
}

body.sistemaigreja td.num.contaSaldoNeg {
  color: var(--ig-negative);
  font-weight: 700;
}

/* Tesouraria (área gerencial) */
body.sistemaigreja .pageHead--tesouraria h2 {
  letter-spacing: -0.02em;
}

body.sistemaigreja .tesourariaShell {
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius);
  box-shadow: var(--ig-shadow);
  padding: 16px 18px 20px;
  margin-bottom: 16px;
}

body.sistemaigreja .tesourariaSubnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ig-line);
}

body.sistemaigreja .tesourariaSubtab {
  border: 1px solid var(--ig-line);
  background: #f8fafc;
  color: var(--ig-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

body.sistemaigreja .tesourariaSubtab:hover {
  border-color: #cbd5e1;
  background: #fff;
}

body.sistemaigreja .tesourariaSubtab.active {
  background: var(--ig-accent);
  border-color: var(--ig-accent);
  color: #fff;
}

body.sistemaigreja .tesourariaPane {
  display: none;
}

body.sistemaigreja .tesourariaPane.active {
  display: block;
}

body.sistemaigreja .panel--tesourariaBlock {
  margin-bottom: 0;
  box-shadow: none;
  border: 1px solid var(--ig-line);
}

body.sistemaigreja .tesourariaBlockTitle {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
}

body.sistemaigreja .tesourariaBlockLead {
  margin: 0 0 14px 0;
}

body.sistemaigreja .tesourariaAnaliseAuto {
  margin: 0 0 14px 0;
  padding: 12px 14px 14px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .tesourariaAnaliseAuto__title {
  margin: 0 0 8px 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja .tesourariaAnaliseAuto__line {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ig-text);
}

body.sistemaigreja .tesourariaAnaliseAuto__line:last-child {
  margin-bottom: 0;
}

body.sistemaigreja .tesourariaKpiHelpBar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px 0;
}

body.sistemaigreja .tesBtnInfo {
  border: none;
  background: transparent;
  color: var(--ig-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  font-family: inherit;
  border-radius: 8px;
}

body.sistemaigreja .tesBtnInfo:hover {
  color: var(--ig-accent);
  background: rgba(3, 105, 161, 0.06);
}

body.sistemaigreja .tesKpiAjudaBody {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

body.sistemaigreja .tesKpiAjudaBody p {
  margin: 0 0 12px 0;
}

body.sistemaigreja .tesKpiAjudaBody p:last-child {
  margin-bottom: 0;
}

body.sistemaigreja .tesourariaExecutive {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

body.sistemaigreja .tesourariaKpiHero {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 55%, #eef2ff 100%);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .tesourariaKpiHero__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 4px 0;
}

body.sistemaigreja .tesourariaKpiHero__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ig-text);
  letter-spacing: -0.02em;
}

body.sistemaigreja .tesourariaKpiHero__label--solo {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja .tesourariaKpiHero__hint {
  margin: 6px 0 10px 0;
  font-size: 0.78rem;
  color: var(--ig-muted);
  line-height: 1.35;
  max-width: 640px;
}

body.sistemaigreja .tesourariaKpiHero__val {
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja .tesourariaKpiHero__val.is-positive {
  color: var(--ig-positive);
}

body.sistemaigreja .tesourariaKpiHero__val.is-negative {
  color: var(--ig-negative);
}

body.sistemaigreja .tesourariaExecRowDense {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 720px) {
  body.sistemaigreja .tesourariaExecRowDense {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .tesourariaKpiHero--compact {
  padding: 12px 14px 14px;
}

body.sistemaigreja .tesourariaKpiHero--compact .tesourariaKpiHero__val {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
}

body.sistemaigreja .tesourariaKpiTendencia--compact {
  padding: 12px 14px 14px;
}

body.sistemaigreja .tesourariaKpiTendencia--compact .tesourariaKpiTendencia__text {
  font-size: 0.95rem;
}

body.sistemaigreja .tesourariaKpiDecision,
body.sistemaigreja .tesourariaKpiTendencia {
  padding: 14px 16px;
  border-radius: var(--ig-ui-radius-md);
  border: var(--ig-ui-border);
  background: var(--ig-surface);
  min-height: 0;
}

body.sistemaigreja .tesourariaKpiDecision--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 200px;
  padding: 28px 22px 26px;
  border-radius: var(--ig-ui-radius-lg);
  border: 2px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: var(--ig-ui-shadow-md);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok {
  border-color: #14532d;
  background: linear-gradient(165deg, #14532d 0%, #166534 38%, #15803d 72%, #22c55e 100%);
  box-shadow: 0 16px 40px rgba(22, 101, 52, 0.42);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no {
  border-color: #7f1d1d;
  background: linear-gradient(165deg, #7f1d1d 0%, #991b1b 40%, #b91c1c 78%, #dc2626 100%);
  box-shadow: 0 16px 40px rgba(127, 29, 29, 0.4);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk {
  border-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 42%, #fde68a 100%);
  box-shadow: 0 14px 36px rgba(180, 83, 9, 0.22);
}

body.sistemaigreja .tesourariaKpiDecision__label--hero {
  margin: 0 0 6px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiDecision__label--hero,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiDecision__label--hero {
  color: rgba(255, 255, 255, 0.88);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiDecision__label--hero {
  color: #92400e;
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict {
  margin: 10px 0 12px 0;
  font-size: clamp(1.2rem, 4.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict.tesourariaKpiDecision__msg--ok,
body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict.tesourariaKpiDecision__msg--no {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict.tesourariaKpiDecision__msg--risk {
  color: #78350f;
  text-shadow: none;
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict:empty {
  display: none;
  margin: 0;
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__valor {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__valor.is-positive,
body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__valor.is-negative {
  color: rgba(255, 255, 255, 0.95);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiDecision__valor {
  color: #451a03;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiDecision__valor.is-positive {
  color: #14532d;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiDecision__valor.is-negative {
  color: #991b1b;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiDecision__valor.is-neutral {
  color: #78350f;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesDecisaoTopo {
  min-height: 228px;
  margin-bottom: 22px;
}

body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__subLabel {
  margin: 0 0 10px 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiDecision__subLabel.muted,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiDecision__subLabel.muted {
  color: rgba(255, 255, 255, 0.78) !important;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiDecision__subLabel.muted {
  color: rgba(120, 53, 15, 0.82) !important;
}

body.sistemaigreja .tesourariaKpiRiskBand {
  width: 100%;
  max-width: 320px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiRiskBand {
  border-top-color: rgba(255, 255, 255, 0.22);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiRiskBand {
  border-top-color: rgba(255, 255, 255, 0.2);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiRiskBand {
  border-top-color: rgba(120, 53, 15, 0.2);
}

body.sistemaigreja .tesourariaKpiRiskBand__caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 8px;
  text-align: center;
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiRiskBand__caption,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiRiskBand__caption {
  color: rgba(255, 255, 255, 0.72);
}

body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--risk .tesourariaKpiRiskBand__caption {
  color: rgba(120, 53, 15, 0.75);
}

body.sistemaigreja .tesourariaKpiRiskBand__row {
  display: flex;
  gap: 6px;
  width: 100%;
}

body.sistemaigreja .tesourariaKpiRiskBand__cell {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  opacity: 0.38;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.sistemaigreja .tesourariaKpiRiskBand__cell--neg {
  background: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%);
  color: #7f1d1d;
}

body.sistemaigreja .tesourariaKpiRiskBand__cell--risk {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

body.sistemaigreja .tesourariaKpiRiskBand__cell--ok {
  background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
  color: #14532d;
}

body.sistemaigreja .tesourariaKpiRiskBand__cell.is-active {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.22);
}

body.sistemaigreja .tesourariaKpiDecision--ok:not(.tesourariaKpiDecision--hero) {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
}

body.sistemaigreja .tesourariaKpiDecision--no:not(.tesourariaKpiDecision--hero) {
  border-color: rgba(248, 113, 113, 0.45);
  background: var(--ig-ui-danger-bg);
}

body.sistemaigreja .tesourariaKpiDecision--risk:not(.tesourariaKpiDecision--hero) {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}

body.sistemaigreja .tesourariaKpiDecision__eyebrow,
body.sistemaigreja .tesourariaKpiTendencia__eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 4px 0;
}

body.sistemaigreja .tesourariaKpiDecision__label,
body.sistemaigreja .tesourariaKpiTendencia__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ig-text);
  letter-spacing: -0.02em;
}

body.sistemaigreja .tesourariaKpiTendencia__label.tesourariaKpiTendencia__label--solo {
  margin: 0 0 10px 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja .tesourariaKpiDecision__hint,
body.sistemaigreja .tesourariaKpiTendencia__hint {
  margin: 6px 0 10px 0;
  font-size: 0.74rem;
  color: var(--ig-muted);
  line-height: 1.35;
}

body.sistemaigreja .tesourariaKpiDecision__val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

body.sistemaigreja .tesourariaKpiDecision__val.is-positive {
  color: var(--ig-positive);
}

body.sistemaigreja .tesourariaKpiDecision__val.is-negative {
  color: var(--ig-negative);
}

body.sistemaigreja .tesourariaKpiDecision__msg {
  margin: 8px 0 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

body.sistemaigreja .tesourariaKpiDecision__msg--ok {
  color: #15803d;
}

body.sistemaigreja .tesourariaKpiDecision__msg--no {
  color: var(--ig-ui-danger-text);
}

body.sistemaigreja .tesourariaKpiDecision__msg--risk {
  color: #b45309;
}

body.sistemaigreja .tesourariaKpiTendencia__text {
  margin: 4px 0 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

body.sistemaigreja .tesourariaKpiTendencia__text--up {
  color: #15803d;
}

body.sistemaigreja .tesourariaKpiTendencia__text--down {
  color: #b91c1c;
}

body.sistemaigreja .tesourariaKpiTendencia__text--flat {
  color: #64748b;
}

body.sistemaigreja .tesourariaKpiTendencia__text--warn {
  color: var(--ig-ui-pending-text);
}

body.sistemaigreja .tesourariaKpiTendencia--up {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(145deg, #f8fffb 0%, #f0fdf4 100%);
}

body.sistemaigreja .tesourariaKpiTendencia--down {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(145deg, #fffafa 0%, #fff1f2 100%);
}

body.sistemaigreja .tesourariaKpiTendencia--flat {
  border-color: rgba(226, 232, 240, 0.95);
  background: #f8fafc;
}

body.sistemaigreja .tesourariaKpiTendencia--warn {
  border-color: var(--ig-ui-pending-border);
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}

body.sistemaigreja .tesourariaKpiRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 960px) {
  body.sistemaigreja .tesourariaKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.sistemaigreja .tesourariaKpiRow {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .tesourariaKpiMini {
  padding: 12px 14px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: var(--ig-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.sistemaigreja .tesourariaKpiMini__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-muted);
  margin: 0 0 6px 0;
}

body.sistemaigreja .tesourariaKpiMini__hint {
  margin: -2px 0 6px 0;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.25;
}

body.sistemaigreja .tesourariaKpiMini__val {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ig-text);
}

body.sistemaigreja .tesourariaKpiMini__val.is-positive {
  color: var(--ig-positive);
}

body.sistemaigreja .tesourariaKpiMini__val.is-negative {
  color: var(--ig-negative);
}

body.sistemaigreja .tesourariaAlertas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px 0;
}

body.sistemaigreja .tesourariaAlert {
  padding: 10px 14px;
  border-radius: var(--ig-ui-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

body.sistemaigreja .tesourariaAlert--danger {
  background: var(--ig-ui-danger-bg);
  border: 1px solid var(--ig-ui-danger-border);
  color: var(--ig-ui-danger-text);
}

body.sistemaigreja .tesourariaAlert--warn {
  background: var(--ig-ui-pending-bg);
  border: 1px solid var(--ig-ui-pending-border);
  color: var(--ig-ui-pending-text);
}

body.sistemaigreja .tesourariaFilters {
  margin-bottom: 12px;
}

body.sistemaigreja .tesourariaFilters--compact.filtrosGrid {
  gap: 8px 12px;
  row-gap: 8px;
  margin-bottom: 10px;
}

body.sistemaigreja .tesourariaFilters--compact .igLab {
  gap: 4px;
}

body.sistemaigreja .tesourariaFilters--compact .igLab input,
body.sistemaigreja .tesourariaFilters--compact .igLab select {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.88rem;
}

body.sistemaigreja .tesourariaFiltrosBtns {
  padding-top: 2px;
}

body.sistemaigreja .igBtnTesSecondary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  box-shadow: none;
}

body.sistemaigreja .igBtnTesSecondary:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--ig-text);
}

body.sistemaigreja .tesourariaTableWrap {
  margin-top: 2px;
}

body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-muted {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-conta {
  font-weight: 800;
  font-size: 0.82rem;
}

body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-ent,
body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-sai,
body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-saldo,
body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-pend-ent,
body.sistemaigreja table.igTable--tesourariaSaldos thead th.col-tes-pend-sai {
  font-weight: 800;
  font-size: 0.78rem;
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellMuted {
  color: #94a3b8;
  font-size: 0.88rem;
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellConta {
  font-weight: 700;
  color: var(--ig-text);
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellEnt {
  font-weight: 700;
  color: #166534;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellSai {
  font-weight: 700;
  color: #9a3412;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellSaldoFinal {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellPendEnt {
  font-weight: 600;
  color: #0284c7;
  background: rgba(3, 105, 161, 0.06);
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja table.igTable--tesourariaSaldos tbody td.tesCellPendSai {
  font-weight: 600;
  color: #c2410c;
  background: rgba(251, 146, 60, 0.12);
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja .panel--tesourariaPlaceholder {
  text-align: center;
  padding: 28px 20px 32px;
}

body.sistemaigreja .tesourariaPlaceholderText {
  max-width: 520px;
  margin: 0 auto 16px;
  font-size: 0.95rem;
  color: var(--ig-text);
  line-height: 1.5;
}

body.sistemaigreja .tesourariaEvolutionBadge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  color: #0c4a6e;
  border: 1px solid #bae6fd;
  margin-bottom: 14px;
}

body.sistemaigreja .tesourariaPlaceholderHint {
  margin: 0;
  font-size: 0.85rem;
}

body.sistemaigreja .lancActions,
body.sistemaigreja .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.sistemaigreja .filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.sistemaigreja .filtros > .igLab {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
}

body.sistemaigreja .filtrosGrid .filtrosBtns,
body.sistemaigreja .filtros .filtrosBtns {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.sistemaigreja table.igTable tbody tr {
  transition: background-color 0.15s ease;
}

body.sistemaigreja table.igTable tr.rowSelected td {
  background: linear-gradient(90deg, rgba(3, 105, 161, 0.12) 0%, #e0f2fe 12%) !important;
  box-shadow: inset 3px 0 0 var(--ig-accent);
}

body.sistemaigreja table.igTable .cellActions {
  white-space: nowrap;
}

body.sistemaigreja table.igTable .cellActions .igBtnSm {
  margin-right: 4px;
}

body.sistemaigreja table.igTable .cellActions .igBtnSm:last-child {
  margin-right: 0;
}

body.sistemaigreja .igBtnPremium {
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  border-color: #0284c7;
  color: #fff;
  font-weight: 700;
}

body.sistemaigreja .igBtnPremium:hover {
  filter: brightness(1.06);
  border-color: #0c4a6e;
}

body.sistemaigreja .igBtnPremium:focus-visible {
  outline: none;
  box-shadow: var(--ig-ui-focus);
}

/* Sidebar + layout principal */
body.sistemaigreja .sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: var(--ig-sidebar-width);
  height: 100vh;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ig-sidebar-bg, var(--ig-surface));
  border-right: 1px solid var(--ig-sidebar-border, var(--ig-line));
  box-shadow: var(--ig-shadow);
}

body.sistemaigreja.sidenav-on .sidebar {
  display: block;
}

body.sistemaigreja.sidenav-collapsed .sidebar {
  width: var(--ig-sidebar-width-collapsed);
}

body.sistemaigreja .sidebar .sideNav {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 100%;
  height: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

body.sistemaigreja .sideNav {
  background: var(--ig-sidebar-bg, var(--ig-surface));
}

body.sistemaigreja .sideNavHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ig-line);
}

body.sistemaigreja .sideNavIcon {
  width: 36px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--ig-line);
  background: #f8fafc;
  cursor: pointer;
}

body.sistemaigreja .sideNavTitle {
  font-weight: 600;
  font-size: 0.9rem;
}

body.sistemaigreja .sideNavBody {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.sistemaigreja .sideItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ig-text);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
}

body.sistemaigreja .sideItem:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

body.sistemaigreja .sideItem.active {
  background: var(--ig-accent-soft);
  border-color: transparent;
  color: var(--ig-accent);
}

body.sistemaigreja.sidenav-collapsed .sidebar .sideNav {
  width: 100%;
}

body.sistemaigreja.sidenav-collapsed .sideNavTitle,
body.sistemaigreja.sidenav-collapsed .sideNavKicker,
body.sistemaigreja.sidenav-collapsed .sideNavSection .sideItem span {
  display: none;
}

body.sistemaigreja.sidenav-collapsed .sideNavPinned {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.sistemaigreja.sidenav-collapsed .sideNavPinned .sideItem {
  justify-content: center;
  padding: 10px 6px;
}

body.sistemaigreja.sidenav-collapsed .sideNavPinned .sideItemGlyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.88;
}

body.sistemaigreja.sidenav-collapsed .sideNavPinned .sideItemStack {
  display: none;
}

@media (max-width: 900px) {
  body.sistemaigreja.sidenav-on {
    padding-left: 14px;
  }

  body.sistemaigreja.sidenav-on .wrap > .top,
  body.sistemaigreja.sidenav-on .content {
    margin-left: 0;
  }

  body.sistemaigreja .sidebar {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: auto;
    max-height: 55vh;
    border-radius: var(--ig-radius);
    border: 1px solid var(--ig-line);
  }

  body.sistemaigreja.sidenav-collapsed .sidebar {
    width: auto;
  }
}

/* Panes */
body.sistemaigreja .tabpane {
  display: none;
  margin-top: 12px;
}

body.sistemaigreja .tabpane.active {
  display: block;
}

body.sistemaigreja .pageHead {
  margin-bottom: 12px;
}

body.sistemaigreja .pageHead h2 {
  margin: 0 0 4px 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ig-text);
  line-height: 1.22;
}

body.sistemaigreja .pageHead p {
  margin: 0;
  max-width: 62ch;
  color: var(--ig-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Dashboard Fase 3 — faixa executiva de KPI */
body.sistemaigreja .dashExecStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 0 12px 0;
  padding: 10px 12px;
  max-width: min(1100px, 100%);
  border-radius: var(--ig-ui-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

body.sistemaigreja .dashExecStrip__item {
  padding: 8px 10px;
  border-radius: var(--ig-ui-radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

body.sistemaigreja .dashExecStrip__item--entrada {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
}

body.sistemaigreja .dashExecStrip__item--saida {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.08);
}

body.sistemaigreja .dashExecStrip__lab {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 4px;
}

body.sistemaigreja .dashExecStrip__val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

body.sistemaigreja .dashExecStrip__val--pos {
  color: #86efac;
}

body.sistemaigreja .dashExecStrip__val--neg {
  color: #fca5a5;
}

body.sistemaigreja .dashExecStrip__val--warn {
  color: #fde047;
}

body.sistemaigreja .dashExecStrip__val--muted {
  color: rgba(248, 250, 252, 0.55);
}

body.sistemaigreja .dashExecStrip__item--entrada .dashExecStrip__val {
  color: #bbf7d0;
}

body.sistemaigreja .dashExecStrip__item--saida .dashExecStrip__val {
  color: #fed7aa;
}

/* Dashboard — camada de produto (painel premium) */
body.sistemaigreja .dashHomeCore {
  padding: 14px 16px 6px;
  margin-bottom: 6px;
  border-radius: var(--ig-ui-radius-xl);
  border: 1px solid rgba(3, 105, 161, 0.1);
  background: linear-gradient(165deg, rgba(3, 105, 161, 0.04) 0%, rgba(248, 250, 252, 0.95) 40%, var(--ig-surface) 100%);
  box-shadow: var(--ig-ui-shadow-sm);
}

/* Dashboard principal — foco em decisão */
body.sistemaigreja .dashDecisionGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 18px;
  max-width: min(1100px, 100%);
}

body.sistemaigreja .dashDecCard--homeSaldo {
  border-width: 1.5px;
  border-color: rgba(3, 105, 161, 0.2);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.55) 100%);
}

body.sistemaigreja .dashDecCard {
  margin: 0;
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  background: var(--ig-surface);
  box-shadow: var(--ig-card-shadow);
}

body.sistemaigreja .dashDecCard--span2 {
  grid-column: 1 / -1;
}

body.sistemaigreja .dashDecCardHead {
  margin: 0 0 10px 0;
}

body.sistemaigreja .dashDecEyebrow {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ig-muted);
  font-weight: 800;
  margin-bottom: 4px;
}

body.sistemaigreja .dashDecTitle {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ig-text);
  line-height: 1.25;
}

body.sistemaigreja .dashDecValue {
  margin: 0 0 8px 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ig-text);
}

body.sistemaigreja .dashDecValue.is-positive {
  color: #15803d;
}

body.sistemaigreja .dashDecValue.is-negative {
  color: #b91c1c;
}

body.sistemaigreja .dashDecValue.is-neutral {
  color: var(--ig-muted);
}

body.sistemaigreja .dashDecValue--sub {
  font-size: 1.2rem;
  font-weight: 800;
}

body.sistemaigreja .dashDecValue--saida {
  color: #b45309;
}

body.sistemaigreja .dashDecVerdict {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.sistemaigreja .dashDecVerdict--ok {
  color: #15803d;
}

body.sistemaigreja .dashDecVerdict--risk {
  color: #a16207;
}

body.sistemaigreja .dashDecVerdict--no {
  color: #b91c1c;
}

body.sistemaigreja .dashDecCard--possoOk {
  border-color: rgba(22, 163, 74, 0.38);
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.07) 0%, var(--ig-surface) 52%);
}

body.sistemaigreja .dashDecCard--possoRisk {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(160deg, rgba(254, 240, 138, 0.55) 0%, rgba(253, 230, 138, 0.22) 42%, var(--ig-surface) 100%);
}

/* Dashboard — decisão principal (executivo, enxuto) */
body.sistemaigreja .dashDecCard--decisaoHero {
  text-align: center;
  padding: 20px 20px 22px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .dashDecCard--decisaoHero .dashDecCardHead--decisaoHero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

body.sistemaigreja .dashDecVerdict.dashDecVerdict--hero {
  margin: 0 0 4px 0;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
  max-width: 22ch;
}

body.sistemaigreja .dashDecValorUsoLabel {
  margin: 0 0 6px 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.sistemaigreja .dashDecValue--decisaoHero {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin-bottom: 6px;
}

body.sistemaigreja .dashDecCard--decisaoHero.dashDecCard--possoOk,
body.sistemaigreja .dashDecCard--decisaoHero.dashDecCard--possoRisk,
body.sistemaigreja .dashDecCard--decisaoHero.dashDecCard--possoNo {
  border-width: 2px;
}

body.sistemaigreja .dashDecCard--decisaoHero.dashDecCard--possoOk {
  background: linear-gradient(165deg, rgba(22, 163, 74, 0.12) 0%, rgba(255, 255, 255, 1) 55%);
}

body.sistemaigreja .dashDecCard--decisaoHero.dashDecCard--possoNo {
  background: linear-gradient(165deg, rgba(220, 38, 38, 0.1) 0%, rgba(255, 255, 255, 1) 55%);
}

body.sistemaigreja .dashDecCard--decisaoHero.dashDecCard--possoRisk {
  background: linear-gradient(165deg, rgba(250, 204, 21, 0.12) 0%, rgba(255, 255, 255, 1) 55%);
}

body.sistemaigreja .dashDecCard--possoNo {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(160deg, rgba(220, 38, 38, 0.07) 0%, var(--ig-surface) 52%);
}

body.sistemaigreja .dashDecLead {
  margin: 0 0 8px 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ig-text);
}

body.sistemaigreja .dashDecHint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.sistemaigreja .dashAlertList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.sistemaigreja .dashAlertItem {
  margin: 0;
  padding: 10px 12px 10px 14px;
  border-radius: var(--ig-ui-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid transparent;
  border-left-width: 4px;
  background: rgba(248, 250, 252, 0.9);
}

body.sistemaigreja .dashAlertItem--critico {
  border-left-color: #dc2626;
  background: linear-gradient(90deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(252, 165, 165, 0.45);
  color: #7f1d1d;
}

body.sistemaigreja .dashAlertItem--atencao {
  border-left-color: #ca8a04;
  background: linear-gradient(90deg, rgba(254, 252, 232, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(253, 224, 71, 0.45);
  color: #713f12;
}

body.sistemaigreja .dashAlertItem--info {
  border-left-color: var(--ig-accent);
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(191, 219, 254, 0.55);
  color: #0c4a6e;
}

body.sistemaigreja .dashDecCard--alertas {
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
}

body.sistemaigreja .dashChartsShell {
  margin: 0 0 14px 0;
  padding: 12px 14px 14px;
  max-width: min(1100px, 100%);
  border-radius: var(--ig-ui-radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.45);
}

body.sistemaigreja .dashChartsShell .dashChartsRow {
  margin-bottom: 0;
}

body.sistemaigreja .chartBox--dash {
  padding: 12px 14px;
  border-radius: var(--ig-ui-radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .chartBox--dash h3 {
  margin-bottom: 8px;
  font-size: 0.75rem;
}

body.sistemaigreja .dashMore {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--ig-line);
  background: rgba(248, 250, 252, 0.65);
}

body.sistemaigreja .dashMore--secondary {
  margin-top: 8px;
  padding: 8px 12px 10px;
  border-radius: var(--ig-ui-radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.5);
  opacity: 0.98;
}

body.sistemaigreja .dashMoreSummary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ig-muted);
  list-style: none;
}

body.sistemaigreja .dashMoreSummary::-webkit-details-marker {
  display: none;
}

body.sistemaigreja .dashMore summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ig-text);
}

body.sistemaigreja .dashMore--secondary summary,
body.sistemaigreja .dashMore--secondary .dashMoreSummary {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ig-muted);
}

body.sistemaigreja .dashMoreBody {
  padding-top: 16px;
}

body.sistemaigreja .dashMore--secondary .dashMoreBody {
  padding-top: 12px;
}

body.sistemaigreja .dashMoreMembros {
  margin: 0 0 14px 0;
  font-size: 0.88rem;
}

body.sistemaigreja .dashMore .dashBadges {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  body.sistemaigreja .dashExecStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.sistemaigreja .dashExecStrip {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .dashHomeCore {
    padding: 12px 12px 4px;
    border-radius: var(--ig-ui-radius-lg);
  }

  body.sistemaigreja .dashDecisionGrid {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .dashDecCard--span2 {
    grid-column: 1;
  }
}

body.sistemaigreja .dashChartsRow {
  margin-bottom: var(--ig-ui-space-section);
}

body.sistemaigreja .dashInsights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px 0;
  max-width: min(1100px, 100%);
}

body.sistemaigreja .dashInsights--afterCharts {
  margin: 8px 0 12px 0;
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

body.sistemaigreja .dashInsights--afterCharts .dashInsightsHeadTitle {
  font-size: 0.98rem;
  font-weight: 700;
}

body.sistemaigreja .dashInsights--afterCharts .dashInsightChip {
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.035);
}

body.sistemaigreja .dashInsightsHead {
  padding: 4px 2px 0;
}

body.sistemaigreja .dashInsightsHeadTitle {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ig-text);
}

body.sistemaigreja .dashInsightsHeadSub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 52ch;
}

body.sistemaigreja .dashInsightsChips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

body.sistemaigreja .dashInsightsEmpty {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.sistemaigreja .dashInsightChip {
  flex: 1 1 240px;
  min-width: min(100%, 220px);
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(3, 105, 161, 0.22);
  background: linear-gradient(145deg, rgba(3, 105, 161, 0.06) 0%, rgba(255, 255, 255, 0.98) 48%);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.sistemaigreja .dashInsightChipTitle {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-muted);
  font-weight: 800;
  margin-bottom: 6px;
}

body.sistemaigreja .dashInsightChipBody {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ig-text);
  font-weight: 600;
}

body.sistemaigreja .dashInsightChip--valor {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(145deg, rgba(240, 253, 244, 0.9) 0%, rgba(255, 255, 255, 0.98) 52%);
}

body.sistemaigreja .dashInsightChip--gasto {
  border-color: rgba(180, 83, 9, 0.38);
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%);
}

body.sistemaigreja .dashInsightChip--aviso {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(145deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%);
}

body.sistemaigreja .dashInsightChip--aviso .dashInsightChipTitle {
  color: #b91c1c;
}

body.sistemaigreja .dashInsightChip--tendencia {
  border-color: rgba(3, 105, 161, 0.28);
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.75) 0%, rgba(255, 255, 255, 0.98) 52%);
}

body.sistemaigreja .dashHero {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(280px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: calc(var(--ig-radius) + 2px);
  border: 1px solid var(--ig-line);
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.98) 100%);
  box-shadow: var(--ig-shadow);
}

body.sistemaigreja .dashHero[data-tone="positivo"] {
  background: linear-gradient(135deg, rgba(22,163,74,0.10) 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.98) 100%);
}

body.sistemaigreja .dashHero[data-tone="atencao"] {
  background: linear-gradient(135deg, rgba(245,158,11,0.10) 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.98) 100%);
}

body.sistemaigreja .dashHero[data-tone="negativo"] {
  background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.98) 100%);
}

body.sistemaigreja .dashHeroEyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ig-muted);
  font-weight: 800;
  margin-bottom: 8px;
}

body.sistemaigreja .dashHeroMain h3 {
  margin: 0 0 8px 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

body.sistemaigreja .dashHeroMain p {
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
}

body.sistemaigreja .dashHeroSide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

body.sistemaigreja .dashMiniCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255,255,255,0.72);
}

body.sistemaigreja .dashMiniCardLabel {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ig-muted);
  font-weight: 800;
}

body.sistemaigreja .dashMiniCardValue {
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ig-text);
}

body.sistemaigreja .dashMiniCardDetail {
  font-size: 0.78rem;
  color: var(--ig-muted);
  line-height: 1.4;
}

body.sistemaigreja .kpiGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

body.sistemaigreja .kpiCard {
  background: var(--ig-surface);
  border: var(--ig-card-border);
  border-radius: var(--ig-card-radius);
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  box-shadow: var(--ig-card-shadow);
}

body.sistemaigreja .kpiCard .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-muted);
  font-weight: 700;
}

body.sistemaigreja .kpiCard .val {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 6px;
}

body.sistemaigreja .kpiCard .val.positive {
  color: var(--ig-positive);
}

body.sistemaigreja .kpiCard .val.negative {
  color: var(--ig-negative);
}

body.sistemaigreja .chartRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ig-ui-space-section);
  margin-bottom: var(--ig-ui-space-section);
}

body.sistemaigreja .chartBox {
  background: var(--ig-surface);
  border: var(--ig-card-border);
  border-radius: var(--ig-card-radius);
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  box-shadow: var(--ig-card-shadow);
}

body.sistemaigreja .chartBox h3 {
  margin: 0 0 8px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ig-muted);
  line-height: 1.3;
}

body.sistemaigreja .chartBox canvas {
  max-height: 220px;
}

body.sistemaigreja .panel {
  background: var(--ig-surface);
  border: var(--ig-card-border);
  border-radius: var(--ig-card-radius);
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  margin-bottom: var(--ig-ui-space-section);
  box-shadow: var(--ig-card-shadow);
}

/* Título de cartão / painel — pequeno, claro, hierarquia SaaS */
body.sistemaigreja .panel h3 {
  margin: 0 0 10px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ig-muted);
  line-height: 1.3;
}

body.sistemaigreja .formGrid,
body.sistemaigreja .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ig-ui-space-block) 12px;
  align-items: end;
}

body.sistemaigreja label.igLab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ig-muted);
}

body.sistemaigreja label.igLab input,
body.sistemaigreja label.igLab select,
body.sistemaigreja label.igLab textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--ig-input-height);
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(203, 213, 225, 0.95);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  color: var(--ig-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.sistemaigreja .panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.sistemaigreja .panel select,
body.sistemaigreja .panel textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body.sistemaigreja label.igLab textarea {
  min-height: 64px;
  resize: vertical;
}

body.sistemaigreja .table-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.sistemaigreja .tableScroll {
  overflow: auto;
  max-height: 52vh;
  border: 1px solid var(--ig-line);
  border-radius: 12px;
}

body.sistemaigreja .table-container.tableScroll {
  overflow-x: auto;
  overflow-y: auto;
}

body.sistemaigreja .table-container table.igTable {
  min-width: 640px;
}

body.sistemaigreja table.igTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

body.sistemaigreja table.igTable th,
body.sistemaigreja table.igTable td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ig-line);
}

body.sistemaigreja table.igTable th {
  background: #f8fafc;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

body.sistemaigreja table.igTable tr:hover td {
  background: #f1f5f9;
}

body.sistemaigreja .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja .statusOk:empty,
body.sistemaigreja .statusErr:empty,
body.sistemaigreja .ig-status:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  min-height: 0;
}

body.sistemaigreja .muted {
  color: var(--ig-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

body.sistemaigreja code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--ig-line);
}

body.sistemaigreja .relFinal {
  border-left: 4px solid var(--ig-line);
}

body.sistemaigreja .relFinalTexto {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
}

body.sistemaigreja .relFinal.relFinal--superavit {
  border-left-color: var(--ig-positive);
}

body.sistemaigreja .relFinal.relFinal--superavit .relFinalTexto {
  color: var(--ig-positive);
}

body.sistemaigreja .relFinal.relFinal--deficit {
  border-left-color: var(--ig-negative);
}

body.sistemaigreja .relFinal.relFinal--deficit .relFinalTexto {
  color: var(--ig-negative);
}

body.sistemaigreja .relFinal.relFinal--equilibrio {
  border-left-color: var(--ig-muted);
}

body.sistemaigreja .relFinal.relFinal--equilibrio .relFinalTexto {
  color: var(--ig-muted);
}

body.sistemaigreja .relLeituraCorpo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.sistemaigreja .relLeituraP {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ig-text);
}

body.sistemaigreja .relAlertasWrap {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--ig-radius);
  border: 1px solid #fde68a;
  background: #fffbeb;
}

body.sistemaigreja .relAlertasTitulo {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #92400e;
}

body.sistemaigreja .relAlertaItem {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--ig-line);
  background: var(--ig-surface);
}

body.sistemaigreja .relAlertaItem:last-child {
  margin-bottom: 0;
}

body.sistemaigreja .relAlertaItem strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

body.sistemaigreja .relAlertaItem p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ig-muted);
}

body.sistemaigreja .relAlerta--aviso {
  border-left: 4px solid #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

body.sistemaigreja .relAlerta--aviso strong {
  color: #991b1b;
}

body.sistemaigreja .relAlerta--atencao {
  border-left: 4px solid #ca8a04;
  background: #fffbeb;
  border-color: #fde68a;
}

body.sistemaigreja .relAlerta--atencao strong {
  color: #92400e;
}

body.sistemaigreja .relAlerta--info {
  border-left: 4px solid #0369a1;
}

body.sistemaigreja .kpiMeta {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

body.sistemaigreja .kpiCard--premium {
  position: relative;
}

body.sistemaigreja .dashBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

body.sistemaigreja .dashBadge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--ig-line);
}

body.sistemaigreja .dashBadge--entrada {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

body.sistemaigreja .dashBadge--saida {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

body.sistemaigreja .dashBadge--neutro {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

body.sistemaigreja .relPrestacaoHero {
  margin-bottom: 20px;
  border-radius: var(--ig-radius);
  border: 1px solid var(--ig-line);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.06) 0%, var(--ig-surface) 48%, var(--ig-surface) 100%);
  box-shadow: var(--ig-shadow);
  padding: 20px 22px;
}

body.sistemaigreja .relPrestacaoHeroInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

body.sistemaigreja .relPrestacaoLogoWrap {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ig-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

body.sistemaigreja .relPrestacaoLogoImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.sistemaigreja .relPrestacaoLogoFallback {
  font-size: 2rem;
  color: var(--ig-muted);
}

body.sistemaigreja .relPrestacaoTitulo {
  margin: 0 0 4px 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.sistemaigreja .relPrestacaoSub {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

body.sistemaigreja .relPrestacaoPeriodo {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 600;
}

body.sistemaigreja .relPrestacaoEmissao {
  margin: 0;
  font-size: 0.85rem;
}

body.sistemaigreja .relAvaliacaoBox {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--ig-radius);
  border: 1px solid #c7d2fe;
  background: #eef2ff;
}

body.sistemaigreja .relAvaliacaoTitulo {
  margin: 0 0 6px 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4338ca;
}

body.sistemaigreja .relAvaliacaoTexto {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ig-text);
}

body.sistemaigreja .relConcKpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

body.sistemaigreja .relConcKpiCard {
  padding: 12px 14px;
  border-radius: var(--ig-radius);
  border: 1px solid var(--ig-line);
  background: var(--ig-surface);
}

body.sistemaigreja .relConcKpiCard .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ig-muted);
  margin-bottom: 4px;
}

body.sistemaigreja .relConcKpiCard .val {
  font-size: 1.15rem;
  font-weight: 800;
}

body.sistemaigreja .relPendGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  body.sistemaigreja .relPendGrid {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .relPendSubtit {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

body.sistemaigreja .relPendTot {
  margin: 8px 0 0 0;
  font-size: 0.85rem;
}

body.sistemaigreja .igTable--compact td,
body.sistemaigreja .igTable--compact th {
  font-size: 0.82rem;
  padding: 6px 8px;
}

body.sistemaigreja .relPlanilhaPanel {
  margin-bottom: 18px;
}

body.sistemaigreja .relPlanilhaLead {
  margin: -4px 0 14px 0;
  font-size: 0.88rem;
}

body.sistemaigreja .relPlanilhaPanel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.sistemaigreja .relPlanilhaGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: 16px;
  align-items: start;
  width: 100%;
}

body.sistemaigreja .relPlanilhaCol--mov {
  min-width: 0;
  overflow: hidden;
}

body.sistemaigreja .relPlanilhaCol--resumo {
  min-width: 280px;
  max-width: 400px;
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

@media (max-width: 1100px) {
  body.sistemaigreja .relPlanilhaGrid {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .relPlanilhaCol--resumo {
    position: static;
    max-width: none;
    max-height: none;
  }
}

body.sistemaigreja .relPlanilhaColTit {
  margin: 0 0 10px 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ig-muted);
}

body.sistemaigreja .relPlanilhaScroll {
  max-height: min(70vh, 560px);
  overflow: auto;
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius-sm);
  background: var(--ig-surface);
}

body.sistemaigreja .igTable--planilha thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ig-surface-muted);
  box-shadow: 0 1px 0 var(--ig-line);
}

body.sistemaigreja .igTable--planilha tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .igTable--planilha {
  font-size: 0.78rem;
}

body.sistemaigreja .igTable--planilha th,
body.sistemaigreja .igTable--planilha td {
  padding: 5px 7px;
  white-space: nowrap;
}

body.sistemaigreja .igTable--planilha td:nth-child(5),
body.sistemaigreja .igTable--planilha .relPlanilhaDetalhe {
  white-space: normal;
  min-width: 140px;
  max-width: 280px;
  font-weight: 500;
}

body.sistemaigreja .igTable--planilha tr.relPlanilhaRow--mov td {
  background: rgba(241, 245, 249, 0.65);
  color: var(--ig-muted);
  font-style: italic;
}

body.sistemaigreja .relPlanilhaTop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 14px 0;
  padding: 12px 16px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

body.sistemaigreja .relPlanilhaTop__mes {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ig-text);
}

body.sistemaigreja .relPlanilhaTop__totais {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.82rem;
  color: var(--ig-muted);
}

body.sistemaigreja .relPlanilhaTop__ent {
  color: #15803d;
}

body.sistemaigreja .relPlanilhaTop__sai {
  color: #b91c1c;
}

body.sistemaigreja .relPlanilhaTop__pos {
  color: #15803d;
}

body.sistemaigreja .relPlanilhaTop__neg {
  color: #b91c1c;
}

body.sistemaigreja .relPlanilhaResumoLinha--zero .relPlanilhaResumoVal {
  opacity: 0.45;
}

body.sistemaigreja .relPlanilhaResumoLinha--foot {
  margin-top: 4px;
  border-top: 1px solid var(--ig-line);
  padding-top: 8px;
}

body.sistemaigreja .relPlanilhaContasTbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  margin: 6px 0 10px 0;
}

body.sistemaigreja .relPlanilhaContasTbl th,
body.sistemaigreja .relPlanilhaContasTbl td {
  padding: 5px 6px;
  border-bottom: 1px dashed #e2e8f0;
  text-align: left;
}

body.sistemaigreja .relPlanilhaContasTbl th.num,
body.sistemaigreja .relPlanilhaContasTbl td.num {
  text-align: right;
  white-space: nowrap;
}

body.sistemaigreja .relPlanilhaContasTbl__tot td {
  border-top: 2px solid var(--ig-line);
  border-bottom: none;
  background: #f8fafc;
}

body.sistemaigreja .relPlanilhaResumoHint {
  margin: 10px 0 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
}

body.sistemaigreja .igTable--planilha .relPlanilhaEnt {
  color: #15803d;
}

body.sistemaigreja .igTable--planilha .relPlanilhaSai {
  color: #b91c1c;
}

body.sistemaigreja .relPlanilhaTotRow td {
  background: #f8fafc;
  border-top: 2px solid var(--ig-line);
}

body.sistemaigreja .relPlanilhaResumo {
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius-sm);
  background: var(--ig-surface);
  padding: 10px 12px;
  font-size: 0.82rem;
}

body.sistemaigreja .relPlanilhaResumoSec {
  margin: 12px 0 6px 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-muted);
}

body.sistemaigreja .relPlanilhaResumoSec:first-child {
  margin-top: 0;
}

body.sistemaigreja .relPlanilhaResumoSec--ent {
  color: #15803d;
}

body.sistemaigreja .relPlanilhaResumoSec--sai {
  color: #b91c1c;
}

body.sistemaigreja .relPlanilhaResumoLinha {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

body.sistemaigreja .relPlanilhaResumoLinha:last-child {
  border-bottom: none;
}

body.sistemaigreja .relPlanilhaResumoLinha--tot {
  font-weight: 700;
  border-bottom-style: solid;
  margin-top: 2px;
}

body.sistemaigreja .relPlanilhaResumoLinha--dest .relPlanilhaResumoVal {
  font-weight: 800;
  font-size: 0.95rem;
}

body.sistemaigreja .relPlanilhaResumoLbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sistemaigreja .relPlanilhaResumoVal {
  flex-shrink: 0;
}

body.sistemaigreja .relPremiumTop {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

@media (max-width: 960px) {
  body.sistemaigreja .relPremiumTop {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .relKpiGrid {
  margin-bottom: 0;
}

body.sistemaigreja .kpiCard--rel .val {
  font-size: 1.35rem;
}

body.sistemaigreja .kpiCard--relSaldo .val {
  font-size: 1.55rem;
  font-weight: 800;
}

body.sistemaigreja .relSaudeCard {
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius);
  background: var(--ig-surface);
  box-shadow: var(--ig-shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.sistemaigreja .relSaudeCard--ok {
  border-color: #6ee7b7;
  background: linear-gradient(165deg, #f0fdf4 0%, #fff 55%);
}

body.sistemaigreja .relSaudeCard--med {
  border-color: #fcd34d;
  background: linear-gradient(165deg, #fffbeb 0%, #fff 55%);
}

body.sistemaigreja .relSaudeCard--low {
  border-color: #fca5a5;
  background: linear-gradient(165deg, #fef2f2 0%, #fff 55%);
}

body.sistemaigreja .relSaudeCard--na {
  border-style: dashed;
}

body.sistemaigreja .relSaudeTitulo {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-muted);
}

body.sistemaigreja .relSaudeScore {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ig-text);
  line-height: 1.2;
}

body.sistemaigreja .relSaudeDetalhes {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--ig-muted);
  line-height: 1.45;
}

body.sistemaigreja .relBadgesRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

body.sistemaigreja .relBadge {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--ig-line);
}

body.sistemaigreja .relBadge--ent {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

body.sistemaigreja .relBadge--sai {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

body.sistemaigreja .relLeituraPanel h3 {
  margin-bottom: 4px;
}

body.sistemaigreja .relLeituraSub {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
}

body.sistemaigreja .relCompCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 780px) {
  body.sistemaigreja .relCompCards {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .relCompCard {
  border: 1px solid var(--ig-line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
}

body.sistemaigreja .relCompCardLbl {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ig-muted);
  margin-bottom: 6px;
}

body.sistemaigreja .relCompCardVal {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja .relCompCardAnt {
  font-size: 0.78rem;
  margin-top: 4px;
}

body.sistemaigreja .relCompCardVar {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--ig-accent);
}

body.sistemaigreja .relHistPanel .chartBox--wide {
  margin-top: 8px;
}


@media (max-width: 980px) {
  body.sistemaigreja .dashHero {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .dashHeroSide {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .eventList {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.sistemaigreja .eventList li {
  padding: 10px 12px;
  border: 1px solid var(--ig-line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #f8fafc;
}

body.sistemaigreja .eventList strong {
  display: block;
  margin-bottom: 4px;
}

body.sistemaigreja .eventList span {
  display: block;
  font-size: 0.82rem;
  color: var(--ig-muted);
  font-weight: 500;
}

body.sistemaigreja .sideNavGroupTitle {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ig-muted);
  padding: 16px 12px 2px;
}

body.sistemaigreja.sidenav-collapsed .sideNavGroupTitle {
  display: none;
}

body.sistemaigreja .panelHeadRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body.sistemaigreja .panelHeadRow h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ig-text);
}

body.sistemaigreja .igTable .colAcoes {
  width: 1%;
  white-space: nowrap;
}

body.sistemaigreja .tableActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.sistemaigreja .igBtnSm {
  padding: 6px 10px;
  height: auto;
  min-height: 32px;
  font-size: 0.78rem;
}

body.sistemaigreja .igModal[hidden] {
  display: none !important;
}

body.sistemaigreja .igModal:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: var(--ig-z-igModal);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.sistemaigreja .igModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

body.sistemaigreja .igModalBox {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--ig-surface);
  border-radius: var(--ig-radius);
  border: 1px solid var(--ig-line);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 18px 20px 20px;
}

body.sistemaigreja .igModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.sistemaigreja .igModalHead h3 {
  margin: 0;
  font-size: 1.05rem;
}

body.sistemaigreja .igModalClose {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ig-text);
}

body.sistemaigreja .igModalClose:hover {
  background: #e2e8f0;
}

body.sistemaigreja .igModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

body.sistemaigreja .igModalStatus {
  margin-top: 8px;
}

body.sistemaigreja .igModalStatus:empty {
  display: none;
  margin: 0;
}

body.sistemaigreja .igModalBox--wide {
  width: min(720px, 100%);
}

body.sistemaigreja .audDetBody {
  margin-bottom: 12px;
}

body.sistemaigreja .audDetSub {
  margin: 0 0 6px 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ig-muted);
}

body.sistemaigreja .audDetBlock {
  margin-top: 12px;
}

body.sistemaigreja .audDetPre {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--ig-radius);
  border: 1px solid var(--ig-line);
  background: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
}

/* Fechamento de mês (relatório) */
body.sistemaigreja .relFechamentoBar {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--ig-radius);
  border: 1px solid var(--ig-line);
  background: var(--ig-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.sistemaigreja .relFechamentoLinha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
body.sistemaigreja .relFechamentoBadge {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
body.sistemaigreja .relFechamentoBadge--aberto {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}
body.sistemaigreja .relFechamentoBadge--fechado {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}
body.sistemaigreja .relFechamentoDetalhe {
  font-size: 0.85rem;
}
body.sistemaigreja .relFechamentoAcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.sistemaigreja .relAcompCorpo .relAcompSub {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Conciliação bancária */
body.sistemaigreja .igConcPill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
body.sistemaigreja .igConcPill--pendente {
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fde047;
}
body.sistemaigreja .igConcPill--conciliado {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}
body.sistemaigreja .cellConciliacao {
  vertical-align: top;
  min-width: 120px;
}
body.sistemaigreja .concMiniActions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
body.sistemaigreja .concKpiGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
body.sistemaigreja .concKpiCard {
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius);
  padding: 12px 14px;
  box-shadow: var(--ig-shadow);
}
body.sistemaigreja .concKpiLbl {
  font-size: 0.8rem;
  color: var(--ig-muted);
  margin-bottom: 6px;
  line-height: 1.35;
}
body.sistemaigreja .concKpiVal {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ig-text);
}
body.sistemaigreja .concSubTitle {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

body.sistemaigreja .lancFastHint {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,.14);
  background: rgba(59,130,246,.06);
  color: var(--ig-muted);
  font-size: 0.84rem;
}

body.sistemaigreja .lancSugestaoHint {
  grid-column: 1 / -1;
  margin: -4px 0 8px;
  font-size: 0.76rem;
  line-height: 1.35;
}

body.sistemaigreja .lancRecRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

body.sistemaigreja .lancRecNote {
  margin: 0 0 4px;
  font-size: 0.8rem;
}

body.sistemaigreja .lancRecPill {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  background: rgba(3, 105, 161, 0.12);
  color: #0284c7;
  border: 1px solid rgba(3, 105, 161, 0.22);
}

body.sistemaigreja .lancRecPill--auto {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28);
}

body.sistemaigreja .lancExtras {
  grid-column: 1 / -1;
  border: 1px dashed var(--ig-line);
  border-radius: 14px;
  padding: 0 14px 14px;
  background: rgba(248,250,252,.55);
}

body.sistemaigreja .lancExtras summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--ig-text);
  padding: 12px 0;
}

body.sistemaigreja .lancExtras summary::-webkit-details-marker {
  display: none;
}

body.sistemaigreja .lancExtras summary::after {
  content: '▾';
  float: right;
  color: var(--ig-muted);
}

body.sistemaigreja .lancExtras:not([open]) {
  padding-bottom: 0;
}

body.sistemaigreja .lancExtrasGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body.sistemaigreja .lancActions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 28%);
}

body.sistemaigreja .panelListaTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

body.sistemaigreja .panelListaTop h3 {
  margin-bottom: 0;
}

body.sistemaigreja .viewToggleMini {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.sistemaigreja .viewToggleMini .igBtn.active {
  background: var(--ig-primary);
  color: #fff;
  border-color: var(--ig-primary);
}

body.sistemaigreja .tableScroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

body.sistemaigreja .igTable td,
body.sistemaigreja .igTable th {
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: top;
}

body.sistemaigreja .panelLista.is-compact .igTable td,
body.sistemaigreja .panelLista.is-compact .igTable th {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.83rem;
}

body.sistemaigreja #panelListaEntradas.is-compact .igTable thead th:nth-child(4),
body.sistemaigreja #panelListaEntradas.is-compact .igTable thead th:nth-child(5),
body.sistemaigreja #panelListaEntradas.is-compact .igTable thead th:nth-child(8),
body.sistemaigreja #panelListaEntradas.is-compact .igTable thead th:nth-child(9),
body.sistemaigreja #panelListaEntradas.is-compact .igTable thead th:nth-child(10),
body.sistemaigreja #panelListaEntradas.is-compact .igTable tbody td:nth-child(4),
body.sistemaigreja #panelListaEntradas.is-compact .igTable tbody td:nth-child(5),
body.sistemaigreja #panelListaEntradas.is-compact .igTable tbody td:nth-child(8),
body.sistemaigreja #panelListaEntradas.is-compact .igTable tbody td:nth-child(9),
body.sistemaigreja #panelListaEntradas.is-compact .igTable tbody td:nth-child(10) {
  display: none;
}

body.sistemaigreja #panelListaSaidas.is-compact .igTable thead th:nth-child(4),
body.sistemaigreja #panelListaSaidas.is-compact .igTable thead th:nth-child(6),
body.sistemaigreja #panelListaSaidas.is-compact .igTable thead th:nth-child(7),
body.sistemaigreja #panelListaSaidas.is-compact .igTable thead th:nth-child(8),
body.sistemaigreja #panelListaSaidas.is-compact .igTable thead th:nth-child(9),
body.sistemaigreja #panelListaSaidas.is-compact .igTable thead th:nth-child(10),
body.sistemaigreja #panelListaSaidas.is-compact .igTable tbody td:nth-child(4),
body.sistemaigreja #panelListaSaidas.is-compact .igTable tbody td:nth-child(6),
body.sistemaigreja #panelListaSaidas.is-compact .igTable tbody td:nth-child(7),
body.sistemaigreja #panelListaSaidas.is-compact .igTable tbody td:nth-child(8),
body.sistemaigreja #panelListaSaidas.is-compact .igTable tbody td:nth-child(9),
body.sistemaigreja #panelListaSaidas.is-compact .igTable tbody td:nth-child(10) {
  display: none;
}

@media (max-width: 980px) {
  body.sistemaigreja .panelListaTop {
    flex-direction: column;
    align-items: flex-start;
  }

  body.sistemaigreja .lancActions {
    position: static;
    background: transparent;
  }
}

body.sistemaigreja.modal-open { overflow: hidden; }

body.sistemaigreja .pageHeadWithActions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.sistemaigreja .pageHeadActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.sistemaigreja .lancModal[hidden] { display: none !important; }

body.sistemaigreja .lancModal {
  position: fixed;
  inset: 0;
  z-index: var(--ig-z-lancModal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

body.sistemaigreja .lancModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

body.sistemaigreja .lancModalDialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.22);
  border: 1px solid rgba(148,163,184,.26);
}

body.sistemaigreja .lancModalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
}

body.sistemaigreja .lancModalHeader h3 {
  margin: 0;
  font-size: 1.15rem;
}

body.sistemaigreja .lancModalEyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ig-muted);
  font-weight: 800;
  margin-bottom: 6px;
}

body.sistemaigreja .lancPanel--modal {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

body.sistemaigreja .lancModalDialog--rapido {
  width: min(520px, calc(100vw - 32px));
}

body.sistemaigreja .lancRapidoHint {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 14px;
}

body.sistemaigreja .lancRapidoGrid {
  display: grid;
  gap: 14px;
}

body.sistemaigreja .lancRapidoRecentes {
  margin: 0 0 14px;
}

body.sistemaigreja .lancRapidoRecentes__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ig-muted);
  margin-bottom: 8px;
}

body.sistemaigreja .lancRapidoRecentes__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.sistemaigreja .lancRapidoChip {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  body.sistemaigreja .pageHeadWithActions {
    flex-direction: column;
  }

  body.sistemaigreja .lancModal {
    padding: 12px;
  }

  body.sistemaigreja .lancModalDialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  body.sistemaigreja .lancModalHeader {
    flex-direction: column;
  }
}


body.sistemaigreja .panelListaCards {
  padding: 16px;
}

body.sistemaigreja .listaCards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.sistemaigreja .listaCard {
  border: 1px solid var(--ig-line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--ig-shadow);
}

body.sistemaigreja .listaCardTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

body.sistemaigreja .listaCardData {
  font-size: 0.82rem;
  color: var(--ig-muted);
  font-weight: 700;
}

body.sistemaigreja .listaCardDescricao {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ig-text);
  margin-bottom: 8px;
  line-height: 1.35;
}

body.sistemaigreja .listaCardInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.88rem;
  color: var(--ig-muted);
  margin-bottom: 10px;
}

body.sistemaigreja .listaCardInfo strong {
  color: var(--ig-text);
  font-size: 0.95rem;
}

body.sistemaigreja .listaCardAcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.sistemaigreja .listaCardAcoes .igBtn {
  min-height: 34px;
  padding: 6px 12px;
}

body.sistemaigreja .listaCardExtras {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ig-line);
  display: none;
}

body.sistemaigreja .listaCard.is-open .listaCardExtras {
  display: block;
}

body.sistemaigreja .listaCardExtrasGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  font-size: 0.84rem;
  color: var(--ig-muted);
}

body.sistemaigreja .listaCardExtrasItem strong {
  display: block;
  color: var(--ig-text);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

body.sistemaigreja .listaCardToggle {
  border: 0;
  background: transparent;
  color: var(--ig-primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

body.sistemaigreja .listaCardStatusWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  body.sistemaigreja .listaCardTop {
    flex-direction: column;
    align-items: flex-start;
  }

  body.sistemaigreja .listaCardAcoes {
    width: 100%;
  }
}


/* ===== PREMIUM UI UPGRADE (alinhado aos tokens Fase 1) ===== */
body.sistemaigreja {
  --ig-premium-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --ig-premium-shadow-soft: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .panel,
body.sistemaigreja .lancPanel {
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  box-shadow: var(--ig-card-shadow);
}

body.sistemaigreja .pageHead h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
}

body.sistemaigreja .pageHead p {
  font-size: 0.875rem;
}

body.sistemaigreja .igBtn {
  border-radius: var(--ig-ui-radius-md);
  min-height: var(--ig-btn-height);
  padding: 0 14px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

body.sistemaigreja .igBtn:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .igBtnPrimary {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .igBtnPrimary:hover {
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2);
}

body.sistemaigreja .filtrosGrid {
  gap: var(--ig-ui-space-block);
}

body.sistemaigreja .filtrosGrid .igLab input,
body.sistemaigreja .filtrosGrid .igLab select,
body.sistemaigreja .lancPanel input,
body.sistemaigreja .lancPanel select,
body.sistemaigreja .lancPanel textarea {
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.sistemaigreja .lancPanel input,
body.sistemaigreja .lancPanel select {
  min-height: var(--ig-input-height);
}

body.sistemaigreja .lancPanel textarea {
  min-height: 92px;
}

body.sistemaigreja .lancFastHint {
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #dbeafe;
  color: #5b6b85;
  padding: 13px 14px;
}

body.sistemaigreja .lancModePill {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f0ff 0%, #dbeafe 100%);
  color: #0284c7;
  border-color: #bfd7ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.sistemaigreja .lancModal {
  z-index: var(--ig-z-lancModal);
  padding: 24px;
}

body.sistemaigreja .lancModalBackdrop {
  background: rgba(15, 23, 42, 0.58);
}

body.sistemaigreja .lancModalDialog {
  width: min(1180px, calc(100vw - 40px));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 30px 90px rgba(15,23,42,.28);
  background:
    linear-gradient(180deg, rgba(248,250,252,0.96) 0%, rgba(255,255,255,0.98) 140px),
    #fff;
}

body.sistemaigreja .lancModalHeader {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 22px 22px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 100%);
  border-bottom: 1px solid rgba(226,232,240,.9);
}

body.sistemaigreja .lancModalHeader h3 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

body.sistemaigreja .lancModalEyebrow {
  color: #64748b;
  font-size: .8rem;
}

body.sistemaigreja .lancPanel--modal {
  padding: 0 22px 22px;
  background: transparent;
}

body.sistemaigreja .lancPanel--modal .lancActions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.96) 18%, rgba(255,255,255,1) 100%);
  padding-top: 16px;
  margin-top: 16px;
  z-index: 2;
}

body.sistemaigreja .lancExtras {
  border-radius: 18px;
  border: 1px dashed #d7e0ec;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
  padding: 14px 14px 12px;
}

body.sistemaigreja .lancExtras summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

body.sistemaigreja .lancExtras summary::-webkit-details-marker {
  display: none;
}

body.sistemaigreja .lancExtras summary::after {
  content: '▾';
  float: right;
  color: #64748b;
  font-size: 0.92rem;
}

body.sistemaigreja .lancExtras[open] summary::after {
  content: '▴';
}

body.sistemaigreja .panelListaCards {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.sistemaigreja .lancListaResumo {
  border-radius: 16px;
  padding: 12px 15px;
}

body.sistemaigreja .listaCards {
  gap: 14px;
}

body.sistemaigreja .listaCard {
  position: relative;
  overflow: hidden;
  border-radius: var(--ig-card-radius);
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  border: var(--ig-card-border);
  box-shadow: var(--ig-card-shadow);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 1) 44%),
    #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.sistemaigreja .listaCard::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0369a1 0%, #38bdf8 100%);
  opacity: .9;
}

body.sistemaigreja .listaCard:hover {
  transform: translateY(-1px);
  box-shadow: var(--ig-ui-shadow-md);
  border-color: rgba(148, 163, 184, 0.45);
}

body.sistemaigreja .listaCardTop {
  margin-bottom: 10px;
}

body.sistemaigreja .listaCardData {
  font-size: 0.8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.sistemaigreja .listaCardDescricao {
  font-size: 1.28rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

body.sistemaigreja .listaCardInfo {
  gap: 8px 12px;
  margin-bottom: 12px;
}

body.sistemaigreja .listaCardInfo strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin-right: 4px;
}

body.sistemaigreja .listaCardInfo span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #e5edf8;
  color: #50627c;
  font-weight: 600;
}

body.sistemaigreja .listaCardInfo span:first-of-type {
  margin-left: 4px;
}

body.sistemaigreja .listaCardStatusWrap .pill,
body.sistemaigreja .listaCardStatusWrap .statusPill,
body.sistemaigreja .listaCardStatusWrap .conciliacaoPill {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body.sistemaigreja .listaCardAcoes {
  gap: 10px;
}

body.sistemaigreja .listaCardAcoes .igBtn {
  min-height: 38px;
  border-radius: 12px;
  padding: 7px 14px;
}

body.sistemaigreja .listaCardToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #dbe7fb;
  background: #f7fbff;
  color: #0284c7;
  font-weight: 800;
}

body.sistemaigreja .listaCardToggle::before {
  content: '＋';
  font-size: 0.9rem;
  line-height: 1;
}

body.sistemaigreja .listaCard.is-open .listaCardToggle::before {
  content: '－';
}

body.sistemaigreja .listaCardExtras {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #d7e0ec;
}

body.sistemaigreja .listaCardExtrasGrid {
  gap: 12px 14px;
}

body.sistemaigreja .listaCardExtrasItem {
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf7;
  padding: 10px 12px;
}

body.sistemaigreja .listaCardExtrasItem strong {
  margin-bottom: 4px;
  font-size: 0.75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja .listaCardExtrasItem span {
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 980px) {
  body.sistemaigreja .lancModal {
    padding: 10px;
  }

  body.sistemaigreja .lancModalDialog {
    width: calc(100vw - 10px);
    border-radius: 22px;
  }

  body.sistemaigreja .lancModalHeader {
    padding: 16px 16px 10px;
  }

  body.sistemaigreja .lancPanel--modal {
    padding: 0 16px 18px;
  }

  body.sistemaigreja .listaCard {
    border-radius: 18px;
    padding: 14px;
  }

  body.sistemaigreja .listaCardDescricao {
    font-size: 1.08rem;
  }

  body.sistemaigreja .listaCardInfo strong {
    font-size: 1.15rem;
  }

  body.sistemaigreja .listaCardInfo span {
    min-height: 28px;
    padding: 0 10px;
  }
}


/* ===== PAINEL PROFISSIONAL ===== */
body.sistemaigreja .painelProfissional {
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.sistemaigreja .painelProfissionalTop {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

body.sistemaigreja .painelProfissionalEyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 4px;
}

body.sistemaigreja .painelProfissionalTop h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

body.sistemaigreja .painelProfissionalMeta {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

body.sistemaigreja .painelProfissionalKpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body.sistemaigreja .ppKpi {
  border: 1px solid #e5edf8;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

body.sistemaigreja .ppKpiLabel {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

body.sistemaigreja .ppKpiValue {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.03em;
}

body.sistemaigreja .ppKpiValue.is-negative {
  color: #b91c1c;
}

body.sistemaigreja .ppKpiValue.is-positive {
  color: #047857;
}

body.sistemaigreja .ppKpiHint {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.76rem;
}

body.sistemaigreja .ppContasGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body.sistemaigreja .ppContaCard {
  border-radius: 18px;
  border: 1px solid #e5edf8;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

body.sistemaigreja .ppContaHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.sistemaigreja .ppContaNome {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

body.sistemaigreja .ppContaTipo {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 700;
  margin-top: 2px;
}

body.sistemaigreja .ppContaStatus {
  font-size: 0.74rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
}

body.sistemaigreja .ppContaValores {
  display: grid;
  gap: 8px;
}

body.sistemaigreja .ppContaLinha {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf2f7;
}

body.sistemaigreja .ppContaLinha span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

body.sistemaigreja .ppContaLinha strong {
  color: #0f172a;
  font-size: 0.92rem;
}

body.sistemaigreja .ppContaLinha strong.is-negative {
  color: #b91c1c;
}

body.sistemaigreja .ppContaLinha strong.is-positive {
  color: #047857;
}

@media (max-width: 980px) {
  body.sistemaigreja .painelProfissionalTop {
    flex-direction: column;
  }

  body.sistemaigreja .painelProfissionalMeta {
    white-space: normal;
  }

  body.sistemaigreja .painelProfissionalKpis {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  body.sistemaigreja .painelProfissionalKpis {
    grid-template-columns: 1fr;
  }
}

/* === Menu lateral SaaS premium (sidebar + grupos + estados) === */
body.sistemaigreja .sidebar {
  width: var(--ig-sidebar-width);
  background: var(--ig-sidebar-bg, #0369a1);
  border-right: 1px solid var(--ig-sidebar-border, rgba(255, 255, 255, 0.12));
  box-shadow: var(--ig-sidebar-shadow);
}

body.sistemaigreja .sideNav {
  background: transparent;
}

body.sistemaigreja .sideNavHeader {
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}

body.sistemaigreja .sideNavHeaderText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

body.sistemaigreja .sideNavTitle {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.2;
}

body.sistemaigreja .sideNavKicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

body.sistemaigreja .sideNavIcon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 1px;
  border-radius: 11px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #334155;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.sistemaigreja .sideNavIcon:hover {
  background: #e0f2fe;
  border-color: rgba(3, 105, 161, 0.3);
  color: #0284c7;
}

body.sistemaigreja .sideNavIcon:active {
  transform: scale(0.96);
}

body.sistemaigreja .sideNavIconGlyph {
  display: block;
  transform: translateX(-1px);
}

body.sistemaigreja .sideNavBody {
  padding: 12px 11px 16px;
  gap: 9px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.sistemaigreja .sideNavPinned {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.sistemaigreja .sideNavPinned .sideItem {
  align-items: flex-start;
  padding: 12px 12px;
}

body.sistemaigreja .sideNavPinned .sideItemGlyph {
  display: none;
}

body.sistemaigreja .sideItem--featured {
  background: #e0f2fe;
  border: 1px solid rgba(3, 105, 161, 0.25);
  font-weight: 600;
  box-shadow: none;
}

body.sistemaigreja .sideItem--featured:hover {
  background: #dbeafe;
  border-color: rgba(3, 105, 161, 0.4);
}

body.sistemaigreja .sideItem--featured.active {
  background: #dbeafe;
  border-color: rgba(29, 78, 216, 0.4);
  color: #0c4a6e;
  box-shadow: inset 3px 0 0 0 var(--ig-accent);
}

body.sistemaigreja .sideItemStack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

body.sistemaigreja .sideItemTitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.sistemaigreja .sideItemMeta {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #64748b;
}

body.sistemaigreja .sideItemMeta.sideItemMeta--neg {
  color: #b91c1c;
}

body.sistemaigreja .sideItemMeta.sideItemMeta--pos {
  color: #047857;
}

body.sistemaigreja .sideItemMeta.sideItemMeta--zero {
  color: #64748b;
}

body.sistemaigreja .sideNavSectionItems .sideItem--secondary {
  opacity: 0.9;
  font-weight: 530;
  font-size: 0.8rem;
  color: #64748b;
}

body.sistemaigreja .sideNavSectionItems .sideItem--secondary:hover {
  opacity: 1;
}

body.sistemaigreja .sideNavGroupToggle {
  opacity: 0.9;
}

body.sistemaigreja .sideNavSection {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

body.sistemaigreja .sideNavSection:hover {
  border-color: #d1d5db;
}

body.sistemaigreja .sideNavSection.is-open {
  border-color: rgba(3, 105, 161, 0.2);
  background: #ffffff;
}

body.sistemaigreja .sideNavGroupToggle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: #f9fafb;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.sistemaigreja .sideNavGroupToggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

body.sistemaigreja .sideNavSection.is-open > .sideNavGroupToggle {
  background: #e0f2fe;
  border-bottom-color: rgba(3, 105, 161, 0.14);
  color: #0c4a6e;
}

body.sistemaigreja .sideNavGroupTitle {
  flex: 1;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  padding: 0;
}

body.sistemaigreja .sideNavGroupArrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.65;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.2s ease;
  transform: rotate(-90deg);
}

body.sistemaigreja .sideNavSection.is-open .sideNavGroupArrow {
  transform: rotate(0deg);
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.75);
}

body.sistemaigreja .sideNavSectionItems {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  padding: 0 8px 0 9px;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sistemaigreja .sideNavSection.is-open .sideNavSectionItems {
  max-height: 1200px;
  padding-top: 7px;
  padding-bottom: 10px;
}

body.sistemaigreja .sideNavSectionItems .sideItem {
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--ig-ui-radius-md);
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid transparent;
  color: #475569;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.sistemaigreja .sideNavSectionItems .sideItem:hover {
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(3, 105, 161, 0.12);
  color: #0c4a6e;
}

body.sistemaigreja .sideNavSectionItems .sideItem.active {
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 55%, #e0f2fe 100%);
  border-color: rgba(3, 105, 161, 0.45);
  box-shadow:
    inset 3px 0 0 0 var(--ig-accent),
    0 1px 3px rgba(3, 105, 161, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.sistemaigreja.sidenav-collapsed .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

body.sistemaigreja.sidenav-collapsed .sideNavHeader {
  justify-content: center;
  align-items: center;
  padding: 14px 8px;
}

body.sistemaigreja.sidenav-collapsed .sideNavHeaderText {
  display: none;
}

body.sistemaigreja.sidenav-collapsed .sideNavGroupToggle {
  display: none;
}

body.sistemaigreja.sidenav-collapsed .sideNavSection {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

body.sistemaigreja.sidenav-collapsed .sideNavSectionItems {
  display: none !important;
  max-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja.sidenav-collapsed .sideNavBody {
  padding: 10px 8px 12px;
  gap: 0;
  flex: 0 0 auto;
  overflow: hidden;
}

body.sistemaigreja.sidenav-collapsed .sideNavPinned {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 8px;
}

@media (max-width: 900px) {
  body.sistemaigreja.sidenav-on .sidebar {
    max-height: min(55vh, calc(100dvh - 120px));
    display: flex;
    flex-direction: column;
  }

  body.sistemaigreja.sidenav-on .sidebar .sideNav {
    min-height: 0;
    max-height: 100%;
    flex: 1 1 auto;
  }

  body.sistemaigreja.sidenav-on .sideNavBody {
    min-height: 0;
  }
}

/* === Lista cards Entradas/Saídas — evolução SaaS premium (sobrescreve acima) === */
body.sistemaigreja .listaCards {
  gap: 16px;
}

body.sistemaigreja .listaCard {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.sistemaigreja .listaCard::before {
  width: 4px;
  opacity: 0.85;
  background: linear-gradient(180deg, var(--ig-accent, #0369a1) 0%, #7dd3fc 100%);
  border-radius: 0 3px 3px 0;
}

body.sistemaigreja #listaCardsSaidas .listaCard::before {
  background: linear-gradient(180deg, #64748b 0%, #94a3b8 100%);
}

body.sistemaigreja .listaCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.09);
  border-color: rgba(148, 163, 184, 0.35);
}

body.sistemaigreja .listaCardTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

body.sistemaigreja .listaCardData {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.sistemaigreja .listaCardStatusWrap .igConcPill {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}

body.sistemaigreja .listaCardStatusWrap .igConcPill--pendente {
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.sistemaigreja .listaCardStatusWrap .igConcPill--conciliado {
  color: #14532d;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.sistemaigreja .listaCardDescricao {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.sistemaigreja .listaCardInfo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

body.sistemaigreja .listaCardInfo strong {
  flex: 1 1 100%;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 4px 0;
}

body.sistemaigreja #listaCardsSaidas .listaCardInfo strong {
  color: #b91c1c;
}

body.sistemaigreja .listaCardInfo span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.sistemaigreja .listaCardInfo span:hover {
  background: #e8eef5;
  border-color: rgba(100, 116, 139, 0.4);
}

body.sistemaigreja .listaCardInfo span:first-of-type {
  margin-left: 0;
}

body.sistemaigreja .listaCardAcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

body.sistemaigreja .listaCardAcoes .igBtn {
  min-height: 32px;
  height: auto;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 650;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body.sistemaigreja .listaCardAcoes .igBtn:hover {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.45);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .listaCardAcoes .igBtnDanger {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #b91c1c;
}

body.sistemaigreja .listaCardAcoes .igBtnDanger:hover {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
  border-color: rgba(239, 68, 68, 0.5);
  color: #991b1b;
}

body.sistemaigreja .listaCardToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  height: auto;
  padding: 6px 13px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid rgba(3, 105, 161, 0.25);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

body.sistemaigreja .listaCardToggle:hover {
  background: linear-gradient(180deg, #e0f2fe 0%, #e0f2fe 100%);
  border-color: rgba(3, 105, 161, 0.35);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
}

body.sistemaigreja .listaCardToggle:active {
  transform: scale(0.98);
}

body.sistemaigreja .listaCardToggle::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0.75;
  transition: transform 0.28s ease;
}

body.sistemaigreja .listaCard.is-open .listaCardToggle::before {
  content: '';
  transform: rotate(-135deg);
  margin-top: 2px;
}

body.sistemaigreja .listaCardExtras {
  display: block !important;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid transparent;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease, margin-top 0.24s ease, padding 0.24s ease, border-color 0.24s ease;
}

body.sistemaigreja .listaCard.is-open .listaCardExtras {
  max-height: 900px;
  opacity: 1;
  margin-top: 12px;
  padding-top: 14px;
  padding-bottom: 2px;
  border-top-color: rgba(148, 163, 184, 0.35);
  pointer-events: auto;
}

body.sistemaigreja .listaCardExtrasGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}

body.sistemaigreja .listaCardExtrasItem {
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.sistemaigreja .listaCardExtrasItem:hover {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .listaCardExtrasItem strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 5px;
}

body.sistemaigreja .listaCardExtrasItem span {
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

@media (max-width: 640px) {
  body.sistemaigreja .listaCard {
    padding: 14px 13px 13px;
    border-radius: 14px;
  }

  body.sistemaigreja .listaCardDescricao {
    font-size: 0.98rem;
    -webkit-line-clamp: 4;
  }

  body.sistemaigreja .listaCardInfo strong {
    font-size: 1.12rem;
  }

  body.sistemaigreja .listaCardAcoes {
    flex-direction: column;
    align-items: stretch;
  }

  body.sistemaigreja .listaCardToggle {
    margin-left: 0;
    width: 100%;
  }
}

/* === Modal lançamentos: topo absoluto + header/sidebar abaixo === */
body.sistemaigreja .wrap,
body.sistemaigreja .layout,
body.sistemaigreja .content,
body.sistemaigreja .panel {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.sistemaigreja .lancModalBackdrop,
body.sistemaigreja .igModalBackdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.sistemaigreja .lancModal[hidden] .lancModalBackdrop,
body.sistemaigreja .igModal[hidden] .igModalBackdrop {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.sistemaigreja .lancModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--ig-z-lancModal) !important;
}

body.sistemaigreja .lancModalBackdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  background: rgba(15, 23, 42, 0.55);
}

body.sistemaigreja .lancModalDialog {
  position: relative;
  z-index: 2;
}

body.sistemaigreja .igModal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--ig-z-igModal) !important;
}

body.sistemaigreja .igModalBackdrop {
  z-index: 0;
}

body.sistemaigreja .igModalBox {
  z-index: 1;
}

body.sistemaigreja header.top,
body.sistemaigreja .top,
body.sistemaigreja .wrap > .top {
  position: relative;
  z-index: var(--ig-z-header) !important;
}

body.sistemaigreja .sidebar {
  z-index: var(--ig-z-sidebar) !important;
}

/* === Modal Entradas/Saídas — refinamento premium (somente .lancModal) === */
body.sistemaigreja .lancModal {
  padding: 18px 20px;
  align-items: center;
}

body.sistemaigreja .lancModalDialog {
  width: min(1080px, calc(100vw - 36px));
  max-height: min(92vh, 920px);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 56px rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.sistemaigreja .lancModalHeader {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px 14px;
  margin: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.sistemaigreja .lancModalEyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 4px 0;
}

body.sistemaigreja .lancModalHeader h3 {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
}

body.sistemaigreja .lancModalHeader .igBtn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 11px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  box-shadow: none;
}

body.sistemaigreja .lancModalHeader .igBtn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  transform: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .lancPanel.lancPanel--modal {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 16px 22px 20px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.sistemaigreja .lancModal .lancFastHint {
  margin: 0 0 14px 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(3, 105, 161, 0.12);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(239, 246, 255, 0.65) 100%);
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.sistemaigreja .lancModal .lancModeBar {
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.sistemaigreja .lancModal .lancModePill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  color: #0284c7;
  box-shadow: 0 1px 2px rgba(3, 105, 161, 0.06);
}

body.sistemaigreja .lancModal .lancFormTitle {
  margin: 4px 0 14px 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
  border: none;
}

body.sistemaigreja .lancModal .formGrid,
body.sistemaigreja .lancModal .form-grid {
  gap: 14px 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
}

body.sistemaigreja .lancModal label.igLab {
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 650;
  color: #64748b;
}

body.sistemaigreja .lancModal .lancPanel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja .lancModal .lancPanel select {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 2px rgba(248, 250, 252, 0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.sistemaigreja .lancModal .lancPanel input:focus-visible,
body.sistemaigreja .lancModal .lancPanel select:focus-visible,
body.sistemaigreja .lancModal .lancPanel textarea:focus-visible {
  outline: none;
  border-color: rgba(3, 105, 161, 0.45);
  box-shadow:
    inset 0 1px 2px rgba(248, 250, 252, 0.9),
    0 0 0 3px rgba(3, 105, 161, 0.18);
}

body.sistemaigreja .lancModal .lancPanel textarea {
  min-height: 88px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  line-height: 1.45;
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(248, 250, 252, 0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.sistemaigreja .lancModal input[type="file"] {
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
}

body.sistemaigreja .lancModal input[type="file"]:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

body.sistemaigreja .lancModal .lancExtras {
  margin-top: 6px;
  padding: 0 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.65);
}

body.sistemaigreja .lancModal .lancExtras summary {
  padding: 12px 2px 11px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

body.sistemaigreja .lancModal .lancExtras summary::after {
  font-size: 0.72rem;
  opacity: 0.42;
  color: #64748b;
}

body.sistemaigreja .lancModal .lancExtras[open] summary::after {
  opacity: 0.55;
}

body.sistemaigreja .lancModal .lancExtrasGrid {
  gap: 14px 16px;
  padding-bottom: 2px;
}

body.sistemaigreja .lancModal .lancActions {
  margin-top: 8px;
  padding-top: 18px;
  padding-bottom: 4px;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.92) 35%, #ffffff 100%);
  gap: 10px 12px;
  flex-wrap: wrap;
  align-items: center;
}

body.sistemaigreja .lancModal .lancActions .igBtn {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 11px;
  font-weight: 650;
  font-size: 0.84rem;
}

body.sistemaigreja .lancModal .lancActions .igBtn:hover {
  transform: translateY(-1px);
}

body.sistemaigreja .lancModal .lancActions .igBtnPrimary {
  font-weight: 750;
  padding-inline: 20px;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.22);
}

body.sistemaigreja .lancModal .lancActions .igBtnPrimary:hover {
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.28);
}

body.sistemaigreja .lancModal .lancActions .igBtnDanger {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #b91c1c;
}

body.sistemaigreja .lancModal .lancActions .igBtnDanger:hover {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
  border-color: rgba(239, 68, 68, 0.5);
  color: #991b1b;
}

body.sistemaigreja .lancModal #formEntradaStatus,
body.sistemaigreja .lancModal #formSaidaStatus {
  margin-top: 12px;
  border-radius: 11px;
}

@media (max-width: 980px) {
  body.sistemaigreja .lancModal {
    padding: 12px 10px;
  }

  body.sistemaigreja .lancModalDialog {
    width: calc(100vw - 16px);
    max-height: min(94vh, 900px);
    border-radius: 18px;
  }

  body.sistemaigreja .lancModalHeader {
    padding: 14px 16px 12px;
  }

  body.sistemaigreja .lancModalHeader h3 {
    font-size: 1.18rem;
  }

  body.sistemaigreja .lancPanel.lancPanel--modal {
    padding: 14px 16px 16px;
  }

  body.sistemaigreja .lancModal .formGrid,
  body.sistemaigreja .lancModal .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Design system unificado — SaaS premium (aplicação global, sem z-index modal)
   ============================================================================= */

body.sistemaigreja .content {
  padding: var(--ig-ui-space-section) 16px 22px;
}

body.sistemaigreja .top {
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

body.sistemaigreja .pageHead h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ig-text);
}

body.sistemaigreja .pageHead p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ig-muted);
}

body.sistemaigreja .pageHead h3,
body.sistemaigreja .panel h3 {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ig-text);
}

body.sistemaigreja .panel,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) {
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
  background: var(--ig-surface);
  padding: var(--ig-ui-space-section);
  margin-bottom: var(--ig-ui-space-block);
}

body.sistemaigreja .filtrosGrid {
  gap: var(--ig-ui-space-block) 16px;
}

body.sistemaigreja .igBtn {
  border-radius: var(--ig-ui-radius-md);
  min-height: 40px;
  height: auto;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 650;
  border: var(--ig-ui-border-muted);
  background: #ffffff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.sistemaigreja .igBtn:focus-visible {
  outline: none;
  box-shadow: var(--ig-ui-focus);
}

body.sistemaigreja .igBtn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-accent);
  border-color: var(--ig-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2);
}

body.sistemaigreja .igBtnPrimary:hover {
  filter: none;
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.26);
}

body.sistemaigreja .igBtnDanger {
  border-color: var(--ig-ui-danger-border);
  background: var(--ig-ui-danger-bg);
  color: var(--ig-ui-danger-text);
}

body.sistemaigreja .igBtnDanger:hover {
  background: #ffe4e6;
  border-color: #f87171;
  color: #991b1b;
}

body.sistemaigreja .igBtnSm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--ig-ui-radius-sm);
}

body.sistemaigreja label.igLab {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ig-muted);
  gap: 4px;
}

body.sistemaigreja label.igLab input,
body.sistemaigreja label.igLab select,
body.sistemaigreja label.igLab textarea,
body.sistemaigreja .panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja .panel select,
body.sistemaigreja .panel textarea,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja .lancPanel:not(.lancPanel--modal) select,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) textarea {
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #ffffff;
  min-height: var(--ig-input-height);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(248, 250, 252, 0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.sistemaigreja label.igLab textarea,
body.sistemaigreja .panel textarea,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) textarea {
  min-height: 80px;
  line-height: 1.45;
}

body.sistemaigreja label.igLab input:focus-visible,
body.sistemaigreja label.igLab select:focus-visible,
body.sistemaigreja label.igLab textarea:focus-visible,
body.sistemaigreja .panel input:focus-visible,
body.sistemaigreja .panel select:focus-visible,
body.sistemaigreja .panel textarea:focus-visible,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) input:focus-visible,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) select:focus-visible,
body.sistemaigreja .lancPanel:not(.lancPanel--modal) textarea:focus-visible {
  outline: none;
  border-color: rgba(3, 105, 161, 0.45);
  box-shadow: inset 0 1px 2px rgba(248, 250, 252, 0.9), var(--ig-ui-focus);
}

body.sistemaigreja .formGrid,
body.sistemaigreja .form-grid {
  gap: var(--ig-ui-space-block) 16px;
}

body.sistemaigreja .statusOk:not(:empty),
body.sistemaigreja .statusErr:not(:empty) {
  border-radius: var(--ig-ui-radius-md);
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 8px;
}

body.sistemaigreja .statusOk:not(:empty) {
  background: linear-gradient(180deg, var(--ig-ui-ok-bg) 0%, #ecfdf5 100%);
  color: var(--ig-ui-ok-text);
  border: 1px solid var(--ig-ui-ok-border);
}

body.sistemaigreja .statusErr:not(:empty) {
  background: linear-gradient(180deg, var(--ig-ui-danger-bg) 0%, #fff1f2 100%);
  color: var(--ig-ui-danger-text);
  border: 1px solid var(--ig-ui-danger-border);
}

body.sistemaigreja .ig-status:not(:empty) {
  border-radius: var(--ig-ui-radius-md);
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 8px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.sistemaigreja .ig-status--loading:not(:empty) {
  background: linear-gradient(180deg, var(--ig-ui-loading-bg) 0%, #f8fafc 100%);
  color: var(--ig-ui-loading-text);
  border: 1px solid var(--ig-ui-loading-border);
}

body.sistemaigreja .ig-status--info:not(:empty) {
  background: linear-gradient(180deg, var(--ig-ui-info-bg) 0%, #e0f2fe 100%);
  color: var(--ig-ui-info-text);
  border: 1px solid var(--ig-ui-info-border);
}

body.sistemaigreja .ig-status--warn:not(:empty) {
  background: linear-gradient(180deg, var(--ig-ui-warn-bg) 0%, #fffbeb 100%);
  color: var(--ig-ui-warn-text);
  border: 1px solid var(--ig-ui-warn-border);
}

body.sistemaigreja .ig-status--neutral:not(:empty) {
  background: linear-gradient(180deg, var(--ig-ui-neutral-bg) 0%, #f8fafc 100%);
  color: var(--ig-ui-neutral-text);
  border: 1px solid var(--ig-ui-neutral-border);
}

body.sistemaigreja .ig-status--loading.igStatusPulse:not(:empty) {
  animation: igStatusPulseNeutral 1.1s ease-out infinite;
}

@keyframes igStatusPulseNeutral {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(100, 116, 139, 0);
  }
}

body.sistemaigreja .igConcPill {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--ig-ui-radius-pill);
}

body.sistemaigreja .igConcPill--pendente {
  color: var(--ig-ui-pending-text);
  background: var(--ig-ui-pending-bg);
  border: 1px solid var(--ig-ui-pending-border);
}

body.sistemaigreja .igConcPill--conciliado {
  color: var(--ig-ui-ok-text);
  background: var(--ig-ui-ok-bg);
  border: 1px solid var(--ig-ui-ok-border);
}

body.sistemaigreja table.igTable {
  border: var(--ig-ui-border-muted);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja table.igTable th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

body.sistemaigreja table.igTable td {
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

body.sistemaigreja table.igTable tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.65);
}

body.sistemaigreja table.igTable tbody tr:hover td {
  background: rgba(239, 246, 255, 0.55);
}

body.sistemaigreja .tableScroll {
  border-radius: var(--ig-ui-radius-md);
  border: var(--ig-ui-border-muted);
}

body.sistemaigreja .kpiCard,
body.sistemaigreja .kpiCard--premium {
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .kpiCard .lbl {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--ig-muted);
}

body.sistemaigreja .kpiCard .val {
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.sistemaigreja .dashHero {
  border-radius: var(--ig-ui-radius-xl);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .dashHeroEyebrow {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.sistemaigreja .tesourariaShell {
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .concKpiCard {
  border-radius: var(--ig-ui-radius-md);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .igModalBox {
  border-radius: var(--ig-ui-radius-xl);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-md);
}

body.sistemaigreja .lancListaResumo {
  border-radius: var(--ig-ui-radius-md);
  border: var(--ig-ui-border-muted);
  box-shadow: none;
}

body.sistemaigreja .panelListaCards {
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
}

body.sistemaigreja .listaCard {
  border-radius: var(--ig-ui-radius-lg);
  border: var(--ig-ui-border);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .sideNavSection {
  border-radius: var(--ig-ui-radius-md);
  border: var(--ig-ui-border-muted);
}

body.sistemaigreja .sideNavGroupToggle {
  border-radius: var(--ig-ui-radius-sm);
}

body.sistemaigreja .sideItem {
  border-radius: var(--ig-ui-radius-md);
}

/* ===== Fase 1 — estado neutro (opcional: class igStateNeutral no HTML) ===== */
body.sistemaigreja .igStateNeutral {
  border-radius: var(--ig-ui-radius-md);
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  background: var(--ig-ui-neutral-bg);
  border: 1px solid var(--ig-ui-neutral-border);
  color: var(--ig-ui-neutral-text);
}

/* ===== Fase 2 — Entradas / Saídas operacionais ===== */
body.sistemaigreja .lancFluxoHead {
  margin-bottom: 8px;
}

body.sistemaigreja .lancFluxoHead h2 {
  margin-bottom: 2px;
}

body.sistemaigreja .lancFluxoHead__hint {
  margin: 0;
  max-width: 56ch;
  font-size: 0.8125rem;
}

body.sistemaigreja .lancOpBar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--ig-card-shadow);
  position: sticky;
  top: 6px;
  z-index: 24;
}

body.sistemaigreja .lancOpBar__primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.sistemaigreja .lancOpBar__btnMain {
  min-width: 158px;
  font-weight: 700;
}

body.sistemaigreja .lancOpBar__btnSec {
  font-weight: 600;
}

body.sistemaigreja .lancOpBar__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  flex: 1 1 280px;
  align-items: flex-end;
  justify-content: flex-end;
}

body.sistemaigreja .lancOpBar .igLab {
  margin: 0;
  min-width: 0;
}

body.sistemaigreja .lancOpBar__search {
  flex: 1 1 200px;
  max-width: min(360px, 100%);
}

body.sistemaigreja .lancOpBar__searchLab {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

body.sistemaigreja .lancOpBar__search input {
  width: 100%;
}

body.sistemaigreja .lancOpBar__select {
  flex: 0 1 150px;
}

body.sistemaigreja .lancOpBar__select span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

body.sistemaigreja .lancFiltrosDetails {
  margin-bottom: 10px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.65);
}

body.sistemaigreja .lancFiltrosDetails__summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ig-text);
  user-select: none;
}

body.sistemaigreja .lancFiltrosDetails__summary::-webkit-details-marker {
  display: none;
}

body.sistemaigreja .lancFiltrosDetails__hint {
  font-weight: 500;
  margin-left: 6px;
}

body.sistemaigreja .lancFiltrosDetails__body {
  padding: 0 12px 12px;
}

body.sistemaigreja .lancFiltrosDetails__body .filtros {
  padding: 10px 12px;
  border-radius: var(--ig-ui-radius-md);
  background: #fff;
  border: var(--ig-ui-border-muted);
}

body.sistemaigreja .filtrosGrid--lancAvancado {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px 12px;
}

body.sistemaigreja .filtrosBtns--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 4px;
}

body.sistemaigreja .lancListaPanel.panelListaCards {
  padding-top: 12px;
}

body.sistemaigreja .lancListaPanel .panelListaTop {
  display: none;
}

body.sistemaigreja .lancListaResumoErr {
  margin: 0 0 10px 0;
  padding: 8px 12px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid rgba(252, 165, 165, 0.55);
  background: #fff1f2;
  color: #991b1b;
  font-size: 0.84rem;
}

body.sistemaigreja .lancListaKpis {
  margin-bottom: 12px;
}

body.sistemaigreja .lancListaKpis__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
}

body.sistemaigreja .lancListaKpis__cell {
  padding: 10px 12px;
  border-radius: var(--ig-ui-radius-md);
  border: var(--ig-ui-border-muted);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .lancListaKpis__cell--total {
  border-color: rgba(3, 105, 161, 0.22);
  background: linear-gradient(165deg, rgba(239, 246, 255, 0.9) 0%, #fff 100%);
}

body.sistemaigreja .lancListaKpis__lab {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ig-muted);
  margin-bottom: 4px;
}

body.sistemaigreja .lancListaKpis__val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ig-text);
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja .lancListaEmpty {
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--ig-ui-radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.6);
}

body.sistemaigreja .listaCards--compact {
  gap: 10px;
}

body.sistemaigreja .listaCard--fluxo {
  padding: 10px 12px 10px 14px;
}

body.sistemaigreja .listaCard--fluxo::before {
  width: 3px;
  opacity: 0.85;
}

body.sistemaigreja .listaCard--fluxo:hover {
  transform: translateY(-1px);
}

body.sistemaigreja .listaCardRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: start;
}

body.sistemaigreja .listaCardRowMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 4px;
}

body.sistemaigreja .listaCard--fluxo .listaCardData {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ig-muted);
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja .listaCard--fluxo .listaCardDescricao {
  margin: 0 0 6px 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ig-text);
}

body.sistemaigreja .listaCardChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.sistemaigreja .listaCardChip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ig-ui-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: #e0f2fe;
  border: 1px solid rgba(191, 219, 254, 0.85);
  color: #0c4a6e;
  max-width: 100%;
}

body.sistemaigreja .listaCardChip--muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

body.sistemaigreja .listaCardRowValor {
  text-align: right;
  padding-top: 2px;
}

body.sistemaigreja .listaCardValorNum {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

body.sistemaigreja #tab-saidas .listaCardValorNum {
  color: #9a3412;
}

body.sistemaigreja .listaCardAcoes--bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(241, 245, 249, 0.95);
}

body.sistemaigreja .listaCardAcoes__grp {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.sistemaigreja .listaCardExtras.listaCardExtras--details {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  margin-top: 6px;
  border: none;
  border-top: 1px dashed rgba(226, 232, 240, 0.95);
  padding: 0;
  background: transparent;
}

body.sistemaigreja .listaCardExtrasSum {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ig-accent);
  padding: 6px 0 4px;
  user-select: none;
}

body.sistemaigreja .listaCardExtrasSum::-webkit-details-marker {
  display: none;
}

body.sistemaigreja .listaCardExtrasBody {
  padding-bottom: 4px;
}

body.sistemaigreja .listaCardExtrasAnexo {
  margin-top: 8px;
}

body.sistemaigreja .listaCard--fluxo .igConcPill {
  padding: 3px 8px;
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  body.sistemaigreja .lancListaKpis__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.sistemaigreja .lancOpBar__tools {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.sistemaigreja .listaCardRow {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .listaCardRowValor {
    text-align: left;
  }
}

/* --- Falha de bootstrap JS (módulos ausentes) --- */
body.sistemaigreja .igrejaBootErr {
  margin: 12px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(254, 242, 242, 0.98);
  color: #7f1d1d;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* --- Módulo UI (igreja-ui.js): estados leves --- */
body.sistemaigreja .igUiLoading {
  display: inline-block;
  animation: igUiPulse 1.1s ease-in-out infinite;
}

@keyframes igUiPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/* ========== Fase 5 — acabamento premium (microinterações, formulários, tesouraria) ========== */

body.sistemaigreja .pageHead__lead--tes {
  margin: 0 0 4px 0;
  max-width: 52ch;
  line-height: 1.45;
  font-size: 0.92rem;
}

@keyframes igStatusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

body.sistemaigreja .statusOk.igStatusPulse:not(:empty) {
  animation: igStatusPulse 0.85s ease-out 1;
}

body.sistemaigreja .statusOk:not(:empty),
body.sistemaigreja .statusErr:not(:empty) {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.sistemaigreja input:not([type="hidden"]):focus-visible,
body.sistemaigreja select:focus-visible,
body.sistemaigreja textarea:focus-visible {
  outline: none;
  border-color: rgba(3, 105, 161, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

body.sistemaigreja .igBtn {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease;
}

body.sistemaigreja .igBtn:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.sistemaigreja .igBtn:active:not(:disabled) {
  transform: translateY(0);
}

body.sistemaigreja .sideItem[data-tab] {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.sistemaigreja .tesourariaSubtab {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

body.sistemaigreja .tesourariaSubtab:hover {
  transform: translateY(-1px);
}

body.sistemaigreja .tesourariaSubtab:active {
  transform: translateY(0);
}

body.sistemaigreja .tesourariaShell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), var(--ig-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

body.sistemaigreja .tesourariaExecutive {
  padding: 14px 14px 4px;
  margin: 0 0 12px 0;
  border-radius: var(--ig-ui-radius-lg, 14px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.sistemaigreja .tesourariaExecRowDense {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body.sistemaigreja .tesourariaKpiHero--compact {
  box-shadow: 0 1px 8px rgba(3, 105, 161, 0.08);
}

body.sistemaigreja .tesourariaKpiRow {
  gap: 10px;
}

body.sistemaigreja .tesourariaKpiMini {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.sistemaigreja .tesourariaKpiMini:hover {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

@keyframes igDialogIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.sistemaigreja .lancModal:not([hidden]) .lancModalDialog {
  animation: igDialogIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.sistemaigreja .igModal:not([hidden]) .igModalBox {
  animation: igDialogIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.sistemaigreja .lancPanel--modal .lancActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

body.sistemaigreja .lancPanel--modal .lancActions .igBtnPrimary {
  margin-left: auto;
}

body.sistemaigreja .lancExtras {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(203, 213, 225, 0.85);
}

body.sistemaigreja .lancSugestaoHint:not([hidden]) {
  padding: 8px 10px;
  border-radius: var(--ig-ui-radius-md, 10px);
  background: rgba(239, 246, 255, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.7);
  font-size: 0.84rem;
  font-weight: 500;
}

body.sistemaigreja [data-ig-tip] {
  position: relative;
}

body.sistemaigreja button[data-ig-tip],
body.sistemaigreja .igBtn[data-ig-tip] {
  cursor: pointer;
}

body.sistemaigreja [data-ig-tip]:not(button):not(.igBtn) {
  cursor: help;
  border-bottom: 1px dotted rgba(148, 163, 184, 0.65);
}

body.sistemaigreja [data-ig-tip]::after {
  content: attr(data-ig-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 8px 10px;
  max-width: min(280px, 86vw);
  width: max-content;
  white-space: normal;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--ig-z-tooltip);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

body.sistemaigreja [data-ig-tip]:hover::after,
body.sistemaigreja [data-ig-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.sistemaigreja .lancFiltrosDetails__summary {
  transition: color 0.15s ease, border-color 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.sistemaigreja .lancModal:not([hidden]) .lancModalDialog,
  body.sistemaigreja .igModal:not([hidden]) .igModalBox,
  body.sistemaigreja .statusOk.igStatusPulse:not(:empty) {
    animation: none !important;
  }

  body.sistemaigreja .igBtn:hover:not(:disabled),
  body.sistemaigreja .tesourariaSubtab:hover {
    transform: none;
  }
}

/* =============================================================================
   SaaS premium v3 — layout app, topbar, tipografia, cartões, gráficos, modais
   (sobrescreve/refina blocos anteriores; sem alterar IDs usados pelo JS)
   ============================================================================= */

/* --- A. Topbar / header --- */
body.sistemaigreja .top.topBar {
  position: sticky;
  top: 0;
  z-index: var(--ig-z-header);
  flex-wrap: nowrap;
  align-items: center;
  min-height: 56px;
  padding: 10px 18px 10px 20px;
  gap: 16px;
  border: none;
  border-radius: var(--ig-card-radius);
  background: var(--ig-accent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.sistemaigreja .topBar__brand {
  flex: 1 1 auto;
  min-width: 0;
  gap: 16px;
}

body.sistemaigreja .topBar__titles {
  min-width: 0;
}

body.sistemaigreja .topBar__title,
body.sistemaigreja .titleBlock h1 {
  font-size: var(--ig-font-page-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

body.sistemaigreja .topBar__subtitle,
body.sistemaigreja .titleBlock .subtitle {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

body.sistemaigreja .topBar__obs {
  margin-top: 6px;
}

body.sistemaigreja .brandMark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.15rem;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.28);
}

body.sistemaigreja .topBar__actions {
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.sistemaigreja .topBar__actionGroup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.sistemaigreja .topUserChip {
  max-width: min(280px, 36vw);
  padding: 6px 12px;
  border-radius: var(--ig-ui-radius-pill);
  font-size: var(--ig-font-small);
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sistemaigreja .igBtn--topGhost {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

body.sistemaigreja .igBtn--topGhost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

body.sistemaigreja .igBtn--headerQuit {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
}

/* --- B. Hierarquia de página (reutilizável) --- */
body.sistemaigreja .ig-page-head {
  margin-bottom: var(--ig-space-stack);
  padding-bottom: 2px;
}

body.sistemaigreja .ig-page-title,
body.sistemaigreja .pageHead h2 {
  font-size: var(--ig-font-page-title);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

body.sistemaigreja .ig-page-lead,
body.sistemaigreja .pageHead p {
  font-size: var(--ig-font-body);
  font-weight: 500;
  line-height: 1.5;
  max-width: 58ch;
}

/* --- C. Cartões / painéis globais --- */
body.sistemaigreja .panel,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .relCompCard {
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  box-shadow: var(--ig-card-shadow);
  transition: box-shadow var(--ig-duration) var(--ig-ease-standard), border-color var(--ig-duration) var(--ig-ease-standard);
}

body.sistemaigreja .panel:hover,
body.sistemaigreja .tesourariaShell:hover {
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 36px rgba(15, 23, 42, 0.07);
}

body.sistemaigreja .panel h3,
body.sistemaigreja .chartBox h3 {
  font-size: var(--ig-font-card-title);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

/* --- D. Dashboard — faixa KPI + alertas + gráficos --- */
body.sistemaigreja .dashExecStrip {
  gap: 12px 14px;
  margin: 0 0 var(--ig-space-stack) 0;
  padding: 14px 16px;
  border-radius: var(--ig-card-radius);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

body.sistemaigreja .dashExecStrip__item {
  padding: 10px 12px;
  border-radius: 12px;
}

body.sistemaigreja .dashExecStrip__lab {
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
}

body.sistemaigreja .dashExecStrip__val {
  font-size: clamp(1rem, 2.4vw, 1.14rem);
  font-variant-numeric: tabular-nums;
  font-family: var(--ig-font-mono);
}

body.sistemaigreja .dashHomeCore {
  padding: 18px 18px 10px;
  margin-bottom: var(--ig-space-stack);
  border-radius: var(--ig-card-radius);
}

body.sistemaigreja .dashDecisionGrid {
  gap: 14px 18px;
}

body.sistemaigreja .dashDecCard {
  padding: var(--ig-card-padding-y) var(--ig-card-padding-x);
  border-radius: var(--ig-card-radius);
  box-shadow: var(--ig-card-shadow);
  transition: box-shadow var(--ig-duration) var(--ig-ease-standard), transform var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .dashDecCard:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 14px 40px rgba(15, 23, 42, 0.08);
}

body.sistemaigreja .dashDecValue {
  font-variant-numeric: tabular-nums;
  font-family: var(--ig-font-mono);
}

body.sistemaigreja .dashAlertItem {
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  border-left-width: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .dashAlertItem--critico {
  border-color: rgba(252, 165, 165, 0.5);
}

body.sistemaigreja .dashAlertItem--atencao {
  border-color: rgba(253, 224, 71, 0.55);
}

body.sistemaigreja .dashAlertItem--info {
  border-color: rgba(191, 219, 254, 0.65);
}

body.sistemaigreja .dashChartsShell {
  margin: 0 0 var(--ig-space-stack) 0;
  padding: 18px 18px 20px;
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.75) 100%);
  box-shadow: var(--ig-card-shadow);
}

body.sistemaigreja .dashChartsShell .chartRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body.sistemaigreja .chartBox--dash {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 16px 16px 14px;
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

body.sistemaigreja .chartBox--dash h3 {
  margin: 0 0 12px 0;
  font-size: var(--ig-font-card-title);
  letter-spacing: 0.05em;
}

body.sistemaigreja .chartBox--dash canvas {
  flex: 1 1 auto;
  max-height: 240px;
  width: 100% !important;
}

@media (max-width: 900px) {
  body.sistemaigreja .dashChartsShell .chartRow {
    grid-template-columns: 1fr;
  }
}

body.sistemaigreja .dashInsightsHeadTitle {
  font-size: var(--ig-font-section);
  font-weight: 750;
}

body.sistemaigreja .dashInsightChip {
  transition: transform var(--ig-duration-fast) var(--ig-ease-standard), box-shadow var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .dashInsightChip:hover {
  transform: translateY(-1px);
}

/* --- E. Botões — família coerente --- */
body.sistemaigreja .igBtn {
  border-radius: 11px;
  transition:
    background var(--ig-duration-fast) var(--ig-ease-standard),
    border-color var(--ig-duration-fast) var(--ig-ease-standard),
    color var(--ig-duration-fast) var(--ig-ease-standard),
    box-shadow var(--ig-duration-fast) var(--ig-ease-standard),
    transform var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .igBtn:active:not(:disabled) {
  transform: translateY(1px);
}

body.sistemaigreja .igBtnPrimary {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.sistemaigreja .igBtnPrimary:hover {
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

/* --- F. Modais premium --- */
body.sistemaigreja .igModalBackdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.sistemaigreja .igModalBox {
  width: min(480px, 100%);
  padding: 22px 24px 24px;
  border-radius: var(--ig-card-radius);
  border: var(--ig-card-border);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

body.sistemaigreja .igModalBox--wide {
  width: min(720px, 100%);
}

body.sistemaigreja .igModalHead {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body.sistemaigreja .igModalHead h3 {
  font-size: var(--ig-font-section);
  font-weight: 750;
  letter-spacing: -0.02em;
}

body.sistemaigreja .igModalClose {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ig-muted);
  background: var(--ig-surface-muted);
  border: 1px solid rgba(226, 232, 240, 0.95);
  transition: background var(--ig-duration-fast) var(--ig-ease-standard), color var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .igModalClose:hover {
  color: var(--ig-text);
  background: #fff;
}

body.sistemaigreja .lancModalDialog {
  border-radius: var(--ig-card-radius);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

/* --- G. Tesouraria / sub-abas --- */
body.sistemaigreja .tesourariaSubtab {
  transition: border-color var(--ig-duration-fast) var(--ig-ease-standard), background var(--ig-duration-fast) var(--ig-ease-standard),
    box-shadow var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .tesourariaSubtab.active {
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.22);
}

/* --- H. Status / feedback inline --- */
body.sistemaigreja .statusOk:not(:empty),
body.sistemaigreja .statusErr:not(:empty) {
  border-radius: 11px;
  font-size: var(--ig-font-small);
}

/* --- I. Conteúdo principal — largura via .contentInner (v3.1) --- */
body.sistemaigreja .content {
  max-width: none;
}

body.sistemaigreja .muted {
  color: var(--ig-muted);
}

@media (max-width: 720px) {
  body.sistemaigreja .top.topBar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  body.sistemaigreja .topUserChip {
    max-width: 100%;
    order: 3;
    width: 100%;
  }

  body.sistemaigreja .topBar__actionGroup {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========== UX executiva — dashboard em zonas, card mestre, empty states ========== */

body.sistemaigreja .topBar__contextLine {
  margin: 6px 0 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ig-muted);
  line-height: 1.4;
  max-width: 52ch;
}

body.sistemaigreja .dashSection {
  margin-bottom: clamp(20px, 3vw, 32px);
}

body.sistemaigreja .dashSection__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

body.sistemaigreja .dashSection__step {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--ig-accent), #0284c7);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.25);
}

body.sistemaigreja .dashSection__headText {
  min-width: 0;
}

body.sistemaigreja .dashSection__title {
  margin: 0 0 6px 0;
  font-size: var(--ig-font-section);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ig-text);
}

body.sistemaigreja .dashSection__lead {
  margin: 0;
  font-size: var(--ig-font-small);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ig-muted);
  max-width: 62ch;
}

body.sistemaigreja .dashSituationSummary {
  margin: 0 0 14px 0;
  font-size: var(--ig-font-small);
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

body.sistemaigreja .dashSituationGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px 18px;
  align-items: stretch;
}

body.sistemaigreja .dashDecCard--fullRow {
  width: 100%;
  max-width: 100%;
}

body.sistemaigreja .dashDecCard--sitSaldo .dashDecTitle {
  font-size: 1rem;
}

body.sistemaigreja .ig-readBlock {
  transition: box-shadow var(--ig-duration) var(--ig-ease-standard);
}

body.sistemaigreja .dashMasterCard {
  position: relative;
  overflow: hidden;
}

body.sistemaigreja .dashMasterCard__ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--ig-ui-radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sistemaigreja .dashMasterCard__ribbon--ok {
  color: #166534;
  background: rgba(220, 252, 231, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

body.sistemaigreja .dashMasterCard__ribbon--risk {
  color: #92400e;
  background: rgba(254, 249, 195, 0.95);
  border: 1px solid rgba(234, 179, 8, 0.45);
}

body.sistemaigreja .dashMasterCard__ribbon--neg {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

body.sistemaigreja .dashMasterCard__statusLabel {
  margin: 0 0 8px 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ig-text);
  line-height: 1.35;
  max-width: 36ch;
}

body.sistemaigreja #tab-dashboard[data-dash-verdict='ok'] .ig-premiumCard--master {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(34, 197, 94, 0.16);
}

body.sistemaigreja #tab-dashboard[data-dash-verdict='risk'] .ig-premiumCard--master {
  border-color: rgba(234, 179, 8, 0.52);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(250, 204, 21, 0.22);
}

body.sistemaigreja #tab-dashboard[data-dash-verdict='neg'] .ig-premiumCard--master {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(248, 113, 113, 0.18);
}

body.sistemaigreja .ig-emptyState {
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--ig-card-radius);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

body.sistemaigreja .ig-emptyState--dashboard {
  max-width: 420px;
  margin: 8px auto 0;
}

body.sistemaigreja .ig-emptyState--inline {
  text-align: left;
  padding: 14px 16px;
  border-style: solid;
  border-color: rgba(226, 232, 240, 0.98);
}

body.sistemaigreja .ig-emptyState__glyph {
  font-size: 1.25rem;
  opacity: 0.35;
  margin-bottom: 8px;
}

body.sistemaigreja .ig-emptyState__title {
  margin: 0 0 6px 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ig-text);
}

body.sistemaigreja .ig-emptyState__text {
  margin: 0;
  font-size: var(--ig-font-small);
  line-height: 1.45;
  color: var(--ig-muted);
}

body.sistemaigreja .ig-emptyStateLi {
  list-style: none;
}

body.sistemaigreja .ig-insightsHost .dashInsightsHeadTitle {
  font-size: var(--ig-font-section);
}

@media (max-width: 900px) {
  body.sistemaigreja .dashSituationGrid {
    grid-template-columns: 1fr;
  }
}

@keyframes igTabIn {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 1;
  }
}

body.sistemaigreja .tabpane.active {
  animation: igTabIn 0.2s var(--ig-ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  body.sistemaigreja .ig-readBlock:hover {
    box-shadow: inherit;
  }

  body.sistemaigreja .tabpane.active {
    animation: none;
  }
}

/* =============================================================================
   Dashboard — decisão visual N1→N4 (um foco; contraste com intenção; espaço = prioridade)
   ============================================================================= */

body.sistemaigreja .ig-visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.sistemaigreja .ig-page--dashboard {
  padding-bottom: clamp(20px, 3.5vw, 36px);
}

/* N0 — cromo: não compete com o card mestre */
body.sistemaigreja .ig-vizChrome.ig-dashHeroHead {
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: 0;
  border-bottom: none;
}

body.sistemaigreja .ig-vizChrome .ig-dashHeroHead__title {
  margin: 0 0 4px 0;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #475569;
}

body.sistemaigreja .ig-vizChrome .ig-dashHeroHead__lead {
  margin: 0;
  max-width: 48ch;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #94a3b8;
}

body.sistemaigreja .ig-dashStack {
  margin-bottom: clamp(14px, 2vw, 20px);
}

/* N1 — mais respiro = mais importância */
body.sistemaigreja .ig-dashStack--master {
  margin-bottom: clamp(28px, 4vw, 44px);
  margin-top: clamp(4px, 0.8vw, 10px);
}

body.sistemaigreja .ig-dashStack--kpi {
  margin-bottom: clamp(18px, 2.5vw, 24px);
}

body.sistemaigreja .ig-dashStack--alerts {
  margin-bottom: clamp(14px, 2vw, 20px);
}

body.sistemaigreja .ig-dashStack--resumo {
  margin-bottom: clamp(14px, 2vw, 20px);
}

body.sistemaigreja .ig-dashStack--chart {
  margin-bottom: clamp(14px, 2vw, 20px);
}

body.sistemaigreja .ig-premiumEyebrow {
  display: block;
  margin: 0 0 6px 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja .ig-premiumEyebrow--soft {
  color: #94a3b8;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body.sistemaigreja .ig-premiumCard {
  position: relative;
  border-radius: var(--ig-card-radius);
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: var(--ig-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: clamp(16px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
  transition: border-color var(--ig-duration) var(--ig-ease-standard);
}

body.sistemaigreja .ig-premiumCard:hover:not(.ig-premiumCard--master):not(.ig-premiumCard--resumo):not(.ig-premiumCard--dataPanel) {
  border-color: rgba(203, 213, 225, 0.95);
}

body.sistemaigreja .ig-premiumCard__head {
  margin: 0 0 12px 0;
}

body.sistemaigreja .ig-premiumCard__head--tight {
  margin-bottom: 10px;
}

body.sistemaigreja .ig-premiumCard__title {
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ig-text);
  line-height: 1.22;
}

body.sistemaigreja .ig-premiumCard__title--l3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

body.sistemaigreja .ig-premiumCard__title--inPanel {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

body.sistemaigreja .ig-premiumCard__sub {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 56ch;
}

/* N1 — único pico de sombra e contraste */
body.sistemaigreja .ig-premiumCard--master {
  padding: clamp(26px, 3.2vw, 36px) clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(15, 23, 42, 0.07),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .ig-premiumCard--master:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(15, 23, 42, 0.07),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .ig-premiumCard--master .ig-premiumCard__body {
  margin: 0;
}

body.sistemaigreja .ig-masterCardBody {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

body.sistemaigreja .ig-masterCardBody__kicker {
  margin: 0 0 8px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

body.sistemaigreja .ig-masterValue {
  margin: 0 0 12px 0;
  font-size: clamp(2.1rem, 5.2vw, 2.85rem);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
  font-family: var(--ig-font-mono);
  color: #0f172a;
}

body.sistemaigreja .ig-masterValue.is-positive {
  color: #15803d;
}

body.sistemaigreja .ig-masterValue.is-negative {
  color: #b91c1c;
}

body.sistemaigreja .ig-masterCardBody__aside {
  padding: 18px 20px;
  border-radius: var(--ig-ui-radius-lg);
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

body.sistemaigreja .ig-masterUsoLabel {
  margin: 0 0 6px 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

body.sistemaigreja .ig-masterUsoValue {
  margin-bottom: 8px !important;
}

body.sistemaigreja .ig-premiumCard--master .dashMasterCard__ribbon {
  top: 20px;
  right: 22px;
}

body.sistemaigreja .ig-premiumCard--master .dashMasterCard__statusLabel {
  color: #475569;
  font-weight: 600;
}

/* N2 — KPIs: alinhados, sombra mínima, sem “pulo” no hover */
body.sistemaigreja .ig-premiumKpiRow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 12px;
}

body.sistemaigreja .ig-premiumKpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.028);
  transition: border-color var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .ig-premiumKpi:hover {
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.028);
  transform: none;
}

body.sistemaigreja .ig-premiumKpi__name {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  line-height: 1.3;
}

body.sistemaigreja .ig-premiumKpi__value {
  display: block;
  font-size: clamp(0.94rem, 1.65vw, 1.08rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-family: var(--ig-font-mono);
  color: #1e293b;
  margin-bottom: 4px;
}

body.sistemaigreja .ig-premiumKpi__value--pos {
  color: #166534;
}

body.sistemaigreja .ig-premiumKpi__value--neg {
  color: #b91c1c;
}

body.sistemaigreja .ig-premiumKpi__value--muted {
  color: #94a3b8;
}

body.sistemaigreja .ig-premiumKpi__value--warn {
  color: #9a3412;
}

body.sistemaigreja .ig-premiumKpi__note {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: #94a3b8;
  min-height: 2.4em;
}

/* N2 — alertas: leitível, sem dominar */
body.sistemaigreja .ig-premiumCard--alerts {
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035);
}

body.sistemaigreja .ig-premiumCard--alerts .dashAlertList {
  gap: 8px;
}

body.sistemaigreja #tab-dashboard .dashAlertItem {
  font-weight: 550;
}

body.sistemaigreja #tab-dashboard .dashAlertItem--info {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(226, 232, 240, 0.9);
  color: #475569;
  border-left-color: #94a3b8;
}

/* N3 — resumo: plano, baixo contraste de moldura */
body.sistemaigreja .ig-premiumCard--resumo {
  padding: 14px 16px 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: none;
}

body.sistemaigreja .ig-resumoExecBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.sistemaigreja .ig-resumoExecLine {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.55;
  color: #334155;
  padding: 0;
  border: none;
  background: transparent;
}

body.sistemaigreja .ig-resumoExecTrend__lead {
  margin: 0 0 4px 0;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.45;
  color: #475569;
}

body.sistemaigreja .ig-resumoExecTrend__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

body.sistemaigreja .ig-resumoExecTrend {
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}

/* N3 — gráficos: container claro, menos peso que KPIs */
body.sistemaigreja .ig-premiumCard--chart {
  background: #fafbfc;
  border-color: rgba(241, 245, 249, 0.98);
  box-shadow: none;
}

body.sistemaigreja .ig-premiumCard--chartPrimary {
  background: #fafbfc;
  border-color: rgba(226, 232, 240, 0.88);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.sistemaigreja .ig-premiumCard--chart .ig-premiumCard__head {
  margin-bottom: 10px;
}

body.sistemaigreja .ig-premiumCard--chartPrimary .ig-chartCanvasWrap {
  height: 288px;
  min-height: 260px;
  position: relative;
}

body.sistemaigreja .ig-chartCanvasWrap {
  position: relative;
  width: 100%;
  height: 248px;
  min-height: 210px;
}

body.sistemaigreja .ig-chartCanvasWrap--compact {
  height: 260px;
  min-height: 220px;
}

body.sistemaigreja .ig-chartCanvasWrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.sistemaigreja .ig-dashSplit {
  display: grid;
  gap: 14px 16px;
  align-items: stretch;
  margin-bottom: clamp(14px, 2vw, 20px);
}

body.sistemaigreja .ig-dashSplit--charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sistemaigreja .ig-premiumCard--insightsHost .dashInsightsChips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.sistemaigreja .ig-premiumCard--insightsHost .dashInsightChip {
  flex: 1 1 auto;
  min-width: 0;
  box-shadow: none;
  border-color: rgba(226, 232, 240, 0.95);
}

body.sistemaigreja .ig-premiumCard--insightsHost .dashInsightChip:hover {
  transform: none;
}

/* N4 — fundo recuado, tabela leitura-first */
body.sistemaigreja .ig-vizDeep.ig-dashDeep {
  margin-top: clamp(12px, 2vw, 20px);
  padding-top: clamp(16px, 2.2vw, 22px);
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  gap: 14px;
}

body.sistemaigreja .ig-dashDeep__intro {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

body.sistemaigreja .ig-dashDeep .dashBadges {
  margin: 0;
  opacity: 0.92;
}

body.sistemaigreja .ig-premiumCard--dataPanel {
  padding: clamp(14px, 1.8vw, 18px);
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow: none;
}

body.sistemaigreja .ig-premiumCard--dataPanel .ig-premiumPanelInner.panel {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

body.sistemaigreja .ig-vizDeep .painelProfissionalKpis .ppKpi {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(226, 232, 240, 0.88);
  box-shadow: none;
}

body.sistemaigreja .ig-vizDeep .painelProfissionalKpis .ppKpiValue {
  font-size: 1.12rem;
  font-weight: 750;
}

body.sistemaigreja .ig-premiumTableWrap {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.65);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

body.sistemaigreja .ig-vizDeep .igTable thead th {
  font-weight: 650;
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.sistemaigreja .ig-premiumCard--events {
  background: #fafbfc;
  border-color: rgba(241, 245, 249, 0.98);
  box-shadow: none;
}

body.sistemaigreja .ig-premiumCard--events .eventList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.sistemaigreja .ig-premiumCard--events .eventList li {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.75);
  background: #fff;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}

body.sistemaigreja .ig-premiumCard--events .eventList li strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 2px;
  color: #334155;
}

body.sistemaigreja .topBar--premium.top.topBar {
  min-height: 58px;
  padding: 8px 20px 8px 22px;
  background: var(--ig-accent);
  border-color: transparent;
  box-shadow: none;
}

body.sistemaigreja .topBar--premium .topBar__subtitle,
body.sistemaigreja .topBar--premium .titleBlock .subtitle {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
}

body.sistemaigreja .sideNav .sideItem {
  border-radius: 6px;
  padding: 7px 10px;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background var(--ig-duration-fast) var(--ig-ease-standard),
    border-color var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .sideNav .sideItem:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: transparent;
  box-shadow: none;
}

body.sistemaigreja .sideNav .sideItem.active {
  background: var(--ig-accent-soft);
  border-color: transparent;
  color: var(--ig-accent);
  box-shadow: none;
}

body.sistemaigreja .sideNav .sideItemGlyph {
  width: 1.35rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.88;
}

body.sistemaigreja .sideNav .sideItem--secondary {
  font-weight: 600;
  font-size: 0.84rem;
}

body.sistemaigreja .sideNavGroupToggle {
  border-radius: 10px;
  transition: background var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .sideNavGroupToggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 1180px) {
  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.sistemaigreja .ig-masterCardBody {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .ig-dashSplit--charts {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.sistemaigreja .ig-premiumCard--chartPrimary .ig-chartCanvasWrap {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .ig-dashHeroHead {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Família visual premium — outras abas (coerência com o dashboard) */
body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead {
  margin-bottom: clamp(14px, 2vw, 20px);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead h2 {
  letter-spacing: -0.03em;
}

/* Sub-navegação unificada (lançamentos / configurações) */
body.sistemaigreja .igSubnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
  background: var(--ig-surface-muted);
  border: var(--ig-ui-border);
  border-radius: var(--ig-ui-radius-lg);
}
body.sistemaigreja .igSubnav__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ig-muted);
  font: inherit;
  font-size: var(--ig-font-body);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--ig-ui-radius-md);
  cursor: pointer;
  transition: background var(--ig-duration-fast), color var(--ig-duration-fast);
}
body.sistemaigreja .igSubnav__btn:hover {
  color: var(--ig-text);
  background: rgba(255, 255, 255, 0.72);
}
body.sistemaigreja .igSubnav__btn.active {
  background: var(--ig-surface);
  color: var(--ig-accent);
  box-shadow: var(--ig-ui-shadow-sm);
}
body.sistemaigreja .confSubpane:not(.active),
body.sistemaigreja .igrejaSubpane:not(.active),
body.sistemaigreja .lancSubpane:not(.active) {
  display: none !important;
}

/* Hub Configurações / Igreja — layout travado (padrão Receitas) */
body.sistemaigreja:has(#tab-conf-configuracoes.active) .content,
body.sistemaigreja:has(#tab-conf-igreja.active) .content {
  overflow: hidden !important;
}

body.sistemaigreja:has(#tab-conf-configuracoes.active) .contentInner,
body.sistemaigreja:has(#tab-conf-igreja.active) .contentInner {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  overflow: hidden !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

body.sistemaigreja #tab-conf-configuracoes.lancFluxo--config.tabpane.active,
body.sistemaigreja #tab-conf-igreja.lancFluxo--igreja.tabpane.active {
  order: 0 !important;
  flex: 0 0 auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja .confSubpane.tabpane.active,
body.sistemaigreja .igrejaSubpane.tabpane.active {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.sistemaigreja:has(#tab-conf-configuracoes.active) .confSubpane.active > .pageHead,
body.sistemaigreja:has(#tab-conf-igreja.active) .igrejaSubpane.active > .pageHead {
  display: none !important;
}

/* Área rolável única (formulários / importação) */
body.sistemaigreja .hubFluxo--multi.active > .hubFluxoBody {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 0 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body.sistemaigreja .hubFluxo--multi.active > .hubFluxoBody > .panel {
  flex: 0 0 auto !important;
  margin: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja:has(#tab-conf-configuracoes.active) .hubFluxo--multi.active > .hubFluxoBody > .panel {
  border: 1px solid var(--ig-accent-muted) !important;
}

body.sistemaigreja:has(#tab-conf-igreja.active) .hubFluxo--multi.active > .hubFluxoBody > .panel {
  border: 1px solid var(--ig-accent-muted) !important;
}

/* Lista — cabeçalho fixo, só tabela rola */
body.sistemaigreja .hubFluxo--table.active {
  gap: 0 !important;
}

body.sistemaigreja .hubFluxo--table.active > .hubFluxoTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  background: #e8edf3 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-shadow: none !important;
}

body.sistemaigreja .hubFluxo--table.active > .hubFluxoTablePane .panelHeadRow,
body.sistemaigreja .hubFluxo--table.active > .hubFluxoTablePane > h3,
body.sistemaigreja .hubFluxo--table.active > .hubFluxoTablePane .statusOk {
  flex: 0 0 auto !important;
}

body.sistemaigreja .hubFluxo--table.active > .hubFluxoTablePane .tableScroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
}

body.sistemaigreja .hubFluxo--table.active > .hubFluxoTablePane .igTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  background: #f1f5f9 !important;
}

/* Auditoria — filtros fixos + tabela rola */
body.sistemaigreja .hubFluxo--auditoria.active > .hubFluxoStickyPanel {
  flex: 0 0 auto !important;
  margin: 0 0 8px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(99, 102, 241, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja .hubFluxo--auditoria.active > .hubFluxoTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  background: #e8edf3 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-shadow: none !important;
}

body.sistemaigreja .hubFluxo--auditoria.active > .hubFluxoTablePane .panelHeadRow,
body.sistemaigreja .hubFluxo--auditoria.active > .hubFluxoTablePane .statusOk,
body.sistemaigreja .hubFluxo--auditoria.active > .hubFluxoTablePane .lancActions {
  flex: 0 0 auto !important;
}

body.sistemaigreja .hubFluxo--auditoria.active > .hubFluxoTablePane .tableScroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

body.sistemaigreja .lancOpBar__primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Importação — opções com checkbox alinhado */
body.sistemaigreja .impOpcoesLead {
  margin: 0 0 10px 0;
  font-size: 0.88rem;
}

body.sistemaigreja .impOpcoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

body.sistemaigreja label.impCheck {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius-sm);
  background: var(--ig-surface);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ig-text);
  cursor: pointer;
}

body.sistemaigreja label.impCheck:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.sistemaigreja label.impCheck input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 3px 0 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--ig-accent, #0369a1);
  cursor: pointer;
}

body.sistemaigreja label.impCheck span {
  flex: 1;
  min-width: 0;
}

body.sistemaigreja label.impCheck span strong {
  font-weight: 700;
  color: var(--ig-text);
}

body.sistemaigreja .impReparoPanel {
  margin-top: 16px;
}

body.sistemaigreja .impPreviewBox {
  margin-top: 0;
}

body.sistemaigreja .impErrosBox {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--ig-radius-sm);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  font-size: 0.85rem;
}

body.sistemaigreja .impProgressWrap {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius-sm);
  background: #f8fafc;
}

body.sistemaigreja .impProgressMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

body.sistemaigreja .impProgressMeta strong {
  font-size: 0.95rem;
  color: var(--ig-accent, #0369a1);
}

body.sistemaigreja .impProgressTrack {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

body.sistemaigreja .impProgressBar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0369a1 0%, #0ea5e9 55%, #38bdf8 100%);
  transition: width 0.25s ease;
}

body.sistemaigreja .impProgressDetail {
  margin: 8px 0 0 0;
  font-size: 0.82rem;
}

body.sistemaigreja .impProgressWrap.is-indeterminate .impProgressBar {
  width: 35% !important;
  animation: impProgressIndet 1.2s ease-in-out infinite;
}

@keyframes impProgressIndet {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* Guia rápido (Início) */
body.sistemaigreja .igGuiaRapido {
  margin: 0 0 20px 0;
  padding: 16px 18px;
  border: 1px solid #bae6fd;
  border-radius: var(--ig-radius);
  background: linear-gradient(165deg, #e0f2fe 0%, #fff 70%);
}

body.sistemaigreja .igGuiaRapido__tit {
  margin: 0 0 12px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ig-text);
}

body.sistemaigreja .igGuiaRapido__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

body.sistemaigreja .igGuiaRapido__btn {
  appearance: none;
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius-sm);
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.sistemaigreja .igGuiaRapido__btn:hover {
  border-color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
}

body.sistemaigreja .igGuiaRapido__btn strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--ig-accent, #0369a1);
}

body.sistemaigreja .igGuiaRapido__btn span {
  display: block;
  font-size: 0.78rem;
  color: var(--ig-muted);
  line-height: 1.35;
}

body.sistemaigreja .igLinkBtn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ig-accent, #0369a1);
  cursor: pointer;
  text-decoration: underline;
}

body.sistemaigreja .sideItemMeta--hint {
  font-size: 0.68rem;
  color: var(--ig-muted);
  font-weight: 500;
}

/* Relatório — filtro em destaque */
body.sistemaigreja .relFiltroHero {
  border: 2px solid #bae6fd;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  margin-bottom: 18px;
}

body.sistemaigreja .relFiltroHero__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ig-muted);
  margin-bottom: 10px;
}

body.sistemaigreja .relFiltroHero__step {
  color: var(--ig-accent, #0369a1);
}

body.sistemaigreja .relFiltroHero__sep {
  color: #cbd5e1;
}

body.sistemaigreja .relFiltroHero__tit {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
}

body.sistemaigreja .relFiltroHero__hint {
  margin: 0 0 16px 0;
  font-size: 0.88rem;
}

body.sistemaigreja .relFiltroHero__grid {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(100px, 140px) 1fr;
  gap: 14px;
  align-items: end;
}

@media (max-width: 720px) {
  body.sistemaigreja .relFiltroHero__grid {
    grid-template-columns: 1fr 1fr;
  }
  body.sistemaigreja .relFiltroHero__acoes {
    grid-column: 1 / -1;
  }
}

body.sistemaigreja .relFiltroHero__field select {
  font-size: 1rem;
  font-weight: 600;
  min-height: 44px;
}

body.sistemaigreja .relFiltroHero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.sistemaigreja .igBtn--lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

body.sistemaigreja .relFiltroAvancado {
  margin-top: 14px;
  font-size: 0.85rem;
}

body.sistemaigreja .relFiltroAvancado summary {
  cursor: pointer;
  color: var(--ig-muted);
  font-weight: 600;
}

body.sistemaigreja .relFiltroAvancado__body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  max-width: 520px;
}

/* ========== v3.1 — shell, menu lateral v2, relatório em abas ========== */

body.sistemaigreja {
  --ig-content-max: min(1680px, 100%);
}

body.sistemaigreja .contentInner {
  width: 100%;
  max-width: var(--ig-content-max);
  margin-inline: auto;
}

@media (min-width: 901px) {
  body.sistemaigreja.sidenav-on .wrap {
    display: grid;
    grid-template-columns: var(--ig-sidebar-width) minmax(0, 1fr);
    grid-template-areas:
      'side head'
      'side main';
    align-items: start;
  }

  body.sistemaigreja.sidenav-on.sidenav-collapsed .wrap {
    grid-template-columns: var(--ig-sidebar-width-collapsed) minmax(0, 1fr);
  }

  body.sistemaigreja.sidenav-on .sidebar {
    grid-area: side;
    position: sticky;
    top: 12px;
    left: auto;
    height: calc(100vh - 24px);
    align-self: start;
  }

  body.sistemaigreja.sidenav-on .wrap > .top {
    grid-area: head;
    margin-left: 0 !important;
    width: auto;
    max-width: none;
  }

  body.sistemaigreja.sidenav-on .content {
    grid-area: main;
    margin-left: 0 !important;
    max-width: none;
    width: auto;
    min-width: 0;
  }

  body.sistemaigreja.sidenav-on .wrap > .sidebar {
    grid-area: side;
  }
}

body.sistemaigreja .contentInner {
  min-width: 0;
}

body.sistemaigreja #tab-relatorios {
  min-width: 0;
  width: 100%;
}

body.sistemaigreja .relPaneStack {
  min-width: 0;
  width: 100%;
}

body.sistemaigreja .relPane--active {
  width: 100%;
  min-width: 0;
}

body.sistemaigreja .relPlanilhaPanel,
body.sistemaigreja .relPlanilhaGrid,
body.sistemaigreja .relPlanilhaCol {
  min-width: 0;
}

body.sistemaigreja .contentInner .dashExecStrip,
body.sistemaigreja .contentInner .dashChartsShell,
body.sistemaigreja .contentInner .dashInsights,
body.sistemaigreja .contentInner .ig-dashStack,
body.sistemaigreja .contentInner .ig-vizDeep {
  max-width: none;
}

/* Sidebar v2 */
body.sistemaigreja .sidebar--v2 {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-right-color: rgba(226, 232, 240, 0.95);
}

body.sistemaigreja .sideNavHeader--v2 {
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.06) 0%, rgba(255, 255, 255, 0) 72%);
}

body.sistemaigreja .sideNavZone {
  margin-bottom: 10px;
}

body.sistemaigreja .sideNavZone__lbl {
  padding: 6px 12px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.sistemaigreja .sideNavZone__lbl--button {
  display: block;
  width: calc(100% - 16px);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

body.sistemaigreja .sideNavZone__lbl--button:hover,
body.sistemaigreja .sideNavZone__lbl--button:focus-visible {
  color: #475569;
}

body.sistemaigreja .sideNavZone__lbl--button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
  border-radius: 8px;
}

body.sistemaigreja .sideNavPinned {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px 4px;
}

body.sistemaigreja .sideItem--featured {
  position: relative;
  padding: 12px 14px 12px 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.sistemaigreja .sideItem--featured::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .sideItem--featured.active::before {
  background: linear-gradient(180deg, var(--ig-accent), #0284c7);
}

body.sistemaigreja .sideItem--featured.active {
  background: linear-gradient(120deg, rgba(3, 105, 161, 0.12) 0%, rgba(239, 246, 255, 0.92) 100%);
  border-color: rgba(3, 105, 161, 0.28);
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.1);
}

body.sistemaigreja .sideItemStack {
  min-width: 0;
  flex: 1;
}

body.sistemaigreja .sideItemTitle {
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
}

body.sistemaigreja .sideItemDesc {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ig-muted);
  line-height: 1.35;
}

body.sistemaigreja .sideNavSection--flat .sideNavSectionItems {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 6px;
}

body.sistemaigreja .sideNavSection--flat.is-open .sideNavSectionItems {
  display: flex;
}

/* Relatório — sub-abas e painéis */
body.sistemaigreja .igSubnav--rel {
  position: sticky;
  top: 8px;
  z-index: var(--ig-z-sticky);
  margin-top: 4px;
  backdrop-filter: blur(8px);
  background: rgba(248, 250, 252, 0.92);
}

body.sistemaigreja .relPaneStack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.sistemaigreja .relPane {
  display: none;
  flex-direction: column;
  gap: var(--ig-space-stack);
  animation: relPaneIn 0.22s var(--ig-ease-standard);
}

body.sistemaigreja .relPane--active {
  display: flex;
}

@keyframes relPaneIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.sistemaigreja .relPane[data-rel-pane='planilha'] .relPlanilhaPanel {
  margin-bottom: 0;
}

body.sistemaigreja .relPane[data-rel-pane='planilha'] .relPlanilhaGrid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: 18px;
  width: 100%;
}

body.sistemaigreja .relFinal--inline {
  margin-bottom: 0;
}

body.sistemaigreja .igTwoCol--rel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.sistemaigreja .chartRow--rel {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  body.sistemaigreja .igTwoCol--rel {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .relPane[data-rel-pane='planilha'] .relPlanilhaGrid {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .relPane[data-rel-pane='planilha'] .relPlanilhaCol--resumo {
    position: static;
    max-width: none;
    max-height: none;
  }
}

body.sistemaigreja .igDataDirPanel {
  margin-bottom: 14px;
  border-color: var(--ig-accent-muted);
  background: linear-gradient(135deg, #f8fafc 0%, var(--ig-accent-soft) 100%);
}

body.sistemaigreja .igDataDirPanel__path code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ig-line);
  font-size: 0.78rem;
  word-break: break-all;
}

body.sistemaigreja .igDataDirPanel__status--ok {
  color: #15803d;
  font-weight: 600;
  font-size: 0.85rem;
}

body.sistemaigreja .igDataDirPanel__status--warn {
  color: #b45309;
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  body.sistemaigreja .igSubnav--rel {
    top: 0;
  }

  body.sistemaigreja .igSubnav--rel .igSubnav__btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    padding: 9px 10px;
    font-size: 0.8rem;
  }
}

/* ========== v3.2 — polish visual (ícones, marca, relatório, módulos) ========== */

body.sistemaigreja .igIcon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #64748b;
  transition: color var(--ig-duration-fast) var(--ig-ease-standard);
}

body.sistemaigreja .igIcon--sm {
  width: 18px;
  height: 18px;
}

body.sistemaigreja .igBtn--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.sistemaigreja .igBtn--icon .igIcon {
  color: currentColor;
}

body.sistemaigreja .sideItem--featured .igIcon {
  color: #475569;
}

body.sistemaigreja .sideItem--featured.active .igIcon,
body.sistemaigreja .sideItem--featured:hover .igIcon {
  color: var(--ig-accent);
}

body.sistemaigreja .sideItem--secondary {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.sistemaigreja .sideItemGlyph {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.sistemaigreja .sideNavIcon .igIcon {
  margin: 0 auto;
  color: var(--ig-muted);
}

body.sistemaigreja .topBar__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.sistemaigreja .topBar__ver {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ig-ui-radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ig-accent);
  background: var(--ig-accent-soft);
  border: 1px solid var(--ig-accent-muted);
}

@media (min-width: 901px) {
  body.sistemaigreja #btnSidebarToggle {
    display: inline-flex;
  }
}

body.sistemaigreja .topBar--premium.top.topBar {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.sistemaigreja .topBar--premium .topBar__brand {
  flex: 1 1 auto;
  min-width: 0;
}

body.sistemaigreja .igAppMenuToggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

body.sistemaigreja .igAppMenuToggle__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.sistemaigreja.dash-focus-mode .igAppMenuToggle {
  border-color: var(--ig-accent-muted) !important;
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
}

body.sistemaigreja .brandMark {
  background: linear-gradient(145deg, var(--ig-accent) 0%, var(--ig-accent-hover) 100%);
  box-shadow: 0 4px 14px rgba(var(--ig-brand-rgb), 0.28);
}

body.sistemaigreja .sideNavHeader--v2 {
  background: linear-gradient(135deg, var(--ig-accent-soft) 0%, rgba(255, 255, 255, 0) 72%);
  border-bottom-color: var(--ig-sidebar-border, var(--ig-line));
}

body.sistemaigreja .sideItem--featured.active::before {
  background: linear-gradient(180deg, var(--ig-accent), var(--ig-accent-hover));
}

body.sistemaigreja .sideItem--featured.active {
  background: linear-gradient(120deg, var(--ig-accent-soft) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: var(--ig-accent-muted);
  box-shadow: 0 4px 16px rgba(var(--ig-brand-rgb), 0.1);
}

body.sistemaigreja .igSubnav__btn.active {
  color: var(--ig-accent);
  border-color: var(--ig-accent-muted);
  background: var(--ig-accent-soft);
}

body.sistemaigreja .kpiCard--rel .val:not(.negative) {
  color: var(--ig-accent);
}

body.sistemaigreja .relFiltroHero {
  border-color: var(--ig-accent-muted);
  background: linear-gradient(180deg, var(--ig-accent-soft) 0%, #fff 100%);
}

body.sistemaigreja .relFiltroWrap--collapsed {
  margin-bottom: 8px;
}

/* ── relFiltroCompact — 2 linhas ── */
body.sistemaigreja .relFiltroCompact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--ig-accent-muted);
  background: linear-gradient(120deg, #fff 0%, var(--ig-accent-soft) 100%);
}

/* Linha 1: status + fechar mês */
body.sistemaigreja .relFiltroCompact__row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Linha 2: botões de ação */
body.sistemaigreja .relFiltroCompact__row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

body.sistemaigreja .relFiltroCompact__acoes-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.sistemaigreja .relFiltroCompact__acoes-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

body.sistemaigreja .relFiltroCompact__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  flex: 1;
  min-width: 0;
}

body.sistemaigreja .relFiltroCompact__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-muted);
}

body.sistemaigreja .relFiltroCompact__val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ig-text);
}

body.sistemaigreja .relFiltroCompact__badge {
  font-size: 0.82rem;
  font-weight: 600;
}

body.sistemaigreja .relFiltroCompact__fech {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botão "⬇ PDF / Excel" — fantasma discreto */
body.sistemaigreja .igBtnGhost {
  background: transparent;
  border: 1px solid var(--ig-line);
  color: var(--ig-muted);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
body.sistemaigreja .igBtnGhost:hover:not(:disabled) {
  background: var(--ig-surface-muted);
  color: var(--ig-text);
  border-color: var(--ig-accent-muted);
}
body.sistemaigreja .igBtnGhost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Botão "Fechar mês" — atenção suave (amarelo/laranja) */
body.sistemaigreja .igBtnWarning {
  background: #fff8e1;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
body.sistemaigreja .igBtnWarning:hover {
  background: #fef3c7;
  border-color: #d97706;
}

/* Esconde o "+ Salvar filtro" dentro do compact — é pouco usado */
body.sistemaigreja #relFiltroCompact .igSalvarFiltroBtn,
body.sistemaigreja #relFiltroCompact .igFiltrosSalvos {
  display: none !important;
}

body.sistemaigreja .relFiltroWrap--collapsed + .igSubnav--rel {
  margin-top: 0;
}

body.sistemaigreja .relChartPanel {
  padding-top: 12px;
  padding-bottom: 8px;
}

body.sistemaigreja .chartBox--tall {
  min-height: 280px;
}

body.sistemaigreja .relHistPanel .chartBox--tall {
  min-height: 320px;
}

body.sistemaigreja .relHistPanel .chartBox--tall canvas {
  max-height: 360px;
}

body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes {
  position: sticky;
  top: 8px;
  z-index: var(--ig-z-sticky);
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  background: rgba(248, 250, 252, 0.92);
}

body.sistemaigreja .lancModule .lancOpBar {
  border: 1px solid var(--ig-accent-muted);
  background: linear-gradient(180deg, var(--ig-accent-soft) 0%, #fff 100%);
  box-shadow: var(--ig-ui-shadow-sm);
  margin-bottom: 12px;
}

body.sistemaigreja .lancModule .pageHead {
  margin-bottom: 10px;
}

body.sistemaigreja .tesModuleShell {
  display: flex;
  flex-direction: column;
  gap: var(--ig-space-stack);
}

body.sistemaigreja .tesModuleShell .panel--tesourariaBlock {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .tesourariaSubnav.igSubnav {
  margin-top: 0;
  border-bottom: none;
  padding: 4px;
}

body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn {
  border: 0;
  border-radius: var(--ig-ui-radius-md);
  background: transparent;
  color: var(--ig-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn:hover {
  color: var(--ig-text);
  background: rgba(255, 255, 255, 0.72);
  border-color: transparent;
}

body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn.active {
  background: var(--ig-surface);
  color: var(--ig-accent);
  border-color: transparent;
  box-shadow: var(--ig-ui-shadow-sm);
}

/* Relatório — fases 1–4 (estabilização e escala) */
body.sistemaigreja .sideItemMeta--rel {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ig-accent);
  margin-top: 2px;
}

body.sistemaigreja .relGuiaRapido {
  margin-bottom: 12px;
  border-color: var(--ig-accent-muted);
  background: linear-gradient(135deg, var(--ig-accent-soft) 0%, #fff 100%);
}

body.sistemaigreja .relGuiaRapido__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

body.sistemaigreja .relGuiaRapido__steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--ig-muted);
  line-height: 1.5;
}

body.sistemaigreja .relQualidadeBanner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--ig-ui-radius-md);
  border: 1px solid var(--ig-ui-warn-border);
  background: var(--ig-ui-warn-bg);
  color: var(--ig-ui-warn-text);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.sistemaigreja .relQualidadeBanner--demo {
  border-color: var(--ig-ui-info-border);
  background: var(--ig-ui-info-bg);
  color: var(--ig-ui-info-text);
}

body.sistemaigreja .relQualidadeBanner__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.sistemaigreja .relFiltroCompact__scope {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  margin-top: 2px;
}

body.sistemaigreja .relFiltroCompact__fech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

body.sistemaigreja .relFiltroWrap--collapsed ~ .igSubnav--rel ~ #relPaneStack .relPlanilhaTop,
body.sistemaigreja .relFiltroWrap--collapsed ~ #relPaneStack .relPlanilhaTop {
  display: none !important;
}

body.sistemaigreja .relPlanilhaHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 6px;
}

body.sistemaigreja .relPlanilhaHead h3 {
  margin: 0;
}

body.sistemaigreja .relPlanilhaToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

body.sistemaigreja .relPlanilhaVol {
  font-size: 0.8rem;
  font-weight: 600;
}

body.sistemaigreja .relPlanilhaToggle {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ig-muted);
  cursor: pointer;
}

body.sistemaigreja .relPlanilhaLeadDetails {
  margin-bottom: 12px;
  font-size: 0.85rem;
}

body.sistemaigreja .relPlanilhaLeadDetails summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ig-muted);
}

body.sistemaigreja .relPlanilhaLeadDetails[open] .relPlanilhaLead {
  margin-top: 8px;
}

body.sistemaigreja .relPlanilhaResumoLinha--zero.relPlanilhaResumoLinha--hidden {
  display: none;
}

body.sistemaigreja .relPlanilhaConta--warn {
  background: rgba(254, 243, 199, 0.35);
}

body.sistemaigreja .relPlanilhaContaWarn {
  color: #b45309;
  font-weight: 700;
}

body.sistemaigreja .relPlanilhaResumoSec--hidden {
  display: none;
}

/* Largura mínima recomendada: 1280px para duas colunas estáveis */

@media (max-width: 720px) {
  body.sistemaigreja .relFiltroCompact {
    flex-direction: column;
    align-items: stretch;
  }

  body.sistemaigreja .relFiltroCompact__acoes .igBtn {
    flex: 1 1 calc(50% - 4px);
  }

  body.sistemaigreja .igSubnav--lanc,
  body.sistemaigreja .igSubnav--tes {
    top: 0;
  }
}

/* v3.2 — lista tabela, onboarding, tesouraria sem KPI duplicado */
body.sistemaigreja .lancListaViewBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ig-border, #e5e7eb);
}

body.sistemaigreja .lancListaViewBar__lab {
  font-size: 0.82rem;
  margin-right: 4px;
}

body.sistemaigreja .lancListaViewBar .igBtn.active {
  background: var(--ig-brand, #0369a1);
  color: #fff;
  border-color: transparent;
}

body.sistemaigreja #panelListaEntradas.is-table .listaCards,
body.sistemaigreja #panelListaSaidas.is-table .listaCards {
  display: block;
}

body.sistemaigreja .lancListaTableWrap {
  margin-top: 4px;
}

body.sistemaigreja .lancListaTable .colAcoes {
  white-space: nowrap;
}

body.sistemaigreja .lancListaTableAcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.sistemaigreja .tesDashDecisaoLink {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(3, 105, 161, 0.06);
  font-size: 0.9rem;
  line-height: 1.45;
}

body.sistemaigreja .igOnboarding {
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid rgba(3, 105, 161, 0.25);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.08), rgba(3, 105, 161, 0.02));
}

body.sistemaigreja .igOnboarding__inner {
  padding: 14px 16px;
}

body.sistemaigreja .igOnboarding__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

body.sistemaigreja .igOnboarding__title {
  font-size: 0.95rem;
}

body.sistemaigreja .igOnboarding__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ig-muted, #64748b);
}

body.sistemaigreja .igOnboarding__list li + li {
  margin-top: 4px;
}

body.sistemaigreja .igLeituraWelcome {
  margin-bottom: 16px;
}

body.sistemaigreja .igLeituraWelcome__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

/* Relatorios gerenciais: DRE e fluxo */
body.sistemaigreja .relDreHero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body.sistemaigreja .relDreMetric {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--ig-ui-shadow-sm);
}

body.sistemaigreja .relDreMetric__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

body.sistemaigreja .relDreMetric__value {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ig-text);
}

body.sistemaigreja .relDreMetric__value.is-positive {
  color: var(--ig-positive);
}

body.sistemaigreja .relDreMetric__value.is-negative {
  color: var(--ig-negative);
}

body.sistemaigreja .relDreMetric small {
  display: block;
  margin-top: 8px;
  color: var(--ig-muted);
  font-size: 0.76rem;
}

body.sistemaigreja .relDrePanel {
  margin-bottom: 14px;
}

body.sistemaigreja .relDreTable th,
body.sistemaigreja .relDreTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

body.sistemaigreja .relDreTable .relDreCol--mes {
  white-space: normal;
  overflow: visible;
}

body.sistemaigreja .relDreTable .relDreCol--linha {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: #ffffff;
  box-shadow: 2px 0 8px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .relDreTable thead .relDreCol--linha {
  z-index: 5;
  background: rgba(248, 250, 252, 0.98);
}

body.sistemaigreja .relDreTable tbody tr:nth-child(odd) .relDreCol--linha {
  background: #fbfdff;
}

body.sistemaigreja .relDreTable tbody tr:hover .relDreCol--linha {
  background: #f8fafc;
}

body.sistemaigreja #tab-relatorios .relDreTable tbody tr:nth-child(odd) .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody tr:nth-child(odd) .relDreCol--linha {
  background: inherit;
}

body.sistemaigreja #tab-relatorios .relDreTable tbody tr:hover .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody tr:hover .relDreCol--linha {
  background: inherit;
}

body.sistemaigreja .relDreTable tr.relDreRow--resultado .relDreCol--linha,
body.sistemaigreja .relDreTable tr.relDreRow--result .relDreCol--linha,
body.sistemaigreja .relDreTable tr.relDreRow--total .relDreCol--linha {
  background: #f1f5f9 !important;
}

body.sistemaigreja .relDreTable .relDreCol--mes,
body.sistemaigreja .relDreTable .relDreCol--media,
body.sistemaigreja .relDreTable .relDreCol--total {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

body.sistemaigreja .relDreTable .relDreCellStack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  line-height: 1.15;
}

body.sistemaigreja .relDreTable .relDreCellStack__spacer {
  display: block;
  min-height: 0.95rem;
}

body.sistemaigreja .relDreTable .relDreCellStack__val {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

body.sistemaigreja .relDreTable .relDreCellStack__av {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #475569;
  letter-spacing: 0.01em;
}

body.sistemaigreja .relDreTable .relDreCellStack__pct {
  font-size: 0.78rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

body.sistemaigreja #tab-relatorios .relDreTable thead th.relDreCol--total,
body.sistemaigreja #tab-relatorios .relDreTable tbody td.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody td.relDreCol--total {
  border-right: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable thead th.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable thead th.relDreCol--linha {
  background: #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(100, 116, 139, 0.14) !important;
  border-left: none !important;
  top: 0 !important;
  z-index: 7 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tbody tr.relDreRow--blockHead , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody tr.relDreRow--blockHead {
  height: 52px;
}

body.sistemaigreja #tab-relatorios .relDreTable tbody tr:not(.relDreRow--blockHead) , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody tr:not(.relDreRow--blockHead) {
  height: 52px;
}

body.sistemaigreja #tab-relatorios .relDreTable tbody tr:not(.relDreRow--blockHead) td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody tr:not(.relDreRow--blockHead) td {
  height: 52px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCellStack {
  gap: 1px;
  min-height: 0;
  height: 52px;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--mes.is-drillable , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCol--mes.is-drillable {
  cursor: pointer;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill] , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill] {
  cursor: pointer;
}

body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill] .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill] .relDreCol--linha {
  cursor: pointer;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--mes.is-drillable .relDreCellStack,
body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill] .relDreCol--linha .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill] .relDreCol--linha .relDreLinhaLabel {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  transform-origin: center center;
  will-change: transform;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--mes.is-drillable:hover , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCol--mes.is-drillable:hover {
  z-index: 6 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--mes.is-drillable:hover .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCol--mes.is-drillable:hover .relDreCellStack {
  transform: scale(1.09);
  border-radius: 10px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 4px;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--mes.is-drillable:hover .relDreCellStack,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--mes.is-drillable:hover .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem .relDreCol--mes.is-drillable:hover .relDreCellStack {
  background: rgba(220, 252, 231, 0.98) !important;
  box-shadow:
    0 10px 24px rgba(22, 163, 74, 0.16),
    0 0 0 2px rgba(22, 163, 74, 0.22);
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--mes.is-drillable:hover .relDreCellStack,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--mes.is-drillable:hover .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .relDreCol--mes.is-drillable:hover .relDreCellStack {
  background: rgba(255, 228, 230, 0.98) !important;
  box-shadow:
    0 10px 24px rgba(225, 29, 72, 0.16),
    0 0 0 2px rgba(225, 29, 72, 0.22);
}

body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill]:hover .relDreCol--linha .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill]:hover .relDreCol--linha .relDreLinhaLabel {
  transform: scale(1.03);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  padding: 2px 6px;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--mes.is-drillable.is-drill-active , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCol--mes.is-drillable.is-drill-active {
  z-index: 7 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--mes.is-drill-active .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCol--mes.is-drill-active .relDreCellStack {
  transform: scale(1.11);
  border-radius: 10px;
  animation: relDreDrillPulse 0.42s ease;
}

body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill].is-drill-active .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill].is-drill-active .relDreCol--linha {
  z-index: 6 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill].is-drill-active .relDreCol--linha .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill].is-drill-active .relDreCol--linha .relDreLinhaLabel {
  transform: scale(1.04);
  border-radius: 8px;
  animation: relDreDrillPulse 0.42s ease;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--mes.is-drill-active .relDreCellStack,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--mes.is-drill-active .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem .relDreCol--mes.is-drill-active .relDreCellStack {
  background: rgba(187, 247, 208, 0.98) !important;
  box-shadow:
    0 12px 28px rgba(22, 163, 74, 0.22),
    0 0 0 3px rgba(22, 163, 74, 0.38);
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--mes.is-drill-active .relDreCellStack,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--mes.is-drill-active .relDreCellStack , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .relDreCol--mes.is-drill-active .relDreCellStack {
  background: rgba(254, 202, 202, 0.98) !important;
  box-shadow:
    0 12px 28px rgba(225, 29, 72, 0.22),
    0 0 0 3px rgba(225, 29, 72, 0.38);
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr.is-drill-active .relDreCol--linha .relDreLinhaLabel,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem.is-drill-active .relDreCol--linha .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem.is-drill-active .relDreCol--linha .relDreLinhaLabel {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.32);
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr.is-drill-active .relDreCol--linha .relDreLinhaLabel,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem.is-drill-active .relDreCol--linha .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem.is-drill-active .relDreCol--linha .relDreLinhaLabel {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.32);
}

@keyframes relDreDrillPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1.11);
  }
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--mes.is-drillable:hover,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--mes.is-drillable:hover , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem .relDreCol--mes.is-drillable:hover {
  background: rgba(220, 252, 231, 0.95) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--mes.is-drillable:hover,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--mes.is-drillable:hover , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .relDreCol--mes.is-drillable:hover {
  background: rgba(255, 228, 230, 0.95) !important;
}

body.sistemaigreja #tab-relatorios .relDreDrillHint , body.sistemaigreja #tab-comparativo-periodos .relDreDrillHint {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ig-muted, #64748b);
  opacity: 0;
  transition: opacity 0.12s ease;
}

body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill]:hover .relDreDrillHint , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill]:hover .relDreDrillHint {
  opacity: 1;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCellStack__av,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCellStack__av,
body.sistemaigreja #tab-relatorios .relDreCellStack--receita .relDreCellStack__av,
body.sistemaigreja #tab-relatorios .relDreCellStack--receita .relDreCellStack__pct , body.sistemaigreja #tab-comparativo-periodos .relDreCellStack--receita .relDreCellStack__pct {
  color: #166534;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCellStack__av,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCellStack__av,
body.sistemaigreja #tab-relatorios .relDreCellStack--despesa .relDreCellStack__av,
body.sistemaigreja #tab-relatorios .relDreCellStack--despesa .relDreCellStack__pct , body.sistemaigreja #tab-comparativo-periodos .relDreCellStack--despesa .relDreCellStack__pct {
  color: #9f1239;
}

body.sistemaigreja #tab-relatorios .relDreCellStack--resultado .relDreCellStack__pct , body.sistemaigreja #tab-comparativo-periodos .relDreCellStack--resultado .relDreCellStack__pct {
  color: #6d28d9;
}

body.sistemaigreja .relDreTable .relDreCol--media {
  background: rgba(241, 245, 249, 0.55);
}

body.sistemaigreja .relDreTable .relDreCol--total {
  background: rgba(241, 245, 249, 0.75);
  font-weight: 700;
}

body.sistemaigreja .relDreTable td:first-child:not(.relDreCol--linha),
body.sistemaigreja .relDreTable th:first-child:not(.relDreCol--linha) {
  position: static;
  z-index: auto;
  background: inherit;
}

body.sistemaigreja .relDreTable tbody tr:nth-child(odd) td {
  background: #fbfdff;
}

body.sistemaigreja .relDreTable tbody tr:hover td {
  background: #f8fafc;
}

body.sistemaigreja .relDreRow--resultado td,
body.sistemaigreja .relDreRow--result td,
body.sistemaigreja .relDreRow--total td {
  background: #f1f5f9 !important;
  font-weight: 750;
}

body.sistemaigreja .relDreRow--detail .relDreCol--linha {
  color: var(--ig-muted);
  font-size: 0.82rem;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCol--linha {
  position: sticky !important;
  left: 0 !important;
  z-index: 3 !important;
  padding: 0 12px 0 14px !important;
  text-align: left;
  border-right: 1px solid rgba(148, 163, 184, 0.1) !important;
  box-shadow: 3px 0 8px rgba(15, 23, 42, 0.03) !important;
  overflow: visible !important;
}

body.sistemaigreja #tab-relatorios .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreLinhaLabel {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 650;
  color: #1e293b;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

body.sistemaigreja #tab-relatorios .relDreLinhaLabel--total , body.sistemaigreja #tab-comparativo-periodos .relDreLinhaLabel--total {
  font-size: 0.81rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

body.sistemaigreja #tab-relatorios .relDreLinhaLabel--detail , body.sistemaigreja #tab-comparativo-periodos .relDreLinhaLabel--detail {
  padding-left: 2px;
  font-size: 0.77rem;
  font-weight: 560;
  color: #475569;
}

body.sistemaigreja #tab-relatorios .relDreLinhaLabel--detail::before , body.sistemaigreja #tab-comparativo-periodos .relDreLinhaLabel--detail::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.38;
}

body.sistemaigreja #tab-relatorios .relDreRow--receitaHdr .relDreLinhaLabel--total,
body.sistemaigreja #tab-relatorios .relDreRow--receitaHdr .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--receitaHdr .relDreCol--linha {
  color: #15803d !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--despesaHdr .relDreLinhaLabel--total,
body.sistemaigreja #tab-relatorios .relDreRow--despesaHdr .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--despesaHdr .relDreCol--linha {
  color: #be123c !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--resultadoFinal .relDreLinhaLabel--total , body.sistemaigreja #tab-comparativo-periodos .relDreRow--resultadoFinal .relDreLinhaLabel--total {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #6d28d9 !important;
  align-items: center;
  min-height: 0;
  height: auto;
}

body.sistemaigreja #tab-relatorios .relDreTable thead th,
body.sistemaigreja #tab-relatorios .relDreTable tbody td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.07) !important;
  border-top: none !important;
  border-left: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable thead th.num,
body.sistemaigreja #tab-relatorios .relDreTable tbody td.num , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody td.num {
  border-right: 1px solid rgba(148, 163, 184, 0.06);
}

body.sistemaigreja #tab-relatorios .relDreTable thead th.relDreCol--mes,
body.sistemaigreja #tab-relatorios .relDreTable thead th.relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreTable thead th.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable thead th.relDreCol--total {
  background: #e8eef4 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(100, 116, 139, 0.14) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable thead th.relDreCol--total,
body.sistemaigreja #tab-relatorios .relDreTable tbody td.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tbody td.relDreCol--total {
  border-right: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable .relDreCellStack__val.negative , body.sistemaigreja #tab-comparativo-periodos .relDreTable .relDreCellStack__val.negative {
  color: #be123c !important;
  font-weight: 700;
}

body.sistemaigreja .relDreTable .negative {
  color: var(--ig-negative);
  font-weight: 700;
}

body.sistemaigreja .relDreWideScroll {
  max-width: 100%;
}

body.sistemaigreja .relDreTable--wide {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
}

@media (max-width: 980px) {
  body.sistemaigreja .relDreHero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.sistemaigreja .relDreHero {
    grid-template-columns: 1fr;
  }
}

/* v3.3 - limpeza visual geral: menos ruido, mais leitura e acoes mais claras */
body.sistemaigreja {
  --ig-sidebar-width: 256px;
  --ig-bg: #f3f6fb;
  --ig-card-radius: 10px;
  --ig-radius: 10px;
  --ig-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ig-ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ig-ui-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  background: #f3f6fb;
  letter-spacing: 0;
}

body.sistemaigreja .content {
  padding-top: 16px;
}

body.sistemaigreja .contentInner {
  max-width: 1540px;
}

body.sistemaigreja .top,
body.sistemaigreja header.top,
body.sistemaigreja .wrap > .top {
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

body.sistemaigreja .brandMark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(3, 105, 161, 0.22);
}

body.sistemaigreja .topBar__title,
body.sistemaigreja .titleBlock h1 {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  letter-spacing: 0;
}

body.sistemaigreja .topBar__subtitle,
body.sistemaigreja .titleBlock .subtitle,
body.sistemaigreja .topBar__contextLine {
  font-size: 0.78rem;
}

body.sistemaigreja .topBar__actions,
body.sistemaigreja .topActions {
  justify-content: flex-end;
  gap: 8px;
}

body.sistemaigreja .topUserChip {
  min-height: 36px;
  padding: 0 12px;
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.9);
}

body.sistemaigreja .sidebar,
body.sistemaigreja .sidebar--v2 {
  background: #ffffff;
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: none;
}

body.sistemaigreja .sideNavHeader--v2 {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  background: #fff;
}

body.sistemaigreja .sideNavTitle {
  font-size: 0.94rem;
  letter-spacing: 0;
}

body.sistemaigreja .sideNavKicker,
body.sistemaigreja .sideNavZone__lbl {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

body.sistemaigreja .sideNavBody {
  padding-top: 12px;
}

body.sistemaigreja .sideNavZone {
  margin-bottom: 14px;
}

body.sistemaigreja .sideNavZone__lbl {
  padding: 4px 14px 6px;
}

body.sistemaigreja .sideNavPinned,
body.sistemaigreja .sideNavSection--flat .sideNavSectionItems {
  gap: 4px;
  padding-inline: 10px;
}

body.sistemaigreja .sideNav .sideItem,
body.sistemaigreja .sideItem,
body.sistemaigreja .sideItem--featured,
body.sistemaigreja .sideNavSectionItems .sideItem--secondary {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

body.sistemaigreja .sideNav .sideItem:hover,
body.sistemaigreja .sideItem:hover,
body.sistemaigreja .sideNavSectionItems .sideItem--secondary:hover {
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.9);
}

body.sistemaigreja .sideNav .sideItem.active,
body.sistemaigreja .sideItem.active,
body.sistemaigreja .sideItem--featured.active {
  background: #e0f2fe;
  border-color: rgba(3, 105, 161, 0.28);
  box-shadow: inset 3px 0 0 var(--ig-accent);
}

body.sistemaigreja .sideItem--featured::before {
  display: none;
}

body.sistemaigreja .sideItemTitle {
  font-size: 0.86rem;
  font-weight: 750;
}

body.sistemaigreja .sideItemDesc {
  margin-top: 1px;
  font-size: 0.69rem;
  line-height: 1.25;
}

body.sistemaigreja .sideItemGlyph,
body.sistemaigreja .sideItemGlyph--sm {
  width: 24px;
  min-width: 24px;
}

body.sistemaigreja .sideItem .igIcon {
  width: 18px;
  height: 18px;
}

body.sistemaigreja .sideItemMeta {
  margin-top: 3px;
  font-size: 0.68rem;
  line-height: 1.25;
}

body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead,
body.sistemaigreja .pageHead {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.84);
}

body.sistemaigreja .pageHead h2,
body.sistemaigreja .pageHead h3 {
  font-size: clamp(1.14rem, 1.8vw, 1.42rem);
  letter-spacing: 0;
}

body.sistemaigreja .pageHead p,
body.sistemaigreja .pageHead__lead {
  max-width: 780px;
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.45;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tesourariaShell {
  border-radius: 10px;
  border-color: rgba(226, 232, 240, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
  background: #fff;
}

body.sistemaigreja .panel {
  padding: 15px 16px;
  margin-bottom: 12px;
}

body.sistemaigreja .panel:hover {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045);
}

body.sistemaigreja .panel h3,
body.sistemaigreja .panel h4 {
  margin-bottom: 10px;
  letter-spacing: 0;
}

body.sistemaigreja .igGuiaRapido,
body.sistemaigreja .relGuiaRapido,
body.sistemaigreja .igOnboarding {
  padding: 10px 12px;
  border-radius: 10px;
  border-color: rgba(203, 213, 225, 0.8);
  background: #f8fafc;
  box-shadow: none;
}

body.sistemaigreja .igGuiaRapido__tit,
body.sistemaigreja .relGuiaRapido__head {
  margin-bottom: 6px;
}

body.sistemaigreja .igGuiaRapido__grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

body.sistemaigreja .igGuiaRapido__btn {
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
}

body.sistemaigreja .igGuiaRapido__btn span {
  font-size: 0.72rem;
}

body.sistemaigreja .igBtn,
body.sistemaigreja .igBtnSm,
body.sistemaigreja .igBtn--lg {
  min-height: 38px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

body.sistemaigreja .igBtnSm {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.78rem;
}

body.sistemaigreja .igBtn--lg {
  min-height: 42px;
  padding: 0 18px;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger) {
  background: #fff;
  border-color: rgba(203, 213, 225, 0.95);
  color: #1f2937;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger):hover {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.95);
}

body.sistemaigreja .igBtnPrimary {
  box-shadow: 0 1px 2px rgba(3, 105, 161, 0.18);
}

body.sistemaigreja .lancActions,
body.sistemaigreja .actions,
body.sistemaigreja .filtrosBtns,
body.sistemaigreja .pageHeadActions,
body.sistemaigreja .relFiltroHero__acoes,
body.sistemaigreja .relFiltroCompact__acoes,
body.sistemaigreja .igModalActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

body.sistemaigreja .formGrid .lancActions,
body.sistemaigreja .formGrid .actions,
body.sistemaigreja .igModalActions {
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}

body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--rel,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes {
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-color: rgba(226, 232, 240, 0.95);
  background: #f1f5f9;
  box-shadow: none;
}

body.sistemaigreja .igSubnav__btn,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.81rem;
}

body.sistemaigreja .igSubnav__btn.active,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn.active {
  background: #fff;
  color: var(--ig-accent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja .lancOpBar {
  display: grid;
  grid-template-columns: minmax(360px, max-content) minmax(360px, 1fr);
  gap: 12px 18px;
  align-items: end;
  padding: 14px 16px;
  background: #fff;
}

body.sistemaigreja .lancOpBar__primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.sistemaigreja .lancOpBar__tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 170px) minmax(140px, 170px);
  gap: 10px;
  align-items: end;
}

body.sistemaigreja .lancOpBar__btnMain {
  min-width: 170px;
}

body.sistemaigreja .lancOpBar__btnSec {
  min-width: 0;
}

body.sistemaigreja .lancFiltrosDetails,
body.sistemaigreja .relFiltroAvancado,
body.sistemaigreja .relPlanilhaLeadDetails {
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

body.sistemaigreja .lancFiltrosDetails__summary,
body.sistemaigreja .relFiltroAvancado summary,
body.sistemaigreja .relPlanilhaLeadDetails summary {
  padding: 10px 12px;
  color: #475569;
}

body.sistemaigreja .filtros,
body.sistemaigreja .filtrosGrid,
body.sistemaigreja .formGrid {
  gap: 12px;
}

body.sistemaigreja .panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja .panel select,
body.sistemaigreja .panel textarea {
  min-height: 38px;
  border-radius: 8px;
  background: #fff;
}

body.sistemaigreja .igTable {
  border-collapse: separate;
  border-spacing: 0;
}

body.sistemaigreja .tableScroll {
  border-radius: 9px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
}

body.sistemaigreja .tableScroll thead th,
body.sistemaigreja .igTable thead th {
  height: 38px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

body.sistemaigreja .igTable td {
  vertical-align: middle;
}

body.sistemaigreja .lancListaKpis__grid,
body.sistemaigreja .kpiGrid,
body.sistemaigreja .painelProfissionalKpis {
  gap: 10px;
}

body.sistemaigreja .kpiCard,
body.sistemaigreja .lancListaKpis__cell,
body.sistemaigreja .ppKpi,
body.sistemaigreja .relDreMetric {
  border-radius: 9px;
  box-shadow: none;
}

body.sistemaigreja .relFiltroHero {
  border-width: 1px;
  background: #fff;
}

body.sistemaigreja .relFiltroHero__steps {
  margin-bottom: 8px;
  opacity: 0.82;
}

body.sistemaigreja .relFiltroCompact {
  flex-direction: row;
  align-items: center;
  background: #fff;
}

body.sistemaigreja .relFiltroCompact > .relFiltroCompact__main {
  flex: 1 1 260px;
}

body.sistemaigreja .relFiltroCompact > .relFiltroCompact__acoes {
  flex: 0 1 auto;
}

body.sistemaigreja .relFiltroCompact__scope {
  display: none;
}

body.sistemaigreja .relDreHero,
body.sistemaigreja .relPremiumTop,
body.sistemaigreja .tesourariaExecutive {
  gap: 10px;
}

@media (max-width: 1180px) {
  body.sistemaigreja .lancOpBar {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .lancOpBar__tools {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 170px));
  }
}

@media (max-width: 720px) {
  body.sistemaigreja .content {
    padding-inline: 12px;
  }

  body.sistemaigreja .top,
  body.sistemaigreja header.top,
  body.sistemaigreja .wrap > .top {
    border-radius: 0 0 12px 12px;
  }

  body.sistemaigreja .lancOpBar__tools,
  body.sistemaigreja .relFiltroHero__grid {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .lancActions,
  body.sistemaigreja .actions,
  body.sistemaigreja .filtrosBtns,
  body.sistemaigreja .pageHeadActions,
  body.sistemaigreja .relFiltroHero__acoes,
  body.sistemaigreja .relFiltroCompact__acoes,
  body.sistemaigreja .igModalActions {
    justify-content: stretch;
  }

  body.sistemaigreja .lancActions .igBtn,
  body.sistemaigreja .actions .igBtn,
  body.sistemaigreja .filtrosBtns .igBtn,
  body.sistemaigreja .relFiltroHero__acoes .igBtn,
  body.sistemaigreja .relFiltroCompact__acoes .igBtn {
    flex: 1 1 150px;
  }
}

/* v3.4 - refresh perceptivel: menu executivo, menos banners e mais espaco util */
body.sistemaigreja {
  background: #eef2f7;
}

body.sistemaigreja.sidenav-on .wrap {
  background: transparent;
}

body.sistemaigreja .sidebar,
body.sistemaigreja .sidebar--v2 {
  background: #101827;
  border-right: 0;
  color: #dbeafe;
}

body.sistemaigreja .sidebar .sideNav,
body.sistemaigreja .sidebar--v2 .sideNav {
  background: transparent;
}

body.sistemaigreja .sideNavHeader--v2 {
  background: #101827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.sistemaigreja .sideNavIcon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body.sistemaigreja .sideNavIcon .igIcon,
body.sistemaigreja .sideNavHeader--v2 .igIcon {
  color: #bae6fd;
}

body.sistemaigreja .sideNavTitle {
  color: #ffffff;
}

body.sistemaigreja .sideNavKicker,
body.sistemaigreja .sideNavZone__lbl {
  color: #7d8da5;
}

body.sistemaigreja .sideNav .sideItem,
body.sistemaigreja .sideItem,
body.sistemaigreja .sideItem--featured,
body.sistemaigreja .sideNavSectionItems .sideItem--secondary {
  color: #dbeafe;
}

body.sistemaigreja .sideNav .sideItem:hover,
body.sistemaigreja .sideItem:hover,
body.sistemaigreja .sideNavSectionItems .sideItem--secondary:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.1);
}

body.sistemaigreja .sideNav .sideItem.active,
body.sistemaigreja .sideItem.active,
body.sistemaigreja .sideItem--featured.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: none;
}

body.sistemaigreja .sideNav .sideItem.active .sideItemTitle,
body.sistemaigreja .sideItem.active .sideItemTitle,
body.sistemaigreja .sideItem--featured.active .sideItemTitle {
  color: #0f172a;
}

body.sistemaigreja .sideItemTitle {
  color: inherit;
}

body.sistemaigreja .sideItemDesc {
  color: #9fb0c8;
}

body.sistemaigreja .sideItem.active .sideItemDesc,
body.sistemaigreja .sideItem.active .sideItemMeta,
body.sistemaigreja .sideItem.active .sideItemMeta--rel {
  color: #64748b;
}

body.sistemaigreja .sideItem .igIcon {
  color: #9fb0c8;
}

body.sistemaigreja .sideItem.active .igIcon {
  color: var(--ig-accent);
}

body.sistemaigreja .sideItem--import {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(3, 105, 161, 0.16);
}

body.sistemaigreja .sideItem--import .sideItemTitle {
  color: #ffffff;
}

body.sistemaigreja .sideItem--import .igIcon {
  color: #bae6fd;
}

body.sistemaigreja .sideItem--import.active .sideItemTitle {
  color: #0f172a;
}

body.sistemaigreja .sideItem--link {
  text-decoration: none;
}

body.sistemaigreja .sideItem--danger {
  color: #fecaca;
}

body.sistemaigreja .sideItem--danger .igIcon {
  color: #fca5a5;
}

body.sistemaigreja .sideItem--danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.24);
}

/* Correcoes de contraste do menu escuro */
body.sistemaigreja .sidebar .sideNavSectionItems .sideItem:not(.active),
body.sistemaigreja .sidebar .sideNavPinned .sideItem:not(.active) {
  background: transparent;
  color: #dbeafe;
  border-color: transparent;
}

body.sistemaigreja .sidebar .sideNavSectionItems .sideItem:not(.active):hover,
body.sistemaigreja .sidebar .sideNavPinned .sideItem:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle {
  color: #f8fafc;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemDesc {
  color: #a9b8cf;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .igIcon {
  color: #b9c8dd;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) {
  background: #0284c7;
  border-color: rgba(147, 197, 253, 0.42);
  color: #ffffff;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active):hover {
  background: var(--ig-accent);
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .igIcon {
  color: #ffffff;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--danger:not(.active) .igIcon {
  color: #fecaca;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemDesc {
  color: #fca5a5;
}

body.sistemaigreja .sideNavSection[style*="display: none"] + .sideNavSection,
body.sistemaigreja .sideNavZone[style*="display: none"] {
  margin: 0;
}

/* v3.5 - menu lateral com contraste e rolagem propria */
body.sistemaigreja .sidebar {
  overflow: hidden;
}

body.sistemaigreja .sidebar .sideNav {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.sistemaigreja .sidebar .sideNavBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 28px;
  scrollbar-color: rgba(191, 219, 254, 0.55) transparent;
}

body.sistemaigreja .sidebar .sideNavBody::-webkit-scrollbar {
  width: 8px;
}

body.sistemaigreja .sidebar .sideNavBody::-webkit-scrollbar-thumb {
  background: rgba(191, 219, 254, 0.42);
  border-radius: 999px;
}

body.sistemaigreja .sidebar .sideNavZone,
body.sistemaigreja .sidebar .sideNavSection,
body.sistemaigreja .sidebar .sideNavSectionItems {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.sistemaigreja .sidebar .sideNavSectionItems {
  padding: 0 10px 4px !important;
}

body.sistemaigreja .sidebar .sideNavZone__lbl {
  background: transparent !important;
  border: 0 !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active),
body.sistemaigreja .sidebar a.sideItem:not(.active),
body.sistemaigreja .sidebar button.sideItem:not(.active) {
  background: transparent !important;
  color: #dbeafe !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemTitle {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemDesc {
  color: #a9b8cf !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .igIcon {
  color: #b9c8dd !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) {
  background: #0284c7 !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .igIcon {
  color: #ffffff !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--danger:not(.active) .igIcon {
  color: #fecaca !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemDesc {
  color: #fca5a5 !important;
}

body.sistemaigreja .sidebar .sideNavZone:has(.sideNavSection[style*="display: none"]) {
  display: none;
}

/* v4.0 - Design system final: tesouraria profissional */
body.sistemaigreja {
  --ig-bg: #f4f7fb;
  --ig-surface: #ffffff;
  --ig-surface-muted: #f8fafc;
  --ig-line: #d8e0ec;
  --ig-text: #111827;
  --ig-muted: #64748b;
  --ig-positive: #15803d;
  --ig-negative: #dc2626;
  --ig-warning: #b45309;
  --ig-radius: 8px;
  --ig-card-radius: 8px;
  --ig-shadow: var(--ig-card-elev-shadow);
  --ig-card-shadow: var(--ig-card-elev-shadow);
  --ig-ui-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --ig-ui-shadow-md: var(--ig-card-elev-shadow);
  background: var(--ig-bg) !important;
  color: var(--ig-text);
  font-size: 14px;
}

body.sistemaigreja.sidenav-on .wrap {
  grid-template-columns: 280px minmax(0, 1fr);
}

body.sistemaigreja .content {
  padding: 18px 22px 30px;
}

body.sistemaigreja .contentInner {
  max-width: 1560px;
}

body.sistemaigreja .sidebar,
body.sistemaigreja .sidebar--v2 {
  width: 280px;
  background: var(--ig-sidebar-bg) !important;
  color: var(--ig-sidebar-text, #ffffff);
  border-right: 1px solid var(--ig-sidebar-border, rgba(255, 255, 255, 0.12)) !important;
  box-shadow: var(--ig-sidebar-shadow) !important;
}

body.sistemaigreja.sidenav-on .sidebar {
  height: 100vh !important;
  top: 0 !important;
}

body.sistemaigreja .sidebar .sideNav {
  height: 100vh;
  background: var(--ig-sidebar-bg) !important;
}

body.sistemaigreja .sideNavHeader--v2 {
  min-height: 72px;
  padding: 16px 14px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.sistemaigreja .sideNavTitle {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
}

body.sistemaigreja .sideNavKicker {
  color: var(--ig-sidebar-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.sistemaigreja .sideNavBody {
  padding: 14px 12px 28px !important;
}

body.sistemaigreja .sideNavZone {
  margin: 0 0 16px !important;
}

body.sistemaigreja .sideNavZone__lbl {
  padding: 8px 10px 7px !important;
  color: var(--ig-sidebar-muted, rgba(255, 255, 255, 0.62)) !important;
  font-size: 0.66rem !important;
  font-weight: 900;
  letter-spacing: 0.1em;
}

body.sistemaigreja .sideNavPinned,
body.sistemaigreja .sideNavSectionItems {
  padding: 0 !important;
  gap: 5px !important;
}

body.sistemaigreja .sidebar .sideItem,
body.sistemaigreja .sidebar a.sideItem,
body.sistemaigreja .sidebar button.sideItem {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px !important;
  border-radius: 8px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--ig-sidebar-text) !important;
  text-align: left;
  text-decoration: none;
}

body.sistemaigreja .sidebar .sideItem:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

body.sistemaigreja .sidebar .sideItem.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(15, 23, 42, 0.12),
    0 8px 20px rgba(15, 23, 42, 0.18) !important;
}

body.sistemaigreja .sidebar .sideItemGlyph {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin-top: 1px;
}

body.sistemaigreja .sidebar .sideItem .igIcon {
  width: 18px;
  height: 18px;
  color: var(--ig-sidebar-muted, rgba(255, 255, 255, 0.72)) !important;
}

body.sistemaigreja .sidebar .sideItem.active .igIcon {
  color: var(--ig-primary) !important;
}

body.sistemaigreja .sidebar .sideItemTitle {
  color: #f8fafc !important;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.22;
}

body.sistemaigreja .sidebar .sideItemDesc {
  color: var(--ig-sidebar-muted) !important;
  font-size: 0.72rem;
  line-height: 1.25;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemTitle {
  color: #0f172a !important;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemDesc {
  color: #64748b !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) {
  background: var(--ig-accent-hover) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 10px rgba(15, 23, 42, 0.2) !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active):hover {
  background: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .igIcon {
  color: #ffffff !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--danger:not(.active) .igIcon {
  color: #fecaca !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemDesc {
  color: #fca5a5 !important;
}

body.sistemaigreja .sideItemMeta--standalone,
body.sistemaigreja .sideItemMeta--rel {
  margin: 2px 10px 0 45px !important;
  color: #93a4be !important;
  font-size: 0.69rem;
  line-height: 1.25;
}

body.sistemaigreja .top,
body.sistemaigreja header.top,
body.sistemaigreja .wrap > .top {
  min-height: 74px;
  margin: 0 !important;
  padding: 13px 18px;
  border: 0 !important;
  border-radius: 0 0 12px 12px;
  background: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.1) !important;
}

body.sistemaigreja .brandMark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

body.sistemaigreja .topBar__title,
body.sistemaigreja .titleBlock h1 {
  color: var(--ig-text);
  font-size: 1.2rem;
  font-weight: 850;
}

body.sistemaigreja .topBar__subtitle,
body.sistemaigreja .topBar__contextLine,
body.sistemaigreja .titleBlock .subtitle {
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 650;
}

body.sistemaigreja .topBar__actions {
  gap: 8px;
}

body.sistemaigreja .topUserChip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #d8e0ec;
}

body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead,
body.sistemaigreja .pageHead {
  margin: 0 0 14px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #d8e0ec !important;
  background: transparent !important;
}

body.sistemaigreja .pageHead h2 {
  color: var(--ig-text);
  font-size: 1.28rem;
  font-weight: 850;
}

body.sistemaigreja .pageHead p,
body.sistemaigreja .pageHead__lead {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .chartBox,
body.sistemaigreja .kpiCard,
body.sistemaigreja .relDreMetric {
  border: 1px solid #d8e0ec !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--ig-card-elev-shadow) !important;
}

body.sistemaigreja .panel {
  padding: 16px 18px;
  margin-bottom: 14px;
}

body.sistemaigreja .panel h3,
body.sistemaigreja .panel h4 {
  color: var(--ig-text);
  font-weight: 820;
}

body.sistemaigreja .igBtn,
body.sistemaigreja .igBtnSm,
body.sistemaigreja .igBtn--lg {
  min-height: 38px;
  border-radius: 8px !important;
  font-weight: 800;
  letter-spacing: 0;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger) {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1f2937 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger):hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 5px rgba(15, 23, 42, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.1) !important;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-primary) !important;
  border-color: var(--ig-primary) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 6px rgba(var(--ig-brand-rgb), 0.35),
    0 6px 16px rgba(var(--ig-brand-rgb), 0.2) !important;
}

body.sistemaigreja .igBtnPrimary:hover {
  background: var(--ig-accent-hover) !important;
  border-color: var(--ig-accent-hover) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 8px rgba(var(--ig-brand-rgb), 0.4),
    0 8px 20px rgba(var(--ig-brand-rgb), 0.24) !important;
}

body.sistemaigreja .igBtnDanger {
  background: #fff1f2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--rel,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes {
  padding: 5px !important;
  gap: 5px !important;
  border: 1px solid #d8e0ec !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--ig-ui-shadow-sm),
    0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

body.sistemaigreja .igSubnav__btn {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 7px !important;
  color: #52637a !important;
  background: transparent !important;
  font-size: 0.82rem;
  font-weight: 800;
}

body.sistemaigreja .igSubnav__btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.sistemaigreja .igSubnav__btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
}

body.sistemaigreja .lancOpBar {
  grid-template-columns: minmax(380px, max-content) minmax(420px, 1fr);
  padding: 14px 16px;
  border-left: 0 !important;
}

body.sistemaigreja .lancOpBar__primary {
  gap: 8px;
}

body.sistemaigreja .lancOpBar__tools {
  gap: 10px;
}

body.sistemaigreja .lancFiltrosDetails,
body.sistemaigreja .relFiltroAvancado,
body.sistemaigreja .relPlanilhaLeadDetails {
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #ffffff;
}

body.sistemaigreja input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja select,
body.sistemaigreja textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.sistemaigreja input:focus-visible,
body.sistemaigreja select:focus-visible,
body.sistemaigreja textarea:focus-visible {
  outline: none;
  border-color: var(--ig-primary) !important;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.16) !important;
}

body.sistemaigreja input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
}

body.sistemaigreja .tableScroll {
  border: 1px solid #d8e0ec !important;
  border-radius: 8px;
}

body.sistemaigreja .igTable thead th,
body.sistemaigreja .tableScroll thead th {
  background: #f1f5f9 !important;
  color: #52637a !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.sistemaigreja .igTable td {
  color: #111827;
}

body.sistemaigreja .igOnboarding,
body.sistemaigreja .igGuiaRapido,
body.sistemaigreja .relGuiaRapido {
  display: none !important;
}

body.sistemaigreja .dashMasterCard,
body.sistemaigreja .ig-premiumCard--master {
  min-height: 250px;
  border-color: #d8e0ec !important;
}

body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact {
  border-left: 0 !important;
}

body.sistemaigreja .lancListaKpis__cell,
body.sistemaigreja .ppKpi,
body.sistemaigreja .relDreMetric {
  background: #f8fafc !important;
}

body.sistemaigreja .statusOk:empty {
  display: none;
}

@media (max-width: 1180px) {
  body.sistemaigreja .lancOpBar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.sistemaigreja.sidenav-on .wrap {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .sidebar,
  body.sistemaigreja .sidebar--v2 {
    width: min(300px, 86vw);
  }

  body.sistemaigreja .content {
    padding: 14px 12px 24px;
  }
}

body.sistemaigreja .sideItemMeta--standalone {
  display: block;
  margin: -2px 12px 4px 46px;
  min-height: 0;
  color: #9fb0c8;
  font-size: 0.68rem;
  line-height: 1.25;
}

body.sistemaigreja .sideItemMeta--standalone:empty {
  display: none;
}

body.sistemaigreja .sideNavSectionItems .sideItemStack,
body.sistemaigreja .sideNavPinned .sideItemStack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.sistemaigreja .sideNavSectionItems .sideItem {
  align-items: flex-start;
}

body.sistemaigreja .sideNavSectionItems .sideItemGlyph {
  margin-top: 1px;
}

body.sistemaigreja input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  accent-color: var(--ig-accent);
}

body.sistemaigreja .relPlanilhaToggle input[type="checkbox"],
body.sistemaigreja .igLab--inline input[type="checkbox"] {
  margin: 0 6px 0 0;
  vertical-align: middle;
}

body.sistemaigreja .sideItemMeta.sideItemMeta--neg {
  color: #fecaca;
}

body.sistemaigreja .sideItem.active .sideItemMeta.sideItemMeta--neg {
  color: #b91c1c;
}

body.sistemaigreja .top,
body.sistemaigreja header.top,
body.sistemaigreja .wrap > .top {
  margin: 0 16px 0 0;
  border-radius: 0 0 16px 16px;
  border: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.sistemaigreja .content {
  padding-right: 18px;
}

body.sistemaigreja .contentInner {
  background: transparent;
}

body.sistemaigreja .igOnboarding {
  padding: 0;
  margin-bottom: 10px;
  border-color: rgba(148, 163, 184, 0.24);
  background: #fff;
}

body.sistemaigreja .igOnboarding__inner {
  padding: 10px 12px;
}

body.sistemaigreja .igOnboarding__head {
  margin-bottom: 2px;
}

body.sistemaigreja .igOnboarding__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  padding-left: 1rem;
  font-size: 0.78rem;
}

body.sistemaigreja .igOnboarding__list li + li {
  margin-top: 0;
}

body.sistemaigreja .igGuiaRapido {
  display: none;
}

body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead,
body.sistemaigreja .pageHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: end;
  background: transparent;
}

body.sistemaigreja .pageHead h2 {
  margin: 0;
}

body.sistemaigreja .pageHead p {
  grid-column: 1 / -1;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .relFiltroCompact {
  border: 1px solid rgba(214, 222, 235, 0.95);
  box-shadow: none;
}

body.sistemaigreja .lancOpBar,
body.sistemaigreja .relFiltroHero {
  border-left: 4px solid var(--ig-accent);
}

body.sistemaigreja .lancOpBar__primary .igBtn,
body.sistemaigreja .relFiltroHero__acoes .igBtn,
body.sistemaigreja .relFiltroCompact__acoes .igBtn {
  min-width: 138px;
}

body.sistemaigreja .lancOpBar__primary .igBtnPrimary,
body.sistemaigreja .relFiltroHero__acoes .igBtnPrimary {
  min-width: 178px;
}

body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--rel,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes {
  border: 1px solid rgba(214, 222, 235, 0.95);
  background: #ffffff;
  padding: 5px;
}

body.sistemaigreja .igSubnav__btn {
  color: #64748b;
}

body.sistemaigreja .igSubnav__btn.active {
  background: #0f172a;
  color: #ffffff;
}

body.sistemaigreja .kpiCard,
body.sistemaigreja .lancListaKpis__cell,
body.sistemaigreja .ppKpi,
body.sistemaigreja .relDreMetric {
  background: #f8fafc;
  border-color: rgba(214, 222, 235, 0.95);
}

body.sistemaigreja .tableScroll {
  border-color: rgba(214, 222, 235, 0.95);
}

body.sistemaigreja .tableScroll thead th,
body.sistemaigreja .igTable thead th {
  background: #f1f5f9;
}

@media (max-width: 720px) {
  body.sistemaigreja .igOnboarding__list {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .top,
  body.sistemaigreja header.top,
  body.sistemaigreja .wrap > .top {
    margin-right: 0;
  }
}

/* v4.1 - trava final da identidade visual */
body.sistemaigreja {
  background: #f4f7fb !important;
  color: #111827 !important;
}

body.sistemaigreja .sidebar,
body.sistemaigreja .sidebar--v2,
body.sistemaigreja .sidebar .sideNav,
body.sistemaigreja .sideNavHeader--v2 {
  background: #0f172a !important;
}

body.sistemaigreja .sidebar .sideNavBody {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active) {
  background: transparent !important;
  color: #e5edf8 !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle {
  color: #f8fafc !important;
}

body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemDesc {
  color: #9fb0c8 !important;
}

body.sistemaigreja .sidebar .sideItem.active {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) {
  background: #0284c7 !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .igIcon {
  color: #ffffff !important;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .chartBox {
  border: 1px solid #d8e0ec !important;
  border-left-width: 1px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

body.sistemaigreja .igGuiaRapido,
body.sistemaigreja .igOnboarding,
body.sistemaigreja .relGuiaRapido {
  display: none !important;
}

body.sistemaigreja .igSubnav__btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-accent) !important;
  border-color: var(--ig-accent) !important;
  color: #ffffff !important;
}

body.sistemaigreja .tableScroll thead th,
body.sistemaigreja .igTable thead th {
  background: #f1f5f9 !important;
  color: #52637a !important;
}

/* v5.0 - Interface simples inspirada em Nubank + Notion
   Objetivo: uso por tesouraria sem conhecimento tecnico em ate 10 minutos. */
body.sistemaigreja {
  --ig-bg: #ffffff;
  --ig-surface: #ffffff;
  --ig-surface-muted: #f7faf8;
  --ig-line: #e7ede8;
  --ig-text: #111827;
  --ig-muted: #6b7280;
  --ig-accent: #2f7d5b;
  --ig-primary: #2f7d5b;
  --ig-accent-hover: #25684b;
  --ig-accent-soft: #edf7f1;
  --ig-positive: #2f7d5b;
  --ig-negative: #b42318;
  --ig-warning: #9a6700;
  --ig-sidebar-width: 260px;
  --ig-radius: 14px;
  --ig-card-radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  background: #ffffff !important;
  color: var(--ig-text) !important;
  font-size: 14px;
  letter-spacing: 0 !important;
}

body.sistemaigreja.sidenav-on .wrap {
  grid-template-columns: 260px minmax(0, 1fr);
}

body.sistemaigreja .content {
  padding: 28px 34px 44px !important;
  background: #ffffff;
}

body.sistemaigreja .contentInner {
  max-width: 1320px;
}

/* Menu simples, claro, sem blocos complexos */
body.sistemaigreja .sidebar,
body.sistemaigreja .sidebar--v2,
body.sistemaigreja .sidebar .sideNav,
body.sistemaigreja .sideNavHeader--v2 {
  background: #ffffff !important;
  color: var(--ig-text) !important;
  border-right: 1px solid var(--ig-line) !important;
  box-shadow: none !important;
}

body.sistemaigreja.sidenav-on .sidebar {
  height: 100vh !important;
  top: 0 !important;
}

body.sistemaigreja .sideNavHeader--v2 {
  min-height: 72px;
  padding: 18px 18px 12px !important;
  border-bottom: 0 !important;
}

body.sistemaigreja .sideNavIcon {
  background: #f7faf8 !important;
  border: 1px solid var(--ig-line) !important;
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sideNavIcon .igIcon,
body.sistemaigreja .sideNavHeader--v2 .igIcon {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sideNavTitle {
  color: var(--ig-text) !important;
  font-size: 0.98rem;
  font-weight: 800;
}

body.sistemaigreja .sideNavKicker {
  color: var(--ig-muted) !important;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

body.sistemaigreja .sidebar .sideNavBody {
  padding: 10px 14px 28px !important;
  overflow-y: auto !important;
}

body.sistemaigreja .sideNavZone {
  margin-bottom: 18px !important;
}

body.sistemaigreja .sideNavZone__lbl {
  padding: 8px 8px 6px !important;
  color: #9ca3af !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.06em !important;
}

body.sistemaigreja .sideNavPinned,
body.sistemaigreja .sideNavSectionItems {
  gap: 4px !important;
}

body.sistemaigreja .sidebar .sideItem,
body.sistemaigreja .sidebar a.sideItem,
body.sistemaigreja .sidebar button.sideItem {
  min-height: 44px;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ig-text) !important;
  gap: 10px;
}

body.sistemaigreja .sidebar .sideItem:hover {
  background: #f7faf8 !important;
}

body.sistemaigreja .sidebar .sideItem.active {
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItem .igIcon,
body.sistemaigreja .sidebar .sideItem:not(.active) .igIcon {
  color: #8a958d !important;
}

body.sistemaigreja .sidebar .sideItem.active .igIcon {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItemTitle,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemTitle {
  color: var(--ig-text) !important;
  font-size: 0.86rem;
  font-weight: 720;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemTitle {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItemDesc,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemDesc {
  color: var(--ig-muted) !important;
  font-size: 0.72rem;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active),
body.sistemaigreja .sidebar .sideItem--import:not(.active):hover {
  background: var(--ig-accent-soft) !important;
  border: 0 !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .igIcon {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemDesc {
  color: #5d7165 !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--danger:not(.active) .igIcon {
  color: #b42318 !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemDesc {
  color: #9f7a74 !important;
}

body.sistemaigreja .sideItemMeta--standalone,
body.sistemaigreja .sideItemMeta--rel {
  color: var(--ig-muted) !important;
  margin-left: 42px !important;
}

/* Topo limpo */
body.sistemaigreja .top,
body.sistemaigreja header.top,
body.sistemaigreja .wrap > .top {
  min-height: 78px;
  margin: 0 !important;
  padding: 16px 24px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ig-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.sistemaigreja .brandMark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ig-accent) !important;
  box-shadow: none !important;
}

body.sistemaigreja .topBar__title,
body.sistemaigreja .titleBlock h1 {
  color: var(--ig-text) !important;
  font-size: 1.2rem;
  font-weight: 800;
}

body.sistemaigreja .topBar__subtitle,
body.sistemaigreja .topBar__contextLine,
body.sistemaigreja .titleBlock .subtitle {
  color: var(--ig-muted) !important;
  font-size: 0.82rem;
  font-weight: 600;
}

body.sistemaigreja .topBar__ver {
  color: var(--ig-accent) !important;
  background: var(--ig-accent-soft) !important;
  border: 0 !important;
}

body.sistemaigreja .topUserChip {
  background: #ffffff !important;
  border: 1px solid var(--ig-line) !important;
  color: var(--ig-muted) !important;
}

/* Conteudo espacoso e sem poluicao */
body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead,
body.sistemaigreja .pageHead {
  margin-bottom: 24px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--ig-line) !important;
}

body.sistemaigreja .pageHead h2 {
  font-size: 1.42rem;
  font-weight: 820;
}

body.sistemaigreja .pageHead p,
body.sistemaigreja .pageHead__lead {
  max-width: 720px;
  color: var(--ig-muted) !important;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .chartBox,
body.sistemaigreja .kpiCard,
body.sistemaigreja .relDreMetric {
  border: 1px solid var(--ig-line) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.sistemaigreja .panel {
  padding: 24px !important;
  margin-bottom: 22px !important;
}

body.sistemaigreja .panel h3,
body.sistemaigreja .panel h4 {
  color: var(--ig-text) !important;
  font-weight: 760;
}

/* Poucos botoes em evidencia */
body.sistemaigreja .igBtn,
body.sistemaigreja .igBtnSm,
body.sistemaigreja .igBtn--lg {
  min-height: 40px;
  border-radius: 999px !important;
  font-weight: 720;
  box-shadow: none !important;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger) {
  background: #ffffff !important;
  border: 1px solid var(--ig-line) !important;
  color: var(--ig-text) !important;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger):hover {
  background: #f7faf8 !important;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-accent) !important;
  border-color: var(--ig-accent) !important;
  color: #ffffff !important;
}

body.sistemaigreja .igBtnPrimary:hover {
  background: var(--ig-accent-hover) !important;
  border-color: var(--ig-accent-hover) !important;
}

body.sistemaigreja .igBtnDanger {
  background: #fff7f6 !important;
  border-color: #f1c8c3 !important;
  color: var(--ig-negative) !important;
}

/* Abas estilo Notion */
body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--rel,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes {
  padding: 6px !important;
  gap: 4px !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
}

body.sistemaigreja .igSubnav__btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px !important;
  color: var(--ig-muted) !important;
  background: transparent !important;
  font-weight: 700;
}

body.sistemaigreja .igSubnav__btn:hover {
  background: #f7faf8 !important;
  color: var(--ig-text) !important;
}

body.sistemaigreja .igSubnav__btn.active {
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
}

/* Formularios e filtros */
body.sistemaigreja input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja select,
body.sistemaigreja textarea {
  min-height: 42px;
  border: 1px solid var(--ig-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ig-text) !important;
}

body.sistemaigreja input:focus-visible,
body.sistemaigreja select:focus-visible,
body.sistemaigreja textarea:focus-visible {
  outline: none;
  border-color: var(--ig-accent) !important;
  box-shadow: 0 0 0 3px rgba(47, 125, 91, 0.12) !important;
}

body.sistemaigreja .formGrid,
body.sistemaigreja .filtros,
body.sistemaigreja .filtrosGrid {
  gap: 18px !important;
}

body.sistemaigreja .lancOpBar {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  padding: 20px !important;
}

body.sistemaigreja .lancOpBar__primary {
  gap: 10px !important;
}

body.sistemaigreja .lancOpBar__tools {
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 190px)) !important;
  gap: 12px !important;
}

body.sistemaigreja .lancFiltrosDetails,
body.sistemaigreja .relFiltroAvancado,
body.sistemaigreja .relPlanilhaLeadDetails {
  border: 1px solid var(--ig-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
}

/* Tabelas simples */
body.sistemaigreja .tableScroll {
  border: 1px solid var(--ig-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
}

body.sistemaigreja .igTable thead th,
body.sistemaigreja .tableScroll thead th {
  background: #f7faf8 !important;
  color: var(--ig-muted) !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.sistemaigreja .igTable td {
  color: var(--ig-text) !important;
  border-bottom-color: #eef3ef !important;
}

/* Dashboard muito simples */
body.sistemaigreja .igGuiaRapido,
body.sistemaigreja .igOnboarding,
body.sistemaigreja .relGuiaRapido,
body.sistemaigreja .ig-dashStack--alerts,
body.sistemaigreja .ig-dashStack--resumo,
body.sistemaigreja .ig-dashDeep {
  display: none !important;
}

body.sistemaigreja .dashMasterCard,
body.sistemaigreja .ig-premiumCard--master {
  min-height: 230px !important;
  border-radius: 22px !important;
}

body.sistemaigreja .ig-premiumKpiRow {
  gap: 18px !important;
}

body.sistemaigreja .ig-premiumKpi,
body.sistemaigreja .kpiCard,
body.sistemaigreja .lancListaKpis__cell,
body.sistemaigreja .ppKpi,
body.sistemaigreja .relDreMetric {
  border-radius: 18px !important;
  background: #ffffff !important;
}

body.sistemaigreja .ig-masterValue,
body.sistemaigreja .tesourariaKpiHero__val,
body.sistemaigreja .ppKpiValue,
body.sistemaigreja .val.positive,
body.sistemaigreja .is-positive {
  color: var(--ig-positive) !important;
}

body.sistemaigreja .negative,
body.sistemaigreja .is-negative,
body.sistemaigreja .contaSaldoNeg {
  color: var(--ig-negative) !important;
}

body.sistemaigreja .statusOk:empty {
  display: none !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja .lancOpBar__tools {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  body.sistemaigreja.sidenav-on .wrap {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja .sidebar,
  body.sistemaigreja .sidebar--v2 {
    width: min(300px, 86vw);
  }

  body.sistemaigreja .content {
    padding: 20px 16px 34px !important;
  }
}

/* v6.0 - Produto final: Nubank + Notion para tesouraria simples
   Apenas arquitetura visual, sem tocar em regras de negocio. */
body.sistemaigreja {
  --ig-bg: #ffffff;
  --ig-surface: #ffffff;
  --ig-surface-muted: #f8faf9;
  --ig-line: #e6ece7;
  --ig-line-strong: #d7e1da;
  --ig-text: #17211b;
  --ig-muted: #66736b;
  --ig-soft: #f3f7f4;
  --ig-accent: #2f7d5b;
  --ig-primary: #2f7d5b;
  --ig-accent-hover: #27684c;
  --ig-accent-soft: #eaf6ef;
  --ig-positive: #2f7d5b;
  --ig-negative: #b42318;
  --ig-warning: #9a6700;
  --ig-sidebar-width: 272px;
  --ig-radius: 16px;
  --ig-card-radius: 18px;
  --ig-shadow: none;
  --ig-card-shadow: none;
  --ig-ui-shadow-sm: none;
  --ig-ui-shadow-md: none;
  --ig-font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff !important;
  color: var(--ig-text) !important;
  font-family: var(--ig-font-ui) !important;
}

body.sistemaigreja *,
body.sistemaigreja *::before,
body.sistemaigreja *::after {
  letter-spacing: 0 !important;
}

body.sistemaigreja.sidenav-on .wrap {
  /* display:block removido (v8): o grid de 901px+ volta a valer e
     elimina a sobreposição conteúdo/sidebar. */
  min-height: 100vh;
  background: #ffffff !important;
}

body.sistemaigreja .content {
  padding: 28px 32px 48px !important;
  background: #ffffff !important;
}

body.sistemaigreja .contentInner {
  max-width: 1440px !important;
  margin: 0 auto !important;
}

body.sistemaigreja .sidebar {
  width: var(--ig-sidebar-width) !important;
  background: var(--ig-sidebar-bg, #ffffff) !important;
  border-right: 1px solid var(--ig-sidebar-border, var(--ig-line)) !important;
  box-shadow: none !important;
}

body.sistemaigreja .sidebar .sideNav,
body.sistemaigreja .sidebar--v2 .sideNav {
  height: 100vh !important;
  min-height: 100vh !important;
  background: transparent !important;
  color: var(--ig-text) !important;
  border-right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body.sistemaigreja .sideNavHeader--v2 {
  flex: 0 0 auto !important;
  min-height: 76px !important;
  padding: 18px 18px 14px !important;
  border-bottom: 1px solid var(--ig-sidebar-border, var(--ig-line)) !important;
  background: linear-gradient(135deg, var(--ig-accent-soft) 0%, rgba(255, 255, 255, 0) 72%) !important;
}

body.sistemaigreja .sideNavIcon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid var(--ig-line) !important;
  background: var(--ig-soft) !important;
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sideNavTitle {
  color: var(--ig-text) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

body.sistemaigreja .sideNavKicker {
  color: var(--ig-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

body.sistemaigreja .sidebar .sideNavBody {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px 12px 26px !important;
  scrollbar-gutter: stable !important;
}

body.sistemaigreja .sidebar .sideNavBody::-webkit-scrollbar {
  width: 8px;
}

body.sistemaigreja .sidebar .sideNavBody::-webkit-scrollbar-thumb {
  background: #d5dfd8;
  border-radius: 999px;
}

body.sistemaigreja .sideNavZone {
  margin: 0 0 18px !important;
}

body.sistemaigreja .sideNavZone__lbl {
  margin: 0 8px 8px !important;
  color: #7b897f !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

body.sistemaigreja .sideNavPinned,
body.sistemaigreja .sideNavSectionItems {
  display: grid !important;
  gap: 4px !important;
}

body.sistemaigreja .sidebar .sideItem,
body.sistemaigreja .sidebar a.sideItem,
body.sistemaigreja .sidebar button.sideItem {
  width: 100% !important;
  min-height: 54px !important;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--ig-text) !important;
  text-align: left !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem:hover {
  background: var(--ig-soft) !important;
  color: var(--ig-text) !important;
}

body.sistemaigreja .sidebar .sideItem.active {
  background: var(--ig-accent-soft) !important;
  border-color: #cfe9d8 !important;
  color: var(--ig-accent) !important;
  box-shadow: none !important;
}

body.sistemaigreja .sidebar .sideItemGlyph {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f7f5 !important;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemGlyph {
  background: #ffffff !important;
}

body.sistemaigreja .sidebar .sideItem .igIcon,
body.sistemaigreja .sidebar .sideItem:not(.active) .igIcon {
  color: #758377 !important;
}

body.sistemaigreja .sidebar .sideItem.active .igIcon {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItemTitle,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemTitle {
  color: var(--ig-text) !important;
  font-size: 0.9rem !important;
  font-weight: 740 !important;
  line-height: 1.15 !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemTitle {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItemDesc,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemDesc {
  margin-top: 3px !important;
  color: var(--ig-muted) !important;
  font-size: 0.75rem !important;
  line-height: 1.22 !important;
  opacity: 1 !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active),
body.sistemaigreja .sidebar .sideItem--import:not(.active):hover {
  background: #f4faf6 !important;
  border-color: #d7eadf !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--import:not(.active) .igIcon {
  color: var(--ig-accent) !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem--danger:not(.active) .igIcon {
  color: var(--ig-negative) !important;
}

body.sistemaigreja .sideItemMeta--standalone,
body.sistemaigreja .sideItemMeta--rel {
  margin: 0 12px 4px 56px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ig-muted) !important;
  font-size: 0.74rem !important;
}

body.sistemaigreja .wrap > .top {
  margin-left: var(--ig-sidebar-width) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  min-height: 82px !important;
  padding: 16px 32px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ig-line) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}

body.sistemaigreja .brandMark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 15px !important;
  background: var(--ig-accent) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.sistemaigreja .topBar__title,
body.sistemaigreja #appTituloPrincipal {
  color: var(--ig-text) !important;
  font-size: 1.22rem !important;
  font-weight: 830 !important;
}

body.sistemaigreja .topBar__subtitle,
body.sistemaigreja .topBar__contextLine,
body.sistemaigreja .topBar__obs {
  color: var(--ig-muted) !important;
  font-size: 0.83rem !important;
}

body.sistemaigreja .topBar__ver {
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
  border: 1px solid #d4ebdc !important;
  border-radius: 999px !important;
}

body.sistemaigreja .topUserChip {
  max-width: 310px;
  background: #ffffff !important;
  border: 1px solid var(--ig-line) !important;
  color: var(--ig-muted) !important;
  border-radius: 999px !important;
}

body.sistemaigreja .igBtn,
body.sistemaigreja .igBtnSm,
body.sistemaigreja .igBtn--lg {
  min-height: 40px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-weight: 760 !important;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-accent) !important;
  border-color: var(--ig-accent) !important;
  color: #ffffff !important;
}

body.sistemaigreja .igBtnPrimary:hover {
  background: var(--ig-accent-hover) !important;
  border-color: var(--ig-accent-hover) !important;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger) {
  background: #ffffff !important;
  border: 1px solid var(--ig-line-strong) !important;
  color: var(--ig-text) !important;
}

body.sistemaigreja .igBtnDanger {
  background: #fff7f6 !important;
  border-color: #f1c8c3 !important;
  color: var(--ig-negative) !important;
}

body.sistemaigreja .pageHead,
body.sistemaigreja .tabpane:not(#tab-dashboard) .pageHead {
  margin: 0 0 22px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--ig-line) !important;
}

body.sistemaigreja .pageHead h2,
body.sistemaigreja .ig-dashHeroHead__title {
  margin: 0 !important;
  color: var(--ig-text) !important;
  font-size: 1.45rem !important;
  font-weight: 840 !important;
  line-height: 1.2 !important;
}

body.sistemaigreja .pageHead p,
body.sistemaigreja .pageHead__lead,
body.sistemaigreja .ig-dashHeroHead__lead {
  max-width: 660px !important;
  color: var(--ig-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .chartBox,
body.sistemaigreja .kpiCard,
body.sistemaigreja .relDreMetric,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tableScroll {
  background: #ffffff !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: var(--ig-card-radius) !important;
  box-shadow: none !important;
}

body.sistemaigreja .panel {
  padding: 22px !important;
  margin-bottom: 22px !important;
}

body.sistemaigreja .panel h3,
body.sistemaigreja .panel h4,
body.sistemaigreja .panelListaTop h3 {
  color: var(--ig-text) !important;
  font-weight: 820 !important;
}

body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--rel,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes,
body.sistemaigreja .confTabs {
  padding: 6px !important;
  gap: 4px !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  overflow-x: auto !important;
}

body.sistemaigreja .igSubnav__btn,
body.sistemaigreja .confTabBtn {
  min-height: 38px !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--ig-muted) !important;
  font-weight: 740 !important;
  white-space: nowrap !important;
}

body.sistemaigreja .igSubnav__btn.active,
body.sistemaigreja .confTabBtn.active {
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
}

body.sistemaigreja .lancOpBar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  padding: 18px !important;
  border-left: 0 !important;
}

body.sistemaigreja .lancOpBar__primary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

body.sistemaigreja .lancOpBar__btnMain {
  order: -2;
}

body.sistemaigreja .lancOpBar__tools {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(160px, 220px)) !important;
  gap: 12px !important;
  align-items: end !important;
  padding-top: 4px !important;
}

body.sistemaigreja input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.sistemaigreja select,
body.sistemaigreja textarea {
  min-height: 42px !important;
  border: 1px solid var(--ig-line-strong) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ig-text) !important;
  box-shadow: none !important;
}

body.sistemaigreja input:focus-visible,
body.sistemaigreja select:focus-visible,
body.sistemaigreja textarea:focus-visible,
body.sistemaigreja button:focus-visible,
body.sistemaigreja a:focus-visible {
  outline: 3px solid rgba(47, 125, 91, 0.18) !important;
  outline-offset: 2px !important;
}

body.sistemaigreja .igLab,
body.sistemaigreja label {
  color: #45534a !important;
  font-weight: 700 !important;
}

body.sistemaigreja .tableScroll {
  overflow: auto !important;
}

body.sistemaigreja .igTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.sistemaigreja .igTable thead th,
body.sistemaigreja .tableScroll thead th {
  background: var(--ig-soft) !important;
  color: #66736b !important;
  font-size: 0.72rem !important;
  font-weight: 820 !important;
  text-transform: uppercase !important;
}

body.sistemaigreja .igTable tbody td {
  color: var(--ig-text) !important;
  border-bottom: 1px solid #eef3ef !important;
}

body.sistemaigreja .igGuiaRapido,
body.sistemaigreja .igOnboarding,
body.sistemaigreja .relGuiaRapido,
body.sistemaigreja .ig-dashStack--alerts,
body.sistemaigreja .ig-dashStack--resumo,
body.sistemaigreja .ig-dashDeep {
  display: none !important;
}

body.sistemaigreja .ig-dashHeroHead {
  margin: 0 0 22px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--ig-line) !important;
}

body.sistemaigreja .dashMasterCard,
body.sistemaigreja .ig-premiumCard--master {
  min-height: 240px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
}

body.sistemaigreja .dashMasterCard__ribbon,
body.sistemaigreja .ig-premiumCard--master::before,
body.sistemaigreja .ig-premiumCard--master::after {
  display: none !important;
}

body.sistemaigreja .ig-masterCardBody {
  gap: 28px !important;
}

body.sistemaigreja .ig-masterValue {
  color: var(--ig-positive) !important;
  font-size: clamp(2.8rem, 5vw, 4.4rem) !important;
  font-weight: 850 !important;
}

body.sistemaigreja .ig-masterCardBody__aside {
  border: 1px solid var(--ig-line) !important;
  border-radius: 18px !important;
  background: var(--ig-surface-muted) !important;
  padding: 22px !important;
}

body.sistemaigreja .ig-premiumKpiRow {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
  gap: 14px !important;
}

body.sistemaigreja .ig-premiumKpi,
body.sistemaigreja .lancListaKpis__cell,
body.sistemaigreja .ppKpi {
  min-height: 116px !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.sistemaigreja .ig-premiumKpi__name,
body.sistemaigreja .ppKpiLabel {
  color: var(--ig-muted) !important;
  font-size: 0.74rem !important;
  font-weight: 820 !important;
  text-transform: uppercase !important;
}

body.sistemaigreja .ig-premiumKpi__value,
body.sistemaigreja .ppKpiValue,
body.sistemaigreja .relDreMetric strong,
body.sistemaigreja .val.positive,
body.sistemaigreja .is-positive {
  color: var(--ig-positive) !important;
}

body.sistemaigreja .negative,
body.sistemaigreja .is-negative,
body.sistemaigreja .contaSaldoNeg {
  color: var(--ig-negative) !important;
}

body.sistemaigreja .lancFiltrosDetails,
body.sistemaigreja .relFiltroAvancado,
body.sistemaigreja .relPlanilhaLeadDetails,
body.sistemaigreja details {
  border: 1px solid var(--ig-line) !important;
  border-radius: 14px !important;
  background: var(--ig-surface-muted) !important;
}

body.sistemaigreja .statusOk:empty,
body.sistemaigreja .statusErro:empty {
  display: none !important;
}

body.sistemaigreja.sidenav-collapsed .content,
body.sistemaigreja.sidenav-collapsed .wrap > .top {
  margin-left: var(--ig-sidebar-width-collapsed) !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }

  body.sistemaigreja .lancOpBar__tools {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  body.sistemaigreja .content,
  body.sistemaigreja.sidenav-collapsed .content {
    margin-left: 0 !important;
    padding: 22px 16px 38px !important;
  }

  body.sistemaigreja .wrap > .top,
  body.sistemaigreja.sidenav-collapsed .wrap > .top {
    margin-left: 0 !important;
    padding: 14px 16px !important;
  }

  body.sistemaigreja .sidebar {
    width: min(288px, 86vw) !important;
  }

  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: 1fr !important;
  }
}

/* v6.1 - Referencia Conta Azul + Nubank:
   ERP financeiro simples, dashboard operacional e menu curto. */
body.sistemaigreja {
  --ig-sidebar-width: 224px;
  /* Cor institucional vem de #dynIdentidadeCor (config.php) — nunca fixar aqui. */
  --ig-soft: #f8f9fb;
  --ig-line: #e6e9f0;
  --ig-line-strong: #d9dee8;
}

body.sistemaigreja .content {
  padding: 24px 28px 44px !important;
}

body.sistemaigreja .contentInner {
  max-width: 1280px !important;
}

body.sistemaigreja .wrap > .top {
  min-height: 68px !important;
  padding: 10px 28px !important;
}

body.sistemaigreja .brandMark {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
}

body.sistemaigreja .topBar__title,
body.sistemaigreja #appTituloPrincipal {
  font-size: 1.05rem !important;
}

body.sistemaigreja .topBar__subtitle,
body.sistemaigreja .topBar__contextLine,
body.sistemaigreja .topBar__obs {
  font-size: 0.78rem !important;
}

body.sistemaigreja .sidebar .sideNavBody {
  padding: 12px 10px 22px !important;
}

body.sistemaigreja .sideNavHeader--v2 {
  min-height: 66px !important;
  padding: 14px 14px 12px !important;
}

body.sistemaigreja .sideNavIcon {
  width: 34px !important;
  height: 34px !important;
}

body.sistemaigreja .sideNavTitle {
  font-size: 0.92rem !important;
}

body.sistemaigreja .sideNavZone {
  margin-bottom: 14px !important;
}

body.sistemaigreja .sideNavZone__lbl {
  margin: 0 8px 7px !important;
  font-size: 0.66rem !important;
}

body.sistemaigreja .sidebar .sideItem,
body.sistemaigreja .sidebar a.sideItem,
body.sistemaigreja .sidebar button.sideItem {
  min-height: 44px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 7px 9px !important;
  border-radius: 11px !important;
}

body.sistemaigreja .sidebar .sideItemGlyph {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
}

body.sistemaigreja .sidebar .sideItemTitle,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemTitle {
  font-size: 0.82rem !important;
  font-weight: 760 !important;
}

body.sistemaigreja .sidebar .sideItemDesc,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemDesc,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemDesc {
  font-size: 0.7rem !important;
}

body.sistemaigreja .sideItemMeta--standalone,
body.sistemaigreja .sideItemMeta--rel {
  margin-left: 48px !important;
  font-size: 0.68rem !important;
}

body.sistemaigreja #tab-dashboard.active {
  /* .active obrigatório (v8): sem ele o dashboard ficava aberto junto
     com qualquer outra aba, empurrando o conteúdo para baixo. */
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.sistemaigreja #tab-dashboard .ig-dashHeroHead {
  order: 1 !important;
  margin-bottom: 0 !important;
}

body.sistemaigreja #tab-dashboard .ig-dashStack--kpi {
  order: 2 !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-dashboard .ig-dashStack--master {
  order: 3 !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-dashboard .ig-dashStack--chart {
  order: 4 !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-dashboard .ig-dashSplit--charts {
  order: 5 !important;
}

body.sistemaigreja .ig-dashHeroHead__title {
  font-size: 1.28rem !important;
}

body.sistemaigreja .ig-dashHeroHead__lead {
  font-size: 0.84rem !important;
}

body.sistemaigreja .ig-premiumKpiRow {
  grid-template-columns: repeat(5, minmax(148px, 1fr)) !important;
  gap: 12px !important;
}

body.sistemaigreja .ig-premiumKpi {
  min-height: 96px !important;
  padding: 16px !important;
  border-radius: 12px !important;
}

body.sistemaigreja .ig-premiumKpi__name {
  font-size: 0.68rem !important;
}

body.sistemaigreja .ig-premiumKpi__value {
  margin-top: 8px !important;
  font-size: 1.16rem !important;
}

body.sistemaigreja .ig-premiumKpi__note {
  margin-top: 8px !important;
  font-size: 0.72rem !important;
}

body.sistemaigreja .dashMasterCard,
body.sistemaigreja .ig-premiumCard--master {
  min-height: 0 !important;
  border-radius: 14px !important;
}

body.sistemaigreja .ig-masterCardBody {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.85fr) !important;
  align-items: stretch !important;
  gap: 16px !important;
  padding: 18px !important;
}

body.sistemaigreja .ig-masterValue {
  font-size: 2rem !important;
  line-height: 1.05 !important;
}

body.sistemaigreja .dashDecVerdict--hero {
  font-size: 1.35rem !important;
}

body.sistemaigreja .ig-masterUsoValue {
  font-size: 1.25rem !important;
}

body.sistemaigreja .ig-masterCardBody__aside {
  padding: 16px !important;
  border-radius: 12px !important;
}

body.sistemaigreja .ig-dashStack--chart .ig-premiumCard,
body.sistemaigreja .ig-dashSplit--charts .ig-premiumCard {
  border-radius: 12px !important;
  padding: 18px !important;
}

body.sistemaigreja .ig-dashStack--chart .ig-chartCanvasWrap {
  min-height: 230px !important;
}

body.sistemaigreja .ig-dashSplit--charts {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) !important;
  gap: 16px !important;
}

body.sistemaigreja .ig-premiumCard__title {
  font-size: 0.95rem !important;
}

body.sistemaigreja .ig-premiumEyebrow,
body.sistemaigreja .ig-premiumEyebrow--soft {
  color: #718078 !important;
  font-size: 0.66rem !important;
}

body.sistemaigreja .panel,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact {
  border-radius: 12px !important;
}

body.sistemaigreja .pageHead h2 {
  font-size: 1.28rem !important;
}

body.sistemaigreja .pageHead p,
body.sistemaigreja .pageHead__lead {
  font-size: 0.84rem !important;
}

body.sistemaigreja .lancOpBar__primary {
  justify-content: flex-start !important;
}

body.sistemaigreja .lancOpBar__primary .igBtn {
  min-width: 0 !important;
}

body.sistemaigreja .lancOpBar__primary .igBtnPrimary {
  background: var(--ig-accent) !important;
}

body.sistemaigreja .igTable th,
body.sistemaigreja .igTable td {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: repeat(2, minmax(170px, 1fr)) !important;
  }

  body.sistemaigreja .ig-dashSplit--charts,
  body.sistemaigreja .ig-masterCardBody {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  body.sistemaigreja {
    --ig-sidebar-width: 224px;
  }

  body.sistemaigreja .content {
    padding: 18px 14px 36px !important;
  }
}

/* v7.0 - Polimento SaaS 2026: menos ruído, mais fluxo guiado. */
body.sistemaigreja {
  --ig-page-max: 1220px;
  --ig-green: #23834d;
  --ig-green-soft: #eaf7ef;
  --ig-ink: #15231a;
  --ig-subtle: #6d7b70;
  --ig-hairline: #e6ede8;
  --ig-card-radius: 14px;
  --ig-radius: 14px;
}

body.sistemaigreja .contentInner {
  max-width: var(--ig-page-max) !important;
}

body.sistemaigreja .igDash2026 {
  gap: 16px !important;
}

body.sistemaigreja .igDash2026__head {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  padding-bottom: 0 !important;
}

body.sistemaigreja .igDash2026__kpis {
  margin: 0 !important;
}

body.sistemaigreja .igDash2026 .ig-premiumKpiRow {
  grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
}

body.sistemaigreja .igDash2026 .ig-premiumKpi {
  min-height: 104px !important;
  padding: 16px 17px !important;
  border-radius: 13px !important;
}

body.sistemaigreja .igDash2026__main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.sistemaigreja .igDash2026__main .dashMasterCard {
  margin: 0 !important;
}

body.sistemaigreja .igDash2026__actions {
  padding: 18px !important;
}

body.sistemaigreja .igDash2026__actionList {
  display: grid !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

body.sistemaigreja .igDash2026__action {
  width: 100% !important;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  border: 1px solid var(--ig-hairline) !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  color: var(--ig-ink) !important;
  font-family: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.sistemaigreja .igDash2026__action:hover {
  border-color: #cfe4d5 !important;
  background: #f8fbf9 !important;
}

body.sistemaigreja .igDash2026__action span {
  color: var(--ig-subtle) !important;
  font-size: 0.76rem !important;
  font-weight: 760 !important;
}

body.sistemaigreja .igDash2026__action strong {
  color: var(--ig-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 820 !important;
}

body.sistemaigreja .igDash2026__action::after {
  content: "›";
  color: var(--ig-green);
  font-size: 1.3rem;
  font-weight: 700;
}

body.sistemaigreja .igDash2026__analysis {
  padding: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja .igDash2026__analysis > summary {
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 18px 20px !important;
  cursor: pointer !important;
  list-style: none !important;
}

body.sistemaigreja .igDash2026__analysis > summary::-webkit-details-marker {
  display: none;
}

body.sistemaigreja .igDash2026__analysis > summary span {
  color: var(--ig-subtle) !important;
  font-size: 0.76rem !important;
  font-weight: 820 !important;
  text-transform: uppercase !important;
}

body.sistemaigreja .igDash2026__analysis > summary strong {
  color: var(--ig-green) !important;
  font-size: 0.86rem !important;
}

body.sistemaigreja .igDash2026__analysisGrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 14px !important;
  padding: 0 18px 18px !important;
}

body.sistemaigreja .igDash2026__analysisGrid .ig-premiumCard--insightsHost {
  grid-column: 1 / -1 !important;
}

body.sistemaigreja .pageHead {
  min-height: 0 !important;
}

body.sistemaigreja .pageHead h2,
body.sistemaigreja .ig-dashHeroHead__title {
  font-size: 1.24rem !important;
  letter-spacing: 0 !important;
}

body.sistemaigreja .pageHead p,
body.sistemaigreja .pageHead__lead,
body.sistemaigreja .ig-dashHeroHead__lead {
  margin-top: 6px !important;
  max-width: 560px !important;
}

body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tableScroll {
  border-color: var(--ig-hairline) !important;
}

body.sistemaigreja .lancOpBar {
  grid-template-columns: 1fr !important;
  padding: 14px !important;
  margin-bottom: 14px !important;
}

body.sistemaigreja .lancOpBar__primary {
  gap: 8px !important;
}

body.sistemaigreja .lancOpBar__btnSec {
  background: #f8faf9 !important;
  color: #4d5c52 !important;
}

body.sistemaigreja .lancOpBar__tools {
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, 190px)) !important;
  gap: 10px !important;
}

body.sistemaigreja .lancFiltrosDetails,
body.sistemaigreja .relFiltroAvancado,
body.sistemaigreja .relPlanilhaLeadDetails {
  background: #fbfdfb !important;
}

body.sistemaigreja .panelListaTop {
  gap: 12px !important;
}

body.sistemaigreja .panelListaTop .igBtnSm:not(.active) {
  background: #ffffff !important;
  color: var(--ig-subtle) !important;
}

body.sistemaigreja .relFiltroHero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: end !important;
  padding: 16px !important;
}

body.sistemaigreja .relFiltroHero__steps,
body.sistemaigreja .relFiltroHero__hint {
  display: none !important;
}

body.sistemaigreja .relFiltroHero__tit {
  margin: 0 0 10px !important;
  font-size: 1rem !important;
}

body.sistemaigreja .relFiltroHero__grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: end !important;
}

body.sistemaigreja .relFiltroHero__field {
  min-width: 150px !important;
}

body.sistemaigreja .relFiltroHero__acoes {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body.sistemaigreja .relSubnav {
  position: sticky !important;
  top: 76px !important;
  z-index: 40 !important;
}

body.sistemaigreja .relPaneStack {
  margin-top: 14px !important;
}

body.sistemaigreja .relPane .panel + .panel {
  margin-top: 14px !important;
}

body.sistemaigreja .relPane[data-rel-pane="graficos"] .panel,
body.sistemaigreja .relPane[data-rel-pane="operacional"] .panel {
  padding: 18px !important;
}

body.sistemaigreja .igSubnav__btn {
  font-size: 0.82rem !important;
}

body.sistemaigreja .igSubnav__btn:not(.active) {
  color: #526158 !important;
}

body.sistemaigreja .tableScroll {
  border-radius: 12px !important;
}

body.sistemaigreja .igTable thead th,
body.sistemaigreja .tableScroll thead th {
  height: 42px !important;
  background: #f8faf9 !important;
}

body.sistemaigreja .igTable tbody tr:hover td {
  background: #fbfdfb !important;
}

body.sistemaigreja .confSubpane .panel:not(.hubFluxoTablePane):not(.hubFluxoStickyPanel),
body.sistemaigreja .igrejaSubpane .panel:not(.hubFluxoTablePane):not(.hubFluxoStickyPanel),
body.sistemaigreja #tab-conf-configuracoes .panel {
  padding: 18px !important;
}

body.sistemaigreja .hubFluxoTablePane.panel {
  padding: 10px 12px 12px !important;
}

body.sistemaigreja .igGuiaRapido,
body.sistemaigreja .igOnboarding {
  display: none !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja .igDash2026__main,
  body.sistemaigreja .igDash2026__analysisGrid {
    grid-template-columns: 1fr !important;
  }

  body.sistemaigreja .igDash2026 .ig-premiumKpiRow {
    grid-template-columns: repeat(2, minmax(170px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja .igDash2026 .ig-premiumKpiRow {
    grid-template-columns: 1fr !important;
  }

  body.sistemaigreja .relFiltroHero {
    grid-template-columns: 1fr !important;
  }

  body.sistemaigreja .relFiltroHero__acoes {
    justify-content: stretch !important;
  }
}

/* ============================================================
   v8.0 — CONSOLIDAÇÃO FINAL 2026 (padrão Conta Azul / Nibo / Notion)
   Camada única e definitiva: tokens limpos, componentes uniformes,
   tabelas estáveis (sem pulos), zero sobreposição.
   ============================================================ */

/* --- Tokens consolidados (cor institucional vem de #dynIdentidadeCor) --- */
body.sistemaigreja {
  --ig-bg: #f5f6f9;
  --ig-surface: #ffffff;
  --ig-surface-muted: #f8f9fb;
  --ig-line: #e6e9f0;
  --ig-line-strong: #d9dee8;
  --ig-text: #1a1f2e;
  --ig-muted: #6b7280;
  --ig-radius: 12px;
  --ig-card-radius: 12px;
  --ig-card-border: 1px solid #e6e9f0;
  --ig-card-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --ig-ui-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --ig-ui-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --ig-btn-height: 36px;
  --ig-input-height: 38px;
}

/* Fundo plano e estável — sem gradiente, sem deslocamento de barra de rolagem */
html {
  scrollbar-gutter: stable;
}
body.sistemaigreja {
  background: var(--ig-bg) !important;
  overflow-anchor: none;
}

/* --- Barra de rolagem fina e discreta (todo o sistema) --- */
body.sistemaigreja *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.sistemaigreja *::-webkit-scrollbar-track {
  background: transparent;
}
body.sistemaigreja *::-webkit-scrollbar-thumb {
  background: #cdd3de;
  border-radius: 99px;
}
body.sistemaigreja *::-webkit-scrollbar-thumb:hover {
  background: #aab2c0;
}

/* --- Cartões / painéis: um único vocabulário --- */
body.sistemaigreja .panel,
body.sistemaigreja .ig-premiumCard,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .lancPanel {
  background: var(--ig-surface) !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: var(--ig-card-radius) !important;
  box-shadow: var(--ig-card-shadow) !important;
}

/* --- Botões: 3 variações, mesma métrica em todo o sistema --- */
body.sistemaigreja .igBtn {
  min-height: var(--ig-btn-height) !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--ig-line-strong) !important;
  background: var(--ig-surface) !important;
  color: var(--ig-text) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04) !important;
  transition: background 0.13s ease, border-color 0.13s ease, color 0.13s ease, box-shadow 0.13s ease !important;
}
body.sistemaigreja .igBtn:hover {
  background: var(--ig-surface-muted) !important;
  border-color: #c3cad6 !important;
}
body.sistemaigreja .igBtn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--ig-surface), 0 0 0 4px var(--ig-accent-muted) !important;
}
body.sistemaigreja .igBtnPrimary,
body.sistemaigreja .viewToggleMini .igBtn.active,
body.sistemaigreja .igSubnav__btn.active {
  background: var(--ig-accent) !important;
  border-color: var(--ig-accent) !important;
  color: #fff !important;
}
body.sistemaigreja .igBtnPrimary:hover {
  background: var(--ig-accent-hover) !important;
  border-color: var(--ig-accent-hover) !important;
}
body.sistemaigreja .igBtnDanger {
  background: var(--ig-surface) !important;
  border-color: #f3c4c4 !important;
  color: #b42318 !important;
}
body.sistemaigreja .igBtnDanger:hover {
  background: #fef3f2 !important;
  border-color: #e89c9c !important;
}
body.sistemaigreja .igBtnSm {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 0.75rem !important;
  border-radius: 7px !important;
}

/* --- Inputs e selects: métrica única + foco visível --- */
body.sistemaigreja label.igLab input,
body.sistemaigreja label.igLab select,
body.sistemaigreja label.igLab textarea,
body.sistemaigreja .panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.sistemaigreja .panel select,
body.sistemaigreja .panel textarea {
  min-height: var(--ig-input-height) !important;
  border: 1px solid var(--ig-line-strong) !important;
  border-radius: 8px !important;
  background: var(--ig-surface) !important;
  font-size: 0.875rem !important;
  transition: border-color 0.13s ease, box-shadow 0.13s ease !important;
}
body.sistemaigreja label.igLab input:focus,
body.sistemaigreja label.igLab select:focus,
body.sistemaigreja label.igLab textarea:focus,
body.sistemaigreja .panel input:focus,
body.sistemaigreja .panel select:focus,
body.sistemaigreja .panel textarea:focus {
  outline: none !important;
  border-color: var(--ig-accent) !important;
  box-shadow: 0 0 0 3px var(--ig-accent-soft) !important;
}

/* --- Tabelas: estáveis, cabeçalho travado, sem pulos --- */
body.sistemaigreja .tableScroll,
body.sistemaigreja .table-container {
  border: 1px solid var(--ig-line) !important;
  border-radius: 10px !important;
  background: var(--ig-surface);
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
body.sistemaigreja .tableScroll {
  max-height: 56vh !important;
}
body.sistemaigreja table.igTable {
  font-size: 0.8125rem !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
body.sistemaigreja table.igTable th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: var(--ig-surface-muted) !important;
  color: var(--ig-muted) !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid var(--ig-line-strong) !important;
  box-shadow: 0 1px 0 var(--ig-line-strong);
  white-space: nowrap;
}
body.sistemaigreja table.igTable td {
  border-bottom: 1px solid var(--ig-line) !important;
  vertical-align: middle !important;
}
body.sistemaigreja table.igTable tbody tr:last-child td {
  border-bottom: none !important;
}
body.sistemaigreja table.igTable tr:hover td {
  background: #f6f8fb !important;
}
body.sistemaigreja table.igTable tr.rowSelected td {
  background: var(--ig-accent-soft) !important;
}
body.sistemaigreja .igTable .colAcoes,
body.sistemaigreja .igTable .cellActions {
  white-space: nowrap !important;
  text-align: right !important;
}
body.sistemaigreja .num {
  font-variant-numeric: tabular-nums !important;
}

/* --- Modais: acima de tudo, sem briga de camadas --- */
body.sistemaigreja .igModalBackdrop {
  background: rgba(16, 24, 40, 0.5) !important;
  backdrop-filter: blur(2px);
}
body.sistemaigreja .igModalBox {
  border-radius: 14px !important;
  border: 1px solid var(--ig-line) !important;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.22) !important;
}

/* --- Cabeçalho de página e títulos: hierarquia limpa --- */
body.sistemaigreja .pageHead h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--ig-text) !important;
}
body.sistemaigreja .panel h3 {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--ig-muted) !important;
}

/* --- Topbar e sidebar: superfícies brancas, divisas finas --- */
body.sistemaigreja .wrap > .top {
  background: var(--ig-surface) !important;
  border-bottom: 1px solid var(--ig-line) !important;
  box-shadow: none !important;
}
body.sistemaigreja .sidebar {
  background: var(--ig-surface) !important;
  border-right: 1px solid var(--ig-line) !important;
  box-shadow: none !important;
}

/* --- KPIs hero: cores de status mais sóbrias (sem gradiente pesado) --- */
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok {
  background: #f0fdf4 !important;
  border: 1px solid #bbe5c8 !important;
  box-shadow: var(--ig-card-shadow) !important;
}
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no {
  background: #fef3f2 !important;
  border: 1px solid #f3c4c4 !important;
  box-shadow: var(--ig-card-shadow) !important;
}

/* Texto dos heróis de decisão sobre fundo claro (acompanha o flatten acima) */
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiDecision__label--hero {
  color: #15803d !important;
}
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiDecision__label--hero {
  color: #b42318 !important;
}
body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict.tesourariaKpiDecision__msg--ok {
  color: #14532d !important;
  text-shadow: none !important;
}
body.sistemaigreja .tesourariaKpiDecision--hero .tesourariaKpiDecision__verdict.tesourariaKpiDecision__msg--no {
  color: #7f1d1d !important;
  text-shadow: none !important;
}
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiDecision__valor,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiDecision__hint,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--ok .tesourariaKpiDecision__msg {
  color: #14532d !important;
  text-shadow: none !important;
}
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiDecision__valor,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiDecision__hint,
body.sistemaigreja .tesourariaKpiDecision--hero.tesourariaKpiDecision--no .tesourariaKpiDecision__msg {
  color: #7f1d1d !important;
  text-shadow: none !important;
}

/* --- Layout em grid (901px+): sidebar coluna própria, zero sobreposição --- */
@media (min-width: 901px) {
  body.sistemaigreja.sidenav-on {
    padding: 0 !important;
  }
  body.sistemaigreja.sidenav-on .sidebar {
    top: 0 !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  body.sistemaigreja.sidenav-on .wrap > .top {
    margin-left: 0 !important;
  }
  body.sistemaigreja.sidenav-on .content {
    margin-left: 0 !important;
  }
}

/* --- Navegação por abas: só a aba ativa aparece (corrige duas telas abertas) --- */
body.sistemaigreja .tabpane:not(.active) {
  display: none !important;
}

/* --- Subnav: posicao estatica (sem flutuar sobre o conteudo) --- */
body.sistemaigreja .igSubnav {
  position: static !important;
}

/* =======================================================================
   v9.0 - Refinamentos por tela (Etapa 2)
   Relatorios, Prestacao de Contas, Cadastros, Sistema
   ======================================================================= */

/* --- Relatorios: hero de filtros bem espaçado --- */
body.sistemaigreja #tab-relatorios .relFiltroHero {
  background: var(--ig-soft) !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin-bottom: 20px !important;
}
body.sistemaigreja #tab-relatorios .relFiltroHero label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--ig-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
body.sistemaigreja #tab-relatorios .relFiltroHero select,
body.sistemaigreja #tab-relatorios .relFiltroHero input[type="month"],
body.sistemaigreja #tab-relatorios .relFiltroHero input[type="date"] {
  border: 1px solid var(--ig-line-strong) !important;
  border-radius: 6px !important;
  padding: 7px 10px !important;
  font-size: 0.875rem !important;
  background: #fff !important;
  color: var(--ig-text) !important;
}
body.sistemaigreja #tab-relatorios .relFiltroHero select:focus,
body.sistemaigreja #tab-relatorios .relFiltroHero input:focus {
  outline: none !important;
  border-color: var(--ig-accent) !important;
  box-shadow: 0 0 0 3px var(--ig-accent-soft) !important;
}

/* Graficos DRE: borda suave, sem sombra pesada */
body.sistemaigreja #tab-relatorios .chartBox,
body.sistemaigreja #tab-relatorios .dreChart {
  border: 1px solid var(--ig-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 16px !important;
  background: #fff !important;
}

/* Tabela DRE */
body.sistemaigreja #tab-relatorios table thead tr {
  background: var(--ig-soft) !important;
}
body.sistemaigreja #tab-relatorios table thead th {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--ig-muted) !important;
  border-bottom: 2px solid var(--ig-line-strong) !important;
  padding: 10px 12px !important;
  white-space: nowrap !important;
}
body.sistemaigreja #tab-relatorios table tbody td {
  padding: 9px 12px !important;
  font-size: 0.875rem !important;
  border-bottom: 1px solid var(--ig-line) !important;
}
body.sistemaigreja #tab-relatorios table tbody tr:hover td {
  background: var(--ig-soft) !important;
}

/* --- Prestacao de Contas: cabecalho da planilha limpo --- */
body.sistemaigreja #tab-prestacao .prestacaoWrap,
body.sistemaigreja #tab-prestacaoContas .prestacaoWrap {
  background: #fff !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
body.sistemaigreja #tab-prestacao table thead th,
body.sistemaigreja #tab-prestacaoContas table thead th {
  background: var(--ig-soft) !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--ig-muted) !important;
  border-bottom: 2px solid var(--ig-line-strong) !important;
  white-space: nowrap !important;
  padding: 10px 12px !important;
}
body.sistemaigreja #tab-prestacao table tbody td,
body.sistemaigreja #tab-prestacaoContas table tbody td {
  padding: 9px 12px !important;
  font-size: 0.875rem !important;
  border-bottom: 1px solid var(--ig-line) !important;
}
body.sistemaigreja #tab-prestacao table tbody tr:last-child td,
body.sistemaigreja #tab-prestacaoContas table tbody tr:last-child td {
  border-bottom: none !important;
  font-weight: 700 !important;
  background: var(--ig-soft) !important;
}

/* --- Cadastros: formularios compactos e consistentes --- */
body.sistemaigreja #tab-membros .panel,
body.sistemaigreja #tab-categorias .panel,
body.sistemaigreja #tab-origens .panel,
body.sistemaigreja #tab-formas .panel,
body.sistemaigreja #tab-periodos .panel,
body.sistemaigreja #tab-finalidades .panel {
  border: 1px solid var(--ig-line) !important;
  border-radius: 10px !important;
  padding: 20px !important;
  box-shadow: none !important;
  background: #fff !important;
}
body.sistemaigreja #tab-membros table thead th,
body.sistemaigreja #tab-categorias table thead th,
body.sistemaigreja #tab-origens table thead th,
body.sistemaigreja #tab-formas table thead th,
body.sistemaigreja #tab-periodos table thead th,
body.sistemaigreja #tab-finalidades table thead th {
  background: var(--ig-soft) !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--ig-muted) !important;
  border-bottom: 2px solid var(--ig-line-strong) !important;
  padding: 9px 12px !important;
  white-space: nowrap !important;
}
body.sistemaigreja #tab-membros table tbody td,
body.sistemaigreja #tab-categorias table tbody td,
body.sistemaigreja #tab-origens table tbody td,
body.sistemaigreja #tab-formas table tbody td,
body.sistemaigreja #tab-periodos table tbody td,
body.sistemaigreja #tab-finalidades table tbody td {
  padding: 8px 12px !important;
  font-size: 0.875rem !important;
  border-bottom: 1px solid var(--ig-line) !important;
}
body.sistemaigreja #tab-membros table tbody tr:hover td,
body.sistemaigreja #tab-categorias table tbody tr:hover td,
body.sistemaigreja #tab-origens table tbody tr:hover td,
body.sistemaigreja #tab-formas table tbody tr:hover td,
body.sistemaigreja #tab-periodos table tbody tr:hover td,
body.sistemaigreja #tab-finalidades table tbody tr:hover td {
  background: var(--ig-soft) !important;
}

/* --- Sistema (configuracoes): formulario central de identidade --- */
body.sistemaigreja #tab-sistema .panel,
body.sistemaigreja #tab-config .panel {
  border: 1px solid var(--ig-line) !important;
  border-radius: 10px !important;
  padding: 24px !important;
  background: #fff !important;
  box-shadow: none !important;
  max-width: 640px !important;
}
body.sistemaigreja #tab-sistema label,
body.sistemaigreja #tab-config label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--ig-text) !important;
  display: block !important;
  margin-bottom: 5px !important;
}
body.sistemaigreja #tab-sistema input[type="text"],
body.sistemaigreja #tab-sistema input[type="color"],
body.sistemaigreja #tab-sistema input[type="url"],
body.sistemaigreja #tab-sistema textarea,
body.sistemaigreja #tab-config input[type="text"],
body.sistemaigreja #tab-config input[type="color"],
body.sistemaigreja #tab-config input[type="url"],
body.sistemaigreja #tab-config textarea {
  border: 1px solid var(--ig-line-strong) !important;
  border-radius: 7px !important;
  padding: 8px 10px !important;
  font-size: 0.875rem !important;
  width: 100% !important;
  background: #fff !important;
  color: var(--ig-text) !important;
}
body.sistemaigreja #tab-sistema input:focus,
body.sistemaigreja #tab-sistema textarea:focus,
body.sistemaigreja #tab-config input:focus,
body.sistemaigreja #tab-config textarea:focus {
  outline: none !important;
  border-color: var(--ig-accent) !important;
  box-shadow: 0 0 0 3px var(--ig-accent-soft) !important;
}

/* --- Badges de status --- */
body.sistemaigreja .igBadge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  border-radius: 99px !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.6 !important;
}
body.sistemaigreja .igBadge--green {
  background: #dcfce7 !important;
  color: #15803d !important;
}
body.sistemaigreja .igBadge--red {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
body.sistemaigreja .igBadge--blue {
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
}
body.sistemaigreja .igBadge--gray {
  background: var(--ig-soft) !important;
  color: var(--ig-muted) !important;
  border: 1px solid var(--ig-line) !important;
}

/* --- Paginacao: botoes neutros com hover suave --- */
body.sistemaigreja .igPagination {
  display: flex !important;
  gap: 4px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 0 !important;
}
body.sistemaigreja .igPagination button,
body.sistemaigreja .igPagination .igPag-btn {
  border: 1px solid var(--ig-line-strong) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ig-text) !important;
  padding: 5px 11px !important;
  font-size: 0.8125rem !important;
  cursor: pointer !important;
  transition: background 0.12s, border-color 0.12s !important;
}
body.sistemaigreja .igPagination button:hover,
body.sistemaigreja .igPagination .igPag-btn:hover {
  background: var(--ig-soft) !important;
  border-color: var(--ig-accent) !important;
}
body.sistemaigreja .igPagination button.active,
body.sistemaigreja .igPagination .igPag-btn.active {
  background: var(--ig-accent) !important;
  color: #fff !important;
  border-color: var(--ig-accent) !important;
}

/* v9.0 - fim dos refinamentos por tela */


/* ============================================================
   REDESIGN 2026 — Simplificação visual (UX overrides)
   Todas as funcionalidades preservadas. Apenas visual alterado.
   ============================================================ */

/* ----------------------------------------------------------
   1. Header enxuto — título apenas, sem subtítulo/versão
   ---------------------------------------------------------- */
body.sistemaigreja .topBar--premium.top.topBar {
  min-height: 52px;
  padding: 6px 16px 6px 20px;
}

body.sistemaigreja .topBar--premium .topBar__subtitle,
body.sistemaigreja .topBar--premium .titleBlock .subtitle,
body.sistemaigreja .topBar__obs,
body.sistemaigreja .topBar__ver {
  display: none !important;
}

body.sistemaigreja .topBar--premium .brandMark {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.22);
}

body.sistemaigreja .topBar--premium .topBar__title,
body.sistemaigreja .topBar--premium .titleBlock h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Botão de toggle do sidebar — somente ícone */
body.sistemaigreja .igBtn--iconOnly {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
}

body.sistemaigreja .igBtn--topGhost {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

body.sistemaigreja .igBtn--topGhost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
}

/* ----------------------------------------------------------
   2. Dropdown de usuário no header
   ---------------------------------------------------------- */
body.sistemaigreja .igUserMenu {
  position: relative;
}

body.sistemaigreja .igUserMenu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--ig-ui-radius-md);
  cursor: pointer;
  list-style: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s;
  user-select: none;
}

body.sistemaigreja .igUserMenu__trigger:hover {
  background: rgba(255,255,255,0.2);
}

body.sistemaigreja .igUserMenu__trigger::-webkit-details-marker,
body.sistemaigreja .igUserMenu__trigger::marker {
  display: none;
}

body.sistemaigreja .igUserMenu__trigger .topUserChip {
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  background: transparent;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.sistemaigreja .igUserMenu__caret {
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.15s;
}

body.sistemaigreja .igUserMenu[open] .igUserMenu__caret {
  transform: rotate(180deg);
}

body.sistemaigreja .igUserMenu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-ui-radius-md);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  z-index: var(--ig-z-dropdown);
  overflow: hidden;
  padding: 4px;
}

body.sistemaigreja .igUserMenu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--ig-text);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.12s;
}

body.sistemaigreja .igUserMenu__item:hover {
  background: var(--ig-surface-muted);
}

body.sistemaigreja .igUserMenu__item--danger {
  color: var(--ig-negative);
}

body.sistemaigreja .igUserMenu__item--danger:hover {
  background: #fff1f2;
}

body.sistemaigreja .igUserMenu__itemIcon {
  opacity: 0.7;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   3. Sidebar enxuta — sem descrições, itens mais compactos
   ---------------------------------------------------------- */
body.sistemaigreja .sideItemDesc {
  display: none !important;
}

/* Com descrições removidas, ajustar padding dos itens */
body.sistemaigreja .sideNav .sideItem {
  padding: 8px 10px;
}

body.sistemaigreja .sideNavPinned .sideItem--featured {
  padding: 9px 10px;
}

body.sistemaigreja .sideNavSectionItems .sideItem--secondary {
  padding: 7px 10px;
}

/* Sidebar header mais compacto */
body.sistemaigreja .sideNavHeader--v2 {
  padding: 12px 12px 10px;
}

body.sistemaigreja .sideNavKicker {
  display: none;
}

/* ----------------------------------------------------------
   4. Dashboard — layout simplificado
   ---------------------------------------------------------- */

/* Header do dashboard com botões de ação */
body.sistemaigreja .ig-dashHeroHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

body.sistemaigreja .igDash2026__headActions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

body.sistemaigreja .igBtn--sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
}

/* Período no header do dash */
body.sistemaigreja .ig-dashHeroHead__lead {
  font-size: 0.8125rem;
  color: var(--ig-muted);
  margin: 0;
}

/* Resultado visível na faixa de KPIs do dashboard */

/* KPIs com cor contextual */
body.sistemaigreja .ig-premiumKpi--pos .ig-premiumKpi__value {
  color: var(--ig-positive);
}
body.sistemaigreja .ig-premiumKpi--neg .ig-premiumKpi__value {
  color: var(--ig-negative);
}

/* Main do dashboard — coluna única (atalhos removidos) */
body.sistemaigreja .igDash2026__main--single {
  display: block !important;
  grid-template-columns: unset !important;
}

/* Banner compacto "Disponível para uso" */
body.sistemaigreja .igDecBanner {
  border-radius: var(--ig-ui-radius-md);
  border: none !important;
  background: var(--ig-accent-soft) !important;
  border-left: 4px solid var(--ig-accent) !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}

body.sistemaigreja .igDecBanner .dashMasterCard__ribbon {
  display: none;
}

body.sistemaigreja .igDecBanner__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
}

body.sistemaigreja .igDecBanner__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.sistemaigreja .igDecBanner__status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-accent);
  opacity: 0.8;
}

body.sistemaigreja .igDecBanner__verdict {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ig-text);
}

body.sistemaigreja .igDecBanner__center {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
}

body.sistemaigreja .igDecBanner__meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ig-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.sistemaigreja .igDecBanner__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ig-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

body.sistemaigreja .igDecBanner__hint {
  font-size: 0.78rem;
  align-self: flex-end;
}

/* Ocultar seção de atalhos (substituída por botões no header) */
body.sistemaigreja .igDash2026__actions {
  display: none !important;
}

/* ----------------------------------------------------------
   5. Botões secundários da toolbar (Rápido, Culto, Transferir)
   ---------------------------------------------------------- */
body.sistemaigreja .lancOpBar__primary .lancOpBar__btnSec {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 10px;
  min-height: 34px;
  min-width: unset;
  color: var(--ig-muted);
  border-color: var(--ig-line);
}

body.sistemaigreja .lancOpBar__primary .lancOpBar__btnSec:hover {
  color: var(--ig-accent);
  border-color: var(--ig-accent);
  background: var(--ig-accent-soft);
}

/* ----------------------------------------------------------
   6. Remover hint fixo dos formulários de lançamento
   ---------------------------------------------------------- */
body.sistemaigreja .lancFastHint {
  display: none;
}

/* ----------------------------------------------------------
   7. Barra de filtros mais discreta
   ---------------------------------------------------------- */
body.sistemaigreja .lancOpBar__searchLab {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -----------------------------

/* ============================================================
   REDESIGN PRO v4.0 — Sistema visual profissional
   Cores automáticas de valor, hierarquia de tabela,
   seções de relatório, métricas DRE, empty states
   ============================================================ */

/* ── 1. CORES DE VALOR MONETÁRIO ─────────────────────────────
   Aplicadas via JS (IIFE 20) em qualquer elemento com "R$"
   ─────────────────────────────────────────────────────────── */
body.sistemaigreja .igVal--pos { color: #15803d !important; font-weight: 700; }
body.sistemaigreja .igVal--neg { color: #dc2626 !important; font-weight: 700; }
body.sistemaigreja .igVal--zero { color: var(--ig-muted) !important; font-weight: 400 !important; opacity: 0.6; }

/* Manter cor mesmo nos estados zebra/hover */
body.sistemaigreja table tr:hover td.igVal--pos,
body.sistemaigreja table tr:nth-child(even) td.igVal--pos { color: #15803d !important; }
body.sistemaigreja table tr:hover td.igVal--neg,
body.sistemaigreja table tr:nth-child(even) td.igVal--neg { color: #dc2626 !important; }

/* Dark mode */
body.sistemaigreja.dark-mode .igVal--pos { color: #4ade80 !important; }
body.sistemaigreja.dark-mode .igVal--neg { color: #f87171 !important; }
body.sistemaigreja.dark-mode .igVal--zero { color: rgba(255,255,255,0.3) !important; }

/* ── 2. CABEÇALHOS H3 DOS PAINÉIS DE RELATÓRIO ───────────────
   Substituir o "cinza miúdo" genérico por título legível
   ─────────────────────────────────────────────────────────── */
body.sistemaigreja .relDrePanel h3,
body.sistemaigreja .relPlanilhaHead h3,
body.sistemaigreja .relHistPanel h3,
body.sistemaigreja .relChartPanel h3,
body.sistemaigreja .relContasPanel h3,
body.sistemaigreja .relConciliacaoPanel h3,
body.sistemaigreja .relPendenciasPanel h3,
body.sistemaigreja .relPorFinalidadePanel h3,
body.sistemaigreja .relAcompFinalidadePanel h3,
body.sistemaigreja .relCompPanel h3 {
  font-size: 0.84rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ig-text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.sistemaigreja .relDrePanel h3::before,
body.sistemaigreja .relPlanilhaHead h3::before,
body.sistemaigreja .relHistPanel h3::before,
body.sistemaigreja .relCompPanel h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--ig-accent);
  flex-shrink: 0;
}

/* Cabeçalho do painel com divisor inferior */
body.sistemaigreja .relPlanilhaHead {
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--ig-line) !important;
  margin-bottom: 14px !important;
}

/* ── 3. THEAD DAS TABELAS — VISUAL MAIS FORTE ────────────────
   ─────────────────────────────────────────────────────────── */
body.sistemaigreja table.igTable thead th {
  background: #f1f5f9 !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 10px 14px !important;
  white-space: nowrap;
}

body.sistemaigreja.dark-mode table.igTable thead th {
  background: rgba(255,255,255,0.05) !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.45) !important;
}

/* Zebra mais suave */
body.sistemaigreja table.igTable tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.8) !important;
}

body.sistemaigreja.dark-mode table.igTable tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.025) !important;
}

/* Hover — petroleum azul suave */
body.sistemaigreja table.igTable tbody tr:hover td {
  background: #e0f2fe !important;
  transition: background 0.1s ease;
}

body.sistemaigreja.dark-mode table.igTable tbody tr:hover td {
  background: rgba(56,189,248,0.07) !important;
}

/* Linhas de total / tfoot */
body.sistemaigreja table.igTable tfoot td,
body.sistemaigreja table.igTable tr.igRow--total td,
body.sistemaigreja table.igTable tr.rowTotal td,
body.sistemaigreja table.igTable tr.rowTotals td {
  background: #f8fafc !important;
  border-top: 2px solid #cbd5e1 !important;
  font-weight: 750 !important;
}

body.sistemaigreja.dark-mode table.igTable tfoot td,
body.sistemaigreja.dark-mode table.igTable tr.igRow--total td {
  background: rgba(255,255,255,0.04) !important;
  border-top-color: rgba(255,255,255,0.12) !important;
}

/* ── 4. HIERARQUIA DAS LINHAS DRE ────────────────────────────
   Grupos, resultado e detalhe com pesos visuais distintos
   ─────────────────────────────────────────────────────────── */
body.sistemaigreja .relDreTable tr.relDreRow--grupo td,
body.sistemaigreja .relDreTable tr.dreRow--grupo td {
  background: #f8fafc !important;
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  padding-top: 12px !important;
  padding-bottom: 7px !important;
}

body.sistemaigreja .relDreTable tr.relDreRow--resultado td,
body.sistemaigreja .relDreTable tr.relDreRow--result td,
body.sistemaigreja .relDreTable tr.relDreRow--total td {
  background: #f1f5f9 !important;
  font-weight: 750 !important;
  font-size: 0.86rem !important;
  border-top: 2px solid #cbd5e1 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

body.sistemaigreja .relDreTable tr.relDreRow--detail .relDreCol--linha {
  padding-left: 26px !important;
  color: var(--ig-muted) !important;
  font-size: 0.8rem !important;
}

/* Última linha do DRE horizontal (Resultado) */
body.sistemaigreja #tbodyRelDreHorizontal tr:last-child td {
  background: #f1f5f9 !important;
  font-weight: 750 !important;
  border-top: 2px solid #cbd5e1 !important;
}

/* ── 5. MÉTRICAS HERO DA DRE ──────────────────────────────────
   4 cards no topo: Receita, Despesa, Resultado, Margem
   ─────────────────────────────────────────────────────────── */
body.sistemaigreja .relDreMetric {
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05), 0 0 0 1px rgba(15,23,42,0.02) !important;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

body.sistemaigreja .relDreMetric:hover {
  box-shadow: 0 4px 14px rgba(15,23,42,0.09) !important;
  transform: translateY(-1px);
}

/* Borda esquerda colorida por tipo */
body.sistemaigreja .relDreMetric--ent { border-left: 4px solid #15803d !important; }
body.sistemaigreja .relDreMetric--sai { border-left: 4px solid #dc2626 !important; }
body.sistemaigreja .relDreMetric--res { border-left: 4px solid var(--ig-accent) !important; }
body.sistemaigreja .relDreMetric--margem { border-left: 4px solid #f59e0b !important; }

/* Valores com cor por tipo */
body.sistemaigreja .relDreMetric--ent .relDreMetric__value { color: #15803d !important; }
body.sistemaigreja .relDreMetric--sai .relDreMetric__value { color: #dc2626 !important; }
body.sistemaigreja .relDreMetric--res .relDreMetric__value { color: var(--ig-text) !important; }

/* Label mais expressivo */
body.sistemaigreja .relDreMetric__label {
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--ig-muted) !important;
  margin-bottom: 10px !important;
}

body.sistemaigreja .relDreMetric__value {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
}

body.sistemaigreja.dark-mode .relDreMetric {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── 6. EMPTY STATE PROFISSIONAL ──────────────────────────────
   ─────────────────────────────────────────────────────────── */
body.sistemaigreja .igEmptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 36px 20px;
  text-align: center;
  width: 100%;
}

body.sistemaigreja .igEmptyState__icon {
  font-size: 1.75rem;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

body.sistemaigreja .igEmptyState__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ig-text);
  margin: 0;
}

body.sistemaigreja .igEmptyState__desc {
  font-size: 0.775rem;
  color: var(--ig-muted);
  margin: 0;
  max-width: 220px;
  line-height: 1.45;
}

/* ── 7. FLUXO — COR NA COLUNA SALDO ─────────────────────────── */
body.sistemaigreja .fluxo-saldo--pos { color: #15803d !important; font-weight: 700; }
body.sistemaigreja .fluxo-saldo--neg { color: #dc2626 !important; font-weight: 700; }
body.sistemaigreja.dark-mode .fluxo-saldo--pos { color: #4ade80 !important; }
body.sistemaigreja.dark-mode .fluxo-saldo--neg { color: #f87171 !important; }

/* ── 8. PAINEL DE RELATÓRIO — HOVER E TRANSIÇÃO ─────────────── */
body.sistemaigreja .relDrePanel {
  transition: box-shadow 0.18s;
}

body.sistemaigreja .relDrePanel:hover {
  box-shadow: 0 4px 16px rgba(15,23,42,0.07) !important;
}

/* ── FIM REDESIGN PRO v4.0 ─────────────────────────────────── */
lor-tipo="entrada"],
body.sistemaigreja .igTable .lancEntradaVal {
  color: var(--ig-positive);
  font-weight: 600;
}

body.sistemaigreja .igTable .tbl-neg,
body.sistemaigreja .igTable td[data-valor-tipo="saida"],
body.sistemaigreja .igTable .lancSaidaVal {
  color: var(--ig-negative);
  font-weight: 600;
}

/* Status badge pill */
body.sistemaigreja .igStatusBadge,
body.sistemaigreja .lancStatusBadge,
body.sistemaigreja .statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--ig-ui-radius-pill, 999px);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Conciliado */
body.sistemaigreja .igStatusBadge--ok,
body.sistemaigreja .lancStatusBadge--ok,
body.sistemaigreja .statusConciliado {
  background: var(--ig-positive-soft);
  color: var(--ig-positive);
  border: 1px solid rgba(21,128,61,0.2);
}

/* Pendente */
body.sistemaigreja .igStatusBadge--pending,
body.sistemaigreja .lancStatusBadge--pending,
body.sistemaigreja .statusPendente {
  background: var(--ig-warn-soft);
  color: var(--ig-warn);
  border: 1px solid rgba(217,119,6,0.2);
}

/* Erro / cancelado */
body.sistemaigreja .igStatusBadge--error,
body.sistemaigreja .lancStatusBadge--error,
body.sistemaigreja .statusErro {
  background: var(--ig-negative-soft);
  color: var(--ig-negative);
  border: 1px solid rgba(220,38,38,0.2);
}

/* ----------------------------------------------------------
   REL1. Relatórios — simplificação visual
   ---------------------------------------------------------- */

/* Ocultar instrução de passos (é óbvio pelo fluxo) */
body.sistemaigreja .relFiltroHero__steps {
  display: none !important;
}

/* Ocultar hint "não confundir com caixa global" na compact bar */
body.sistemaigreja .relFiltroCompact__scope {
  display: none !important;
}

/* Hero mais limpo — sem padding excessivo */
body.sistemaigreja .relFiltroHero {
  padding: 20px 24px;
}

body.sistemaigreja .relFiltroHero__tit {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

body.sistemaigreja .relFiltroHero__hint {
  font-size: 0.8125rem;
  margin-bottom: 16px;
}

/* Grid de seleção de período mais compacto */
body.sistemaigreja .relFiltroHero__grid {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

body.sistemaigreja .relFiltroHero__field {
  flex: 0 0 auto;
}

body.sistemaigreja .relFiltroHero__acoes {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Compact bar: layout mais claro */
body.sistemaigreja .relFiltroCompact__main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.sistemaigreja .relFiltroCompact__lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ig-muted);
}

body.sistemaigreja .relFiltroCompact__val {
  font-weight: 700;
  color: var(--ig-text);
  font-size: 0.9375rem;
}

body.sistemaigreja .relFiltroCompact__badge {
  font-size: 0.75rem;
}

/* ----------------------------------------------------------
   MISC. Melhorias pontuais
   ---------------------------------------------------------- */

/* Header — background mais sóbrio */
body.sistemaigreja .appHeader,
body.sistemaigreja .ig-appHeader {
  background: var(--ig-accent);
}

/* Input base com Inter */
body.sistemaigreja input,
body.sistemaigreja select,
body.sistemaigreja textarea {
  font-family: 'Inter', var(--ig-font-ui);
}

/* Panel / Card com fundo levemente off-white */
body.sistemaigreja .panel {
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-ui-radius-lg);
}

/* Tooltip refinado */
body.sistemaigreja [data-ig-tip]:hover::after {
  font-family: 'Inter', var(--ig-font-ui);
  font-size: 0.75rem;
}

/* Saldo na sidebar (sideNavCaixaMeta) mais discreto */
body.sistemaigreja .sideItemMeta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ig-positive);
  padding: 2px 12px 6px;
  letter-spacing: -0.01em;
}

/* Links de ação da tabela — aparecem no hover da linha */
body.sistemaigreja .igTable tbody tr .tbl-acoes {
  opacity: 0;
  transition: opacity 0.12s;
}
body.sistemaigreja .igTable tbody tr:hover .tbl-acoes {
  opacity: 1;
}

/* Responsivo mobile: tabelas com scroll horizontal */
@media (max-width: 768px) {
  body.sistemaigreja .ig-premiumKpiRow {
    grid-template-columns: 1fr 1fr;
  }

  body.sistemaigreja .relFiltroHero__grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================================================
   IG-EXTRAS — Busca global · Atalhos · Alertas · Estado vazio
   =========================================================== */

/* ----------------------------------------------------------
   BUSCA GLOBAL (igSearchOverlay)
   ---------------------------------------------------------- */
.igSearchOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 140px);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.igSearchOverlay[hidden] {
  display: none !important;
}

.igSearch {
  width: min(640px, calc(100vw - 32px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.igSearch__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.igSearch__barIcon {
  font-size: 1rem;
  opacity: 0.45;
  flex-shrink: 0;
}

.igSearch__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: #111;
  caret-color: var(--ig-accent, #0c4a6e);
}

.igSearch__input::placeholder {
  color: #9ca3af;
}

.igSearch__esc {
  font-size: 0.6875rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 2px 6px;
  color: #6b7280;
  font-family: inherit;
  flex-shrink: 0;
}

.igSearch__results {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 340px;
  overflow-y: auto;
}

.igSearch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.08s;
}

.igSearch__item:hover,
.igSearch__item--active {
  background: var(--ig-accent-soft, #e0f2fe);
}

.igSearch__icon {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--ig-accent, #0c4a6e);
}

.igSearch__label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.igSearch__hint {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.igSearch__empty {
  padding: 16px 18px;
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
}

.igSearch__footer {
  display: flex;
  gap: 16px;
  padding: 8px 18px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.igSearch__footer kbd {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  color: #374151;
  margin-right: 3px;
}

/* ----------------------------------------------------------
   ATALHOS — Painel de ajuda (igShortcutsHelp)
   ---------------------------------------------------------- */
.igShortcutsHelp {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.15s;
}

.igShortcutsHelp--visible {
  opacity: 1;
}

.igShortcutsHelp__inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  width: 340px;
  overflow: hidden;
}

.igShortcutsHelp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

.igShortcutsHelp__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1;
  padding: 0 4px;
}

.igShortcutsHelp__tbl {
  width: 100%;
  border-collapse: collapse;
  padding: 8px 0;
}

.igShortcutsHelp__tbl tr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px;
}

.igShortcutsHelp__tbl tr:hover {
  background: #f9fafb;
}

.igShortcutsHelp__tbl td:first-child {
  flex-shrink: 0;
  width: 90px;
}

.igShortcutsHelp__tbl td:last-child {
  font-size: 0.875rem;
  color: #374151;
}

.igShortcutsHelp__tbl kbd {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-family: inherit;
  color: #374151;
}

/* Hint de atalho no header */
.igShortcutHint {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-family: inherit;
  transition: background 0.12s;
  margin-left: auto;
  margin-right: 8px;
}

.igShortcutHint:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.igShortcutHint kbd {
  font-family: inherit;
}

/* ----------------------------------------------------------
   ALERTAS PROATIVOS (igAlertasStrip)
   ---------------------------------------------------------- */
.igAlertasStrip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.igAlertasStrip[hidden] {
  display: none !important;
}

.igAlerta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.igAlerta--warn {
  background: var(--ig-warn-soft, #fffbeb);
  border-color: rgba(217,119,6,0.2);
  color: #92400e;
}

.igAlerta--info {
  background: var(--ig-accent-soft, #e0f2fe);
  border-color: rgba(30,64,175,0.15);
  color: #0c4a6e;
}

.igAlerta--error {
  background: var(--ig-negative-soft, #fef2f2);
  border-color: rgba(220,38,38,0.15);
  color: #991b1b;
}

.igAlerta__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.igAlerta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.igAlerta__title {
  font-weight: 600;
  font-size: 0.875rem;
}

.igAlerta__desc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.igAlerta__btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  height: 28px;
  padding: 0 12px;
}

/* ----------------------------------------------------------
   ESTADO VAZIO ÚTIL (igDashEmptyState)
   ---------------------------------------------------------- */
.igDashEmptyState {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  margin: 16px 0;
}

.igDashEmptyState[hidden] {
  display: none !important;
}

.igDashEmptyState__icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.igDashEmptyState__body {
  flex: 1;
}

.igDashEmptyState__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.igDashEmptyState__desc {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

.igDashEmptyState__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .igDashEmptyState {
    flex-direction: column;
    align-items: flex-start;
  }
  .igDashEmptyState__actions {
    width: 100%;
  }
  .igAlertasStrip {
    margin: 0 -4px 16px;
  }
}

/* ===========================================================
   CONCILIAÇÃO BANCÁRIA — Importação de Extrato OFX/CSV
   =========================================================== */

/* Caixa principal de importação */
.extratoImportBox {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s;
}

.extratoImportBox.dragging {
  border-color: var(--ig-accent, #0c4a6e);
  background: var(--ig-accent-soft, #e0f2fe);
}

/* Header da importação */
.extratoImportHeader {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extratoImportIcon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.extratoImportHeader > div {
  flex: 1;
}

.extratoImportTitle {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.extratoImportHint {
  font-size: 0.75rem;
  color: #6b7280;
}

.extratoImportBtn {
  flex-shrink: 0;
  cursor: pointer;
}

/* Zona de drop */
.extratoDropZone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 20px;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  font-size: 0.875rem;
  color: #6b7280;
}

.extratoDropZone:hover,
.extratoDropZone.over {
  border-color: var(--ig-accent, #0c4a6e);
  background: var(--ig-accent-soft, #e0f2fe);
  color: var(--ig-accent, #0c4a6e);
}

.extratoDropZone__icon {
  font-size: 1.25rem;
}

/* Filtros de conta + botão processar */
.extratoImportFilters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.extratoImportFilters[hidden] {
  display: none !important;
}

.extratoImportContaLab {
  flex: 1;
  min-width: 180px;
}

.extratoImportContaSel {
  width: 100%;
  margin-top: 4px;
}

/* Status do upload */
.extratoImportStatus {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.extratoImportStatus[hidden] {
  display: none !important;
}

.extratoImportStatus.loading {
  background: var(--ig-accent-soft, #e0f2fe);
  color: var(--ig-accent, #0c4a6e);
}

.extratoImportStatus.error {
  background: var(--ig-negative-soft, #fef2f2);
  color: #991b1b;
}

.extratoImportStatus.ok {
  background: var(--ig-positive-soft, #f0fdf4);
  color: #166534;
}

/* Área de resultado */
#extratoResultBox[hidden] {
  display: none !important;
}

/* Stats de resumo */
.extratoResultStats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.extratoStatCard {
  flex: 1;
  min-width: 110px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}

.extratoStatCard__val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  margin-bottom: 2px;
}

.extratoStatCard__lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.extratoStatCard--match  .extratoStatCard__val { color: #166534; }
.extratoStatCard--sem    .extratoStatCard__val { color: #dc2626; }
.extratoStatCard--credit .extratoStatCard__val { color: var(--ig-positive, #15803d); }
.extratoStatCard--debit  .extratoStatCard__val { color: var(--ig-negative, #dc2626); }

/* Barra de ações do resultado */
.extratoResultActions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.extratoResultFiltroLab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #475569;
  margin-left: auto;
  cursor: pointer;
}

/* Tabela de resultados */
.extratoResultTable {
  margin-top: 8px;
}

/* Linha conciliada */
#tblExtratoResult tbody tr.row--ja-conc {
  opacity: 0.6;
}

/* Badge de score */
.extratoScoreBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.extratoScoreBadge--high {
  background: #dcfce7;
  color: #15803d;
}

.extratoScoreBadge--mid {
  background: #fef9c3;
  color: #854d0e;
}

.extratoScoreBadge--low {
  background: #fee2e2;
  color: #991b1b;
}

.extratoScoreBadge--none {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Coluna de checkbox */
.extratoResultTable .colCheck {
  width: 36px;
  text-align: center;
}

/* Valor crédito/débito */
.extratoValCredito { color: var(--ig-positive, #15803d); font-weight: 700; }
.extratoValDebito  { color: var(--ig-negative, #dc2626); font-weight: 700; }

/* Nome do match no sistema */
.extratoMatchDesc {
  font-size: 0.8125rem;
  color: #374151;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extratoMatchDesc--none {
  color: #94a3b8;
  font-style: italic;
}

@media (max-width: 640px) {
  .extratoImportHeader {
    flex-wrap: wrap;
  }
  .extratoResultStats {
    gap: 8px;
  }
  .extratoStatCard {
    min-width: 80px;
    padding: 8px 10px;
  }
  .extratoStatCard__val {
    font-size: 1rem;
  }
}

/* ===========================================================
   DASHBOARD CHART STRIP — gráfico sempre visível
   =========================================================== */
.igDashChartStrip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px 12px;
  margin-bottom: 16px;
}

.igDashChartStrip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.igDashChartStrip__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}

.igDashChartStrip__legend {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: #64748b;
}

.igDashChartStrip__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* ===========================================================
   METAS DE CAMPANHAS — strip de progresso
   =========================================================== */
.igMetasStrip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.igMetaCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.igMetaCard--atingida {
  border-color: rgba(21,128,61,0.25);
  background: var(--ig-positive-soft, #f0fdf4);
}

.igMetaCard--perto {
  border-color: rgba(217,119,6,0.25);
  background: var(--ig-warn-soft, #fffbeb);
}

.igMetaCard__nome {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.igMetaCard__bar {
  width: 120px;
  flex-shrink: 0;
}

.igMetaCard__barTrack {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.igMetaCard__barFill {
  height: 100%;
  border-radius: 999px;
  background: var(--ig-accent, #0c4a6e);
  transition: width 0.4s ease;
}

.igMetaCard--atingida .igMetaCard__barFill {
  background: #16a34a;
}

.igMetaCard--perto .igMetaCard__barFill {
  background: #d97706;
}

.igMetaCard__pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.igMetaCard--atingida .igMetaCard__pct { color: #15803d; }
.igMetaCard--perto    .igMetaCard__pct { color: #92400e; }

/* ===========================================================
   BOTÃO DE EXPORTAÇÃO PDF
   =========================================================== */
.igPdfExportBtn {
  display: none !important;
}

/* ===========================================================
   PRINT CSS — Exportação para PDF via window.print()
   =========================================================== */
@media print {
  /* Esconder tudo que não é o relatório */
  .sidebar,
  .appHeader,
  .ig-appHeader,
  .sideNav,
  .ig-topbar,
  .igBtn,
  .filtros,
  .filtrosBtns,
  .relFiltroHero,
  .relFiltroCompact,
  #igSearchOverlay,
  #igShortcutsHelp,
  .igAlertasStrip,
  .igDashChartStrip,
  .igMetasStrip,
  .igPdfExportBtn,
  #extratoImportBox,
  #extratoResultBox,
  .sideNavHeader,
  button,
  input[type="button"],
  input[type="submit"] {
    display: none !important;
  }

  /* Mostrar apenas o conteúdo da aba ativa */
  body.sistemaigreja {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
  }

  /* Seção de relatório em largura total */
  #tab-relatorios {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Forçar layout de impressão em tabelas */
  .igTable {
    font-size: 8pt;
    border-collapse: collapse;
    width: 100%;
  }

  .igTable th,
  .igTable td {
    border: 1px solid #999;
    padding: 3px 6px;
  }

  .igTable thead {
    display: table-header-group; /* Repete cabeçalho em cada página */
  }

  /* KPIs do relatório */
  .relKpiGrid,
  .relSumarioGrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  /* Título da página */
  #tab-relatorios::before {
    content: "Relatório Mensal — Tesouraria";
    display: block;
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 12pt;
    border-bottom: 2pt solid #000;
    padding-bottom: 4pt;
  }

  /* Garantir quebra de página correta */
  .panel, article {
    page-break-inside: avoid;
  }
}

/* PWA — botão de instalação */
.igPwaInstallBtn {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  margin-left: 8px;
  transition: background 0.12s;
}

.igPwaInstallBtn.visible {
  display: flex;
}

.igPwaInstallBtn:hover {
  background: rgba(255,255,255,0.25);
}

/* ===========================================================
   DARK MODE — tema escuro completo
   Ativado APENAS via .dark-mode (botão toggle manual).
   Paleta calibrada para contraste legível — fundo escuro
   neutro, surfaces claramente distintas, texto de alto contraste.
   =========================================================== */
body.sistemaigreja.dark-mode {
  /* ── Estrutura ── */
  --ig-bg:               #111827;   /* gray-900  – fundo da página     */
  --ig-surface:          #1f2937;   /* gray-800  – cards / painéis      */
  --ig-surface-muted:    #374151;   /* gray-700  – hover / zebra        */

  /* ── Bordas e sombras ── */
  --ig-line:             #4b5563;   /* gray-600  – linhas / dividers    */
  --ig-card-border:      1px solid #374151;
  --ig-card-shadow:      0 2px 8px rgba(0,0,0,0.55);
  --ig-ui-border:        1px solid #4b5563;
  --ig-ui-border-muted:  1px solid #374151;
  --ig-shadow:           0 2px 8px rgba(0,0,0,0.55);

  /* ── Texto ── */
  --ig-text:             #f3f4f6;   /* gray-100 – texto principal       */
  --ig-muted:            #9ca3af;   /* gray-400 – texto secundário      */

  /* ── Accent / primário ── */
  --ig-accent:           #38bdf8;   /* sky-400 – petróleo claro no escuro */
  --ig-primary:          #38bdf8;
  --ig-accent-hover:     #0ea5e9;   /* sky-500                            */
  --ig-accent-soft:      rgba(56,189,248,0.15);

  /* ── Semânticos ── */
  --ig-positive:         #34d399;   /* emerald-400 */
  --ig-positive-soft:    rgba(52,211,153,0.13);
  --ig-negative:         #f87171;   /* red-400     */
  --ig-negative-soft:    rgba(248,113,113,0.13);
  --ig-warn:             #fbbf24;   /* amber-400   */
  --ig-warn-soft:        rgba(251,191,36,0.13);

  /* ── Badges / status ── */
  --ig-ui-pending-bg:    rgba(251,191,36,0.12);
  --ig-ui-pending-border:rgba(251,191,36,0.30);
  --ig-ui-pending-text:  #fcd34d;
  --ig-ui-ok-bg:         rgba(52,211,153,0.12);
  --ig-ui-ok-border:     rgba(52,211,153,0.30);
  --ig-ui-ok-text:       #6ee7b7;
  --ig-ui-danger-bg:     rgba(248,113,113,0.12);
  --ig-ui-danger-border: rgba(248,113,113,0.30);
  --ig-ui-danger-text:   #fca5a5;
  --ig-ui-info-bg:       rgba(96,165,250,0.12);
  --ig-ui-info-border:   rgba(96,165,250,0.30);
  --ig-ui-info-text:     #7dd3fc;
  --ig-ui-neutral-bg:    #1f2937;
  --ig-ui-neutral-border:rgba(156,163,175,0.22);
  --ig-ui-neutral-text:  #9ca3af;
  --ig-ui-focus:         0 0 0 2px #111827, 0 0 0 4px rgba(96,165,250,0.40);
  --ig-ui-focus-danger:  0 0 0 2px #111827, 0 0 0 4px rgba(248,113,113,0.30);
}

/* ===========================================================
   DARK MODE — overrides de superfícies e componentes
   =========================================================== */

/* ── Base ── */
body.sistemaigreja.dark-mode {
  background: var(--ig-bg) !important;
  color: var(--ig-text);
}

/* ── Cards / painéis / modais ── */
body.sistemaigreja.dark-mode .panel,
body.sistemaigreja.dark-mode .ig-premiumCard,
body.sistemaigreja.dark-mode .lancModal__box,
body.sistemaigreja.dark-mode .igModal__box,
body.sistemaigreja.dark-mode .igSearch,
body.sistemaigreja.dark-mode .igShortcutsHelp__inner,
body.sistemaigreja.dark-mode .extratoImportBox {
  background: var(--ig-surface) !important;
  border-color: var(--ig-line) !important;
  color: var(--ig-text) !important;
}

/* ── Área principal e painéis de conteúdo ── */
body.sistemaigreja.dark-mode main,
body.sistemaigreja.dark-mode .igMain,
body.sistemaigreja.dark-mode .igContent,
body.sistemaigreja.dark-mode .tabpane {
  background: var(--ig-bg) !important;
}

/* ── Header ── */
body.sistemaigreja.dark-mode .igHeader,
body.sistemaigreja.dark-mode header,
body.sistemaigreja.dark-mode .topBar,
body.sistemaigreja.dark-mode .igTopbar {
  background: #161d2e !important;
  border-bottom-color: var(--ig-line) !important;
}

body.sistemaigreja.dark-mode .igHeader h1,
body.sistemaigreja.dark-mode .igHeader h2,
body.sistemaigreja.dark-mode .igHeader small,
body.sistemaigreja.dark-mode .igHeader span {
  color: var(--ig-text) !important;
}

/* ── KPI / resumo strip ── */
body.sistemaigreja.dark-mode .igKpiStrip,
body.sistemaigreja.dark-mode .igKpiStrip article,
body.sistemaigreja.dark-mode .igKpiStrip__item,
body.sistemaigreja.dark-mode #dashExecStrip,
body.sistemaigreja.dark-mode #dashExecStrip article {
  background: var(--ig-surface) !important;
  border-color: var(--ig-line) !important;
  color: var(--ig-text) !important;
}

/* ── Tabelas ── */
body.sistemaigreja.dark-mode .igTable,
body.sistemaigreja.dark-mode table {
  border-color: var(--ig-line);
  color: var(--ig-text);
}

body.sistemaigreja.dark-mode .igTable thead tr,
body.sistemaigreja.dark-mode .igTable th,
body.sistemaigreja.dark-mode thead th {
  background: var(--ig-surface-muted) !important;
  color: var(--ig-muted) !important;
  border-color: var(--ig-line) !important;
}

body.sistemaigreja.dark-mode .igTable td,
body.sistemaigreja.dark-mode tbody td {
  border-color: var(--ig-line);
  color: var(--ig-text);
  background: transparent;
}

body.sistemaigreja.dark-mode .igTable tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.025);
}

body.sistemaigreja.dark-mode .igTable tbody tr:hover td {
  background: var(--ig-accent-soft) !important;
}

/* ── Inputs / selects ── */
body.sistemaigreja.dark-mode input,
body.sistemaigreja.dark-mode select,
body.sistemaigreja.dark-mode textarea {
  background: #0d1117 !important;
  border-color: var(--ig-line) !important;
  color: var(--ig-text) !important;
}

body.sistemaigreja.dark-mode input:focus,
body.sistemaigreja.dark-mode select:focus,
body.sistemaigreja.dark-mode textarea:focus {
  border-color: var(--ig-accent) !important;
  box-shadow: var(--ig-ui-focus) !important;
}

body.sistemaigreja.dark-mode input::placeholder,
body.sistemaigreja.dark-mode textarea::placeholder {
  color: var(--ig-muted) !important;
  opacity: 1;
}

/* ── Botões ── */
body.sistemaigreja.dark-mode .igBtn {
  border-color: var(--ig-line);
  color: var(--ig-text);
  background: var(--ig-surface);
}

body.sistemaigreja.dark-mode .igBtn:hover {
  background: var(--ig-surface-muted);
  border-color: var(--ig-accent);
  color: var(--ig-accent);
}

body.sistemaigreja.dark-mode .igBtnPrimary,
body.sistemaigreja.dark-mode .igBtn.igBtnPrimary {
  background: var(--ig-accent) !important;
  color: #fff !important;
  border-color: var(--ig-accent) !important;
}

/* ── Sidebar ── */
body.sistemaigreja.dark-mode .sidebar,
body.sistemaigreja.dark-mode .sideNav {
  background: #0d1117 !important;
  border-right: 1px solid var(--ig-line) !important;
}

body.sistemaigreja.dark-mode .sideItem {
  color: var(--ig-muted);
}

body.sistemaigreja.dark-mode .sideItem:hover,
body.sistemaigreja.dark-mode .sideItem.active {
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
  border-left-color: var(--ig-accent) !important;
}

body.sistemaigreja.dark-mode .sideItemTitle,
body.sistemaigreja.dark-mode .sideNavZone__lbl {
  color: var(--ig-muted) !important;
  opacity: 0.7;
}

/* ── Filtros ── */
body.sistemaigreja.dark-mode .igFiltrosAvancados {
  background: var(--ig-surface) !important;
  border-color: var(--ig-line) !important;
}

/* ── Links ── */
body.sistemaigreja.dark-mode a {
  color: var(--ig-accent);
}

body.sistemaigreja.dark-mode a:hover {
  color: var(--ig-accent-hover);
}

/* ── Tipografia de títulos ── */
body.sistemaigreja.dark-mode h1,
body.sistemaigreja.dark-mode h2,
body.sistemaigreja.dark-mode h3,
body.sistemaigreja.dark-mode h4 {
  color: var(--ig-text);
}

body.sistemaigreja.dark-mode label,
body.sistemaigreja.dark-mode .igLabel {
  color: var(--ig-muted);
}

/* ── Separadores ── */
body.sistemaigreja.dark-mode hr {
  border-color: var(--ig-line);
}

body.sistemaigreja.dark-mode .igSearch__input {
  color: var(--ig-text);
  background: transparent;
}

body.sistemaigreja.dark-mode .igSearch__bar,
body.sistemaigreja.dark-mode .igSearch__footer {
  border-color: var(--ig-line);
}

body.sistemaigreja.dark-mode .igSearch__item--active,
body.sistemaigreja.dark-mode .igSearch__item:hover {
  background: var(--ig-accent-soft);
}

body.sistemaigreja.dark-mode .igSearch__esc,
body.sistemaigreja.dark-mode .igShortcutsHelp__tbl kbd,
body.sistemaigreja.dark-mode .igSearch__footer kbd {
  background: var(--ig-surface-muted);
  border-color: var(--ig-line);
  color: var(--ig-muted);
}

/* ===========================================================
   DRE PROFISSIONAL — sub-abas + drill-down drawer
   =========================================================== */

/* ── Sub-abas DRE / Fluxo ── */
.igDreSubnav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ig-line);
  margin: 0 0 24px 0;
}
.igDreSubnav__btn {
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ig-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
.igDreSubnav__btn:hover { color: var(--ig-text); }
.igDreSubnav__btn.active {
  color: var(--ig-accent);
  border-bottom-color: var(--ig-accent);
}

/* ── DRE table — visual profissional ── */
.relDreTable { border-collapse: collapse; width: 100%; }
.relDreTable thead th {
  background: var(--ig-surface-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ig-muted);
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 2px solid var(--ig-line);
  white-space: nowrap;
}
.relDreTable thead th.num { text-align: right; }
.relDreTable tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--ig-line);
  font-size: 0.875rem;
  color: var(--ig-text);
  vertical-align: middle;
}
.relDreTable tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Linha de grupo (header de seção) */
.relDreTable .dre-group-hdr td {
  background: var(--ig-surface-muted) !important;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ig-muted);
  padding: 5px 12px;
  border-top: 1px solid var(--ig-line);
}

/* Linhas clicáveis (drill-down) */
.relDreTable tr[data-drillable] { cursor: pointer; }
.relDreTable tr[data-drillable]:hover td {
  background: rgba(96,165,250,0.07) !important;
}
.relDreTable tr[data-drillable]:hover .dre-drill-hint {
  opacity: 1;
}
.dre-drill-hint {
  opacity: 0;
  font-size: 0.7rem;
  color: var(--ig-accent);
  font-weight: 600;
  margin-left: 5px;
  transition: opacity 0.12s;
}

/* Resultado (linha de saldo) */
.relDreTable .dre-result-row td {
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--ig-accent-soft) !important;
  border-top: 2px solid var(--ig-accent);
}

/* Cores semânticas nas células */
.dre-val-neg { color: var(--ig-negative); font-weight: 600; }
.dre-val-pos { color: var(--ig-positive); font-weight: 600; }
.dre-val-neutral { color: var(--ig-muted); }
.dre-pct { color: var(--ig-muted); font-size: 0.8rem; }

/* Subtotal de grupo */
.relDreTable .dre-subtotal td {
  font-weight: 600;
  background: rgba(0,0,0,0.025) !important;
  font-size: 0.82rem;
  color: var(--ig-muted);
  padding: 6px 12px;
}

/* ── Fluxo table ── */
.relFluxoTable thead th { background: var(--ig-surface-muted); }
.relFluxoTable .fluxo-row-atual td {
  font-weight: 700;
  background: var(--ig-accent-soft) !important;
  border-left: 3px solid var(--ig-accent);
}
.relFluxoTable .fluxo-row-pos td.num-saldo { color: var(--ig-positive); font-weight: 700; }
.relFluxoTable .fluxo-row-neg td.num-saldo { color: var(--ig-negative); font-weight: 700; }

/* ── KPI strip do DRE ── */
.igDreKpiStrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .igDreKpiStrip { grid-template-columns: repeat(2, 1fr); } }
.igDreKpiCard {
  background: var(--ig-surface);
  border: var(--ig-card-border);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--ig-card-shadow);
}
.igDreKpiCard__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ig-muted);
  margin-bottom: 6px;
}
.igDreKpiCard__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ig-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.igDreKpiCard--ent .igDreKpiCard__value { color: var(--ig-positive); }
.igDreKpiCard--sai .igDreKpiCard__value { color: var(--ig-negative); }
.igDreKpiCard--res .igDreKpiCard__value { color: var(--ig-accent); }
.igDreKpiCard__hint {
  font-size: 0.72rem;
  color: var(--ig-muted);
  margin-top: 4px;
}

/* ── Drill-down Drawer ── */
.igDreDrillDrawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: var(--ig-surface);
  border-top: 3px solid var(--ig-accent);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  z-index: 850;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.igDreDrillDrawer.visible { transform: translateY(0); }

.igDreDrillDrawer__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ig-line);
  flex-shrink: 0;
  background: var(--ig-surface);
}
.igDreDrillDrawer__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ig-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.igDreDrillDrawer__titlewrap { flex: 1; min-width: 0; }
.igDreDrillDrawer__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ig-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.igDreDrillDrawer__meta {
  font-size: 0.75rem;
  color: var(--ig-muted);
  margin-top: 1px;
}
.igDreDrillDrawer__stats {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.igDreDrillDrawer__stat {
  text-align: right;
}
.igDreDrillDrawer__stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ig-muted);
}
.igDreDrillDrawer__stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ig-text);
}
.igDreDrillDrawer__stat-val--neg { color: var(--ig-negative); }
.igDreDrillDrawer__stat-val--pos { color: var(--ig-positive); }
.igDreDrillDrawer__close {
  background: none;
  border: 1px solid var(--ig-line);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ig-muted);
  padding: 5px 9px;
  border-radius: 6px;
  transition: all 0.1s;
  flex-shrink: 0;
}
.igDreDrillDrawer__close:hover {
  background: var(--ig-surface-muted);
  color: var(--ig-text);
}

.igDreDrillDrawer__body {
  flex: 1;
  overflow-y: auto;
}
.igDreDrillDrawer__loading,
.igDreDrillDrawer__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ig-muted);
  font-size: 0.9rem;
  gap: 8px;
}

/* Tabela interna do drawer */
.igDreDrillTbl {
  width: 100%;
  border-collapse: collapse;
}
.igDreDrillTbl thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ig-surface-muted);
  padding: 7px 12px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ig-muted);
  border-bottom: 1px solid var(--ig-line);
}
.igDreDrillTbl thead th.num { text-align: right; }
.igDreDrillTbl tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--ig-line);
  font-size: 0.83rem;
  color: var(--ig-text);
  vertical-align: middle;
}
.igDreDrillTbl tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.igDreDrillTbl tbody tr:hover td { background: var(--ig-accent-soft); }

.drill-val-ent { color: var(--ig-positive); font-weight: 700; }
.drill-val-sai { color: var(--ig-negative); font-weight: 700; }

.drill-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.drill-status--ok   { background: var(--ig-ui-ok-bg); color: var(--ig-ui-ok-text); border: 1px solid var(--ig-ui-ok-border); }
.drill-status--pend { background: var(--ig-ui-pending-bg); color: var(--ig-ui-pending-text); border: 1px solid var(--ig-ui-pending-border); }

/* Overlay semitransparente atrás do drawer */
.igDreDrillOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 849;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.igDreDrillOverlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Toggle button */
.igDarkToggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  margin-right: 4px;
  line-height: 1;
}

.igDarkToggle:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Filtros salvos UI */
.igFiltrosSalvos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}

.igFiltroSalvoChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ig-accent-soft);
  border: 1px solid var(--ig-accent-soft);
  border-radius: 999px;
  padding: 3px 10px 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ig-accent);
  cursor: pointer;
  transition: background 0.1s;
}

.igFiltroSalvoChip:hover {
  background: var(--ig-accent);
  color: #fff;
}

.igFiltroSalvoChip__del {
  font-size: 0.65rem;
  opacity: 0.7;
  cursor: pointer;
  margin-left: 2px;
}

.igSalvarFiltroBtn {
  font-size: 0.75rem;
  padding: 3px 10px;
  height: 26px;
}

/* QR Code Pix modal */
.igPixModal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.igPixModal[hidden] { display: none !important; }

.igPixModal__box {
  background: var(--ig-surface);
  border-radius: 16px;
  padding: 28px 32px;
  width: min(380px, 92vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.igPixModal__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ig-text);
  margin-bottom: 4px;
}

.igPixModal__hint {
  font-size: 0.8125rem;
  color: var(--ig-muted);
  margin-bottom: 20px;
}

.igPixModal__qr {
  margin: 0 auto 16px;
  display: block;
}

.igPixModal__chave {
  font-size: 0.8125rem;
  color: var(--ig-muted);
  background: var(--ig-surface-muted);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 16px;
  word-break: break-all;
}

/* Cheques — badge de status */
.chequeBadge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; }
.chequeBadge--pendente  { background: var(--ig-warn-soft);     color: var(--ig-warn); }
.chequeBadge--compensado{ background: var(--ig-positive-soft); color: var(--ig-positive); }
.chequeBadge--vencendo  { background: var(--ig-negative-soft); color: var(--ig-negative); }

/* Orçamento — progress bar */
.orcProgress { height: 8px; border-radius: 999px; background: var(--ig-line); overflow: hidden; }
.orcProgress__fill { height: 100%; border-radius: 999px; background: var(--ig-accent); transition: width .4s; }
.orcProgress__fill--over { background: var(--ig-negative); }
.orcProgress__fill--warn { background: var(--ig-warn); }

/* Projeção de fluxo */

/* Dashboard financeiro - UX SaaS compacto */
body.sistemaigreja .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin.active {
  gap: 6px !important;
}

body.sistemaigreja .igDashFin__head {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.sistemaigreja .igDashFin__head .ig-dashHeroHead__title {
  margin: 0 !important;
  font-size: 1.22rem !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

body.sistemaigreja .igDashFin__head .ig-dashHeroHead__lead {
  margin-top: 2px !important;
  font-size: 0.78rem !important;
}

body.sistemaigreja .igDashFin__headActions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body.sistemaigreja .igDashFin__period {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.sistemaigreja .igDashFin__monthNav {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--ig-line-strong);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
}

body.sistemaigreja .igDashFin__monthBtn,
body.sistemaigreja .igDashFin__monthPicker > summary {
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ig-text);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 750;
  cursor: pointer;
}

body.sistemaigreja .igDashFin__monthBtn {
  width: 32px;
  padding: 0;
  color: var(--ig-muted);
}

body.sistemaigreja .igDashFin__monthBtn:hover,
body.sistemaigreja .igDashFin__monthPicker > summary:hover {
  background: var(--ig-surface-muted);
}

body.sistemaigreja .igDashFin__monthPicker {
  position: relative;
}

body.sistemaigreja .igDashFin__monthPicker[open] {
  z-index: calc(var(--ig-z-dropdown) + 20);
}

body.sistemaigreja .igDashFin__monthPicker > summary {
  display: inline-flex;
  align-items: center;
  min-width: 132px;
  justify-content: center;
  padding: 0 10px;
  list-style: none;
}

body.sistemaigreja .igDashFin__monthPicker > summary::-webkit-details-marker,
body.sistemaigreja .igDashFin__monthPicker > summary::marker {
  display: none;
}

body.sistemaigreja .igDashFin__monthPickerPanel {
  position: absolute;
  top: calc(100% + 7px);
  right: 50%;
  z-index: calc(var(--ig-z-dropdown) + 30);
  width: 238px;
  padding: 10px;
  border: 1px solid var(--ig-line);
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    0 22px 48px rgba(15, 23, 42, 0.16);
  transform: translateX(50%);
}

/* Seletor de mês — painel acima de tabelas, cards e áreas com scroll */
body.sistemaigreja .igDashFin__head--toolbar,
body.sistemaigreja .igDashFin__headActions,
body.sistemaigreja .igDashFin__monthNav,
body.sistemaigreja .igDashFin__period {
  overflow: visible !important;
}

body.sistemaigreja .igDashFin__head--toolbar {
  position: relative;
  z-index: 60;
  overflow: visible !important;
}

body.sistemaigreja .igDashFin__headActions {
  position: relative;
  z-index: 61;
  overflow: visible !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__charts {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  z-index: 1;
}

body.sistemaigreja .igDashFin__yearRow {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

body.sistemaigreja .igDashFin__yearRow button {
  height: 30px;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ig-muted);
  cursor: pointer;
}

body.sistemaigreja .igDashFin__yearRow strong {
  text-align: center;
  font-size: 0.9rem;
}

body.sistemaigreja .igDashFin__monthGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-height: 176px;
  overflow-y: auto;
}

body.sistemaigreja .igDashFin__monthOption {
  height: 34px;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ig-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

body.sistemaigreja .igDashFin__monthOption:hover {
  background: var(--ig-surface-muted);
}

body.sistemaigreja .igDashFin__monthOption.is-active {
  border-color: var(--ig-accent);
  background: var(--ig-accent-soft);
  color: var(--ig-accent);
}

body.sistemaigreja .igDashFin__periodSelect,
body.sistemaigreja .igDashFin__customPeriod input {
  min-height: 34px;
  border: 1px solid var(--ig-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ig-text);
  font-size: 0.8125rem;
  font-weight: 650;
  padding: 0 10px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
}

body.sistemaigreja .igDashFin__customPeriod {
  display: flex;
  gap: 6px;
}

body.sistemaigreja .igDashFin__customPeriod[hidden] {
  display: none !important;
}

body.sistemaigreja .igDashFin__moveMenu {
  position: relative;
}

body.sistemaigreja .igDashFin__moveMenu > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

body.sistemaigreja .igDashFin__moveMenu > summary::-webkit-details-marker,
body.sistemaigreja .igDashFin__moveMenu > summary::marker {
  display: none;
}

body.sistemaigreja .igDashFin__moveMenuList {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--ig-z-dropdown);
  min-width: 176px;
  padding: 5px;
  border: 1px solid var(--ig-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body.sistemaigreja .igDashFin__moveMenuList button {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ig-text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

body.sistemaigreja .igDashFin__moveMenuList button:hover {
  background: var(--ig-surface-muted);
}

body.sistemaigreja .igDashFin .ig-premiumKpiRow {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.sistemaigreja .igDashFin .ig-premiumKpi {
  min-height: 74px !important;
  padding: 10px 13px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

body.sistemaigreja .igDashFin .ig-premiumKpi__name {
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

body.sistemaigreja .igDashFin .ig-premiumKpi__value {
  margin-top: 5px !important;
  font-size: clamp(0.92rem, 1.05vw, 1.22rem) !important;
  line-height: 1.08 !important;
}

body.sistemaigreja .igDashFin .ig-premiumKpi__note {
  margin-top: 4px !important;
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
}

body.sistemaigreja .igDashFin__main,
body.sistemaigreja .igDashFin .igDash2026__main--single {
  margin: 0 !important;
}

body.sistemaigreja .igDashFin .igDecBanner {
  margin: 0 !important;
  border: 1px solid var(--ig-line) !important;
  border-left: 3px solid var(--ig-accent) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

body.sistemaigreja .igDashFin .igDecBanner__body {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.85fr) minmax(180px, 0.7fr) minmax(260px, 1.35fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 12px !important;
}

body.sistemaigreja .igDashFin .igDecBanner__status {
  font-size: 0.66rem !important;
  letter-spacing: 0 !important;
}

body.sistemaigreja .igDashFin .igDecBanner__verdict {
  font-size: 0.86rem !important;
}

body.sistemaigreja .igDashFin .igDecBanner__value {
  font-size: 1.12rem !important;
  letter-spacing: 0 !important;
}

body.sistemaigreja .igDashFin .igDecBanner__hint {
  margin: 0 !important;
  align-self: center !important;
  font-size: 0.74rem !important;
  line-height: 1.25 !important;
}

body.sistemaigreja .igDashFin__ops {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--ig-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ig-muted);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

body.sistemaigreja .igDashFin__ops span {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

body.sistemaigreja .igDashFin__ops strong {
  color: var(--ig-text);
  font-size: 0.98rem;
  font-weight: 800;
}

body.sistemaigreja .igDashFin__ops small {
  font-size: 0.74rem;
}

body.sistemaigreja .igDashFin__charts {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja .igDashFin__charts .igDash2026__analysisGrid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
  gap: 12px !important;
  padding: 0 !important;
  align-items: stretch !important;
}

body.sistemaigreja .igDashFin__charts .ig-premiumCard--chart {
  min-height: 282px !important;
  padding: 12px !important;
  border-radius: 10px !important;
}

body.sistemaigreja .igDashFin__charts .ig-premiumCard__head {
  min-height: 30px !important;
  margin-bottom: 6px !important;
}

body.sistemaigreja .igDashFin__charts .ig-premiumCard__title {
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
}

body.sistemaigreja .igDashFin__charts .ig-chartCanvasWrap,
body.sistemaigreja .igDashFin__charts .ig-premiumCard--chartPrimary .ig-chartCanvasWrap,
body.sistemaigreja .igDashFin__charts .ig-chartCanvasWrap--compact {
  height: 244px !important;
  min-height: 224px !important;
  height: 224px !important;
}

body.sistemaigreja .igDashFin__charts .ig-premiumCard--chartPrimary .ig-chartCanvasWrap {
  height: 224px !important;
  min-height: 224px !important;
}

body.sistemaigreja .igDashFin__charts .ig-premiumCard--chartPrimary canvas {
  max-height: 224px !important;
}

body.sistemaigreja .igDashFin__charts canvas {
  max-height: 224px !important;
}

@media (min-width: 1500px) {
  body.sistemaigreja .contentInner {
    max-width: 1380px !important;
  }
}

@media (max-width: 1180px) {
  body.sistemaigreja .igDashFin__head {
    grid-template-columns: 1fr !important;
  }
  body.sistemaigreja .igDashFin__headActions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
  body.sistemaigreja .igDashFin__charts .igDash2026__analysisGrid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja .igDashFin .ig-premiumKpiRow {
    grid-template-columns: 1fr !important;
  }
  body.sistemaigreja .igDashFin__period,
  body.sistemaigreja .igDashFin__customPeriod {
    width: 100%;
  }
  body.sistemaigreja .igDashFin__period {
    flex-wrap: wrap;
  }
  body.sistemaigreja .igDashFin__periodSelect,
  body.sistemaigreja .igDashFin__customPeriod input {
    flex: 1 1 150px;
  }
  body.sistemaigreja .igDashFin .igDecBanner__body {
    grid-template-columns: 1fr !important;
  }
  body.sistemaigreja .igDashFin__ops {
    flex-wrap: wrap;
  }
}
.igProjecaoStrip {
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: 12px;
  padding: 14px 18px 10px;
  margin-bottom: 14px;
}

/* Sugestão de categoria (autocomplete) */
.igCatSugestao {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ig-muted);
}

.igCatSugestao.visible { display: flex; }

.igCatSugestao__pill {
  background: var(--ig-accent-soft);
  color: var(--ig-accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.75rem;
}

.igCatSugestao__pill:hover { background: var(--ig-accent); color: #fff; }

/* ===========================================================
   VOZ — Lançamento por voz
   =========================================================== */

/* Botão flutuante do microfone — só mobile/tablet */
body.sistemaigreja .igVozBtn {
  position: fixed;
  bottom: 128px;
  right: 18px;
  z-index: 820;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #7c3aed;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  color: #fff;
}

@media (max-width: 768px) {
  body.sistemaigreja .igVozBtn {
    display: flex;
  }
}
.igVozBtn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }
.igVozBtn.escutando {
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220,38,38,0.4);
  animation: igVozPulse 1.2s infinite;
}
@keyframes igVozPulse {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* Overlay de escuta */
.igVozOverlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(4px);
}
.igVozOverlay[hidden] { display: none !important; }

.igVozOverlay__mic {
  font-size: 3rem;
  animation: igVozPulse 1.2s infinite;
  background: #dc2626;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(220,38,38,.5);
}

.igVozOverlay__hint {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

.igVozOverlay__interim {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  min-height: 1.5em;
  text-align: center;
  max-width: 380px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}

.igVozOverlay__cancelBtn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.12s;
}
.igVozOverlay__cancelBtn:hover { background: rgba(255,255,255,0.2); }

/* Card de confirmação do resultado */
.igVozCard {
  position: fixed;
  bottom: 90px;
  right: 18px;
  z-index: 9400;
  width: min(360px, calc(100vw - 36px));
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  padding: 18px;
  animation: igVozSlideIn 0.2s ease;
}
.igVozCard[hidden] { display: none !important; }
@keyframes igVozSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.igVozCard__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ig-muted);
  margin-bottom: 12px;
}

.igVozCard__frase {
  font-size: 0.82rem;
  color: var(--ig-muted);
  font-style: italic;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: var(--ig-surface-muted);
  border-radius: 6px;
  word-break: break-word;
}

.igVozCard__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.igVozCard__field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ig-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.igVozCard__field input,
.igVozCard__field select {
  width: 100%;
  font-size: 0.85rem;
  padding: 6px 8px;
  border: 1px solid var(--ig-line);
  border-radius: 6px;
  background: var(--ig-bg);
  color: var(--ig-text);
}

.igVozCard__field--full { grid-column: 1 / -1; }

.igVozCard__confianca {
  font-size: 0.7rem;
  color: var(--ig-muted);
  margin-bottom: 10px;
}

.igVozCard__confianca span {
  font-weight: 700;
  color: var(--ig-accent);
}

.igVozCard__actions {
  display: flex;
  gap: 8px;
}

.igVozCard__aplicar {
  flex: 1;
  padding: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.igVozCard__aplicar:hover { background: #6d28d9; }

.igVozCard__cancelar {
  padding: 8px 12px;
  font-size: 0.875rem;
  background: none;
  color: var(--ig-muted);
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  cursor: pointer;
}
.igVozCard__cancelar:hover { background: var(--ig-surface-muted); }

/* Badge de tipo no card */
.igVozTipoBadge {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 10px;
}
.igVozTipoBadge button {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ig-line);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  color: var(--ig-muted);
  transition: all 0.1s;
}
.igVozTipoBadge button.active-entrada {
  background: var(--ig-positive-soft);
  border-color: var(--ig-positive);
  color: var(--ig-positive);
}
.igVozTipoBadge button.active-saida {
  background: var(--ig-negative-soft);
  border-color: var(--ig-negative);
  color: var(--ig-negative);
}

/* Dashboard V1 congelado - ordem e densidade finais */
body.sistemaigreja #tab-dashboard.igDashFin.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-dashHeroHead__text {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-dashHeroHead__title {
  margin: 0 !important;
  max-width: 260px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 1.08rem !important;
  line-height: 1.1 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-dashHeroHead__lead {
  display: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headActions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar {
  order: 1 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__charts {
  order: 2 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpiRow {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi {
  min-height: 70px !important;
  padding: 9px 12px !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__value {
  margin-top: 4px !important;
  font-size: clamp(1.04rem, 1.25vw, 1.34rem) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__note {
  margin-top: 3px !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__note--status {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  font-size: 0.66rem !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  border: 1px solid rgba(245, 158, 11, 0.26) !important;
  color: #92400e !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__status[hidden] {
  display: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__status::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__status--neg {
  border-color: rgba(220, 38, 38, 0.24) !important;
  color: #b91c1c !important;
  background: rgba(220, 38, 38, 0.08) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__main--single {
  order: 3 !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__main--single[hidden] {
  display: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner {
  overflow: visible !important;
  min-height: 0 !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__body {
  min-height: 44px !important;
  overflow: visible !important;
  grid-template-columns: minmax(160px, 0.8fr) minmax(150px, 0.55fr) minmax(220px, 1.25fr) !important;
  gap: 8px !important;
  padding: 7px 11px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__left,
body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__center {
  min-width: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__status,
body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__verdict,
body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__meta,
body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__value,
body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__hint {
  overflow: visible !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__hint {
  display: block !important;
  max-width: none !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__ops {
  order: 3 !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  overflow: visible !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__ops[hidden] {
  display: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__charts {
  order: 3 !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__analysisGrid {
  gap: 10px !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
  align-items: stretch !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseSplit {
  display: grid !important;
  grid-template-columns: minmax(128px, 0.82fr) minmax(180px, 1.18fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  height: 224px !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseSplit .ig-chartCanvasWrap {
  height: 224px !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseSummary {
  min-width: 0 !important;
  overflow: hidden !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseTable {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: 0.72rem !important;
  line-height: 1.18 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseTable td {
  padding: 5px 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseRow {
  cursor: pointer !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCat {
  width: 48% !important;
  color: var(--ig-text) !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCat button {
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 750 !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseRow:hover .igDashFin__expenseCat button,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCat button:focus-visible {
  color: #2563eb !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCat button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.24) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseVal {
  width: 34% !important;
  color: var(--ig-text) !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expensePct {
  width: 18% !important;
  color: var(--ig-muted) !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseTotal td {
  padding-top: 7px !important;
  border-bottom: 0 !important;
  color: var(--ig-text) !important;
  font-weight: 800 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseEmpty {
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px dashed var(--ig-line) !important;
  border-radius: 10px !important;
  color: var(--ig-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldo {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  height: 224px !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoList {
  display: grid !important;
  gap: 7px !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding-right: 2px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoItem,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 8px 9px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoItem span,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoItem strong,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal strong {
  white-space: nowrap !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

body.sistemaigreja .dashDespCatModal__box {
  max-width: 760px !important;
}

body.sistemaigreja .dashDespCatModal__summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

body.sistemaigreja .dashDespCatModal__summary span {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 10px !important;
  background: rgba(248, 250, 252, 0.78) !important;
}

body.sistemaigreja .dashDespCatModal__summary b {
  font-size: 0.68rem !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body.sistemaigreja .dashDespCatModal__summary strong {
  font-size: 0.95rem !important;
  color: #0f172a !important;
}

body.sistemaigreja .dashDespCatModal__list {
  display: grid !important;
  gap: 8px !important;
  max-height: min(52vh, 420px) !important;
  overflow: auto !important;
  padding-right: 3px !important;
}

body.sistemaigreja .dashDespCatModal__item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

body.sistemaigreja .dashDespCatModal__item div {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

body.sistemaigreja .dashDespCatModal__item time,
body.sistemaigreja .dashDespCatModal__item small {
  font-size: 0.72rem !important;
  color: #64748b !important;
}

body.sistemaigreja .dashDespCatModal__item strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.88rem !important;
  color: #0f172a !important;
}

body.sistemaigreja .dashDespCatModal__item > span {
  white-space: nowrap !important;
  font-weight: 850 !important;
  color: #dc2626 !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseSplit {
    grid-template-columns: minmax(130px, 0.72fr) minmax(220px, 1.28fr) !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseSplit {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseSplit .ig-chartCanvasWrap {
    height: 180px !important;
  }
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headActions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__body {
    grid-template-columns: minmax(160px, 0.85fr) minmax(150px, 0.65fr) minmax(240px, 1.2fr) !important;
  }
}

@media (max-width: 820px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDecBanner__body {
    grid-template-columns: 1fr !important;
  }
}

/* Design system de cards - base reutilizavel */
body.sistemaigreja {
  --ig-card-ds-bg: #ffffff;
  --ig-card-ds-border: rgba(15, 23, 42, 0.08);
  --ig-card-ds-border-soft: rgba(15, 23, 42, 0.06);
  --ig-card-ds-shadow: var(--ig-card-elev-shadow);
  --ig-card-ds-shadow-hover: var(--ig-card-elev-shadow-hover);
  --ig-card-ds-radius: 12px;
  --ig-card-ds-pad: 12px;
}

body.sistemaigreja .igCardBase,
body.sistemaigreja .card-base {
  background: var(--ig-card-ds-bg) !important;
  border: 1px solid var(--ig-card-ds-border) !important;
  border-radius: var(--ig-card-ds-radius) !important;
  box-shadow: var(--ig-card-ds-shadow) !important;
}

body.sistemaigreja .igCardKpi,
body.sistemaigreja .card-kpi {
  position: relative !important;
  padding: 10px 12px !important;
  border-color: var(--ig-card-ds-border-soft) !important;
}

body.sistemaigreja .igCardKpi::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f6f8fb;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.9;
}

body.sistemaigreja .igCardKpi--saldo::after { content: "$"; }
body.sistemaigreja .igCardKpi--receitas::after {
  content: "+";
  background: #f0fdf4;
  color: #15803d;
}
body.sistemaigreja .igCardKpi--despesas::after {
  content: "-";
  background: #fff1f2;
  color: #be123c;
}
body.sistemaigreja .igCardKpi--disponivel::after {
  content: "\2713";
  background: var(--ig-accent-soft);
  color: var(--ig-accent);
}
body.sistemaigreja .igCardKpi--resultado::after {
  content: "=";
  background: #f5f3ff;
  color: #7c3aed;
}

body.sistemaigreja .igCardKpi .ig-premiumKpi__name,
body.sistemaigreja .igCardKpi .ig-premiumKpi__note {
  max-width: calc(100% - 30px);
}

body.sistemaigreja .igCardAlert,
body.sistemaigreja .card-alerta {
  border-color: rgba(3, 105, 161, 0.12) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  border-left: 1px solid rgba(3, 105, 161, 0.12) !important;
}

body.sistemaigreja .igCardAlert .igDecBanner__body {
  position: relative !important;
  padding-left: 42px !important;
}

body.sistemaigreja .igCardAlert .igDecBanner__body::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--ig-accent);
  font-size: 0.78rem;
  font-weight: 850;
  transform: translateY(-50%);
}

body.sistemaigreja .igCardAlert .igDecBanner__status,
body.sistemaigreja .igCardAlert .igDecBanner__meta {
  color: #64748b !important;
  font-weight: 750 !important;
}

body.sistemaigreja .igCardAlert .igDecBanner__value {
  color: #0f172a !important;
}

body.sistemaigreja .igCardOps,
body.sistemaigreja .card-operacional {
  border-color: var(--ig-card-ds-border-soft) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025) !important;
}

body.sistemaigreja .igCardOps::before {
  content: "\2022";
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
}

body.sistemaigreja .igCardChart,
body.sistemaigreja .card-grafico {
  border-color: var(--ig-card-ds-border-soft) !important;
  box-shadow: var(--ig-card-ds-shadow) !important;
  padding: 12px !important;
}

body.sistemaigreja .igCardChart .ig-premiumCard__head {
  border-bottom: 0 !important;
}

body.sistemaigreja .igCardChart .ig-premiumEyebrow {
  color: #64748b !important;
  letter-spacing: 0 !important;
}

body.sistemaigreja .igCardChart .ig-premiumCard__title {
  color: #0f172a !important;
  font-weight: 760 !important;
}

@media (hover: hover) {
  body.sistemaigreja .igCardBase:hover {
    box-shadow: var(--ig-card-ds-shadow-hover) !important;
  }
}

/* Dashboard — acabamento visual premium (somente estética) */
body.sistemaigreja #tab-dashboard.igDashFin {
  --ig-dash-premium-radius: 14px;
  --ig-dash-premium-border: rgba(15, 23, 42, 0.045);
  --ig-dash-premium-shadow: var(--ig-card-elev-shadow);
}

body.sistemaigreja #tab-dashboard.igDashFin.active {
  gap: 6px !important;
}

/* KPIs — 5 colunas na mesma linha */
body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpiRow {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi {
  min-height: 68px !important;
  padding: 8px 12px 7px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 1px !important;
  border: 1px solid var(--ig-dash-premium-border) !important;
  border-radius: var(--ig-dash-premium-radius) !important;
  box-shadow: var(--ig-dash-premium-shadow) !important;
  background: #ffffff !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi:hover,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi:hover {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: var(--ig-card-elev-shadow-hover) !important;
  transform: translateY(-1px);
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__name {
  margin: 0 !important;
  font-size: 0.54rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.07em !important;
  color: #a8b4c4 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__value {
  margin: 2px 0 0 !important;
  font-size: clamp(0.92rem, 1.05vw, 1.22rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.12 !important;
  color: #0f172a !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__value--pos {
  color: #15803d !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__value--neg {
  color: #dc2626 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__note {
  margin: 1px 0 0 !important;
  min-height: 0 !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #b8c2d0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi::after {
  top: 8px !important;
  right: 9px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  opacity: 0.42 !important;
  background: rgba(248, 250, 252, 0.9) !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi--receitas::after,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi--despesas::after,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi--resultado::after,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi--disponivel::after {
  background: rgba(248, 250, 252, 0.9) !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi .ig-premiumKpi__name,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi .ig-premiumKpi__note {
  max-width: calc(100% - 26px) !important;
}

/* Cards de gráficos */
body.sistemaigreja #tab-dashboard.igDashFin .igCardBase,
body.sistemaigreja #tab-dashboard.igDashFin .igCardChart,
body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumCard--chart {
  border: 1px solid var(--ig-dash-premium-border) !important;
  border-radius: var(--ig-dash-premium-radius) !important;
  box-shadow: var(--ig-card-elev-shadow) !important;
  background: #ffffff !important;
  padding: 13px 15px !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardBase:hover,
body.sistemaigreja #tab-dashboard.igDashFin .igCardChart:hover {
  box-shadow: var(--ig-card-elev-shadow-hover) !important;
  transform: translateY(-1px);
}

body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__analysisGrid {
  gap: 12px !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
  align-items: stretch !important;
}

/* Dashboard — despesas coluna alta | receitas + saldo empilhados */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__dashLayout {
  gap: 16px !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
  grid-template-rows: minmax(0, 64%) minmax(0, 36%) !important;
  align-items: stretch !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall {
  grid-column: 1 !important;
  grid-row: 1 / -1 !important;
  min-height: 100% !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: stretch !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income {
  display: grid !important;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1.62fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
  height: 220px !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income .ig-chartCanvasWrap {
  height: 220px !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--tall,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--expense.igDashFin__distSplit--tall {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1.66fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--tall .ig-chartCanvasWrap {
  height: auto !important;
  min-height: 240px !important;
  max-height: 320px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall .igDashFin__expenseSummary {
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  align-self: stretch !important;
  display: block !important;
  padding-top: 2px !important;
  padding-right: 4px !important;
  max-height: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income .igDashFin__expenseSummary {
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  align-self: stretch !important;
  display: block !important;
  padding-top: 2px !important;
  padding-right: 2px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard .igDashFin__contasSaldo {
  --ig-dash-conta-cols: minmax(0, 1.35fr) repeat(4, minmax(76px, 1fr)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumCard__head,
body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumCard__head--tight {
  margin-bottom: 6px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumEyebrow--soft {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumCard__title--l3 {
  margin: 3px 0 0 !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  color: #475569 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
}

/* Tabelas de composição */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseTable {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseTable td {
  padding: 6px 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.38) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseRow:last-of-type td {
  border-bottom-color: rgba(226, 232, 240, 0.5) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCat {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCat button {
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseVal {
  font-size: 0.75rem !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
  color: #1e293b !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expensePct {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseTotal td {
  padding-top: 8px !important;
  font-weight: 700 !important;
  border-top: 1px solid rgba(226, 232, 240, 0.55) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseEmpty {
  border-color: rgba(226, 232, 240, 0.55) !important;
  border-radius: 12px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #b0bac9 !important;
}

/* Saldo por conta — coluna direita */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldo {
  --ig-dash-conta-cols: minmax(0, 1.35fr) repeat(4, minmax(76px, 1fr)) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 160px !important;
  max-height: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoHead,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoItem,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal {
  display: grid !important;
  grid-template-columns: var(--ig-dash-conta-cols) !important;
  gap: 4px 6px !important;
  align-items: center !important;
  justify-content: stretch !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoHead {
  padding: 0 4px 6px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoHead span {
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoHead .igDashFin__contaSaldoVal {
  text-align: right !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoList {
  gap: 0 !important;
  padding-right: 1px !important;
  min-height: 0 !important;
  overflow: auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoItem {
  padding: 6px 4px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.38) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldoList .igDashFin__contaSaldoItem:last-child {
  border-bottom: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoNome {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  max-width: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoVal {
  text-align: right !important;
  white-space: nowrap !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
  color: #334155 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoVal--in {
  color: #16a34a !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoVal--out {
  color: #dc2626 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoVal.is-positive {
  color: #16a34a !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoVal.is-negative {
  color: #dc2626 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoVal--final {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal {
  padding: 8px 4px 2px !important;
  border: none !important;
  border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal .igDashFin__contaSaldoNome {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contaSaldoTotal .igDashFin__contaSaldoVal--final {
  font-size: 0.76rem !important;
  font-weight: 850 !important;
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpiRow {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi,
  body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi {
    padding: 7px 8px 6px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__name {
    font-size: 0.5rem !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__value {
    font-size: clamp(0.86rem, 1.4vw, 1.08rem) !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpi__note {
    font-size: 0.58rem !important;
  }
}

@media (max-width: 960px) {
  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-dashboard.igDashFin .ig-premiumKpiRow {
    grid-template-columns: 1fr !important;
  }
}

/* Receitas — destaque verde na tabela */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income .igDashFin__expenseVal--in {
  color: #16a34a !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeRow:hover .igDashFin__expenseCat button,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeRow .igDashFin__expenseCat button:focus-visible {
  color: #16a34a !important;
}

body.sistemaigreja .dashEntCatModal__box {
  max-width: 760px !important;
}

body.sistemaigreja .dashEntCatModal__summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

body.sistemaigreja .dashEntCatModal__summary span {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 10px !important;
  background: rgba(248, 250, 252, 0.78) !important;
}

body.sistemaigreja .dashEntCatModal__summary b {
  font-size: 0.68rem !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body.sistemaigreja .dashEntCatModal__summary strong {
  font-size: 0.95rem !important;
  color: #0f172a !important;
}

body.sistemaigreja .dashEntCatModal__list {
  display: grid !important;
  gap: 8px !important;
  max-height: min(52vh, 420px) !important;
  overflow: auto !important;
  padding-right: 3px !important;
}

body.sistemaigreja .dashEntCatModal__item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

body.sistemaigreja .dashEntCatModal__item div {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

body.sistemaigreja .dashEntCatModal__item time,
body.sistemaigreja .dashEntCatModal__item small {
  font-size: 0.72rem !important;
  color: #64748b !important;
}

body.sistemaigreja .dashEntCatModal__item strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.88rem !important;
  color: #0f172a !important;
}

body.sistemaigreja .dashEntCatModal__item > span {
  white-space: nowrap !important;
  font-weight: 850 !important;
  color: #16a34a !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__analysisGrid,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__dashLayout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    min-height: 0 !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--tall .ig-chartCanvasWrap {
    min-height: 200px !important;
    max-height: 260px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income {
    height: 240px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income .ig-chartCanvasWrap {
    height: 240px !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--tall {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--income .ig-chartCanvasWrap,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--tall .ig-chartCanvasWrap {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}

/* Dashboard — KPIs na faixa do período */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpis {
  min-width: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi {
  min-height: 58px !important;
  padding: 6px 9px 5px !important;
  background: #ffffff !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__name {
  font-size: 0.5rem !important;
  letter-spacing: 0.06em !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__value {
  margin-top: 2px !important;
  font-size: clamp(0.82rem, 1.05vw, 1.02rem) !important;
  line-height: 1.15 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note {
  margin-top: 1px !important;
  font-size: 0.56rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar .igDashFin__headActions {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

/* Dashboard — fundo visível em cada bloco */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__charts {
  background: #e8edf3 !important;
  padding: 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-sizing: border-box !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__dashLayout {
  gap: 16px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall {
  background: #f8fafc !important;
  border: 1px solid rgba(71, 85, 105, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income {
  background: #ecfdf5 !important;
  border: 1px solid rgba(22, 163, 74, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
  background: #ffffff !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
  padding: 12px 14px 11px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard .ig-premiumCard__head,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard .ig-premiumCard__head {
  padding-bottom: 6px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* Receitas — painel sem gráfico: barra empilhada + lista */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomePanel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeVisual {
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeVisual[hidden] {
  display: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeCompose {
  display: grid !important;
  gap: 8px !important;
  padding: 10px 11px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(22, 163, 74, 0.1) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeHead {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeLabel {
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeTotal {
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  color: #15803d !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeBar {
  display: flex !important;
  width: 100% !important;
  height: 12px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(226, 232, 240, 0.9) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeSeg {
  display: block !important;
  height: 100% !important;
  min-width: 2px !important;
  transition: opacity 0.15s ease !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeBar:hover .igDashFin__incomeComposeSeg {
  opacity: 0.82 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeLegend {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 10px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeKey {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeKey i {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeKey em {
  font-style: normal !important;
  font-size: 0.64rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeSummary {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeRow .igDashFin__expenseCat {
  display: grid !important;
  gap: 4px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeRowBar {
  display: block !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(226, 232, 240, 0.85) !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeRowBar > span {
  display: block !important;
  height: 100% !important;
  min-width: 3px !important;
  border-radius: 999px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income {
  min-height: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income .igDashFin__distSplit--income,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distSplit--incomeBars {
  display: none !important;
}

/* Despesas — painel sem gráfico: barra empilhada + lista com scroll */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expensePanel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseVisual {
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseVisual[hidden] {
  display: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCompose {
  display: grid !important;
  gap: 8px !important;
  padding: 10px 11px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(59, 130, 246, 0.12) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeHead {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeLabel {
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeTotal {
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  color: #1e3a8a !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeBar {
  display: flex !important;
  width: 100% !important;
  height: 12px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(226, 232, 240, 0.9) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeSeg {
  display: block !important;
  height: 100% !important;
  min-width: 2px !important;
  transition: opacity 0.15s ease !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeBar:hover .igDashFin__expenseComposeSeg {
  opacity: 0.82 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeLegend {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeKey {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeKey i {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeKey em {
  font-style: normal !important;
  font-size: 0.64rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeMore {
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(241, 245, 249, 0.95) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseListScroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseRow .igDashFin__expenseCat {
  display: grid !important;
  gap: 4px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseRowBar {
  display: block !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(226, 232, 240, 0.85) !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseRowBar > span {
  display: block !important;
  height: 100% !important;
  min-width: 3px !important;
  border-radius: 999px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall .igDashFin__expensePanel {
  height: 100% !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar .igDashFin__headActions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow {
    gap: 6px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note:not(.ig-premiumKpi__note--link) {
    display: none !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi {
    min-height: 50px !important;
    padding: 5px 7px 4px !important;
  }
}

@media (max-width: 960px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow {
    grid-template-columns: 1fr !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeLegend {
    gap: 4px 8px !important;
  }
}

/* Dashboard — compactar topo, remover linha, caber na tela */
body.sistemaigreja.sidenav-on .content:has(#tab-dashboard.igDashFin.active) {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh - 52px) !important;
  max-height: calc(100vh - 52px) !important;
  padding: 6px 28px 10px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.sistemaigreja .contentInner:has(#tab-dashboard.igDashFin.active) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
}

body.sistemaigreja #tab-dashboard.igDashFin.active {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 6px !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-dashHeroHead,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar,
body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__head {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__charts {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  z-index: 1;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDash2026__analysisGrid,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__dashLayout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  height: 100% !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
  max-height: 100% !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard .igDashFin__contasSaldo {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard .igDashFin__contasSaldoList {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .ig-page--dashboard {
  padding-bottom: 0 !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja.sidenav-on .content:has(#tab-dashboard.igDashFin.active) {
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
  }
}

/* Dashboard — layout fixo: não “pula” ao trocar o mês */
@media (min-width: 1181px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar {
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 60 !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note--status span:first-child {
    display: none !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi {
    min-height: 52px !important;
    max-height: 52px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__dashLayout {
    grid-template-rows: minmax(0, 64%) minmax(0, 36%) !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expensePanel,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomePanel {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseVisual,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeVisual {
    flex: 0 0 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
    overflow: hidden !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCompose,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeCompose {
    min-height: 118px !important;
    max-height: 118px !important;
    overflow: hidden !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseComposeLegend,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeComposeLegend {
    min-height: 20px !important;
    max-height: 20px !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseListScroll,
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__incomeSummary {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard .ig-premiumCard__head {
    flex: 0 0 auto !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard .ig-premiumCard__head {
    flex: 0 0 auto !important;
  }
}

/* Topo — usuário só ícone (sem texto Administrador) */
body.sistemaigreja .igUserMenu__trigger--icon {
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 8px !important;
  justify-content: center !important;
}

body.sistemaigreja .igUserMenu__trigger--icon .igUserMenu__userIcon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.sistemaigreja .igUserMenu__trigger--icon .igUserMenu__caret {
  display: none !important;
}

body.sistemaigreja .headerUserLine {
  display: none !important;
}

/* Dashboard — modo foco: oculta menu e usa largura total da tela */
body.sistemaigreja.dash-focus-mode {
  padding: 0 !important;
}

body.sistemaigreja.dash-focus-mode .wrap {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.sistemaigreja.dash-focus-mode .sidebar {
  display: none !important;
}

body.sistemaigreja.dash-focus-mode.sidenav-on .content,
body.sistemaigreja.dash-focus-mode.sidenav-on .wrap > .top {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body.sistemaigreja.dash-focus-mode.sidenav-on .wrap {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.sistemaigreja.dash-focus-mode .contentInner {
  max-width: none !important;
  width: 100% !important;
}

body.sistemaigreja.dash-focus-mode .content {
  padding: 4px 8px 8px !important;
  max-width: none !important;
  width: 100% !important;
}

body.sistemaigreja.dash-focus-mode.sidenav-on .content:has(#tab-dashboard.igDashFin.active),
body.sistemaigreja.dash-focus-mode.sidenav-on .content:has(#tab-relatorios.igDashFin.active),
body.sistemaigreja.dash-focus-mode.sidenav-on .content:has(#tab-comparativo-periodos.igDashFin.active) {
  padding: 4px 8px 8px !important;
  min-height: calc(100vh - 52px) !important;
  max-height: calc(100vh - 52px) !important;
}

body.sistemaigreja.dash-focus-mode #appContextLine {
  display: none !important;
}

body.sistemaigreja .igDashFin__focusToggle,
body.sistemaigreja .igAppMenuToggle {
  white-space: nowrap !important;
}

body.sistemaigreja.dash-focus-mode .igDashFin__focusToggle,
body.sistemaigreja.dash-focus-mode .igAppMenuToggle {
  border-color: var(--ig-accent-muted) !important;
  background: var(--ig-accent-soft) !important;
  color: var(--ig-accent) !important;
}

/* Saldo por conta — modo compacto (poucas contas) */
@media (min-width: 1181px) {
  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income .igDashFin__incomePanel {
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income .igDashFin__incomeSummary {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard--compact {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    align-self: end !important;
    overflow: visible !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldo--compact {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldo--compact .igDashFin__contasSaldoList {
    flex: 0 0 auto !important;
    overflow: visible !important;
    min-height: 0 !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldo--compact .igDashFin__contaSaldoItem {
    padding: 5px 4px !important;
    min-height: 28px !important;
  }

  body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__contasSaldo--compact .igDashFin__contaSaldoTotal {
    margin-top: 0 !important;
    padding-top: 7px !important;
    border-top: 1px solid rgba(226, 232, 240, 0.55) !important;
  }
}

/* Dashboard — faixas e cores de identificação (sem ícones sobrepostos) */
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi::after {
  display: none !important;
  content: none !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi .ig-premiumKpi__name,
body.sistemaigreja #tab-dashboard.igDashFin .igCardKpi .ig-premiumKpi__note {
  max-width: 100% !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard {
  position: relative !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall::before,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income::before,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__expenseCard--tall::before {
  background: #e11d48 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__distCard--income::before {
  background: #16a34a !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__accountsCard::before {
  background: #2563eb !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__cardHead {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__cardHeadText {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__cardEyebrow--expense {
  color: #be123c !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__cardEyebrow--income {
  color: #15803d !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__cardEyebrow--accounts {
  color: #2563eb !important;
}

/* Receitas — padrão visual dashboard (verde, só apresentação) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoHead__eyebrow {
  display: block !important;
  margin: 0 0 2px !important;
  font-size: 0.62rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #15803d !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoHead h2 {
  margin: 0 !important;
  color: #0f172a !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .igSubnav__btn.active {
  color: #15803d !important;
  background: rgba(236, 253, 245, 0.95) !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar {
  border: 1px solid rgba(22, 163, 74, 0.18) !important;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.72) 0%, #ffffff 100%) !important;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__searchLab,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__select span {
  color: #64748b !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFiltrosDetails {
  border-color: rgba(22, 163, 74, 0.14) !important;
  background: rgba(248, 250, 252, 0.82) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFiltrosDetails__summary {
  color: #0f172a !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaPanel--entradas {
  background: #e8edf3 !important;
  padding: 12px 14px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaViewBar {
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--entradas,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--income {
  position: relative !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(71, 85, 105, 0.12) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--entradas::before,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--income::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  pointer-events: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--entradas::before {
  background: #16a34a !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--income {
  border-color: rgba(22, 163, 74, 0.22) !important;
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--income::before {
  background: #16a34a !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--income .lancListaKpis__lab {
  color: #15803d !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__cell--income .lancListaKpis__val {
  color: #15803d !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__lab {
  font-size: 0.58rem !important;
  letter-spacing: 0.07em !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaKpis__val {
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-entradas #listaCardsEntradas .listaCard {
  border-radius: 12px !important;
  border: 1px solid rgba(22, 163, 74, 0.16) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.sistemaigreja #tab-entradas #listaCardsEntradas .listaCard:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08) !important;
}

body.sistemaigreja #tab-entradas #listaCardsEntradas .listaCard::before {
  width: 4px !important;
  opacity: 1 !important;
  background: #16a34a !important;
  border-radius: 0 4px 4px 0 !important;
}

body.sistemaigreja #tab-entradas .listaCardValorNum {
  color: #15803d !important;
}

body.sistemaigreja #tab-entradas #listaCardsEntradas .listaCardChip {
  background: rgba(236, 253, 245, 0.9) !important;
  border-color: rgba(22, 163, 74, 0.18) !important;
  color: #166534 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableWrap {
  border-radius: 12px !important;
  border: 1px solid rgba(22, 163, 74, 0.14) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable thead th {
  background: rgba(236, 253, 245, 0.65) !important;
  color: #166534 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* Receitas — layout travado (filtros + soma fixos, só tabela rola) */
body.sistemaigreja:has(#tab-entradas.active) .content {
  overflow: hidden !important;
}

body.sistemaigreja:has(#tab-entradas.active) .contentInner {
  height: 100% !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas.tabpane.active {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntStickyShell {
  position: static !important;
  top: auto !important;
  flex: 0 0 auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(22, 163, 74, 0.16) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntHeadBar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 0 2px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntSomaCard {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 200px !important;
  padding: 10px 14px 10px 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(22, 163, 74, 0.22) !important;
  background: #ecfdf5 !important;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08) !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntSomaCard::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: #16a34a !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntSomaCard__lab {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: #15803d !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntSomaCard__val {
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #15803d !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntBulkBar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntSelHint {
  font-size: 0.78rem !important;
  margin-right: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px 12px 12px !important;
  margin: 0 !important;
  background: #e8edf3 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas #listaCardsEntradas {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0 0 76px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableWrap {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: 12px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: rgba(236, 253, 245, 0.98) !important;
  box-shadow: 0 1px 0 rgba(22, 163, 74, 0.12) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable .colSel {
  width: 36px !important;
  text-align: center !important;
  padding-left: 8px !important;
  padding-right: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable .colSel input {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  cursor: pointer !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas {
  padding-bottom: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar--entradasLean {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__filters {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--entradasLean {
  display: grid !important;
  grid-template-columns: minmax(220px, 2.2fr) repeat(7, minmax(108px, 1fr)) !important;
  gap: 8px 10px !important;
  align-items: end !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterItem--search {
  grid-column: 1 / -1 !important;
  max-width: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterInline {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterInline input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterClear {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 0.72rem !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  color: #64748b !important;
  border-color: rgba(100, 116, 139, 0.22) !important;
  background: #f8fafc !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterClear:hover {
  color: #0f172a !important;
  border-color: rgba(100, 116, 139, 0.35) !important;
  background: #f1f5f9 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterItem .igLab,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterItem.igLab {
  margin: 0 !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterItem span,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__searchLab {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterItem input,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancEntFilterItem select {
  width: 100% !important;
  min-height: 34px !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 36 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-width: 56px !important;
  height: 56px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #16a34a 0%, #15803d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.38), 0 2px 6px rgba(15, 23, 42, 0.12) !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease, gap 0.18s ease !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.42), 0 4px 10px rgba(15, 23, 42, 0.14) !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:focus-visible {
  outline: 2px solid rgba(22, 163, 74, 0.55) !important;
  outline-offset: 3px !important;
}

body.sistemaigreja #tab-entradas .igLancFab__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 1.55rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

body.sistemaigreja #tab-entradas .igLancFab__label {
  max-width: 0 !important;
  opacity: 0 !important;
  white-space: nowrap !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: max-width 0.2s ease, opacity 0.2s ease !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:hover {
  gap: 6px !important;
  padding: 0 20px 0 14px !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:hover .igLancFab__label {
  max-width: 120px !important;
  opacity: 1 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes {
  white-space: nowrap !important;
  width: 1% !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--entradasLean {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--entradasLean {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.sistemaigreja #tab-entradas .igLancFab--entradas {
    right: 18px !important;
    bottom: 18px !important;
  }
}

/* Lanc fluxo — layout compartilhado (receitas, despesas, transferências) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas {
  --lf-accent: #16a34a;
  --lf-accent-dark: #15803d;
  --lf-accent-bg: #ecfdf5;
  --lf-accent-border: rgba(22, 163, 74, 0.22);
  --lf-accent-soft: rgba(236, 253, 245, 0.65);
  --lf-sticky-border: rgba(22, 163, 74, 0.16);
  --lf-fab-gradient: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
  --lf-fab-shadow: 0 8px 24px rgba(22, 163, 74, 0.38), 0 2px 6px rgba(15, 23, 42, 0.12);
  --lf-fab-shadow-hover: 0 12px 28px rgba(22, 163, 74, 0.42), 0 4px 10px rgba(15, 23, 42, 0.14);
}

body.sistemaigreja #tab-saidas.lancFluxo--saidas {
  --lf-accent: #e11d48;
  --lf-accent-dark: #be123c;
  --lf-accent-bg: #fff1f2;
  --lf-accent-border: rgba(225, 29, 72, 0.22);
  --lf-accent-soft: rgba(255, 228, 230, 0.72);
  --lf-sticky-border: rgba(225, 29, 72, 0.16);
  --lf-fab-gradient: linear-gradient(145deg, #f43f5e 0%, #e11d48 100%);
  --lf-fab-shadow: 0 8px 24px rgba(225, 29, 72, 0.34), 0 2px 6px rgba(15, 23, 42, 0.12);
  --lf-fab-shadow-hover: 0 12px 28px rgba(225, 29, 72, 0.38), 0 4px 10px rgba(15, 23, 42, 0.14);
}

body.sistemaigreja #tab-transferencias.lancFluxo--transferencias {
  --lf-accent: #2563eb;
  --lf-accent-dark: #1d4ed8;
  --lf-accent-bg: #eff6ff;
  --lf-accent-border: rgba(37, 99, 235, 0.22);
  --lf-accent-soft: rgba(219, 234, 254, 0.72);
  --lf-sticky-border: rgba(37, 99, 235, 0.16);
  --lf-fab-gradient: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  --lf-fab-shadow: 0 8px 24px rgba(37, 99, 235, 0.34), 0 2px 6px rgba(15, 23, 42, 0.12);
  --lf-fab-shadow-hover: 0 12px 28px rgba(37, 99, 235, 0.38), 0 4px 10px rgba(15, 23, 42, 0.14);
}

body.sistemaigreja:has(#tab-lancamentos.active) .content,
body.sistemaigreja:has(#tab-entradas.active) .content,
body.sistemaigreja:has(#tab-saidas.active) .content,
body.sistemaigreja:has(#tab-transferencias.active) .content {
  overflow: hidden !important;
}

body.sistemaigreja:has(#tab-lancamentos.active) .contentInner,
body.sistemaigreja:has(#tab-entradas.active) .contentInner,
body.sistemaigreja:has(#tab-saidas.active) .contentInner,
body.sistemaigreja:has(#tab-transferencias.active) .contentInner {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  overflow: hidden !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

body.sistemaigreja #tab-lancamentos.lancFluxo--lancHub.tabpane.active {
  order: 0 !important;
  flex: 0 0 auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja .lancSubpane.tabpane.active {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.sistemaigreja:has(#tab-lancamentos.active) #tab-entradas.lancFluxo--entradas.tabpane.active,
body.sistemaigreja:has(#tab-lancamentos.active) #tab-saidas.lancFluxo--saidas.tabpane.active,
body.sistemaigreja:has(#tab-lancamentos.active) #tab-transferencias.lancFluxo--transferencias.tabpane.active {
  height: auto !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas.tabpane.active,
body.sistemaigreja #tab-saidas.lancFluxo--saidas.tabpane.active,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias.tabpane.active {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding-bottom: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoShell,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoShell,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoStickyShell,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoStickyShell,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoStickyShell {
  position: static !important;
  top: auto !important;
  flex: 0 0 auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lf-sticky-border) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoHeadBar,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoHeadBar,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoHeadBar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 0 2px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 200px !important;
  padding: 10px 14px 10px 18px !important;
  border-radius: 12px !important;
  border: 1px solid var(--lf-accent-border) !important;
  background: var(--lf-accent-bg) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard::before,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard::before,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--lf-accent) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard__lab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard__lab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard__lab {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--lf-accent-dark) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard__val,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard__val,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard__val {
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--lf-accent-dark) !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBulkBar,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBulkBar,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBulkBar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSelHint,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSelHint,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSelHint {
  font-size: 0.78rem !important;
  margin-right: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoTablePane,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoTablePane,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px 12px 12px !important;
  margin: 0 !important;
  background: #e8edf3 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas #listaCardsEntradas,
body.sistemaigreja #tab-saidas.lancFluxo--saidas #listaCardsSaidas,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias #listaCardsTransferencias {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0 0 76px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar--fluxoLean,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancOpBar--fluxoLean,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancOpBar--fluxoLean {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__filters,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancOpBar__filters,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancOpBar__filters {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--fluxoLean,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .filtrosGrid--fluxoLean,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .filtrosGrid--fluxoLean {
  display: grid !important;
  grid-template-columns: auto repeat(6, minmax(96px, 1fr)) !important;
  gap: 8px 10px !important;
  align-items: end !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterPeriodo,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterPeriodo,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterPeriodo {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: 100% !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem--search,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem--search,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem--search {
  grid-column: 1 / -1 !important;
  max-width: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterPeriodo .lancFluxoFilterItem--date,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterPeriodo .lancFluxoFilterItem--date,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterPeriodo .lancFluxoFilterItem--date {
  flex: 0 0 136px !important;
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem--pad,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem--pad,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem--pad {
  min-height: 34px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterInline,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterInline,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterInline {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterInline input,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterInline input,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterInline input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterClear,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterClear,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterClear {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 0.72rem !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  color: #64748b !important;
  border-color: rgba(100, 116, 139, 0.22) !important;
  background: #f8fafc !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem .igLab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem .igLab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem .igLab,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem.igLab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem.igLab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem.igLab {
  margin: 0 !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem span,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem span,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem span,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__searchLab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancOpBar__searchLab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancOpBar__searchLab {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem input,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem input,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem input,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem select,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem select,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem select {
  width: 100% !important;
  min-height: 34px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableWrap,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableWrap,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableWrap {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: 12px !important;
  border: 1px solid var(--lf-accent-border) !important;
  background: #ffffff !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable thead th,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTable thead th,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: var(--lf-accent-soft) !important;
  color: var(--lf-accent-dark) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 0 var(--lf-accent-border) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable .colSel,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTable .colSel,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTable .colSel {
  width: 36px !important;
  text-align: center !important;
  padding-left: 8px !important;
  padding-right: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable .colSel input,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTable .colSel input,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTable .colSel input {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  cursor: pointer !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableAcoes,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableAcoes {
  white-space: nowrap !important;
  width: 1% !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas,
body.sistemaigreja #tab-saidas .igLancFab--saidas,
body.sistemaigreja #tab-transferencias .igLancFab--transferencias {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 36 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-width: 56px !important;
  height: 56px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--lf-fab-gradient) !important;
  color: #ffffff !important;
  box-shadow: var(--lf-fab-shadow) !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease, gap 0.18s ease !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:hover,
body.sistemaigreja #tab-saidas .igLancFab--saidas:hover,
body.sistemaigreja #tab-transferencias .igLancFab--transferencias:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--lf-fab-shadow-hover) !important;
  gap: 6px !important;
  padding: 0 20px 0 14px !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:focus-visible,
body.sistemaigreja #tab-saidas .igLancFab--saidas:focus-visible,
body.sistemaigreja #tab-transferencias .igLancFab--transferencias:focus-visible {
  outline: 2px solid var(--lf-accent-border) !important;
  outline-offset: 3px !important;
}

body.sistemaigreja #tab-entradas .igLancFab__icon,
body.sistemaigreja #tab-saidas .igLancFab__icon,
body.sistemaigreja #tab-transferencias .igLancFab__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 1.55rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

body.sistemaigreja #tab-entradas .igLancFab__label,
body.sistemaigreja #tab-saidas .igLancFab__label,
body.sistemaigreja #tab-transferencias .igLancFab__label {
  max-width: 0 !important;
  opacity: 0 !important;
  white-space: nowrap !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: max-width 0.2s ease, opacity 0.2s ease !important;
}

body.sistemaigreja #tab-entradas .igLancFab--entradas:hover .igLancFab__label,
body.sistemaigreja #tab-saidas .igLancFab--saidas:hover .igLancFab__label,
body.sistemaigreja #tab-transferencias .igLancFab--transferencias:hover .igLancFab__label {
  max-width: 160px !important;
  opacity: 1 !important;
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--fluxoLean,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .filtrosGrid--fluxoLean,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .filtrosGrid--fluxoLean {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterPeriodo,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterPeriodo,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterPeriodo {
    grid-column: span 2 !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterPeriodo .lancFluxoFilterItem--date,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterPeriodo .lancFluxoFilterItem--date,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterPeriodo .lancFluxoFilterItem--date {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--fluxoLean,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .filtrosGrid--fluxoLean,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .filtrosGrid--fluxoLean {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterPeriodo,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterPeriodo,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterPeriodo {
    grid-column: span 2 !important;
  }

  body.sistemaigreja #tab-entradas .igLancFab--entradas,
  body.sistemaigreja #tab-saidas .igLancFab--saidas,
  body.sistemaigreja #tab-transferencias .igLancFab--transferencias {
    right: 18px !important;
    bottom: 18px !important;
  }
}

/* Contas — mesmo shell visual (cor da marca) */
body.sistemaigreja #tab-conf-contas.lancFluxo--contas {
  --lf-accent: var(--ig-accent);
  --lf-accent-dark: var(--ig-accent-hover);
  --lf-accent-bg: var(--ig-accent-soft);
  --lf-accent-border: var(--ig-accent-muted);
  --lf-accent-soft: var(--ig-accent-soft);
  --lf-sticky-border: var(--ig-accent-muted);
  --lf-fab-gradient: linear-gradient(145deg, var(--ig-accent) 0%, var(--ig-accent-hover) 100%);
  --lf-fab-shadow: 0 8px 24px var(--ig-accent-muted), 0 2px 6px rgba(15, 23, 42, 0.12);
  --lf-fab-shadow-hover: 0 12px 28px var(--ig-accent-muted), 0 4px 10px rgba(15, 23, 42, 0.14);
}

body.sistemaigreja:has(#tab-conf-configuracoes.active) .content {
  overflow: hidden !important;
}

body.sistemaigreja:has(#tab-conf-configuracoes.active) .contentInner,
body.sistemaigreja:has(#tab-conf-igreja.active) .contentInner {
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  overflow: hidden !important;
}

body.sistemaigreja:has(#tab-conf-configuracoes.active) #tab-conf-contas.lancFluxo--contas.tabpane.active,
body.sistemaigreja:has(#tab-conf-igreja.active) .igrejaSubpane.lancFluxo--contas.tabpane.active {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding-bottom: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoStickyShell {
  position: static !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lf-sticky-border) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoHeadBar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 0 2px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoSomaCard {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 200px !important;
  padding: 10px 14px 10px 18px !important;
  border-radius: 12px !important;
  border: 1px solid var(--lf-accent-border) !important;
  background: var(--lf-accent-bg) !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoSomaCard::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--lf-accent) !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoSomaCard__lab {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--lf-accent-dark) !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoSomaCard__val {
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  color: var(--lf-accent-dark) !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoBulkBar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 1 auto !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px 12px 12px !important;
  background: #e8edf3 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas #listaCardsContas {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 0 76px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancOpBar--fluxoLean,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancOpBar__filters {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .filtrosGrid--contasLean {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(120px, 1fr)) repeat(5, minmax(96px, 1fr)) !important;
  gap: 8px 10px !important;
  align-items: end !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem--search {
  grid-column: 1 / -1 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterInline {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterInline input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterClear {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 0.72rem !important;
  padding: 6px 10px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem span,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancOpBar__searchLab {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem input,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem select {
  width: 100% !important;
  min-height: 34px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableWrap {
  border-radius: 12px !important;
  border: 1px solid var(--lf-accent-border) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: var(--lf-accent-soft) !important;
  color: var(--lf-accent-dark) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableAcoes {
  white-space: nowrap !important;
  width: 1% !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .contaRowInativa td {
  opacity: 0.72 !important;
}

body.sistemaigreja #tab-conf-contas .igLancFab--contas {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 36 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-width: 56px !important;
  height: 56px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--lf-fab-gradient) !important;
  color: #ffffff !important;
  box-shadow: var(--lf-fab-shadow) !important;
  cursor: pointer !important;
}

body.sistemaigreja #tab-conf-contas .igLancFab--contas:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--lf-fab-shadow-hover) !important;
}

body.sistemaigreja #tab-conf-contas .igLancFab__label {
  max-width: 0 !important;
  opacity: 0 !important;
  transition: max-width 0.2s ease, opacity 0.2s ease !important;
}

body.sistemaigreja #tab-conf-contas .igLancFab--contas:hover .igLancFab__label {
  max-width: 120px !important;
  opacity: 1 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancModalEyebrow {
  color: var(--lf-accent-dark) !important;
}

/* Configurações — hub no padrão Receitas (sub-nav fixo, conteúdo rola) */
body.sistemaigreja #tab-conf-configuracoes.lancFluxo--config {
  --lf-accent: var(--ig-accent);
  --lf-accent-dark: var(--ig-accent-hover);
  --lf-accent-bg: var(--ig-accent-soft);
  --lf-accent-border: var(--ig-accent-muted);
  --lf-accent-soft: var(--ig-accent-soft);
  --lf-sticky-border: var(--ig-accent-muted);
}

body.sistemaigreja #tab-conf-configuracoes .lancFluxoShell--configHub {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-conf-configuracoes .lancFluxoStickyShell {
  position: static !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lf-sticky-border) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-conf-configuracoes .igSubnav--confFluxo {
  margin: 0 !important;
  padding: 4px !important;
  width: 100% !important;
  background: var(--lf-accent-soft) !important;
  border-color: var(--lf-accent-border) !important;
}

body.sistemaigreja #tab-conf-configuracoes .igSubnav--confFluxo .igSubnav__btn.active {
  color: var(--lf-accent-dark) !important;
}

body.sistemaigreja #tab-conf-configuracoes .lancFluxoHeadBar--config {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 0 2px !important;
}

body.sistemaigreja #tab-conf-configuracoes .lancFluxoConfigHint {
  margin: 0 !important;
  font-size: 0.82rem !important;
}

body.sistemaigreja #tab-conf-configuracoes .lancFluxoBulkBar--config {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

/* Igreja — hub de cadastros da congregação (cor da marca) */
body.sistemaigreja #tab-conf-igreja.lancFluxo--igreja {
  --lf-accent: var(--ig-accent);
  --lf-accent-dark: var(--ig-accent-hover);
  --lf-accent-bg: var(--ig-accent-soft);
  --lf-accent-border: var(--ig-accent-muted);
  --lf-accent-soft: var(--ig-accent-soft);
  --lf-sticky-border: var(--ig-accent-muted);
}

body.sistemaigreja #tab-conf-igreja .lancFluxoShell--igrejaHub {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-conf-igreja .lancFluxoStickyShell {
  position: static !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lf-sticky-border) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-conf-igreja .igSubnav--igrejaFluxo {
  margin: 0 !important;
  padding: 4px !important;
  width: 100% !important;
  background: var(--lf-accent-soft) !important;
  border-color: var(--lf-accent-border) !important;
}

body.sistemaigreja #tab-conf-igreja .igSubnav--igrejaFluxo .igSubnav__btn.active {
  color: var(--lf-accent-dark) !important;
}

body.sistemaigreja #tab-conf-igreja .lancFluxoHeadBar--igreja {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 0 2px !important;
}

/* Lançamento — hub Receitas / Despesas / Transferências */
body.sistemaigreja #tab-lancamentos.lancFluxo--lancHub {
  --lf-sticky-border: rgba(100, 116, 139, 0.18);
  --lf-accent-soft: rgba(241, 245, 249, 0.92);
}

body.sistemaigreja #tab-lancamentos .lancFluxoShell--lancHub {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.sistemaigreja #tab-lancamentos .lancFluxoStickyShell {
  position: static !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 10px 12px 11px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lf-sticky-border) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-lancamentos .igSubnav--lancFluxo {
  margin: 0 !important;
  padding: 4px !important;
  width: 100% !important;
  background: var(--lf-accent-soft) !important;
  border-color: var(--lf-sticky-border) !important;
}

body.sistemaigreja #tab-lancamentos .lancFluxoHeadBar--lanc {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 2px !important;
}

body.sistemaigreja #tab-lancamentos .lancFluxoConfigHint {
  margin: 0 !important;
  font-size: 0.82rem !important;
}

/* Identidade — formulário e paletas */
body.sistemaigreja .hubFluxo--identidade.active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 8px !important;
}

body.sistemaigreja .hubFluxo--identidade.active > .hubFluxoBody {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 0 20px !important;
}

body.sistemaigreja .igIdentidadePanel {
  border: 1px solid var(--ig-accent-muted) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja .igIdentidadeForm {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.sistemaigreja .igIdentidadeSection__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ig-ink, #0f172a);
}

body.sistemaigreja .igIdentidadeSection__lead {
  margin: 0 0 12px;
  font-size: 0.86rem;
}

body.sistemaigreja .igIdentidadeForm__grid {
  gap: 12px;
}

body.sistemaigreja .igIdentidadeForm__full {
  grid-column: 1 / -1;
}

body.sistemaigreja .igIdentidadeLogo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

body.sistemaigreja .igIdentidadeLogo__preview {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px dashed var(--ig-accent-muted);
  background: var(--ig-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.sistemaigreja .igIdentidadeLogo__placeholder {
  font-size: 0.78rem;
  color: var(--ig-muted, #64748b);
  text-align: center;
  padding: 8px;
}

body.sistemaigreja .igIdentidadeLogo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.sistemaigreja .igIdentidadeLogo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.sistemaigreja .igIdentidadeLogo__file {
  max-width: 220px;
}

body.sistemaigreja .igPaletaPicker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.sistemaigreja .igPaletaPicker__groupLbl {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ig-muted, #64748b);
}

body.sistemaigreja .igPaletaPicker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

body.sistemaigreja .igPaletaCard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--ig-line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.sistemaigreja .igPaletaCard:hover {
  border-color: var(--ig-accent-muted);
}

body.sistemaigreja .igPaletaCard--active {
  border-color: var(--ig-accent);
  box-shadow: 0 0 0 3px var(--ig-accent-soft);
}

body.sistemaigreja .igPaletaCard__swatch {
  width: 100%;
  height: 28px;
  border-radius: 8px;
  background: var(--paleta-swatch);
}

body.sistemaigreja .igPaletaCard__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ig-ink, #0f172a);
}

body.sistemaigreja .igPaletaCard__hex {
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

body.sistemaigreja .igPaletaPreview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ig-paleta-preview, var(--ig-accent, #1a5276));
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

body.sistemaigreja .igPaletaPreview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

body.sistemaigreja .igPaletaPicker__custom {
  margin-top: 4px;
}

body.sistemaigreja .igPaletaPicker__custom summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ig-accent);
}

body.sistemaigreja .igPaletaPicker__customRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}

body.sistemaigreja .igPaletaPicker__customRow input[type='color'] {
  width: 48px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  cursor: pointer;
}

body.sistemaigreja .igPaletaPicker__hexLab {
  flex: 1 1 140px;
  min-width: 120px;
}

body.sistemaigreja .igIdentidadeForm__actions {
  padding-top: 4px;
}

/* Relatórios — DRE horizontal (mesmo shell visual do Dashboard / Receitas) */
body.sistemaigreja:has(#tab-relatorios.igDashFin.active) .content,
body.sistemaigreja:has(#tab-comparativo-periodos.igDashFin.active) .content {
  overflow: hidden !important;
}

body.sistemaigreja:has(#tab-relatorios.igDashFin.active) .contentInner,
body.sistemaigreja:has(#tab-comparativo-periodos.igDashFin.active) .contentInner {
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.sistemaigreja.sidenav-on .content:has(#tab-relatorios.igDashFin.active),
body.sistemaigreja.sidenav-on .content:has(#tab-comparativo-periodos.igDashFin.active) {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh - 52px) !important;
  max-height: calc(100vh - 52px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.sistemaigreja #tab-relatorios.igDashFin,
body.sistemaigreja #tab-comparativo-periodos.igDashFin {
  --ig-dash-premium-radius: 14px;
  --ig-dash-premium-border: rgba(100, 116, 139, 0.24);
  --ig-dash-premium-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.1),
    0 22px 46px rgba(15, 23, 42, 0.13);
  --ig-dash-panel-bg: linear-gradient(155deg, #f8fafc 0%, #ffffff 46%, #ffffff 100%);
}

body.sistemaigreja #tab-relatorios.igDashFin.tabpane.active,
body.sistemaigreja #tab-comparativo-periodos.igDashFin.tabpane.active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  padding-bottom: 0 !important;
  position: relative !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreShell , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 12px !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreStickyShell , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreStickyShell {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  position: relative !important;
  z-index: 60 !important;
  overflow: visible !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreStatus , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreStatus {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreQualidadeSlot[hidden] , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreQualidadeSlot[hidden] {
  display: none !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreQualidadeSlot:not([hidden]) , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreQualidadeSlot:not([hidden]) {
  flex: 0 0 auto !important;
  margin: 0 0 6px !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreToolbar , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreToolbar {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreTablePane , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 1 !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__head--toolbar , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__head--toolbar {
  flex: 0 0 auto;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpiRow , body.sistemaigreja #tab-comparativo-periodos.igDashFin .ig-premiumKpiRow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__head--toolbar , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__head--toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpis , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpis {
  flex: 1 1 520px;
  min-width: 0;
}

body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headActions , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpi,
body.sistemaigreja #tab-relatorios.igDashFin .igCardKpi , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igCardKpi {
  border-width: 1.5px;
  border-style: solid;
  border-radius: 14px;
  box-shadow: var(--ig-dash-premium-shadow);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpi:hover,
body.sistemaigreja #tab-relatorios.igDashFin .igCardKpi:hover , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igCardKpi:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 14px 30px rgba(15, 23, 42, 0.12),
    0 28px 56px rgba(15, 23, 42, 0.16);
}

body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note {
  display: none !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpi__name , body.sistemaigreja #tab-comparativo-periodos.igDashFin .ig-premiumKpi__name {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpi__value , body.sistemaigreja #tab-comparativo-periodos.igDashFin .ig-premiumKpi__value {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note {
  font-size: 0.68rem;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpi__value--pos , body.sistemaigreja #tab-comparativo-periodos.igDashFin .ig-premiumKpi__value--pos {
  color: #15803d;
}

body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpi__value--neg , body.sistemaigreja #tab-comparativo-periodos.igDashFin .ig-premiumKpi__value--neg {
  color: #be123c;
}

body.sistemaigreja #tab-relatorios.igDashFin .igCardKpi--resultado.ig-premiumKpi--neg::after , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igCardKpi--resultado.ig-premiumKpi--neg::after {
  background: #fff1f2;
  color: #be123c;
}

body.sistemaigreja #tab-relatorios.igDashFin .igCardKpi--resultado.ig-premiumKpi--pos::after , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igCardKpi--resultado.ig-premiumKpi--pos::after {
  background: #f0fdf4;
  color: #15803d;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizMain , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizMain {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizCard , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizCard {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin-top: 2px !important;
  padding: 16px 18px 18px !important;
  border: 1.5px solid var(--ig-dash-premium-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--ig-dash-premium-shadow) !important;
  background: var(--ig-dash-panel-bg, #ffffff) !important;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizCard .ig-premiumCard__head , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizCard .ig-premiumCard__head {
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizLead , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizLead {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreWideScroll , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreWideScroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  overflow-x: auto !important;
  margin-top: 0;
  -webkit-overflow-scrolling: touch;
  --rel-dre-thead-h: 0px;
  --rel-dre-frame-border: rgba(148, 163, 184, 0.34);
  border: 1.5px solid var(--rel-dre-frame-border) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  box-shadow:
    inset 0 2px 8px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2px rgba(15, 23, 42, 0.04) !important;
  isolation: isolate;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreWideScroll.is-loading , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreWideScroll.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreTable--wide thead th , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreTable--wide thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreTable--wide thead th.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreTable--wide thead th.relDreCol--linha {
  left: 0 !important;
  top: 0 !important;
  z-index: 9 !important;
  background: #cbd5e1 !important;
  border-left: none !important;
  box-shadow: 6px 0 14px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(15, 23, 42, 0.08) !important;
}

/* Relatórios — layout fixo: não “pula” ao trocar período (desktop) */
@media (min-width: 1181px) {
  body.sistemaigreja #tab-relatorios.igDashFin .relDreToolbar.igDashFin__head--toolbar {
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__note {
    display: block !important;
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi,
  body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi {
    min-height: 78px !important;
    max-height: none !important;
  }

  body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__period {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
}

@media (max-width: 1180px) {
  body.sistemaigreja.sidenav-on .content:has(#tab-relatorios.igDashFin.active) {
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
  }

  body.sistemaigreja #tab-relatorios.igDashFin.tabpane.active {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 1100px) {
  body.sistemaigreja #tab-relatorios.igDashFin .ig-premiumKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__head--toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headActions {
    flex-wrap: wrap;
  }
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreTable--wide thead {
  display: none !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreTable--comp thead {
  display: table-header-group !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreTable--wide thead th {
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: none;
}

/* Relatórios DRE — blocos visuais (mesmo padrão do Dashboard: verde / vermelho / roxo) */
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead td {
  padding: 0 !important;
  border: none !important;
  border-bottom: none !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead.relDreRow--blockHeadActive td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead.relDreRow--blockHeadActive td {
  position: sticky !important;
  top: 0 !important;
  z-index: 9 !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--mes,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--total {
  background: #fff1f2 !important;
  color: #0f172a !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--mes,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--total {
  background: #ecfdf5 !important;
  color: #0f172a !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--mes,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__fill.relDreCol--total {
  background: #f5f3ff !important;
  color: #0f172a !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa.relDreRow--blockHeadActive td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa.relDreRow--blockHeadActive td {
  background: #fff1f2 !important;
  border-top: 2px solid rgba(225, 29, 72, 0.12) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita.relDreRow--blockHeadActive td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita.relDreRow--blockHeadActive td {
  background: #ecfdf5 !important;
  border-top: 2px solid rgba(22, 163, 74, 0.12) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado.relDreRow--blockHeadActive td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado.relDreRow--blockHeadActive td {
  background: #ede9fe !important;
  border-top: 2px solid rgba(124, 58, 237, 0.12) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha {
  background: #ede9fe !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita td {
  background: #ecfdf5 !important;
  border-top: 2px solid rgba(22, 163, 74, 0.12) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa td {
  background: #fff1f2 !important;
  border-top: 2px solid rgba(225, 29, 72, 0.12) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado td , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado td {
  background: #ede9fe !important;
  border-top: 2px solid rgba(124, 58, 237, 0.12) !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead .relDreBlockHead__label , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead .relDreBlockHead__label {
  padding: 0 12px 0 14px !important;
  text-align: center !important;
  border-right: 1px solid rgba(148, 163, 184, 0.1) !important;
  box-sizing: border-box !important;
  height: 52px !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita .relDreBlockHead__fill,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita td.relDreCol--mes,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita td.relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita td.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita td.relDreCol--total {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa .relDreBlockHead__fill,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa td.relDreCol--mes,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa td.relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa td.relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa td.relDreCol--total {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead:not(.relDreRow--blockHeadActive) .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead:not(.relDreRow--blockHeadActive) .relDreBlockHead__fill {
  visibility: visible;
  pointer-events: none;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead:not(.relDreRow--blockHeadActive) .relDreBlockHead__month , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead:not(.relDreRow--blockHeadActive) .relDreBlockHead__month {
  display: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead-receita:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead-receita:hover .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead-receita:hover .relDreBlockHead__fill {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead-despesa:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead-despesa:hover .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead-despesa:hover .relDreBlockHead__fill {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead .relDreBlockHead__fill {
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  height: 52px !important;
}

body.sistemaigreja #tab-relatorios .relDreBlockHead__colLabel , body.sistemaigreja #tab-comparativo-periodos .relDreBlockHead__colLabel {
  display: none !important;
}

body.sistemaigreja #tab-relatorios .relDreBlockHead__month , body.sistemaigreja #tab-comparativo-periodos .relDreBlockHead__month {
  display: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f172a;
  line-height: 1.2;
  align-items: center;
  justify-content: center;
  height: 52px;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__month , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__month {
  display: flex;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__label,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__fill {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead .relDreBlockHead__fill {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__fill , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__fill {
  position: sticky !important;
  top: 0 !important;
  z-index: 9 !important;
  visibility: visible;
  pointer-events: auto;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita.relDreRow--blockHeadActive .relDreBlockHead__title,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa.relDreRow--blockHeadActive .relDreBlockHead__title,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__title , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado.relDreRow--blockHeadActive .relDreBlockHead__title {
  color: inherit;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita .relDreBlockHead__label.relDreCol--linha {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa .relDreBlockHead__label.relDreCol--linha {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado .relDreBlockHead__label.relDreCol--linha {
  background: #ede9fe !important;
}

/* Canto fixo: só o bloco ativo gruda no topo e na coluna de nomes */
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead .relDreBlockHead__label.relDreCol--linha {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead.relDreRow--blockHeadActive .relDreBlockHead__label.relDreCol--linha {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 12 !important;
  overflow: visible !important;
  text-align: center !important;
  box-shadow:
    3px 0 10px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(15, 23, 42, 0.05) !important;
}

body.sistemaigreja #tab-relatorios .relDreBlockHead__title,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead .relDreBlockHead__title.relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead .relDreBlockHead__title.relDreLinhaLabel {
  height: 52px;
  min-height: 52px;
  width: 100%;
  padding-left: 0;
  text-transform: none;
  justify-content: center !important;
  text-align: center !important;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-receita .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-receita .relDreLinhaLabel {
  color: #15803d !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-despesa .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-despesa .relDreLinhaLabel {
  color: #be123c !important;
}

body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreRow--blockHead-resultado .relDreLinhaLabel , body.sistemaigreja #tab-comparativo-periodos .relDreRow--blockHead-resultado .relDreLinhaLabel {
  color: #6d28d9 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead-receita + tr td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead-despesa + tr td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead-despesa + tr td {
  border-top: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaEnd td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaEnd td {
  border-bottom: 1px solid rgba(22, 163, 74, 0.1) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaEnd + tr.relDreRow--resultadoFinal td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr.relDreRow--despesaEnd + tr.relDreRow--resultadoFinal td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaHdr.relDreRow--despesaEnd + tr.relDreRow--resultadoFinal td {
  border-top: 2px solid rgba(124, 58, 237, 0.14) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem td {
  background: #ecfdf5 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaHdr .relDreCol--total {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem .relDreCol--total {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaHdr .relDreCol--total {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .relDreCol--total {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaHdr td {
  background: #ecfdf5 !important;
  font-weight: 750 !important;
  border-top: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaHdr .relDreCol--linha {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem .relDreCol--linha {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaHdr .relDreCol--linha {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .relDreCol--linha {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem td {
  background: #fff1f2 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaHdr td {
  background: #fff1f2 !important;
  font-weight: 750 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem .relDreCol--linha {
  color: #15803d !important;
  box-shadow: 3px 0 8px rgba(15, 23, 42, 0.04) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .relDreCol--linha {
  color: #be123c !important;
  box-shadow: 3px 0 8px rgba(15, 23, 42, 0.04) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaEnd td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaEnd td {
  border-bottom: 1px solid rgba(225, 29, 72, 0.1) !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal td {
  background: #f5f3ff !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  border-top: 1px solid rgba(124, 58, 237, 0.12) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12) !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal .relDreCol--linha {
  color: #6d28d9 !important;
  background: #f5f3ff !important;
  box-shadow: 3px 0 8px rgba(15, 23, 42, 0.04) !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .relDreCol--media,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal .relDreCol--total {
  background: #f5f3ff !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCellStack__val,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr .relDreCol--total , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaHdr .relDreCol--total {
  color: #15803d;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCellStack__val,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr .relDreCol--total,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem .negative , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem .negative {
  color: #be123c;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .relDreCol--total,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .relDreCellStack__val , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal .relDreCellStack__val {
  color: #6d28d9;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .negative,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal .relDreCellStack__val.negative , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal .relDreCellStack__val.negative {
  color: #be123c !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill].relDreRow--receitaHdr:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill].relDreRow--receitaItem:hover td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill].relDreRow--receitaItem:hover td {
  background: #dcfce7 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill].relDreRow--despesaHdr:hover td,
body.sistemaigreja #tab-relatorios .relDreTable tr[data-rel-drill].relDreRow--despesaItem:hover td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr[data-rel-drill].relDreRow--despesaItem:hover td {
  background: #ffe4e6 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal:hover td , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal:hover td {
  background: #ede9fe !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaHdr:hover .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--receitaItem:hover .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--receitaItem:hover .relDreCol--linha {
  background: #dcfce7 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaHdr:hover .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--despesaItem:hover .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--despesaItem:hover .relDreCol--linha {
  background: #ffe4e6 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--resultadoFinal:hover .relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--resultadoFinal:hover .relDreCol--linha {
  background: #ede9fe !important;
}

/* Borda lateral esquerda única: só a moldura neutra do scroll, sem faixa colorida por bloco */
body.sistemaigreja #tab-relatorios .relDreTable .relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreTable tr.relDreRow--blockHead .relDreBlockHead__label , body.sistemaigreja #tab-comparativo-periodos .relDreTable tr.relDreRow--blockHead .relDreBlockHead__label {
  border-left: none !important;
}

/* Coluna Linha — congelada ao rolar horizontal (prioridade máxima) */
body.sistemaigreja #tab-relatorios .relDreTable--wide th.relDreCol--linha,
body.sistemaigreja #tab-relatorios .relDreTable--wide td.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable--wide td.relDreCol--linha {
  position: sticky !important;
  left: 0 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable--wide tbody td.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable--wide tbody td.relDreCol--linha {
  z-index: 3 !important;
}

body.sistemaigreja #tab-relatorios .relDreTable--wide thead th.relDreCol--linha , body.sistemaigreja #tab-comparativo-periodos .relDreTable--wide thead th.relDreCol--linha {
  top: 0 !important;
  z-index: 9 !important;
}

/* === KPI hero + cards 3D — Dashboard e DRE === */
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__head--toolbar,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__head--toolbar , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__head--toolbar {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpis,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpis , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpis {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow {
  width: 100% !important;
  gap: 12px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headActions,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headActions , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headActions {
  width: 100% !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .igCardKpi {
  min-height: 80px !important;
  max-height: none !important;
  padding: 14px 16px 12px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.1),
    0 22px 46px rgba(15, 23, 42, 0.13) !important;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi:hover,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi:hover,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi:hover,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi:hover , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .igCardKpi:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 14px 30px rgba(15, 23, 42, 0.12),
    0 28px 56px rgba(15, 23, 42, 0.16) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi--receitas,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi--receitas , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .igCardKpi--receitas {
  background: linear-gradient(155deg, #ecfdf5 0%, #f8fffb 42%, #ffffff 100%) !important;
  border-color: rgba(22, 163, 74, 0.38) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi--despesas,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi--despesas , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .igCardKpi--despesas {
  background: linear-gradient(155deg, #fff1f2 0%, #fff8f8 42%, #ffffff 100%) !important;
  border-color: rgba(225, 29, 72, 0.34) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi--resultado,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi--resultado , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .igCardKpi--resultado {
  background: linear-gradient(155deg, #f5f3ff 0%, #faf8ff 42%, #ffffff 100%) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi--disponivel,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .igCardKpi--disponivel,
body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .igCardKpi--saldo {
  background: linear-gradient(155deg, #eff6ff 0%, #f5f9ff 42%, #ffffff 100%) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__name,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__name , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__name {
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__value,
body.sistemaigreja #tab-relatorios.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__value , body.sistemaigreja #tab-comparativo-periodos.igDashFin .igDashFin__headKpiRow .ig-premiumKpi__value {
  margin-top: 6px !important;
  font-size: clamp(1.08rem, 1.55vw, 1.42rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardBase:hover,
body.sistemaigreja #tab-dashboard.igDashFin .igCardChart:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 14px 30px rgba(15, 23, 42, 0.12),
    0 28px 56px rgba(15, 23, 42, 0.16) !important;
}

/* === DRE — painel da tabela no mesmo padrão 3D dos KPIs === */
body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizCard .ig-premiumCard__head , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizCard .ig-premiumCard__head {
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizLead , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizLead {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizCard , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizCard {
  border: 1.5px solid rgba(100, 116, 139, 0.26) !important;
  border-radius: 14px !important;
  padding: 16px 18px 18px !important;
  background: linear-gradient(155deg, #f8fafc 0%, #ffffff 46%, #ffffff 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.1),
    0 22px 46px rgba(15, 23, 42, 0.13) !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreWideScroll , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreWideScroll {
  border: 1.5px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow:
    inset 0 2px 8px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreHorizMain , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreHorizMain {
  padding: 2px 0 0 !important;
}

body.sistemaigreja #tab-relatorios.igDashFin .relDreShell , body.sistemaigreja #tab-comparativo-periodos.igDashFin .relDreShell {
  gap: 14px !important;
}

body.sistemaigreja #tab-dashboard.igDashFin .igCardBase,
body.sistemaigreja #tab-dashboard.igDashFin .igCardChart {
  border-width: 1.5px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.1),
    0 22px 46px rgba(15, 23, 42, 0.13) !important;
}

/* === Identidade: paleta unificada, sidebar colorido + elevação 3D (prioridade final) === */
body.sistemaigreja {
  --ig-shadow: var(--ig-card-elev-shadow);
  --ig-card-shadow: var(--ig-card-elev-shadow);
  --ig-ui-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --ig-ui-shadow-md: var(--ig-card-elev-shadow);
}

body.sistemaigreja .sidebar,
body.sistemaigreja .sidebar--v2 {
  background: var(--ig-sidebar-bg) !important;
  color: var(--ig-sidebar-text, #ffffff) !important;
  border-right: 1px solid var(--ig-sidebar-border, rgba(255, 255, 255, 0.1)) !important;
  box-shadow: var(--ig-sidebar-shadow) !important;
}

body.sistemaigreja .sidebar .sideNav,
body.sistemaigreja .sidebar--v2 .sideNav {
  background: transparent !important;
  color: var(--ig-sidebar-text, #ffffff) !important;
}

body.sistemaigreja .sideNavHeader--v2.sideNavHeader--brandOnly {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 13px 14px 11px 14px !important;
  min-height: 0 !important;
}

body.sistemaigreja .cfBrand--sidebar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 0 !important;
  min-width: 0 !important;
}

body.sistemaigreja .cfBrand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  min-width: 0 !important;
}

body.sistemaigreja .cfBrand--sidebar .cfBrand__logo {
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 8px) !important;
  height: 38px !important;
  max-height: 38px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none !important;
}

body.sistemaigreja .cfBrand__logo {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
}

body.sistemaigreja .cfBrand__mono {
  display: none !important;
  width: 36px !important;
  height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
}

body.sistemaigreja .cfBrand__product {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body.sistemaigreja .cfBrand__name {
  display: block !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
}

body.sistemaigreja .cfBrand__tagline {
  display: block !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
}

body.sistemaigreja .cfBrand--login {
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 4px !important;
}

body.sistemaigreja .cfBrand--login .cfBrand__logo {
  display: block !important;
  width: 100% !important;
  height: 40px !important;
  max-height: 40px !important;
  object-position: center center !important;
}

body.sistemaigreja .cfBrand--login .cfBrand__product {
  align-items: center !important;
}

body.sistemaigreja .cfBrand--login .cfBrand__name {
  font-size: 20px !important;
}

body.sistemaigreja .cfBrand--login .cfBrand__tagline {
  max-width: 280px !important;
}

body.sistemaigreja.sidenav-collapsed .cfBrand--sidebar .cfBrand__logo {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  object-fit: cover !important;
  object-position: left center !important;
  border-radius: 8px !important;
}

body.sistemaigreja.sidenav-collapsed .cfBrand__mono {
  display: none !important;
}

body.sistemaigreja.sidenav-collapsed .cfBrand {
  align-items: center !important;
}

body.sistemaigreja .sidebar .sideNavTitle {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.sistemaigreja .sideNavKicker {
  color: var(--ig-sidebar-muted, rgba(255, 255, 255, 0.62)) !important;
}

body.sistemaigreja .sideNavIcon {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14) !important;
}

body.sistemaigreja .sideNavIcon .igIcon {
  color: #ffffff !important;
}

body.sistemaigreja .sidebar .sideNavBody {
  padding: 10px 10px 16px !important;
  gap: 0 !important;
}

body.sistemaigreja .sideNavZone {
  margin-bottom: 11px !important;
}

body.sistemaigreja .sideNavZone:first-child {
  margin-bottom: 10px !important;
}

body.sistemaigreja .sideNavZone__lbl {
  display: block !important;
  margin: 0 !important;
  padding: 0 10px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.52) !important;
}

body.sistemaigreja .sideNavPinned--group {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  padding: 3px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body.sistemaigreja .sideNavPinned:not(.sideNavPinned--group) {
  gap: 1px !important;
  padding: 0 3px !important;
}

body.sistemaigreja .sideNavPinned .sideItemGlyph,
body.sistemaigreja .sideNavSectionItems .sideItemGlyph {
  display: inline-flex !important;
}

body.sistemaigreja .sidebar .sideItem,
body.sistemaigreja .sidebar a.sideItem,
body.sistemaigreja .sidebar button.sideItem {
  display: flex !important;
  width: 100% !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  align-items: center !important;
  box-shadow: none !important;
  padding: 5px 9px !important;
  min-height: 38px !important;
  gap: 9px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, box-shadow 0.15s ease !important;
}

body.sistemaigreja .sidebar .sideItem:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja .sidebar .sideItem.active {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: transparent !important;
  box-shadow: inset 2px 0 0 var(--ig-primary) !important;
}

body.sistemaigreja .sidebar .sideItemStack {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

body.sistemaigreja .sidebar .sideItemGlyph {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  margin-top: 0 !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

body.sistemaigreja .sidebar .sideItemGlyph .igIcon,
body.sistemaigreja .sidebar .sideItemGlyph .igIcon--sm {
  width: 18px !important;
  height: 18px !important;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemGlyph {
  background: var(--ig-primary) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body.sistemaigreja .sidebar .sideItemTitle,
body.sistemaigreja .sidebar .sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar a.sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar button.sideItem:not(.active) .sideItemTitle,
body.sistemaigreja .sidebar .sideItem.active .sideItemTitle {
  display: block !important;
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: color 0.15s ease, opacity 0.15s ease !important;
}

body.sistemaigreja .sidebar .sideItem:hover .sideItemTitle,
body.sistemaigreja .sidebar .sideItem.active .sideItemTitle {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

body.sistemaigreja .sidebar .sideItem.active .sideItemTitle {
  font-weight: 650 !important;
  letter-spacing: 0.01em !important;
}

body.sistemaigreja .sidebar .sideItem .igIcon,
body.sistemaigreja .sidebar .sideItem:not(.active) .igIcon,
body.sistemaigreja .sidebar .sideItem.active .igIcon {
  color: #ffffff !important;
}

body.sistemaigreja .sidebar .sideItem--secondary {
  min-height: 34px !important;
  padding: 4px 9px !important;
}

body.sistemaigreja .sidebar .sideItem--secondary .sideItemGlyph {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.sistemaigreja .sidebar .sideItem--secondary .sideItemTitle {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

body.sistemaigreja .sidebar .sideItem--secondary.active .sideItemTitle {
  font-weight: 650 !important;
  color: #ffffff !important;
}

body.sistemaigreja .sidebar .sideItemDesc {
  margin-top: 2px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemTitle {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 650 !important;
}

body.sistemaigreja .sidebar .sideItem--import:not(.active) .sideItemGlyph {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemTitle {
  color: #fecaca !important;
  font-weight: 600 !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .sideItemGlyph {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(254, 202, 202, 0.35) !important;
}

body.sistemaigreja .sidebar .sideItem--danger:not(.active) .igIcon {
  color: #fecaca !important;
}

body.sistemaigreja .top,
body.sistemaigreja header.top,
body.sistemaigreja .wrap > .top {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.1) !important;
}

body.sistemaigreja .brandMark {
  background: var(--ig-primary) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 3px 10px rgba(var(--ig-brand-rgb), 0.38) !important;
}

body.sistemaigreja .ig-premiumCard:not(.ig-premiumCard--master) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--ig-card-elev-shadow) !important;
}

body.sistemaigreja .igSubnav__btn.active {
  background: var(--ig-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(var(--ig-brand-rgb), 0.35) !important;
}

body.sistemaigreja .sideItemMeta--standalone,
body.sistemaigreja .sideItemMeta--rel {
  color: var(--ig-sidebar-muted, rgba(255, 255, 255, 0.55)) !important;
}

body.sistemaigreja .sidebar .sideNavBody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
}

body.sistemaigreja .panel,
body.sistemaigreja .relFiltroHero,
body.sistemaigreja .relFiltroCompact,
body.sistemaigreja .tesourariaShell,
body.sistemaigreja .chartBox,
body.sistemaigreja .kpiCard,
body.sistemaigreja .relDreMetric,
body.sistemaigreja .lancOpBar,
body.sistemaigreja .tableScroll,
body.sistemaigreja .confTabs {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--ig-card-elev-shadow) !important;
}

body.sistemaigreja .igBtnPrimary {
  background: var(--ig-primary) !important;
  border-color: var(--ig-primary) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 6px rgba(var(--ig-brand-rgb), 0.35),
    0 6px 16px rgba(var(--ig-brand-rgb), 0.2) !important;
}

body.sistemaigreja .igBtnPrimary:hover {
  background: var(--ig-accent-hover) !important;
  border-color: var(--ig-accent-hover) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 8px rgba(var(--ig-brand-rgb), 0.4),
    0 8px 20px rgba(var(--ig-brand-rgb), 0.24) !important;
}

body.sistemaigreja .igBtn:not(.igBtnPrimary):not(.igBtnDanger) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--rel,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--tes {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--ig-ui-shadow-sm),
    0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

/* --- CF Gestão: login institucional --- */
body.sistemaigreja.loginPage {
  min-height: 100vh !important;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 48%, #e8edf3 100%) !important;
}

body.sistemaigreja.loginPage .wrap {
  max-width: none !important;
}

body.sistemaigreja .loginShell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 24px 16px !important;
}

body.sistemaigreja .loginCard {
  width: 100% !important;
  max-width: 420px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
}

body.sistemaigreja .loginCard__brandBand {
  padding: 22px 24px 18px !important;
  background: var(--ig-accent, #0369a1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.sistemaigreja .loginCard__body {
  padding: 22px 24px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.sistemaigreja .loginCard__formHead {
  margin-top: 18px !important;
}

body.sistemaigreja .loginCard__title {
  margin: 0 0 6px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.sistemaigreja .loginCard__lead {
  margin: 0 !important;
}

body.sistemaigreja .loginCard__form {
  margin-top: 16px !important;
}

body.sistemaigreja .loginCard__status {
  margin-top: 12px !important;
}

/* === Fase A: igSubnav — linguagem sidebar Opção A (fundo claro, prioridade final) === */
body.sistemaigreja .igSubnav,
body.sistemaigreja .igSubnav--lanc,
body.sistemaigreja .igSubnav--lancFluxo,
body.sistemaigreja .igSubnav--conf,
body.sistemaigreja .igSubnav--confFluxo,
body.sistemaigreja .igSubnav--igreja,
body.sistemaigreja .igSubnav--igrejaFluxo,
body.sistemaigreja .igSubnav--tes,
body.sistemaigreja .tesourariaSubnav,
body.sistemaigreja .tesourariaSubnav.igSubnav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 1px !important;
  margin: 0 0 14px !important;
  padding: 3px !important;
  border: 1px solid var(--ig-line, #e2e8f0) !important;
  border-radius: 11px !important;
  background: rgba(248, 250, 252, 0.96) !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}

body.sistemaigreja #tab-lancamentos .igSubnav--lancFluxo,
body.sistemaigreja #tab-conf-configuracoes .igSubnav--confFluxo,
body.sistemaigreja #tab-conf-igreja .igSubnav--igrejaFluxo {
  margin: 0 !important;
  width: 100% !important;
  border-color: var(--ig-line, #e2e8f0) !important;
  background: rgba(248, 250, 252, 0.96) !important;
  box-shadow: none !important;
}

body.sistemaigreja .tesourariaSubnav,
body.sistemaigreja .tesourariaSubnav.igSubnav {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.sistemaigreja .igSubnav__btn,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn {
  appearance: none !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--ig-muted, #64748b) !important;
  font: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

body.sistemaigreja .igSubnav__btn:hover,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab:hover,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn:hover {
  background: rgba(15, 23, 42, 0.045) !important;
  color: var(--ig-text, #0f172a) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja .igSubnav__btn:focus-visible,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab:focus-visible,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn:focus-visible {
  outline: 2px solid var(--ig-primary) !important;
  outline-offset: 1px !important;
}

body.sistemaigreja .igSubnav__btn.active,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.active,
body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn.active,
body.sistemaigreja #tab-lancamentos .igSubnav--lancFluxo .igSubnav__btn.active,
body.sistemaigreja #tab-conf-configuracoes .igSubnav--confFluxo .igSubnav__btn.active,
body.sistemaigreja #tab-conf-igreja .igSubnav--igrejaFluxo .igSubnav__btn.active,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .igSubnav__btn.active,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .igSubnav__btn.active,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .igSubnav__btn.active {
  background: linear-gradient(
    90deg,
    rgba(var(--ig-brand-rgb), 0.2) 0%,
    rgba(var(--ig-brand-rgb), 0.13) 38%,
    rgba(var(--ig-brand-rgb), 0.09) 100%
  ) !important;
  color: var(--ig-accent-hover, var(--ig-accent)) !important;
  border-color: transparent !important;
  box-shadow:
    inset 3px 0 0 var(--ig-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  font-weight: 700 !important;
  letter-spacing: 0.012em !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja .igSubnav__btn,
  body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn {
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
  }

  body.sistemaigreja .igSubnav,
  body.sistemaigreja .igSubnav--conf,
  body.sistemaigreja .igSubnav--confFluxo,
  body.sistemaigreja .igSubnav--igreja,
  body.sistemaigreja .igSubnav--igrejaFluxo {
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja .igSubnav,
  body.sistemaigreja .igSubnav--lanc,
  body.sistemaigreja .igSubnav--lancFluxo,
  body.sistemaigreja .igSubnav--conf,
  body.sistemaigreja .igSubnav--confFluxo,
  body.sistemaigreja .igSubnav--igreja,
  body.sistemaigreja .igSubnav--igrejaFluxo,
  body.sistemaigreja .igSubnav--tes,
  body.sistemaigreja .tesourariaSubnav.igSubnav {
    flex-wrap: nowrap !important;
    margin-bottom: 12px !important;
  }

  body.sistemaigreja .igSubnav__btn,
  body.sistemaigreja .tesourariaSubnav .tesourariaSubtab.igSubnav__btn {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
  }
}

/* === Lançamentos: filtros, faixa resumo/ações, estado vazio (prioridade final) === */
body.sistemaigreja #tab-entradas.lancFluxo--entradas,
body.sistemaigreja #tab-saidas.lancFluxo--saidas,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias {
  --lanc-filter-input-h: 32px;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoStickyShell,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoStickyShell,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoStickyShell {
  padding: 8px 10px !important;
  border-color: var(--lf-sticky-border) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterPanel,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterPanel,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterPanel,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar--fluxoLean,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancOpBar--fluxoLean,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancOpBar--fluxoLean {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancOpBar__filters,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancOpBar__filters,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancOpBar__filters,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .filtrosGrid--fluxoLean,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .filtrosGrid--fluxoLean,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .filtrosGrid--fluxoLean {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  grid-template-columns: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup--row,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup--row,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup--row {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup__grid--inline,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup__grid--inline,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup__grid--inline {
  display: grid !important;
  gap: 6px 8px !important;
  align-items: end !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  padding-bottom: 2px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup__grid--inline {
  grid-template-columns: minmax(130px, 1.35fr) 112px 112px repeat(5, minmax(78px, 1fr)) auto !important;
}

body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup__grid--inline {
  grid-template-columns: minmax(130px, 1.5fr) 112px 112px repeat(4, minmax(82px, 1fr)) auto !important;
}

body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup__grid--inline {
  grid-template-columns: minmax(130px, 1.45fr) 112px 112px repeat(4, minmax(82px, 1fr)) auto !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup--search,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup--search,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup--search,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup--refine,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup--refine,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup--refine {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup__eyebrow,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup__eyebrow,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup__eyebrow {
  display: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem.igLab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem.igLab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem.igLab {
  margin: 0 !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem span,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem span,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem span,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem__ghostLab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem__ghostLab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem__ghostLab {
  display: block !important;
  margin-bottom: 5px !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  line-height: 1.2 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem__ghostLab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem__ghostLab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem__ghostLab {
  visibility: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem--clear,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem--clear,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem--clear {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem input,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem input,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem input,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem select,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem select,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem select {
  width: 100% !important;
  min-height: var(--lanc-filter-input-h) !important;
  height: var(--lanc-filter-input-h) !important;
  padding: 0 8px !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  color: var(--ig-text, #0f172a) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem input:focus-visible,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem input:focus-visible,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem input:focus-visible,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem select:focus-visible,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem select:focus-visible,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem select:focus-visible,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterInline input:focus-visible,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterInline input:focus-visible,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterInline input:focus-visible {
  outline: none !important;
  border-color: var(--ig-primary) !important;
  box-shadow: 0 0 0 2px rgba(var(--ig-brand-rgb), 0.12) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnClear,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnClear,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnClear,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterClear,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterClear,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterClear {
  flex: 0 0 auto !important;
  min-height: var(--lanc-filter-input-h) !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnClear:hover,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnClear:hover,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnClear:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  color: var(--ig-text, #0f172a) !important;
  box-shadow: none !important;
}

/* Faixa única: soma + ações */
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoActionStrip,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoActionStrip,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoActionStrip,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoHeadBar,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoHeadBar,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoHeadBar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--lf-accent-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  flex: 0 1 auto !important;
  min-width: 180px !important;
  max-width: 280px !important;
  margin: 0 !important;
  padding: 10px 14px 10px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lf-accent-bg) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard::before,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard::before,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--lf-accent) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard__lab,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard__lab,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard__lab {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--lf-accent-dark) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard__val,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard__val,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard__val {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--lf-accent-dark) !important;
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoShell,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoShell,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoShell {
  gap: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoActionStrip__tools,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoActionStrip__tools,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoActionStrip__tools,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBulkBar,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBulkBar,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBulkBar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  min-height: 48px !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  border-left: 1px solid var(--lf-accent-border) !important;
  background: #ffffff !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSelHint,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSelHint,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSelHint {
  flex: 0 1 auto !important;
  margin: 0 0 0 12px !important;
  padding-right: 0 !important;
  font-size: 0.76rem !important;
  text-align: left !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnDel,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnDel,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnDel {
  margin-left: auto !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(225, 29, 72, 0.22) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #be123c !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnDel:hover:not(:disabled),
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnDel:hover:not(:disabled),
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnDel:hover:not(:disabled) {
  background: #fff1f2 !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnDel:disabled,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnDel:disabled,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnDel:disabled {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #94a3b8 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnExport,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnExport,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnExport {
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid var(--ig-primary) !important;
  border-radius: 8px !important;
  background: var(--ig-primary) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnExport:hover,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnExport:hover,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnExport:hover {
  background: var(--ig-accent-hover, var(--ig-primary)) !important;
  border-color: var(--ig-accent-hover, var(--ig-primary)) !important;
  box-shadow: none !important;
}

/* Estado vazio premium */
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaEmpty,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaEmpty,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaEmpty {
  position: relative !important;
  max-width: 420px !important;
  margin: 24px auto !important;
  padding: 28px 22px 22px !important;
  text-align: center !important;
  border: 1px solid rgba(100, 116, 139, 0.14) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  color: var(--ig-text, #0f172a) !important;
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaEmpty::before,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaEmpty::before,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaEmpty::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--lf-accent) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaEmpty::after,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaEmpty::after,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaEmpty::after {
  content: "Tente ampliar o per\u00edodo ou limpar os filtros." !important;
  display: block !important;
  margin-top: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.45 !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup__grid--inline {
    grid-template-columns: minmax(116px, 1.15fr) 104px 104px repeat(5, minmax(72px, 108px)) auto !important;
  }

  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup__grid--inline,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup__grid--inline {
    grid-template-columns: minmax(116px, 1.2fr) 104px 104px repeat(4, minmax(72px, 108px)) auto !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoActionStrip,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoActionStrip,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoActionStrip {
    flex-wrap: wrap !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard {
    flex: 1 1 100% !important;
    max-width: none !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1) !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoActionStrip__tools,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoActionStrip__tools,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoActionStrip__tools {
    flex: 1 1 100% !important;
    border-left: 0 !important;
    justify-content: flex-start !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSelHint,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSelHint,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSelHint {
    flex: 1 1 auto !important;
    text-align: left !important;
  }
}

@media (max-width: 720px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterGroup__grid--inline,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterGroup__grid--inline,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterGroup__grid--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem--search,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem--search,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem--search,
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem--clear,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem--clear,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem--clear {
    grid-column: 1 / -1 !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnClear,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnClear,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnClear {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* === Lançamentos P1 + P2: polimento visual (prioridade final) === */

/* P1.1 — Hint do hub mais leve */
body.sistemaigreja #tab-lancamentos .lancFluxoConfigHint {
  margin: 2px 0 0 !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
}

/* P1.5 — Gaps verticais reduzidos */
body.sistemaigreja #tab-lancamentos .lancFluxoShell--lancHub {
  gap: 4px !important;
}

body.sistemaigreja:has(#tab-lancamentos.active) .contentInner {
  gap: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoStickyShell,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoStickyShell,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoStickyShell {
  padding: 7px 10px !important;
  border-radius: 12px !important;
}

body.sistemaigreja #tab-lancamentos .lancFluxoStickyShell {
  padding: 8px 10px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoTablePane,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoTablePane,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoTablePane {
  padding: 8px 12px 10px !important;
  border-radius: 12px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoSomaCard,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoSomaCard,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoSomaCard {
  padding: 8px 14px 8px 18px !important;
}

/* P2.6 — Label “Buscar” em leve destaque */
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoFilterItem--search > span,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoFilterItem--search > span,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoFilterItem--search > span {
  color: #475569 !important;
  font-weight: 800 !important;
}

/* P2.8 — Thead suavizado (não compete com a soma) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTable thead th,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTable thead th,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTable thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  box-shadow: inset 0 -1px 0 rgba(100, 116, 139, 0.12) !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancFluxoBtnDel,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancFluxoBtnDel,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancFluxoBtnDel {
    margin-left: auto !important;
  }
}

/* === igTable--data · Fase 1: fundação + Lançamentos / Contas (prioridade final) === */

body.sistemaigreja #tab-entradas.lancFluxo--entradas,
body.sistemaigreja #tab-saidas.lancFluxo--saidas,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas {
  --ig-tbl-head-bg: #f8fafc;
  --ig-tbl-head-color: #64748b;
  --ig-tbl-head-border: rgba(100, 116, 139, 0.12);
  --ig-tbl-row-bg: #ffffff;
  --ig-tbl-row-hover: #f8fafc;
  --ig-tbl-row-border: rgba(241, 245, 249, 0.98);
  --ig-tbl-shell-border: var(--lf-accent-border, rgba(100, 116, 139, 0.14));
  --ig-tbl-selected-bg: var(--lf-accent-soft, var(--ig-accent-soft, rgba(239, 246, 255, 0.72)));
  --ig-tbl-selected-bar: var(--lf-accent, var(--ig-primary));
  --ig-tbl-cell-py: 8px;
  --ig-tbl-cell-px: 12px;
  --ig-tbl-radius: 12px;
}

/* Shell (alias: lancListaTableWrap → igTableShell) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableWrap,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableWrap,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableWrap,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableWrap,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .igTableShell,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .igTableShell,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .igTableShell,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .igTableShell {
  margin: 0 !important;
  max-height: none !important;
  border-radius: var(--ig-tbl-radius) !important;
  border: 1px solid var(--ig-tbl-shell-border) !important;
  background: var(--ig-tbl-row-bg) !important;
  box-shadow: none !important;
  overflow: auto !important;
}

/* Base: igTable--data + alias lancListaTable (somente Fase 1) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable {
  width: 100% !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--ig-tbl-row-bg) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data thead th,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable thead th,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data thead th,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable thead th,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data thead th,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable thead th,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data thead th,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  padding: 7px var(--ig-tbl-cell-px) !important;
  background: var(--ig-tbl-head-bg) !important;
  background-image: none !important;
  color: var(--ig-tbl-head-color) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 var(--ig-tbl-head-border) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody td,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data tbody td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable tbody td {
  padding: var(--ig-tbl-cell-py) var(--ig-tbl-cell-px) !important;
  vertical-align: middle !important;
  background: var(--ig-tbl-row-bg) !important;
  color: var(--ig-text, #0f172a) !important;
  border-bottom: 1px solid var(--ig-tbl-row-border) !important;
  line-height: 1.35 !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody tr:last-child td,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody tr:last-child td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody tr:last-child td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody tr:last-child td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody tr:last-child td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody tr:last-child td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data tbody tr:last-child td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable tbody tr:last-child td {
  border-bottom: none !important;
}

/* Sem zebra (padrão); opção futura: .igTable--zebra */
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody tr:nth-child(even) td,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody tr:nth-child(even) td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody tr:nth-child(even) td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable tbody tr:nth-child(even) td {
  background: var(--ig-tbl-row-bg) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data.igTable--zebra tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable.igTable--zebra tbody tr:nth-child(even) td {
  background: #fafbfc !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody tr:hover td,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody tr:hover td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody tr:hover td,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody tr:hover td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody tr:hover td,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody tr:hover td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data tbody tr:hover td,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable tbody tr:hover td {
  background: var(--ig-tbl-row-hover) !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data td.num,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable td.num,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data td.num,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable td.num,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data td.num,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable td.num,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.igTable--data td.num,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable td.num {
  font-variant-numeric: tabular-nums !important;
}

/* Checkbox / coluna de seleção */
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data .colSel,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable .colSel,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data .colSel,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable .colSel,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data .colSel,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable .colSel {
  width: 36px !important;
  min-width: 36px !important;
  padding-left: 10px !important;
  padding-right: 4px !important;
  text-align: center !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data .colSel input[type="checkbox"],
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable .colSel input[type="checkbox"],
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data .colSel input[type="checkbox"],
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable .colSel input[type="checkbox"],
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data .colSel input[type="checkbox"],
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable .colSel input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: var(--ig-tbl-selected-bar) !important;
  vertical-align: middle !important;
}

/* Seleção visual — :has (moderno) + fallback no checkbox */
@supports selector(:has(*)) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody tr:has(.colSel input:checked) td,
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody tr:has(.colSel input:checked) td,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody tr:has(.colSel input:checked) td,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody tr:has(.colSel input:checked) td,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody tr:has(.colSel input:checked) td,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody tr:has(.colSel input:checked) td {
    background: var(--ig-tbl-selected-bg) !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody tr:has(.colSel input:checked) td:first-child,
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody tr:has(.colSel input:checked) td:first-child,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody tr:has(.colSel input:checked) td:first-child,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody tr:has(.colSel input:checked) td:first-child,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody tr:has(.colSel input:checked) td:first-child,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody tr:has(.colSel input:checked) td:first-child {
    box-shadow: inset 3px 0 0 var(--ig-tbl-selected-bar) !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.igTable--data tbody tr:has(.colSel input:checked):hover td,
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody tr:has(.colSel input:checked):hover td,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.igTable--data tbody tr:has(.colSel input:checked):hover td,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody tr:has(.colSel input:checked):hover td,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.igTable--data tbody tr:has(.colSel input:checked):hover td,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody tr:has(.colSel input:checked):hover td {
    background: var(--ig-tbl-selected-bg) !important;
  }
}

@supports not selector(:has(*)) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable .colSel input[type="checkbox"]:checked,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable .colSel input[type="checkbox"]:checked,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable .colSel input[type="checkbox"]:checked {
    outline: 2px solid var(--ig-tbl-selected-bar) !important;
    outline-offset: 1px !important;
  }
}

/* Ações de linha (alias: lancListaTableAcoes → igTableRowActions) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable .colAcoes.lancListaTableAcoes,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable .colAcoes.igTableRowActions,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable .colAcoes.lancListaTableAcoes,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable .colAcoes.igTableRowActions,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable .colAcoes.lancListaTableAcoes,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable .colAcoes.igTableRowActions,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable .colAcoes.lancListaTableAcoes,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable .colAcoes.igTableRowActions {
  width: 1% !important;
  white-space: nowrap !important;
  text-align: right !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .igTableRowActions,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableAcoes,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .igTableRowActions,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableAcoes,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .igTableRowActions,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableAcoes,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .igTableRowActions {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes .igBtn.igBtnSm,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .igTableRowActions .igBtn.igBtnSm,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableAcoes .igBtn.igBtnSm,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .igTableRowActions .igBtn.igBtnSm,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableAcoes .igBtn.igBtnSm,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .igTableRowActions .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableAcoes .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .igTableRowActions .igBtn.igBtnSm {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(100, 116, 139, 0.28) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .igTableRowActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableAcoes .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .igTableRowActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableAcoes .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .igTableRowActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableAcoes .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .igTableRowActions .igBtn.igBtnSm:hover {
  background: #f8fafc !important;
  border-color: rgba(100, 116, 139, 0.42) !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-entradas.lancFluxo--entradas .igTableRowActions .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableAcoes .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-saidas.lancFluxo--saidas .igTableRowActions .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableAcoes .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .igTableRowActions .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableAcoes .igBtn.igBtnSm:focus-visible,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .igTableRowActions .igBtn.igBtnSm:focus-visible {
  outline: 2px solid var(--ig-tbl-selected-bar) !important;
  outline-offset: 1px !important;
}

/* Status pill compacto na célula (alias visual; classes existentes) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable .igConcPill,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable .igConcPill,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable .igConcPill {
  padding: 2px 8px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable tbody tr.contaRowInativa td {
  opacity: 0.72 !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable thead th,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable thead th,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable thead th,
  body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable thead th {
    font-size: 0.58rem !important;
    padding: 6px 10px !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable tbody td,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable tbody td,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable tbody td,
  body.sistemaigreja #tab-conf-contas.lancFluxo--contas table.igTable.lancListaTable tbody td {
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas .lancListaTableAcoes .igBtn.igBtnSm,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas .lancListaTableAcoes .igBtn.igBtnSm,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias .lancListaTableAcoes .igBtn.igBtnSm,
  body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancListaTableAcoes .igBtn.igBtnSm {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
  }
}

/* Fase 1 — respiro Status ↔ Ações (Lançamentos) */
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable:has(thead th.colAcoes) tbody td:nth-last-child(2) {
  width: 1% !important;
  white-space: nowrap !important;
  padding-right: 14px !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable thead th.colAcoes,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable thead th.colAcoes,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable thead th.colAcoes,
body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable td.colAcoes.lancListaTableAcoes,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable td.colAcoes.lancListaTableAcoes,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable td.colAcoes.lancListaTableAcoes {
  min-width: 88px !important;
  padding-left: 18px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable .igConcPill,
body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable .igConcPill,
body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable .igConcPill {
  display: inline-flex !important;
  vertical-align: middle !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable:has(thead th.colAcoes) tbody td:nth-last-child(2) {
    padding-right: 12px !important;
  }

  body.sistemaigreja #tab-entradas.lancFluxo--entradas table.igTable.lancListaTable td.colAcoes.lancListaTableAcoes,
  body.sistemaigreja #tab-saidas.lancFluxo--saidas table.igTable.lancListaTable td.colAcoes.lancListaTableAcoes,
  body.sistemaigreja #tab-transferencias.lancFluxo--transferencias table.igTable.lancListaTable td.colAcoes.lancListaTableAcoes {
    min-width: 80px !important;
    padding-left: 14px !important;
  }
}

/* === igTable--data · Fase 2: Configurações (prioridade final) === */

body.sistemaigreja #tab-conf-categorias,
body.sistemaigreja #tab-conf-meios,
body.sistemaigreja #tab-conf-usuarios,
body.sistemaigreja #tab-conf-finalidades,
body.sistemaigreja #tab-conf-auditoria,
body.sistemaigreja #tab-conf-importacao {
  --ig-tbl-head-bg: #f8fafc;
  --ig-tbl-head-color: #64748b;
  --ig-tbl-head-border: rgba(100, 116, 139, 0.12);
  --ig-tbl-row-bg: #ffffff;
  --ig-tbl-row-hover: #f8fafc;
  --ig-tbl-row-border: rgba(241, 245, 249, 0.98);
  --ig-tbl-shell-border: rgba(100, 116, 139, 0.14);
  --ig-tbl-selected-bar: var(--ig-primary);
  --ig-tbl-cell-py: 8px;
  --ig-tbl-cell-px: 12px;
  --ig-tbl-radius: 12px;
}

/* Pane lista (alias lancFluxoTablePane) */
body.sistemaigreja #tab-conf-categorias.hubFluxo--table > .hubFluxoTablePane,
body.sistemaigreja #tab-conf-meios.hubFluxo--table > .hubFluxoTablePane,
body.sistemaigreja #tab-conf-usuarios.hubFluxo--table > .hubFluxoTablePane,
body.sistemaigreja #tab-conf-finalidades.hubFluxo--table > .hubFluxoTablePane,
body.sistemaigreja #tab-conf-auditoria.hubFluxo--auditoria > .hubFluxoTablePane {
  padding: 8px 12px 10px !important;
  border-radius: var(--ig-tbl-radius) !important;
  background: #e8edf3 !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-conf-auditoria.hubFluxo--auditoria > .hubFluxoStickyPanel {
  border-radius: var(--ig-tbl-radius) !important;
  box-shadow: none !important;
}

/* Shell tabela (alias lancListaTableWrap / igTableShell) */
body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane > .tableScroll,
body.sistemaigreja #tab-conf-meios .hubFluxoTablePane > .tableScroll,
body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane > .tableScroll,
body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane > .tableScroll,
body.sistemaigreja #tab-conf-auditoria .hubFluxoTablePane > .tableScroll,
body.sistemaigreja #tab-conf-importacao #impPreviewBox .tableScroll {
  margin: 0 !important;
  max-height: none !important;
  border-radius: var(--ig-tbl-radius) !important;
  border: 1px solid var(--ig-tbl-shell-border) !important;
  background: var(--ig-tbl-row-bg) !important;
  box-shadow: none !important;
  overflow: auto !important;
}

/* igTable--data por escopo (sem alterar HTML) */
body.sistemaigreja #tab-conf-categorias table.igTable,
body.sistemaigreja #tab-conf-meios table.igTable,
body.sistemaigreja #tab-conf-usuarios table.igTable,
body.sistemaigreja #tab-conf-finalidades table.igTable,
body.sistemaigreja #tab-conf-auditoria table.igTable,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable {
  width: 100% !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--ig-tbl-row-bg) !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable thead th,
body.sistemaigreja #tab-conf-meios table.igTable thead th,
body.sistemaigreja #tab-conf-usuarios table.igTable thead th,
body.sistemaigreja #tab-conf-finalidades table.igTable thead th,
body.sistemaigreja #tab-conf-auditoria table.igTable thead th,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  padding: 7px var(--ig-tbl-cell-px) !important;
  background: var(--ig-tbl-head-bg) !important;
  background-image: none !important;
  color: var(--ig-tbl-head-color) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 var(--ig-tbl-head-border) !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable tbody td,
body.sistemaigreja #tab-conf-meios table.igTable tbody td,
body.sistemaigreja #tab-conf-usuarios table.igTable tbody td,
body.sistemaigreja #tab-conf-finalidades table.igTable tbody td,
body.sistemaigreja #tab-conf-auditoria table.igTable tbody td,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable tbody td {
  padding: var(--ig-tbl-cell-py) var(--ig-tbl-cell-px) !important;
  vertical-align: middle !important;
  background: var(--ig-tbl-row-bg) !important;
  color: var(--ig-text, #0f172a) !important;
  border-bottom: 1px solid var(--ig-tbl-row-border) !important;
  line-height: 1.35 !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-conf-meios table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-conf-usuarios table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-conf-finalidades table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-conf-auditoria table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable tbody tr:last-child td {
  border-bottom: none !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-meios table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-usuarios table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-finalidades table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-auditoria table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable tbody tr:nth-child(even) td {
  background: var(--ig-tbl-row-bg) !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable tbody tr:hover td,
body.sistemaigreja #tab-conf-meios table.igTable tbody tr:hover td,
body.sistemaigreja #tab-conf-usuarios table.igTable tbody tr:hover td,
body.sistemaigreja #tab-conf-finalidades table.igTable tbody tr:hover td,
body.sistemaigreja #tab-conf-auditoria table.igTable tbody tr:hover td,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable tbody tr:hover td {
  background: var(--ig-tbl-row-hover) !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable td.num,
body.sistemaigreja #tab-conf-meios table.igTable td.num,
body.sistemaigreja #tab-conf-usuarios table.igTable td.num,
body.sistemaigreja #tab-conf-finalidades table.igTable td.num,
body.sistemaigreja #tab-conf-auditoria table.igTable td.num,
body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable td.num {
  font-variant-numeric: tabular-nums !important;
}

/* Respiro coluna anterior ↔ Ações */
body.sistemaigreja #tab-conf-categorias table.igTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-conf-meios table.igTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-conf-usuarios table.igTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-conf-finalidades table.igTable:has(thead th.colAcoes) thead th:nth-last-child(2),
body.sistemaigreja #tab-conf-categorias table.igTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
body.sistemaigreja #tab-conf-meios table.igTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
body.sistemaigreja #tab-conf-usuarios table.igTable:has(thead th.colAcoes) tbody td:nth-last-child(2),
body.sistemaigreja #tab-conf-finalidades table.igTable:has(thead th.colAcoes) tbody td:nth-last-child(2) {
  white-space: nowrap !important;
  padding-right: 14px !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable th.colAcoes,
body.sistemaigreja #tab-conf-meios table.igTable th.colAcoes,
body.sistemaigreja #tab-conf-usuarios table.igTable th.colAcoes,
body.sistemaigreja #tab-conf-finalidades table.igTable th.colAcoes,
body.sistemaigreja #tab-conf-auditoria table.igTable th.colAcoes,
body.sistemaigreja #tab-conf-categorias table.igTable td.colAcoes,
body.sistemaigreja #tab-conf-meios table.igTable td.colAcoes,
body.sistemaigreja #tab-conf-usuarios table.igTable td.colAcoes,
body.sistemaigreja #tab-conf-finalidades table.igTable td.colAcoes,
body.sistemaigreja #tab-conf-auditoria table.igTable td.colAcoes {
  width: 1% !important;
  min-width: 88px !important;
  padding-left: 18px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

/* Ações de linha — alias tableActions / cellActions → lancListaTableAcoes */
body.sistemaigreja #tab-conf-categorias table.igTable .tableActions,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions,
body.sistemaigreja #tab-conf-auditoria table.igTable td.colAcoes.cellActions {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

/* Editar / Ver detalhes — ghost */
body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-auditoria table.igTable td.colAcoes.cellActions > .igBtn.igBtnSm,
body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .jsCadEdit,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions .jsCadEdit,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .jsUsuEdit,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .jsFinEdit {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(100, 116, 139, 0.28) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-auditoria table.igTable td.colAcoes.cellActions > .igBtn.igBtnSm:hover,
body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .jsCadEdit:hover,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions .jsCadEdit:hover,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .jsUsuEdit:hover,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .jsFinEdit:hover {
  background: #f8fafc !important;
  border-color: rgba(100, 116, 139, 0.42) !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

/* Excluir / Inativar — outline discreto (padrão lancFluxoBtnDel) */
body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .jsCadDel,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions .jsCadDel,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .jsFinDel,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .jsUsuInat,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .igBtnDanger {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(225, 29, 72, 0.22) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #be123c !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .jsCadDel:hover,
body.sistemaigreja #tab-conf-meios table.igTable .tableActions .jsCadDel:hover,
body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .jsFinDel:hover,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .jsUsuInat:hover,
body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .igBtnDanger:hover {
  background: #fff1f2 !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: #be123c !important;
  box-shadow: none !important;
}

/* Novo cadastro — primary flat (toolbar) */
body.sistemaigreja #tab-conf-categorias .panelHeadRow .igBtnPrimary,
body.sistemaigreja #tab-conf-meios .panelHeadRow .igBtnPrimary,
body.sistemaigreja #tab-conf-usuarios .panelHeadRow .igBtnPrimary,
body.sistemaigreja #tab-conf-finalidades .panelHeadRow .igBtnPrimary {
  box-shadow: none !important;
}

/* Contas — refinamentos CSS (sem reestruturar) */
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoShell {
  gap: 4px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoStickyShell {
  padding: 7px 10px !important;
  border-radius: var(--ig-tbl-radius, 12px) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoHeadBar {
  border: 1px solid var(--lf-accent-border) !important;
  border-radius: var(--ig-tbl-radius, 12px) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  gap: 0 !important;
  padding: 0 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoSomaCard {
  padding: 8px 14px 8px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoBulkBar {
  min-height: 48px !important;
  padding: 6px 12px !important;
  border-left: 1px solid var(--lf-accent-border) !important;
  background: #ffffff !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem span,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancOpBar__searchLab {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem input,
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterItem select {
  min-height: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  border-radius: 8px !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancOpBar__searchLab {
  color: #475569 !important;
  font-weight: 800 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoFilterClear {
  min-height: 32px !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoTablePane {
  padding: 8px 12px 10px !important;
  border-radius: var(--ig-tbl-radius, 12px) !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-conf-categorias table.igTable thead th,
  body.sistemaigreja #tab-conf-meios table.igTable thead th,
  body.sistemaigreja #tab-conf-usuarios table.igTable thead th,
  body.sistemaigreja #tab-conf-finalidades table.igTable thead th,
  body.sistemaigreja #tab-conf-auditoria table.igTable thead th,
  body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable thead th {
    font-size: 0.58rem !important;
    padding: 6px 10px !important;
  }

  body.sistemaigreja #tab-conf-categorias table.igTable tbody td,
  body.sistemaigreja #tab-conf-meios table.igTable tbody td,
  body.sistemaigreja #tab-conf-usuarios table.igTable tbody td,
  body.sistemaigreja #tab-conf-finalidades table.igTable tbody td,
  body.sistemaigreja #tab-conf-auditoria table.igTable tbody td,
  body.sistemaigreja #tab-conf-importacao #impPreviewBox table.igTable tbody td {
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
  }

  body.sistemaigreja #tab-conf-categorias table.igTable td.colAcoes,
  body.sistemaigreja #tab-conf-meios table.igTable td.colAcoes,
  body.sistemaigreja #tab-conf-usuarios table.igTable td.colAcoes,
  body.sistemaigreja #tab-conf-finalidades table.igTable td.colAcoes,
  body.sistemaigreja #tab-conf-auditoria table.igTable td.colAcoes {
    min-width: 80px !important;
    padding-left: 14px !important;
  }

  body.sistemaigreja #tab-conf-categorias table.igTable .tableActions .igBtn.igBtnSm,
  body.sistemaigreja #tab-conf-meios table.igTable .tableActions .igBtn.igBtnSm,
  body.sistemaigreja #tab-conf-usuarios table.igTable .tableActions .igBtn.igBtnSm,
  body.sistemaigreja #tab-conf-finalidades table.igTable .tableActions .igBtn.igBtnSm,
  body.sistemaigreja #tab-conf-auditoria table.igTable td.colAcoes.cellActions > .igBtn.igBtnSm {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
  }
}

/* === Fase 2 · Ajustes finais Configurações (prioridade final) === */

/* 1. CTAs principais alinhados ao título do bloco */
body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane .panelHeadRow,
body.sistemaigreja #tab-conf-meios .hubFluxoTablePane .panelHeadRow,
body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane .panelHeadRow,
body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane .panelHeadRow {
  align-items: center !important;
  margin-bottom: 6px !important;
  min-height: 32px !important;
}

body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane .panelHeadRow h3,
body.sistemaigreja #tab-conf-meios .hubFluxoTablePane .panelHeadRow h3,
body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane .panelHeadRow h3,
body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane .panelHeadRow h3 {
  display: flex !important;
  align-items: center !important;
  min-height: 32px !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane .panelHeadRow .igBtnPrimary,
body.sistemaigreja #tab-conf-meios .hubFluxoTablePane .panelHeadRow .igBtnPrimary,
body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane .panelHeadRow .igBtnPrimary,
body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane .panelHeadRow .igBtnPrimary {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane > .statusOk:not(:empty),
body.sistemaigreja #tab-conf-meios .hubFluxoTablePane > .statusOk:not(:empty),
body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane > .statusOk:not(:empty),
body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane > .statusOk:not(:empty) {
  margin-bottom: 6px !important;
}

/* 2. Usuários — altura mínima do shell quando poucos registros */
body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane > .tableScroll {
  min-height: 160px !important;
}

/* 3. Contas — aproximar faixa soma da tabela */
body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoHeadBar + .lancFluxoTablePane {
  margin-top: 0 !important;
}

body.sistemaigreja #tab-conf-contas.lancFluxo--contas .lancFluxoTablePane {
  padding: 4px 12px 10px !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane .panelHeadRow,
  body.sistemaigreja #tab-conf-meios .hubFluxoTablePane .panelHeadRow,
  body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane .panelHeadRow,
  body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane .panelHeadRow {
    min-height: 30px !important;
  }

  body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane .panelHeadRow h3,
  body.sistemaigreja #tab-conf-meios .hubFluxoTablePane .panelHeadRow h3,
  body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane .panelHeadRow h3,
  body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane .panelHeadRow h3,
  body.sistemaigreja #tab-conf-categorias .hubFluxoTablePane .panelHeadRow .igBtnPrimary,
  body.sistemaigreja #tab-conf-meios .hubFluxoTablePane .panelHeadRow .igBtnPrimary,
  body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane .panelHeadRow .igBtnPrimary,
  body.sistemaigreja #tab-conf-finalidades .hubFluxoTablePane .panelHeadRow .igBtnPrimary {
    min-height: 30px !important;
    height: 30px !important;
  }

  body.sistemaigreja #tab-conf-usuarios .hubFluxoTablePane > .tableScroll {
    min-height: 148px !important;
  }
}

/* === igTable--data · Fase 3A: Igreja — Membros, Eventos, Cheques (prioridade final) === */

body.sistemaigreja #tab-membros,
body.sistemaigreja #tab-eventos,
body.sistemaigreja #tab-cheques {
  --ig-tbl-head-bg: #f8fafc;
  --ig-tbl-head-color: #64748b;
  --ig-tbl-head-border: rgba(100, 116, 139, 0.12);
  --ig-tbl-row-bg: #ffffff;
  --ig-tbl-row-hover: #f8fafc;
  --ig-tbl-row-border: rgba(241, 245, 249, 0.98);
  --ig-tbl-shell-border: rgba(100, 116, 139, 0.14);
  --ig-tbl-cell-py: 8px;
  --ig-tbl-cell-px: 12px;
  --ig-tbl-radius: 12px;
}

/* Lista — shell tabela (alias lancListaTableWrap / hubFluxoTablePane > .tableScroll) */
body.sistemaigreja #tab-membros .hubFluxoBody > .panel:has(.tableScroll) .tableScroll,
body.sistemaigreja #tab-eventos .hubFluxoBody > .panel:has(.tableScroll) .tableScroll,
body.sistemaigreja #tab-cheques .hubFluxoBody > .panel:has(.tableScroll) .tableScroll {
  margin: 0 !important;
  max-height: none !important;
  border-radius: var(--ig-tbl-radius) !important;
  border: 1px solid var(--ig-tbl-shell-border) !important;
  background: var(--ig-tbl-row-bg) !important;
  box-shadow: none !important;
  overflow: auto !important;
}

/* igTable--data por escopo (sem alterar HTML) */
body.sistemaigreja #tab-membros table.igTable,
body.sistemaigreja #tab-eventos table.igTable,
body.sistemaigreja #tab-cheques table.igTable {
  width: 100% !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--ig-tbl-row-bg) !important;
}

body.sistemaigreja #tab-membros table.igTable thead th,
body.sistemaigreja #tab-eventos table.igTable thead th,
body.sistemaigreja #tab-cheques table.igTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  padding: 7px var(--ig-tbl-cell-px) !important;
  background: var(--ig-tbl-head-bg) !important;
  background-image: none !important;
  color: var(--ig-tbl-head-color) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 var(--ig-tbl-head-border) !important;
}

body.sistemaigreja #tab-membros table.igTable tbody td,
body.sistemaigreja #tab-eventos table.igTable tbody td,
body.sistemaigreja #tab-cheques table.igTable tbody td {
  padding: var(--ig-tbl-cell-py) var(--ig-tbl-cell-px) !important;
  vertical-align: middle !important;
  background: var(--ig-tbl-row-bg) !important;
  color: var(--ig-text, #0f172a) !important;
  border-bottom: 1px solid var(--ig-tbl-row-border) !important;
  line-height: 1.35 !important;
}

body.sistemaigreja #tab-membros table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-eventos table.igTable tbody tr:last-child td,
body.sistemaigreja #tab-cheques table.igTable tbody tr:last-child td {
  border-bottom: none !important;
}

body.sistemaigreja #tab-membros table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-eventos table.igTable tbody tr:nth-child(even) td,
body.sistemaigreja #tab-cheques table.igTable tbody tr:nth-child(even) td {
  background: var(--ig-tbl-row-bg) !important;
}

body.sistemaigreja #tab-membros table.igTable tbody tr:hover td,
body.sistemaigreja #tab-eventos table.igTable tbody tr:hover td,
body.sistemaigreja #tab-cheques table.igTable tbody tr:hover td {
  background: var(--ig-tbl-row-hover) !important;
}

body.sistemaigreja #tab-membros table.igTable td.num,
body.sistemaigreja #tab-eventos table.igTable td.num,
body.sistemaigreja #tab-cheques table.igTable td.num {
  font-variant-numeric: tabular-nums !important;
}

body.sistemaigreja #tab-membros table.igTable .igEmptyRow,
body.sistemaigreja #tab-eventos table.igTable .igEmptyRow,
body.sistemaigreja #tab-cheques table.igTable .igEmptyRow {
  padding: 14px var(--ig-tbl-cell-px) !important;
  color: var(--ig-muted, #64748b) !important;
  text-align: center !important;
  font-size: 0.8125rem !important;
}

/* Cheques — respiro Status ↔ Ações */
body.sistemaigreja #tab-cheques table.igTable thead th:nth-last-child(2),
body.sistemaigreja #tab-cheques table.igTable tbody td:nth-last-child(2) {
  white-space: nowrap !important;
  padding-right: 14px !important;
}

body.sistemaigreja #tab-cheques table.igTable thead th:last-child,
body.sistemaigreja #tab-cheques table.igTable tbody td:last-child {
  width: 1% !important;
  min-width: 120px !important;
  padding-left: 18px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

/* Cheques — ações de linha (ghost + outline destrutivo) */
body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  margin-left: 4px !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm:first-child {
  margin-left: 0 !important;
}

body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm.igBtnPrimary {
  border: 1px solid rgba(100, 116, 139, 0.28) !important;
  background: #ffffff !important;
  color: #334155 !important;
}

body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm.igBtnPrimary:hover {
  background: #f8fafc !important;
  border-color: rgba(100, 116, 139, 0.42) !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm.igBtnDanger {
  border: 1px solid rgba(225, 29, 72, 0.22) !important;
  background: #ffffff !important;
  color: #be123c !important;
}

body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm.igBtnDanger:hover {
  background: #fff1f2 !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: #be123c !important;
  box-shadow: none !important;
}

@media (max-width: 1366px) {
  body.sistemaigreja #tab-membros .hubFluxoBody > .panel:has(.tableScroll) .tableScroll,
  body.sistemaigreja #tab-eventos .hubFluxoBody > .panel:has(.tableScroll) .tableScroll,
  body.sistemaigreja #tab-cheques .hubFluxoBody > .panel:has(.tableScroll) .tableScroll {
    min-height: 148px !important;
  }

  body.sistemaigreja #tab-cheques table.igTable tbody td:last-child .igBtn.igBtnSm {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
  }
}

/* ================================================================
   Metas (Orçamento) · 4C-C — shell premium (escopo #tab-orcamento.orcFluxo)
   ================================================================ */
body.sistemaigreja:has(#tab-orcamento.orcFluxo.active) .content {
  padding-top: 0 !important;
}

body.sistemaigreja:has(#tab-orcamento.orcFluxo.active) .contentInner {
  padding-top: 4px !important;
  padding-bottom: 0 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo.tabpane.active {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 12px 8px !important;
  gap: 6px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 6px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoStickyShell {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoSubnav.igSubnav {
  margin: 0 !important;
  padding: 2px 4px 4px !important;
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoSubtab.igSubnav__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoSubtab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoSubtab[data-orc-sub="prioridades"] .orcFluxoSubtab__badge {
  background: #2563eb;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoPanes {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoPane {
  display: none !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoPane.active {
  display: flex !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoStatus {
  flex: 0 0 auto !important;
  margin: 0 !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertasHost--pane,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRankingHost--pane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertasHost--pane .orcAlertas,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRankingHost--pane .orcRanking {
  min-height: 100%;
}

body.sistemaigreja #tab-orcamento.orcFluxo #orcPane-categorias .orcMetasDrePane {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo #orcPane-categorias .orcMetasDrePane__scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane__titles {
  min-width: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane__title {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #0f172a;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcCatViewBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcCatViewBar__lbl {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcCatViewBar__sel {
  min-width: 168px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane__totais {
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane__totRec {
  color: #15803d;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane__totDesp {
  color: #be123c;
}

/* Metas · Categorias = visual DRE (mesmas cores da aba Relatórios) */
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 10px !important;
  background: #e8eef4 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(100, 116, 139, 0.14) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable thead th.relDreCol--linha {
  text-align: left;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable thead th.num {
  text-align: right;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tbody td {
  padding: 8px 10px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07) !important;
  font-size: 0.8125rem !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--blockHead td {
  padding: 0 !important;
  border: none !important;
  height: 44px !important;
  min-height: 44px !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--blockHead .relDreBlockHead__label {
  padding: 0 12px 0 14px !important;
  text-align: center !important;
  height: 44px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--blockHead-receita td {
  background: #ecfdf5 !important;
  border-top: 2px solid rgba(22, 163, 74, 0.12) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--blockHead-despesa td {
  background: #fff1f2 !important;
  border-top: 2px solid rgba(225, 29, 72, 0.12) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaItem td,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaHdr td {
  background: #ecfdf5 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaItem td,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaHdr td {
  background: #fff1f2 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaItem .relDreCol--linha,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaHdr .relDreCol--linha {
  color: #15803d !important;
  box-shadow: 3px 0 8px rgba(15, 23, 42, 0.04) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaItem .relDreCol--linha,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaHdr .relDreCol--linha {
  color: #be123c !important;
  box-shadow: 3px 0 8px rgba(15, 23, 42, 0.04) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaHdr td,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaHdr td {
  font-weight: 750 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaEnd td {
  border-bottom: 1px solid rgba(22, 163, 74, 0.1) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaEnd td {
  border-bottom: 1px solid rgba(225, 29, 72, 0.1) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--resultadoFinal td {
  background: #f5f3ff !important;
  font-weight: 800 !important;
  border-top: 1px solid rgba(124, 58, 237, 0.12) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--resultadoFinal .relDreCol--linha {
  color: #6d28d9 !important;
  background: #f5f3ff !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaItem:hover td,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--receitaHdr:hover td {
  background: #dcfce7 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaItem:hover td,
body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--despesaHdr:hover td {
  background: #ffe4e6 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreTable tr.relDreRow--resultadoFinal:hover td {
  background: #ede9fe !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreLinhaLabel--detail {
  font-size: 0.78rem;
  font-weight: 500;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .relDreCol--linha {
  max-width: 16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .orcMetasDre__exec {
  min-width: 108px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .orcMetasDre__exec {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .orcMetasDre__progress {
  flex: 1 1 auto;
  min-width: 48px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .orcMetasDre__pct {
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #475569;
  white-space: nowrap;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .orcMetasDre__desvio--pos {
  color: #15803d !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane .orcMetasDre__desvio--neg {
  color: #be123c !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcMetasDrePane tr.orcMetasDre__row--hl td {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.45) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo #orcPane-resumo .orcGerencialShell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoShell--editing .orcFluxoStickyShell,
body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoShell--editing .orcFluxoPanes,
body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoShell--editing .orcFluxoStatus {
  display: none !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoShell--editing .orcFluxoEdit {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoHead__eyebrow {
  display: block;
  margin: 0 0 2px;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoHead h2 {
  margin: 0;
  color: #0f172a;
}

body.sistemaigreja #tab-orcamento.orcFluxo .pageHead__lead {
  margin-top: 4px;
  font-size: 0.84rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.72) 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoToolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoToolbar__lab {
  margin: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoToolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoStatus {
  margin: 0;
  min-height: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  min-height: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__hero {
  padding: 14px 16px 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__eyebrow {
  color: #2563eb;
  margin-bottom: 2px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpiRow {
  gap: 8px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi {
  min-height: 72px !important;
  padding: 9px 12px 8px !important;
  border-radius: 10px !important;
  position: relative;
  overflow: hidden;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: #2563eb;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--receita::before { background: #16a34a; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--despesa::before { background: #e11d48; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--resultado::before { background: #2563eb; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--critico::before { background: #e11d48; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--cobertura::before { background: #64748b; }

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--receita { background: #ecfdf5; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--despesa { background: #f8fafc; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--resultado { background: #ffffff; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--critico { background: #fff1f2; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi--cobertura { background: #f8fafc; }

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi .ig-premiumKpi__name {
  font-size: 0.62rem !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi .ig-premiumKpi__value {
  font-size: clamp(0.92rem, 1.05vw, 1.14rem) !important;
  margin-bottom: 2px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi .ig-premiumKpi__note {
  min-height: 0 !important;
  font-size: 0.66rem !important;
  line-height: 1.25 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__cols {
  display: none;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertasHost,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRankingHost {
  min-width: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking {
  padding: 12px 14px !important;
  margin: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas__eyebrow { color: #be123c; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking__eyebrow { color: #2563eb; }

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip__tag {
  grid-row: span 2;
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

body.sistemaigreja #tab-orcamento.orcFluxo .dashAlertItem--critico .orcAlertChip__tag {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

body.sistemaigreja #tab-orcamento.orcFluxo .dashAlertItem--atencao .orcAlertChip__tag {
  background: rgba(202, 138, 4, 0.14);
  color: #854d0e;
}

body.sistemaigreja #tab-orcamento.orcFluxo .dashAlertItem--info .orcAlertChip__tag {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip__cat {
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip__msg {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.3;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas__empty,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking__empty {
  margin: 0;
  font-size: 0.82rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas__moderate {
  margin-top: 8px;
  font-size: 0.78rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas__moderate summary {
  cursor: pointer;
  color: #64748b;
  font-weight: 600;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertList--moderate {
  margin-top: 6px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__pos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #475569;
  background: #f1f5f9;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top1 {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.9) 0%, #fff 100%);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top1 .orcRankItem__pos {
  background: #2563eb;
  color: #fff;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top2 {
  border-color: rgba(100, 116, 139, 0.2);
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, #fff 100%);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top2 .orcRankItem__pos {
  background: #64748b;
  color: #fff;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top3 {
  border-color: rgba(148, 163, 184, 0.22);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top3 .orcRankItem__pos {
  background: #94a3b8;
  color: #fff;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__badge {
  align-self: flex-start;
  font-size: 0.68rem !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__desvio {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
  white-space: nowrap;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking__scroll {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: underline;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialHint {
  margin: 0;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(238, 242, 255, 0.65);
  border: 1px dashed rgba(37, 99, 235, 0.22);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail {
  padding: 12px 14px 14px !important;
  background: #f8fafc !important;
  border-color: rgba(226, 232, 240, 0.85) !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail__table {
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  overflow: auto;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable thead th {
  font-size: 0.66rem;
  padding: 8px 10px;
  background: #f8fafc;
  color: #64748b;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable tbody td {
  font-size: 0.82rem;
  padding: 8px 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__desvio {
  font-weight: 700;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__desvio--pos { color: #15803d; }
body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__desvio--neg { color: #be123c; }

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__exec {
  min-width: 88px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__pct {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: #94a3b8;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__row--hl {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: rgba(238, 242, 255, 0.55);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail__totais {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit {
  background: var(--ig-surface-muted);
  gap: 14px;
  padding: 12px 14px 14px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__intro {
  flex: 1 1 220px;
  min-width: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__intro .lancFormTitle {
  margin: 0 0 4px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__copyBar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__copyLbl {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  align-self: center;
  margin-right: 2px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__copyLab {
  margin: 0;
  font-size: 0.72rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__copyLab select {
  min-width: 72px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__block {
  position: relative;
  padding: 12px 12px 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__block--receita::before {
  background: #16a34a;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__block--despesa::before {
  background: #e11d48;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__block--receita {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.14);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__block--despesa {
  background: #f8fafc;
  border-color: rgba(225, 29, 72, 0.12);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__blockHead {
  margin-bottom: 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__eyebrow {
  display: block;
  margin: 0 0 2px;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__eyebrow--receita {
  color: #15803d;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__eyebrow--despesa {
  color: #be123c;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__blockTitle {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #0f172a;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__grid.formGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__fieldLab {
  font-size: 0.72rem;
  line-height: 1.25;
  color: #334155;
  font-weight: 500;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__field input {
  width: 100%;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__empty {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

@media (max-width: 1200px) {
  body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__grid.formGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__grid.formGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__grid.formGrid {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoEdit__copyBar {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  body.sistemaigreja #tab-orcamento.orcFluxo .orcKpiRow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__cols {
    grid-template-columns: 1fr;
  }

  body.sistemaigreja #tab-orcamento.orcFluxo .orcKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Metas · 4C-C refine — altura, prioridade #1, tabela legível */
body.sistemaigreja #tab-orcamento.orcFluxo {
  gap: 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoHead {
  margin-bottom: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .pageHead__lead {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 52rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoToolbar {
  padding: 8px 12px;
  gap: 8px 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell {
  gap: 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__hero {
  padding: 10px 12px 10px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__heroHead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__eyebrow {
  margin: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__title {
  margin: 0;
  font-size: 0.88rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi {
  min-height: 58px !important;
  padding: 7px 10px 6px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi .ig-premiumKpi__value {
  font-size: clamp(0.88rem, 1vw, 1.06rem) !important;
  margin-bottom: 0 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi .ig-premiumKpi__note {
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialShell__cols {
  gap: 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking {
  padding: 9px 11px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas .ig-premiumCard__head,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking .ig-premiumCard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-bottom: 7px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas .ig-premiumEyebrow,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking .ig-premiumEyebrow {
  margin: 0;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertas .ig-premiumCard__title,
body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking .ig-premiumCard__title {
  margin: 0;
  font-size: 0.82rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertList {
  gap: 5px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip {
  padding: 7px 9px 7px 11px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip__cat {
  font-size: 0.78rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcAlertChip__msg {
  font-size: 0.7rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankList {
  gap: 5px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem {
  padding: 6px 9px;
  gap: 6px 8px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top1 {
  border-left: 4px solid #2563eb;
  padding-left: 7px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.55) 0%, #fff 72%);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top1 .orcRankItem__pos {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.88rem;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top1 .orcRankItem__name {
  font-size: 0.86rem;
  color: #1e3a8a;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem--top1 .orcRankItem__desvio {
  color: #1d4ed8;
  font-size: 0.8rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__prioMax {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__pos {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.76rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__name {
  font-size: 0.78rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRankItem__desvio {
  font-size: 0.74rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcRanking__scroll {
  margin-top: 6px;
  font-size: 0.72rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcGerencialHint {
  padding: 6px 10px;
  font-size: 0.76rem;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail {
  padding: 10px 12px 12px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail .ig-premiumCard__head {
  margin-bottom: 8px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail__table {
  max-height: min(42vh, 360px);
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable {
  width: 100% !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  background: #fff !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  padding: 6px 10px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 #cbd5e1 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable tbody td {
  padding: 7px 10px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e2e8f0 !important;
  line-height: 1.3 !important;
  background: #fff !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable tbody tr:hover td {
  background: rgba(238, 242, 255, 0.65) !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable tbody tr:last-child td {
  border-bottom: none !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable tbody td:first-child {
  font-weight: 650;
  color: #0f172a;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sistemaigreja #tab-orcamento.orcFluxo table.igTable.igTable--data.orcFluxoTable tbody td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__desvio {
  font-weight: 700 !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcProgress--compact {
  height: 5px;
  margin-bottom: 2px;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__pct {
  margin-top: 0;
  font-size: 0.64rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__pct--empty {
  color: #cbd5e1;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable tbody .igBadge {
  font-size: 0.64rem !important;
  padding: 2px 7px !important;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoTable__row--hl td {
  background: rgba(219, 234, 254, 0.75) !important;
  box-shadow: inset 3px 0 0 #2563eb;
}

body.sistemaigreja #tab-orcamento.orcFluxo .orcFluxoDetail__totais {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-height: 820px), (max-width: 1366px) {
  body.sistemaigreja #tab-orcamento.orcFluxo .pageHead__lead {
    display: none;
  }

  body.sistemaigreja #tab-orcamento.orcFluxo .orcKpi {
    min-height: 54px !important;
  }
}

/* ================================================================
   Comparativo · compDre (mesmo shell da DRE, dois períodos)
   ================================================================ */
body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreStatus {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreToolbar {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreFilters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px 12px;
  min-width: 0;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoPeriod {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoPeriod__lbl {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoPeriod--a .compFluxoPeriod__lbl {
  color: #2563eb;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoPeriod__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoToolbar__lab {
  margin: 0;
  min-width: 64px;
  font-size: 0.68rem;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoToolbar__lab select {
  min-width: 64px;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreFilters .igBtnPrimary {
  min-height: 34px;
  padding: 6px 14px;
  align-self: flex-end;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreTablePane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreWideScroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* Comparativo — distribuição equilibrada das 4 colunas */
body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCol--linha {
  width: 34% !important;
  min-width: 220px !important;
  max-width: none !important;
  padding: 9px 12px 9px 14px !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCol--mes {
  width: 24% !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCol--analise {
  width: 18% !important;
  min-width: 140px !important;
  max-width: none !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreLinhaLabel {
  font-size: 0.88rem !important;
  font-weight: 650 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.35 !important;
  display: block !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreLinhaLabel--detail {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreLinhaLabel--total {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreBlockHead__title {
  font-size: 0.92rem !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCellStack {
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  gap: 3px !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCol--analise .relDreCellStack {
  align-items: center !important;
  text-align: center !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCellStack__val {
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCellStack__av {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tbody td.relDreCol--mes,
body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tbody td.relDreCol--analise {
  padding: 8px 14px !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tbody td.relDreCol--linha {
  padding: 9px 12px 9px 14px !important;
  vertical-align: middle !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreWideScroll {
  border-radius: 0 0 12px 12px;
}

/* Cabeçalho de colunas com períodos escolhidos (fixo acima da tabela) */
body.sistemaigreja #tab-comparativo-periodos .compDreColHead {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) 1fr 1fr minmax(140px, 0.85fr);
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  overflow: hidden;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  min-height: 52px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__cell:last-child {
  border-right: 0;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__cell--label {
  background: #e2e8f0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__tag {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.1;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__cell--a .compDreColHead__tag {
  color: #2563eb;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__cell--b .compDreColHead__tag {
  color: #7c3aed;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__val {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__hint {
  font-size: 0.72rem;
  font-weight: 650;
  color: #94a3b8;
}

body.sistemaigreja #tab-comparativo-periodos .compDreColHead__cell--analise {
  align-items: center;
  text-align: center;
  background: #f1f5f9;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp thead tr.compPeriodTitleRow th {
  position: sticky;
  top: 0;
  z-index: 7;
  vertical-align: bottom;
  padding: 6px 10px 8px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: #eef2f7 !important;
}

body.sistemaigreja #tab-comparativo-periodos .compPeriodTitleRow__tag {
  display: block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja #tab-comparativo-periodos .compPeriodTitleRow__col--a .compPeriodTitleRow__tag {
  color: #2563eb;
}

body.sistemaigreja #tab-comparativo-periodos .compPeriodTitleRow__col--b .compPeriodTitleRow__tag {
  color: #7c3aed;
}

body.sistemaigreja #tab-comparativo-periodos .compPeriodTitleRow__val {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja #tab-comparativo-periodos .compPeriodTitleRow__hint {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  color: #94a3b8;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp thead tr.compColKpiRow th {
  position: sticky;
  top: 52px;
  z-index: 6;
  vertical-align: top;
  padding: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: #f8fafc !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp thead .compColKpiRow__label {
  background: #e2e8f0 !important;
  vertical-align: bottom;
  padding: 8px 10px !important;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpiRow__lbl {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpiStack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  min-height: 118px;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpiStack__period {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
  text-align: center;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpiGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpi {
  position: relative;
  padding: 6px 8px 7px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  min-height: 46px;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpi--receitas::before { background: #16a34a; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi--despesas::before { background: #e11d48; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi--resultado::before { background: #2563eb; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi--margem::before { background: #64748b; }

body.sistemaigreja #tab-comparativo-periodos .compColKpi--receitas { background: #ecfdf5; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi--despesas { background: #fff1f2; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi--resultado { background: #ffffff; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi--margem { background: #f8fafc; }

body.sistemaigreja #tab-comparativo-periodos .compColKpi__name {
  display: block;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.15;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpi__value {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
}

body.sistemaigreja #tab-comparativo-periodos .compColKpi__value--pos { color: #15803d; }
body.sistemaigreja #tab-comparativo-periodos .compColKpi__value--neg { color: #be123c; }

/* Coluna Análise horizontal (A vs B) */
body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCol--analise {
  background: #fafbfc !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp thead .compColKpiRow__analise {
  background: #f1f5f9 !important;
  vertical-align: top;
}

body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 8px 6px 10px;
  min-height: 118px;
  text-align: center;
}

body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead__title {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  line-height: 1.2;
}

body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead__hint {
  font-size: 0.58rem;
  font-weight: 600;
  color: #94a3b8;
}

body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead__val {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead__val--pos { color: #15803d; }
body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead__val--neg { color: #be123c; }

body.sistemaigreja #tab-comparativo-periodos .compAnaliseHead__note {
  font-size: 0.54rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCellStack__pct {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCellStack__pct.positive {
  color: #15803d !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .relDreCellStack__pct.negative {
  color: #be123c !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp .compAnaliseDiff {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tr.relDreRow--receitaItem .relDreCol--analise .relDreCellStack__pct.positive,
body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tr.relDreRow--receitaHdr .relDreCol--analise .relDreCellStack__pct.positive {
  color: #15803d !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tr.relDreRow--despesaItem .relDreCol--analise .relDreCellStack__pct.positive,
body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tr.relDreRow--despesaHdr .relDreCol--analise .relDreCellStack__pct.positive {
  color: #be123c !important;
}

body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tr.relDreRow--despesaItem .relDreCol--analise .relDreCellStack__pct.negative,
body.sistemaigreja #tab-comparativo-periodos .relDreTable--comp tr.relDreRow--despesaHdr .relDreCol--analise .relDreCellStack__pct.negative {
  color: #15803d !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreToolbar--filtersOnly {
  justify-content: flex-end !important;
}

body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreFilters--solo {
  width: 100%;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  body.sistemaigreja #tab-comparativo-periodos.igDashFin .compDreFilters {
    width: 100%;
    justify-content: flex-start;
  }

  body.sistemaigreja.sidenav-on .content:has(#tab-comparativo-periodos.igDashFin.active) {
    min-height: 0 !important;
    max-height: none !important;
  }

  body.sistemaigreja #tab-comparativo-periodos.igDashFin.tabpane.active {
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 900px) {
  body.sistemaigreja #tab-comparativo-periodos.igDashFin .compFluxoPeriod__row {
    flex-wrap: wrap;
  }
}

/* ================================================================
   Tesouraria · Extrato bancário compacto (#tab-tesouraria.tesFluxo)
   ================================================================ */
body.sistemaigreja:has(#tab-tesouraria.tesFluxo.active) .content {
  padding-top: 0 !important;
}

body.sistemaigreja:has(#tab-tesouraria.tesFluxo.active) .contentInner {
  padding-top: 4px !important;
  padding-bottom: 0 !important;
}

body.sistemaigreja.sidenav-on .content:has(#tab-tesouraria.tesFluxo.active) {
  padding-left: 0 !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo.tabpane.active {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 12px 8px !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesourariaShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 6px !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesourariaPanes {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesourariaPane.active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo #tesourariaPane-conciliacao.active {
  overflow: auto !important;
  display: block !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesExtratoFluxoShell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 6px !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesExtratoStickyShell {
  position: static !important;
  top: auto !important;
  flex: 0 0 auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 8px 10px 9px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesExtratoBody {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .tesourariaSubnav {
  margin: 0 !important;
  padding: 2px 4px 4px !important;
  flex: 0 0 auto !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .pageHead--tesCompact {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

body.sistemaigreja #tab-tesouraria.tesFluxo .panel--tesExtrato {
  padding: 10px 12px 12px;
}

body.sistemaigreja .tesExtratoMonthNavWrap {
  min-width: 0;
}

body.sistemaigreja .tesExtratoMonthNav.igDashFin__monthNav--compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

body.sistemaigreja .tesExtratoMonthNav .lancFluxoFilterItem--mes,
body.sistemaigreja .tesExtratoMonthNav .lancFluxoFilterItem--ano {
  margin: 0;
  min-width: 0;
}

body.sistemaigreja .tesExtratoMonthNav .lancFluxoFilterItem--mes select {
  min-width: 68px;
  max-width: 78px;
}

body.sistemaigreja .tesExtratoMonthNav .lancFluxoFilterItem--ano select {
  min-width: 72px;
  max-width: 84px;
}

body.sistemaigreja .tesExtratoMonthNav .igDashFin__monthBtn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

body.sistemaigreja .tesExtratoFilters.filtrosGrid--fluxoLean {
  margin: 0 !important;
}

body.sistemaigreja .tesExtratoFilters .lancFluxoFilterGroup__grid--inline {
  align-items: end;
}

body.sistemaigreja .tesExtratoContaTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

body.sistemaigreja .tesExtratoContaTab {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #f8fafc;
  color: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.sistemaigreja .tesExtratoContaTab:hover {
  border-color: #94a3b8;
  background: #fff;
}

body.sistemaigreja .tesExtratoContaTab.active {
  background: var(--ig-accent);
  border-color: var(--ig-accent);
  color: #fff;
}

body.sistemaigreja .tesExtratoContaTabs__empty {
  font-size: 0.82rem;
  padding: 4px 0;
}

body.sistemaigreja .tesExtratoFilters.filtrosGrid {
  display: block;
  margin-bottom: 0;
}

body.sistemaigreja .tesExtratoFilters .lancFluxoFilterGroup__grid--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: end;
}

body.sistemaigreja .tesExtratoFilters .lancFluxoFilterItem__ghostLab {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #2563eb;
}

body.sistemaigreja .tesExtratoFilters .filtrosBtns--inline,
body.sistemaigreja .tesExtratoFilters__actions {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  align-self: end;
}

body.sistemaigreja .tesExtratoFilters .igLab {
  margin: 0;
  gap: 3px;
  font-size: 0.68rem;
}

body.sistemaigreja .tesExtratoFilters .igLab input,
body.sistemaigreja .tesExtratoFilters .igLab select {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 0.82rem;
}

body.sistemaigreja .tesExtratoStatus {
  margin: 0 0 4px;
  font-size: 0.78rem;
}

body.sistemaigreja .tesExtratoTableWrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
}

body.sistemaigreja table.igTable--extratoBanco thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e8eef4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  padding: 7px 8px;
}

body.sistemaigreja table.igTable--extratoBanco tbody td {
  padding: 6px 8px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

body.sistemaigreja table.igTable--extratoBanco .col-ext-data {
  white-space: nowrap;
  width: 92px;
}

body.sistemaigreja table.igTable--extratoBanco .col-ext-tipo {
  width: 72px;
  font-size: 0.76rem;
  color: #64748b;
}

body.sistemaigreja table.igTable--extratoBanco .col-ext-conc {
  width: 88px;
}

body.sistemaigreja table.igTable--extratoBanco .col-ext-val,
body.sistemaigreja table.igTable--extratoBanco .col-ext-saldo {
  white-space: nowrap;
}

body.sistemaigreja table.igTable--extratoBanco tr.extratoRow--saldoIni td,
body.sistemaigreja table.igTable--extratoBanco tr.extratoRow--saldoFin td {
  background: #eef2ff !important;
  border-top: 1px solid rgba(37, 99, 235, 0.18);
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
  font-weight: 700;
  color: #1e3a8a;
}

body.sistemaigreja table.igTable--extratoBanco tr.extratoRow--saldoDia td {
  background: #f8fafc !important;
  border-top: 1px dashed rgba(100, 116, 139, 0.28);
  font-weight: 650;
  color: #475569;
  font-size: 0.78rem;
}

body.sistemaigreja table.igTable--extratoBanco tr.extratoRow--mov:nth-child(even) td {
  background: rgba(248, 250, 252, 0.65);
}

body.sistemaigreja table.igTable--extratoBanco .extratoValCredito {
  color: #15803d;
  font-weight: 650;
}

body.sistemaigreja table.igTable--extratoBanco .extratoValDebito {
  color: #be123c;
  font-weight: 650;
}

@media (max-width: 860px) {
  body.sistemaigreja .tesExtratoFilters .lancFluxoFilterGroup__grid--inline {
    flex-direction: column;
    align-items: stretch;
  }

  body.sistemaigreja .tesExtratoMonthNav.igDashFin__monthNav--compact {
    flex-wrap: wrap;
  }
}
