.document-actionbar{display:flex;justify-content:flex-end;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}.a4-wrapper{background:#e9ecf2;border-radius:20px;padding:2.5rem 1rem;display:flex;justify-content:center;overflow-x:auto}.a4-sheet{position:relative;background:#fff;width:210mm;max-width:100%;min-height:297mm;padding:1.2cm 1.4cm;box-shadow:0 6px 30px rgba(10,32,80,.14);font-family:Helvetica,Arial,sans-serif;color:#2c3038;font-size:11pt}.document-heading{display:flex;justify-content:space-between;gap:2rem}.document-heading h1{font-size:24pt;color:#4527a0;margin:0 0 .4rem}.document-identity{text-align:right}.document-identity img{width:135px;max-height:70px;object-fit:contain}.document-identity h2{font-size:20pt;margin:.35rem 0;color:#4527a0}.document-accent{height:5px;background:#6f42c1;margin:1rem 0}.document-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-bottom:1rem}.document-info-card{border:1px solid #d9dce5;border-radius:8px;padding:.65rem;overflow-wrap:anywhere}.document-info-card h3,.fiscal-block h3{font-size:10pt;text-transform:uppercase;color:#6f42c1;margin:0 0 .4rem}.document-comment{background:#f7f5fc;border-left:4px solid #6f42c1;padding:.6rem;margin-bottom:1rem}.document-lines{width:100%;border-collapse:collapse;table-layout:fixed}.document-lines th{background:#4527a0;color:#fff}.document-lines th,.document-lines td{border:1px solid #d7d9e0;padding:.45rem;overflow-wrap:anywhere}.document-lines th:first-child{width:5%}.document-lines .amount,.totals-table td{text-align:right;white-space:nowrap}.empty-document{text-align:center;color:#6c757d}.document-summary{display:flex;justify-content:space-between;gap:1rem;margin-top:1rem}.tax-summary{font-size:9pt}.totals-table{border-collapse:collapse;min-width:310px}.totals-table th,.totals-table td{padding:.35rem .55rem;border-bottom:1px solid #ddd}.totals-table th{text-align:left}.totals-table .grand-total{font-size:13pt;background:#f0ebfa}.amount-words{text-align:center;font-style:italic;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:.8rem;margin:1rem 0}.fiscal-block{display:flex;justify-content:space-between;border:1px solid #4527a0;padding:.7rem}.fiscal-block img{width:100px;height:100px}.document-footer{text-align:center;margin-top:1rem;padding-top:.7rem;border-top:2px solid #6f42c1;font-size:8.5pt}.pdf-document-body{margin:0;background:#fff}.pdf-document-body .a4-sheet{box-shadow:none;max-width:none;min-height:0}
@media(max-width:900px){.a4-sheet{width:210mm;max-width:none;transform-origin:top left}.document-info-grid{grid-template-columns:1fr}.document-summary{display:block}.totals-table{width:100%;margin-top:1rem}}
@media print{.no-print,.header,#header,#sidebar,.sidebar,.footer,#footer,.actionbar,.document-actionbar,.pagetitle,.back-to-top{display:none!important}body,#main,.main-wrapper,.page-wrapper,.content,.section{margin:0!important;padding:0!important;background:#fff!important}.a4-wrapper{padding:0!important;background:#fff!important}.a4-sheet{width:100%!important;min-height:0!important;padding:.6cm!important;box-shadow:none!important}thead{display:table-header-group}tr{break-inside:avoid;page-break-inside:avoid}@page{size:A4;margin:1cm}}
