.store-ops-store-picker { display: grid; gap: 8px; min-width: 0; }
.store-ops-store-picker small { color: #a78bfa; font-size: 11px; }
.store-ops-billing { margin-top: 10px; border-top: 1px solid #e2e8f0; }
.store-ops-billing-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 18px; border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; }
.store-ops-billing-total span { color: #475569; font-size: 13px; font-weight: 700; }
.store-ops-billing-total strong { color: #312e81; font-size: 27px; }
.store-ops-billing-total small { flex-basis: 100%; color: #64748b; }
.store-ops-billing-table { max-width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.store-ops-billing-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.store-ops-billing-table th, .store-ops-billing-table td { padding: 8px; border-bottom: 1px solid #e2e8f0; text-align: right; white-space: nowrap; }
.store-ops-billing-table th:nth-child(2), .store-ops-billing-table td:nth-child(2) { text-align: left; }
.store-ops-billing-table th { color: #475569; background: #f8fafc; }
.store-ops-billing-actions { display: flex; align-items: end; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.store-ops-billing-actions .field { width: min(260px, 100%); color: #111827; }
.store-ops-billing-actions button { width: auto; min-width: 190px; }
.store-ops-billing-error { margin: 0; padding: 12px; border: 1px solid #fca5a5; border-radius: 8px; color: #991b1b; background: #fef2f2; }
.store-ops-billing-note { margin: 0; color: #64748b; font-size: 11px; }
@media (max-width: 700px) { .store-ops-billing-actions { justify-content: stretch; } .store-ops-billing-actions .field, .store-ops-billing-actions button { width: 100%; } }
@media print { .store-ops-billing-table { overflow: visible; } .store-ops-billing-table th, .store-ops-billing-table td { white-space: normal; } .store-ops-billing-actions { display: none !important; } }

.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; } }
