.invoice-screen{background:#f3f4f6;padding:24px;min-height:100vh}.invoice-paper{margin:0 auto;background:#fff;color:#111827;width:8.5in;max-width:8.5in;min-height:11in;padding:.75in;box-shadow:0 1px 4px rgba(0,0,0,.2);box-sizing:border-box;overflow:visible;font-family:Arial,sans-serif;line-height:1.4}.inv-header{justify-content:space-between;gap:40px;margin-bottom:32px;page-break-inside:avoid;border-bottom:2px solid #d1d5db;padding-bottom:16px}.inv-header,.inv-header-left{display:flex;align-items:flex-start}.inv-header-left{gap:20px;flex:1}.shop-info{flex:1}.shop-name{font-size:22pt;margin:0 0 12px;font-weight:700;line-height:1.1;color:#111827}.shop-addr,.shop-name{word-wrap:break-word;overflow-wrap:break-word}.shop-addr{font-size:11pt;line-height:1.4}.addr-line{margin-bottom:2px;color:#374151}.inv-header-right{flex-shrink:0;text-align:right;min-width:220px}.invoice-info{display:flex;flex-direction:column;gap:8px}.info-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.inv-header-right .label{font-weight:600;font-size:11pt;color:#374151;white-space:nowrap}.inv-header-right .value{font-weight:700;word-wrap:break-word;overflow-wrap:break-word;font-size:11pt;color:#111827;text-align:right}.inv-addr{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0 24px;page-break-inside:avoid}.inv-addr>div{min-width:0;padding:0}.inv-addr h3{font-size:13pt;margin:0 0 8px;color:#374151;border-bottom:1px solid #e5e7eb;padding-bottom:4px}.customer-name,.inv-addr h3{font-weight:700;word-wrap:break-word;overflow-wrap:break-word}.customer-name{margin-bottom:4px;font-size:11pt;line-height:1.3}.inv-addr div{word-wrap:break-word;overflow-wrap:break-word;hyphens:auto;line-height:1.4;font-size:10pt;margin-bottom:2px}.meta-table{width:100%;border-collapse:collapse;font-size:10pt;table-layout:fixed;margin-bottom:20px}.meta-table td{padding:8px 10px;border:1px solid #d1d5db;word-wrap:break-word;overflow-wrap:break-word;vertical-align:top;line-height:1.3}.meta-table td:nth-child(odd){background-color:#f9fafb;font-weight:600;color:#374151}.meta-table td:nth-child(2n){background-color:#ffffff;color:#111827}.items-table{width:100%;border-collapse:collapse;font-size:10pt;margin-top:16px;table-layout:fixed}.items-table td,.items-table th{border:1px solid #d1d5db;padding:10px;vertical-align:top;word-wrap:break-word;overflow-wrap:break-word;line-height:1.3}.items-table thead th{background:#f3f4f6;text-align:left;font-weight:700;font-size:11pt;color:#374151;border-bottom:2px solid #d1d5db}.item-row:nth-child(odd){background:#f9fafb}.item-row:nth-child(2n){background:#ffffff}.concern-row{background:#e5e7eb;border-left:4px solid #3b82f6}.ccc-block{margin-bottom:8px;font-size:10pt;padding:4px 0}.ccc-block div{margin-bottom:4px;line-height:1.4}.ccc-block strong{color:#374151;font-weight:600}.subtotal-row td{font-weight:700;background:#f3f4f6;border-top:2px solid #d1d5db;color:#111827}.action-item-group{margin-bottom:32px;page-break-inside:avoid}.action-item-header{background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;padding:16px;margin-bottom:16px}.action-item-title{font-size:14pt;font-weight:700;color:#111827;margin:0 0 12px;border-bottom:2px solid #3b82f6;padding-bottom:8px}.action-item-details{font-size:10pt;line-height:1.4;color:#374151}.action-item-details div{margin-bottom:6px}.action-item-details strong{color:#111827;font-weight:600}.action-item-totals{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:12px 16px;margin-top:16px;font-size:11pt}.action-item-total-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;line-height:1.3}.action-item-total-row.total{font-weight:700;font-size:12pt;border-top:1px solid #d1d5db;padding-top:8px;margin-top:8px;color:#111827}.action-item-spacer{height:24px;border-bottom:1px solid #e5e7eb;margin:24px 0}.inv-miles-totals{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start;margin-top:20px;page-break-inside:avoid}.miles{font-size:11pt;word-wrap:break-word;overflow-wrap:break-word;line-height:1.4;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px}.miles strong{color:#374151;font-weight:600}.totals-box{border:2px solid #d1d5db;border-radius:8px;padding:16px;background:#f9fafb;page-break-inside:avoid;box-shadow:0 1px 3px rgba(0,0,0,.1)}.totals-box>div{display:flex;justify-content:space-between;padding:6px 0;font-size:11pt;line-height:1.3}.totals-box .hr{height:2px;background:#d1d5db;margin:8px 0;border-radius:1px}.totals-box .total{color:#111827}.totals-box .balance,.totals-box .total{font-weight:800;font-size:13pt;border-top:2px solid #d1d5db;padding-top:8px;margin-top:6px}.totals-box .balance{color:#dc2626}.inv-payments h3{margin:24px 0 12px;font-size:14pt;font-weight:700;color:#374151;border-bottom:2px solid #d1d5db;padding-bottom:6px}.payments-table{width:100%;border-collapse:collapse;font-size:10pt;table-layout:fixed}.payments-table td,.payments-table th{border:1px solid #d1d5db;padding:10px;word-wrap:break-word;overflow-wrap:break-word;vertical-align:top;line-height:1.3}.payments-table thead th{background:#f3f4f6;font-weight:700;font-size:11pt;color:#374151;border-bottom:2px solid #d1d5db}.payments-table tbody tr:nth-child(odd){background:#f9fafb}.payments-table tbody tr:nth-child(2n){background:#ffffff}.ta-right{text-align:right}.inv-terms{font-size:10pt;line-height:1.5;word-wrap:break-word;overflow-wrap:break-word;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;color:#374151}.inv-signature,.inv-terms{margin-top:24px;page-break-inside:avoid}.inv-signature{display:flex;gap:48px;font-size:11pt;padding:16px 0;border-top:1px solid #e5e7eb}.inv-signature>div{flex:1;text-align:center}.inv-signature>div:after{content:"";display:block;width:100%;height:2px;background:#000;margin-top:8px}@media print{@page{size:Letter;margin:.4in}body{margin:0!important;font-family:Arial,sans-serif!important;font-size:12pt!important;line-height:1.4!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}#invoice-paper,.invoice-screen,body{background:#fff!important;padding:0!important}#invoice-paper{margin:0!important;box-shadow:none!important;width:auto!important;max-width:none!important;color:#000!important;font-size:12pt!important;line-height:1.4!important;min-height:auto!important;display:block!important}.inv-header{border-bottom:1px solid #000!important;padding-bottom:12pt!important}.inv-addr,.inv-header,.inv-meta{page-break-inside:avoid!important;page-break-after:auto!important}.inv-items{page-break-inside:auto!important}.action-item-group,.inv-items{page-break-after:auto!important}.action-item-group{margin-bottom:20pt!important}.action-item-group,.action-item-totals,.items-table tr{page-break-inside:avoid!important}.inv-miles-totals{page-break-inside:avoid!important}.inv-miles-totals,.inv-payments{page-break-before:auto!important;page-break-after:auto!important;margin-top:20pt!important}.inv-payments{page-break-inside:auto!important}.payments-table tr{page-break-inside:avoid!important}.inv-signature,.inv-terms{page-break-inside:avoid!important;page-break-before:auto!important;margin-top:20pt!important}.page-break{page-break-before:always!important}.btn-print{display:none!important}table{border-collapse:collapse!important;width:100%!important;margin-bottom:12pt!important}td,th{border:1px solid #000!important;padding:8pt!important;vertical-align:top!important;font-size:10pt!important;line-height:1.3!important}*{word-wrap:break-word!important;overflow-wrap:break-word!important;hyphens:auto!important}.shop-name{font-size:18pt!important;margin-bottom:8pt!important}.shop-addr{font-size:10pt!important;line-height:1.3!important}.inv-addr h3{font-size:12pt!important;margin-bottom:6pt!important}.inv-addr div{font-size:10pt!important;line-height:1.3!important}.items-table,.meta-table{font-size:9pt!important}.items-table thead th{font-weight:700!important}.items-table thead th,.totals-box{font-size:10pt!important}.totals-box .balance,.totals-box .total{font-size:12pt!important;font-weight:700!important}.inv-terms{font-size:9pt!important;line-height:1.4!important}.inv-signature{font-size:10pt!important}.inv-addr,.inv-header,.inv-items,.inv-meta,.inv-miles-totals,.inv-payments,.inv-terms{margin-bottom:20pt!important}}