/* InvoiceKit — one stylesheet, system fonts only, print rules at the end. */

:root {
  --wrap: 1240px;
  --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Liberation Sans", "Noto Sans", "Noto Sans CJK KR", "Noto Sans KR", "Apple SD Gothic Neo",
          "Malgun Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Microsoft YaHei",
          "PingFang TC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f4f1ea;
  --bg2: #ece7dc;
  --panel: #fffdf8;
  --panel2: #f7f3ea;
  --text: #1d2733;
  --muted: #5c6a78;
  --line: #ddd6c8;
  --line2: #c8bfae;
  --ink: #16233a;
  --brand: #1f5148;
  --brand-ink: #ffffff;
  --accent: #a85a25;
  --stamp: #b3352e;
  --ok: #1c6b52;
  --warn: #a33a24;
  --paper: #ffffff;
  --shadow: 0 20px 45px rgba(40, 34, 20, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-wrap: break-word;
  font-family: var(--font); font-size: 16px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
html[lang="ko"] body { word-break: keep-all; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 10px; top: -60px; z-index: 60;
  background: var(--panel); color: var(--text); padding: 10px 14px;
  border-radius: 8px; border: 1px solid var(--line2); text-decoration: none;
}
.skip:focus { top: 10px; }
[hidden] { display: none !important; }
body.booting main { visibility: hidden; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-sym { display: block; width: 26px; height: 26px; }
.brand-word { letter-spacing: -.02em; font-size: 17px; }
.brand-prod { font-size: 15px; color: var(--muted); font-weight: 600; padding-left: 8px; border-left: 1px solid var(--line2); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-link { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.head-link:hover { color: var(--brand); }
.langs { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.langs a {
  font-size: 13px; text-decoration: none; color: var(--muted);
  padding: 5px 8px; border-radius: 7px; border: 1px solid transparent;
}
.langs a:hover { color: var(--text); border-color: var(--line2); }
.langs a[aria-current="page"] { color: var(--text); border-color: var(--line2); background: var(--panel); font-weight: 700; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 42px 0 6px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; background: var(--panel);
}
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.14; letter-spacing: -.025em; margin: 16px 0 14px; max-width: 22ch; }
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 66ch; margin: 0 0 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; padding: 22px 0 0; margin: 0; }
.stats li { min-width: 120px; }
.stats b { display: block; font-size: 21px; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--brand); color: var(--brand-ink); border: 1px solid transparent;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn.small { padding: 7px 12px; font-size: 13.5px; }
.btn.accent { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- app */
.app-shell { display: grid; grid-template-columns: minmax(370px, 430px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 26px 0 10px; }
.controls {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow); min-width: 0;
}
.controls h2 { font-size: 19px; margin: 0 0 2px; letter-spacing: -.015em; }
.controls .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.ctl-set { border: 0; border-top: 1px solid var(--line); padding: 14px 0 2px; margin: 0; min-width: 0; }
.ctl-set:first-of-type { border-top: 0; padding-top: 0; }
.ctl-set legend, .ctl-title { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); padding: 0; margin: 0 0 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 > * { min-width: 0; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.fld > span { font-weight: 600; }
input[type="text"], input[type="date"], input[type="number"], select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text); background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 8px; padding: 7px 9px; min-width: 0; width: 100%;
}
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
select { padding-right: 24px; }
input[aria-invalid="true"] { border-color: var(--warn); }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.seg button {
  background: transparent; color: var(--text); border: 0; padding: 8px 14px;
  font-size: 13.5px; cursor: pointer; font-family: inherit; font-weight: 650;
}
.seg button + button { border-left: 1px solid var(--line2); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.items-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.items-head .ctl-title { margin: 0; }
.items-editor { display: grid; gap: 8px; }
.item-row {
  display: grid; grid-template-columns: 22px repeat(3, minmax(0, 1fr)) 84px;
  grid-template-areas: "n d d d d" ". q p x a";
  gap: 7px 8px; align-items: end; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 9px 9px 6px;
}
.ir-no { grid-area: n; font-size: 12px; color: var(--muted); font-family: var(--mono); align-self: start; padding-top: 16px; text-align: center; }
.ir-desc { grid-area: d; }
.ir-qty { grid-area: q; }
.ir-unit { grid-area: p; }
.ir-disc { grid-area: x; }
.ir-actions { grid-area: a; }
.ir-desc, .ir-num { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.ir-num > span, .ir-desc > span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ir-desc input, .ir-num input { width: 100%; font-size: 13.5px; padding: 6px 7px; }
.ir-actions { display: flex; gap: 4px; justify-content: flex-end; }
.ir-btn {
  background: var(--panel); border: 1px solid var(--line2); color: var(--text);
  width: 26px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 14px;
  line-height: 1; padding: 0; font-family: inherit;
}
.ir-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.ir-btn:disabled { opacity: .38; cursor: default; }
.ir-btn.danger:hover { border-color: var(--warn); color: var(--warn); }
.add-item {
  margin-top: 9px; width: 100%; background: transparent; color: var(--brand);
  border: 1px dashed var(--line2); border-radius: 9px; padding: 9px; font-weight: 700;
  cursor: pointer; font-family: inherit; font-size: 14px;
}
.add-item:hover { border-color: var(--brand); background: var(--panel2); }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.note {
  background: var(--panel2); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 9px 11px; font-size: 12.5px; color: var(--muted); margin: 10px 0 0;
}
.note b { color: var(--text); }
.sign-pad-wrap canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 600 / 190;
  background: #fff; border: 1px dashed var(--line2); border-radius: 9px; touch-action: none;
}
.sign-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.save-state { font-size: 12px; color: var(--ok); margin: 6px 0 0; min-height: 18px; }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.file-actions .btn { flex: 1 1 auto; }
.err { color: var(--warn); font-size: 13px; margin: 8px 0 0; font-weight: 600; }
.live-sum {
  margin-top: 12px; background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 9px; padding: 9px 12px; font-size: 14px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.live-sum span { font-weight: 600; color: var(--muted); font-size: 12.5px; }

/* preview column */
.preview-col { min-width: 0; position: sticky; top: 80px; }
.preview-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.preview-bar .pv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-size { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.page-size select { width: auto; padding: 5px 24px 5px 8px; font-size: 13px; }
.paper-wrap { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.paper {
  background: var(--paper); color: var(--ink); width: 100%; max-width: 820px; margin: 0 auto;
  padding: 34px 36px 30px; border-radius: 4px; box-shadow: 0 12px 30px rgba(30, 25, 12, .16);
  font-size: 13.5px; line-height: 1.5; min-height: 640px;
}
.paper[data-paper="letter"] { max-width: 840px; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.paper-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.paper-logo { width: 30px; height: 30px; }
.paper-org { font-weight: 800; font-size: 15px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.paper-titlebox { text-align: right; }
.paper-titlebox h2 {
  margin: 0; font-size: 27px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); line-height: 1.1;
}
.paper-no { margin: 4px 0 0; font-family: var(--mono); font-size: 12px; color: #505d6b; }
.paper-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid #c9cfd6;
  margin: 18px 0 16px; padding: 9px 0;
}
.paper-meta span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b7783; }
.paper-meta strong { font-size: 13px; font-weight: 700; }
.paper-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 16px; }
.paper-parties h3 { margin: 0 0 5px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.party-name { margin: 0 0 3px; font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
.party-line { margin: 0; font-size: 12px; color: #4d5864; overflow-wrap: anywhere; }
.paper-items { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 4px 0 14px; }
.paper-items th {
  text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: #6b7783; border-bottom: 1.5px solid var(--ink); padding: 6px 5px;
}
.paper-items td { padding: 7px 5px; border-bottom: 1px solid #e2e6ea; vertical-align: top; overflow-wrap: anywhere; font-size: 12.5px; }
.paper-items th.num, .paper-items td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper-items td.idx { color: #8a939c; width: 30px; }
.paper-items th:nth-child(1) { width: 34px; }
.paper-items th:nth-child(3) { width: 56px; text-align: right; }
.paper-items th:nth-child(4), .paper-items th:nth-child(5), .paper-items th:nth-child(6) { width: 92px; text-align: right; }
.paper-items td.empty { text-align: center; color: #8a939c; padding: 18px 5px; }
.paper-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.paper-notes { font-size: 12px; color: #4d5864; min-width: 0; }
.tax-note { margin: 0 0 10px; padding: 7px 9px; background: #f4f6f7; border-left: 3px solid var(--accent); border-radius: 4px; font-size: 11.5px; }
.paper-notes h4 { margin: 0 0 3px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b7783; }
.paper-notes p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.paper-totals { font-size: 12.5px; min-height: 210px; }
.trow { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.trow span { color: #4d5864; }
.trow strong { font-variant-numeric: tabular-nums; font-weight: 700; }
.trow.muted strong { font-weight: 600; }
.trow.head { margin-top: 7px; padding-top: 8px; border-top: 1px solid #c9cfd6; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.trow.big { margin-top: 7px; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 15px; }
.trow.big span { color: var(--ink); font-weight: 700; }
.trow.big strong { font-size: 17px; }
.paper-pay { margin-top: 14px; padding: 10px 12px; background: #f6f7f8; border-radius: 5px; }
.paper-pay h4 { margin: 0 0 3px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b7783; }
.paper-pay p { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.paper-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 26px; }
.paper-sign { min-height: 76px; display: flex; align-items: center; }
.paper-note { margin: 0; font-size: 10px; color: #8a939c; }
.sign-img { height: 70px; width: auto; max-width: 220px; }
.seal {
  width: 82px; height: 82px; border: 3px double var(--stamp); border-radius: 50%;
  color: var(--stamp); display: grid; place-items: center; text-align: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.25;
  transform: rotate(-8deg); padding: 6px; overflow: hidden; word-break: keep-all;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* ad slot: fixed height so the page never shifts when an ad fills it */
.ad-slot {
  position: relative; height: 280px; margin: 26px 0; border: 1px dashed var(--line2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: var(--panel);
  overflow: hidden;
}
.ad-slot ins { position: absolute; inset: 0; display: block !important; width: 100%; height: 100%; }
.ad-slot .ad-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- content */
.section { margin: 38px 0; scroll-margin-top: 84px; }
.section h2 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.02em; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.step b { display: block; font-size: 15px; margin-bottom: 4px; }
.step span { font-size: 13.5px; color: var(--muted); }
.faq { display: grid; gap: 9px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 15px; }
.faq details p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.grid-links li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.grid-links a { display: block; padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 14.5px; }
.grid-links a:hover { color: var(--brand); }
.grid-links small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------------------------------------------------------------- guides */
.guide-body { max-width: 76ch; }
.guide-body h2 { font-size: 23px; margin: 30px 0 9px; letter-spacing: -.02em; }
.guide-body h3 { font-size: 18px; margin: 22px 0 7px; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul, .guide-body ol { margin: 0 0 16px; padding-left: 22px; }
.guide-body li { margin-bottom: 5px; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14px; }
.guide-body th, .guide-body td { border: 1px solid var(--line2); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide-body th { background: var(--panel2); }
.guide-body code { font-family: var(--mono); font-size: 12.5px; background: var(--panel2); padding: 1px 5px; border-radius: 4px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.guide-meta { font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.cta-box {
  background: var(--panel); border: 1px solid var(--line2); border-radius: 12px;
  padding: 18px; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.cta-box p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 52ch; }
.srcList { font-size: 14px; }
.srcList li { margin-bottom: 5px; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; font-size: 13.5px; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .preview-col { position: static; }
  .paper { max-width: none; }
}
@media (max-width: 720px) {
  .head-inner { flex-wrap: wrap; gap: 8px; padding: 9px 0; }
  .head-tools { gap: 8px; width: 100%; margin-left: 0; justify-content: space-between; }
  .brand-prod { display: none; }
  .hero { padding: 28px 0 4px; }
  .hero h1 { max-width: none; }
  .stats { gap: 14px 22px; }
  .paper { padding: 22px 18px; min-height: 0; }
  .paper-head { gap: 10px; }
  .paper-titlebox h2 { font-size: 21px; }
  .paper-meta { grid-template-columns: 1fr 1fr; }
  .paper-parties { grid-template-columns: 1fr; gap: 12px; }
  .paper-bottom { grid-template-columns: 1fr; }
  .paper-totals { min-height: 0; }
  .paper-items th:nth-child(4), .paper-items th:nth-child(5), .paper-items th:nth-child(6) { width: 74px; }
  .paper-items th, .paper-items td { padding: 6px 3px; font-size: 11px; }
  .paper-items td { font-size: 11px; }
  .paper-pay { margin-top: 12px; }
  .guide-body table { display: block; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 560px) {
  .paper-items thead { display: none; }
  .paper-items, .paper-items tbody { display: block; }
  .paper-items tr { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid #e2e6ea; }
  .paper-items td { border: 0; padding: 0; font-size: 12px; }
  .paper-items td.idx { display: none; }
  .paper-items td:nth-child(2) { flex: 1 1 100%; font-weight: 600; }
  .paper-items td.num { white-space: nowrap; }
  .paper-items td:nth-child(6) { margin-left: auto; font-weight: 700; }
  .paper-items td:nth-child(3)::before { content: "\00D7 "; color: #8a939c; }
}

@media (max-width: 520px) {
  .grid2 { grid-template-columns: 1fr; }
  .preview-bar { align-items: stretch; }
  .preview-bar .pv-actions { width: 100%; }
  .preview-bar .btn { flex: 1 1 auto; }
  .paper-meta { grid-template-columns: 1fr; gap: 6px; }
  .paper-items th:nth-child(1) { width: 26px; }
  .paper-items th:nth-child(3) { width: 40px; }
  .paper-items th:nth-child(4), .paper-items th:nth-child(5), .paper-items th:nth-child(6) { width: 62px; }
  .trow.big strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- print */
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .site-head, .site-foot, .hero, .controls, .preview-bar, .ad-slot, .section,
  .skip { display: none !important; }
  .app-shell { display: block; margin: 0; gap: 0; }
  .paper-wrap { display: block !important; background: none !important; border: 0 !important;
    border-radius: 0 !important; padding: 0 !important; }
  .preview-col { position: static; }
  #printRoot, .paper {
    display: block !important; width: 100% !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; min-height: 0 !important; font-size: 11.5pt;
  }
  .paper-items tr, .paper-pay, .paper-parties, .paper-totals { break-inside: avoid; }
  .save-state, #fileError, .preview-col > .hint { display: none !important; }
  .paper-totals { min-height: 0 !important; }
  .paper-pay { background: #fff !important; border: 1px solid #d8dde2; }
  .paper-bottom { margin-bottom: 14px; }
  .paper-items thead { display: table-header-group; }
  .paper-sign, .seal, .tax-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper-note { color: #777; }
  a { color: inherit; text-decoration: none; }
}
