/* Ajustes do portal sobre o AdminKit (Bootstrap 5): identidade PROLIBER e componentes próprios. */
:root {
  --navy: #161d4a;
  --navy-2: #1f2960;
  --ouro: #e6b821;
  --verde: #508743;
}

body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Barra lateral nas cores da marca */
.sidebar, .sidebar-content, .sidebar-link, a.sidebar-link, .sidebar-dropdown, .sidebar-dropdown .sidebar-link { background: var(--navy); }
.sidebar-brand { padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.sidebar-brand img { width: 46px; height: auto; flex: none; }
.sidebar-brand-text { font-size: 1.05rem; font-weight: 600; line-height: 1.15; color: #fff; }
.sidebar-brand-text small { display: block; font-weight: 400; font-size: .72rem; opacity: .7; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-header { color: rgba(255, 255, 255, .55); }
.sidebar-link, a.sidebar-link { color: rgba(233, 236, 239, .72); }
.sidebar-link:hover, a.sidebar-link:hover { color: #fff; background: var(--navy-2); }
.sidebar-item.active > .sidebar-link, .sidebar-item.active .sidebar-link:hover {
  color: #fff; background: var(--navy-2); border-left-color: var(--ouro);
}
.sidebar-link svg, .sidebar-link i { color: rgba(233, 236, 239, .72); }
.sidebar-item.active > .sidebar-link svg { color: var(--ouro); }
.sidebar-badge { margin-left: auto; }

.avatar-foto { width: 40px; height: 53px; object-fit: cover; border-radius: .35rem; border: 2px solid var(--ouro); background: #d9deec; }
.avatar-vazio { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 53px; border-radius: .35rem; background: #3a4585; color: #fff; font-weight: 600; }
.navbar-avatar { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ouro); }

/* Botões e links */
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); background: var(--navy); border-color: var(--navy); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--navy-2) !important; border-color: var(--navy-2) !important; }
.btn-outline-primary { color: var(--navy); border-color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); }
a { color: #28388f; }
.text-primary { color: var(--navy) !important; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-control:focus, .form-select:focus { border-color: #5463b8; box-shadow: 0 0 0 .2rem rgba(22, 29, 74, .15); }
.nav-icon .indicator { background: #dc3545; right: -3px; top: -5px; }   /* sino: bolinha vermelha colada no ícone */
.nav-icon .badge-contador, .badge-contador { background: var(--ouro); color: var(--navy); font-weight: 700; }

/* Selos de situação (assinatura/cobrança) */
.selo { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.selo-RECEBIDO, .selo-CONFIRMADO, .selo-ATIVA { background: #dff3e6; color: #14612f; }
.selo-PENDENTE { background: #e1ecfa; color: #1d4f91; }
.selo-ATRASADO, .selo-INADIMPLENTE { background: #fbe3e1; color: #8f1e18; }
.selo-CANCELADO, .selo-CANCELADA, .selo-ESTORNADO { background: #eceef2; color: #5d6677; }

.copiavel { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #f1f3f8; border: 1px dashed #b9c0d6; border-radius: .4rem; padding: .75rem 1rem; word-break: break-all; user-select: all; margin: 0; }

/* Campos condicionais ([hidden] precisa vencer o display do Bootstrap) */
[hidden] { display: none !important; }

/* Foto */
.foto-miniatura { width: 96px; height: 128px; object-fit: cover; border-radius: .5rem; border: 1px solid #ced4da; background: #e8ebf3; }
.foto-vazia { display: flex; align-items: center; justify-content: center; color: #6c757d; font-size: .8rem; }

/* Correio interno */
.mensagem-item { display: flex; gap: 12px; align-items: center; }
.mensagem-item .aviso { flex: 0 0 3.2rem; }              /* coluna fixa: o assunto alinha em todas as linhas */
.mensagem-item .assunto { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.mensagem-item .assunto:hover { text-decoration: underline; }
.mensagem-item.nao-lida .assunto { font-weight: 700; }
.mensagem-item .quando { color: #6c757d; font-size: .85rem; white-space: nowrap; }
.mensagem-item .acao { flex: 0 0 5rem; text-align: right; min-height: 1px; }
.mensagem .corpo { margin-top: 1rem; line-height: 1.6; }

/* Telas sem menu (login, cadastro) */
.auth-marca { text-align: center; margin: 1.5rem 0 1rem; }
.auth-marca img { width: 96px; height: auto; }
.auth-marca .nome { display: block; margin-top: .5rem; font-weight: 600; color: var(--navy); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }

/* Páginas públicas / impressão (layout_vazio) */
.pagina-vazia { background: #f5f6f8; margin: 0; }

.status-cep { font-size: .8rem; color: #6c757d; min-height: 1.1em; }

/* Prestação de contas: cartões, gráficos (SVG) e tabelas por grupo */
.resumo-valor { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.resumo-receita { color: #007a5a; } .resumo-despesa { color: #b34700; }
.resumo-saldo-neg { color: #b34700; } .resumo-saldo-pos { color: #007a5a; }
.grafico { width: 100%; height: auto; display: block; }
.grafico-rosca { max-width: 230px; margin: 0 auto; }
.g-centro-titulo { font-size: 10px; fill: #6c757d; } .g-centro-valor { font-size: 12.5px; font-weight: 700; fill: #1b2a4a; }
.g-grade { stroke: #e5e7eb; stroke-width: 1; } .g-eixo { font-size: 11px; fill: #6c757d; } .g-leg { font-size: 12px; fill: #1b2a4a; }
.legenda-grafico { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.legenda-grafico li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.legenda-grafico .cor { flex: 0 0 12px; height: 12px; border-radius: 2px; }
.legenda-grafico .nome { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.legenda-grafico .num { white-space: nowrap; color: #4b5563; font-variant-numeric: tabular-nums; }
.tabela-contas td, .tabela-contas th { vertical-align: middle; }
.tabela-contas .grupo td { background: #f3f5fa; font-weight: 700; }
.tabela-contas .item td:first-child { padding-left: 1.6rem; }
.tabela-contas .valor { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela-contas .mes { color: #6c757d; white-space: nowrap; }
.tabela-contas tfoot td { font-weight: 700; border-top: 2px solid #1b2a4a; }
@media print {
  .sidebar, .navbar, .no-print, .sidebar-toggle { display: none !important; }
  .main, .content { margin: 0 !important; padding: 0 !important; width: 100% !important; }
  .card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc; }
  .tabela-contas .grupo td { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.sidebar-nav { padding-bottom: 4rem; }
.sidebar-content { padding-bottom: 2rem; }
