@media print { .main-footer, .btn, .card-footer-actions { display: none !important; } }
.sales-voucher-invoice { font-family: 'Source Sans Pro', sans-serif; padding: 30px; line-height: 1.4; color: #333; }
.sales-voucher-invoice * { box-sizing: border-box; }
@media print { .sales-voucher-invoice { padding: 15px; } }
.sales-voucher-invoice-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.sales-voucher-invoice-logo { width: 250px; height: 200px; flex-shrink: 0; }
.sales-voucher-invoice-logo img { width: 100%; height: 100%; object-fit: contain; }
.sales-voucher-invoice-title { font-size: 50px; font-weight: bold; color: var(--primary); text-align: right; flex: 1; padding-top: 40px; }
.sales-voucher-invoice-info-row { display: flex; justify-content: space-between; align-items: flex-start; margin: 20px 0; padding: 15px 0; border-bottom: 2px solid var(--primary-dark); }
.sales-voucher-invoice-party { flex: 1; }
.sales-voucher-invoice-party-label { font-weight: bold; font-size: 13px; color: var(--primary); margin-bottom: 4px; margin-top: 10px; }
.sales-voucher-invoice-party-label:first-child { margin-top: 0; }
.sales-voucher-invoice-party-value { font-size: 13px; color: #333; margin-bottom: 2px; }
.sales-voucher-invoice-meta { flex: 1; text-align: right; }
.sales-voucher-invoice-meta-item { margin-bottom: 8px; font-size: 13px; }
.sales-voucher-invoice-meta-label { font-weight: bold; color: var(--primary); }
.sales-voucher-invoice-meta-value { color: #333; margin-left: 5px; }
.sales-voucher-invoice-description { margin: 20px 0; font-size: 13px; line-height: 1.5; color: #333; }
.sales-voucher-invoice-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sales-voucher-invoice-prod-card { border: 1px solid #e5e5e5; background: #fff; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sales-voucher-invoice-prod-img-wrap { width: 100%; aspect-ratio: 1 / 1; background: #f7f7f7; overflow: hidden; }
.sales-voucher-invoice-prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sales-voucher-invoice-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #bbb; background: #f5f5f5; }
.sales-voucher-invoice-prod-card-info { padding: 8px; }
.sales-voucher-invoice-prod-card-name { font-size: 12px; font-weight: bold; color: #222; line-height: 1.3; margin-bottom: 3px; }
.sales-voucher-invoice-prod-card-meta { font-size: 11px; color: #888; }
.sales-voucher-invoice-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.sales-voucher-invoice-table thead tr { background: var(--primary); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sales-voucher-invoice-table th { padding: 11px 8px; text-align: left; font-size: 12px; font-weight: bold; border: 1px solid var(--primary-dark); color: var(--primary-text); }
.sales-voucher-invoice-table td { padding: 9px 8px; border: 1px solid #ddd; font-size: 12px; vertical-align: middle; }
.sales-voucher-invoice-table tbody tr:nth-child(even) { background: var(--primary-light); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sales-voucher-invoice-text-right { text-align: right; }
.sales-voucher-invoice-row-img { width: 38px; height: 38px; object-fit: cover; border-radius: 4px; display: block; }
.sales-voucher-invoice-row-noimg { width: 38px; height: 38px; background: #f0f0f0; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #bbb; }
.sales-voucher-invoice-vat-badge { display: inline-block; background: var(--primary); color: var(--primary-text); font-size: 9px; font-weight: bold; padding: 1px 4px; border-radius: 3px; margin-left: 5px; vertical-align: middle; }
.sales-voucher-invoice-summary { margin-top: 20px; width: 100%; }
.sales-voucher-invoice-summary-row { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.sales-voucher-invoice-summary-label { width: 220px; font-weight: bold; text-align: right; padding-right: 20px; color: var(--primary); font-size: 13px; }
.sales-voucher-invoice-summary-value { width: 160px; text-align: right; font-size: 13px; }
.sales-voucher-invoice-grand-total { font-size: 16px; border-top: 2px solid var(--primary-dark); padding-top: 10px; margin-top: 10px; }
.sales-voucher-invoice-grand-total .sales-voucher-invoice-summary-label,
.sales-voucher-invoice-grand-total .sales-voucher-invoice-summary-value { font-weight: bold; }
.sales-voucher-invoice-bank { margin-top: 30px; font-size: 12px; line-height: 1.8; }
.sales-voucher-invoice-bank-title { font-weight: bold; margin-bottom: 5px; color: var(--primary); font-size: 14px; }
.sales-voucher-invoice-status-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: bold; }
.sales-voucher-invoice-status-pending  { background: #fff3cd; color: #856404; }
.sales-voucher-invoice-status-active   { background: #d1e7dd; color: #0a3622; }
.sales-voucher-invoice-status-draft    { background: #e2e3e5; color: #41464b; }
.sales-voucher-invoice-status-rejected { background: #f8d7da; color: #842029; }
.sales-voucher-invoice-sig-rows { margin-top: 40px; width: 100%; }
.sales-voucher-invoice-sig-row { display: flex; align-items: center; margin-bottom: 25px; gap: 20px; }
.sales-voucher-invoice-sig-label { width: 110px; font-weight: bold; font-size: 12px; flex-shrink: 0; color: var(--primary); }
.sales-voucher-invoice-sig-field { display: flex; align-items: center; gap: 6px; flex: 1; font-size: 12px; border-bottom: 1px solid #000; padding-bottom: 4px; }
.sales-voucher-invoice-sig-field span { font-weight: bold; white-space: nowrap; }
.sales-voucher-invoice-sig-line { flex: 1; min-width: 60px; }
.sales-voucher-invoice-footer { background: var(--primary); color: var(--primary-text); padding: 15px 20px; text-align: center; font-size: 11px; line-height: 1.7; margin-top: 40px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sales-voucher-invoice-footer strong { color: var(--primary-text); font-size: 13px; }