/* Free tools: the paper you type on, its settings, the sheet preview and the tool cards. */

/* Hero */
.hero-tool .ctas { margin-top: clamp(24px, 3.5vh, 34px); }
.t-pills { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--on-night-2); font-size: 14.5px; }
.t-pills li { display: flex; align-items: center; gap: 8px; }
.t-pills .ico { width: 16px; height: 16px; color: var(--sky); stroke-width: 2.4; }
.hero-maker { padding-bottom: calc(clamp(40px, 5vw, 64px) + 170px); }

/* The maker: the paper rises into the hero, the settings sit beside it */
.mk { position: relative; z-index: 2; margin-top: -170px; padding-bottom: clamp(56px, 7vw, 96px); }
.mk::before { content: ''; position: absolute; inset: 170px 0 0; z-index: -1; background: var(--mist); }
.mk-grid { display: grid; grid-template-columns: minmax(0, 794px) minmax(280px, 320px); gap: 28px; justify-content: center; align-items: start; }
.js .mk-grid .paper { animation: paper-in 1.1s var(--out) .2s backwards; }
.js .mk-grid .rail { animation: fade .9s var(--out) .5s backwards; }
@keyframes paper-in { from { opacity: 0; transform: translateY(80px) rotate(-1deg); } }

/* The paper: A4 at screen size */
.paper {
  --accent: var(--ink);
  position: relative; display: flex; flex-direction: column; min-height: 1123px; padding: 60px 58px 52px;
  border-radius: 6px; background: #fff; color: #2b3454; font-size: 13.5px; line-height: 1.5; font-variant-numeric: proportional-nums;
  box-shadow: 0 1px 2px rgb(10 21 56 / .08), 0 44px 90px -44px rgb(10 21 56 / .5);
}
.f {
  display: block; width: calc(100% + 12px); margin: 0 -6px; padding: 2px 6px; border: 0; border-radius: 5px;
  background: transparent; color: inherit; font: inherit; letter-spacing: inherit; resize: none; overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
}
textarea.f { field-sizing: content; min-height: calc(1.5em + 4px); }
.f::placeholder { color: #a7afc7; opacity: 1; }
.f:hover { background: rgb(43 91 255 / .06); }
.f:focus, .f:focus-visible { outline: none; border-radius: 5px 5px 0 0; background: rgb(43 91 255 / .07); box-shadow: inset 0 -2px 0 var(--cobalt); }

.p-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 36px; padding-bottom: 28px; border-bottom: 1px solid #e4e8f1; }
.p-logo { display: flex; align-items: center; height: 64px; margin: 0 0 16px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.p-logo img { width: auto; max-width: 200px; max-height: 64px; object-fit: contain; }
.p-logo-add {
  justify-content: center; gap: 8px; width: 176px; border: 1.5px dashed #c9d1e3; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; transition: border-color .25s, color .25s, background-color .25s;
}
.p-logo-add:hover { border-color: var(--cobalt); background: rgb(43 91 255 / .04); color: var(--cobalt); }
.p-logo-add .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.p-name { margin-bottom: 2px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.p-ids { display: grid; gap: 1px; margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; }
.kv > span { color: #6b7493; font-size: 12px; font-weight: 620; white-space: nowrap; }
.p-meta { display: grid; align-content: start; gap: 1px; }
.p-meta .kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.p-meta .kv .f { color: var(--ink); font-weight: 560; text-align: right; }
.p-title { margin: 0 0 16px; color: var(--accent); font-size: 34px; line-height: 1; font-weight: 760; font-stretch: 112%; letter-spacing: -.03em; text-align: right; text-wrap: balance; transition: color .3s; }

.p-to { max-width: 340px; margin: 26px 0 30px; }
.p-lab { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .01em; transition: color .3s; }
.p-client { color: var(--ink); font-size: 15px; font-weight: 650; }

.lines { --cols: minmax(0, 1fr) 58px 108px 62px 112px; }
.lines.c-price { --cols: minmax(0, 1fr) 64px 120px 124px; }
.lines.c-qty { --cols: minmax(0, 1fr) 110px; }
.lrow { position: relative; display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid #edf0f6; }
.lhead { padding: 0 0 9px; border-bottom: 2px solid var(--accent); color: #6b7493; font-size: 12px; font-weight: 700; transition: border-color .3s; }
.lhead span:not(:first-child), .l-total { text-align: right; }
.l-num { display: flex; align-items: baseline; }
.l-num .f { text-align: right; }
.l-vat { justify-content: flex-end; }
.l-vat .f { width: 2.9em; flex: none; text-align: right; }
.l-vat .f::-webkit-calendar-picker-indicator { display: none !important; }
.l-vat span { margin-left: -3px; padding-left: 3px; color: #6b7493; }
.l-total { display: block; padding: 2px 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.l-x {
  position: absolute; top: 7px; right: -40px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: #98a1bd; cursor: pointer; opacity: 0; transition: opacity .2s, color .2s, background-color .2s;
}
.lrow:hover .l-x, .l-x:focus-visible { opacity: 1; }
.l-x:hover { background: #fdeceb; color: #c4372c; }
.l-x .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.l-add {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 10px 0 0 -12px; padding: 8px 12px;
  border: 0; border-radius: 999px; background: none; color: var(--cobalt); font: inherit; font-size: 13.5px; font-weight: 620; cursor: pointer; transition: background-color .2s;
}
.l-add:hover { background: rgb(43 91 255 / .08); }
.l-add .ico { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .35s var(--out); }
.l-add:hover .ico { transform: rotate(90deg); }

.p-sum { position: relative; display: flex; justify-content: flex-end; margin-top: 18px; }
.totals { width: min(100%, 300px); margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.totals dt { color: #5d6788; }
.totals dd { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.totals .grand { margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--accent); transition: border-color .3s; }
.totals .grand dt { align-self: center; color: var(--ink); font-weight: 700; }
.totals .grand dd { color: var(--accent); font-size: 21px; font-weight: 760; letter-spacing: -.01em; transition: color .3s; }
.stamp {
  position: absolute; top: 4px; left: 28px; margin: 0; padding: 6px 18px; border: 3px solid #c4372c; border-radius: 8px;
  color: #c4372c; font-size: 28px; line-height: 1.1; font-weight: 800; font-stretch: 120%; letter-spacing: .08em; text-transform: uppercase;
  opacity: .85; transform: rotate(-11deg); mix-blend-mode: multiply; animation: stamp .45s var(--out) both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-11deg) scale(1.7); } }
.p-legal { margin: 14px 0 0; color: #5d6788; font-size: 12.5px; text-align: right; }
.p-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: auto; padding-top: 48px; }
.p-note .f { color: #4a5373; font-size: 12.5px; }
.p-sign { min-height: 112px; padding: 12px 14px; border: 1.5px dashed #c9d1e3; border-radius: 8px; }

/* Settings rail */
.rail { position: sticky; top: calc(var(--head) + 20px); display: grid; gap: 14px; }
.rail-card { display: grid; gap: 18px; padding: 20px 22px 22px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgb(12 21 51 / .06), 0 30px 60px -36px rgb(10 21 56 / .45); }
.seg, .swatches { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend, .swatches legend, .sel > span { display: block; margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 620; }
.seg-in { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 3px; padding: 4px; border-radius: 14px; background: var(--mist); }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 620; line-height: 1.2; text-align: center; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(12 21 51 / .1), 0 0 0 1px rgb(12 21 51 / .04); }
.seg input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.rail-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.sel { display: grid; min-width: 0; }
.sel select {
  width: 100%; height: 44px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 12px; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6788' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px;
  color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 560; transition: border-color .2s;
}
.sel select:hover { border-color: #b9c3da; }
.rail-toggles { display: grid; gap: 12px; }
.rail-toggles:empty { display: none; }
.tg { position: relative; display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 14.5px; font-weight: 540; line-height: 1.3; cursor: pointer; }
.tg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tg-ui { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #d3d9e7; transition: background-color .25s; }
.tg-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(12 21 51 / .25); transition: transform .3s var(--out); }
.tg:hover .tg-ui { background: #c4ccde; }
.tg input:checked + .tg-ui { background: var(--cobalt); }
.tg input:checked + .tg-ui::after { transform: translateX(16px); }
.tg input:focus-visible + .tg-ui { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.sw-in { display: flex; gap: 12px; padding-left: 2px; }
.swatches label { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--sw); cursor: pointer; transition: box-shadow .25s, transform .25s var(--out); }
.swatches label:hover { transform: scale(1.1); }
.swatches input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatches label:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sw); }
.swatches label:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 6px; }
.rail-logo, .rail-alt { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.r-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 2px) / 0 1.5px; transition: background-size .4s var(--ease), color .2s;
}
.r-btn:hover { background-size: 100% 1.5px; }
.r-btn .ico { width: 16px; height: 16px; color: var(--cobalt); stroke-width: 2.2; }
.r-quiet { color: var(--muted); }
.r-quiet:hover { color: var(--ink); }
.rail-go { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.rail-pdf { width: 100%; justify-content: space-between; }
.rail-tip { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rail-alt { margin-top: -8px; }
.rail-private { display: flex; gap: 8px; margin: -6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rail-private .ico { width: 15px; height: 15px; margin-top: 1px; color: var(--cobalt); }
.rail-more { display: grid; gap: 6px; padding: 20px 22px; border-radius: 22px; background: var(--night); color: var(--on-night-2); font-size: 14px; line-height: 1.5; transition: transform .45s var(--out); }
.rail-more b { color: #fff; font-size: 16px; font-weight: 680; }
.rail-more .link { justify-self: start; margin-top: 6px; color: #fff; font-size: 14.5px; }
.rail-more:hover { transform: translateY(-2px); }
.rail-more:hover .link { background-size: 100% 1.5px, 100% 1.5px; }
.rail-more:hover .link .ico { transform: translate(2px, -2px); }
.mk-end { display: none; }
@media screen and (max-height: 860px) { .rail-more { display: none; } }

/* Sheet preview: the file's first tab, with the formula of the picked cell */
.xl { overflow: hidden; border-radius: 18px; background: #fff; font-variant-numeric: proportional-nums; box-shadow: 0 0 0 1px var(--line), 0 44px 90px -56px rgb(10 21 56 / .5); font-size: 13.5px; }
.xl-bar { display: flex; align-items: center; height: 46px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.xl-ref { width: 76px; padding: 0 14px; border-right: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.xl-fx { padding: 0 12px; border-right: 1px solid var(--line); color: var(--muted); font-style: italic; font-weight: 600; }
.xl-f { flex: 1; min-width: 0; padding: 0 14px; overflow: hidden; color: var(--ink); font: inherit; font-weight: 520; white-space: nowrap; text-overflow: ellipsis; }
.xl-scroll { overflow-x: auto; }
.xl-grid { min-width: 100%; border-collapse: collapse; }
.xl-grid th { padding: 6px 10px; border: 1px solid #e6e9f1; background: #f4f6fa; color: #7a839f; font-size: 12px; font-weight: 600; text-align: center; }
.xl-grid tbody th { width: 42px; }
.xl-grid td { height: 34px; padding: 0 10px; border: 1px solid #edf0f5; color: var(--ink); white-space: nowrap; }
.xl-head td { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 650; }
.xl-grid td.num { text-align: right; }
.xl-grid td.calc { background: #f2f5ff; transition: background-color .2s; }
.xl-grid td.calc:hover { background: #e4ebff; }
.xl-grid td.alert { background: #fde8e6; color: #b42318; font-weight: 650; }
.xl-grid td.on { box-shadow: inset 0 0 0 2px #107c41; }
.xl-grid td button { display: block; width: calc(100% + 20px); height: 34px; margin: 0 -10px; padding: 0 10px; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.xl-grid td button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: -2px; border-radius: 0; }
.xl-empty td { height: 30px; }
.xl-tabs { display: flex; gap: 2px; padding: 0 12px; border-top: 1px solid var(--line); background: #fbfcfe; overflow-x: auto; }
.xl-tabs button { position: relative; padding: 11px 16px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 620; white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s; }
.xl-tabs button:hover { color: var(--ink); }
.xl-tabs button[aria-selected='true'] { background: #fff; color: #107c41; }
.xl-tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2.5px; border-radius: 2px; background: #107c41; }
.xl-get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.xl-get p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps, check lists and the custom software pitch */
.t-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.t-steps li { padding: clamp(24px, 3vw, 34px); border-radius: 22px; background: #fff; }
.t-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 700; }
.t-steps h3 { margin: 0 0 8px; color: var(--ink); font-size: 21px; line-height: 1.2; font-weight: 690; font-stretch: 108%; letter-spacing: -.018em; }
.t-steps p { margin: 0; font-size: 16px; }
.up-p { margin-top: 18px; }
.inc-side .ctas { margin-top: 30px; }
.up .checks { background: var(--mist); }
.sec.up + .sec.up, .sec.up + .t-more { border-top: 1px solid var(--line); }

/* Tool cards: a small drawing of what each tool makes */
.t-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.t-more .t-cards { margin-top: clamp(28px, 3vw, 40px); }
.t-card { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .45s var(--out), border-color .3s; }
.t-card:hover { border-color: #c6cfe2; transform: translateY(-2px); }
.t-card-name { display: flex; align-items: center; gap: 8px; margin: 20px 12px 6px; color: var(--ink); font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 110%; letter-spacing: -.02em; }
.t-card-name .ico { width: 17px; height: 17px; color: var(--cobalt); stroke-width: 2.2; transition: transform .4s var(--out); }
.t-card:hover .t-card-name .ico { transform: translate(2px, -2px); }
.t-card-p { margin: 0 12px; font-size: 15px; line-height: 1.5; }
.mini { position: relative; height: 176px; overflow: hidden; border-radius: 14px; background: var(--mist); }
.mini-paper { position: absolute; top: 26px; left: 50%; display: flex; flex-direction: column; gap: 9px; width: 124px; height: 176px; margin-left: -62px; padding: 16px 14px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(10 21 56 / .08), 0 18px 30px -18px rgb(10 21 56 / .35); transition: transform .5s var(--out); }
.t-card:hover .mini-paper { transform: translateY(-6px) rotate(-2deg); }
.mini-paper b { width: 54px; height: 9px; margin-bottom: 8px; border-radius: 3px; background: var(--cobalt); }
.mini-paper i { height: 5px; border-radius: 3px; background: #e3e8f2; }
.mini-paper i:nth-of-type(2) { width: 80%; }
.mini-paper i:nth-of-type(3) { width: 62%; }
.mini-total { align-self: flex-end; width: 46px; height: 8px; margin-top: 10px; border-radius: 3px; background: var(--ink); }
.mini-sign { height: 32px; margin-top: 8px; border: 1.5px dashed #c9d1e3; border-radius: 4px; }
.mini-xml { position: absolute; right: -16px; bottom: 30px; padding: 4px 9px; border-radius: 7px; background: var(--cobalt); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .04em; transform: rotate(6deg); }
.mini-xl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-content: center; padding: 28px 22px; }
.mini-xl i { height: 26px; margin: 0 -1px -1px 0; border: 1px solid #dfe4ee; background: #fff; transition: background-color .4s; }
.mini-xl i:nth-child(-n + 6) { border-color: var(--ink); background: var(--ink); }
.mini-xl .calc { background: #eef2ff; }
.mini-xl .red { background: #fde8e6; }
.t-card:hover .mini-xl .red { background: #f6b4ac; }

@media screen and (max-width: 1100px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
  .paper { padding: 52px 44px 44px; }
  .l-x { right: -36px; }
}
@media screen and (max-width: 900px) {
  .hero-maker { padding-bottom: calc(clamp(64px, 8vw, 104px) + 60px); }
  .mk { margin-top: -80px; }
  .mk::before { top: 80px; }
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: -1; }
  .rail-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg, .rail-two { grid-column: 1 / -1; }
  .rail-go, .rail-more, .rail-alt, .rail-private { display: none; }
  .paper { min-height: 0; }
  .mk-end { display: grid; justify-items: start; gap: 10px; }
  .mk-end .rail-tip { max-width: 30em; }
  .t-steps { grid-template-columns: 1fr; }
  .t-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 640px) {
  .rail-card { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .t-cards { grid-template-columns: 1fr; }
  .paper { padding: 26px 20px 24px; font-size: 14px; }
  .p-head { grid-template-columns: 1fr; gap: 22px; }
  .p-meta { order: -1; }
  .p-title { text-align: left; font-size: 30px; }
  .p-meta .kv .f { text-align: left; }
  .p-logo { height: 52px; }
  .lhead { display: none; }
  .lrow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; padding: 14px 0; }
  .lines.c-price .lrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lines.c-qty .lrow { grid-template-columns: minmax(0, 1fr) 96px; }
  .lines:not(.c-qty) .l-desc { grid-column: 1 / -1; padding-right: 30px; }
  .lines.c-qty .l-desc { padding-right: 30px; }
  .l-num, .l-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; }
  .l-num::before, .l-total::before { content: attr(data-label); grid-column: 1 / -1; color: #6b7493; font-size: 11.5px; font-weight: 620; }
  .l-num .f, .l-total { text-align: left; }
  .l-vat .f { width: calc(100% + 12px); }
  .l-total { padding: 0; }
  .l-x { top: 12px; right: -8px; opacity: 1; }
  .p-sum { flex-direction: column; align-items: stretch; }
  .stamp { position: relative; top: 0; left: 0; align-self: flex-start; margin: 0 0 18px 10px; font-size: 22px; }
  .totals { width: 100%; }
  .p-foot { grid-template-columns: 1fr; gap: 22px; padding-top: 36px; }
}
@media (hover: none) {
  .l-x { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .mk-grid .paper, .js .mk-grid .rail, .stamp { animation: none; }
}

/* Print: only the paper, on one A4 page */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  body > :not(main), main > :not(.mk), .rail, .mk-end, .l-add, .l-x, .p-logo-add, .paper [data-empty] { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mk { margin: 0; padding: 0; }
  .mk::before { display: none; }
  .mk .wrap { max-width: none; padding: 0; }
  .mk-grid { display: block; }
  .paper { min-height: 297mm; padding: 16mm 15mm 14mm; border-radius: 0; box-shadow: none; font-size: 10.5pt; animation: none !important; }
  .stamp { animation: none; }
  .f { background: none !important; box-shadow: none !important; }
  .f::placeholder { color: transparent; }
  .lrow, .p-sum, .p-foot { break-inside: avoid; }
}
