/* document.css — the invoice, and nothing else.
 *
 * Extracted from the original style.css (git HEAD of this branch's parent) when the site moved to
 * Tailwind + shadcn: this is every rule whose subject is the document itself — .doc and its ten
 * designs, the Swiss QR bill (.qrb-*), the paper and its desk, the print sheet (#print-root), and
 * the miniature thumbnails (.tpl-thumb / .tpl-page). It is deliberately NOT part of the shadcn
 * system. An invoice is the user's own document: it has to print the same everywhere and must not
 * change under invoices already saved or sent. It does not read any site token; the few values it
 * needs are declared below, with the values they always had.
 *
 * Do not add interface styling here.
 */
:root {
  --font-doc: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --doc-hairline: rgba(11, 58, 91, 0.1);
  --paper-shadow: 0 1px 2px rgba(11, 58, 91, 0.08), 0 14px 40px -8px rgba(11, 58, 91, 0.16);
  --doc-shadow-lg: 0 24px 64px -16px rgba(11, 58, 91, 0.28), 0 2px 8px rgba(11, 58, 91, 0.08);
}
:root[data-theme='dark'] {
  --doc-hairline: rgba(255, 255, 255, 0.08);
  --paper-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 40px -8px rgba(0, 0, 0, 0.6);
  --doc-shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}
/* DM Sans, self-hosted (SIL Open Font License 1.1, fonts/OFL-LICENSE-dm-sans.txt). The invoice's
   title and headings use it, and so does the interface, so the one declaration lives here. */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('../fonts/dm-sans-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;
}
:root {
  --doc-font-head: 'DM Sans Variable', var(--font-doc);
}

/* The element defaults the invoice inherited from the old base layer: its h1–h3 were DM Sans at
   650 with tight tracking. :where() keeps the specificity at a bare element selector, exactly as
   it was, so every .doc-* rule below still wins over it. */
