/* ==========================================================================
   FINANCEIRO (APPLE INSPIRED)
   ========================================================================== */

#financeiro h5.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Nav tabs do financeiro */
#financeiroTabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    gap: 0.25rem;
}

#financeiroTabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

#financeiroTabs .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: transparent;
}

#financeiroTabs .nav-link.active {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Botões de ação */
#financeiro .btn-info {
    background: rgba(0, 113, 227, 0.85) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

#financeiro .btn-info:hover {
    background: #0071e3 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4) !important;
}

/* Tabelas: Contas a Receber, Pagar e Fluxo */
#tableContasReceber thead.table-light th,
#tableContasPagar thead.table-light th,
#tableFluxoCaixa thead.table-light th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: none !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.25rem;
}

#tableContasReceber tbody tr,
#tableContasPagar tbody tr,
#tableFluxoCaixa tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.2s ease;
}

#tableContasReceber tbody tr:last-child,
#tableContasPagar tbody tr:last-child,
#tableFluxoCaixa tbody tr:last-child {
    border-bottom: none !important;
}

#tableContasReceber tbody tr:hover,
#tableContasPagar tbody tr:hover,
#tableFluxoCaixa tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

#tableContasReceber tbody td,
#tableContasPagar tbody td,
#tableFluxoCaixa tbody td {
    color: #d1d5db !important;
    padding: 0.85rem 1.25rem;
    border-bottom: none !important;
    vertical-align: middle;
}

/* Badges de status */
#tableContasReceber .badge,
#tableContasPagar .badge {
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
}

/* Valores em verde/vermelho no fluxo de caixa */
#tableFluxoCaixa .text-success { color: #34c759 !important; }
#tableFluxoCaixa .text-danger  { color: #f87171 !important; }

/* Botões de ação nas tabelas */
#tableContasReceber .btn-sm,
#tableContasPagar .btn-sm {
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
