/* Bundled label font: stable across Chrome, macOS and Windows print paths. */
@font-face {
  font-family: "LabelFont";
  src: url("./assets/fonts/NotoSansSC-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "LabelFont";
  src: url("./assets/fonts/NotoSansSC-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

.stage1-grid-preview-sheet,
.stage1-grid-preview-sheet *,
.stage1-label-print-preview,
.stage1-label-print-preview * {
  font-family: "LabelFont" !important;
  font-synthesis: none;
}

/* Shared label-print reset. Runtime paper dimensions are injected by index.html. */
@media print {
  @page {
    margin: 0;
  }

  html,
  body,
  iframe,
  label-container,
  .label-container,
  [data-label-container],
  .label-print-container,
  .label-print-preview,
  .stage1-label-print-preview,
  .stage1-label-print-stack,
  .stage1-label-print-page,
  .stage1-label-print-fit,
  .stage1-grid-preview-wrap,
  .stage1-grid-preview-sheet {
    font-family: "LabelFont" !important;
    transform: none !important;
    zoom: 1 !important;
    scale: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
