/* Responsividade global */
html, body { overflow-x: hidden; max-width: 100%; }

/* Sistema de Consulta - Estilos */

/* Textarea oculta para copiar débitos */
.debitos-copy-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

:root {
    /* Tema claro (fallback) */
    --cor-primaria: #1f5aa6;
    --cor-primaria-escura: #153b73;
    --cor-secundaria: #18b5a4;
    --cor-fundo: #eef3fb;
    --cor-card: #ffffff;
    --cor-texto: #1f2937;
    --cor-texto-suave: #6b7280;
    --cor-erro: #b91c1c;
    --cor-admin: #6d28d9;
    --sombra: 0 10px 24px rgba(17, 24, 39, 0.08);
    --sombra-card: 0 18px 40px rgba(17, 24, 39, 0.10);
    --borda-suave: 1px solid rgba(15, 23, 42, 0.08);
    --raio: 16px;
    --fonte: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ----- Tema escuro (dashboard estilo referência) ----- */
body.tema-escuro {
    --cor-fundo: #0f0f1a;
    --cor-card: rgba(28, 28, 48, 0.85);
    --cor-texto: #e2e8f0;
    --cor-texto-suave: #94a3b8;
    --cor-primaria: #8b5cf6;
    --cor-primaria-escura: #6d28d9;
    --cor-secundaria: #a78bfa;
    --sombra: 0 10px 40px rgba(0, 0, 0, 0.4);
    --sombra-card: 0 20px 50px rgba(0, 0, 0, 0.35);
    --borda-suave: 1px solid rgba(148, 163, 184, 0.12);
    background: var(--cor-fundo);
    color: var(--cor-texto);
}

.tema-escuro .sidebar {
    background: linear-gradient(180deg, #1e1b2e 0%, #16132a 50%, #120f22 100%);
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.5);
}
.tema-escuro .sidebar::before {
    background: radial-gradient(400px 200px at 30% 0%, rgba(139, 92, 246, 0.15), transparent 55%);
}
.tema-escuro .nav-item.ativo {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.15));
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 0 30px rgba(139, 92, 246, 0.25);
}
.tema-escuro .nav-item.ativo::before {
    background: radial-gradient(circle at 30% 50%, rgba(167, 139, 250, 0.9), transparent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.tema-escuro .nav-item.ativo .nav-ico {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 0 24px rgba(139, 92, 246, 0.35);
}
.tema-escuro .brand-mark {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.tema-escuro .sidebar-user {
    background: rgba(28, 28, 48, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
}
.tema-escuro .btn-sair-lateral:hover {
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 0 24px rgba(139, 92, 246, 0.2);
}

.tema-escuro .topbar {
    background: rgba(28, 28, 48, 0.9);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.tema-escuro .topbar-title h1 { color: #f1f5f9; }
.tema-escuro .topbar-title p { color: var(--cor-texto-suave); }
.tema-escuro .search {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}
.tema-escuro .search-ico { color: rgba(167, 139, 250, 0.9); }
.tema-escuro .search input { color: #e2e8f0; }
.tema-escuro .search input::placeholder { color: #64748b; }
.tema-escuro .pill {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
}
.tema-escuro .pill-label { color: #94a3b8; }
.tema-escuro .pill-value { color: #c4b5fd; }

.tema-escuro .card {
    background: rgba(28, 28, 48, 0.75);
    border-color: rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.tema-escuro .card h2,
.tema-escuro .card h3 { color: #e2e8f0; }
.tema-escuro .subtitulo { color: var(--cor-texto-suave); }
.tema-escuro .campo-grupo label { color: #cbd5e1; }
.tema-escuro .campo-grupo input,
.tema-escuro .campo-grupo select {
    background: rgba(15, 15, 26, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}
.tema-escuro .campo-grupo input::placeholder { color: #64748b; }
.tema-escuro .campo-grupo input:focus,
.tema-escuro .campo-grupo select:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.tema-escuro .btn-primario {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 12px 28px rgba(124, 58, 237, 0.4);
}
.tema-escuro .btn-primario:hover { filter: brightness(1.1); }

.tema-escuro .btn-secundario {
    background: rgba(67, 56, 202, 0.85);
    color: #fff;
    border-color: rgba(129, 140, 248, 0.4);
}
.tema-escuro .btn-secundario:hover {
    background: rgba(99, 102, 241, 0.9);
    color: #fff;
}

.tema-escuro .resultado-conteudo,
.tema-escuro .tabela th {
    background: rgba(30, 27, 46, 0.6);
}
.tema-escuro .resultado-conteudo {
    border-color: rgba(148, 163, 184, 0.12);
}
.tema-escuro .relatorio-pf-titulo { color: #c4b5fd; }
.tema-escuro .relatorio-secao-titulo { color: #e2e8f0; }
.tema-escuro .relatorio-linha dt { color: #94a3b8; }
.tema-escuro .relatorio-linha dd { color: #e2e8f0; }
.tema-escuro .relatorio-detalhe-titulo { color: #a78bfa; }
.tema-escuro .relatorio-detalhe-item { color: #cbd5e1; }
.tema-escuro .tabela th {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.15);
}
.tema-escuro .tabela td { border-color: rgba(148, 163, 184, 0.1); color: #e2e8f0; }
.tema-escuro .tabela tbody tr:hover { background: rgba(139, 92, 246, 0.06); }
.tema-escuro .input-limite {
    background: rgba(15, 15, 26, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}
.tema-escuro .alert-erro { background: rgba(185, 28, 28, 0.2); border-color: rgba(248, 113, 113, 0.3); color: #fca5a5; }
.tema-escuro .alert-sucesso { background: rgba(34, 197, 94, 0.15); border-color: rgba(74, 222, 128, 0.3); color: #86efac; }

/* Empty state (consulta) */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: var(--raio);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(148, 163, 184, 0.2);
}
.tema-escuro .empty-state {
    background: rgba(28, 28, 48, 0.5);
    border-color: rgba(148, 163, 184, 0.15);
}
.empty-state-ico {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.tema-escuro .empty-state-ico { opacity: 0.5; }
.empty-state h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: var(--cor-texto);
}
.tema-escuro .empty-state h3 { color: #cbd5e1; }
.empty-state p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cor-texto-suave);
}
.tema-escuro .empty-state p { color: #94a3b8; }

/* Card título com ícone */
.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}
.card-title-wrap .card-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 90, 166, 0.12);
    border: 1px solid rgba(31, 90, 166, 0.2);
    font-size: 1.2rem;
}
.tema-escuro .card-title-wrap .card-ico {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Avatar iniciais na sidebar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    background: rgba(139, 92, 246, 0.35);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #fff;
    flex-shrink: 0;
}
.tema-escuro .user-avatar {
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.user-chip .nome-usuario { font-weight: 600; }
.sidebar-user .limite-info { font-size: 0.8rem; opacity: 0.9; margin-top: 4px; }

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--fonte);
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.5;
    min-height: 100vh;
}

/* Melhorias gerais */
a { color: inherit; }
::selection { background: rgba(24, 181, 164, 0.22); }

/* ----- Login ----- */
.pagina-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 15% 20%, rgba(24, 181, 164, 0.25), transparent 55%),
                radial-gradient(900px 500px at 85% 10%, rgba(31, 90, 166, 0.25), transparent 50%),
                linear-gradient(135deg, var(--cor-primaria-escura) 0%, var(--cor-primaria) 60%, #2b7ddd 100%);
}

.container-login {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.card-login {
    background: var(--cor-card);
    border-radius: var(--raio);
    box-shadow: var(--sombra-card);
    padding: 2rem;
    border: var(--borda-suave);
}

.card-login .logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-login .icone {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.card-login h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

.card-login .logo p {
    margin: 0;
    color: var(--cor-texto-suave);
    font-size: 0.9rem;
}

.form-login label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-login input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.form-login input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 4px rgba(31, 90, 166, 0.18);
}

.form-login .btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.dica-login {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--cor-texto-suave);
    text-align: center;
}
.dica-login a{
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 700;
}
.dica-login a:hover{ text-decoration: underline; }

/* ----- Alertas ----- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-erro {
    background: #fef2f2;
    color: var(--cor-erro);
    border: 1px solid #fecaca;
}

.alert-sucesso {
    background: #ecfdf5;
    color: #0f766e;
    border: 1px solid #a7f3d0;
}

/* ----- Botões ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .05s, box-shadow .2s, filter .2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primario {
    background: linear-gradient(135deg, var(--cor-primaria), #2b7ddd);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 90, 166, 0.25);
}

.btn-primario:hover {
    filter: brightness(0.98);
}

.btn-primario:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secundario {
    background: #eef2ff;
    color: var(--cor-texto);
    border: 1px solid rgba(31, 90, 166, 0.18);
}

.btn-secundario:hover {
    background: #e0e7ff;
}

.btn-sair {
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.5);
}

.btn-sair:hover {
    background: rgba(255,255,255,.15);
}

.btn-pequeno {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* ----- Layout premium (sidebar + topbar) ----- */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 0;
}

.app-shell[data-sidebar="collapsed"] {
    grid-template-columns: 62px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(900px 260px at 20% 0%, rgba(24, 181, 164, 0.22), transparent 60%),
                linear-gradient(180deg, rgba(21, 59, 115, 1) 0%, rgba(31, 90, 166, 1) 100%);
    color: #fff;
    box-shadow: 16px 0 40px rgba(17, 24, 39, 0.10);
    overflow: hidden;
}

.sidebar-top,
.sidebar-nav,
.sidebar-bottom {
    position: relative;
    z-index: 1;
}

.sidebar-nav {
    display: grid;
    gap: 2px;
    margin-top: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::before{
    content:'';
    position:absolute;
    inset:-2px;
    background: radial-gradient(500px 300px at 20% 10%, rgba(24,181,164,.22), transparent 60%),
                radial-gradient(420px 220px at 75% 25%, rgba(255,255,255,.10), transparent 62%);
    pointer-events:none;
    mix-blend-mode: screen;
}

.sidebar::after{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
    opacity:.7;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .5px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(24,181,164,.15), 0 18px 40px rgba(0,0,0,.18);
}
.brand-logo {
    width: 30px;
    height: 30px;
    display: block;
}

.brand-text {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.15;
    max-width: 160px;
}

.icon-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .05s;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(24,181,164,.20), 0 0 22px rgba(24,181,164,.18);
}
.icon-btn:active { transform: scale(0.98); }

.icon-bars {
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
    border-radius: 999px;
    display: inline-block;
}
.icon-bars::before,
.icon-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}
.icon-bars::before { top: -6px; }
.icon-bars::after { top: 6px; }

.nav-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .05s;
    position: relative;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}
.nav-item:active { transform: scale(0.99); }
.nav-item.ativo {
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(24,181,164,0.12));
    border-color: rgba(24, 181, 164, 0.35);
    box-shadow: 0 0 0 1px rgba(24,181,164,.15), 0 0 26px rgba(24,181,164,.18);
}
.nav-item.ativo::before{
    content:'';
    position:absolute;
    left:-6px;
    top:10px;
    bottom:10px;
    width: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 50%, rgba(24,181,164,.95), rgba(24,181,164,.15));
    filter: blur(.2px);
    box-shadow: 0 0 18px rgba(24,181,164,.45);
}
.nav-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
    box-shadow: 0 0 0 1px rgba(24,181,164,.10), 0 0 18px rgba(0,0,0,.12);
}
.nav-ico svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:hover .nav-ico{
    box-shadow: 0 0 0 1px rgba(24,181,164,.22), 0 0 22px rgba(24,181,164,.22);
}

.nav-item.ativo .nav-ico{
    background: rgba(24,181,164,.16);
    border-color: rgba(24,181,164,.32);
    box-shadow: 0 0 0 1px rgba(24,181,164,.20), 0 0 28px rgba(24,181,164,.28);
}
.nav-text { font-weight: 650; font-size: 0.80rem; }

.sidebar-bottom {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 1px rgba(24,181,164,.12), 0 0 28px rgba(0,0,0,.14);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sair-lateral {
    width: 100%;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-sair-lateral:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(24,181,164,.30);
    box-shadow: 0 0 0 1px rgba(24,181,164,.14), 0 0 26px rgba(24,181,164,.20);
}

.app-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    margin: 18px 18px 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: var(--borda-suave);
    box-shadow: var(--sombra);
    backdrop-filter: blur(10px);
}

.mobile-menu { display: inline-flex; }

/* Botão Voltar delicado no topbar */
.topbar-esquerda {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar-voltar {
    font-size: 0.8125rem;
    color: var(--cor-texto-suave);
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.topbar-voltar:hover {
    color: var(--cor-primaria);
    background: rgba(31, 90, 166, 0.06);
}
.tema-escuro .topbar-voltar:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--cor-secundaria);
}

.topbar-title h1 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--cor-texto);
}
.topbar-title p {
    margin: 2px 0 0;
    color: var(--cor-texto-suave);
    font-size: 0.85rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(31, 90, 166, 0.06);
    border: 1px solid rgba(31, 90, 166, 0.12);
}
.search-ico { color: rgba(31, 90, 166, 0.85); }
.search input {
    border: 0;
    outline: none;
    background: transparent;
    width: 220px;
    font-size: 0.9rem;
    color: var(--cor-texto);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(24, 181, 164, 0.10);
    border: 1px solid rgba(24, 181, 164, 0.20);
}
.pill-label { color: var(--cor-texto-suave); font-size: 0.82rem; font-weight: 650; }
.pill-value { font-weight: 800; color: #0f766e; }

/* Consultas: menor, no cantinho direito */
.topbar-pill-consulta {
    padding: 5px 10px;
    gap: 5px;
    margin-left: auto;
    border-radius: 999px;
    font-size: 0.75rem;
}
.topbar-pill-consulta .pill-label { font-size: 0.7rem; }
.topbar-pill-consulta .pill-value { font-size: 0.8rem; }
.tema-escuro .topbar-pill-consulta {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.22);
}
.tema-escuro .topbar-pill-consulta .pill-value { color: #c4b5fd; }

/* Links rápidos (dashboard) */
.card-links-rapidos { margin-bottom: 1rem; }
.card-links-rapidos h3 { margin-bottom: 0.5rem; }
.links-rapidos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.link-rapido {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(31, 90, 166, 0.1);
    border: 1px solid rgba(31, 90, 166, 0.2);
    color: var(--cor-primaria);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}
.link-rapido:hover {
    background: rgba(31, 90, 166, 0.18);
    border-color: rgba(31, 90, 166, 0.35);
}
.tema-escuro .link-rapido {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}
.tema-escuro .link-rapido:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Admin Links: liberar para usuários */
.form-liberar { margin: 0; }
.liberar-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 6px;
}
.liberar-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}
.liberar-label input { width: auto; }
.link-url {
    color: var(--cor-primaria);
    text-decoration: none;
    font-size: 0.85rem;
}
.link-url:hover { text-decoration: underline; }
.tema-escuro .link-url { color: #a78bfa; }

.page.conteudo {
    max-width: 1100px;
    padding: 18px;
    margin: 0 auto;
}

.app-shell[data-sidebar="collapsed"] .brand-text,
.app-shell[data-sidebar="collapsed"] .nav-text {
    display: none;
}
.app-shell[data-sidebar="collapsed"] .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
}
.app-shell[data-sidebar="collapsed"] .sidebar-user .nome-usuario {
    display: none;
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        transform: translateX(-105%);
        transition: transform .22s ease;
        z-index: 50;
        border-radius: 0 26px 26px 0;
    }
    .app-shell.sidebar-mobile-open .sidebar { transform: translateX(0); }
    .topbar { grid-template-columns: auto 1fr auto; }
    .mobile-menu { display: inline-flex; }
}

/* ----- Dashboard ----- */
.cabecalho {
    background: radial-gradient(900px 200px at 20% 0%, rgba(24, 181, 164, 0.25), transparent 60%),
                linear-gradient(135deg, var(--cor-primaria-escura), var(--cor-primaria));
    color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: var(--sombra);
}

.cabecalho-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cabecalho h1 {
    margin: 0;
    font-size: 1.25rem;
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-admin {
    background: var(--cor-admin);
    color: #fff;
}

.badge-user {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.nome-usuario {
    font-size: 0.9rem;
    opacity: .95;
}

.limite-info {
    font-size: 0.8rem;
    opacity: .9;
}

/* ----- Navegação abas ----- */
.nav-abas {
    background: var(--cor-card);
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    display: flex;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 0 0 var(--raio) var(--raio);
    border: var(--borda-suave);
    border-top: none;
}

.nav-aba {
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: var(--cor-texto-suave);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s, background .2s;
}

.nav-aba:hover {
    color: var(--cor-primaria);
    background: rgba(31, 90, 166, 0.06);
}

.nav-aba.ativo {
    color: var(--cor-primaria);
    border-bottom-color: var(--cor-primaria);
}

.conteudo {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.card {
    background: var(--cor-card);
    border-radius: var(--raio);
    box-shadow: var(--sombra);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: var(--borda-suave);
}

.card h2, .card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--cor-primaria);
}

.subtitulo {
    margin: 0 0 1.25rem 0;
    color: var(--cor-texto-suave);
    font-size: 0.9rem;
}

/* ----- Formulário consulta ----- */
.form-consulta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.campo-grupo {
    flex: 1;
    min-width: 200px;
}

.campo-grupo label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.campo-grupo input,
.campo-grupo select,
.campo-grupo textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.campo-grupo input:focus,
.campo-grupo select:focus,
.campo-grupo textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 4px rgba(24, 181, 164, 0.16);
}

.campo-grupo textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.35;
}

.campo-erro {
    display: block;
    font-size: 0.8rem;
    color: var(--cor-erro);
    margin-top: 0.25rem;
}

/* ----- Resultado ----- */
.resultado-card .resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resultado-card .resultado-header h3 {
    margin: 0;
}

.resultado-conteudo {
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    max-height: 70vh;
    overflow: auto;
    font-size: 0.9rem;
}

.resultado-conteudo,
.tabela th {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.resultado-conteudo pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.resultado-conteudo .mensagem-erro {
    color: var(--cor-erro);
}

/* Resultado tratado (lista label/valor) */
.resultado-lista {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.resultado-linha {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.resultado-linha:last-child {
    border-bottom: none;
}

.resultado-linha dt {
    margin: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cor-texto-suave);
}

.resultado-linha dd {
    margin: 0;
    font-size: 0.95rem;
    word-break: break-word;
}

.resultado-bloco {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.resultado-bloco-titulo {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--cor-primaria);
}

.resultado-subbloco {
    margin-top: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--cor-secundaria);
}

.resultado-subbloco strong {
    font-size: 0.9rem;
    color: var(--cor-texto-suave);
}

/* ----- Relatório PF (Análise de Crédito) ----- */
.relatorio-pf {
    font-size: 0.95rem;
}

.relatorio-pf-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cor-primaria);
    text-align: center;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cor-primaria);
}

.relatorio-secao {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.relatorio-secao:last-child {
    border-bottom: none;
}

.relatorio-secao .btn-copiar-debitos {
    margin-bottom: 0.75rem;
}

.relatorio-secao-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin: 0 0 0.5rem 0;
}

.relatorio-lista {
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.relatorio-linha {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.relatorio-linha dt {
    margin: 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--cor-texto-suave);
}

.relatorio-linha dd {
    margin: 0;
    word-break: break-word;
}

.relatorio-detalhe-titulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cor-primaria);
    margin: 1rem 0 0.5rem 0;
}

.relatorio-detalhe-lista {
    margin: 0.5rem 0 0 1.25rem;
    padding-left: 0.5rem;
}

.relatorio-detalhe-item {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.relatorio-detalhe-item strong {
    color: var(--cor-texto-suave);
    font-weight: 600;
}

.relatorio-vazio {
    margin: 0.5rem 0 0;
    color: var(--cor-texto-suave);
    font-style: italic;
}

@media (max-width: 520px) {
    .relatorio-linha {
        grid-template-columns: 1fr;
    }
}

/* ----- Admin ----- */
.admin-card {
    border-left: 4px solid var(--cor-admin);
}

.admin-card p {
    margin: 0;
    color: var(--cor-texto-suave);
    font-size: 0.9rem;
}

.admin-card .mt {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.form-grid .campo-acoes {
    grid-column: 1 / -1;
}

.form-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.input-limite {
    width: 80px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.historico-acoes-lote {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tabela .th-checkbox,
.tabela .td-checkbox {
    width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}
.form-excluir-um {
    display: inline;
    margin-left: 0.35rem;
}
.form-excluir-um button {
    vertical-align: middle;
}
.tabela-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tabela th,
.tabela td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tabela th {
    font-weight: 600;
    color: var(--cor-texto-suave);
    background: #f8faf9;
}

.tabela tbody tr:hover {
    background: #f8faf9;
}

.tabela tbody tr.atingiu-limite {
    background: #fef2f2;
}

.tabela .badge {
    font-size: 0.7rem;
}

.user-actions-cell {
    min-width: 0;
}

.user-actions {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.user-action-form {
    display: grid;
    grid-template-columns: minmax(120px, 1.5fr) minmax(90px, 1fr) auto auto auto;
    gap: 0.4rem;
    align-items: center;
    min-width: 0;
}

.ua-nome,
.ua-login,
.ua-senha {
    width: 100%;
    min-width: 0;
}

.ua-role {
    width: 90px;
    min-width: 90px;
}

.ua-limite {
    width: 74px;
    min-width: 74px;
}

.ua-btn-salvar,
.ua-btn-redefinir {
    min-width: 108px;
}

.input-senha-curta {
    width: 100%;
}

.senha-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.senha-inline input {
    min-width: 0;
}

.btn-toggle-senha {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .user-action-form {
        grid-template-columns: 1fr 1fr;
    }

    .ua-role,
    .ua-limite,
    .ua-btn-salvar,
    .ua-btn-redefinir,
    .btn-toggle-senha {
        width: 100%;
        min-width: 0;
    }

    .user-actions-cell {
        min-width: 300px;
    }
}

@media (max-width: 640px) {
    .user-action-form {
        grid-template-columns: 1fr;
    }

    .user-actions-cell {
        min-width: 240px;
    }
}

/* ----- Modal (bloqueio CPF/CNPJ) ----- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.ativo {
    display: flex;
}
.modal-card {
    background: var(--cor-card);
    border-radius: var(--raio);
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--sombra-card);
    border: var(--borda-suave);
}
.modal-titulo {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
}
.modal-texto {
    margin: 0 0 1.25rem 0;
    color: var(--cor-texto-suave);
    line-height: 1.5;
}
.modal-fechar {
    width: 100%;
}

/* ----- Loading ----- */
.loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--cor-texto-suave);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-left: 0.5rem;
    border: 2px solid var(--cor-primaria);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- IA (Gemini) ----- */
.ia-acoes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.ia-resultado-acoes-top {
    width: 100%;
    margin: -0.15rem 0 0.5rem 0;
    display: flex;
    justify-content: flex-end;
}

.ia-chat {
    margin: 0.25rem 0 1rem 0;
}

.ia-chat-mensagens {
    height: 360px;
    max-height: 52vh;
    overflow: auto;
    padding: 0.5rem;
    background: rgba(15, 15, 26, 0.45);
    border: var(--borda-suave);
    border-radius: 12px;
}

.ia-bolha-row {
    display: flex;
    margin-bottom: 0.6rem;
}

.ia-bolha-row-user {
    justify-content: flex-end;
}

.ia-bolha-row-ai {
    justify-content: flex-start;
}

.ia-bolha {
    position: relative;
    max-width: 86%;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ia-bolha-user {
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #f1f5f9;
}

.ia-bolha-ai {
    background: rgba(28, 28, 48, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.ia-bolha-texto {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
    font-size: 0.95rem;
}

.ia-botao-copiar {
    position: absolute;
    top: 8px;
    left: 8px;
    border: none;
    background: rgba(139, 92, 246, 0.16);
    color: rgba(167, 139, 250, 0.95);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 10px;
}

.ia-botao-copiar svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ia-botao-copiar:hover {
    background: rgba(139, 92, 246, 0.25);
}

.ia-resposta-hidden {
    display: none;
}

.ia-composer label {
    display: block;
    margin: 0 0 0.35rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.ia-composer textarea {
    width: 100%;
    min-height: 120px;
}

.ia-status {
    margin-top: 0.35rem;
    color: var(--cor-texto-suave);
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.ia-card .subtitulo {
    margin-bottom: 0.9rem;
}

.anotacoes-status {
    display: block;
    margin-top: 0.35rem;
    color: var(--cor-texto-suave);
    font-size: 0.8rem;
}

/* ----- Sistema de Frases ----- */
.frases-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.frases-sidebar {
    flex: 0 0 280px;
    max-width: 280px;
}

.frases-sidebar h3 {
    margin: 0 0 0.75rem 0;
}

.frases-grupos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.frases-grupo-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 15, 26, 0.25);
}

.frases-grupo-item.ativo {
    border-color: rgba(167, 139, 250, 0.75);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 0 30px rgba(139, 92, 246, 0.18);
}

.frases-grupo-link {
    flex: 1;
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-grupo-excluir {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(248, 113, 113, 0.45);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.btn-grupo-excluir:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.frases-grupo-actions {
    flex: 0 0 auto;
}

.frases-criar-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.frases-criar-grupo input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 15, 26, 0.3);
    border-radius: 10px;
    color: var(--cor-texto);
    font-size: 1rem;
}

.frases-main {
    flex: 1;
    min-width: 0;
}

.frases-main-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.frases-main-top h3 {
    margin: 0;
}

.frases-busca {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.frases-busca input {
    width: 260px;
    max-width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(15, 15, 26, 0.3);
    color: var(--cor-texto);
    font-size: 0.95rem;
}

.frases-criar-frase {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.frases-criar-frase textarea {
    width: 100%;
    min-height: 92px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(15, 15, 26, 0.3);
    color: var(--cor-texto);
    font-size: 1rem;
    resize: vertical;
}

.frases-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.frase-card {
    padding: 1rem;
    border-radius: var(--raio);
    border: var(--borda-suave);
    background: rgba(28, 28, 48, 0.35);
}

.frase-conteudo {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
    font-size: 0.95rem;
}

.frase-acoes {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.frase-card-draggable {
    cursor: grab;
    transition: border-color .15s, box-shadow .15s, opacity .15s;
}

.frase-card-draggable:active {
    cursor: grabbing;
}

.frases-grupo-item[draggable="true"] {
    cursor: grab;
}

.frases-grupo-item[draggable="true"]:active {
    cursor: grabbing;
}

.frases-grupo-item.is-dragging {
    opacity: 0.5;
    border-color: rgba(167, 139, 250, 0.75);
}

.frases-grupo-item.drag-over {
    border-top: 2px solid rgba(167, 139, 250, 0.9);
}

.frase-card.is-dragging {
    opacity: 0.6;
    border-color: rgba(167, 139, 250, 0.75);
}

.frase-card.drag-over {
    border-color: rgba(167, 139, 250, 0.75);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 0 20px rgba(139, 92, 246, 0.18);
}


.frases-copy-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.frase-form-edit textarea {
    width: 100%;
    min-height: 92px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(15, 15, 26, 0.3);
    color: var(--cor-texto);
    font-size: 1rem;
    resize: vertical;
}

.frase-edit-botoes {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.frase-mover {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.frases-form-mover {
    display: inline;
}


/* Feedback de cópia */
.btn-sucesso-copy { background-color: #27ae60 !important; color: white !important; border-color: #27ae60 !important; }
@media (max-width: 980px) {
    .app-shell.sidebar-mobile-open .sidebar { transform: translateX(0); }
}

/* ── Tabelas de relatório CNPJ ─────────────────────────── */
.relatorio-tabela-wrap {
    overflow-x: auto;
    margin-top: .75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
}
.relatorio-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    background: rgba(255,255,255,.03);
}
.relatorio-tabela thead tr {
    background: rgba(225,29,72,.15);
    border-bottom: 2px solid rgba(225,29,72,.4);
}
.relatorio-tabela thead th {
    padding: .55rem .75rem;
    text-align: left;
    font-weight: 600;
    color: #f1a7b5;
    white-space: nowrap;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.relatorio-tabela tbody tr {
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .15s;
}
.relatorio-tabela tbody tr:last-child { border-bottom: none; }
.relatorio-tabela tbody tr:hover { background: rgba(255,255,255,.06); }
.relatorio-tabela td {
    padding: .5rem .75rem;
    color: #cbd5e1;
    vertical-align: middle;
}
.relatorio-tabela td:first-child {
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
    width: 2rem;
    text-align: center;
}
.relatorio-tabela .valor-monetario {
    font-weight: 700;
    color: #f87171;
    white-space: nowrap;
}




body[data-aba="dashboard"] .topbar-pill-consulta,
body[data-aba="dashboard"] .pill.topbar-pill.topbar-pill-consulta,
body[data-aba="dashboard"] .topbar > .pill,
body[data-aba="dashboard"] .topbar-pill {
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  width:0 !important;
  min-width:0 !important;
  max-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow:hidden !important;
}
