.voucher-cover-page {
  min-width: 0;
  padding: 16px 18px 24px;
}

.voucher-cover-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid #dce4e8;
  border-radius: 5px;
  background: white;
}

.voucher-cover-period {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.voucher-cover-period input {
  width: 4.8em;
  min-width: 0;
  height: 32px;
  padding: 3px 5px;
  border: 1px solid #b9c8cf;
  border-radius: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.voucher-cover-period .voucher-cover-month {
  width: 3.3em;
}

.voucher-cover-period input[aria-invalid="true"] {
  border-color: #b03c36;
}

.voucher-cover-print {
  margin-left: auto;
  min-height: 34px;
  padding-inline: 18px;
}

.voucher-cover-error {
  flex-basis: 100%;
  margin: 0;
  color: #a93630;
  font-size: 13px;
}

.voucher-cover-error:empty {
  display: none;
}

.voucher-cover-preview {
  padding: 18px;
  background: #e9edef;
}

.voucher-cover-sheet {
  box-sizing: border-box;
  width: min(210mm, 100%);
  margin: 0 auto;
  background: white;
  box-shadow: 0 1px 6px #263b4c28;
}

.voucher-cover-sheet > svg {
  display: block;
  width: 100%;
  height: auto;
  fill: black;
  stroke: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

@media screen and (max-width: 800px) {
  .voucher-cover-page, .voucher-cover-preview { padding: 8px; }
  .voucher-cover-toolbar { gap: 8px; padding: 10px; }
}

@page voucher-cover { size: A4 portrait; margin: 0; }

@media print {
  body:has(.voucher-cover-page) {
    page: voucher-cover;
    margin: 0;
    padding: 0;
    background: white;
  }

  body:has(.voucher-cover-page) > :not(#app),
  .cw-shell:has(.voucher-cover-page) > :not(.cw-stage),
  .cw-stage:has(.voucher-cover-page) > :not(.cw-content),
  .voucher-cover-page > :not(.voucher-cover-preview) {
    display: none !important;
  }

  .cw-shell .cw-content.book-content:has(.voucher-cover-page),
  .voucher-cover-page,
  .voucher-cover-preview {
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    background: white;
    overflow: visible;
  }

  .voucher-cover-sheet {
    width: 210mm;
    margin: 0;
    box-shadow: none;
    break-inside: avoid;
  }

}
