* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #000;
  background: #fff;
  font-family: "Saira", sans-serif;
  font-size: 100%;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  padding: 20px 0 56px 20px;
}

.intranet-logo {
  display: block;
  width: 200px;
  height: auto;
  margin: 0;
}

.kicker {
  margin: 0 0 2px;
  color: #919191;
  font-size: 14px;
  letter-spacing: 0;
}

h1,
.heading--medium {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
}

.heading--medium {
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 32px;
}

.tool-title {
  margin-left: 0;
  margin-top: 20px;
  margin-bottom: 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 390px minmax(760px, 1fr);
  gap: 30px;
  margin-left: 0;
  align-items: start;
}

.control-panel {
  background: #f5f5f5;
  padding: 20px;
}

.field,
.field-row {
  display: grid;
  gap: 8px;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}

.field span {
  color: #919191;
  font-size: 14px;
  line-height: 24px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 8px 10px;
}

input:focus,
select:focus {
  border-color: #000;
  outline: 2px solid transparent;
}

.print-button {
  min-height: 42px;
  border: 0;
  background: #d5d5d5;
  color: #000;
  cursor: pointer;
  padding: 10px 22px;
  margin-top: 4px;
  margin-right: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
}

.print-button:hover {
  background: #c8c8c8;
}

.status-line {
  min-height: 24px;
  color: #919191;
  font-size: 14px;
  line-height: 24px;
}

.status-line.is-error {
  color: #dd3333;
}

.preview-stage {
  overflow-x: auto;
  padding-bottom: 20px;
}

@media screen {
  .preview-stage .print-label {
    zoom: .45;
  }
}

.print-label {
  position: relative;
  width: 297mm;
  height: 210mm;
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0;
  overflow: hidden;
  color: #000;
}

.label-content {
  position: relative;
  width: 297mm;
  height: 210mm;
  padding: 10mm 10mm 7.5mm;
  overflow: hidden;
  color: #000;
}

.document-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 20mm;
}

.ba-logo {
  display: block;
  width: 86.6mm;
  height: auto;
}

.document-title {
  font-size: 20pt;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.label-body {
  display: grid;
  grid-template-columns: 221mm 44mm;
  column-gap: 10mm;
  margin-top: 12mm;
}

.label-main {
  min-width: 0;
}

.product-heading h2 {
  margin: 0;
  font-size: 38pt;
  font-weight: 500;
  line-height: .95;
  letter-spacing: 0;
  white-space: nowrap;
}

.product-heading p {
  margin: 9mm 0 7mm;
  font-size: 14pt;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.product-data {
  display: grid;
  grid-template-columns: 47mm 63mm 74mm;
  grid-template-rows: 17mm 18mm;
  column-gap: 4mm;
  row-gap: 0;
  margin-bottom: 10mm;
}

.product-code,
.label-field {
  font-size: 11pt;
  font-weight: 300;
  line-height: 1.15;
}

.product-code span,
.label-field span {
  display: block;
}

.product-code strong {
  display: block;
  margin-top: 4mm;
  font-family: "Source Code Pro", monospace;
  font-size: 26pt;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
}

.label-field strong {
  display: block;
  width: 43mm;
  min-height: 8mm;
  margin-top: 4mm;
  border-bottom: 1px solid #f2f2f2;
  font-size: 13pt;
  font-weight: 300;
  line-height: 7mm;
}

.batch-field {
  grid-column: 2;
  grid-row: 1;
}

.mfg-field {
  grid-column: 3;
  grid-row: 1;
  padding-left: 6mm;
}

.gross-field {
  grid-column: 2;
  grid-row: 2;
}

.net-field {
  grid-column: 3;
  grid-row: 2;
  padding-left: 6mm;
}

.clp-copy {
  max-width: 221mm;
  font-size: 8pt;
  font-weight: 300;
  line-height: 1.6;
}

.clp-copy p {
  margin: 0;
}

.clp-copy span,
.clp-copy strong {
  font-weight: 300;
}

.hazard-column {
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 8mm;
}

.pictogram-slot {
  position: relative;
  width: 45mm;
  height: 45mm;
  margin-bottom: -1.8mm;
}

.pictogram-slot img {
  display: block;
  width: 45mm;
  height: 45mm;
  object-fit: contain;
}

.pictogram-slot.is-empty {
  margin-top: 0;
}

.pictogram-slot.is-empty img {
  display: none;
}

.pictogram-slot.is-empty::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid #d9d9d9;
  transform: rotate(45deg);
}

.pictogram-slot.is-empty::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 12%;
  width: 76%;
  height: 76%;
  background:
    linear-gradient(45deg, transparent calc(50% - .6px), #d0d0d0 calc(50% - .6px), #d0d0d0 calc(50% + .6px), transparent calc(50% + .6px)),
    linear-gradient(-45deg, transparent calc(50% - .6px), #d0d0d0 calc(50% - .6px), #d0d0d0 calc(50% + .6px), transparent calc(50% + .6px));
}

.document-footer {
  position: absolute;
  left: 10mm;
  bottom: 7.5mm;
  display: grid;
  grid-template-columns: 26mm auto;
  column-gap: 5mm;
  width: 190mm;
  font-size: 8pt;
  font-weight: 300;
  line-height: 1.2;
}

.document-footer strong {
  font-weight: 300;
}

@media (max-width: 980px) {
  .page-shell {
    position: static;
    width: auto;
    padding: 0 20px 40px;
  }

  .tool-grid {
    display: block;
    margin-left: 20px;
  }

  .print-button {
    margin-top: 18px;
  }

  .control-panel {
    margin-bottom: 24px;
  }

  .preview-stage .print-label {
    zoom: .4;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
    line-height: 38px;
  }
}

@media print {
  @page {
    size: 297mm 210mm;
    margin: 0;
  }

  html,
  body {
    width: 297mm;
    height: 210mm;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-shell {
    position: static;
    width: 297mm;
    height: 210mm;
    margin: 0;
    padding: 0;
  }

  .intranet-logo,
  .utility-header,
  .tool-title,
  .control-panel {
    display: none;
  }

  .tool-grid {
    display: block;
    width: 297mm;
    height: 210mm;
    margin: 0;
    padding: 0;
  }

  .preview-stage {
    display: block;
    width: 297mm;
    height: 210mm;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .print-label {
    box-sizing: border-box;
    display: block;
    position: relative;
    width: 297mm;
    height: 210mm;
    border: 0;
    margin: 0;
    padding: 0;
    zoom: 1;
    transform: none;
    overflow: hidden;
    page-break-after: avoid;
    break-after: avoid;
  }

  .label-content {
    width: 279.4mm;
    height: 197.55mm;
    padding: 10mm 10mm 7.5mm;
    zoom: 1.0637;
    transform: none;
  }
}
