/* Container de Finanças */
.financial-container {
    padding: 30px;
    background: #0b0f19;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #f1f5f9;
}

/* Cabeçalho Finanças */
.financial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.financial-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.financial-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}
.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #1d4ed8; }

/* Grid de Métricas Financeiras */
.fin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.fin-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
}
.fin-card-header i { width: 20px; height: 20px; }
.fin-value {
    font-size: 1.85rem;
    font-weight: 700;
    display: block;
    margin: 12px 0 4px 0;
    color: #ffffff;
}
.fin-sub { font-size: 0.75rem; color: #64748b; }

/* Cores de acento para os cards */
.text-emerald i { color: #10b981; }
.text-blue i { color: #3b82f6; }
.text-amber i { color: #f59e0b; }
.text-purple i { color: #8b5cf6; }
.text-green { color: #10b981; font-weight: 600; }

/* Grid de Insights e Gráficos */
.financial-insights-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
@media(max-width: 992px){ .financial-insights-grid { grid-template-columns: 1fr; } }

.insights-block {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}
.insights-block h3 { margin: 0 0 20px 0; font-size: 1.1rem; font-weight: 600; }
.block-header-flex { display: flex; justify-content: space-between; align-items: center; }
.badge-period { font-size: 0.75rem; background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 20px; color: #94a3b8; }

/* Sistema de Gráficos Customizados via CSS Puro */
.custom-bar-chart {
    display: flex;
    height: 180px;
    gap: 20px;
    position: relative;
    padding-left: 50px;
    margin-top: 10px;
}
.chart-axis-y {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #475569;
    text-align: right;
    width: 40px;
}
.chart-bars-container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 4px;
}
.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    max-width: 40px;
}
.bar-fill {
    width: 100%;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px 6px 0 0;
    transition: background 0.3s, height 0.3s;
}
.chart-bar-wrapper:hover .bar-fill { background: rgba(59, 130, 246, 0.5); }
.chart-bar-wrapper.active .bar-fill {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.bar-label { font-size: 0.75rem; color: #64748b; margin-top: 8px; }

/* Distribuição de Métodos */
.dist-list { display: flex; flex-direction: column; gap: 16px; }
.dist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    font-size: 0.9rem;
}
.dist-info { display: flex; align-items: center; gap: 10px; }
.dot-indicator { width: 8px; height: 8px; border-radius: 50%; }
.bg-blue { background: #3b82f6; }
.bg-purple { background: #8b5cf6; }
.bg-amber { background: #f59e0b; }
.dist-percentage { font-weight: 600; color: #ffffff; }

/* Tabela Transações */
.transactions-block {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}
.table-filters { display: flex; gap: 10px; }
.filter-tag { font-size: 0.8rem; padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,0.03); color: #94a3b8; cursor: pointer; }
.filter-tag.active { background: rgba(59, 130, 246, 0.15); color: #3b82f6; font-weight: 600; border: 1px solid rgba(59, 130, 246, 0.3); }

.table-responsive { overflow-x: auto; margin-top: 20px; }
.financial-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.financial-table th { color: #64748b; font-weight: 600; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.financial-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }

.table-user .u-name { display: block; font-weight: 600; color: #e2e8f0; }
.table-user .u-email { font-size: 0.75rem; color: #64748b; }

.type-badge-avulso { background: rgba(59, 130, 246, 0.1); color: #3b82f6; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.type-badge-plan { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }

.text-right { text-align: right; }
.val-positive { color: #10b981; font-weight: 600; }
.val-pending { color: #f59e0b; font-weight: 600; }

.status-success { color: #10b981; background: rgba(16, 185, 129, 0.1); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }
.status-pending { color: #f59e0b; background: rgba(245, 158, 11, 0.1); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }