/* 
 * RECAP.PRO - Módulo Financeiro
 * Gestão de Contas e Fluxo de Caixa
 */

.fin-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.fin-dashboard {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.fin-card {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fin-card span { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; }
.fin-card b { font-size: 20px; color: #333; }
.fin-card.positive { border-left: 5px solid #2e7d32; }
.fin-card.negative { border-left: 5px solid #d32f2f; }
.fin-card.balance { border-left: 5px solid #555; }

.fin-toolbar {
    height: 40px;
    background: #f3f3f3;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.fin-content {
    flex: 1;
    overflow: auto;
    padding: 0;
}

/* Status de Títulos */
.status-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-open { background: #fff3e0; color: #e65100; }
.status-overdue { background: #ffebee; color: #c62828; }

/* Cheques de Terceiros / Componentes reutilizáveis */

.fin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.fin-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin-filtros {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.fin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}
.fin-btn:hover { background: #f0f0f0; }
.fin-btn:disabled { opacity: .45; cursor: not-allowed; }

.fin-btn-primary {
    background: var(--accent-color, #555);
    color: #fff;
    border-color: var(--accent-color, #555);
}
.fin-btn-primary:hover { filter: brightness(.9); }

/* Modal */
.fin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}
.fin-modal {
    background: #fff;
    border-radius: 6px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.fin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.fin-modal-header h3 { margin: 0; font-size: 15px; }
.fin-modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}
.fin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
