/* Aperçu HTML des modèles de facture (loyer / gestion) — utilisé par Facturation et Factures agence */
.billing-invoice-preview { font-family: Arial, sans-serif; color: #333; max-width: 880px; margin: 0 auto; }
.billing-invoice-preview table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.billing-invoice-preview th, .billing-invoice-preview td { padding: 8px; text-align: left; border-bottom: 1px solid #ddd; }
.billing-invoice-preview .text-right { text-align: right; }
.billing-invoice-preview .t1-container { font-family: 'Roboto', Arial, sans-serif; color: #2c3e50; }
.billing-invoice-preview .t1-header { border-bottom: 2px solid #3498db; padding-bottom: 20px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-start; }
.billing-invoice-preview .t1-logo-box { width: 150px; height: 60px; background: #f0f4f8; display: flex; align-items: center; justify-content: center; color: #3498db; font-weight: bold; border: 1px solid #3498db; }
.billing-invoice-preview .t1-title { color: #3498db; text-transform: uppercase; letter-spacing: 1px; font-size: 24px; margin: 0; text-align: right; }
.billing-invoice-preview .t1-section-title { color: #3498db; font-size: 14px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #eee; margin-bottom: 10px; padding-bottom: 5px; }
.billing-invoice-preview .t1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.billing-invoice-preview .t1-table th { background: #f8f9fa; color: #2c3e50; font-weight: 600; text-transform: uppercase; font-size: 12px; border-bottom: 2px solid #3498db; }
.billing-invoice-preview .t1-total-row td { font-weight: bold; font-size: 16px; background: #f0f4f8; border-top: 2px solid #3498db; }
.billing-invoice-preview .t1-footer { margin-top: 40px; font-size: 10px; color: #7f8c8d; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }
.billing-invoice-preview .t2-container { font-family: 'Open Sans', Helvetica, sans-serif; }
.billing-invoice-preview .t2-top-bar { background: #27ae60; height: 10px; width: 100%; margin-bottom: 20px; }
.billing-invoice-preview .t2-header { display: flex; justify-content: space-between; margin-bottom: 40px; }
.billing-invoice-preview .t2-logo-placeholder { font-weight: 800; font-size: 22px; color: #27ae60; }
.billing-invoice-preview .t2-invoice-box { background: #f9f9f9; padding: 15px; border-left: 4px solid #27ae60; }
.billing-invoice-preview .t2-client-info { margin-bottom: 30px; display: flex; justify-content: space-between; }
.billing-invoice-preview .t2-table { border: 1px solid #e0e0e0; }
.billing-invoice-preview .t2-table th { background: #27ae60; color: white; font-weight: normal; border: none; }
.billing-invoice-preview .t2-table td { border-bottom: 1px solid #eee; }
.billing-invoice-preview .t2-total-amount { font-size: 20px; color: #27ae60; font-weight: bold; }
.billing-invoice-preview .t2-bank-details { margin-top: 30px; background: #fcfcfc; border: 1px solid #eee; padding: 15px; }
.billing-invoice-preview .t3-container { font-family: 'Playfair Display', Georgia, serif; color: #333; }
.billing-invoice-preview .t3-header { text-align: center; margin-bottom: 40px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.billing-invoice-preview .t3-logo-text { font-size: 28px; letter-spacing: 2px; font-weight: bold; margin-bottom: 5px; }
.billing-invoice-preview .t3-subtitle { font-family: Arial, sans-serif; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 3px; }
.billing-invoice-preview .t3-details-grid { display: flex; justify-content: space-between; margin-bottom: 40px; font-family: Arial, sans-serif; }
.billing-invoice-preview .t3-box { width: 45%; }
.billing-invoice-preview .t3-label { font-size: 10px; text-transform: uppercase; color: #888; margin-bottom: 5px; letter-spacing: 1px; }
.billing-invoice-preview .t3-content { font-size: 14px; line-height: 1.5; }
.billing-invoice-preview .t3-table th { text-align: left; border-bottom: 2px solid #333; padding: 10px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.billing-invoice-preview .t3-table td { padding: 15px 0; border-bottom: 1px solid #eee; }
.billing-invoice-preview .t3-grand-total { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: bold; text-align: right; padding-top: 20px; border-top: 2px solid #333; }
.billing-invoice-preview .t3-footer-legal { margin-top: 50px; font-family: Arial, sans-serif; font-size: 9px; text-align: justify; color: #888; border-top: 1px solid #ddd; padding-top: 15px; }
