.invoice-paper{
  box-sizing:border-box;background:#fff;color:#192735;border-radius:12px;
  padding:clamp(22px,4vw,43px);border:1px solid #dbe3ea;font:15px/1.45 system-ui,sans-serif;
  min-inline-size:0;overflow-wrap:anywhere
}
.invoice-paper *{box-sizing:border-box}
.invoice-paper p,.invoice-paper h1{margin:0}
.paper-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px 25px;
  flex-wrap:wrap;border-bottom:2px solid var(--invoice-accent);padding-bottom:22px}
.paper-logo{display:block;max-width:min(175px,100%);max-height:68px;object-fit:contain;object-position:left center;margin-bottom:10px}
.paper-business{font-size:1.25rem;font-weight:740;color:var(--invoice-accent)}
.paper-business-details,.paper-notes{white-space:pre-wrap}
.paper-business-details,.paper-client-email,.paper-identity p{color:#516373}
.paper-identity{margin-left:auto;text-align:right;min-width:0}
.paper-identity h1{font:650 clamp(25px,3vw,36px)/1.08 system-ui,sans-serif;
  color:var(--invoice-accent);letter-spacing:-.035em;margin-bottom:6px}
.paper-due{margin-top:5px!important}
.paper-client{padding:23px 0 18px}
.paper-label{font-size:.85rem;font-weight:700;color:var(--invoice-accent);margin-bottom:4px!important}
.paper-client-name{font-size:1.02rem;font-weight:730}
.paper-items{width:100%;border-collapse:collapse;table-layout:fixed}
.paper-items th,.paper-items td{text-align:right;padding:10px 0 10px 5px;border-bottom:1px solid #e5ebf0;vertical-align:top}
.paper-items th{font-size:.8rem;color:#516373;font-weight:700}
.paper-items th:first-child,.paper-items td:first-child{text-align:left;width:44%;padding-left:0;padding-right:7px}
.paper-items th:nth-child(2){width:12%}
.paper-items td:not(:first-child),.paper-total strong{font-variant-numeric:tabular-nums}
.paper-total{display:flex;justify-content:space-between;gap:10px;margin:22px 0 0 auto;padding:12px 15px;
  width:min(100%,300px);border-radius:8px;background:var(--invoice-tint);color:var(--invoice-accent);font-weight:730}
.paper-notes{margin-top:24px!important;padding-top:16px;border-top:1px solid #e5ebf0;color:#455766}
.public-invoice{margin:0;background:#edf2f6;padding:22px 14px 50px;min-height:100vh}
.public-invoice-shell{max-width:760px;margin:auto}
.public-invoice-actions{text-align:right;margin-bottom:14px}
.public-invoice-actions button{font:600 1rem system-ui,sans-serif;border:0;border-radius:8px;background:#253f58;color:#fff;padding:12px 16px;cursor:pointer}
@media (max-width:440px){.paper-identity{margin-left:0;text-align:left}.paper-items td{font-size:.84rem}}
@media print {
  .public-invoice{padding:0;background:#fff}
  .public-invoice-actions{display:none}
  .invoice-paper{border:none;padding:0;border-radius:0}
  .paper-header,.paper-total,.paper-items tr{break-inside:avoid}
}
