.store-billing-report { display: grid; gap: 16px; }
.store-billing-controls { display: grid; gap: 18px; }
.store-billing-filters, .store-billing-issue { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.store-billing-filters .field { min-width: 160px; flex: 1; }
.store-billing-filters .field:first-child { flex: 2; min-width: 220px; }
.store-billing-document { padding: 24px; border-radius: 16px; background: #fff; color: #111827; }
.store-billing-document h2 { margin: 0 0 8px; color: #111827; }
.store-billing-document header { border-bottom: 2px solid #4f46e5; padding-bottom: 12px; }
.store-billing-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 20px 0; }
.store-billing-total strong { font-size: 28px; color: #312e81; }
.store-billing-total small { flex-basis: 100%; }
.store-billing-table { overflow-x: auto; }
.store-billing-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.store-billing-table th, .store-billing-table td { padding: 8px 5px; border-bottom: 1px solid #e5e7eb; text-align: right; white-space: nowrap; }
.store-billing-table th:nth-child(2), .store-billing-table td:nth-child(2) { text-align: left; }
@media print { @page { size: A4 landscape; margin: 10mm; } body:has(.store-billing-document) * { visibility: hidden !important; } .store-billing-document, .store-billing-document * { visibility: visible !important; } .store-billing-document { position: absolute; inset: 0; width: 100%; padding: 0; } .store-billing-table { overflow: visible; } .store-billing-table th, .store-billing-table td { white-space: normal; } }

.finance-invoice-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: #030712cc; }
.finance-invoice-sheet { width: min(760px, 100%); max-height: 95vh; overflow: auto; padding: 28px; border-radius: 18px; background: #fff; color: #111827; box-shadow: 0 24px 80px #0008; }
.finance-invoice-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.finance-invoice-sheet header { border-bottom: 2px solid #4f46e5; padding-bottom: 18px; }
.finance-invoice-sheet header span { color: #4f46e5; font-weight: 800; }
.finance-invoice-sheet h2 { color: #111827; font-size: 28px; margin: 8px 0; }
.finance-invoice-sheet dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 26px 0; }
.finance-invoice-sheet dt { color: #64748b; font-size: 12px; }
.finance-invoice-sheet dd { margin: 4px 0 0; font-weight: 700; }
.finance-invoice-sheet dd small { display: block; margin-top: 4px; font-weight: 400; }
.finance-invoice-sheet table { width: 100%; border-collapse: collapse; }
.finance-invoice-sheet th, .finance-invoice-sheet td { text-align: left; padding: 12px; border-bottom: 1px solid #e5e7eb; }
.finance-invoice-sheet th:last-child, .finance-invoice-sheet td:last-child { text-align: right; }
.finance-invoice-total { display: flex; justify-content: space-between; font-size: 20px; padding: 16px 12px; background: #eef2ff; }
.finance-invoice-sheet footer { border-top: 1px solid #e5e7eb; padding-top: 16px; color: #64748b; font-size: 12px; }
@media print { @page { size: A4 portrait; margin: 15mm; } body:has(.finance-invoice-overlay) * { visibility: hidden !important; } .finance-invoice-overlay, .finance-invoice-overlay * { visibility: visible !important; } .finance-invoice-overlay { position: absolute; display: block; inset: 0; padding: 0; background: white; } .finance-invoice-sheet { width: 100%; max-height: none; padding: 0; box-shadow: none; overflow: visible; } .finance-invoice-actions { display: none; } }
