/* assets/invoices.css */

/* KPI Finance en haut */
.finance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.finance-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fin-label { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.fin-value { font-size: 24px; font-weight: 700; color: var(--text-main); margin-top: 5px; }
.fin-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

/* Tableau Factures */
.invoice-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.invoice-table th { text-align: left; padding: 15px 20px; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.invoice-row td { padding: 16px 20px; border-bottom: 1px solid #F5F5F7; font-size: 14px; color: var(--text-main); vertical-align: middle; }
.invoice-row:hover { background: #F9F9FA; cursor: pointer; }

/* Badges Statuts Finance */
.status-pill { padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.st-paid { background: #E1FFEB; color: #007030; }
.st-pending { background: #FFF4E5; color: #B45309; }
.st-overdue { background: #FFE5E5; color: #D32F2F; }

.amount-cell { font-family: 'Inter', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.date-cell { color: var(--text-muted); font-size: 13px; }

/* Icone PDF */
.btn-pdf { color: var(--text-muted); transition: 0.2s; background: none; border: none; cursor: pointer; }
.btn-pdf:hover { color: #D32F2F; transform: scale(1.1); }