figure.barcode-figure img,
img.barcode-figure {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

table.scan-flow {
  table-layout: fixed;
  width: 100%;
  margin: 0.65rem 0 0.9rem;
  background: transparent;
}

table.scan-flow th,
table.scan-flow td {
  text-align: center;
  vertical-align: middle;
  padding: 0.35rem 0.4rem;
  background: transparent !important;
}

table.scan-flow tbody tr {
  background: transparent !important;
}

table.scan-flow p {
  margin: 0.2rem 0;
}

table.scan-flow .scan-flow-setting {
  display: block;
  margin: 0.25rem auto 0.7rem;
  text-align: center;
  break-inside: avoid;
}

table.scan-flow .scan-flow-boundary {
  display: block;
  margin: 0 auto;
  text-align: center;
  opacity: 0.86;
}

table.scan-flow .scan-flow-setting:first-child {
  margin-top: 0.15rem;
}

table.scan-flow .scan-flow-setting:last-child {
  margin-bottom: 0.15rem;
}

table.scan-flow .scan-flow-setting p {
  margin-top: 0.25rem;
  margin-bottom: 0;
  text-align: center;
}

table.scan-flow img {
  max-width: 100%;
  height: auto;
}

table.scan-flow .scan-flow-setting img {
  display: block;
  margin: 0 auto;
}

.scan-setting {
  margin: 0.75rem 0 1.15rem;
}

.scan-procedure {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) minmax(150px, 1.4fr) minmax(96px, 0.9fr);
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--pst-color-border, #d0d7de);
  border-radius: 6px;
  background: var(--pst-color-surface, #f6f8fa);
}

.scan-procedure-code {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  color: var(--pst-color-text-muted, #57606a);
  font-size: 0.82rem;
}

.scan-procedure-img {
  width: 92px;
  max-width: 100%;
  height: auto;
}

.scan-procedure-action {
  text-align: center;
  font-weight: 600;
  color: var(--pst-color-text-base, #24292f);
}

.setting-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.setting-code-group {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  font-weight: 600;
}

.setting-code-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  min-height: 0;
  padding: 0.75rem 0.65rem 0.65rem;
  border: 1px solid var(--pst-color-border, #d0d7de);
  border-radius: 6px;
  background: var(--pst-color-background, #fff);
  break-inside: avoid;
}

.setting-code-card.is-default {
  border-color: var(--pst-color-primary, #2f6f9f);
}

.setting-code-img {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.setting-code-caption {
  text-align: center;
  line-height: 1.35;
}

.scan-plugin {
  margin: 0.9rem 0 1.25rem;
}

.scan-plugin-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--pst-color-border, #d0d7de);
  border-radius: 6px;
  background: var(--pst-color-background, #fff);
}

table.module-280-decimal-digits,
table.module-280-function-key-table {
  table-layout: fixed;
  width: 100%;
}

table.module-280-decimal-digits th,
table.module-280-decimal-digits td,
table.module-280-function-key-table th,
table.module-280-function-key-table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.3rem 0.45rem;
}

table.module-280-decimal-digits img,
table.module-280-function-key-table img {
  max-width: 100%;
  height: auto;
}

@media print {
  table.scan-flow {
    break-inside: avoid;
  }

  table.module-280-decimal-digits,
  table.module-280-function-key-table {
    break-inside: avoid;
  }
}

@media (max-width: 640px) {
  .scan-procedure {
    grid-template-columns: 1fr;
  }

  .setting-code-grid {
    grid-template-columns: 1fr;
  }
}
