/* The invoice paper: one drawing of an invoice in one of the three audited
   layouts. The pages draw it, and the PDF renderer prints the same drawing
   in Chromium, so an invoice looks the same while it is filled in, on the
   page, and in the PDF. Nothing outside these rules may shape the paper:
   it brings its own fonts, and the print has no other styles. */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url(fonts/hanken-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url(fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: block;
  src: url(fonts/newsreader-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: block;
  src: url(fonts/newsreader-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.invoice-paper, .invoice-paper * { box-sizing: border-box; }
.invoice-paper { --invoice-accent: #173F35; box-sizing: border-box; display: flex; flex-direction: column; padding: 52px 56px 44px; border-top: 8px solid var(--invoice-accent); background: #FFF; color: #1B2621; font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.invoice-word { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 58px; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: #15241F; }
.company-name { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.invoice-meta { text-align: right; }
.invoice-number { font-size: 17px; font-weight: 700; }
.rule { height: 1px; margin: 28px 0; background: #DCE2DF; }
.bill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bill-grid p { margin: 0; overflow-wrap: anywhere; }
.paper-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5F6B66; }
.line-table { width: 100%; margin-top: 32px; border-collapse: collapse; }
.line-table th { padding: 9px 10px; background: var(--invoice-accent); color: #FFF; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.line-table td { padding: 12px 10px; border-bottom: 1px solid #E6EAE8; vertical-align: top; }
.line-table .num { text-align: right; white-space: nowrap; font-family: inherit; }
.totals { width: 250px; margin: 20px 0 0 auto; border-collapse: collapse; }
.totals td { padding: 4px 0; }
.totals td:last-child { text-align: right; white-space: nowrap; }
.totals .grand td { padding-top: 10px; border-top: 2px solid var(--invoice-accent); font-size: 16px; font-weight: 700; }
.invoice-notes { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.invoice-notes p { margin: 0; overflow-wrap: anywhere; }
.invoice-footer { margin: auto 0 0; padding-top: 16px; font-size: 12.5px; color: #5F6B66; }
.invoice-sent-with { margin: 8px 0 0; font-size: 10.5px; color: #8A928B; }
.invoice-sent-with a { color: inherit; text-underline-offset: 2px; }
.layout-compact { padding: 36px 44px 32px; border-top-width: 4px; }
.layout-compact .invoice-head { align-items: center; }
.compact-company { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.layout-compact .invoice-meta { font-size: 12.5px; }
.layout-compact .rule { margin: 16px 0; }
.layout-compact .line-table { margin-top: 20px; }
.layout-compact .line-table td { padding: 8px 10px; }
.layout-compact .invoice-notes { margin-top: 22px; }
.layout-modern { padding: 44px 48px 40px; border-top: 0; }
.modern-banner { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border: 3px solid var(--invoice-accent); border-radius: 12px; background: #F8FAFC; }
.modern-banner .invoice-word { font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 36px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--invoice-accent); }
.modern-mark { width: 56px; height: 56px; border-radius: 14px; background: var(--invoice-accent); color: #FFF; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.modern-meta { margin: 20px 0 0; }
.layout-modern .rule { margin: 22px 0; }
.layout-modern .line-table { margin-top: 28px; }
.paper-logo { display: block; max-width: 200px; max-height: 64px; margin-bottom: 16px; object-fit: contain; }
.modern-banner .paper-logo { max-width: 160px; max-height: 56px; margin: 0; }
.paper-empty { color: #8A928B; }