:where(.doc, .tpl-page) :is(h1, h2, h3) {
  font-family: var(--doc-font-head);
  font-optical-sizing: auto;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
:where(.doc, .tpl-page) h1 {
  line-height: 0.99;
  letter-spacing: -0.045em;
}
:where(.doc, .tpl-page) h2 {
  letter-spacing: -0.03em;
}
:where(.doc, .tpl-page) {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-optical-sizing: auto;
}

/* What the old base layer gave the document for free. */
.doc,
.doc *,
.doc *::before,
.doc *::after,
.tpl-page,
.tpl-page *,
.paper,
.paper * {
  box-sizing: border-box;
}
.doc [hidden],
.paper [hidden] {
  display: none !important;
}

.paper-stage {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.paper {
  transform-origin: top left;
  background: #fff;
  box-shadow: var(--paper-shadow);
  min-height: 1123px; /* A4 height at 96dpi */
}
.paper[data-paper-size='Letter'] {
  min-height: 1056px;
}
.doc {
  --pad: 48px;
  --ink: #1c1917;
  --soft: #6b6560;
  --line: #e7e2dc;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding: var(--pad) 52px;
  background: #fff;
  color: var(--ink);
  font: 13px/1.5 var(--font-doc);
  font-variant-numeric: tabular-nums;
  color-scheme: light;
}
.doc h2,
.doc h3,
.doc p {
  margin: 0;
}
.doc .ph {
  color: #b8b0a8;
  font-weight: 400;
  font-style: italic;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.doc-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.doc-logo {
  max-width: 200px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.doc-from {
  color: var(--soft);
  overflow-wrap: anywhere;
}
.doc-from-name {
  color: var(--ink);
  font-size: 15px;
}
.doc-titlebox {
  text-align: right;
  flex-shrink: 0;
}
.doc-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--doc-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.doc-meta {
  margin: 0;
  display: grid;
  gap: 2px;
}
.doc-meta div {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.doc-meta dt {
  color: var(--soft);
}
.doc-meta dd {
  margin: 0;
  font-weight: 600;
  min-width: 90px;
}
.doc-parties {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}
.doc h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 4px;
}
.doc-to p {
  overflow-wrap: anywhere;
}
.doc-stamp {
  transform: rotate(-8deg);
  border: 3px solid #15803d;
  color: #15803d;
  border-radius: 8px;
  padding: 4px 16px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.doc-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.doc-items th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  font-weight: 700;
  padding: 8px 8px;
  border-bottom: 2px solid var(--doc-accent);
  text-align: left;
}
.doc-items td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-items tr {
  break-inside: avoid;
}
.doc-items th:first-child,
.doc-items td:first-child {
  padding-left: 0;
}
.doc-items th:last-child,
.doc-items td:last-child {
  padding-right: 0;
}
.doc .d-num {
  text-align: right;
  white-space: nowrap;
}
.doc .d-desc {
  width: 100%;
  overflow-wrap: anywhere;
}
.doc-summary {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  break-inside: avoid;
}
.doc-side {
  flex: 1;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-wrap: anywhere;
}
.doc-payqr {
  display: flex;
  gap: 12px;
  align-items: center;
  break-inside: avoid;
}
.doc-payqr svg {
  flex: none;
  width: 96px;
  height: 96px;
}
.doc-payqr p {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 0.92em;
}
.doc-payqr span {
  opacity: 0.75;
}
.doc-payqr .doc-iban {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.doc-paynow {
  display: flex;
  gap: 12px;
  align-items: center;
  break-inside: avoid;
}
.doc-paynow svg {
  flex: none;
  width: 84px;
  height: 84px;
}
.doc-paynow p {
  display: grid;
  gap: 4px;
  justify-items: start;
  margin: 0;
  font-size: 0.92em;
}
.doc-paynow-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--doc-accent, #1f3a5f);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.doc-paynow-row {
  display: grid;
  gap: 2px;
  justify-items: start;
}
.doc-paynow-url {
  opacity: 0.75;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.doc-totals {
  border-collapse: collapse;
  min-width: 260px;
}
.doc-totals th,
.doc-totals td {
  padding: 5px 0;
  text-align: right;
}
.doc-totals th {
  font-weight: 400;
  color: var(--soft);
  padding-right: 24px;
}
.doc-totals th small {
  font-size: 11px;
}
.doc-totals .d-total th,
.doc-totals .d-total td {
  border-top: 2px solid var(--ink);
  padding-top: 9px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.doc-totals .d-balance th,
.doc-totals .d-balance td {
  font-weight: 800;
  color: var(--doc-accent);
  font-size: 15px;
}
.doc-terms {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  break-inside: avoid;
}
.doc--bold .doc-head {
  margin: calc(-1 * var(--pad)) -52px 32px;
  padding: 36px 52px 30px;
  background: var(--doc-accent);
  color: #fff;
}
.doc--bold .doc-from,
.doc--bold .doc-meta dt {
  color: rgba(255, 255, 255, 0.82);
}
.doc--bold .doc-from-name,
.doc--bold .doc-title {
  color: #fff;
}
.doc--bold .ph {
  color: rgba(255, 255, 255, 0.6);
}
.doc--bold .doc-items th {
  background: #f5f2ee;
  border-bottom: 0;
  padding-left: 8px;
}
.doc--bold .doc-items th:first-child {
  padding-left: 8px;
}
.doc--bold .doc-items td:first-child {
  padding-left: 8px;
}
.doc--bold .doc-totals .d-total th,
.doc--bold .doc-totals .d-total td {
  border-top: 0;
  background: var(--doc-accent);
  color: #fff;
  padding: 9px 10px;
}
.doc--minimal {
  font-weight: 400;
}
.doc--minimal .doc-title {
  color: var(--ink);
  font-weight: 300;
  font-size: 34px;
  text-transform: none;
  letter-spacing: 0;
}
.doc--minimal .doc-head {
  margin-bottom: 44px;
}
.doc--minimal .doc-items th {
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
}
.doc--minimal .doc-items td {
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
.doc--minimal .doc-items tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}
.doc--minimal .doc-totals .d-total th,
.doc--minimal .doc-totals .d-total td {
  border-top: 1px solid var(--ink);
  font-weight: 600;
  color: var(--doc-accent);
  font-size: 18px;
}
.doc--minimal .doc-terms {
  border-top: 0;
}
@media screen {
#print-root {
    display: none;
  }
}
@media print {
/* The PDF is the document and nothing around it: no page colour, no gradient glow behind the top of
   the page, and the same white paper whether the site was in the light or the dark theme. Only the
   site's own backgrounds go; the invoice's design (a coloured header band, a table's rules) is part
   of the document and stays. */
html,
body,
#print-root {
    background: #fff !important;
    background-image: none !important;
    color-scheme: light !important; /* the dark theme sets it dark, which paints the page margins dark too */
    box-shadow: none !important;
  }
/* Only when the editor has put an invoice in #print-root. Unguarded, this hid every page on the
   site when printed, because document.css is served everywhere and #print-root exists nowhere else. */
body:has(#print-root) > *:not(#print-root) {
    display: none !important;
  }
#print-root {
    display: block;
  }
#print-root .doc {
    --pad: 0px;
    padding: 0;
    min-height: auto;
    display: block;
  }
#print-root .doc--bold .doc-head {
    margin: 0 0 28px;
    padding: 24px 28px;
    border-radius: 4px;
  }
#print-root .doc .ph {
    visibility: hidden;
  }
}
.d-total.is-changed > * {
  animation: total-glow 0.9s var(--ease);
}
.doc .d-pos {
  width: 1%;
  padding-right: 14px;
  color: var(--soft);
  white-space: nowrap;
}
.doc .d-date {
  width: 1%;
  padding-right: 14px;
  white-space: nowrap;
}
.doc-sender {
  margin: 0 0 8px !important;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
  color: var(--soft);
  overflow-wrap: anywhere;
}
.doc-legal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--soft);
  overflow-wrap: anywhere;
  break-inside: avoid;
}
.doc-legal p {
  flex: 0 1 auto;
  min-width: 0;
}
.doc-legal .nw {
  white-space: nowrap;
}
.doc-legal strong {
  color: var(--ink);
}
.doc > :has(+ .doc-legal) {
  margin-bottom: 32px;
}
.doc-duebox {
  display: inline-grid;
  gap: 2px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--doc-accent) 10%, #fff);
  text-align: right;
}
.doc-duebox span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.doc-duebox strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--doc-accent);
}
.doc--bauhaus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  grid-template-rows: auto auto auto auto auto auto 1fr auto auto;
  column-gap: 40px;
  align-content: stretch;
}
.doc--bauhaus .doc-head,
.doc--bauhaus .doc-titlebox {
  display: contents;
}
.doc--bauhaus .doc-brand {
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: flex-end;
  text-align: right;
  margin-bottom: 30px;
}
.doc--bauhaus .doc-logo {
  object-position: right center;
}
.doc--bauhaus .doc-parties {
  grid-column: 1;
  grid-row: 2;
  min-height: 118px;
  margin-bottom: 30px;
}
.doc--bauhaus .doc-to {
  max-width: 85mm;
}
.doc--bauhaus .doc-to h3 {
  display: none;
}
.doc--bauhaus .doc-meta {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 11.5px;
}
.doc--bauhaus .doc-meta div {
  justify-content: space-between;
}
.doc--bauhaus .doc-meta dd {
  min-width: 0;
  text-align: right;
}
.doc--bauhaus .doc-title {
  grid-column: 1 / -1;
  grid-row: 3;
  text-align: left;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.doc--bauhaus .doc-items {
  grid-column: 1 / -1;
  grid-row: 4;
}
.doc--bauhaus .doc-items th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.doc--bauhaus .doc-summary {
  grid-column: 1 / -1;
  grid-row: 5;
}
.doc--bauhaus .doc-terms {
  grid-column: 1 / -1;
  grid-row: 6;
}
.doc--bauhaus .doc-legal {
  grid-column: 1 / -1;
  grid-row: 8;
  margin-top: 32px;
  border-top-color: var(--doc-accent);
}
.doc--bauhaus .doc-totals .d-total th,
.doc--bauhaus .doc-totals .d-total td {
  border-top-width: 1px;
  border-bottom: 3px double var(--ink);
}
.doc--rive-gauche .doc-from-name,
.doc--rive-gauche .doc-title,
.doc--rive-gauche .doc-totals .d-total,
.doc--rive-gauche h3 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
}
.doc--rive-gauche .doc-from-name {
  font-size: 18px;
  font-weight: 600;
}
.doc--rive-gauche .doc-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--doc-accent);
}
.doc--rive-gauche .doc-title {
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
.doc--rive-gauche h3 {
  font-size: 13px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
.doc--rive-gauche .doc-items th {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}
.doc--rive-gauche .doc-totals .d-total th,
.doc--rive-gauche .doc-totals .d-total td {
  border-top: 1px solid var(--doc-accent);
  font-size: 19px;
  font-weight: 600;
  color: var(--doc-accent);
}
.doc--rive-gauche .doc-legal {
  text-align: center;
  justify-content: center;
  gap: 28px;
  border-top-color: var(--doc-accent);
}
.doc--mayfair .doc-head {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 3px double var(--ink);
  text-align: center;
}
.doc--mayfair .doc-brand {
  align-items: center;
}
.doc--mayfair .doc-logo {
  object-position: center;
}
.doc--mayfair .doc-from-name {
  font-family: Baskerville, 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.doc--mayfair .doc-titlebox {
  text-align: center;
}
.doc--mayfair .doc-title {
  font-family: Baskerville, Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--doc-accent);
}
.doc--mayfair .doc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
}
.doc--mayfair .doc-meta dd {
  min-width: 0;
}
.doc--mayfair .doc-items th {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.doc--mayfair .doc-totals .d-total th,
.doc--mayfair .doc-totals .d-total td {
  border-top: 3px double var(--ink);
  font-family: Baskerville, Georgia, 'Times New Roman', serif;
  font-size: 18px;
}
.doc--main-street .doc-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.doc--main-street .doc-to h3 {
  color: var(--doc-accent);
  font-weight: 800;
}
.doc--main-street .doc-items th {
  padding: 9px 10px;
  border-bottom: 0;
  background: var(--ink);
  color: #fff;
}
.doc--main-street .doc-items td {
  padding: 9px 10px;
  border-bottom: 0;
}
.doc--main-street .doc-items th:first-child,
.doc--main-street .doc-items td:first-child {
  padding-left: 10px;
}
.doc--main-street .doc-items th:last-child,
.doc--main-street .doc-items td:last-child {
  padding-right: 10px;
}
.doc--main-street .doc-items tbody tr:nth-child(even) td {
  background: #f6f5f3;
}
.doc--main-street .doc-totals .d-total th,
.doc--main-street .doc-totals .d-total td {
  border-top: 2px solid var(--ink);
}
.doc--grand-place {
  border-left: 10px solid var(--doc-accent);
}
.doc--grand-place .doc-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.doc--grand-place .doc-meta {
  padding: 10px 14px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--doc-accent) 8%, #fff);
}
.doc--grand-place .doc-items th {
  border-bottom-width: 1px;
}
.doc--grand-place .doc-side > .doc-block:first-child {
  padding: 12px 14px;
  border-left: 3px solid var(--doc-accent);
  background: color-mix(in srgb, var(--doc-accent) 6%, #fff);
}
.doc--grand-place .doc-legal {
  border-top: 2px solid var(--doc-accent);
}
.doc--de-stijl .doc-head {
  padding-top: 22px;
  border-top: 12px solid;
  border-image: linear-gradient(90deg, var(--doc-accent) 0 52%, #fff 52% 53%, #f2c230 53% 70%, #fff 70% 71%, #d63a2f 71% 86%, #fff 86% 87%, #1d4e9e 87%) 1;
}
.doc--de-stijl .doc-title {
  font-size: 40px;
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.doc--de-stijl .doc-items th {
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.doc--de-stijl .doc-items td {
  border-bottom-color: #d9d9d9;
}
.doc--de-stijl .doc-totals .d-total th,
.doc--de-stijl .doc-totals .d-total td {
  border-top: 3px solid var(--ink);
  font-size: 18px;
}
.doc--de-stijl .doc-totals .d-total td {
  box-shadow: inset 6px 0 0 var(--doc-accent);
  padding-left: 14px;
}
.doc--de-stijl .doc-legal {
  border-top: 3px solid var(--ink);
}
.doc--harbour .doc-title {
  font-size: 28px;
  letter-spacing: 0.04em;
}
.doc--harbour .doc-from {
  line-height: 1.6;
}
.doc--harbour .doc-parties {
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--doc-accent) 7%, #fff);
}
.doc--harbour .doc-items th {
  border-bottom: 2px solid color-mix(in srgb, var(--doc-accent) 35%, #fff);
}
.doc--harbour .doc-totals .d-total th,
.doc--harbour .doc-totals .d-total td {
  border-top: 0;
  background: var(--doc-accent);
  color: #fff;
  padding: 10px 14px;
}
.doc--harbour .doc-totals .d-total th {
  border-radius: 999px 0 0 999px;
}
.doc--harbour .doc-totals .d-total td {
  border-radius: 0 999px 999px 0;
}
.doc--fjord .doc-head {
  padding: 26px 28px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--doc-accent) 7%, #fff);
  margin-bottom: 38px;
}
.doc--fjord .doc-title {
  font-size: 26px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
}
.doc--fjord h3,
.doc--fjord .doc-items th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11.5px;
  font-weight: 500;
}
.doc--fjord .doc-items th {
  border-bottom: 1px solid var(--line);
}
.doc--fjord .doc-items td {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: #f0ece8;
}
.doc--fjord .doc-totals .d-total th,
.doc--fjord .doc-totals .d-total td {
  border-top: 1px solid var(--line);
  font-size: 22px;
  font-weight: 600;
  color: var(--doc-accent);
}
/* Paid designs. Each tier adds designs to the one below it, and the most refined sit in the dearest plan (src/js/designs.mjs). */
.doc--atelier,
.doc--sunrise,
.doc--noir,
.doc--gatsby,
.doc--monarch,
.doc--prism,
.doc--meridian,
.doc--ledger {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.doc--atelier {
  border-left: 14px solid var(--doc-accent);
  padding-left: 38px;
}
.doc--atelier .doc-title {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.03em;
  text-transform: none;
}
.doc--atelier .doc-meta dd {
  font-weight: 500;
}
.doc--atelier .doc-items th {
  padding: 9px 10px;
  border-bottom: 0;
  background: color-mix(in srgb, var(--doc-accent) 10%, #fff);
  color: var(--ink);
}
.doc--atelier .doc-items th:first-child,
.doc--atelier .doc-items td:first-child {
  padding-left: 10px;
}
.doc--atelier .doc-items th:last-child,
.doc--atelier .doc-items td:last-child {
  padding-right: 10px;
}
.doc--atelier .doc-totals .d-total th,
.doc--atelier .doc-totals .d-total td {
  border-top: 0;
  font-size: 24px;
  font-weight: 300;
  color: var(--doc-accent);
}
.doc--ledger .d-num,
.doc--ledger .doc-totals td,
.doc--ledger .doc-meta dd {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12.5px;
}
.doc--ledger .doc-head {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.doc--ledger .doc-items th {
  padding: 8px 10px;
  border-bottom: 0;
  background: var(--ink);
  color: #fff;
}
.doc--ledger .doc-items th:first-child,
.doc--ledger .doc-items td:first-child {
  padding-left: 10px;
}
.doc--ledger .doc-items th:last-child,
.doc--ledger .doc-items td:last-child {
  padding-right: 10px;
}
.doc--ledger .doc-items tr:nth-child(even) td {
  background: #f6f4f1;
}
.doc--ledger .doc-totals .d-total th,
.doc--ledger .doc-totals .d-total td {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 8px 10px;
  font-size: 15px;
}
.doc--sunrise .doc-head {
  margin: calc(-1 * var(--pad)) -52px 34px;
  padding: 38px 52px 34px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(115deg, var(--doc-accent), color-mix(in srgb, var(--doc-accent) 42%, #fff));
  color: #fff;
}
.doc--sunrise .doc-from,
.doc--sunrise .doc-meta dt {
  color: rgba(255, 255, 255, 0.86);
}
.doc--sunrise .doc-from-name,
.doc--sunrise .doc-title {
  color: #fff;
}
.doc--sunrise .doc-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.doc--sunrise .ph {
  color: rgba(255, 255, 255, 0.62);
}
.doc--sunrise .doc-items th {
  border-bottom: 0;
  color: var(--doc-accent);
}
.doc--sunrise .doc-totals .d-total th,
.doc--sunrise .doc-totals .d-total td {
  border-top: 0;
  background: color-mix(in srgb, var(--doc-accent) 11%, #fff);
  padding: 10px 12px;
}
.doc--sunrise .doc-totals .d-total th {
  border-radius: 999px 0 0 999px;
}
.doc--sunrise .doc-totals .d-total td {
  border-radius: 0 999px 999px 0;
  color: var(--doc-accent);
}
.doc--meridian .doc-head {
  flex-direction: row-reverse;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}
.doc--meridian .doc-brand {
  align-items: flex-end;
  text-align: right;
}
.doc--meridian .doc-logo {
  object-position: right center;
}
.doc--meridian .doc-titlebox {
  text-align: left;
}
.doc--meridian .doc-meta div {
  justify-content: flex-start;
}
.doc--meridian .doc-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.doc--meridian .doc-items th {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
.doc--meridian .doc-totals .d-total th,
.doc--meridian .doc-totals .d-total td {
  border-top: 0;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.doc--prism {
  padding-top: calc(var(--pad) + 30px);
}
.doc--prism::before,
.doc--prism::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
}
.doc--prism::before {
  right: 0;
  background: var(--doc-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 44% 100%);
}
.doc--prism::after {
  width: 44%;
  background: color-mix(in srgb, var(--doc-accent) 55%, #000);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.doc--prism .doc-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.doc--prism .doc-meta dd {
  letter-spacing: 0.03em;
}
.doc--prism .doc-items th {
  border-bottom-width: 3px;
}
.doc--prism .doc-totals .d-total th,
.doc--prism .doc-totals .d-total td {
  border-top: 0;
  background: color-mix(in srgb, var(--doc-accent) 9%, #fff);
  padding: 10px 12px;
}
.doc--prism .doc-totals .d-total th {
  border-left: 5px solid var(--doc-accent);
}
.doc--kensington {
  font-family: Georgia, 'Times New Roman', serif;
}
.doc--kensington .doc-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--doc-accent);
}
.doc--kensington .doc-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: none;
}
.doc--kensington h3,
.doc--kensington .doc-items th {
  font-size: 12.5px;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-transform: none;
}
.doc--kensington .doc-items th {
  border-bottom: 1px solid var(--doc-accent);
  font-weight: 600;
}
.doc--kensington .doc-items td {
  border-bottom: 1px dotted #cfc8c0;
}
.doc--kensington .doc-totals .d-total th,
.doc--kensington .doc-totals .d-total td {
  border-top: 1px solid var(--doc-accent);
  border-bottom: 3px double var(--doc-accent);
  font-size: 19px;
  font-weight: 500;
}
.doc--chancery {
  font-family: Georgia, 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
}
.doc--chancery .doc-head {
  margin-bottom: 40px;
}
.doc--chancery .doc-title {
  font-family: Georgia, 'Palatino Linotype', Palatino, serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
}
.doc--chancery .doc-from-name {
  font-size: 19px;
  font-style: italic;
}
.doc--chancery h3,
.doc--chancery .doc-items th {
  color: var(--doc-accent);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}
.doc--chancery .doc-items th {
  border-bottom: 1px solid var(--ink);
}
.doc--chancery .doc-items td {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: #efeae4;
}
.doc--chancery .doc-totals .d-total th,
.doc--chancery .doc-totals .d-total td {
  border-top: 1px solid var(--ink);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--doc-accent);
}
.doc--noir .doc-head {
  margin: calc(-1 * var(--pad)) -52px 36px;
  padding: 42px 52px 34px;
  border-bottom: 4px solid var(--doc-accent);
  background: #17151a;
  color: #f4efe6;
}
.doc--noir .doc-from,
.doc--noir .doc-meta dt {
  color: rgba(244, 239, 230, 0.7);
}
.doc--noir .doc-from-name,
.doc--noir .doc-title {
  color: #f4efe6;
}
.doc--noir .doc-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.32em;
}
.doc--noir .ph {
  color: rgba(244, 239, 230, 0.5);
}
.doc--noir .doc-items th {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
.doc--noir .doc-totals .d-total th,
.doc--noir .doc-totals .d-total td {
  border-top: 0;
  padding: 11px 14px;
  background: #17151a;
  color: #f4efe6;
}
.doc--gatsby {
  --gold: #a8843c;
  padding: calc(var(--pad) + 8px) 60px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -10px;
  font-family: Georgia, 'Times New Roman', serif;
}
.doc--gatsby .doc-head {
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gold);
  text-align: center;
}
.doc--gatsby .doc-head::after {
  content: '◆';
  position: absolute;
  bottom: -7px;
  left: 50%;
  padding: 0 10px;
  background: #fff;
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
  transform: translateX(-50%);
}
.doc--gatsby .doc-brand {
  align-items: center;
}
.doc--gatsby .doc-logo {
  object-position: center;
}
.doc--gatsby .doc-from-name {
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.doc--gatsby .doc-titlebox {
  text-align: center;
}
.doc--gatsby .doc-title {
  margin-bottom: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink);
}
.doc--gatsby .doc-meta div {
  justify-content: center;
}
.doc--gatsby h3 {
  color: var(--gold);
  letter-spacing: 0.2em;
}
.doc--gatsby .doc-items th {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  letter-spacing: 0.14em;
}
.doc--gatsby .doc-items td {
  border-bottom-color: #ece6da;
}
.doc--gatsby .doc-totals .d-total th,
.doc--gatsby .doc-totals .d-total td {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-size: 18px;
  font-weight: 500;
  color: var(--doc-accent);
}
.doc--monarch {
  padding: calc(var(--pad) + 10px) 62px;
  border: 1px solid var(--doc-accent);
  outline: 4px double var(--doc-accent);
  outline-offset: -14px;
  font-family: Georgia, 'Times New Roman', serif;
}
.doc--monarch .doc-head {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  text-align: center;
}
.doc--monarch .doc-brand {
  align-items: center;
}
.doc--monarch .doc-logo {
  object-position: center;
}
.doc--monarch .doc-from-name {
  font-size: 22px;
  font-variant: small-caps;
  letter-spacing: 0.1em;
}
.doc--monarch .doc-titlebox {
  align-self: stretch;
  text-align: center;
}
.doc--monarch .doc-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.34em;
}
.doc--monarch .doc-title::before,
.doc--monarch .doc-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--doc-accent);
}
.doc--monarch .doc-meta div {
  justify-content: center;
}
.doc--monarch h3 {
  font-variant: small-caps;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: none;
}
.doc--monarch .doc-items th {
  border-top: 1px solid var(--doc-accent);
  border-bottom: 1px solid var(--doc-accent);
  color: var(--doc-accent);
}
.doc--monarch .doc-totals .d-total th,
.doc--monarch .doc-totals .d-total td {
  border-top: 3px double var(--doc-accent);
  font-size: 19px;
  font-weight: 500;
  color: var(--doc-accent);
}
/* Second batch: graphics (CSS masks tinted with the accent) and fuller layouts. */
.doc--terrazzo,
.doc--blueprint,
.doc--waveform,
.doc--ribbon,
.doc--pavilion,
.doc--aurora,
.doc--botanica,
.doc--editorial,
.doc--monolith {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.doc--terrazzo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 170px;
  background: var(--doc-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 260 170%27%3E%3Ccircle cx=%27210%27 cy=%2746%27 r=%2734%27 fill=%27%23000%27/%3E%3Ccircle cx=%27132%27 cy=%2726%27 r=%2713%27 fill=%27%23000%27 fill-opacity=%27.45%27/%3E%3Cpath d=%27M26 150a30 30 0 0 1 60 0z%27 fill=%27%23000%27 fill-opacity=%27.7%27/%3E%3Cpath d=%27M150 140l26-44 26 44z%27 fill=%27%23000%27 fill-opacity=%27.35%27/%3E%3Cpath d=%27M8 56c14-22 28 22 42 0s28 22 42 0%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%279%27 stroke-linecap=%27round%27/%3E%3Ccircle cx=%27236%27 cy=%27132%27 r=%279%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%276%27/%3E%3Crect x=%2796%27 y=%27104%27 width=%2722%27 height=%2722%27 rx=%274%27 transform=%27rotate(18 107 115)%27 fill=%27%23000%27 fill-opacity=%27.55%27/%3E%3Ccircle cx=%2762%27 cy=%2722%27 r=%276%27 fill=%27%23000%27/%3E%3C/svg%3E") no-repeat right top / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 260 170%27%3E%3Ccircle cx=%27210%27 cy=%2746%27 r=%2734%27 fill=%27%23000%27/%3E%3Ccircle cx=%27132%27 cy=%2726%27 r=%2713%27 fill=%27%23000%27 fill-opacity=%27.45%27/%3E%3Cpath d=%27M26 150a30 30 0 0 1 60 0z%27 fill=%27%23000%27 fill-opacity=%27.7%27/%3E%3Cpath d=%27M150 140l26-44 26 44z%27 fill=%27%23000%27 fill-opacity=%27.35%27/%3E%3Cpath d=%27M8 56c14-22 28 22 42 0s28 22 42 0%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%279%27 stroke-linecap=%27round%27/%3E%3Ccircle cx=%27236%27 cy=%27132%27 r=%279%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%276%27/%3E%3Crect x=%2796%27 y=%27104%27 width=%2722%27 height=%2722%27 rx=%274%27 transform=%27rotate(18 107 115)%27 fill=%27%23000%27 fill-opacity=%27.55%27/%3E%3Ccircle cx=%2762%27 cy=%2722%27 r=%276%27 fill=%27%23000%27/%3E%3C/svg%3E") no-repeat right top / contain;
  opacity: 0.9;
  pointer-events: none;
}
.doc--terrazzo .doc-head {
  margin-bottom: 44px;
}
.doc--terrazzo .doc-titlebox {
  align-self: flex-end;
  margin-top: 118px;
}
.doc--terrazzo .doc-title {
  display: inline-block;
  padding: 4px 18px 6px;
  border-radius: 999px;
  background: var(--doc-accent);
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.doc--terrazzo .doc-items th {
  border-bottom: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--doc-accent) 12%, #fff);
  color: var(--doc-accent);
}
.doc--terrazzo .doc-items th:first-child {
  padding-left: 14px;
}
.doc--terrazzo .doc-items td:first-child {
  padding-left: 14px;
}
.doc--terrazzo .doc-totals .d-total th,
.doc--terrazzo .doc-totals .d-total td {
  border-top: 0;
  background: var(--doc-accent);
  color: #fff;
  padding: 9px 12px;
}
.doc--terrazzo .doc-totals .d-total th {
  border-radius: 999px 0 0 999px;
}
.doc--terrazzo .doc-totals .d-total td {
  border-radius: 0 999px 999px 0;
}
.doc--blueprint {
  --bp: color-mix(in srgb, var(--doc-accent) 22%, #fff);
  background:
    linear-gradient(var(--bp) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--bp) 1px, transparent 1px) 0 0 / 24px 24px,
    #fff;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
}
.doc--blueprint::before,
.doc--blueprint::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--doc-accent);
  pointer-events: none;
}
.doc--blueprint::before {
  top: 18px;
  left: 18px;
  border-width: 2px 0 0 2px;
}
.doc--blueprint::after {
  right: 18px;
  bottom: 18px;
  border-width: 0 2px 2px 0;
}
.doc--blueprint .doc-head {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--doc-accent);
}
.doc--blueprint .doc-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--doc-accent);
}
.doc--blueprint .doc-from-name,
.doc--blueprint h3,
.doc--blueprint .doc-items th {
  font-family: inherit;
  letter-spacing: 0.08em;
}
.doc--blueprint .doc-to,
.doc--blueprint .doc-side > .doc-block {
  padding: 10px 12px;
  border: 1px dashed var(--doc-accent);
  background: rgba(255, 255, 255, 0.86);
}
.doc--blueprint .doc-items {
  background: rgba(255, 255, 255, 0.9);
}
.doc--blueprint .doc-items th {
  border-top: 1px solid var(--doc-accent);
  border-bottom: 1px solid var(--doc-accent);
  color: var(--doc-accent);
}
.doc--blueprint .doc-items td {
  border-bottom: 1px dashed var(--line);
}
.doc--blueprint .doc-totals {
  background: rgba(255, 255, 255, 0.9);
}
.doc--blueprint .doc-totals .d-total th,
.doc--blueprint .doc-totals .d-total td {
  border-top: 2px solid var(--doc-accent);
  border-bottom: 2px solid var(--doc-accent);
  color: var(--doc-accent);
}
.doc--waveform .doc-head {
  position: relative;
  margin: calc(-1 * var(--pad)) -52px 64px;
  padding: 38px 52px 34px;
  background: var(--doc-accent);
  color: #fff;
}
.doc--waveform .doc-head::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  height: 30px;
  background: var(--doc-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1200 60%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 0H1200V28C1050 62 900 -2 750 28S450 62 300 28 90 -2 0 24Z%27 fill=%27%23000%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1200 60%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 0H1200V28C1050 62 900 -2 750 28S450 62 300 28 90 -2 0 24Z%27 fill=%27%23000%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.doc--waveform .doc-from,
.doc--waveform .doc-meta dt {
  color: rgba(255, 255, 255, 0.85);
}
.doc--waveform .doc-from-name,
.doc--waveform .doc-title {
  color: #fff;
}
.doc--waveform .ph {
  color: rgba(255, 255, 255, 0.6);
}
.doc--waveform .doc-items th {
  border-bottom: 0;
  color: var(--doc-accent);
}
.doc--waveform .doc-totals .d-total th,
.doc--waveform .doc-totals .d-total td {
  border-top: 2px solid var(--doc-accent);
  color: var(--doc-accent);
  font-size: 18px;
}
.doc--ribbon {
  border-top: 10px solid var(--doc-accent);
}
.doc--ribbon .doc-head {
  margin-bottom: 40px;
}
.doc--ribbon .doc-titlebox {
  position: relative;
  margin-right: -52px;
  padding: 10px 52px 12px 34px;
  background: var(--doc-accent);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
}
.doc--ribbon .doc-titlebox::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.22), transparent);
}
.doc--ribbon .doc-title {
  margin-bottom: 4px;
  color: #fff;
  font-size: 26px;
}
.doc--ribbon .doc-meta dt {
  color: rgba(255, 255, 255, 0.82);
}
.doc--ribbon .doc-items th {
  border-bottom: 0;
  background: color-mix(in srgb, var(--doc-accent) 9%, #fff);
}
.doc--ribbon .doc-totals .d-total th,
.doc--ribbon .doc-totals .d-total td {
  border-top: 0;
  background: var(--doc-accent);
  color: #fff;
  padding: 9px 12px;
}
.doc--pavilion {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  column-gap: 38px;
  padding-left: 0;
}
.doc--pavilion::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 252px;
  background: linear-gradient(180deg, var(--doc-accent), color-mix(in srgb, var(--doc-accent) 70%, #000));
}
.doc--pavilion > *,
.doc--pavilion .doc-brand,
.doc--pavilion .doc-titlebox {
  position: relative;
}
.doc--pavilion .doc-head {
  display: contents;
}
.doc--pavilion .doc-brand {
  grid-column: 1;
  grid-row: 1;
  padding: 0 26px;
  color: #fff;
}
.doc--pavilion .doc-from,
.doc--pavilion .doc-from-name {
  color: rgba(255, 255, 255, 0.9);
}
.doc--pavilion .ph {
  color: rgba(255, 255, 255, 0.6);
}
.doc--pavilion .doc-titlebox {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 28px;
  text-align: left;
}
.doc--pavilion .doc-title {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.doc--pavilion .doc-meta div {
  justify-content: flex-start;
}
.doc--pavilion .doc-parties {
  grid-column: 1;
  grid-row: 2;
  display: block;
  padding: 26px 26px 0;
  color: #fff;
}
.doc--pavilion .doc-parties h3 {
  color: rgba(255, 255, 255, 0.7);
}
.doc--pavilion .doc-items {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
.doc--pavilion .doc-summary {
  grid-column: 2;
  grid-row: 3;
}
.doc--pavilion .doc-terms {
  grid-column: 2;
  grid-row: 4;
}
.doc--pavilion .doc-legal {
  grid-column: 1 / -1;
  grid-row: 5;
  align-self: end;
  margin-left: 290px;
}
.doc--pavilion .doc-totals .d-total th,
.doc--pavilion .doc-totals .d-total td {
  border-top: 2px solid var(--doc-accent);
  color: var(--doc-accent);
}
.doc--aurora {
  background:
    radial-gradient(60% 34% at 12% 0%, color-mix(in srgb, var(--doc-accent) 34%, #fff), transparent 70%),
    radial-gradient(46% 28% at 96% 6%, color-mix(in srgb, var(--doc-accent) 20%, #ffd9ec), transparent 72%),
    radial-gradient(40% 30% at 70% 0%, color-mix(in srgb, var(--doc-accent) 16%, #d9ecff), transparent 70%),
    #fff;
}
.doc--aurora .doc-head {
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--doc-accent) 40%, transparent);
  margin-bottom: 36px;
}
.doc--aurora .doc-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}
.doc--aurora .doc-to {
  padding: 14px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--doc-accent) 6%, #fff);
}
.doc--aurora .doc-items th {
  border-bottom: 0;
  color: var(--doc-accent);
}
.doc--aurora .doc-items td {
  border-bottom-color: color-mix(in srgb, var(--doc-accent) 10%, #fff);
}
.doc--aurora .doc-totals .d-total th,
.doc--aurora .doc-totals .d-total td {
  border-top: 0;
  padding: 11px 14px;
  background: linear-gradient(100deg, var(--doc-accent), color-mix(in srgb, var(--doc-accent) 55%, #c084fc));
  color: #fff;
}
.doc--aurora .doc-totals .d-total th {
  border-radius: 14px 0 0 14px;
}
.doc--aurora .doc-totals .d-total td {
  border-radius: 0 14px 14px 0;
}
.doc--botanica {
  font-family: Georgia, 'Times New Roman', serif;
}
.doc--botanica::before,
.doc--botanica::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 205px;
  background: color-mix(in srgb, var(--doc-accent) 75%, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 220 300%27%3E%3Cpath d=%27M210 4C170 70 120 130 30 296%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%273%27 stroke-linecap=%27round%27/%3E%3Cg fill=%27%23000%27%3E%3Cpath d=%27M178 52c24-6 38 6 40 22-22 8-38-2-40-22z%27 fill-opacity=%27.8%27/%3E%3Cpath d=%27M158 86c-22-12-42-4-48 12 20 14 40 8 48-12z%27 fill-opacity=%27.6%27/%3E%3Cpath d=%27M138 118c26-4 40 10 40 26-24 6-40-6-40-26z%27 fill-opacity=%27.8%27/%3E%3Cpath d=%27M116 150c-24-10-46-2-52 14 22 14 44 6 52-14z%27 fill-opacity=%27.6%27/%3E%3Cpath d=%27M92 184c24-2 38 12 38 28-24 4-38-8-38-28z%27 fill-opacity=%27.8%27/%3E%3Cpath d=%27M66 220c-22-10-42-2-48 14 20 12 40 6 48-14z%27 fill-opacity=%27.6%27/%3E%3Ccircle cx=%27204%27 cy=%2724%27 r=%275%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 220 300%27%3E%3Cpath d=%27M210 4C170 70 120 130 30 296%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%273%27 stroke-linecap=%27round%27/%3E%3Cg fill=%27%23000%27%3E%3Cpath d=%27M178 52c24-6 38 6 40 22-22 8-38-2-40-22z%27 fill-opacity=%27.8%27/%3E%3Cpath d=%27M158 86c-22-12-42-4-48 12 20 14 40 8 48-12z%27 fill-opacity=%27.6%27/%3E%3Cpath d=%27M138 118c26-4 40 10 40 26-24 6-40-6-40-26z%27 fill-opacity=%27.8%27/%3E%3Cpath d=%27M116 150c-24-10-46-2-52 14 22 14 44 6 52-14z%27 fill-opacity=%27.6%27/%3E%3Cpath d=%27M92 184c24-2 38 12 38 28-24 4-38-8-38-28z%27 fill-opacity=%27.8%27/%3E%3Cpath d=%27M66 220c-22-10-42-2-48 14 20 12 40 6 48-14z%27 fill-opacity=%27.6%27/%3E%3Ccircle cx=%27204%27 cy=%2724%27 r=%275%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.42;
  pointer-events: none;
}
.doc--botanica::before {
  right: 14px;
  bottom: 14px;
  transform: scaleX(-1) rotate(180deg);
}
.doc--botanica::after {
  bottom: 14px;
  left: 14px;
  transform: rotate(180deg);
}
.doc--botanica .doc-title {
  margin-top: 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.doc--botanica .doc-from-name {
  font-size: 18px;
  font-style: italic;
}
.doc--botanica h3,
.doc--botanica .doc-items th {
  font-size: 12px;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--doc-accent);
}
.doc--botanica .doc-items th {
  border-bottom: 1px solid var(--doc-accent);
  font-weight: 600;
}
.doc--botanica .doc-items td {
  border-bottom-color: color-mix(in srgb, var(--doc-accent) 14%, #fff);
}
.doc--botanica .doc-totals .d-total th,
.doc--botanica .doc-totals .d-total td {
  border-top: 1px solid var(--doc-accent);
  border-bottom: 1px solid var(--doc-accent);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: var(--doc-accent);
}
.doc--editorial .doc-head {
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 6px solid var(--ink);
}
.doc--editorial .doc-titlebox {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  order: -1;
  text-align: left;
}
.doc--editorial .doc-title {
  margin: 0;
  font-size: 84px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-transform: lowercase;
  color: var(--ink);
}
.doc--editorial .doc-meta {
  gap: 3px;
  padding-left: 14px;
  border-left: 6px solid var(--doc-accent);
}
.doc--editorial .doc-meta div {
  justify-content: space-between;
}
.doc--editorial .doc-brand {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.doc--editorial h3 {
  color: var(--doc-accent);
  font-weight: 800;
}
.doc--editorial .doc-items th {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
.doc--editorial .doc-totals .d-total th,
.doc--editorial .doc-totals .d-total td {
  border-top: 6px solid var(--ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.doc--editorial .doc-totals .d-total td {
  color: var(--doc-accent);
}
.doc--monolith {
  --ink: #f1efe9;
  --soft: #a6a39b;
  --line: #2a2d33;
  background: #0f1115;
  color: var(--ink);
}
.doc--monolith .doc-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.doc--monolith .doc-title {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent-lit, color-mix(in srgb, var(--doc-accent) 55%, #fff));
}
.doc--monolith .ph {
  color: #6f6c66;
}
.doc--monolith .doc-items th {
  border-bottom: 1px solid color-mix(in srgb, var(--doc-accent) 60%, #fff);
  color: var(--soft);
}
.doc--monolith .doc-items td {
  border-bottom-color: var(--line);
}
.doc--monolith .doc-totals .d-total th,
.doc--monolith .doc-totals .d-total td {
  border-top: 1px solid color-mix(in srgb, var(--doc-accent) 60%, #fff);
  font-size: 22px;
  font-weight: 300;
  color: color-mix(in srgb, var(--doc-accent) 55%, #fff);
}
.doc--monolith .doc-legal,
.doc--monolith .doc-terms {
  border-top-color: var(--line);
}
.tpl-thumb {
  position: relative;
  display: block;
  width: 160px;
  height: 226px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 43, 0.12), 0 4px 12px rgba(20, 32, 43, 0.1);
  pointer-events: none;
}
.tpl-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 794px;
  height: 1123px;
  transform: scale(0.20151);
  transform-origin: 0 0;
}
.tpl-page .doc {
  min-height: 1123px;
}
@media (max-width: 480px) {
.tpl-thumb {
    width: 128px;
    height: 181px;
  }
.tpl-page {
    transform: scale(0.16121);
  }
}
.tpl-thumb--lg {
  width: 220px;
  height: 311px;
}
.tpl-thumb--lg .tpl-page {
  transform: scale(0.27708);
}
.doc-qrbill {
  display: grid;
  grid-template-columns: 62fr 148fr;
  margin: 2.5em -1em -1em;
  border-top: 1px dashed #000;
  font-family: Helvetica, Arial, 'Liberation Sans', sans-serif;
  color: #000;
  font-size: 0.62em;
  line-height: 1.3;
  break-inside: avoid;
  aspect-ratio: 210 / 105;
}
.doc-qrbill h3 { font-size: 1.55em; font-weight: 700; margin: 0 0 0.9em; color: #000; text-transform: none; letter-spacing: 0; }
.doc-qrbill h4 { font-size: 0.95em; font-weight: 700; margin: 0.9em 0 0.1em; color: #000; }
.doc-qrbill p { margin: 0; }
.qrb-receipt { padding: 5% 6%; border-right: 1px dashed #000; display: flex; flex-direction: column; }
.qrb-receipt .qrb-info { flex: 1; }
.qrb-pay { padding: 2.4% 2.4%; display: grid; grid-template-columns: 51fr 87fr; gap: 3%; }
.qrb-left { display: flex; flex-direction: column; }
.qrb-code { width: 100%; max-width: 46mm; aspect-ratio: 1; margin: 0.4em 0 1em; display: block; }
.qrb-amount { display: flex; gap: 1.6em; }
.qrb-amount h4 { margin-top: 0; }
.qrb-accept { text-align: right; font-weight: 700; font-size: 0.95em; margin-top: auto; }
.qrb-blank { display: block; margin-top: 0.3em; border: 1px solid #000; border-style: solid; height: 3.2em; width: 100%;
  -webkit-mask: linear-gradient(#000 0 0) top left / 0.8em 0.8em no-repeat, linear-gradient(#000 0 0) top right / 0.8em 0.8em no-repeat, linear-gradient(#000 0 0) bottom left / 0.8em 0.8em no-repeat, linear-gradient(#000 0 0) bottom right / 0.8em 0.8em no-repeat;
  mask: linear-gradient(#000 0 0) top left / 0.8em 0.8em no-repeat, linear-gradient(#000 0 0) top right / 0.8em 0.8em no-repeat, linear-gradient(#000 0 0) bottom left / 0.8em 0.8em no-repeat, linear-gradient(#000 0 0) bottom right / 0.8em 0.8em no-repeat; }
.qrb-blank--amount,
.qrb-blank--amount-r { width: 8em; height: 2.6em; }
.qrb-blank--debtor { height: 6em; }
@media print {
.doc-qrbill { position: relative; width: 210mm; height: 105mm; aspect-ratio: auto; font-size: 8pt; margin: 0; break-before: auto; page-break-inside: avoid; }
.doc-qrbill h3 { font-size: 11pt; }
.doc-qrbill h4 { font-size: 6pt; }
.qrb-pay .qrb-info,
.qrb-pay .qrb-info p { font-size: 10pt; }
.qrb-pay .qrb-info h4 { font-size: 8pt; }
.qrb-receipt p { font-size: 8pt; }
.qrb-code { width: 46mm; height: 46mm; }
}
.doc .d-num,
.doc-totals,
.dock-total,
.ws-tile strong,
.ws-tile-value,
.ws-att-main strong,
[data-total],
.price {
  font-variant-numeric: tabular-nums;
}
.doc .ph-row td {
  border-bottom-style: dashed;
}
.paper {
  transition: box-shadow var(--dur-slow) var(--ease);
}
@media (hover: hover) {
.paper-stage:hover .paper {
    box-shadow: var(--doc-shadow-lg);
  }
}
.tpl-thumb:empty {
  background:
    linear-gradient(var(--doc-hairline), var(--doc-hairline)) 14% 16% / 34% 7px no-repeat,
    linear-gradient(var(--doc-hairline), var(--doc-hairline)) 86% 16% / 22% 7px no-repeat,
    linear-gradient(var(--doc-hairline), var(--doc-hairline)) 14% 34% / 72% 4px no-repeat,
    linear-gradient(var(--doc-hairline), var(--doc-hairline)) 14% 42% / 72% 4px no-repeat,
    linear-gradient(var(--doc-hairline), var(--doc-hairline)) 14% 50% / 72% 4px no-repeat,
    linear-gradient(var(--doc-hairline), var(--doc-hairline)) 86% 66% / 30% 6px no-repeat,
    #fff;
}
@media (prefers-reduced-motion: no-preference) {
.tpl-thumb:empty {
    animation: thumb-wait 1.6s ease-in-out infinite;
  }
}
