.paper{box-sizing:border-box;background:#fff;color:#242a26;font-family:Arial,"Segoe UI",sans-serif;padding:36px;width:100%;min-height:750px;font-size:11px;line-height:1.55;box-shadow:0 4px 22px #1e2d1f09;overflow-wrap:anywhere;text-align:start}.paper *{box-sizing:border-box}.paper h1,.paper h2,.paper p{margin:0 0 12px}.paper h1{font-size:28px;font-weight:500;line-height:1.2;letter-spacing:-.8px}.paper h2{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;font-weight:600;color:#536b50;margin-bottom:10px}.paper .preserve{white-space:pre-wrap;overflow-wrap:anywhere}.doc-header{display:flex;justify-content:space-between;gap:25px;border-bottom:1px solid #dae1d5;padding-bottom:25px;margin-bottom:28px}.doc-dates{font-size:9px;min-width:120px}.doc-dates b{font-weight:400;color:#6d7468}.doc-logo{max-width:100px;max-height:60px;object-fit:contain;margin-bottom:12px}.parties{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-bottom:25px}.parties p{margin:4px 0}.parties strong{font-size:12px}.invoice-table{border-collapse:collapse;width:100%;font-size:9px}.invoice-table th{text-align:start;background:#f2f5ec;padding:10px 5px;font-weight:500;font-size:8px;vertical-align:bottom}.invoice-table td{padding:12px 5px;border-bottom:1px solid #e5e9e0;vertical-align:top}.invoice-table th:first-child{width:32%}.invoice-table td:not(:first-child){text-align:end;font-variant-numeric:tabular-nums}.totals{width:55%;margin-inline-start:auto;padding-top:20px}.totals p{display:flex;justify-content:space-between;gap:20px;font-size:10px;margin-bottom:8px}.totals .grand-total{border-top:1px solid #cdd7c5;font-size:15px;padding-top:13px;margin-top:13px}.doc-notes{border-top:1px solid #e5e9e0;margin-top:35px;padding-top:20px;font-size:10px}.invoice-paper.classic .doc-header{border-bottom:3px solid #323b32}.invoice-paper.classic h1{font-family:Georgia,serif;font-size:36px}.invoice-paper.classic .invoice-table th{background:#303c31;color:#fff}.invoice-paper.editorial h1{font-family:Georgia,serif;font-size:40px;font-style:italic}.invoice-paper.editorial{border-top:8px solid #60704f}.resume-header{display:flex;align-items:center;gap:20px;border-bottom:2px solid var(--accent,#385244);padding-bottom:20px;margin-bottom:23px}.resume-title{font-size:14px;color:var(--accent,#385244)}.resume-contact{font-size:9px;color:#61685f;line-height:1.8;margin-bottom:0!important}.resume-photo{width:70px;height:85px;object-fit:cover;border-radius:4px;flex-shrink:0}.resume-section{margin-bottom:22px}.resume-section h2{color:var(--accent,#385244);font-size:10px;border-bottom:1px solid #e3e7de;padding-bottom:6px}.resume-section p{font-size:11px;line-height:1.7}.resume-paper.classic h1{font:34px Georgia,serif}.resume-paper.classic .resume-header{border-bottom:1px solid #b8c1b0}.resume-paper.classic h2{font-family:Georgia,serif;font-size:14px;text-transform:none;letter-spacing:0}.resume-paper.editorial{border-inline-start:12px solid var(--accent,#385244)}.resume-paper.editorial h1{font:36px Georgia,serif;max-width:75%}.resume-paper.editorial .resume-header{border-bottom:0}.resume-paper.compact{padding:28px}.resume-paper.compact .resume-header{padding-bottom:12px;margin-bottom:15px}.resume-paper.compact .resume-section{margin-bottom:14px}.resume-paper.compact .resume-section p{font-size:10px;line-height:1.5}.resume-paper.modern .resume-header{background:#f0f3ed;padding:24px;margin:-36px -36px 25px;border-bottom:3px solid var(--accent,#385244)}.resume-paper.modern h1{font-size:31px;font-weight:700}.resume-paper.modern h2{border-bottom:0;letter-spacing:2px}.paper[dir=rtl] h1,.paper[dir=rtl] h2{letter-spacing:0}.paper section{break-inside:auto}.paper h2{break-after:avoid}.paper tr{break-inside:avoid}.paper thead{display:table-header-group}
@media(max-width:600px){.paper{padding:22px;font-size:10px;min-height:580px}.paper h1{font-size:25px}.invoice-table{font-size:8px}.invoice-table th{font-size:7px}.invoice-table th,.invoice-table td{padding-inline:3px}.doc-header,.parties{gap:15px}.doc-dates{min-width:90px}.resume-paper.modern .resume-header{margin:-22px -22px 20px;padding:22px}.totals{width:65%}}
@media print{@page{size:A4;margin:14mm}html,body{margin:0;padding:0;background:white}.paper{padding:0;min-height:0;box-shadow:none;width:100%;font-size:10pt;line-height:1.5}.paper h1{font-size:28pt}.paper h2{font-size:10pt}.invoice-table{font-size:9pt}.invoice-table th{font-size:8pt}.resume-section p{font-size:10pt}.resume-contact{font-size:9pt}.resume-header{break-inside:avoid}.resume-paper.modern .resume-header{margin:0 0 25px;padding:20px}.resume-paper.compact{padding:0}.resume-paper.editorial{padding-inline-start:20px}.doc-header{break-inside:avoid}.parties{break-inside:avoid}.totals{break-inside:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
