html, body { margin: 0; background: #F3F5F7; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.carregando { display: flex; align-items: center; justify-content: center; height: 100vh; color: #14532D; font-weight: 600; }

.marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.marca img { width: 30px; height: 30px; }
.marca small { font-weight: 500; opacity: .8; margin-left: 4px; }
.usuario { font-size: .85rem; opacity: .9; margin-right: 6px; }
.item-canal { display: inline-flex; align-items: center; gap: 10px; }
.item-canal img { width: 22px; height: 22px; }
.fraco { color: #6B7280; font-size: .8rem; }
.erro { color: #C62828; }
a.limpo { color: inherit; text-decoration: none; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; background: #FFF3CD; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

.selo-sintesys { display: flex; justify-content: center; padding: 16px 16px 24px; }
.selo-sintesys a { display: inline-flex; align-items: center; gap: 8px; color: #5F6B7A; text-decoration: none; font-size: .75rem; opacity: .85; }
.selo-sintesys a:hover, .selo-sintesys a:focus-visible { opacity: 1; }
.selo-sintesys img { height: 34px; width: auto; }
.selo-sintesys.escuro a { color: #C9D1DB; }

/* Números do topo */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #E5E7EB;
       cursor: pointer; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.kpi:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.kpi-rotulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #6B7280; font-weight: 600; }
.kpi-valor { font-size: 1.6rem; font-weight: 800; color: #14532D; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi.alerta { border-color: #D32F2F; background: #FEF2F2; }
.kpi.alerta .kpi-valor { color: #C62828; }
.kpi.hoje .kpi-valor { color: #15803D; }

/* Listas de cobranças e despesas */
.lista { display: flex; flex-direction: column; gap: 8px; }
.linha { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #E5E7EB;
         border-left: 4px solid #2563EB; text-decoration: none; color: inherit; }
a.linha:hover, .linha.clicavel:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); cursor: pointer; }
.linha.atrasada { border-left-color: #D32F2F; }
.linha.paga { border-left-color: #2E7D32; }
.linha.cancelada { border-left-color: #9CA3AF; opacity: .7; }
.linha .icone { color: #15803D; flex: 0 0 auto; }
.linha .corpo { flex: 1; min-width: 0; }
.linha .titulo { font-weight: 600; font-size: .92rem; }
.linha .sub { font-size: .8rem; color: #6B7280; }
.linha .valor { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.linha .valor small { display: block; font-weight: 500; font-size: .72rem; color: #6B7280; }
.linha .valor .erro { color: #C62828; }
.secao { font-weight: 700; color: #14532D; margin: 16px 0 8px; font-size: .95rem; display: flex; align-items: center; gap: 6px; }

/* Dados em grade (imóvel, contrato, cobrança) */
.dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; }
.dados .rotulo { display: block; font-size: .72rem; color: #6B7280; }
.dados .valor { display: block; font-weight: 600; font-size: .92rem; }
.total-grande { font-size: 1.7rem; font-weight: 800; color: #14532D; font-variant-numeric: tabular-nums; }
.pix { font-family: ui-monospace, Consolas, monospace; font-size: .75rem; word-break: break-all; background: #F8FAFC; border: 1px dashed #CBD5E1;
       border-radius: 8px; padding: 8px 10px; }
.mensagem { white-space: pre-wrap; font-size: .85rem; background: #F0FDF4; border-radius: 8px; padding: 10px 12px; border: 1px solid #DCFCE7; }

/* Arquivos (comprovantes) */
.arquivos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Relatório */
.tabela-relatorio { width: 100%; border-collapse: collapse; font-size: .8rem; background: #fff; }
.tabela-relatorio th, .tabela-relatorio td { padding: 5px 7px; border-bottom: 1px solid #EEF0F3; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela-relatorio th:first-child, .tabela-relatorio td:first-child { text-align: left; white-space: normal; min-width: 140px; }
.tabela-relatorio thead th { background: #F8FAFC; color: #4B5563; font-weight: 700; }
.tabela-relatorio tr.total td { font-weight: 800; border-top: 2px solid #D1D5DB; }
.tabela-relatorio td.zero { color: #C0C6CF; }
.rolagem { overflow-x: auto; border: 1px solid #E5E7EB; border-radius: 10px; }

/* Recibo (impressão) */
.recibo { max-width: 720px; margin: 0 auto; background: #fff; padding: 32px 36px; border: 1px solid #E5E7EB; border-radius: 10px; line-height: 1.6; }
.recibo h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: .08em; }
.recibo .valor-recibo { font-size: 1.3rem; font-weight: 800; border: 2px solid #14532D; border-radius: 8px; padding: 4px 14px; }
.recibo .assinatura { margin-top: 56px; text-align: center; }
.recibo .assinatura .traco { border-top: 1px solid #111; width: 320px; margin: 0 auto 4px; }
@media print {
  .sem-impressao, .mud-appbar, .mud-drawer, .selo-sintesys, .mud-snackbar-provider { display: none !important; }
  .mud-main-content { padding: 0 !important; margin: 0 !important; }
  body, html { background: #fff !important; }
  .recibo { border: none; padding: 0; }
}
