.factures-toolbar {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.factures-toolbar input,
.factures-toolbar select {
    padding: .5rem .875rem; border: 1.5px solid #e2e8f0;
    border-radius: 8px; font-size: .875rem;
    font-family: 'Inter', sans-serif; background: white;
}
.factures-toolbar input { min-width: 240px; }
.factures-toolbar input:focus,
.factures-toolbar select:focus { outline: none; border-color: #2563eb; }
.spacer { flex: 1; }

/* Lignes facture */
.lignes-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.lignes-table th {
    padding: .5rem .75rem; text-align: left; font-size: .75rem;
    font-weight: 600; color: #64748b; text-transform: uppercase;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.lignes-table td { padding: .375rem .375rem; border-bottom: 1px solid #f1f5f9; }
.lignes-table input, .lignes-table select {
    width: 100%; padding: .375rem .5rem; border: 1.5px solid #e2e8f0;
    border-radius: 6px; font-size: .8rem; font-family: 'Inter', sans-serif;
    background: white;
}
.lignes-table input:focus, .lignes-table select:focus {
    outline: none; border-color: #2563eb;
}
.lignes-table .col-designation { min-width: 200px; }
.lignes-table .col-qte { width: 70px; }
.lignes-table .col-pu { width: 100px; }
.lignes-table .col-tva { width: 80px; }
.lignes-table .col-remise { width: 70px; }
.lignes-table .col-total { width: 100px; text-align: right; font-weight: 600; }
.lignes-table .col-action { width: 40px; text-align: center; }
.add-ligne-btn {
    margin-top: .75rem; padding: .5rem 1rem; background: #f8fafc;
    border: 1.5px dashed #cbd5e1; border-radius: 8px; color: #64748b;
    font-size: .875rem; cursor: pointer; width: 100%; text-align: left;
    font-family: 'Inter', sans-serif; transition: all .15s;
}
.add-ligne-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

/* Totaux */
.totaux-box {
    margin-top: 1rem; border-top: 2px solid #e2e8f0;
    padding-top: 1rem; display: flex; justify-content: flex-end;
}
.totaux-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .375rem .5rem; text-align: right; min-width: 280px;
}
.totaux-grid .label { color: #64748b; font-size: .875rem; }
.totaux-grid .value { font-size: .875rem; font-weight: 600; }
.totaux-grid .total-ttc { font-size: 1.1rem; font-weight: 700; color: #0f172a; }

/* Détail facture */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.detail-block { background: #f8fafc; border-radius: 10px; padding: 1rem 1.25rem; }
.detail-block h4 { font-size: .75rem; font-weight: 600; color: #64748b; text-transform: uppercase; margin-bottom: .75rem; }
.detail-row { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: .375rem; }
.detail-row .dl { color: #64748b; }
.detail-row .dv { font-weight: 500; }

.paiement-progress {
    background: #e2e8f0; border-radius: 10px; height: 8px;
    margin: .75rem 0; overflow: hidden;
}
.paiement-progress-bar {
    height: 100%; background: #16a34a; border-radius: 10px;
    transition: width .3s;
}